]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/gdi_wrap.cpp
Add the wx module to the namespace
[wxWidgets.git] / wxPython / src / gtk / 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(unsigned long)
367 SWIG_AsUnsignedLong(PyObject * obj)
368 {
369 if (PyLong_Check(obj)) {
370 return PyLong_AsUnsignedLong(obj);
371 } else {
372 long i = PyInt_AsLong(obj);
373 if ( !PyErr_Occurred() && (i < 0)) {
374 PyErr_SetString(PyExc_TypeError, "negative value for unsigned type");
375 }
376 return i;
377 }
378 }
379
380
381 SWIGSTATICINLINE(unsigned char)
382 SWIG_AsUnsignedChar(PyObject *obj)
383 {
384 return swig_numeric_cast(unsigned char,
385 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
386 "unsigned char", UCHAR_MAX));
387 }
388
389
390 SWIGSTATICINLINE(int)
391 SWIG_CheckUnsignedChar(PyObject* obj)
392 {
393 SWIG_AsUnsignedChar(obj);
394 if (PyErr_Occurred()) {
395 PyErr_Clear();
396 return 0;
397 } else {
398 return 1;
399 }
400 }
401
402
403 SWIGSTATICINLINE(int)
404 SWIG_CheckUnsignedLong(PyObject* obj)
405 {
406 SWIG_AsUnsignedLong(obj);
407 if (PyErr_Occurred()) {
408 PyErr_Clear();
409 return 0;
410 } else {
411 return 1;
412 }
413 }
414
415 PyObject *wxColour_Get(wxColour *self){
416 PyObject* rv = PyTuple_New(3);
417 int red = -1;
418 int green = -1;
419 int blue = -1;
420 if (self->Ok()) {
421 red = self->Red();
422 green = self->Green();
423 blue = self->Blue();
424 }
425 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
426 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
427 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
428 return rv;
429 }
430 unsigned long wxColour_GetRGB(wxColour *self){
431 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
432 }
433
434 SWIGSTATICINLINE(PyObject* )
435 SWIG_FromUnsignedLong(unsigned long value)
436 {
437 return (value > LONG_MAX) ?
438 PyLong_FromUnsignedLong(value)
439 : PyInt_FromLong(swig_numeric_cast(long,value));
440 }
441
442
443 SWIGSTATICINLINE(long)
444 SWIG_CheckLongInRange(long value, const char* type,
445 long min_value, long max_value)
446 {
447 if (!PyErr_Occurred()) {
448 if (value < min_value) {
449 PyObject *err =
450 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
451 value, type, min_value);
452
453 PyErr_SetObject(PyExc_OverflowError, err);
454 Py_DECREF(err);
455 } else if (value > max_value) {
456 PyObject *err =
457 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
458 value, type, max_value);
459 PyErr_SetObject(PyExc_OverflowError, err);
460 Py_DECREF(err);
461 }
462 }
463 return value;
464 }
465
466
467 SWIGSTATICINLINE(long)
468 SWIG_AsLong(PyObject * obj)
469 {
470 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
471 }
472
473
474 #if INT_MAX != LONG_MAX
475 SWIGSTATICINLINE(int)
476 SWIG_AsInt(PyObject *obj)
477 {
478 return swig_numeric_cast(int,
479 SWIG_CheckLongInRange(SWIG_AsLong(obj),
480 "int", INT_MIN, INT_MAX));
481 }
482 #else
483 #define SWIG_AsInt SWIG_AsLong
484 #endif
485
486
487 SWIGSTATICINLINE(int)
488 SWIG_CheckInt(PyObject* obj)
489 {
490 SWIG_AsInt(obj);
491 if (PyErr_Occurred()) {
492 PyErr_Clear();
493 return 0;
494 } else {
495 return 1;
496 }
497 }
498
499
500 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
501 PyObject* o2;
502 PyObject* o3;
503
504 if (!target) {
505 target = o;
506 } else if (target == Py_None) {
507 Py_DECREF(Py_None);
508 target = o;
509 } else {
510 if (!PyTuple_Check(target)) {
511 o2 = target;
512 target = PyTuple_New(1);
513 PyTuple_SetItem(target, 0, o2);
514 }
515 o3 = PyTuple_New(1);
516 PyTuple_SetItem(o3, 0, o);
517
518 o2 = target;
519 target = PySequence_Concat(o2, o3);
520 Py_DECREF(o2);
521 Py_DECREF(o3);
522 }
523 return target;
524 }
525
526 PyObject *wxPen_GetDashes(wxPen *self){
527 wxDash* dashes;
528 int count = self->GetDashes(&dashes);
529 wxPyBeginBlockThreads();
530 PyObject* retval = PyList_New(0);
531 for (int x=0; x<count; x++)
532 PyList_Append(retval, PyInt_FromLong(dashes[x]));
533 wxPyEndBlockThreads();
534 return retval;
535 }
536 bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; }
537 bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; }
538
539 wxPyPen::~wxPyPen()
540 {
541 if (m_dash)
542 delete [] m_dash;
543 }
544
545 void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash)
546 {
547 if (m_dash)
548 delete [] m_dash;
549 m_dash = new wxDash[nb_dashes];
550 for (int i=0; i<nb_dashes; i++) {
551 m_dash[i] = dash[i];
552 }
553 wxPen::SetDashes(nb_dashes, m_dash);
554 }
555
556
557 #include <wx/image.h>
558
559 static char** ConvertListOfStrings(PyObject* listOfStrings) {
560 char** cArray = NULL;
561 int count;
562
563 if (!PyList_Check(listOfStrings)) {
564 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
565 return NULL;
566 }
567 count = PyList_Size(listOfStrings);
568 cArray = new char*[count];
569
570 for(int x=0; x<count; x++) {
571 // TODO: Need some validation and error checking here
572 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
573 }
574 return cArray;
575 }
576
577
578 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
579 char** cArray = NULL;
580 wxBitmap* bmp;
581
582 cArray = ConvertListOfStrings(listOfStrings);
583 if (! cArray)
584 return NULL;
585 bmp = new wxBitmap(cArray);
586 delete [] cArray;
587 return bmp;
588 }
589 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
590 char* buf;
591 int length;
592 PyString_AsStringAndSize(bits, &buf, &length);
593 return new wxBitmap(buf, width, height, depth);
594 }
595 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
596 wxMask *mask = new wxMask(*self, colour);
597 self->SetMask(mask);
598 }
599 wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
600 if ( !colour.Ok() )
601 return new wxMask(bitmap, *wxBLACK);
602 else
603 return new wxMask(bitmap, colour);
604 }
605
606 #include <wx/iconbndl.h>
607
608 wxIcon *new_wxIcon(wxBitmap const &bmp){
609 wxIcon* icon = new wxIcon();
610 icon->CopyFromBitmap(bmp);
611 return icon;
612 }
613 wxIcon *new_wxIcon(PyObject *listOfStrings){
614 char** cArray = NULL;
615 wxIcon* icon;
616
617 cArray = ConvertListOfStrings(listOfStrings);
618 if (! cArray)
619 return NULL;
620 icon = new wxIcon(cArray);
621 delete [] cArray;
622 return icon;
623 }
624 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
625
626
627
628 return new wxIconLocation(*filename);
629
630 }
631 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
632
633
634
635 // do nothing
636
637 }
638 int wxIconLocation_GetIndex(wxIconLocation *self){
639
640
641
642 return -1;
643
644 }
645
646 SWIGSTATICINLINE(int)
647 SWIG_CheckLong(PyObject* obj)
648 {
649 SWIG_AsLong(obj);
650 if (PyErr_Occurred()) {
651 PyErr_Clear();
652 return 0;
653 } else {
654 return 1;
655 }
656 }
657
658 wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
659 #ifdef __WXGTK__
660 wxCHECK_MSG(False, NULL,
661 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
662 #else
663 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
664 #endif
665 }
666
667
668 void wxRegionIterator_Next(wxRegionIterator *self){
669 (*self) ++;
670 }
671 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
672 return self->operator bool();
673 }
674
675 #include <wx/fontutil.h>
676 #include <wx/fontmap.h>
677 #include <wx/fontenum.h>
678
679 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
680 return self->ToString();
681 }
682
683 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
684 static wxNativeEncodingInfo info;
685 if ( wxGetNativeFontEncoding(encoding, &info) )
686 return &info;
687 else
688 return NULL;
689 }
690
691 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
692 wxFontEncoding alt_enc;
693 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
694 return PyInt_FromLong(alt_enc);
695 else {
696 Py_INCREF(Py_None);
697 return Py_None;
698 }
699 }
700 wxFont *new_wxFont(wxString const &info){
701 wxNativeFontInfo nfi;
702 nfi.FromString(info);
703 return new wxFont(nfi);
704 }
705 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
706 return wxFont::New(pointSize, family, flags, face, encoding);
707 }
708 bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
709 bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
710
711 class wxPyFontEnumerator : public wxFontEnumerator {
712 public:
713 wxPyFontEnumerator() {}
714 ~wxPyFontEnumerator() {}
715
716 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
717 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
718
719 PYPRIVATE;
720 };
721
722 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
723 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
724
725
726 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
727 wxArrayString* arr = self->GetEncodings();
728 return wxArrayString2PyList_helper(*arr);
729 }
730 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
731 wxArrayString* arr = self->GetFacenames();
732 return wxArrayString2PyList_helper(*arr);
733 }
734
735
736
737 #include "wx/wxPython/pydrawxxx.h"
738
739 wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
740 wxColour col;
741 self->GetPixel(x, y, &col);
742 return col;
743 }
744 wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
745 wxColour col;
746 self->GetPixel(pt, &col);
747 return col;
748 }
749
750 SWIGSTATICINLINE(double)
751 SWIG_AsDouble(PyObject *obj)
752 {
753 double val = (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
754 #if HAVE_LONG_LONG
755 ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
756 #else
757 ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj));
758 #endif
759 if (PyErr_Occurred()) {
760 PyErr_Clear();
761 PyErr_SetString(PyExc_TypeError, "a double is expected");
762 }
763 return val;
764 }
765
766
767 SWIGSTATICINLINE(int)
768 SWIG_CheckDouble(PyObject* obj)
769 {
770 SWIG_AsDouble(obj);
771 if (PyErr_Occurred()) {
772 PyErr_Clear();
773 return 0;
774 } else {
775 return 1;
776 }
777 }
778
779 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
780 wxRect rv;
781 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
782 return rv;
783 }
784 wxRect wxDC_GetClippingRect(wxDC *self){
785 wxRect rect;
786 self->GetClippingBox(rect);
787 return rect;
788 }
789 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
790 wxArrayInt widths;
791 self->GetPartialTextExtents(text, widths);
792 return widths;
793 }
794 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
795 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
796 }
797 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
798 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
799 }
800 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
801 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
802 }
803 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
804 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
805 }
806 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
807 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
808 }
809 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
810 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
811 }
812
813 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
814 *x1 = dc->MinX();
815 *y1 = dc->MinY();
816 *x2 = dc->MaxX();
817 *y2 = dc->MaxY();
818 }
819
820
821 //-=-=-=-=-=-=-=-=-=-=-
822
823 #if 1
824 // Use the standard wxBufferedDC
825 #include <wx/dcbuffer.h>
826
827 #else
828
829 // Or, temporarily put a set of classes here similar to the old buffered DC
830 // classes until the real ones can be fixed to work "correctly" again.
831
832 class wxBufferedDC : public wxMemoryDC
833 {
834 private:
835 wxDC *m_dc;
836 wxBitmap m_buffer;
837
838 public:
839
840 wxBufferedDC() : m_dc( 0 ) {}
841
842 wxBufferedDC( wxDC *dc, const wxBitmap &buffer )
843 : m_dc( dc ), m_buffer( buffer )
844 {
845 SelectObject( m_buffer );
846 }
847
848 wxBufferedDC( wxDC *dc, const wxSize &area )
849 : m_dc( dc ), m_buffer( area.GetWidth(), area.GetHeight() )
850 {
851 SelectObject( m_buffer );
852 }
853
854 ~wxBufferedDC() {
855 if( m_dc != 0 )
856 UnMask();
857 }
858
859
860 void Init( wxDC *dc, const wxBitmap &buffer ) {
861 wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap,
862 _T("wxBufferedDC already initialised") );
863 m_dc = dc;
864 m_buffer = buffer;
865 SelectObject( m_buffer );
866 }
867
868 void Init( wxDC *dc, const wxSize &area ) {
869 wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap,
870 _T("wxBufferedDC already initialised") );
871 m_dc = dc;
872 m_buffer = wxBitmap( area.GetWidth(), area.GetHeight() );
873 SelectObject( m_buffer );
874 }
875
876 void UnMask() {
877 wxASSERT_MSG( m_dc != 0, _T("No low level DC associated with buffer (anymore)") );
878 m_dc->Blit( 0, 0, m_buffer.GetWidth(), m_buffer.GetHeight(), this, 0, 0 );
879 m_dc = 0;
880 }
881 };
882
883
884 class wxBufferedPaintDC : public wxBufferedDC
885 {
886 private:
887 wxPaintDC m_paintdc;
888
889 public:
890 wxBufferedPaintDC( wxWindow *window, const wxBitmap &buffer = wxNullBitmap )
891 : m_paintdc( window )
892 {
893 window->PrepareDC( m_paintdc );
894
895 if( buffer != wxNullBitmap )
896 Init( &m_paintdc, buffer );
897 else
898 Init( &m_paintdc, window->GetClientSize() );
899 }
900
901 ~wxBufferedPaintDC() {
902 UnMask();
903 }
904 };
905
906 #endif
907 //-=-=-=-=-=-=-=-=-=-=-
908
909
910 #include <wx/dcps.h>
911
912
913 class wxMetaFile : public wxObject {
914 public:
915 wxMetaFile(const wxString&)
916 { wxPyRaiseNotImplemented(); }
917 };
918
919 class wxMetaFileDC : public wxClientDC {
920 public:
921 wxMetaFileDC(const wxString&, int, int, const wxString&)
922 { wxPyRaiseNotImplemented(); }
923 };
924
925
926
927 class wxPrinterDC : public wxClientDC {
928 public:
929 wxPrinterDC(const wxPrintData&)
930 { wxPyRaiseNotImplemented(); }
931
932 // wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int)
933 // { wxPyRaiseNotImplemented(); }
934 };
935
936
937
938 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
939 self->AddColour(name, wxColour(red, green, blue));
940 }
941
942 #include <wx/effects.h>
943
944 #ifdef __cplusplus
945 extern "C" {
946 #endif
947 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
948 PyObject *resultobj;
949 wxGDIObject *result;
950 char *kwnames[] = {
951 NULL
952 };
953
954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
955 {
956 PyThreadState* __tstate = wxPyBeginAllowThreads();
957 result = (wxGDIObject *)new wxGDIObject();
958
959 wxPyEndAllowThreads(__tstate);
960 if (PyErr_Occurred()) SWIG_fail;
961 }
962 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
963 return resultobj;
964 fail:
965 return NULL;
966 }
967
968
969 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
970 PyObject *resultobj;
971 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
972 PyObject * obj0 = 0 ;
973 char *kwnames[] = {
974 (char *) "self", NULL
975 };
976
977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
980 {
981 PyThreadState* __tstate = wxPyBeginAllowThreads();
982 delete arg1;
983
984 wxPyEndAllowThreads(__tstate);
985 if (PyErr_Occurred()) SWIG_fail;
986 }
987 Py_INCREF(Py_None); resultobj = Py_None;
988 return resultobj;
989 fail:
990 return NULL;
991 }
992
993
994 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
995 PyObject *resultobj;
996 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
997 bool result;
998 PyObject * obj0 = 0 ;
999 char *kwnames[] = {
1000 (char *) "self", NULL
1001 };
1002
1003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
1004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1006 {
1007 PyThreadState* __tstate = wxPyBeginAllowThreads();
1008 result = (bool)(arg1)->GetVisible();
1009
1010 wxPyEndAllowThreads(__tstate);
1011 if (PyErr_Occurred()) SWIG_fail;
1012 }
1013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1014 return resultobj;
1015 fail:
1016 return NULL;
1017 }
1018
1019
1020 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1021 PyObject *resultobj;
1022 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1023 bool arg2 ;
1024 PyObject * obj0 = 0 ;
1025 PyObject * obj1 = 0 ;
1026 char *kwnames[] = {
1027 (char *) "self",(char *) "visible", NULL
1028 };
1029
1030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
1031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1033 arg2 = (bool) SWIG_AsBool(obj1);
1034 if (PyErr_Occurred()) SWIG_fail;
1035 {
1036 PyThreadState* __tstate = wxPyBeginAllowThreads();
1037 (arg1)->SetVisible(arg2);
1038
1039 wxPyEndAllowThreads(__tstate);
1040 if (PyErr_Occurred()) SWIG_fail;
1041 }
1042 Py_INCREF(Py_None); resultobj = Py_None;
1043 return resultobj;
1044 fail:
1045 return NULL;
1046 }
1047
1048
1049 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1050 PyObject *resultobj;
1051 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1052 bool result;
1053 PyObject * obj0 = 0 ;
1054 char *kwnames[] = {
1055 (char *) "self", NULL
1056 };
1057
1058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
1059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1061 {
1062 PyThreadState* __tstate = wxPyBeginAllowThreads();
1063 result = (bool)(arg1)->IsNull();
1064
1065 wxPyEndAllowThreads(__tstate);
1066 if (PyErr_Occurred()) SWIG_fail;
1067 }
1068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1069 return resultobj;
1070 fail:
1071 return NULL;
1072 }
1073
1074
1075 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
1076 PyObject *obj;
1077 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1078 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1079 Py_INCREF(obj);
1080 return Py_BuildValue((char *)"");
1081 }
1082 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1083 PyObject *resultobj;
1084 unsigned char arg1 = (unsigned char) 0 ;
1085 unsigned char arg2 = (unsigned char) 0 ;
1086 unsigned char arg3 = (unsigned char) 0 ;
1087 wxColour *result;
1088 PyObject * obj0 = 0 ;
1089 PyObject * obj1 = 0 ;
1090 PyObject * obj2 = 0 ;
1091 char *kwnames[] = {
1092 (char *) "red",(char *) "green",(char *) "blue", NULL
1093 };
1094
1095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1096 if (obj0) {
1097 arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0);
1098 if (PyErr_Occurred()) SWIG_fail;
1099 }
1100 if (obj1) {
1101 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1102 if (PyErr_Occurred()) SWIG_fail;
1103 }
1104 if (obj2) {
1105 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1106 if (PyErr_Occurred()) SWIG_fail;
1107 }
1108 {
1109 PyThreadState* __tstate = wxPyBeginAllowThreads();
1110 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1111
1112 wxPyEndAllowThreads(__tstate);
1113 if (PyErr_Occurred()) SWIG_fail;
1114 }
1115 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1116 return resultobj;
1117 fail:
1118 return NULL;
1119 }
1120
1121
1122 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1123 PyObject *resultobj;
1124 wxString *arg1 = 0 ;
1125 wxColour *result;
1126 bool temp1 = False ;
1127 PyObject * obj0 = 0 ;
1128 char *kwnames[] = {
1129 (char *) "colorName", NULL
1130 };
1131
1132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1133 {
1134 arg1 = wxString_in_helper(obj0);
1135 if (arg1 == NULL) SWIG_fail;
1136 temp1 = True;
1137 }
1138 {
1139 PyThreadState* __tstate = wxPyBeginAllowThreads();
1140 result = (wxColour *)new wxColour((wxString const &)*arg1);
1141
1142 wxPyEndAllowThreads(__tstate);
1143 if (PyErr_Occurred()) SWIG_fail;
1144 }
1145 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1146 {
1147 if (temp1)
1148 delete arg1;
1149 }
1150 return resultobj;
1151 fail:
1152 {
1153 if (temp1)
1154 delete arg1;
1155 }
1156 return NULL;
1157 }
1158
1159
1160 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1161 PyObject *resultobj;
1162 unsigned long arg1 ;
1163 wxColour *result;
1164 PyObject * obj0 = 0 ;
1165 char *kwnames[] = {
1166 (char *) "colRGB", NULL
1167 };
1168
1169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1170 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1171 if (PyErr_Occurred()) SWIG_fail;
1172 {
1173 PyThreadState* __tstate = wxPyBeginAllowThreads();
1174 result = (wxColour *)new wxColour(arg1);
1175
1176 wxPyEndAllowThreads(__tstate);
1177 if (PyErr_Occurred()) SWIG_fail;
1178 }
1179 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1180 return resultobj;
1181 fail:
1182 return NULL;
1183 }
1184
1185
1186 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1187 PyObject *resultobj;
1188 wxColour *arg1 = (wxColour *) 0 ;
1189 PyObject * obj0 = 0 ;
1190 char *kwnames[] = {
1191 (char *) "self", NULL
1192 };
1193
1194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1197 {
1198 PyThreadState* __tstate = wxPyBeginAllowThreads();
1199 delete arg1;
1200
1201 wxPyEndAllowThreads(__tstate);
1202 if (PyErr_Occurred()) SWIG_fail;
1203 }
1204 Py_INCREF(Py_None); resultobj = Py_None;
1205 return resultobj;
1206 fail:
1207 return NULL;
1208 }
1209
1210
1211 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1212 PyObject *resultobj;
1213 wxColour *arg1 = (wxColour *) 0 ;
1214 unsigned char result;
1215 PyObject * obj0 = 0 ;
1216 char *kwnames[] = {
1217 (char *) "self", NULL
1218 };
1219
1220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1223 {
1224 PyThreadState* __tstate = wxPyBeginAllowThreads();
1225 result = (unsigned char)(arg1)->Red();
1226
1227 wxPyEndAllowThreads(__tstate);
1228 if (PyErr_Occurred()) SWIG_fail;
1229 }
1230 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1231 return resultobj;
1232 fail:
1233 return NULL;
1234 }
1235
1236
1237 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1238 PyObject *resultobj;
1239 wxColour *arg1 = (wxColour *) 0 ;
1240 unsigned char result;
1241 PyObject * obj0 = 0 ;
1242 char *kwnames[] = {
1243 (char *) "self", NULL
1244 };
1245
1246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1249 {
1250 PyThreadState* __tstate = wxPyBeginAllowThreads();
1251 result = (unsigned char)(arg1)->Green();
1252
1253 wxPyEndAllowThreads(__tstate);
1254 if (PyErr_Occurred()) SWIG_fail;
1255 }
1256 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1257 return resultobj;
1258 fail:
1259 return NULL;
1260 }
1261
1262
1263 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1264 PyObject *resultobj;
1265 wxColour *arg1 = (wxColour *) 0 ;
1266 unsigned char result;
1267 PyObject * obj0 = 0 ;
1268 char *kwnames[] = {
1269 (char *) "self", NULL
1270 };
1271
1272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1275 {
1276 PyThreadState* __tstate = wxPyBeginAllowThreads();
1277 result = (unsigned char)(arg1)->Blue();
1278
1279 wxPyEndAllowThreads(__tstate);
1280 if (PyErr_Occurred()) SWIG_fail;
1281 }
1282 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1283 return resultobj;
1284 fail:
1285 return NULL;
1286 }
1287
1288
1289 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1290 PyObject *resultobj;
1291 wxColour *arg1 = (wxColour *) 0 ;
1292 bool result;
1293 PyObject * obj0 = 0 ;
1294 char *kwnames[] = {
1295 (char *) "self", NULL
1296 };
1297
1298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1301 {
1302 PyThreadState* __tstate = wxPyBeginAllowThreads();
1303 result = (bool)(arg1)->Ok();
1304
1305 wxPyEndAllowThreads(__tstate);
1306 if (PyErr_Occurred()) SWIG_fail;
1307 }
1308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1309 return resultobj;
1310 fail:
1311 return NULL;
1312 }
1313
1314
1315 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1316 PyObject *resultobj;
1317 wxColour *arg1 = (wxColour *) 0 ;
1318 unsigned char arg2 ;
1319 unsigned char arg3 ;
1320 unsigned char arg4 ;
1321 PyObject * obj0 = 0 ;
1322 PyObject * obj1 = 0 ;
1323 PyObject * obj2 = 0 ;
1324 PyObject * obj3 = 0 ;
1325 char *kwnames[] = {
1326 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1327 };
1328
1329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1332 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1333 if (PyErr_Occurred()) SWIG_fail;
1334 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1335 if (PyErr_Occurred()) SWIG_fail;
1336 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
1337 if (PyErr_Occurred()) SWIG_fail;
1338 {
1339 PyThreadState* __tstate = wxPyBeginAllowThreads();
1340 (arg1)->Set(arg2,arg3,arg4);
1341
1342 wxPyEndAllowThreads(__tstate);
1343 if (PyErr_Occurred()) SWIG_fail;
1344 }
1345 Py_INCREF(Py_None); resultobj = Py_None;
1346 return resultobj;
1347 fail:
1348 return NULL;
1349 }
1350
1351
1352 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1353 PyObject *resultobj;
1354 wxColour *arg1 = (wxColour *) 0 ;
1355 unsigned long arg2 ;
1356 PyObject * obj0 = 0 ;
1357 PyObject * obj1 = 0 ;
1358 char *kwnames[] = {
1359 (char *) "self",(char *) "colRGB", NULL
1360 };
1361
1362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1365 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1366 if (PyErr_Occurred()) SWIG_fail;
1367 {
1368 PyThreadState* __tstate = wxPyBeginAllowThreads();
1369 (arg1)->Set(arg2);
1370
1371 wxPyEndAllowThreads(__tstate);
1372 if (PyErr_Occurred()) SWIG_fail;
1373 }
1374 Py_INCREF(Py_None); resultobj = Py_None;
1375 return resultobj;
1376 fail:
1377 return NULL;
1378 }
1379
1380
1381 static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1382 PyObject *resultobj;
1383 wxColour *arg1 = (wxColour *) 0 ;
1384 wxString *arg2 = 0 ;
1385 bool temp2 = False ;
1386 PyObject * obj0 = 0 ;
1387 PyObject * obj1 = 0 ;
1388 char *kwnames[] = {
1389 (char *) "self",(char *) "colourName", NULL
1390 };
1391
1392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1395 {
1396 arg2 = wxString_in_helper(obj1);
1397 if (arg2 == NULL) SWIG_fail;
1398 temp2 = True;
1399 }
1400 {
1401 PyThreadState* __tstate = wxPyBeginAllowThreads();
1402 (arg1)->InitFromName((wxString const &)*arg2);
1403
1404 wxPyEndAllowThreads(__tstate);
1405 if (PyErr_Occurred()) SWIG_fail;
1406 }
1407 Py_INCREF(Py_None); resultobj = Py_None;
1408 {
1409 if (temp2)
1410 delete arg2;
1411 }
1412 return resultobj;
1413 fail:
1414 {
1415 if (temp2)
1416 delete arg2;
1417 }
1418 return NULL;
1419 }
1420
1421
1422 static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1423 PyObject *resultobj;
1424 wxColour *arg1 = (wxColour *) 0 ;
1425 long result;
1426 PyObject * obj0 = 0 ;
1427 char *kwnames[] = {
1428 (char *) "self", NULL
1429 };
1430
1431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1434 {
1435 PyThreadState* __tstate = wxPyBeginAllowThreads();
1436 result = (long)((wxColour const *)arg1)->GetPixel();
1437
1438 wxPyEndAllowThreads(__tstate);
1439 if (PyErr_Occurred()) SWIG_fail;
1440 }
1441 resultobj = SWIG_FromLong((long)result);
1442 return resultobj;
1443 fail:
1444 return NULL;
1445 }
1446
1447
1448 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1449 PyObject *resultobj;
1450 wxColour *arg1 = (wxColour *) 0 ;
1451 wxColour *arg2 = 0 ;
1452 bool result;
1453 wxColour temp2 ;
1454 PyObject * obj0 = 0 ;
1455 PyObject * obj1 = 0 ;
1456 char *kwnames[] = {
1457 (char *) "self",(char *) "colour", NULL
1458 };
1459
1460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1463 {
1464 arg2 = &temp2;
1465 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1466 }
1467 {
1468 PyThreadState* __tstate = wxPyBeginAllowThreads();
1469 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1470
1471 wxPyEndAllowThreads(__tstate);
1472 if (PyErr_Occurred()) SWIG_fail;
1473 }
1474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1475 return resultobj;
1476 fail:
1477 return NULL;
1478 }
1479
1480
1481 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1482 PyObject *resultobj;
1483 wxColour *arg1 = (wxColour *) 0 ;
1484 wxColour *arg2 = 0 ;
1485 bool result;
1486 wxColour temp2 ;
1487 PyObject * obj0 = 0 ;
1488 PyObject * obj1 = 0 ;
1489 char *kwnames[] = {
1490 (char *) "self",(char *) "colour", NULL
1491 };
1492
1493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1496 {
1497 arg2 = &temp2;
1498 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1499 }
1500 {
1501 PyThreadState* __tstate = wxPyBeginAllowThreads();
1502 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1503
1504 wxPyEndAllowThreads(__tstate);
1505 if (PyErr_Occurred()) SWIG_fail;
1506 }
1507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1508 return resultobj;
1509 fail:
1510 return NULL;
1511 }
1512
1513
1514 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1515 PyObject *resultobj;
1516 wxColour *arg1 = (wxColour *) 0 ;
1517 PyObject *result;
1518 PyObject * obj0 = 0 ;
1519 char *kwnames[] = {
1520 (char *) "self", NULL
1521 };
1522
1523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1526 {
1527 PyThreadState* __tstate = wxPyBeginAllowThreads();
1528 result = (PyObject *)wxColour_Get(arg1);
1529
1530 wxPyEndAllowThreads(__tstate);
1531 if (PyErr_Occurred()) SWIG_fail;
1532 }
1533 resultobj = result;
1534 return resultobj;
1535 fail:
1536 return NULL;
1537 }
1538
1539
1540 static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1541 PyObject *resultobj;
1542 wxColour *arg1 = (wxColour *) 0 ;
1543 unsigned long result;
1544 PyObject * obj0 = 0 ;
1545 char *kwnames[] = {
1546 (char *) "self", NULL
1547 };
1548
1549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1552 {
1553 PyThreadState* __tstate = wxPyBeginAllowThreads();
1554 result = (unsigned long)wxColour_GetRGB(arg1);
1555
1556 wxPyEndAllowThreads(__tstate);
1557 if (PyErr_Occurred()) SWIG_fail;
1558 }
1559 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
1560 return resultobj;
1561 fail:
1562 return NULL;
1563 }
1564
1565
1566 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1567 PyObject *obj;
1568 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1569 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1570 Py_INCREF(obj);
1571 return Py_BuildValue((char *)"");
1572 }
1573 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1574 PyObject *resultobj;
1575 int arg1 ;
1576 unsigned char *arg2 = (unsigned char *) 0 ;
1577 unsigned char *arg3 = (unsigned char *) 0 ;
1578 unsigned char *arg4 = (unsigned char *) 0 ;
1579 wxPalette *result;
1580 PyObject * obj0 = 0 ;
1581 PyObject * obj1 = 0 ;
1582 PyObject * obj2 = 0 ;
1583 PyObject * obj3 = 0 ;
1584 char *kwnames[] = {
1585 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1586 };
1587
1588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1589 arg1 = (int) SWIG_AsInt(obj0);
1590 if (PyErr_Occurred()) SWIG_fail;
1591 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1593 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1595 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1597 {
1598 PyThreadState* __tstate = wxPyBeginAllowThreads();
1599 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1600
1601 wxPyEndAllowThreads(__tstate);
1602 if (PyErr_Occurred()) SWIG_fail;
1603 }
1604 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1605 return resultobj;
1606 fail:
1607 return NULL;
1608 }
1609
1610
1611 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1612 PyObject *resultobj;
1613 wxPalette *arg1 = (wxPalette *) 0 ;
1614 PyObject * obj0 = 0 ;
1615 char *kwnames[] = {
1616 (char *) "self", NULL
1617 };
1618
1619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1622 {
1623 PyThreadState* __tstate = wxPyBeginAllowThreads();
1624 delete arg1;
1625
1626 wxPyEndAllowThreads(__tstate);
1627 if (PyErr_Occurred()) SWIG_fail;
1628 }
1629 Py_INCREF(Py_None); resultobj = Py_None;
1630 return resultobj;
1631 fail:
1632 return NULL;
1633 }
1634
1635
1636 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1637 PyObject *resultobj;
1638 wxPalette *arg1 = (wxPalette *) 0 ;
1639 byte arg2 ;
1640 byte arg3 ;
1641 byte arg4 ;
1642 int result;
1643 PyObject * obj0 = 0 ;
1644 PyObject * obj1 = 0 ;
1645 PyObject * obj2 = 0 ;
1646 PyObject * obj3 = 0 ;
1647 char *kwnames[] = {
1648 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1649 };
1650
1651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1654 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1655 if (PyErr_Occurred()) SWIG_fail;
1656 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1657 if (PyErr_Occurred()) SWIG_fail;
1658 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1659 if (PyErr_Occurred()) SWIG_fail;
1660 {
1661 PyThreadState* __tstate = wxPyBeginAllowThreads();
1662 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1663
1664 wxPyEndAllowThreads(__tstate);
1665 if (PyErr_Occurred()) SWIG_fail;
1666 }
1667 resultobj = SWIG_FromInt((int)result);
1668 return resultobj;
1669 fail:
1670 return NULL;
1671 }
1672
1673
1674 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1675 PyObject *resultobj;
1676 wxPalette *arg1 = (wxPalette *) 0 ;
1677 int arg2 ;
1678 byte *arg3 = (byte *) 0 ;
1679 byte *arg4 = (byte *) 0 ;
1680 byte *arg5 = (byte *) 0 ;
1681 bool result;
1682 byte temp3 ;
1683 byte temp4 ;
1684 byte temp5 ;
1685 PyObject * obj0 = 0 ;
1686 PyObject * obj1 = 0 ;
1687 char *kwnames[] = {
1688 (char *) "self",(char *) "pixel", NULL
1689 };
1690
1691 arg3 = &temp3;
1692 arg4 = &temp4;
1693 arg5 = &temp5;
1694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1697 arg2 = (int) SWIG_AsInt(obj1);
1698 if (PyErr_Occurred()) SWIG_fail;
1699 {
1700 PyThreadState* __tstate = wxPyBeginAllowThreads();
1701 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1702
1703 wxPyEndAllowThreads(__tstate);
1704 if (PyErr_Occurred()) SWIG_fail;
1705 }
1706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
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 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1745 return resultobj;
1746 fail:
1747 return NULL;
1748 }
1749
1750
1751 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1752 PyObject *obj;
1753 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1754 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1755 Py_INCREF(obj);
1756 return Py_BuildValue((char *)"");
1757 }
1758 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1759 PyObject *resultobj;
1760 wxColour *arg1 = 0 ;
1761 int arg2 = (int) 1 ;
1762 int arg3 = (int) wxSOLID ;
1763 wxPen *result;
1764 wxColour temp1 ;
1765 PyObject * obj0 = 0 ;
1766 PyObject * obj1 = 0 ;
1767 PyObject * obj2 = 0 ;
1768 char *kwnames[] = {
1769 (char *) "colour",(char *) "width",(char *) "style", NULL
1770 };
1771
1772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1773 {
1774 arg1 = &temp1;
1775 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1776 }
1777 if (obj1) {
1778 arg2 = (int) SWIG_AsInt(obj1);
1779 if (PyErr_Occurred()) SWIG_fail;
1780 }
1781 if (obj2) {
1782 arg3 = (int) SWIG_AsInt(obj2);
1783 if (PyErr_Occurred()) SWIG_fail;
1784 }
1785 {
1786 PyThreadState* __tstate = wxPyBeginAllowThreads();
1787 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1788
1789 wxPyEndAllowThreads(__tstate);
1790 if (PyErr_Occurred()) SWIG_fail;
1791 }
1792 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1793 return resultobj;
1794 fail:
1795 return NULL;
1796 }
1797
1798
1799 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1800 PyObject *resultobj;
1801 wxPen *arg1 = (wxPen *) 0 ;
1802 PyObject * obj0 = 0 ;
1803 char *kwnames[] = {
1804 (char *) "self", NULL
1805 };
1806
1807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1810 {
1811 PyThreadState* __tstate = wxPyBeginAllowThreads();
1812 delete arg1;
1813
1814 wxPyEndAllowThreads(__tstate);
1815 if (PyErr_Occurred()) SWIG_fail;
1816 }
1817 Py_INCREF(Py_None); resultobj = Py_None;
1818 return resultobj;
1819 fail:
1820 return NULL;
1821 }
1822
1823
1824 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1825 PyObject *resultobj;
1826 wxPen *arg1 = (wxPen *) 0 ;
1827 int result;
1828 PyObject * obj0 = 0 ;
1829 char *kwnames[] = {
1830 (char *) "self", NULL
1831 };
1832
1833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1836 {
1837 PyThreadState* __tstate = wxPyBeginAllowThreads();
1838 result = (int)(arg1)->GetCap();
1839
1840 wxPyEndAllowThreads(__tstate);
1841 if (PyErr_Occurred()) SWIG_fail;
1842 }
1843 resultobj = SWIG_FromInt((int)result);
1844 return resultobj;
1845 fail:
1846 return NULL;
1847 }
1848
1849
1850 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1851 PyObject *resultobj;
1852 wxPen *arg1 = (wxPen *) 0 ;
1853 wxColour result;
1854 PyObject * obj0 = 0 ;
1855 char *kwnames[] = {
1856 (char *) "self", NULL
1857 };
1858
1859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1862 {
1863 PyThreadState* __tstate = wxPyBeginAllowThreads();
1864 result = (arg1)->GetColour();
1865
1866 wxPyEndAllowThreads(__tstate);
1867 if (PyErr_Occurred()) SWIG_fail;
1868 }
1869 {
1870 wxColour * resultptr;
1871 resultptr = new wxColour((wxColour &) result);
1872 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1873 }
1874 return resultobj;
1875 fail:
1876 return NULL;
1877 }
1878
1879
1880 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1881 PyObject *resultobj;
1882 wxPen *arg1 = (wxPen *) 0 ;
1883 int result;
1884 PyObject * obj0 = 0 ;
1885 char *kwnames[] = {
1886 (char *) "self", NULL
1887 };
1888
1889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1892 {
1893 PyThreadState* __tstate = wxPyBeginAllowThreads();
1894 result = (int)(arg1)->GetJoin();
1895
1896 wxPyEndAllowThreads(__tstate);
1897 if (PyErr_Occurred()) SWIG_fail;
1898 }
1899 resultobj = SWIG_FromInt((int)result);
1900 return resultobj;
1901 fail:
1902 return NULL;
1903 }
1904
1905
1906 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1907 PyObject *resultobj;
1908 wxPen *arg1 = (wxPen *) 0 ;
1909 int result;
1910 PyObject * obj0 = 0 ;
1911 char *kwnames[] = {
1912 (char *) "self", NULL
1913 };
1914
1915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1918 {
1919 PyThreadState* __tstate = wxPyBeginAllowThreads();
1920 result = (int)(arg1)->GetStyle();
1921
1922 wxPyEndAllowThreads(__tstate);
1923 if (PyErr_Occurred()) SWIG_fail;
1924 }
1925 resultobj = SWIG_FromInt((int)result);
1926 return resultobj;
1927 fail:
1928 return NULL;
1929 }
1930
1931
1932 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1933 PyObject *resultobj;
1934 wxPen *arg1 = (wxPen *) 0 ;
1935 int result;
1936 PyObject * obj0 = 0 ;
1937 char *kwnames[] = {
1938 (char *) "self", NULL
1939 };
1940
1941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1944 {
1945 PyThreadState* __tstate = wxPyBeginAllowThreads();
1946 result = (int)(arg1)->GetWidth();
1947
1948 wxPyEndAllowThreads(__tstate);
1949 if (PyErr_Occurred()) SWIG_fail;
1950 }
1951 resultobj = SWIG_FromInt((int)result);
1952 return resultobj;
1953 fail:
1954 return NULL;
1955 }
1956
1957
1958 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1959 PyObject *resultobj;
1960 wxPen *arg1 = (wxPen *) 0 ;
1961 bool result;
1962 PyObject * obj0 = 0 ;
1963 char *kwnames[] = {
1964 (char *) "self", NULL
1965 };
1966
1967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1970 {
1971 PyThreadState* __tstate = wxPyBeginAllowThreads();
1972 result = (bool)(arg1)->Ok();
1973
1974 wxPyEndAllowThreads(__tstate);
1975 if (PyErr_Occurred()) SWIG_fail;
1976 }
1977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1978 return resultobj;
1979 fail:
1980 return NULL;
1981 }
1982
1983
1984 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1985 PyObject *resultobj;
1986 wxPen *arg1 = (wxPen *) 0 ;
1987 int arg2 ;
1988 PyObject * obj0 = 0 ;
1989 PyObject * obj1 = 0 ;
1990 char *kwnames[] = {
1991 (char *) "self",(char *) "cap_style", NULL
1992 };
1993
1994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1997 arg2 = (int) SWIG_AsInt(obj1);
1998 if (PyErr_Occurred()) SWIG_fail;
1999 {
2000 PyThreadState* __tstate = wxPyBeginAllowThreads();
2001 (arg1)->SetCap(arg2);
2002
2003 wxPyEndAllowThreads(__tstate);
2004 if (PyErr_Occurred()) SWIG_fail;
2005 }
2006 Py_INCREF(Py_None); resultobj = Py_None;
2007 return resultobj;
2008 fail:
2009 return NULL;
2010 }
2011
2012
2013 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2014 PyObject *resultobj;
2015 wxPen *arg1 = (wxPen *) 0 ;
2016 wxColour *arg2 = 0 ;
2017 wxColour temp2 ;
2018 PyObject * obj0 = 0 ;
2019 PyObject * obj1 = 0 ;
2020 char *kwnames[] = {
2021 (char *) "self",(char *) "colour", NULL
2022 };
2023
2024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
2025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2027 {
2028 arg2 = &temp2;
2029 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2030 }
2031 {
2032 PyThreadState* __tstate = wxPyBeginAllowThreads();
2033 (arg1)->SetColour(*arg2);
2034
2035 wxPyEndAllowThreads(__tstate);
2036 if (PyErr_Occurred()) SWIG_fail;
2037 }
2038 Py_INCREF(Py_None); resultobj = Py_None;
2039 return resultobj;
2040 fail:
2041 return NULL;
2042 }
2043
2044
2045 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
2046 PyObject *resultobj;
2047 wxPen *arg1 = (wxPen *) 0 ;
2048 int arg2 ;
2049 PyObject * obj0 = 0 ;
2050 PyObject * obj1 = 0 ;
2051 char *kwnames[] = {
2052 (char *) "self",(char *) "join_style", NULL
2053 };
2054
2055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2058 arg2 = (int) SWIG_AsInt(obj1);
2059 if (PyErr_Occurred()) SWIG_fail;
2060 {
2061 PyThreadState* __tstate = wxPyBeginAllowThreads();
2062 (arg1)->SetJoin(arg2);
2063
2064 wxPyEndAllowThreads(__tstate);
2065 if (PyErr_Occurred()) SWIG_fail;
2066 }
2067 Py_INCREF(Py_None); resultobj = Py_None;
2068 return resultobj;
2069 fail:
2070 return NULL;
2071 }
2072
2073
2074 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2075 PyObject *resultobj;
2076 wxPen *arg1 = (wxPen *) 0 ;
2077 int arg2 ;
2078 PyObject * obj0 = 0 ;
2079 PyObject * obj1 = 0 ;
2080 char *kwnames[] = {
2081 (char *) "self",(char *) "style", NULL
2082 };
2083
2084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2087 arg2 = (int) SWIG_AsInt(obj1);
2088 if (PyErr_Occurred()) SWIG_fail;
2089 {
2090 PyThreadState* __tstate = wxPyBeginAllowThreads();
2091 (arg1)->SetStyle(arg2);
2092
2093 wxPyEndAllowThreads(__tstate);
2094 if (PyErr_Occurred()) SWIG_fail;
2095 }
2096 Py_INCREF(Py_None); resultobj = Py_None;
2097 return resultobj;
2098 fail:
2099 return NULL;
2100 }
2101
2102
2103 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2104 PyObject *resultobj;
2105 wxPen *arg1 = (wxPen *) 0 ;
2106 int arg2 ;
2107 PyObject * obj0 = 0 ;
2108 PyObject * obj1 = 0 ;
2109 char *kwnames[] = {
2110 (char *) "self",(char *) "width", NULL
2111 };
2112
2113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2116 arg2 = (int) SWIG_AsInt(obj1);
2117 if (PyErr_Occurred()) SWIG_fail;
2118 {
2119 PyThreadState* __tstate = wxPyBeginAllowThreads();
2120 (arg1)->SetWidth(arg2);
2121
2122 wxPyEndAllowThreads(__tstate);
2123 if (PyErr_Occurred()) SWIG_fail;
2124 }
2125 Py_INCREF(Py_None); resultobj = Py_None;
2126 return resultobj;
2127 fail:
2128 return NULL;
2129 }
2130
2131
2132 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2133 PyObject *resultobj;
2134 wxPen *arg1 = (wxPen *) 0 ;
2135 int arg2 ;
2136 wxDash *arg3 = (wxDash *) 0 ;
2137 PyObject * obj0 = 0 ;
2138 PyObject * obj1 = 0 ;
2139 char *kwnames[] = {
2140 (char *) "self",(char *) "dashes", NULL
2141 };
2142
2143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2146 {
2147 arg2 = PyList_Size(obj1);
2148 arg3 = (wxDash*)byte_LIST_helper(obj1);
2149 if (arg3 == NULL) SWIG_fail;
2150 }
2151 {
2152 PyThreadState* __tstate = wxPyBeginAllowThreads();
2153 (arg1)->SetDashes(arg2,arg3);
2154
2155 wxPyEndAllowThreads(__tstate);
2156 if (PyErr_Occurred()) SWIG_fail;
2157 }
2158 Py_INCREF(Py_None); resultobj = Py_None;
2159 {
2160 if (arg3) delete [] arg3;
2161 }
2162 return resultobj;
2163 fail:
2164 {
2165 if (arg3) delete [] arg3;
2166 }
2167 return NULL;
2168 }
2169
2170
2171 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2172 PyObject *resultobj;
2173 wxPen *arg1 = (wxPen *) 0 ;
2174 PyObject *result;
2175 PyObject * obj0 = 0 ;
2176 char *kwnames[] = {
2177 (char *) "self", NULL
2178 };
2179
2180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2183 {
2184 PyThreadState* __tstate = wxPyBeginAllowThreads();
2185 result = (PyObject *)wxPen_GetDashes(arg1);
2186
2187 wxPyEndAllowThreads(__tstate);
2188 if (PyErr_Occurred()) SWIG_fail;
2189 }
2190 resultobj = result;
2191 return resultobj;
2192 fail:
2193 return NULL;
2194 }
2195
2196
2197 static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2198 PyObject *resultobj;
2199 wxPen *arg1 = (wxPen *) 0 ;
2200 wxPen *arg2 = (wxPen *) 0 ;
2201 bool result;
2202 PyObject * obj0 = 0 ;
2203 PyObject * obj1 = 0 ;
2204 char *kwnames[] = {
2205 (char *) "self",(char *) "other", NULL
2206 };
2207
2208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2211 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2213 {
2214 PyThreadState* __tstate = wxPyBeginAllowThreads();
2215 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2216
2217 wxPyEndAllowThreads(__tstate);
2218 if (PyErr_Occurred()) SWIG_fail;
2219 }
2220 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2221 return resultobj;
2222 fail:
2223 return NULL;
2224 }
2225
2226
2227 static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2228 PyObject *resultobj;
2229 wxPen *arg1 = (wxPen *) 0 ;
2230 wxPen *arg2 = (wxPen *) 0 ;
2231 bool result;
2232 PyObject * obj0 = 0 ;
2233 PyObject * obj1 = 0 ;
2234 char *kwnames[] = {
2235 (char *) "self",(char *) "other", NULL
2236 };
2237
2238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2241 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2243 {
2244 PyThreadState* __tstate = wxPyBeginAllowThreads();
2245 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2246
2247 wxPyEndAllowThreads(__tstate);
2248 if (PyErr_Occurred()) SWIG_fail;
2249 }
2250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2251 return resultobj;
2252 fail:
2253 return NULL;
2254 }
2255
2256
2257 static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
2258 PyObject *resultobj;
2259 wxPen *arg1 = (wxPen *) 0 ;
2260 int result;
2261 PyObject * obj0 = 0 ;
2262 char *kwnames[] = {
2263 (char *) "self", NULL
2264 };
2265
2266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
2267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2269 {
2270 PyThreadState* __tstate = wxPyBeginAllowThreads();
2271 result = (int)((wxPen const *)arg1)->GetDashCount();
2272
2273 wxPyEndAllowThreads(__tstate);
2274 if (PyErr_Occurred()) SWIG_fail;
2275 }
2276 resultobj = SWIG_FromInt((int)result);
2277 return resultobj;
2278 fail:
2279 return NULL;
2280 }
2281
2282
2283 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
2284 PyObject *obj;
2285 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2286 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2287 Py_INCREF(obj);
2288 return Py_BuildValue((char *)"");
2289 }
2290 static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2291 PyObject *resultobj;
2292 wxColour *arg1 = 0 ;
2293 int arg2 = (int) 1 ;
2294 int arg3 = (int) wxSOLID ;
2295 wxPyPen *result;
2296 wxColour temp1 ;
2297 PyObject * obj0 = 0 ;
2298 PyObject * obj1 = 0 ;
2299 PyObject * obj2 = 0 ;
2300 char *kwnames[] = {
2301 (char *) "colour",(char *) "width",(char *) "style", NULL
2302 };
2303
2304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail;
2305 {
2306 arg1 = &temp1;
2307 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2308 }
2309 if (obj1) {
2310 arg2 = (int) SWIG_AsInt(obj1);
2311 if (PyErr_Occurred()) SWIG_fail;
2312 }
2313 if (obj2) {
2314 arg3 = (int) SWIG_AsInt(obj2);
2315 if (PyErr_Occurred()) SWIG_fail;
2316 }
2317 {
2318 PyThreadState* __tstate = wxPyBeginAllowThreads();
2319 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
2320
2321 wxPyEndAllowThreads(__tstate);
2322 if (PyErr_Occurred()) SWIG_fail;
2323 }
2324 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPen, 1);
2325 return resultobj;
2326 fail:
2327 return NULL;
2328 }
2329
2330
2331 static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2332 PyObject *resultobj;
2333 wxPyPen *arg1 = (wxPyPen *) 0 ;
2334 PyObject * obj0 = 0 ;
2335 char *kwnames[] = {
2336 (char *) "self", NULL
2337 };
2338
2339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
2340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2342 {
2343 PyThreadState* __tstate = wxPyBeginAllowThreads();
2344 delete arg1;
2345
2346 wxPyEndAllowThreads(__tstate);
2347 if (PyErr_Occurred()) SWIG_fail;
2348 }
2349 Py_INCREF(Py_None); resultobj = Py_None;
2350 return resultobj;
2351 fail:
2352 return NULL;
2353 }
2354
2355
2356 static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2357 PyObject *resultobj;
2358 wxPyPen *arg1 = (wxPyPen *) 0 ;
2359 int arg2 ;
2360 wxDash *arg3 = (wxDash *) 0 ;
2361 PyObject * obj0 = 0 ;
2362 PyObject * obj1 = 0 ;
2363 char *kwnames[] = {
2364 (char *) "self",(char *) "dashes", NULL
2365 };
2366
2367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2370 {
2371 arg2 = PyList_Size(obj1);
2372 arg3 = (wxDash*)byte_LIST_helper(obj1);
2373 if (arg3 == NULL) SWIG_fail;
2374 }
2375 {
2376 PyThreadState* __tstate = wxPyBeginAllowThreads();
2377 (arg1)->SetDashes(arg2,arg3);
2378
2379 wxPyEndAllowThreads(__tstate);
2380 if (PyErr_Occurred()) SWIG_fail;
2381 }
2382 Py_INCREF(Py_None); resultobj = Py_None;
2383 {
2384 if (arg3) delete [] arg3;
2385 }
2386 return resultobj;
2387 fail:
2388 {
2389 if (arg3) delete [] arg3;
2390 }
2391 return NULL;
2392 }
2393
2394
2395 static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
2396 PyObject *obj;
2397 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2398 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
2399 Py_INCREF(obj);
2400 return Py_BuildValue((char *)"");
2401 }
2402 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2403 PyObject *resultobj;
2404 wxColour *arg1 = 0 ;
2405 int arg2 = (int) wxSOLID ;
2406 wxBrush *result;
2407 wxColour temp1 ;
2408 PyObject * obj0 = 0 ;
2409 PyObject * obj1 = 0 ;
2410 char *kwnames[] = {
2411 (char *) "colour",(char *) "style", NULL
2412 };
2413
2414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2415 {
2416 arg1 = &temp1;
2417 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2418 }
2419 if (obj1) {
2420 arg2 = (int) SWIG_AsInt(obj1);
2421 if (PyErr_Occurred()) SWIG_fail;
2422 }
2423 {
2424 PyThreadState* __tstate = wxPyBeginAllowThreads();
2425 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2426
2427 wxPyEndAllowThreads(__tstate);
2428 if (PyErr_Occurred()) SWIG_fail;
2429 }
2430 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2431 return resultobj;
2432 fail:
2433 return NULL;
2434 }
2435
2436
2437 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2438 PyObject *resultobj;
2439 wxBrush *arg1 = (wxBrush *) 0 ;
2440 PyObject * obj0 = 0 ;
2441 char *kwnames[] = {
2442 (char *) "self", NULL
2443 };
2444
2445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2448 {
2449 PyThreadState* __tstate = wxPyBeginAllowThreads();
2450 delete arg1;
2451
2452 wxPyEndAllowThreads(__tstate);
2453 if (PyErr_Occurred()) SWIG_fail;
2454 }
2455 Py_INCREF(Py_None); resultobj = Py_None;
2456 return resultobj;
2457 fail:
2458 return NULL;
2459 }
2460
2461
2462 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2463 PyObject *resultobj;
2464 wxBrush *arg1 = (wxBrush *) 0 ;
2465 wxColour *arg2 = 0 ;
2466 wxColour temp2 ;
2467 PyObject * obj0 = 0 ;
2468 PyObject * obj1 = 0 ;
2469 char *kwnames[] = {
2470 (char *) "self",(char *) "col", NULL
2471 };
2472
2473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2476 {
2477 arg2 = &temp2;
2478 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2479 }
2480 {
2481 PyThreadState* __tstate = wxPyBeginAllowThreads();
2482 (arg1)->SetColour((wxColour const &)*arg2);
2483
2484 wxPyEndAllowThreads(__tstate);
2485 if (PyErr_Occurred()) SWIG_fail;
2486 }
2487 Py_INCREF(Py_None); resultobj = Py_None;
2488 return resultobj;
2489 fail:
2490 return NULL;
2491 }
2492
2493
2494 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2495 PyObject *resultobj;
2496 wxBrush *arg1 = (wxBrush *) 0 ;
2497 int arg2 ;
2498 PyObject * obj0 = 0 ;
2499 PyObject * obj1 = 0 ;
2500 char *kwnames[] = {
2501 (char *) "self",(char *) "style", NULL
2502 };
2503
2504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2507 arg2 = (int) SWIG_AsInt(obj1);
2508 if (PyErr_Occurred()) SWIG_fail;
2509 {
2510 PyThreadState* __tstate = wxPyBeginAllowThreads();
2511 (arg1)->SetStyle(arg2);
2512
2513 wxPyEndAllowThreads(__tstate);
2514 if (PyErr_Occurred()) SWIG_fail;
2515 }
2516 Py_INCREF(Py_None); resultobj = Py_None;
2517 return resultobj;
2518 fail:
2519 return NULL;
2520 }
2521
2522
2523 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2524 PyObject *resultobj;
2525 wxBrush *arg1 = (wxBrush *) 0 ;
2526 wxBitmap *arg2 = 0 ;
2527 PyObject * obj0 = 0 ;
2528 PyObject * obj1 = 0 ;
2529 char *kwnames[] = {
2530 (char *) "self",(char *) "stipple", NULL
2531 };
2532
2533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2536 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2537 SWIG_POINTER_EXCEPTION | 0)) == -1)
2538 SWIG_fail;
2539 if (arg2 == NULL) {
2540 PyErr_SetString(PyExc_TypeError,"null reference");
2541 SWIG_fail;
2542 }
2543 {
2544 PyThreadState* __tstate = wxPyBeginAllowThreads();
2545 (arg1)->SetStipple((wxBitmap const &)*arg2);
2546
2547 wxPyEndAllowThreads(__tstate);
2548 if (PyErr_Occurred()) SWIG_fail;
2549 }
2550 Py_INCREF(Py_None); resultobj = Py_None;
2551 return resultobj;
2552 fail:
2553 return NULL;
2554 }
2555
2556
2557 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2558 PyObject *resultobj;
2559 wxBrush *arg1 = (wxBrush *) 0 ;
2560 wxColour result;
2561 PyObject * obj0 = 0 ;
2562 char *kwnames[] = {
2563 (char *) "self", NULL
2564 };
2565
2566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2569 {
2570 PyThreadState* __tstate = wxPyBeginAllowThreads();
2571 result = ((wxBrush const *)arg1)->GetColour();
2572
2573 wxPyEndAllowThreads(__tstate);
2574 if (PyErr_Occurred()) SWIG_fail;
2575 }
2576 {
2577 wxColour * resultptr;
2578 resultptr = new wxColour((wxColour &) result);
2579 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2580 }
2581 return resultobj;
2582 fail:
2583 return NULL;
2584 }
2585
2586
2587 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2588 PyObject *resultobj;
2589 wxBrush *arg1 = (wxBrush *) 0 ;
2590 int result;
2591 PyObject * obj0 = 0 ;
2592 char *kwnames[] = {
2593 (char *) "self", NULL
2594 };
2595
2596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2599 {
2600 PyThreadState* __tstate = wxPyBeginAllowThreads();
2601 result = (int)((wxBrush const *)arg1)->GetStyle();
2602
2603 wxPyEndAllowThreads(__tstate);
2604 if (PyErr_Occurred()) SWIG_fail;
2605 }
2606 resultobj = SWIG_FromInt((int)result);
2607 return resultobj;
2608 fail:
2609 return NULL;
2610 }
2611
2612
2613 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2614 PyObject *resultobj;
2615 wxBrush *arg1 = (wxBrush *) 0 ;
2616 wxBitmap *result;
2617 PyObject * obj0 = 0 ;
2618 char *kwnames[] = {
2619 (char *) "self", NULL
2620 };
2621
2622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2625 {
2626 PyThreadState* __tstate = wxPyBeginAllowThreads();
2627 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2628
2629 wxPyEndAllowThreads(__tstate);
2630 if (PyErr_Occurred()) SWIG_fail;
2631 }
2632 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2633 return resultobj;
2634 fail:
2635 return NULL;
2636 }
2637
2638
2639 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2640 PyObject *resultobj;
2641 wxBrush *arg1 = (wxBrush *) 0 ;
2642 bool result;
2643 PyObject * obj0 = 0 ;
2644 char *kwnames[] = {
2645 (char *) "self", NULL
2646 };
2647
2648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2651 {
2652 PyThreadState* __tstate = wxPyBeginAllowThreads();
2653 result = (bool)(arg1)->Ok();
2654
2655 wxPyEndAllowThreads(__tstate);
2656 if (PyErr_Occurred()) SWIG_fail;
2657 }
2658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2659 return resultobj;
2660 fail:
2661 return NULL;
2662 }
2663
2664
2665 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2666 PyObject *obj;
2667 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2668 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2669 Py_INCREF(obj);
2670 return Py_BuildValue((char *)"");
2671 }
2672 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2673 PyObject *resultobj;
2674 wxString *arg1 = 0 ;
2675 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2676 wxBitmap *result;
2677 bool temp1 = False ;
2678 PyObject * obj0 = 0 ;
2679 PyObject * obj1 = 0 ;
2680 char *kwnames[] = {
2681 (char *) "name",(char *) "type", NULL
2682 };
2683
2684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2685 {
2686 arg1 = wxString_in_helper(obj0);
2687 if (arg1 == NULL) SWIG_fail;
2688 temp1 = True;
2689 }
2690 if (obj1) {
2691 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2692 if (PyErr_Occurred()) SWIG_fail;
2693 }
2694 {
2695 PyThreadState* __tstate = wxPyBeginAllowThreads();
2696 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2697
2698 wxPyEndAllowThreads(__tstate);
2699 if (PyErr_Occurred()) SWIG_fail;
2700 }
2701 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2702 {
2703 if (temp1)
2704 delete arg1;
2705 }
2706 return resultobj;
2707 fail:
2708 {
2709 if (temp1)
2710 delete arg1;
2711 }
2712 return NULL;
2713 }
2714
2715
2716 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2717 PyObject *resultobj;
2718 wxBitmap *arg1 = (wxBitmap *) 0 ;
2719 PyObject * obj0 = 0 ;
2720 char *kwnames[] = {
2721 (char *) "self", NULL
2722 };
2723
2724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2727 {
2728 PyThreadState* __tstate = wxPyBeginAllowThreads();
2729 delete arg1;
2730
2731 wxPyEndAllowThreads(__tstate);
2732 if (PyErr_Occurred()) SWIG_fail;
2733 }
2734 Py_INCREF(Py_None); resultobj = Py_None;
2735 return resultobj;
2736 fail:
2737 return NULL;
2738 }
2739
2740
2741 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2742 PyObject *resultobj;
2743 int arg1 ;
2744 int arg2 ;
2745 int arg3 = (int) -1 ;
2746 wxBitmap *result;
2747 PyObject * obj0 = 0 ;
2748 PyObject * obj1 = 0 ;
2749 PyObject * obj2 = 0 ;
2750 char *kwnames[] = {
2751 (char *) "width",(char *) "height",(char *) "depth", NULL
2752 };
2753
2754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2755 arg1 = (int) SWIG_AsInt(obj0);
2756 if (PyErr_Occurred()) SWIG_fail;
2757 arg2 = (int) SWIG_AsInt(obj1);
2758 if (PyErr_Occurred()) SWIG_fail;
2759 if (obj2) {
2760 arg3 = (int) SWIG_AsInt(obj2);
2761 if (PyErr_Occurred()) SWIG_fail;
2762 }
2763 {
2764 PyThreadState* __tstate = wxPyBeginAllowThreads();
2765 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2766
2767 wxPyEndAllowThreads(__tstate);
2768 if (PyErr_Occurred()) SWIG_fail;
2769 }
2770 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2771 return resultobj;
2772 fail:
2773 return NULL;
2774 }
2775
2776
2777 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2778 PyObject *resultobj;
2779 wxIcon *arg1 = 0 ;
2780 wxBitmap *result;
2781 PyObject * obj0 = 0 ;
2782 char *kwnames[] = {
2783 (char *) "icon", NULL
2784 };
2785
2786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2788 SWIG_POINTER_EXCEPTION | 0)) == -1)
2789 SWIG_fail;
2790 if (arg1 == NULL) {
2791 PyErr_SetString(PyExc_TypeError,"null reference");
2792 SWIG_fail;
2793 }
2794 {
2795 PyThreadState* __tstate = wxPyBeginAllowThreads();
2796 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2797
2798 wxPyEndAllowThreads(__tstate);
2799 if (PyErr_Occurred()) SWIG_fail;
2800 }
2801 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2802 return resultobj;
2803 fail:
2804 return NULL;
2805 }
2806
2807
2808 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2809 PyObject *resultobj;
2810 wxImage *arg1 = 0 ;
2811 int arg2 = (int) -1 ;
2812 wxBitmap *result;
2813 PyObject * obj0 = 0 ;
2814 PyObject * obj1 = 0 ;
2815 char *kwnames[] = {
2816 (char *) "image",(char *) "depth", NULL
2817 };
2818
2819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2821 SWIG_POINTER_EXCEPTION | 0)) == -1)
2822 SWIG_fail;
2823 if (arg1 == NULL) {
2824 PyErr_SetString(PyExc_TypeError,"null reference");
2825 SWIG_fail;
2826 }
2827 if (obj1) {
2828 arg2 = (int) SWIG_AsInt(obj1);
2829 if (PyErr_Occurred()) SWIG_fail;
2830 }
2831 {
2832 PyThreadState* __tstate = wxPyBeginAllowThreads();
2833 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2834
2835 wxPyEndAllowThreads(__tstate);
2836 if (PyErr_Occurred()) SWIG_fail;
2837 }
2838 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2839 return resultobj;
2840 fail:
2841 return NULL;
2842 }
2843
2844
2845 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2846 PyObject *resultobj;
2847 PyObject *arg1 = (PyObject *) 0 ;
2848 wxBitmap *result;
2849 PyObject * obj0 = 0 ;
2850 char *kwnames[] = {
2851 (char *) "listOfStrings", NULL
2852 };
2853
2854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2855 arg1 = obj0;
2856 {
2857 PyThreadState* __tstate = wxPyBeginAllowThreads();
2858 result = (wxBitmap *)new_wxBitmap(arg1);
2859
2860 wxPyEndAllowThreads(__tstate);
2861 if (PyErr_Occurred()) SWIG_fail;
2862 }
2863 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2864 return resultobj;
2865 fail:
2866 return NULL;
2867 }
2868
2869
2870 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2871 PyObject *resultobj;
2872 PyObject *arg1 = (PyObject *) 0 ;
2873 int arg2 ;
2874 int arg3 ;
2875 int arg4 = (int) 1 ;
2876 wxBitmap *result;
2877 PyObject * obj0 = 0 ;
2878 PyObject * obj1 = 0 ;
2879 PyObject * obj2 = 0 ;
2880 PyObject * obj3 = 0 ;
2881 char *kwnames[] = {
2882 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2883 };
2884
2885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2886 arg1 = obj0;
2887 arg2 = (int) SWIG_AsInt(obj1);
2888 if (PyErr_Occurred()) SWIG_fail;
2889 arg3 = (int) SWIG_AsInt(obj2);
2890 if (PyErr_Occurred()) SWIG_fail;
2891 if (obj3) {
2892 arg4 = (int) SWIG_AsInt(obj3);
2893 if (PyErr_Occurred()) SWIG_fail;
2894 }
2895 {
2896 PyThreadState* __tstate = wxPyBeginAllowThreads();
2897 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2898
2899 wxPyEndAllowThreads(__tstate);
2900 if (PyErr_Occurred()) SWIG_fail;
2901 }
2902 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2903 return resultobj;
2904 fail:
2905 return NULL;
2906 }
2907
2908
2909 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2910 PyObject *resultobj;
2911 wxBitmap *arg1 = (wxBitmap *) 0 ;
2912 bool result;
2913 PyObject * obj0 = 0 ;
2914 char *kwnames[] = {
2915 (char *) "self", NULL
2916 };
2917
2918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2921 {
2922 PyThreadState* __tstate = wxPyBeginAllowThreads();
2923 result = (bool)(arg1)->Ok();
2924
2925 wxPyEndAllowThreads(__tstate);
2926 if (PyErr_Occurred()) SWIG_fail;
2927 }
2928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2929 return resultobj;
2930 fail:
2931 return NULL;
2932 }
2933
2934
2935 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2936 PyObject *resultobj;
2937 wxBitmap *arg1 = (wxBitmap *) 0 ;
2938 int result;
2939 PyObject * obj0 = 0 ;
2940 char *kwnames[] = {
2941 (char *) "self", NULL
2942 };
2943
2944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2947 {
2948 PyThreadState* __tstate = wxPyBeginAllowThreads();
2949 result = (int)(arg1)->GetWidth();
2950
2951 wxPyEndAllowThreads(__tstate);
2952 if (PyErr_Occurred()) SWIG_fail;
2953 }
2954 resultobj = SWIG_FromInt((int)result);
2955 return resultobj;
2956 fail:
2957 return NULL;
2958 }
2959
2960
2961 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2962 PyObject *resultobj;
2963 wxBitmap *arg1 = (wxBitmap *) 0 ;
2964 int result;
2965 PyObject * obj0 = 0 ;
2966 char *kwnames[] = {
2967 (char *) "self", NULL
2968 };
2969
2970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2973 {
2974 PyThreadState* __tstate = wxPyBeginAllowThreads();
2975 result = (int)(arg1)->GetHeight();
2976
2977 wxPyEndAllowThreads(__tstate);
2978 if (PyErr_Occurred()) SWIG_fail;
2979 }
2980 resultobj = SWIG_FromInt((int)result);
2981 return resultobj;
2982 fail:
2983 return NULL;
2984 }
2985
2986
2987 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2988 PyObject *resultobj;
2989 wxBitmap *arg1 = (wxBitmap *) 0 ;
2990 int result;
2991 PyObject * obj0 = 0 ;
2992 char *kwnames[] = {
2993 (char *) "self", NULL
2994 };
2995
2996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2999 {
3000 PyThreadState* __tstate = wxPyBeginAllowThreads();
3001 result = (int)(arg1)->GetDepth();
3002
3003 wxPyEndAllowThreads(__tstate);
3004 if (PyErr_Occurred()) SWIG_fail;
3005 }
3006 resultobj = SWIG_FromInt((int)result);
3007 return resultobj;
3008 fail:
3009 return NULL;
3010 }
3011
3012
3013 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3014 PyObject *resultobj;
3015 wxBitmap *arg1 = (wxBitmap *) 0 ;
3016 SwigValueWrapper< wxImage > result;
3017 PyObject * obj0 = 0 ;
3018 char *kwnames[] = {
3019 (char *) "self", NULL
3020 };
3021
3022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",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 = ((wxBitmap const *)arg1)->ConvertToImage();
3028
3029 wxPyEndAllowThreads(__tstate);
3030 if (PyErr_Occurred()) SWIG_fail;
3031 }
3032 {
3033 wxImage * resultptr;
3034 resultptr = new wxImage((wxImage &) result);
3035 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3036 }
3037 return resultobj;
3038 fail:
3039 return NULL;
3040 }
3041
3042
3043 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3044 PyObject *resultobj;
3045 wxBitmap *arg1 = (wxBitmap *) 0 ;
3046 wxMask *result;
3047 PyObject * obj0 = 0 ;
3048 char *kwnames[] = {
3049 (char *) "self", NULL
3050 };
3051
3052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3055 {
3056 PyThreadState* __tstate = wxPyBeginAllowThreads();
3057 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3058
3059 wxPyEndAllowThreads(__tstate);
3060 if (PyErr_Occurred()) SWIG_fail;
3061 }
3062 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3063 return resultobj;
3064 fail:
3065 return NULL;
3066 }
3067
3068
3069 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3070 PyObject *resultobj;
3071 wxBitmap *arg1 = (wxBitmap *) 0 ;
3072 wxMask *arg2 = (wxMask *) 0 ;
3073 PyObject * obj0 = 0 ;
3074 PyObject * obj1 = 0 ;
3075 char *kwnames[] = {
3076 (char *) "self",(char *) "mask", NULL
3077 };
3078
3079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3082 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3084 {
3085 PyThreadState* __tstate = wxPyBeginAllowThreads();
3086 (arg1)->SetMask(arg2);
3087
3088 wxPyEndAllowThreads(__tstate);
3089 if (PyErr_Occurred()) SWIG_fail;
3090 }
3091 Py_INCREF(Py_None); resultobj = Py_None;
3092 return resultobj;
3093 fail:
3094 return NULL;
3095 }
3096
3097
3098 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3099 PyObject *resultobj;
3100 wxBitmap *arg1 = (wxBitmap *) 0 ;
3101 wxColour *arg2 = 0 ;
3102 wxColour temp2 ;
3103 PyObject * obj0 = 0 ;
3104 PyObject * obj1 = 0 ;
3105 char *kwnames[] = {
3106 (char *) "self",(char *) "colour", NULL
3107 };
3108
3109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3112 {
3113 arg2 = &temp2;
3114 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3115 }
3116 {
3117 PyThreadState* __tstate = wxPyBeginAllowThreads();
3118 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3119
3120 wxPyEndAllowThreads(__tstate);
3121 if (PyErr_Occurred()) SWIG_fail;
3122 }
3123 Py_INCREF(Py_None); resultobj = Py_None;
3124 return resultobj;
3125 fail:
3126 return NULL;
3127 }
3128
3129
3130 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3131 PyObject *resultobj;
3132 wxBitmap *arg1 = (wxBitmap *) 0 ;
3133 wxRect *arg2 = 0 ;
3134 SwigValueWrapper< wxBitmap > result;
3135 wxRect temp2 ;
3136 PyObject * obj0 = 0 ;
3137 PyObject * obj1 = 0 ;
3138 char *kwnames[] = {
3139 (char *) "self",(char *) "rect", NULL
3140 };
3141
3142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3145 {
3146 arg2 = &temp2;
3147 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3148 }
3149 {
3150 PyThreadState* __tstate = wxPyBeginAllowThreads();
3151 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3152
3153 wxPyEndAllowThreads(__tstate);
3154 if (PyErr_Occurred()) SWIG_fail;
3155 }
3156 {
3157 wxBitmap * resultptr;
3158 resultptr = new wxBitmap((wxBitmap &) result);
3159 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3160 }
3161 return resultobj;
3162 fail:
3163 return NULL;
3164 }
3165
3166
3167 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3168 PyObject *resultobj;
3169 wxBitmap *arg1 = (wxBitmap *) 0 ;
3170 wxString *arg2 = 0 ;
3171 int arg3 ;
3172 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
3173 bool result;
3174 bool temp2 = False ;
3175 PyObject * obj0 = 0 ;
3176 PyObject * obj1 = 0 ;
3177 PyObject * obj2 = 0 ;
3178 PyObject * obj3 = 0 ;
3179 char *kwnames[] = {
3180 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3181 };
3182
3183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3186 {
3187 arg2 = wxString_in_helper(obj1);
3188 if (arg2 == NULL) SWIG_fail;
3189 temp2 = True;
3190 }
3191 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3192 if (PyErr_Occurred()) SWIG_fail;
3193 if (obj3) {
3194 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3196 }
3197 {
3198 PyThreadState* __tstate = wxPyBeginAllowThreads();
3199 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3200
3201 wxPyEndAllowThreads(__tstate);
3202 if (PyErr_Occurred()) SWIG_fail;
3203 }
3204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3205 {
3206 if (temp2)
3207 delete arg2;
3208 }
3209 return resultobj;
3210 fail:
3211 {
3212 if (temp2)
3213 delete arg2;
3214 }
3215 return NULL;
3216 }
3217
3218
3219 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3220 PyObject *resultobj;
3221 wxBitmap *arg1 = (wxBitmap *) 0 ;
3222 wxString *arg2 = 0 ;
3223 int arg3 ;
3224 bool result;
3225 bool temp2 = False ;
3226 PyObject * obj0 = 0 ;
3227 PyObject * obj1 = 0 ;
3228 PyObject * obj2 = 0 ;
3229 char *kwnames[] = {
3230 (char *) "self",(char *) "name",(char *) "type", NULL
3231 };
3232
3233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3236 {
3237 arg2 = wxString_in_helper(obj1);
3238 if (arg2 == NULL) SWIG_fail;
3239 temp2 = True;
3240 }
3241 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3242 if (PyErr_Occurred()) SWIG_fail;
3243 {
3244 PyThreadState* __tstate = wxPyBeginAllowThreads();
3245 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3246
3247 wxPyEndAllowThreads(__tstate);
3248 if (PyErr_Occurred()) SWIG_fail;
3249 }
3250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3251 {
3252 if (temp2)
3253 delete arg2;
3254 }
3255 return resultobj;
3256 fail:
3257 {
3258 if (temp2)
3259 delete arg2;
3260 }
3261 return NULL;
3262 }
3263
3264
3265 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3266 PyObject *resultobj;
3267 wxBitmap *arg1 = (wxBitmap *) 0 ;
3268 wxIcon *arg2 = 0 ;
3269 bool result;
3270 PyObject * obj0 = 0 ;
3271 PyObject * obj1 = 0 ;
3272 char *kwnames[] = {
3273 (char *) "self",(char *) "icon", NULL
3274 };
3275
3276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3279 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3280 SWIG_POINTER_EXCEPTION | 0)) == -1)
3281 SWIG_fail;
3282 if (arg2 == NULL) {
3283 PyErr_SetString(PyExc_TypeError,"null reference");
3284 SWIG_fail;
3285 }
3286 {
3287 PyThreadState* __tstate = wxPyBeginAllowThreads();
3288 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3289
3290 wxPyEndAllowThreads(__tstate);
3291 if (PyErr_Occurred()) SWIG_fail;
3292 }
3293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3294 return resultobj;
3295 fail:
3296 return NULL;
3297 }
3298
3299
3300 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3301 PyObject *resultobj;
3302 wxBitmap *arg1 = (wxBitmap *) 0 ;
3303 int arg2 ;
3304 PyObject * obj0 = 0 ;
3305 PyObject * obj1 = 0 ;
3306 char *kwnames[] = {
3307 (char *) "self",(char *) "height", NULL
3308 };
3309
3310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3313 arg2 = (int) SWIG_AsInt(obj1);
3314 if (PyErr_Occurred()) SWIG_fail;
3315 {
3316 PyThreadState* __tstate = wxPyBeginAllowThreads();
3317 (arg1)->SetHeight(arg2);
3318
3319 wxPyEndAllowThreads(__tstate);
3320 if (PyErr_Occurred()) SWIG_fail;
3321 }
3322 Py_INCREF(Py_None); resultobj = Py_None;
3323 return resultobj;
3324 fail:
3325 return NULL;
3326 }
3327
3328
3329 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3330 PyObject *resultobj;
3331 wxBitmap *arg1 = (wxBitmap *) 0 ;
3332 int arg2 ;
3333 PyObject * obj0 = 0 ;
3334 PyObject * obj1 = 0 ;
3335 char *kwnames[] = {
3336 (char *) "self",(char *) "width", NULL
3337 };
3338
3339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3342 arg2 = (int) SWIG_AsInt(obj1);
3343 if (PyErr_Occurred()) SWIG_fail;
3344 {
3345 PyThreadState* __tstate = wxPyBeginAllowThreads();
3346 (arg1)->SetWidth(arg2);
3347
3348 wxPyEndAllowThreads(__tstate);
3349 if (PyErr_Occurred()) SWIG_fail;
3350 }
3351 Py_INCREF(Py_None); resultobj = Py_None;
3352 return resultobj;
3353 fail:
3354 return NULL;
3355 }
3356
3357
3358 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3359 PyObject *resultobj;
3360 wxBitmap *arg1 = (wxBitmap *) 0 ;
3361 int arg2 ;
3362 PyObject * obj0 = 0 ;
3363 PyObject * obj1 = 0 ;
3364 char *kwnames[] = {
3365 (char *) "self",(char *) "depth", NULL
3366 };
3367
3368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3371 arg2 = (int) SWIG_AsInt(obj1);
3372 if (PyErr_Occurred()) SWIG_fail;
3373 {
3374 PyThreadState* __tstate = wxPyBeginAllowThreads();
3375 (arg1)->SetDepth(arg2);
3376
3377 wxPyEndAllowThreads(__tstate);
3378 if (PyErr_Occurred()) SWIG_fail;
3379 }
3380 Py_INCREF(Py_None); resultobj = Py_None;
3381 return resultobj;
3382 fail:
3383 return NULL;
3384 }
3385
3386
3387 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3388 PyObject *obj;
3389 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3390 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3391 Py_INCREF(obj);
3392 return Py_BuildValue((char *)"");
3393 }
3394 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3395 PyObject *resultobj;
3396 wxBitmap *arg1 = 0 ;
3397 wxColour const &arg2_defvalue = wxNullColour ;
3398 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3399 wxMask *result;
3400 wxColour temp2 ;
3401 PyObject * obj0 = 0 ;
3402 PyObject * obj1 = 0 ;
3403 char *kwnames[] = {
3404 (char *) "bitmap",(char *) "colour", NULL
3405 };
3406
3407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3409 SWIG_POINTER_EXCEPTION | 0)) == -1)
3410 SWIG_fail;
3411 if (arg1 == NULL) {
3412 PyErr_SetString(PyExc_TypeError,"null reference");
3413 SWIG_fail;
3414 }
3415 if (obj1) {
3416 {
3417 arg2 = &temp2;
3418 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3419 }
3420 }
3421 {
3422 PyThreadState* __tstate = wxPyBeginAllowThreads();
3423 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3424
3425 wxPyEndAllowThreads(__tstate);
3426 if (PyErr_Occurred()) SWIG_fail;
3427 }
3428 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3429 return resultobj;
3430 fail:
3431 return NULL;
3432 }
3433
3434
3435 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3436 PyObject *obj;
3437 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3438 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3439 Py_INCREF(obj);
3440 return Py_BuildValue((char *)"");
3441 }
3442 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3443 PyObject *resultobj;
3444 wxString *arg1 = 0 ;
3445 int arg2 ;
3446 int arg3 = (int) -1 ;
3447 int arg4 = (int) -1 ;
3448 wxIcon *result;
3449 bool temp1 = False ;
3450 PyObject * obj0 = 0 ;
3451 PyObject * obj1 = 0 ;
3452 PyObject * obj2 = 0 ;
3453 PyObject * obj3 = 0 ;
3454 char *kwnames[] = {
3455 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3456 };
3457
3458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3459 {
3460 arg1 = wxString_in_helper(obj0);
3461 if (arg1 == NULL) SWIG_fail;
3462 temp1 = True;
3463 }
3464 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3465 if (PyErr_Occurred()) SWIG_fail;
3466 if (obj2) {
3467 arg3 = (int) SWIG_AsInt(obj2);
3468 if (PyErr_Occurred()) SWIG_fail;
3469 }
3470 if (obj3) {
3471 arg4 = (int) SWIG_AsInt(obj3);
3472 if (PyErr_Occurred()) SWIG_fail;
3473 }
3474 {
3475 PyThreadState* __tstate = wxPyBeginAllowThreads();
3476 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3477
3478 wxPyEndAllowThreads(__tstate);
3479 if (PyErr_Occurred()) SWIG_fail;
3480 }
3481 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3482 {
3483 if (temp1)
3484 delete arg1;
3485 }
3486 return resultobj;
3487 fail:
3488 {
3489 if (temp1)
3490 delete arg1;
3491 }
3492 return NULL;
3493 }
3494
3495
3496 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3497 PyObject *resultobj;
3498 wxIcon *arg1 = (wxIcon *) 0 ;
3499 PyObject * obj0 = 0 ;
3500 char *kwnames[] = {
3501 (char *) "self", NULL
3502 };
3503
3504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3507 {
3508 PyThreadState* __tstate = wxPyBeginAllowThreads();
3509 delete arg1;
3510
3511 wxPyEndAllowThreads(__tstate);
3512 if (PyErr_Occurred()) SWIG_fail;
3513 }
3514 Py_INCREF(Py_None); resultobj = Py_None;
3515 return resultobj;
3516 fail:
3517 return NULL;
3518 }
3519
3520
3521 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3522 PyObject *resultobj;
3523 wxIcon *result;
3524 char *kwnames[] = {
3525 NULL
3526 };
3527
3528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3529 {
3530 PyThreadState* __tstate = wxPyBeginAllowThreads();
3531 result = (wxIcon *)new wxIcon();
3532
3533 wxPyEndAllowThreads(__tstate);
3534 if (PyErr_Occurred()) SWIG_fail;
3535 }
3536 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3537 return resultobj;
3538 fail:
3539 return NULL;
3540 }
3541
3542
3543 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3544 PyObject *resultobj;
3545 wxIconLocation *arg1 = 0 ;
3546 wxIcon *result;
3547 PyObject * obj0 = 0 ;
3548 char *kwnames[] = {
3549 (char *) "loc", NULL
3550 };
3551
3552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3554 SWIG_POINTER_EXCEPTION | 0)) == -1)
3555 SWIG_fail;
3556 if (arg1 == NULL) {
3557 PyErr_SetString(PyExc_TypeError,"null reference");
3558 SWIG_fail;
3559 }
3560 {
3561 PyThreadState* __tstate = wxPyBeginAllowThreads();
3562 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3563
3564 wxPyEndAllowThreads(__tstate);
3565 if (PyErr_Occurred()) SWIG_fail;
3566 }
3567 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3568 return resultobj;
3569 fail:
3570 return NULL;
3571 }
3572
3573
3574 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3575 PyObject *resultobj;
3576 wxBitmap *arg1 = 0 ;
3577 wxIcon *result;
3578 PyObject * obj0 = 0 ;
3579 char *kwnames[] = {
3580 (char *) "bmp", NULL
3581 };
3582
3583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3585 SWIG_POINTER_EXCEPTION | 0)) == -1)
3586 SWIG_fail;
3587 if (arg1 == NULL) {
3588 PyErr_SetString(PyExc_TypeError,"null reference");
3589 SWIG_fail;
3590 }
3591 {
3592 PyThreadState* __tstate = wxPyBeginAllowThreads();
3593 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3594
3595 wxPyEndAllowThreads(__tstate);
3596 if (PyErr_Occurred()) SWIG_fail;
3597 }
3598 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3599 return resultobj;
3600 fail:
3601 return NULL;
3602 }
3603
3604
3605 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3606 PyObject *resultobj;
3607 PyObject *arg1 = (PyObject *) 0 ;
3608 wxIcon *result;
3609 PyObject * obj0 = 0 ;
3610 char *kwnames[] = {
3611 (char *) "listOfStrings", NULL
3612 };
3613
3614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3615 arg1 = obj0;
3616 {
3617 PyThreadState* __tstate = wxPyBeginAllowThreads();
3618 result = (wxIcon *)new_wxIcon(arg1);
3619
3620 wxPyEndAllowThreads(__tstate);
3621 if (PyErr_Occurred()) SWIG_fail;
3622 }
3623 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3624 return resultobj;
3625 fail:
3626 return NULL;
3627 }
3628
3629
3630 static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3631 PyObject *resultobj;
3632 wxIcon *arg1 = (wxIcon *) 0 ;
3633 wxString *arg2 = 0 ;
3634 int arg3 ;
3635 bool result;
3636 bool temp2 = False ;
3637 PyObject * obj0 = 0 ;
3638 PyObject * obj1 = 0 ;
3639 PyObject * obj2 = 0 ;
3640 char *kwnames[] = {
3641 (char *) "self",(char *) "name",(char *) "type", NULL
3642 };
3643
3644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3647 {
3648 arg2 = wxString_in_helper(obj1);
3649 if (arg2 == NULL) SWIG_fail;
3650 temp2 = True;
3651 }
3652 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3653 if (PyErr_Occurred()) SWIG_fail;
3654 {
3655 PyThreadState* __tstate = wxPyBeginAllowThreads();
3656 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3657
3658 wxPyEndAllowThreads(__tstate);
3659 if (PyErr_Occurred()) SWIG_fail;
3660 }
3661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3662 {
3663 if (temp2)
3664 delete arg2;
3665 }
3666 return resultobj;
3667 fail:
3668 {
3669 if (temp2)
3670 delete arg2;
3671 }
3672 return NULL;
3673 }
3674
3675
3676 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3677 PyObject *resultobj;
3678 wxIcon *arg1 = (wxIcon *) 0 ;
3679 bool result;
3680 PyObject * obj0 = 0 ;
3681 char *kwnames[] = {
3682 (char *) "self", NULL
3683 };
3684
3685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3688 {
3689 PyThreadState* __tstate = wxPyBeginAllowThreads();
3690 result = (bool)(arg1)->Ok();
3691
3692 wxPyEndAllowThreads(__tstate);
3693 if (PyErr_Occurred()) SWIG_fail;
3694 }
3695 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3696 return resultobj;
3697 fail:
3698 return NULL;
3699 }
3700
3701
3702 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3703 PyObject *resultobj;
3704 wxIcon *arg1 = (wxIcon *) 0 ;
3705 int result;
3706 PyObject * obj0 = 0 ;
3707 char *kwnames[] = {
3708 (char *) "self", NULL
3709 };
3710
3711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3714 {
3715 PyThreadState* __tstate = wxPyBeginAllowThreads();
3716 result = (int)(arg1)->GetWidth();
3717
3718 wxPyEndAllowThreads(__tstate);
3719 if (PyErr_Occurred()) SWIG_fail;
3720 }
3721 resultobj = SWIG_FromInt((int)result);
3722 return resultobj;
3723 fail:
3724 return NULL;
3725 }
3726
3727
3728 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3729 PyObject *resultobj;
3730 wxIcon *arg1 = (wxIcon *) 0 ;
3731 int result;
3732 PyObject * obj0 = 0 ;
3733 char *kwnames[] = {
3734 (char *) "self", NULL
3735 };
3736
3737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3740 {
3741 PyThreadState* __tstate = wxPyBeginAllowThreads();
3742 result = (int)(arg1)->GetHeight();
3743
3744 wxPyEndAllowThreads(__tstate);
3745 if (PyErr_Occurred()) SWIG_fail;
3746 }
3747 resultobj = SWIG_FromInt((int)result);
3748 return resultobj;
3749 fail:
3750 return NULL;
3751 }
3752
3753
3754 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3755 PyObject *resultobj;
3756 wxIcon *arg1 = (wxIcon *) 0 ;
3757 int result;
3758 PyObject * obj0 = 0 ;
3759 char *kwnames[] = {
3760 (char *) "self", NULL
3761 };
3762
3763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3766 {
3767 PyThreadState* __tstate = wxPyBeginAllowThreads();
3768 result = (int)(arg1)->GetDepth();
3769
3770 wxPyEndAllowThreads(__tstate);
3771 if (PyErr_Occurred()) SWIG_fail;
3772 }
3773 resultobj = SWIG_FromInt((int)result);
3774 return resultobj;
3775 fail:
3776 return NULL;
3777 }
3778
3779
3780 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3781 PyObject *resultobj;
3782 wxIcon *arg1 = (wxIcon *) 0 ;
3783 int arg2 ;
3784 PyObject * obj0 = 0 ;
3785 PyObject * obj1 = 0 ;
3786 char *kwnames[] = {
3787 (char *) "self",(char *) "w", NULL
3788 };
3789
3790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3793 arg2 = (int) SWIG_AsInt(obj1);
3794 if (PyErr_Occurred()) SWIG_fail;
3795 {
3796 PyThreadState* __tstate = wxPyBeginAllowThreads();
3797 (arg1)->SetWidth(arg2);
3798
3799 wxPyEndAllowThreads(__tstate);
3800 if (PyErr_Occurred()) SWIG_fail;
3801 }
3802 Py_INCREF(Py_None); resultobj = Py_None;
3803 return resultobj;
3804 fail:
3805 return NULL;
3806 }
3807
3808
3809 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3810 PyObject *resultobj;
3811 wxIcon *arg1 = (wxIcon *) 0 ;
3812 int arg2 ;
3813 PyObject * obj0 = 0 ;
3814 PyObject * obj1 = 0 ;
3815 char *kwnames[] = {
3816 (char *) "self",(char *) "h", NULL
3817 };
3818
3819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3822 arg2 = (int) SWIG_AsInt(obj1);
3823 if (PyErr_Occurred()) SWIG_fail;
3824 {
3825 PyThreadState* __tstate = wxPyBeginAllowThreads();
3826 (arg1)->SetHeight(arg2);
3827
3828 wxPyEndAllowThreads(__tstate);
3829 if (PyErr_Occurred()) SWIG_fail;
3830 }
3831 Py_INCREF(Py_None); resultobj = Py_None;
3832 return resultobj;
3833 fail:
3834 return NULL;
3835 }
3836
3837
3838 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3839 PyObject *resultobj;
3840 wxIcon *arg1 = (wxIcon *) 0 ;
3841 int arg2 ;
3842 PyObject * obj0 = 0 ;
3843 PyObject * obj1 = 0 ;
3844 char *kwnames[] = {
3845 (char *) "self",(char *) "d", NULL
3846 };
3847
3848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3851 arg2 = (int) SWIG_AsInt(obj1);
3852 if (PyErr_Occurred()) SWIG_fail;
3853 {
3854 PyThreadState* __tstate = wxPyBeginAllowThreads();
3855 (arg1)->SetDepth(arg2);
3856
3857 wxPyEndAllowThreads(__tstate);
3858 if (PyErr_Occurred()) SWIG_fail;
3859 }
3860 Py_INCREF(Py_None); resultobj = Py_None;
3861 return resultobj;
3862 fail:
3863 return NULL;
3864 }
3865
3866
3867 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3868 PyObject *resultobj;
3869 wxIcon *arg1 = (wxIcon *) 0 ;
3870 wxBitmap *arg2 = 0 ;
3871 PyObject * obj0 = 0 ;
3872 PyObject * obj1 = 0 ;
3873 char *kwnames[] = {
3874 (char *) "self",(char *) "bmp", NULL
3875 };
3876
3877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3880 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3881 SWIG_POINTER_EXCEPTION | 0)) == -1)
3882 SWIG_fail;
3883 if (arg2 == NULL) {
3884 PyErr_SetString(PyExc_TypeError,"null reference");
3885 SWIG_fail;
3886 }
3887 {
3888 PyThreadState* __tstate = wxPyBeginAllowThreads();
3889 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3890
3891 wxPyEndAllowThreads(__tstate);
3892 if (PyErr_Occurred()) SWIG_fail;
3893 }
3894 Py_INCREF(Py_None); resultobj = Py_None;
3895 return resultobj;
3896 fail:
3897 return NULL;
3898 }
3899
3900
3901 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3902 PyObject *obj;
3903 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3904 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3905 Py_INCREF(obj);
3906 return Py_BuildValue((char *)"");
3907 }
3908 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3909 PyObject *resultobj;
3910 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3911 int arg2 = (int) 0 ;
3912 wxIconLocation *result;
3913 bool temp1 = False ;
3914 PyObject * obj0 = 0 ;
3915 PyObject * obj1 = 0 ;
3916 char *kwnames[] = {
3917 (char *) "filename",(char *) "num", NULL
3918 };
3919
3920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
3921 if (obj0) {
3922 {
3923 arg1 = wxString_in_helper(obj0);
3924 if (arg1 == NULL) SWIG_fail;
3925 temp1 = True;
3926 }
3927 }
3928 if (obj1) {
3929 arg2 = (int) SWIG_AsInt(obj1);
3930 if (PyErr_Occurred()) SWIG_fail;
3931 }
3932 {
3933 PyThreadState* __tstate = wxPyBeginAllowThreads();
3934 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3935
3936 wxPyEndAllowThreads(__tstate);
3937 if (PyErr_Occurred()) SWIG_fail;
3938 }
3939 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
3940 {
3941 if (temp1)
3942 delete arg1;
3943 }
3944 return resultobj;
3945 fail:
3946 {
3947 if (temp1)
3948 delete arg1;
3949 }
3950 return NULL;
3951 }
3952
3953
3954 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3955 PyObject *resultobj;
3956 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3957 PyObject * obj0 = 0 ;
3958 char *kwnames[] = {
3959 (char *) "self", NULL
3960 };
3961
3962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3965 {
3966 PyThreadState* __tstate = wxPyBeginAllowThreads();
3967 delete arg1;
3968
3969 wxPyEndAllowThreads(__tstate);
3970 if (PyErr_Occurred()) SWIG_fail;
3971 }
3972 Py_INCREF(Py_None); resultobj = Py_None;
3973 return resultobj;
3974 fail:
3975 return NULL;
3976 }
3977
3978
3979 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3980 PyObject *resultobj;
3981 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3982 bool result;
3983 PyObject * obj0 = 0 ;
3984 char *kwnames[] = {
3985 (char *) "self", NULL
3986 };
3987
3988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
3989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3991 {
3992 PyThreadState* __tstate = wxPyBeginAllowThreads();
3993 result = (bool)((wxIconLocation const *)arg1)->IsOk();
3994
3995 wxPyEndAllowThreads(__tstate);
3996 if (PyErr_Occurred()) SWIG_fail;
3997 }
3998 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3999 return resultobj;
4000 fail:
4001 return NULL;
4002 }
4003
4004
4005 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4006 PyObject *resultobj;
4007 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4008 wxString *arg2 = 0 ;
4009 bool temp2 = False ;
4010 PyObject * obj0 = 0 ;
4011 PyObject * obj1 = 0 ;
4012 char *kwnames[] = {
4013 (char *) "self",(char *) "filename", NULL
4014 };
4015
4016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4019 {
4020 arg2 = wxString_in_helper(obj1);
4021 if (arg2 == NULL) SWIG_fail;
4022 temp2 = True;
4023 }
4024 {
4025 PyThreadState* __tstate = wxPyBeginAllowThreads();
4026 (arg1)->SetFileName((wxString const &)*arg2);
4027
4028 wxPyEndAllowThreads(__tstate);
4029 if (PyErr_Occurred()) SWIG_fail;
4030 }
4031 Py_INCREF(Py_None); resultobj = Py_None;
4032 {
4033 if (temp2)
4034 delete arg2;
4035 }
4036 return resultobj;
4037 fail:
4038 {
4039 if (temp2)
4040 delete arg2;
4041 }
4042 return NULL;
4043 }
4044
4045
4046 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4047 PyObject *resultobj;
4048 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4049 wxString *result;
4050 PyObject * obj0 = 0 ;
4051 char *kwnames[] = {
4052 (char *) "self", NULL
4053 };
4054
4055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4058 {
4059 PyThreadState* __tstate = wxPyBeginAllowThreads();
4060 {
4061 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4062 result = (wxString *) &_result_ref;
4063 }
4064
4065 wxPyEndAllowThreads(__tstate);
4066 if (PyErr_Occurred()) SWIG_fail;
4067 }
4068 {
4069 #if wxUSE_UNICODE
4070 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4071 #else
4072 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4073 #endif
4074 }
4075 return resultobj;
4076 fail:
4077 return NULL;
4078 }
4079
4080
4081 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4082 PyObject *resultobj;
4083 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4084 int arg2 ;
4085 PyObject * obj0 = 0 ;
4086 PyObject * obj1 = 0 ;
4087 char *kwnames[] = {
4088 (char *) "self",(char *) "num", NULL
4089 };
4090
4091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4094 arg2 = (int) SWIG_AsInt(obj1);
4095 if (PyErr_Occurred()) SWIG_fail;
4096 {
4097 PyThreadState* __tstate = wxPyBeginAllowThreads();
4098 wxIconLocation_SetIndex(arg1,arg2);
4099
4100 wxPyEndAllowThreads(__tstate);
4101 if (PyErr_Occurred()) SWIG_fail;
4102 }
4103 Py_INCREF(Py_None); resultobj = Py_None;
4104 return resultobj;
4105 fail:
4106 return NULL;
4107 }
4108
4109
4110 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4111 PyObject *resultobj;
4112 wxIconLocation *arg1 = (wxIconLocation *) 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:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4122 {
4123 PyThreadState* __tstate = wxPyBeginAllowThreads();
4124 result = (int)wxIconLocation_GetIndex(arg1);
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 * IconLocation_swigregister(PyObject *self, PyObject *args) {
4137 PyObject *obj;
4138 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4139 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4140 Py_INCREF(obj);
4141 return Py_BuildValue((char *)"");
4142 }
4143 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4144 PyObject *resultobj;
4145 wxIconBundle *result;
4146 char *kwnames[] = {
4147 NULL
4148 };
4149
4150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4151 {
4152 PyThreadState* __tstate = wxPyBeginAllowThreads();
4153 result = (wxIconBundle *)new wxIconBundle();
4154
4155 wxPyEndAllowThreads(__tstate);
4156 if (PyErr_Occurred()) SWIG_fail;
4157 }
4158 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4159 return resultobj;
4160 fail:
4161 return NULL;
4162 }
4163
4164
4165 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4166 PyObject *resultobj;
4167 wxString *arg1 = 0 ;
4168 long arg2 ;
4169 wxIconBundle *result;
4170 bool temp1 = False ;
4171 PyObject * obj0 = 0 ;
4172 PyObject * obj1 = 0 ;
4173 char *kwnames[] = {
4174 (char *) "file",(char *) "type", NULL
4175 };
4176
4177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4178 {
4179 arg1 = wxString_in_helper(obj0);
4180 if (arg1 == NULL) SWIG_fail;
4181 temp1 = True;
4182 }
4183 arg2 = (long) SWIG_AsLong(obj1);
4184 if (PyErr_Occurred()) SWIG_fail;
4185 {
4186 PyThreadState* __tstate = wxPyBeginAllowThreads();
4187 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4188
4189 wxPyEndAllowThreads(__tstate);
4190 if (PyErr_Occurred()) SWIG_fail;
4191 }
4192 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4193 {
4194 if (temp1)
4195 delete arg1;
4196 }
4197 return resultobj;
4198 fail:
4199 {
4200 if (temp1)
4201 delete arg1;
4202 }
4203 return NULL;
4204 }
4205
4206
4207 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4208 PyObject *resultobj;
4209 wxIcon *arg1 = 0 ;
4210 wxIconBundle *result;
4211 PyObject * obj0 = 0 ;
4212 char *kwnames[] = {
4213 (char *) "icon", NULL
4214 };
4215
4216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4218 SWIG_POINTER_EXCEPTION | 0)) == -1)
4219 SWIG_fail;
4220 if (arg1 == NULL) {
4221 PyErr_SetString(PyExc_TypeError,"null reference");
4222 SWIG_fail;
4223 }
4224 {
4225 PyThreadState* __tstate = wxPyBeginAllowThreads();
4226 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4227
4228 wxPyEndAllowThreads(__tstate);
4229 if (PyErr_Occurred()) SWIG_fail;
4230 }
4231 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4232 return resultobj;
4233 fail:
4234 return NULL;
4235 }
4236
4237
4238 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4239 PyObject *resultobj;
4240 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4241 PyObject * obj0 = 0 ;
4242 char *kwnames[] = {
4243 (char *) "self", NULL
4244 };
4245
4246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4249 {
4250 PyThreadState* __tstate = wxPyBeginAllowThreads();
4251 delete arg1;
4252
4253 wxPyEndAllowThreads(__tstate);
4254 if (PyErr_Occurred()) SWIG_fail;
4255 }
4256 Py_INCREF(Py_None); resultobj = Py_None;
4257 return resultobj;
4258 fail:
4259 return NULL;
4260 }
4261
4262
4263 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4264 PyObject *resultobj;
4265 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4266 wxIcon *arg2 = 0 ;
4267 PyObject * obj0 = 0 ;
4268 PyObject * obj1 = 0 ;
4269 char *kwnames[] = {
4270 (char *) "self",(char *) "icon", NULL
4271 };
4272
4273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4276 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4277 SWIG_POINTER_EXCEPTION | 0)) == -1)
4278 SWIG_fail;
4279 if (arg2 == NULL) {
4280 PyErr_SetString(PyExc_TypeError,"null reference");
4281 SWIG_fail;
4282 }
4283 {
4284 PyThreadState* __tstate = wxPyBeginAllowThreads();
4285 (arg1)->AddIcon((wxIcon const &)*arg2);
4286
4287 wxPyEndAllowThreads(__tstate);
4288 if (PyErr_Occurred()) SWIG_fail;
4289 }
4290 Py_INCREF(Py_None); resultobj = Py_None;
4291 return resultobj;
4292 fail:
4293 return NULL;
4294 }
4295
4296
4297 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4298 PyObject *resultobj;
4299 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4300 wxString *arg2 = 0 ;
4301 long arg3 ;
4302 bool temp2 = False ;
4303 PyObject * obj0 = 0 ;
4304 PyObject * obj1 = 0 ;
4305 PyObject * obj2 = 0 ;
4306 char *kwnames[] = {
4307 (char *) "self",(char *) "file",(char *) "type", NULL
4308 };
4309
4310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4313 {
4314 arg2 = wxString_in_helper(obj1);
4315 if (arg2 == NULL) SWIG_fail;
4316 temp2 = True;
4317 }
4318 arg3 = (long) SWIG_AsLong(obj2);
4319 if (PyErr_Occurred()) SWIG_fail;
4320 {
4321 PyThreadState* __tstate = wxPyBeginAllowThreads();
4322 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4323
4324 wxPyEndAllowThreads(__tstate);
4325 if (PyErr_Occurred()) SWIG_fail;
4326 }
4327 Py_INCREF(Py_None); resultobj = Py_None;
4328 {
4329 if (temp2)
4330 delete arg2;
4331 }
4332 return resultobj;
4333 fail:
4334 {
4335 if (temp2)
4336 delete arg2;
4337 }
4338 return NULL;
4339 }
4340
4341
4342 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4343 PyObject *resultobj;
4344 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4345 wxSize *arg2 = 0 ;
4346 wxIcon *result;
4347 wxSize temp2 ;
4348 PyObject * obj0 = 0 ;
4349 PyObject * obj1 = 0 ;
4350 char *kwnames[] = {
4351 (char *) "self",(char *) "size", NULL
4352 };
4353
4354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4357 {
4358 arg2 = &temp2;
4359 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4360 }
4361 {
4362 PyThreadState* __tstate = wxPyBeginAllowThreads();
4363 {
4364 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4365 result = (wxIcon *) &_result_ref;
4366 }
4367
4368 wxPyEndAllowThreads(__tstate);
4369 if (PyErr_Occurred()) SWIG_fail;
4370 }
4371 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 0);
4372 return resultobj;
4373 fail:
4374 return NULL;
4375 }
4376
4377
4378 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4379 PyObject *obj;
4380 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4381 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4382 Py_INCREF(obj);
4383 return Py_BuildValue((char *)"");
4384 }
4385 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4386 PyObject *resultobj;
4387 wxString *arg1 = (wxString *) 0 ;
4388 long arg2 ;
4389 int arg3 = (int) 0 ;
4390 int arg4 = (int) 0 ;
4391 wxCursor *result;
4392 bool temp1 = False ;
4393 PyObject * obj0 = 0 ;
4394 PyObject * obj1 = 0 ;
4395 PyObject * obj2 = 0 ;
4396 PyObject * obj3 = 0 ;
4397 char *kwnames[] = {
4398 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4399 };
4400
4401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4402 {
4403 arg1 = wxString_in_helper(obj0);
4404 if (arg1 == NULL) SWIG_fail;
4405 temp1 = True;
4406 }
4407 arg2 = (long) SWIG_AsLong(obj1);
4408 if (PyErr_Occurred()) SWIG_fail;
4409 if (obj2) {
4410 arg3 = (int) SWIG_AsInt(obj2);
4411 if (PyErr_Occurred()) SWIG_fail;
4412 }
4413 if (obj3) {
4414 arg4 = (int) SWIG_AsInt(obj3);
4415 if (PyErr_Occurred()) SWIG_fail;
4416 }
4417 {
4418 PyThreadState* __tstate = wxPyBeginAllowThreads();
4419 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4420
4421 wxPyEndAllowThreads(__tstate);
4422 if (PyErr_Occurred()) SWIG_fail;
4423 }
4424 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4425 {
4426 if (temp1)
4427 delete arg1;
4428 }
4429 return resultobj;
4430 fail:
4431 {
4432 if (temp1)
4433 delete arg1;
4434 }
4435 return NULL;
4436 }
4437
4438
4439 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4440 PyObject *resultobj;
4441 wxCursor *arg1 = (wxCursor *) 0 ;
4442 PyObject * obj0 = 0 ;
4443 char *kwnames[] = {
4444 (char *) "self", NULL
4445 };
4446
4447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4450 {
4451 PyThreadState* __tstate = wxPyBeginAllowThreads();
4452 delete arg1;
4453
4454 wxPyEndAllowThreads(__tstate);
4455 if (PyErr_Occurred()) SWIG_fail;
4456 }
4457 Py_INCREF(Py_None); resultobj = Py_None;
4458 return resultobj;
4459 fail:
4460 return NULL;
4461 }
4462
4463
4464 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4465 PyObject *resultobj;
4466 int arg1 ;
4467 wxCursor *result;
4468 PyObject * obj0 = 0 ;
4469 char *kwnames[] = {
4470 (char *) "id", NULL
4471 };
4472
4473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4474 arg1 = (int) SWIG_AsInt(obj0);
4475 if (PyErr_Occurred()) SWIG_fail;
4476 {
4477 PyThreadState* __tstate = wxPyBeginAllowThreads();
4478 result = (wxCursor *)new wxCursor(arg1);
4479
4480 wxPyEndAllowThreads(__tstate);
4481 if (PyErr_Occurred()) SWIG_fail;
4482 }
4483 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4484 return resultobj;
4485 fail:
4486 return NULL;
4487 }
4488
4489
4490 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4491 PyObject *resultobj;
4492 wxImage *arg1 = 0 ;
4493 wxCursor *result;
4494 PyObject * obj0 = 0 ;
4495 char *kwnames[] = {
4496 (char *) "image", NULL
4497 };
4498
4499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4501 SWIG_POINTER_EXCEPTION | 0)) == -1)
4502 SWIG_fail;
4503 if (arg1 == NULL) {
4504 PyErr_SetString(PyExc_TypeError,"null reference");
4505 SWIG_fail;
4506 }
4507 {
4508 PyThreadState* __tstate = wxPyBeginAllowThreads();
4509 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4510
4511 wxPyEndAllowThreads(__tstate);
4512 if (PyErr_Occurred()) SWIG_fail;
4513 }
4514 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4515 return resultobj;
4516 fail:
4517 return NULL;
4518 }
4519
4520
4521 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4522 PyObject *resultobj;
4523 wxCursor *arg1 = (wxCursor *) 0 ;
4524 bool result;
4525 PyObject * obj0 = 0 ;
4526 char *kwnames[] = {
4527 (char *) "self", NULL
4528 };
4529
4530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4533 {
4534 PyThreadState* __tstate = wxPyBeginAllowThreads();
4535 result = (bool)(arg1)->Ok();
4536
4537 wxPyEndAllowThreads(__tstate);
4538 if (PyErr_Occurred()) SWIG_fail;
4539 }
4540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4541 return resultobj;
4542 fail:
4543 return NULL;
4544 }
4545
4546
4547 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4548 PyObject *obj;
4549 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4550 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4551 Py_INCREF(obj);
4552 return Py_BuildValue((char *)"");
4553 }
4554 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4555 PyObject *resultobj;
4556 int arg1 = (int) 0 ;
4557 int arg2 = (int) 0 ;
4558 int arg3 = (int) 0 ;
4559 int arg4 = (int) 0 ;
4560 wxRegion *result;
4561 PyObject * obj0 = 0 ;
4562 PyObject * obj1 = 0 ;
4563 PyObject * obj2 = 0 ;
4564 PyObject * obj3 = 0 ;
4565 char *kwnames[] = {
4566 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4567 };
4568
4569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4570 if (obj0) {
4571 arg1 = (int) SWIG_AsInt(obj0);
4572 if (PyErr_Occurred()) SWIG_fail;
4573 }
4574 if (obj1) {
4575 arg2 = (int) SWIG_AsInt(obj1);
4576 if (PyErr_Occurred()) SWIG_fail;
4577 }
4578 if (obj2) {
4579 arg3 = (int) SWIG_AsInt(obj2);
4580 if (PyErr_Occurred()) SWIG_fail;
4581 }
4582 if (obj3) {
4583 arg4 = (int) SWIG_AsInt(obj3);
4584 if (PyErr_Occurred()) SWIG_fail;
4585 }
4586 {
4587 PyThreadState* __tstate = wxPyBeginAllowThreads();
4588 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4589
4590 wxPyEndAllowThreads(__tstate);
4591 if (PyErr_Occurred()) SWIG_fail;
4592 }
4593 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4594 return resultobj;
4595 fail:
4596 return NULL;
4597 }
4598
4599
4600 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4601 PyObject *resultobj;
4602 wxBitmap *arg1 = 0 ;
4603 wxColour const &arg2_defvalue = wxNullColour ;
4604 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4605 int arg3 = (int) 0 ;
4606 wxRegion *result;
4607 wxColour temp2 ;
4608 PyObject * obj0 = 0 ;
4609 PyObject * obj1 = 0 ;
4610 PyObject * obj2 = 0 ;
4611 char *kwnames[] = {
4612 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4613 };
4614
4615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4617 SWIG_POINTER_EXCEPTION | 0)) == -1)
4618 SWIG_fail;
4619 if (arg1 == NULL) {
4620 PyErr_SetString(PyExc_TypeError,"null reference");
4621 SWIG_fail;
4622 }
4623 if (obj1) {
4624 {
4625 arg2 = &temp2;
4626 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4627 }
4628 }
4629 if (obj2) {
4630 arg3 = (int) SWIG_AsInt(obj2);
4631 if (PyErr_Occurred()) SWIG_fail;
4632 }
4633 {
4634 PyThreadState* __tstate = wxPyBeginAllowThreads();
4635 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4636
4637 wxPyEndAllowThreads(__tstate);
4638 if (PyErr_Occurred()) SWIG_fail;
4639 }
4640 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4641 return resultobj;
4642 fail:
4643 return NULL;
4644 }
4645
4646
4647 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4648 PyObject *resultobj;
4649 int arg1 ;
4650 wxPoint *arg2 = (wxPoint *) 0 ;
4651 int arg3 = (int) wxWINDING_RULE ;
4652 wxRegion *result;
4653 PyObject * obj0 = 0 ;
4654 PyObject * obj1 = 0 ;
4655 char *kwnames[] = {
4656 (char *) "points",(char *) "fillStyle", NULL
4657 };
4658
4659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4660 {
4661 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4662 if (arg2 == NULL) SWIG_fail;
4663 }
4664 if (obj1) {
4665 arg3 = (int) SWIG_AsInt(obj1);
4666 if (PyErr_Occurred()) SWIG_fail;
4667 }
4668 {
4669 PyThreadState* __tstate = wxPyBeginAllowThreads();
4670 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
4671
4672 wxPyEndAllowThreads(__tstate);
4673 if (PyErr_Occurred()) SWIG_fail;
4674 }
4675 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4676 {
4677 if (arg2) delete [] arg2;
4678 }
4679 return resultobj;
4680 fail:
4681 {
4682 if (arg2) delete [] arg2;
4683 }
4684 return NULL;
4685 }
4686
4687
4688 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4689 PyObject *resultobj;
4690 wxRegion *arg1 = (wxRegion *) 0 ;
4691 PyObject * obj0 = 0 ;
4692 char *kwnames[] = {
4693 (char *) "self", NULL
4694 };
4695
4696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4699 {
4700 PyThreadState* __tstate = wxPyBeginAllowThreads();
4701 delete arg1;
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_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4714 PyObject *resultobj;
4715 wxRegion *arg1 = (wxRegion *) 0 ;
4716 PyObject * obj0 = 0 ;
4717 char *kwnames[] = {
4718 (char *) "self", NULL
4719 };
4720
4721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4724 {
4725 PyThreadState* __tstate = wxPyBeginAllowThreads();
4726 (arg1)->Clear();
4727
4728 wxPyEndAllowThreads(__tstate);
4729 if (PyErr_Occurred()) SWIG_fail;
4730 }
4731 Py_INCREF(Py_None); resultobj = Py_None;
4732 return resultobj;
4733 fail:
4734 return NULL;
4735 }
4736
4737
4738 static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
4739 PyObject *resultobj;
4740 wxRegion *arg1 = (wxRegion *) 0 ;
4741 int arg2 ;
4742 int arg3 ;
4743 bool result;
4744 PyObject * obj0 = 0 ;
4745 PyObject * obj1 = 0 ;
4746 PyObject * obj2 = 0 ;
4747 char *kwnames[] = {
4748 (char *) "self",(char *) "x",(char *) "y", NULL
4749 };
4750
4751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
4752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4754 arg2 = (int) SWIG_AsInt(obj1);
4755 if (PyErr_Occurred()) SWIG_fail;
4756 arg3 = (int) SWIG_AsInt(obj2);
4757 if (PyErr_Occurred()) SWIG_fail;
4758 {
4759 PyThreadState* __tstate = wxPyBeginAllowThreads();
4760 result = (bool)(arg1)->Offset(arg2,arg3);
4761
4762 wxPyEndAllowThreads(__tstate);
4763 if (PyErr_Occurred()) SWIG_fail;
4764 }
4765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4766 return resultobj;
4767 fail:
4768 return NULL;
4769 }
4770
4771
4772 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4773 PyObject *resultobj;
4774 wxRegion *arg1 = (wxRegion *) 0 ;
4775 int arg2 ;
4776 int arg3 ;
4777 int result;
4778 PyObject * obj0 = 0 ;
4779 PyObject * obj1 = 0 ;
4780 PyObject * obj2 = 0 ;
4781 char *kwnames[] = {
4782 (char *) "self",(char *) "x",(char *) "y", NULL
4783 };
4784
4785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
4786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4788 arg2 = (int) SWIG_AsInt(obj1);
4789 if (PyErr_Occurred()) SWIG_fail;
4790 arg3 = (int) SWIG_AsInt(obj2);
4791 if (PyErr_Occurred()) SWIG_fail;
4792 {
4793 PyThreadState* __tstate = wxPyBeginAllowThreads();
4794 result = (int)(arg1)->Contains(arg2,arg3);
4795
4796 wxPyEndAllowThreads(__tstate);
4797 if (PyErr_Occurred()) SWIG_fail;
4798 }
4799 resultobj = SWIG_FromInt((int)result);
4800 return resultobj;
4801 fail:
4802 return NULL;
4803 }
4804
4805
4806 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4807 PyObject *resultobj;
4808 wxRegion *arg1 = (wxRegion *) 0 ;
4809 wxPoint *arg2 = 0 ;
4810 int result;
4811 wxPoint temp2 ;
4812 PyObject * obj0 = 0 ;
4813 PyObject * obj1 = 0 ;
4814 char *kwnames[] = {
4815 (char *) "self",(char *) "pt", NULL
4816 };
4817
4818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4821 {
4822 arg2 = &temp2;
4823 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4824 }
4825 {
4826 PyThreadState* __tstate = wxPyBeginAllowThreads();
4827 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4828
4829 wxPyEndAllowThreads(__tstate);
4830 if (PyErr_Occurred()) SWIG_fail;
4831 }
4832 resultobj = SWIG_FromInt((int)result);
4833 return resultobj;
4834 fail:
4835 return NULL;
4836 }
4837
4838
4839 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4840 PyObject *resultobj;
4841 wxRegion *arg1 = (wxRegion *) 0 ;
4842 wxRect *arg2 = 0 ;
4843 int result;
4844 wxRect temp2 ;
4845 PyObject * obj0 = 0 ;
4846 PyObject * obj1 = 0 ;
4847 char *kwnames[] = {
4848 (char *) "self",(char *) "rect", NULL
4849 };
4850
4851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4854 {
4855 arg2 = &temp2;
4856 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4857 }
4858 {
4859 PyThreadState* __tstate = wxPyBeginAllowThreads();
4860 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4861
4862 wxPyEndAllowThreads(__tstate);
4863 if (PyErr_Occurred()) SWIG_fail;
4864 }
4865 resultobj = SWIG_FromInt((int)result);
4866 return resultobj;
4867 fail:
4868 return NULL;
4869 }
4870
4871
4872 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4873 PyObject *resultobj;
4874 wxRegion *arg1 = (wxRegion *) 0 ;
4875 int arg2 ;
4876 int arg3 ;
4877 int arg4 ;
4878 int arg5 ;
4879 int result;
4880 PyObject * obj0 = 0 ;
4881 PyObject * obj1 = 0 ;
4882 PyObject * obj2 = 0 ;
4883 PyObject * obj3 = 0 ;
4884 PyObject * obj4 = 0 ;
4885 char *kwnames[] = {
4886 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4887 };
4888
4889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4892 arg2 = (int) SWIG_AsInt(obj1);
4893 if (PyErr_Occurred()) SWIG_fail;
4894 arg3 = (int) SWIG_AsInt(obj2);
4895 if (PyErr_Occurred()) SWIG_fail;
4896 arg4 = (int) SWIG_AsInt(obj3);
4897 if (PyErr_Occurred()) SWIG_fail;
4898 arg5 = (int) SWIG_AsInt(obj4);
4899 if (PyErr_Occurred()) SWIG_fail;
4900 {
4901 PyThreadState* __tstate = wxPyBeginAllowThreads();
4902 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4903
4904 wxPyEndAllowThreads(__tstate);
4905 if (PyErr_Occurred()) SWIG_fail;
4906 }
4907 resultobj = SWIG_FromInt((int)result);
4908 return resultobj;
4909 fail:
4910 return NULL;
4911 }
4912
4913
4914 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4915 PyObject *resultobj;
4916 wxRegion *arg1 = (wxRegion *) 0 ;
4917 wxRect result;
4918 PyObject * obj0 = 0 ;
4919 char *kwnames[] = {
4920 (char *) "self", NULL
4921 };
4922
4923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4926 {
4927 PyThreadState* __tstate = wxPyBeginAllowThreads();
4928 result = (arg1)->GetBox();
4929
4930 wxPyEndAllowThreads(__tstate);
4931 if (PyErr_Occurred()) SWIG_fail;
4932 }
4933 {
4934 wxRect * resultptr;
4935 resultptr = new wxRect((wxRect &) result);
4936 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4937 }
4938 return resultobj;
4939 fail:
4940 return NULL;
4941 }
4942
4943
4944 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4945 PyObject *resultobj;
4946 wxRegion *arg1 = (wxRegion *) 0 ;
4947 int arg2 ;
4948 int arg3 ;
4949 int arg4 ;
4950 int arg5 ;
4951 bool result;
4952 PyObject * obj0 = 0 ;
4953 PyObject * obj1 = 0 ;
4954 PyObject * obj2 = 0 ;
4955 PyObject * obj3 = 0 ;
4956 PyObject * obj4 = 0 ;
4957 char *kwnames[] = {
4958 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4959 };
4960
4961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4964 arg2 = (int) SWIG_AsInt(obj1);
4965 if (PyErr_Occurred()) SWIG_fail;
4966 arg3 = (int) SWIG_AsInt(obj2);
4967 if (PyErr_Occurred()) SWIG_fail;
4968 arg4 = (int) SWIG_AsInt(obj3);
4969 if (PyErr_Occurred()) SWIG_fail;
4970 arg5 = (int) SWIG_AsInt(obj4);
4971 if (PyErr_Occurred()) SWIG_fail;
4972 {
4973 PyThreadState* __tstate = wxPyBeginAllowThreads();
4974 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
4975
4976 wxPyEndAllowThreads(__tstate);
4977 if (PyErr_Occurred()) SWIG_fail;
4978 }
4979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4980 return resultobj;
4981 fail:
4982 return NULL;
4983 }
4984
4985
4986 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4987 PyObject *resultobj;
4988 wxRegion *arg1 = (wxRegion *) 0 ;
4989 wxRect *arg2 = 0 ;
4990 bool result;
4991 wxRect temp2 ;
4992 PyObject * obj0 = 0 ;
4993 PyObject * obj1 = 0 ;
4994 char *kwnames[] = {
4995 (char *) "self",(char *) "rect", NULL
4996 };
4997
4998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
4999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5001 {
5002 arg2 = &temp2;
5003 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5004 }
5005 {
5006 PyThreadState* __tstate = wxPyBeginAllowThreads();
5007 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5008
5009 wxPyEndAllowThreads(__tstate);
5010 if (PyErr_Occurred()) SWIG_fail;
5011 }
5012 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5013 return resultobj;
5014 fail:
5015 return NULL;
5016 }
5017
5018
5019 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5020 PyObject *resultobj;
5021 wxRegion *arg1 = (wxRegion *) 0 ;
5022 wxRegion *arg2 = 0 ;
5023 bool result;
5024 PyObject * obj0 = 0 ;
5025 PyObject * obj1 = 0 ;
5026 char *kwnames[] = {
5027 (char *) "self",(char *) "region", NULL
5028 };
5029
5030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5033 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5034 SWIG_POINTER_EXCEPTION | 0)) == -1)
5035 SWIG_fail;
5036 if (arg2 == NULL) {
5037 PyErr_SetString(PyExc_TypeError,"null reference");
5038 SWIG_fail;
5039 }
5040 {
5041 PyThreadState* __tstate = wxPyBeginAllowThreads();
5042 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5043
5044 wxPyEndAllowThreads(__tstate);
5045 if (PyErr_Occurred()) SWIG_fail;
5046 }
5047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5048 return resultobj;
5049 fail:
5050 return NULL;
5051 }
5052
5053
5054 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5055 PyObject *resultobj;
5056 wxRegion *arg1 = (wxRegion *) 0 ;
5057 bool result;
5058 PyObject * obj0 = 0 ;
5059 char *kwnames[] = {
5060 (char *) "self", NULL
5061 };
5062
5063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5066 {
5067 PyThreadState* __tstate = wxPyBeginAllowThreads();
5068 result = (bool)(arg1)->IsEmpty();
5069
5070 wxPyEndAllowThreads(__tstate);
5071 if (PyErr_Occurred()) SWIG_fail;
5072 }
5073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5074 return resultobj;
5075 fail:
5076 return NULL;
5077 }
5078
5079
5080 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5081 PyObject *resultobj;
5082 wxRegion *arg1 = (wxRegion *) 0 ;
5083 int arg2 ;
5084 int arg3 ;
5085 int arg4 ;
5086 int arg5 ;
5087 bool result;
5088 PyObject * obj0 = 0 ;
5089 PyObject * obj1 = 0 ;
5090 PyObject * obj2 = 0 ;
5091 PyObject * obj3 = 0 ;
5092 PyObject * obj4 = 0 ;
5093 char *kwnames[] = {
5094 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5095 };
5096
5097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5100 arg2 = (int) SWIG_AsInt(obj1);
5101 if (PyErr_Occurred()) SWIG_fail;
5102 arg3 = (int) SWIG_AsInt(obj2);
5103 if (PyErr_Occurred()) SWIG_fail;
5104 arg4 = (int) SWIG_AsInt(obj3);
5105 if (PyErr_Occurred()) SWIG_fail;
5106 arg5 = (int) SWIG_AsInt(obj4);
5107 if (PyErr_Occurred()) SWIG_fail;
5108 {
5109 PyThreadState* __tstate = wxPyBeginAllowThreads();
5110 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5111
5112 wxPyEndAllowThreads(__tstate);
5113 if (PyErr_Occurred()) SWIG_fail;
5114 }
5115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5116 return resultobj;
5117 fail:
5118 return NULL;
5119 }
5120
5121
5122 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5123 PyObject *resultobj;
5124 wxRegion *arg1 = (wxRegion *) 0 ;
5125 wxRect *arg2 = 0 ;
5126 bool result;
5127 wxRect temp2 ;
5128 PyObject * obj0 = 0 ;
5129 PyObject * obj1 = 0 ;
5130 char *kwnames[] = {
5131 (char *) "self",(char *) "rect", NULL
5132 };
5133
5134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5137 {
5138 arg2 = &temp2;
5139 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5140 }
5141 {
5142 PyThreadState* __tstate = wxPyBeginAllowThreads();
5143 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5144
5145 wxPyEndAllowThreads(__tstate);
5146 if (PyErr_Occurred()) SWIG_fail;
5147 }
5148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5149 return resultobj;
5150 fail:
5151 return NULL;
5152 }
5153
5154
5155 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5156 PyObject *resultobj;
5157 wxRegion *arg1 = (wxRegion *) 0 ;
5158 wxRegion *arg2 = 0 ;
5159 bool result;
5160 PyObject * obj0 = 0 ;
5161 PyObject * obj1 = 0 ;
5162 char *kwnames[] = {
5163 (char *) "self",(char *) "region", NULL
5164 };
5165
5166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5169 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5170 SWIG_POINTER_EXCEPTION | 0)) == -1)
5171 SWIG_fail;
5172 if (arg2 == NULL) {
5173 PyErr_SetString(PyExc_TypeError,"null reference");
5174 SWIG_fail;
5175 }
5176 {
5177 PyThreadState* __tstate = wxPyBeginAllowThreads();
5178 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5179
5180 wxPyEndAllowThreads(__tstate);
5181 if (PyErr_Occurred()) SWIG_fail;
5182 }
5183 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5184 return resultobj;
5185 fail:
5186 return NULL;
5187 }
5188
5189
5190 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5191 PyObject *resultobj;
5192 wxRegion *arg1 = (wxRegion *) 0 ;
5193 int arg2 ;
5194 int arg3 ;
5195 int arg4 ;
5196 int arg5 ;
5197 bool result;
5198 PyObject * obj0 = 0 ;
5199 PyObject * obj1 = 0 ;
5200 PyObject * obj2 = 0 ;
5201 PyObject * obj3 = 0 ;
5202 PyObject * obj4 = 0 ;
5203 char *kwnames[] = {
5204 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5205 };
5206
5207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5210 arg2 = (int) SWIG_AsInt(obj1);
5211 if (PyErr_Occurred()) SWIG_fail;
5212 arg3 = (int) SWIG_AsInt(obj2);
5213 if (PyErr_Occurred()) SWIG_fail;
5214 arg4 = (int) SWIG_AsInt(obj3);
5215 if (PyErr_Occurred()) SWIG_fail;
5216 arg5 = (int) SWIG_AsInt(obj4);
5217 if (PyErr_Occurred()) SWIG_fail;
5218 {
5219 PyThreadState* __tstate = wxPyBeginAllowThreads();
5220 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5221
5222 wxPyEndAllowThreads(__tstate);
5223 if (PyErr_Occurred()) SWIG_fail;
5224 }
5225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5226 return resultobj;
5227 fail:
5228 return NULL;
5229 }
5230
5231
5232 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5233 PyObject *resultobj;
5234 wxRegion *arg1 = (wxRegion *) 0 ;
5235 wxRect *arg2 = 0 ;
5236 bool result;
5237 wxRect temp2 ;
5238 PyObject * obj0 = 0 ;
5239 PyObject * obj1 = 0 ;
5240 char *kwnames[] = {
5241 (char *) "self",(char *) "rect", NULL
5242 };
5243
5244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5247 {
5248 arg2 = &temp2;
5249 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5250 }
5251 {
5252 PyThreadState* __tstate = wxPyBeginAllowThreads();
5253 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5254
5255 wxPyEndAllowThreads(__tstate);
5256 if (PyErr_Occurred()) SWIG_fail;
5257 }
5258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5259 return resultobj;
5260 fail:
5261 return NULL;
5262 }
5263
5264
5265 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5266 PyObject *resultobj;
5267 wxRegion *arg1 = (wxRegion *) 0 ;
5268 wxRegion *arg2 = 0 ;
5269 bool result;
5270 PyObject * obj0 = 0 ;
5271 PyObject * obj1 = 0 ;
5272 char *kwnames[] = {
5273 (char *) "self",(char *) "region", NULL
5274 };
5275
5276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5279 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5280 SWIG_POINTER_EXCEPTION | 0)) == -1)
5281 SWIG_fail;
5282 if (arg2 == NULL) {
5283 PyErr_SetString(PyExc_TypeError,"null reference");
5284 SWIG_fail;
5285 }
5286 {
5287 PyThreadState* __tstate = wxPyBeginAllowThreads();
5288 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5289
5290 wxPyEndAllowThreads(__tstate);
5291 if (PyErr_Occurred()) SWIG_fail;
5292 }
5293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5294 return resultobj;
5295 fail:
5296 return NULL;
5297 }
5298
5299
5300 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5301 PyObject *resultobj;
5302 wxRegion *arg1 = (wxRegion *) 0 ;
5303 int arg2 ;
5304 int arg3 ;
5305 int arg4 ;
5306 int arg5 ;
5307 bool result;
5308 PyObject * obj0 = 0 ;
5309 PyObject * obj1 = 0 ;
5310 PyObject * obj2 = 0 ;
5311 PyObject * obj3 = 0 ;
5312 PyObject * obj4 = 0 ;
5313 char *kwnames[] = {
5314 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5315 };
5316
5317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5320 arg2 = (int) SWIG_AsInt(obj1);
5321 if (PyErr_Occurred()) SWIG_fail;
5322 arg3 = (int) SWIG_AsInt(obj2);
5323 if (PyErr_Occurred()) SWIG_fail;
5324 arg4 = (int) SWIG_AsInt(obj3);
5325 if (PyErr_Occurred()) SWIG_fail;
5326 arg5 = (int) SWIG_AsInt(obj4);
5327 if (PyErr_Occurred()) SWIG_fail;
5328 {
5329 PyThreadState* __tstate = wxPyBeginAllowThreads();
5330 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5331
5332 wxPyEndAllowThreads(__tstate);
5333 if (PyErr_Occurred()) SWIG_fail;
5334 }
5335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5336 return resultobj;
5337 fail:
5338 return NULL;
5339 }
5340
5341
5342 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5343 PyObject *resultobj;
5344 wxRegion *arg1 = (wxRegion *) 0 ;
5345 wxRect *arg2 = 0 ;
5346 bool result;
5347 wxRect temp2 ;
5348 PyObject * obj0 = 0 ;
5349 PyObject * obj1 = 0 ;
5350 char *kwnames[] = {
5351 (char *) "self",(char *) "rect", NULL
5352 };
5353
5354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5357 {
5358 arg2 = &temp2;
5359 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5360 }
5361 {
5362 PyThreadState* __tstate = wxPyBeginAllowThreads();
5363 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5364
5365 wxPyEndAllowThreads(__tstate);
5366 if (PyErr_Occurred()) SWIG_fail;
5367 }
5368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5369 return resultobj;
5370 fail:
5371 return NULL;
5372 }
5373
5374
5375 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5376 PyObject *resultobj;
5377 wxRegion *arg1 = (wxRegion *) 0 ;
5378 wxRegion *arg2 = 0 ;
5379 bool result;
5380 PyObject * obj0 = 0 ;
5381 PyObject * obj1 = 0 ;
5382 char *kwnames[] = {
5383 (char *) "self",(char *) "region", NULL
5384 };
5385
5386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5389 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5390 SWIG_POINTER_EXCEPTION | 0)) == -1)
5391 SWIG_fail;
5392 if (arg2 == NULL) {
5393 PyErr_SetString(PyExc_TypeError,"null reference");
5394 SWIG_fail;
5395 }
5396 {
5397 PyThreadState* __tstate = wxPyBeginAllowThreads();
5398 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5399
5400 wxPyEndAllowThreads(__tstate);
5401 if (PyErr_Occurred()) SWIG_fail;
5402 }
5403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5404 return resultobj;
5405 fail:
5406 return NULL;
5407 }
5408
5409
5410 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5411 PyObject *resultobj;
5412 wxRegion *arg1 = (wxRegion *) 0 ;
5413 SwigValueWrapper< wxBitmap > result;
5414 PyObject * obj0 = 0 ;
5415 char *kwnames[] = {
5416 (char *) "self", NULL
5417 };
5418
5419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5422 {
5423 PyThreadState* __tstate = wxPyBeginAllowThreads();
5424 result = (arg1)->ConvertToBitmap();
5425
5426 wxPyEndAllowThreads(__tstate);
5427 if (PyErr_Occurred()) SWIG_fail;
5428 }
5429 {
5430 wxBitmap * resultptr;
5431 resultptr = new wxBitmap((wxBitmap &) result);
5432 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5433 }
5434 return resultobj;
5435 fail:
5436 return NULL;
5437 }
5438
5439
5440 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5441 PyObject *resultobj;
5442 wxRegion *arg1 = (wxRegion *) 0 ;
5443 wxBitmap *arg2 = 0 ;
5444 wxColour const &arg3_defvalue = wxNullColour ;
5445 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
5446 int arg4 = (int) 0 ;
5447 bool result;
5448 wxColour temp3 ;
5449 PyObject * obj0 = 0 ;
5450 PyObject * obj1 = 0 ;
5451 PyObject * obj2 = 0 ;
5452 PyObject * obj3 = 0 ;
5453 char *kwnames[] = {
5454 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5455 };
5456
5457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5460 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5461 SWIG_POINTER_EXCEPTION | 0)) == -1)
5462 SWIG_fail;
5463 if (arg2 == NULL) {
5464 PyErr_SetString(PyExc_TypeError,"null reference");
5465 SWIG_fail;
5466 }
5467 if (obj2) {
5468 {
5469 arg3 = &temp3;
5470 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5471 }
5472 }
5473 if (obj3) {
5474 arg4 = (int) SWIG_AsInt(obj3);
5475 if (PyErr_Occurred()) SWIG_fail;
5476 }
5477 {
5478 PyThreadState* __tstate = wxPyBeginAllowThreads();
5479 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5480
5481 wxPyEndAllowThreads(__tstate);
5482 if (PyErr_Occurred()) SWIG_fail;
5483 }
5484 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5485 return resultobj;
5486 fail:
5487 return NULL;
5488 }
5489
5490
5491 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5492 PyObject *obj;
5493 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5494 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5495 Py_INCREF(obj);
5496 return Py_BuildValue((char *)"");
5497 }
5498 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5499 PyObject *resultobj;
5500 wxRegion *arg1 = 0 ;
5501 wxRegionIterator *result;
5502 PyObject * obj0 = 0 ;
5503 char *kwnames[] = {
5504 (char *) "region", NULL
5505 };
5506
5507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5509 SWIG_POINTER_EXCEPTION | 0)) == -1)
5510 SWIG_fail;
5511 if (arg1 == NULL) {
5512 PyErr_SetString(PyExc_TypeError,"null reference");
5513 SWIG_fail;
5514 }
5515 {
5516 PyThreadState* __tstate = wxPyBeginAllowThreads();
5517 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5518
5519 wxPyEndAllowThreads(__tstate);
5520 if (PyErr_Occurred()) SWIG_fail;
5521 }
5522 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
5523 return resultobj;
5524 fail:
5525 return NULL;
5526 }
5527
5528
5529 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5530 PyObject *resultobj;
5531 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5532 PyObject * obj0 = 0 ;
5533 char *kwnames[] = {
5534 (char *) "self", NULL
5535 };
5536
5537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5540 {
5541 PyThreadState* __tstate = wxPyBeginAllowThreads();
5542 delete arg1;
5543
5544 wxPyEndAllowThreads(__tstate);
5545 if (PyErr_Occurred()) SWIG_fail;
5546 }
5547 Py_INCREF(Py_None); resultobj = Py_None;
5548 return resultobj;
5549 fail:
5550 return NULL;
5551 }
5552
5553
5554 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5555 PyObject *resultobj;
5556 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5557 int result;
5558 PyObject * obj0 = 0 ;
5559 char *kwnames[] = {
5560 (char *) "self", NULL
5561 };
5562
5563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5566 {
5567 PyThreadState* __tstate = wxPyBeginAllowThreads();
5568 result = (int)(arg1)->GetX();
5569
5570 wxPyEndAllowThreads(__tstate);
5571 if (PyErr_Occurred()) SWIG_fail;
5572 }
5573 resultobj = SWIG_FromInt((int)result);
5574 return resultobj;
5575 fail:
5576 return NULL;
5577 }
5578
5579
5580 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5581 PyObject *resultobj;
5582 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5583 int result;
5584 PyObject * obj0 = 0 ;
5585 char *kwnames[] = {
5586 (char *) "self", NULL
5587 };
5588
5589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5592 {
5593 PyThreadState* __tstate = wxPyBeginAllowThreads();
5594 result = (int)(arg1)->GetY();
5595
5596 wxPyEndAllowThreads(__tstate);
5597 if (PyErr_Occurred()) SWIG_fail;
5598 }
5599 resultobj = SWIG_FromInt((int)result);
5600 return resultobj;
5601 fail:
5602 return NULL;
5603 }
5604
5605
5606 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5607 PyObject *resultobj;
5608 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5609 int result;
5610 PyObject * obj0 = 0 ;
5611 char *kwnames[] = {
5612 (char *) "self", NULL
5613 };
5614
5615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5618 {
5619 PyThreadState* __tstate = wxPyBeginAllowThreads();
5620 result = (int)(arg1)->GetW();
5621
5622 wxPyEndAllowThreads(__tstate);
5623 if (PyErr_Occurred()) SWIG_fail;
5624 }
5625 resultobj = SWIG_FromInt((int)result);
5626 return resultobj;
5627 fail:
5628 return NULL;
5629 }
5630
5631
5632 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5633 PyObject *resultobj;
5634 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5635 int result;
5636 PyObject * obj0 = 0 ;
5637 char *kwnames[] = {
5638 (char *) "self", NULL
5639 };
5640
5641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5644 {
5645 PyThreadState* __tstate = wxPyBeginAllowThreads();
5646 result = (int)(arg1)->GetWidth();
5647
5648 wxPyEndAllowThreads(__tstate);
5649 if (PyErr_Occurred()) SWIG_fail;
5650 }
5651 resultobj = SWIG_FromInt((int)result);
5652 return resultobj;
5653 fail:
5654 return NULL;
5655 }
5656
5657
5658 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5659 PyObject *resultobj;
5660 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5661 int result;
5662 PyObject * obj0 = 0 ;
5663 char *kwnames[] = {
5664 (char *) "self", NULL
5665 };
5666
5667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5670 {
5671 PyThreadState* __tstate = wxPyBeginAllowThreads();
5672 result = (int)(arg1)->GetH();
5673
5674 wxPyEndAllowThreads(__tstate);
5675 if (PyErr_Occurred()) SWIG_fail;
5676 }
5677 resultobj = SWIG_FromInt((int)result);
5678 return resultobj;
5679 fail:
5680 return NULL;
5681 }
5682
5683
5684 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5685 PyObject *resultobj;
5686 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5687 int result;
5688 PyObject * obj0 = 0 ;
5689 char *kwnames[] = {
5690 (char *) "self", NULL
5691 };
5692
5693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5696 {
5697 PyThreadState* __tstate = wxPyBeginAllowThreads();
5698 result = (int)(arg1)->GetHeight();
5699
5700 wxPyEndAllowThreads(__tstate);
5701 if (PyErr_Occurred()) SWIG_fail;
5702 }
5703 resultobj = SWIG_FromInt((int)result);
5704 return resultobj;
5705 fail:
5706 return NULL;
5707 }
5708
5709
5710 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5711 PyObject *resultobj;
5712 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5713 wxRect result;
5714 PyObject * obj0 = 0 ;
5715 char *kwnames[] = {
5716 (char *) "self", NULL
5717 };
5718
5719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5722 {
5723 PyThreadState* __tstate = wxPyBeginAllowThreads();
5724 result = (arg1)->GetRect();
5725
5726 wxPyEndAllowThreads(__tstate);
5727 if (PyErr_Occurred()) SWIG_fail;
5728 }
5729 {
5730 wxRect * resultptr;
5731 resultptr = new wxRect((wxRect &) result);
5732 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5733 }
5734 return resultobj;
5735 fail:
5736 return NULL;
5737 }
5738
5739
5740 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
5741 PyObject *resultobj;
5742 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5743 bool result;
5744 PyObject * obj0 = 0 ;
5745 char *kwnames[] = {
5746 (char *) "self", NULL
5747 };
5748
5749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
5750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5752 {
5753 PyThreadState* __tstate = wxPyBeginAllowThreads();
5754 result = (bool)(arg1)->HaveRects();
5755
5756 wxPyEndAllowThreads(__tstate);
5757 if (PyErr_Occurred()) SWIG_fail;
5758 }
5759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5760 return resultobj;
5761 fail:
5762 return NULL;
5763 }
5764
5765
5766 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
5767 PyObject *resultobj;
5768 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5769 PyObject * obj0 = 0 ;
5770 char *kwnames[] = {
5771 (char *) "self", NULL
5772 };
5773
5774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
5775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5777 {
5778 PyThreadState* __tstate = wxPyBeginAllowThreads();
5779 (arg1)->Reset();
5780
5781 wxPyEndAllowThreads(__tstate);
5782 if (PyErr_Occurred()) SWIG_fail;
5783 }
5784 Py_INCREF(Py_None); resultobj = Py_None;
5785 return resultobj;
5786 fail:
5787 return NULL;
5788 }
5789
5790
5791 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
5792 PyObject *resultobj;
5793 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5794 PyObject * obj0 = 0 ;
5795 char *kwnames[] = {
5796 (char *) "self", NULL
5797 };
5798
5799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
5800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5802 {
5803 PyThreadState* __tstate = wxPyBeginAllowThreads();
5804 wxRegionIterator_Next(arg1);
5805
5806 wxPyEndAllowThreads(__tstate);
5807 if (PyErr_Occurred()) SWIG_fail;
5808 }
5809 Py_INCREF(Py_None); resultobj = Py_None;
5810 return resultobj;
5811 fail:
5812 return NULL;
5813 }
5814
5815
5816 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
5817 PyObject *resultobj;
5818 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5819 bool result;
5820 PyObject * obj0 = 0 ;
5821 char *kwnames[] = {
5822 (char *) "self", NULL
5823 };
5824
5825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
5826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5828 {
5829 PyThreadState* __tstate = wxPyBeginAllowThreads();
5830 result = (bool)wxRegionIterator___nonzero__(arg1);
5831
5832 wxPyEndAllowThreads(__tstate);
5833 if (PyErr_Occurred()) SWIG_fail;
5834 }
5835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5836 return resultobj;
5837 fail:
5838 return NULL;
5839 }
5840
5841
5842 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
5843 PyObject *obj;
5844 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5845 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
5846 Py_INCREF(obj);
5847 return Py_BuildValue((char *)"");
5848 }
5849 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5850 PyObject *resultobj;
5851 wxNativeFontInfo *result;
5852 char *kwnames[] = {
5853 NULL
5854 };
5855
5856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
5857 {
5858 PyThreadState* __tstate = wxPyBeginAllowThreads();
5859 result = (wxNativeFontInfo *)new wxNativeFontInfo();
5860
5861 wxPyEndAllowThreads(__tstate);
5862 if (PyErr_Occurred()) SWIG_fail;
5863 }
5864 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
5865 return resultobj;
5866 fail:
5867 return NULL;
5868 }
5869
5870
5871 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5872 PyObject *resultobj;
5873 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5874 PyObject * obj0 = 0 ;
5875 char *kwnames[] = {
5876 (char *) "self", NULL
5877 };
5878
5879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
5880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5882 {
5883 PyThreadState* __tstate = wxPyBeginAllowThreads();
5884 delete arg1;
5885
5886 wxPyEndAllowThreads(__tstate);
5887 if (PyErr_Occurred()) SWIG_fail;
5888 }
5889 Py_INCREF(Py_None); resultobj = Py_None;
5890 return resultobj;
5891 fail:
5892 return NULL;
5893 }
5894
5895
5896 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
5897 PyObject *resultobj;
5898 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5899 PyObject * obj0 = 0 ;
5900 char *kwnames[] = {
5901 (char *) "self", NULL
5902 };
5903
5904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
5905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5907 {
5908 PyThreadState* __tstate = wxPyBeginAllowThreads();
5909 (arg1)->Init();
5910
5911 wxPyEndAllowThreads(__tstate);
5912 if (PyErr_Occurred()) SWIG_fail;
5913 }
5914 Py_INCREF(Py_None); resultobj = Py_None;
5915 return resultobj;
5916 fail:
5917 return NULL;
5918 }
5919
5920
5921 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5922 PyObject *resultobj;
5923 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5924 wxFont *arg2 = 0 ;
5925 PyObject * obj0 = 0 ;
5926 PyObject * obj1 = 0 ;
5927 char *kwnames[] = {
5928 (char *) "self",(char *) "font", NULL
5929 };
5930
5931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
5932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5934 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
5935 SWIG_POINTER_EXCEPTION | 0)) == -1)
5936 SWIG_fail;
5937 if (arg2 == NULL) {
5938 PyErr_SetString(PyExc_TypeError,"null reference");
5939 SWIG_fail;
5940 }
5941 {
5942 PyThreadState* __tstate = wxPyBeginAllowThreads();
5943 (arg1)->InitFromFont((wxFont const &)*arg2);
5944
5945 wxPyEndAllowThreads(__tstate);
5946 if (PyErr_Occurred()) SWIG_fail;
5947 }
5948 Py_INCREF(Py_None); resultobj = Py_None;
5949 return resultobj;
5950 fail:
5951 return NULL;
5952 }
5953
5954
5955 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5956 PyObject *resultobj;
5957 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5958 int result;
5959 PyObject * obj0 = 0 ;
5960 char *kwnames[] = {
5961 (char *) "self", NULL
5962 };
5963
5964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
5965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5967 {
5968 PyThreadState* __tstate = wxPyBeginAllowThreads();
5969 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
5970
5971 wxPyEndAllowThreads(__tstate);
5972 if (PyErr_Occurred()) SWIG_fail;
5973 }
5974 resultobj = SWIG_FromInt((int)result);
5975 return resultobj;
5976 fail:
5977 return NULL;
5978 }
5979
5980
5981 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5982 PyObject *resultobj;
5983 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5984 int result;
5985 PyObject * obj0 = 0 ;
5986 char *kwnames[] = {
5987 (char *) "self", NULL
5988 };
5989
5990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
5991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5993 {
5994 PyThreadState* __tstate = wxPyBeginAllowThreads();
5995 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
5996
5997 wxPyEndAllowThreads(__tstate);
5998 if (PyErr_Occurred()) SWIG_fail;
5999 }
6000 resultobj = SWIG_FromInt((int)result);
6001 return resultobj;
6002 fail:
6003 return NULL;
6004 }
6005
6006
6007 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6008 PyObject *resultobj;
6009 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6010 int result;
6011 PyObject * obj0 = 0 ;
6012 char *kwnames[] = {
6013 (char *) "self", NULL
6014 };
6015
6016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6019 {
6020 PyThreadState* __tstate = wxPyBeginAllowThreads();
6021 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6022
6023 wxPyEndAllowThreads(__tstate);
6024 if (PyErr_Occurred()) SWIG_fail;
6025 }
6026 resultobj = SWIG_FromInt((int)result);
6027 return resultobj;
6028 fail:
6029 return NULL;
6030 }
6031
6032
6033 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6034 PyObject *resultobj;
6035 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6036 bool result;
6037 PyObject * obj0 = 0 ;
6038 char *kwnames[] = {
6039 (char *) "self", NULL
6040 };
6041
6042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6045 {
6046 PyThreadState* __tstate = wxPyBeginAllowThreads();
6047 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6048
6049 wxPyEndAllowThreads(__tstate);
6050 if (PyErr_Occurred()) SWIG_fail;
6051 }
6052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6053 return resultobj;
6054 fail:
6055 return NULL;
6056 }
6057
6058
6059 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6060 PyObject *resultobj;
6061 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6062 wxString result;
6063 PyObject * obj0 = 0 ;
6064 char *kwnames[] = {
6065 (char *) "self", NULL
6066 };
6067
6068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6071 {
6072 PyThreadState* __tstate = wxPyBeginAllowThreads();
6073 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6074
6075 wxPyEndAllowThreads(__tstate);
6076 if (PyErr_Occurred()) SWIG_fail;
6077 }
6078 {
6079 #if wxUSE_UNICODE
6080 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6081 #else
6082 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6083 #endif
6084 }
6085 return resultobj;
6086 fail:
6087 return NULL;
6088 }
6089
6090
6091 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6092 PyObject *resultobj;
6093 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6094 int result;
6095 PyObject * obj0 = 0 ;
6096 char *kwnames[] = {
6097 (char *) "self", NULL
6098 };
6099
6100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6103 {
6104 PyThreadState* __tstate = wxPyBeginAllowThreads();
6105 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6106
6107 wxPyEndAllowThreads(__tstate);
6108 if (PyErr_Occurred()) SWIG_fail;
6109 }
6110 resultobj = SWIG_FromInt((int)result);
6111 return resultobj;
6112 fail:
6113 return NULL;
6114 }
6115
6116
6117 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6118 PyObject *resultobj;
6119 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6120 int result;
6121 PyObject * obj0 = 0 ;
6122 char *kwnames[] = {
6123 (char *) "self", NULL
6124 };
6125
6126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6129 {
6130 PyThreadState* __tstate = wxPyBeginAllowThreads();
6131 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6132
6133 wxPyEndAllowThreads(__tstate);
6134 if (PyErr_Occurred()) SWIG_fail;
6135 }
6136 resultobj = SWIG_FromInt((int)result);
6137 return resultobj;
6138 fail:
6139 return NULL;
6140 }
6141
6142
6143 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6144 PyObject *resultobj;
6145 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6146 int arg2 ;
6147 PyObject * obj0 = 0 ;
6148 PyObject * obj1 = 0 ;
6149 char *kwnames[] = {
6150 (char *) "self",(char *) "pointsize", NULL
6151 };
6152
6153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6156 arg2 = (int) SWIG_AsInt(obj1);
6157 if (PyErr_Occurred()) SWIG_fail;
6158 {
6159 PyThreadState* __tstate = wxPyBeginAllowThreads();
6160 (arg1)->SetPointSize(arg2);
6161
6162 wxPyEndAllowThreads(__tstate);
6163 if (PyErr_Occurred()) SWIG_fail;
6164 }
6165 Py_INCREF(Py_None); resultobj = Py_None;
6166 return resultobj;
6167 fail:
6168 return NULL;
6169 }
6170
6171
6172 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6173 PyObject *resultobj;
6174 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6175 int arg2 ;
6176 PyObject * obj0 = 0 ;
6177 PyObject * obj1 = 0 ;
6178 char *kwnames[] = {
6179 (char *) "self",(char *) "style", NULL
6180 };
6181
6182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6185 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6186 if (PyErr_Occurred()) SWIG_fail;
6187 {
6188 PyThreadState* __tstate = wxPyBeginAllowThreads();
6189 (arg1)->SetStyle((wxFontStyle )arg2);
6190
6191 wxPyEndAllowThreads(__tstate);
6192 if (PyErr_Occurred()) SWIG_fail;
6193 }
6194 Py_INCREF(Py_None); resultobj = Py_None;
6195 return resultobj;
6196 fail:
6197 return NULL;
6198 }
6199
6200
6201 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6202 PyObject *resultobj;
6203 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6204 int arg2 ;
6205 PyObject * obj0 = 0 ;
6206 PyObject * obj1 = 0 ;
6207 char *kwnames[] = {
6208 (char *) "self",(char *) "weight", NULL
6209 };
6210
6211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6214 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6215 if (PyErr_Occurred()) SWIG_fail;
6216 {
6217 PyThreadState* __tstate = wxPyBeginAllowThreads();
6218 (arg1)->SetWeight((wxFontWeight )arg2);
6219
6220 wxPyEndAllowThreads(__tstate);
6221 if (PyErr_Occurred()) SWIG_fail;
6222 }
6223 Py_INCREF(Py_None); resultobj = Py_None;
6224 return resultobj;
6225 fail:
6226 return NULL;
6227 }
6228
6229
6230 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6231 PyObject *resultobj;
6232 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6233 bool arg2 ;
6234 PyObject * obj0 = 0 ;
6235 PyObject * obj1 = 0 ;
6236 char *kwnames[] = {
6237 (char *) "self",(char *) "underlined", NULL
6238 };
6239
6240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6243 arg2 = (bool) SWIG_AsBool(obj1);
6244 if (PyErr_Occurred()) SWIG_fail;
6245 {
6246 PyThreadState* __tstate = wxPyBeginAllowThreads();
6247 (arg1)->SetUnderlined(arg2);
6248
6249 wxPyEndAllowThreads(__tstate);
6250 if (PyErr_Occurred()) SWIG_fail;
6251 }
6252 Py_INCREF(Py_None); resultobj = Py_None;
6253 return resultobj;
6254 fail:
6255 return NULL;
6256 }
6257
6258
6259 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6260 PyObject *resultobj;
6261 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6262 wxString arg2 ;
6263 PyObject * obj0 = 0 ;
6264 PyObject * obj1 = 0 ;
6265 char *kwnames[] = {
6266 (char *) "self",(char *) "facename", NULL
6267 };
6268
6269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6272 {
6273 wxString* sptr = wxString_in_helper(obj1);
6274 if (sptr == NULL) SWIG_fail;
6275 arg2 = *sptr;
6276 delete sptr;
6277 }
6278 {
6279 PyThreadState* __tstate = wxPyBeginAllowThreads();
6280 (arg1)->SetFaceName(arg2);
6281
6282 wxPyEndAllowThreads(__tstate);
6283 if (PyErr_Occurred()) SWIG_fail;
6284 }
6285 Py_INCREF(Py_None); resultobj = Py_None;
6286 return resultobj;
6287 fail:
6288 return NULL;
6289 }
6290
6291
6292 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6293 PyObject *resultobj;
6294 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6295 int arg2 ;
6296 PyObject * obj0 = 0 ;
6297 PyObject * obj1 = 0 ;
6298 char *kwnames[] = {
6299 (char *) "self",(char *) "family", NULL
6300 };
6301
6302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6305 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
6306 if (PyErr_Occurred()) SWIG_fail;
6307 {
6308 PyThreadState* __tstate = wxPyBeginAllowThreads();
6309 (arg1)->SetFamily((wxFontFamily )arg2);
6310
6311 wxPyEndAllowThreads(__tstate);
6312 if (PyErr_Occurred()) SWIG_fail;
6313 }
6314 Py_INCREF(Py_None); resultobj = Py_None;
6315 return resultobj;
6316 fail:
6317 return NULL;
6318 }
6319
6320
6321 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6322 PyObject *resultobj;
6323 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6324 int arg2 ;
6325 PyObject * obj0 = 0 ;
6326 PyObject * obj1 = 0 ;
6327 char *kwnames[] = {
6328 (char *) "self",(char *) "encoding", NULL
6329 };
6330
6331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6334 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6335 if (PyErr_Occurred()) SWIG_fail;
6336 {
6337 PyThreadState* __tstate = wxPyBeginAllowThreads();
6338 (arg1)->SetEncoding((wxFontEncoding )arg2);
6339
6340 wxPyEndAllowThreads(__tstate);
6341 if (PyErr_Occurred()) SWIG_fail;
6342 }
6343 Py_INCREF(Py_None); resultobj = Py_None;
6344 return resultobj;
6345 fail:
6346 return NULL;
6347 }
6348
6349
6350 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6351 PyObject *resultobj;
6352 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6353 wxString *arg2 = 0 ;
6354 bool result;
6355 bool temp2 = False ;
6356 PyObject * obj0 = 0 ;
6357 PyObject * obj1 = 0 ;
6358 char *kwnames[] = {
6359 (char *) "self",(char *) "s", NULL
6360 };
6361
6362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6365 {
6366 arg2 = wxString_in_helper(obj1);
6367 if (arg2 == NULL) SWIG_fail;
6368 temp2 = True;
6369 }
6370 {
6371 PyThreadState* __tstate = wxPyBeginAllowThreads();
6372 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6373
6374 wxPyEndAllowThreads(__tstate);
6375 if (PyErr_Occurred()) SWIG_fail;
6376 }
6377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6378 {
6379 if (temp2)
6380 delete arg2;
6381 }
6382 return resultobj;
6383 fail:
6384 {
6385 if (temp2)
6386 delete arg2;
6387 }
6388 return NULL;
6389 }
6390
6391
6392 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6393 PyObject *resultobj;
6394 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6395 wxString result;
6396 PyObject * obj0 = 0 ;
6397 char *kwnames[] = {
6398 (char *) "self", NULL
6399 };
6400
6401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6404 {
6405 PyThreadState* __tstate = wxPyBeginAllowThreads();
6406 result = ((wxNativeFontInfo const *)arg1)->ToString();
6407
6408 wxPyEndAllowThreads(__tstate);
6409 if (PyErr_Occurred()) SWIG_fail;
6410 }
6411 {
6412 #if wxUSE_UNICODE
6413 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6414 #else
6415 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6416 #endif
6417 }
6418 return resultobj;
6419 fail:
6420 return NULL;
6421 }
6422
6423
6424 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6425 PyObject *resultobj;
6426 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6427 wxString result;
6428 PyObject * obj0 = 0 ;
6429 char *kwnames[] = {
6430 (char *) "self", NULL
6431 };
6432
6433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6436 {
6437 PyThreadState* __tstate = wxPyBeginAllowThreads();
6438 result = wxNativeFontInfo___str__(arg1);
6439
6440 wxPyEndAllowThreads(__tstate);
6441 if (PyErr_Occurred()) SWIG_fail;
6442 }
6443 {
6444 #if wxUSE_UNICODE
6445 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6446 #else
6447 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6448 #endif
6449 }
6450 return resultobj;
6451 fail:
6452 return NULL;
6453 }
6454
6455
6456 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6457 PyObject *resultobj;
6458 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6459 wxString *arg2 = 0 ;
6460 bool result;
6461 bool temp2 = False ;
6462 PyObject * obj0 = 0 ;
6463 PyObject * obj1 = 0 ;
6464 char *kwnames[] = {
6465 (char *) "self",(char *) "s", NULL
6466 };
6467
6468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6471 {
6472 arg2 = wxString_in_helper(obj1);
6473 if (arg2 == NULL) SWIG_fail;
6474 temp2 = True;
6475 }
6476 {
6477 PyThreadState* __tstate = wxPyBeginAllowThreads();
6478 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6479
6480 wxPyEndAllowThreads(__tstate);
6481 if (PyErr_Occurred()) SWIG_fail;
6482 }
6483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6484 {
6485 if (temp2)
6486 delete arg2;
6487 }
6488 return resultobj;
6489 fail:
6490 {
6491 if (temp2)
6492 delete arg2;
6493 }
6494 return NULL;
6495 }
6496
6497
6498 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6499 PyObject *resultobj;
6500 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6501 wxString result;
6502 PyObject * obj0 = 0 ;
6503 char *kwnames[] = {
6504 (char *) "self", NULL
6505 };
6506
6507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6510 {
6511 PyThreadState* __tstate = wxPyBeginAllowThreads();
6512 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6513
6514 wxPyEndAllowThreads(__tstate);
6515 if (PyErr_Occurred()) SWIG_fail;
6516 }
6517 {
6518 #if wxUSE_UNICODE
6519 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6520 #else
6521 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6522 #endif
6523 }
6524 return resultobj;
6525 fail:
6526 return NULL;
6527 }
6528
6529
6530 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6531 PyObject *obj;
6532 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6533 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6534 Py_INCREF(obj);
6535 return Py_BuildValue((char *)"");
6536 }
6537 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6538 PyObject *resultobj;
6539 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6540 wxString *arg2 = (wxString *) 0 ;
6541 bool temp2 = False ;
6542 PyObject * obj0 = 0 ;
6543 PyObject * obj1 = 0 ;
6544 char *kwnames[] = {
6545 (char *) "self",(char *) "facename", NULL
6546 };
6547
6548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6551 {
6552 arg2 = wxString_in_helper(obj1);
6553 if (arg2 == NULL) SWIG_fail;
6554 temp2 = True;
6555 }
6556 if (arg1) (arg1)->facename = *arg2;
6557
6558 Py_INCREF(Py_None); resultobj = Py_None;
6559 {
6560 if (temp2)
6561 delete arg2;
6562 }
6563 return resultobj;
6564 fail:
6565 {
6566 if (temp2)
6567 delete arg2;
6568 }
6569 return NULL;
6570 }
6571
6572
6573 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6574 PyObject *resultobj;
6575 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6576 wxString *result;
6577 PyObject * obj0 = 0 ;
6578 char *kwnames[] = {
6579 (char *) "self", NULL
6580 };
6581
6582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6585 result = (wxString *)& ((arg1)->facename);
6586
6587 {
6588 #if wxUSE_UNICODE
6589 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6590 #else
6591 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6592 #endif
6593 }
6594 return resultobj;
6595 fail:
6596 return NULL;
6597 }
6598
6599
6600 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6601 PyObject *resultobj;
6602 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6603 int arg2 ;
6604 PyObject * obj0 = 0 ;
6605 PyObject * obj1 = 0 ;
6606 char *kwnames[] = {
6607 (char *) "self",(char *) "encoding", NULL
6608 };
6609
6610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6613 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6614 if (PyErr_Occurred()) SWIG_fail;
6615 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6616
6617 Py_INCREF(Py_None); resultobj = Py_None;
6618 return resultobj;
6619 fail:
6620 return NULL;
6621 }
6622
6623
6624 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6625 PyObject *resultobj;
6626 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6627 int result;
6628 PyObject * obj0 = 0 ;
6629 char *kwnames[] = {
6630 (char *) "self", NULL
6631 };
6632
6633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6636 result = (int) ((arg1)->encoding);
6637
6638 resultobj = SWIG_FromInt((int)result);
6639 return resultobj;
6640 fail:
6641 return NULL;
6642 }
6643
6644
6645 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6646 PyObject *resultobj;
6647 wxNativeEncodingInfo *result;
6648 char *kwnames[] = {
6649 NULL
6650 };
6651
6652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6653 {
6654 PyThreadState* __tstate = wxPyBeginAllowThreads();
6655 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6656
6657 wxPyEndAllowThreads(__tstate);
6658 if (PyErr_Occurred()) SWIG_fail;
6659 }
6660 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
6661 return resultobj;
6662 fail:
6663 return NULL;
6664 }
6665
6666
6667 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6668 PyObject *resultobj;
6669 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6670 PyObject * obj0 = 0 ;
6671 char *kwnames[] = {
6672 (char *) "self", NULL
6673 };
6674
6675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6678 {
6679 PyThreadState* __tstate = wxPyBeginAllowThreads();
6680 delete arg1;
6681
6682 wxPyEndAllowThreads(__tstate);
6683 if (PyErr_Occurred()) SWIG_fail;
6684 }
6685 Py_INCREF(Py_None); resultobj = Py_None;
6686 return resultobj;
6687 fail:
6688 return NULL;
6689 }
6690
6691
6692 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6693 PyObject *resultobj;
6694 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6695 wxString *arg2 = 0 ;
6696 bool result;
6697 bool temp2 = False ;
6698 PyObject * obj0 = 0 ;
6699 PyObject * obj1 = 0 ;
6700 char *kwnames[] = {
6701 (char *) "self",(char *) "s", NULL
6702 };
6703
6704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6707 {
6708 arg2 = wxString_in_helper(obj1);
6709 if (arg2 == NULL) SWIG_fail;
6710 temp2 = True;
6711 }
6712 {
6713 PyThreadState* __tstate = wxPyBeginAllowThreads();
6714 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6715
6716 wxPyEndAllowThreads(__tstate);
6717 if (PyErr_Occurred()) SWIG_fail;
6718 }
6719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6720 {
6721 if (temp2)
6722 delete arg2;
6723 }
6724 return resultobj;
6725 fail:
6726 {
6727 if (temp2)
6728 delete arg2;
6729 }
6730 return NULL;
6731 }
6732
6733
6734 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6735 PyObject *resultobj;
6736 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6737 wxString result;
6738 PyObject * obj0 = 0 ;
6739 char *kwnames[] = {
6740 (char *) "self", NULL
6741 };
6742
6743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
6744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6746 {
6747 PyThreadState* __tstate = wxPyBeginAllowThreads();
6748 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6749
6750 wxPyEndAllowThreads(__tstate);
6751 if (PyErr_Occurred()) SWIG_fail;
6752 }
6753 {
6754 #if wxUSE_UNICODE
6755 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6756 #else
6757 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6758 #endif
6759 }
6760 return resultobj;
6761 fail:
6762 return NULL;
6763 }
6764
6765
6766 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
6767 PyObject *obj;
6768 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6769 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6770 Py_INCREF(obj);
6771 return Py_BuildValue((char *)"");
6772 }
6773 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6774 PyObject *resultobj;
6775 int arg1 ;
6776 wxNativeEncodingInfo *result;
6777 PyObject * obj0 = 0 ;
6778 char *kwnames[] = {
6779 (char *) "encoding", NULL
6780 };
6781
6782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
6783 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
6784 if (PyErr_Occurred()) SWIG_fail;
6785 {
6786 PyThreadState* __tstate = wxPyBeginAllowThreads();
6787 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
6788
6789 wxPyEndAllowThreads(__tstate);
6790 if (PyErr_Occurred()) SWIG_fail;
6791 }
6792 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
6793 return resultobj;
6794 fail:
6795 return NULL;
6796 }
6797
6798
6799 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6800 PyObject *resultobj;
6801 wxNativeEncodingInfo *arg1 = 0 ;
6802 bool result;
6803 PyObject * obj0 = 0 ;
6804 char *kwnames[] = {
6805 (char *) "info", NULL
6806 };
6807
6808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
6809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6810 SWIG_POINTER_EXCEPTION | 0)) == -1)
6811 SWIG_fail;
6812 if (arg1 == NULL) {
6813 PyErr_SetString(PyExc_TypeError,"null reference");
6814 SWIG_fail;
6815 }
6816 {
6817 PyThreadState* __tstate = wxPyBeginAllowThreads();
6818 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6819
6820 wxPyEndAllowThreads(__tstate);
6821 if (PyErr_Occurred()) SWIG_fail;
6822 }
6823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6824 return resultobj;
6825 fail:
6826 return NULL;
6827 }
6828
6829
6830 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6831 PyObject *resultobj;
6832 wxFontMapper *result;
6833 char *kwnames[] = {
6834 NULL
6835 };
6836
6837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
6838 {
6839 PyThreadState* __tstate = wxPyBeginAllowThreads();
6840 result = (wxFontMapper *)new wxFontMapper();
6841
6842 wxPyEndAllowThreads(__tstate);
6843 if (PyErr_Occurred()) SWIG_fail;
6844 }
6845 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
6846 return resultobj;
6847 fail:
6848 return NULL;
6849 }
6850
6851
6852 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6853 PyObject *resultobj;
6854 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6855 PyObject * obj0 = 0 ;
6856 char *kwnames[] = {
6857 (char *) "self", NULL
6858 };
6859
6860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
6861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
6862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6863 {
6864 PyThreadState* __tstate = wxPyBeginAllowThreads();
6865 delete arg1;
6866
6867 wxPyEndAllowThreads(__tstate);
6868 if (PyErr_Occurred()) SWIG_fail;
6869 }
6870 Py_INCREF(Py_None); resultobj = Py_None;
6871 return resultobj;
6872 fail:
6873 return NULL;
6874 }
6875
6876
6877 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
6878 PyObject *resultobj;
6879 wxFontMapper *result;
6880 char *kwnames[] = {
6881 NULL
6882 };
6883
6884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
6885 {
6886 PyThreadState* __tstate = wxPyBeginAllowThreads();
6887 result = (wxFontMapper *)wxFontMapper::Get();
6888
6889 wxPyEndAllowThreads(__tstate);
6890 if (PyErr_Occurred()) SWIG_fail;
6891 }
6892 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
6893 return resultobj;
6894 fail:
6895 return NULL;
6896 }
6897
6898
6899 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
6900 PyObject *resultobj;
6901 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6902 wxFontMapper *result;
6903 PyObject * obj0 = 0 ;
6904 char *kwnames[] = {
6905 (char *) "mapper", NULL
6906 };
6907
6908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
6909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
6910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6911 {
6912 PyThreadState* __tstate = wxPyBeginAllowThreads();
6913 result = (wxFontMapper *)wxFontMapper::Set(arg1);
6914
6915 wxPyEndAllowThreads(__tstate);
6916 if (PyErr_Occurred()) SWIG_fail;
6917 }
6918 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
6919 return resultobj;
6920 fail:
6921 return NULL;
6922 }
6923
6924
6925 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6926 PyObject *resultobj;
6927 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6928 wxString *arg2 = 0 ;
6929 bool arg3 = (bool) True ;
6930 int result;
6931 bool temp2 = False ;
6932 PyObject * obj0 = 0 ;
6933 PyObject * obj1 = 0 ;
6934 PyObject * obj2 = 0 ;
6935 char *kwnames[] = {
6936 (char *) "self",(char *) "charset",(char *) "interactive", NULL
6937 };
6938
6939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
6940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
6941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6942 {
6943 arg2 = wxString_in_helper(obj1);
6944 if (arg2 == NULL) SWIG_fail;
6945 temp2 = True;
6946 }
6947 if (obj2) {
6948 arg3 = (bool) SWIG_AsBool(obj2);
6949 if (PyErr_Occurred()) SWIG_fail;
6950 }
6951 {
6952 PyThreadState* __tstate = wxPyBeginAllowThreads();
6953 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
6954
6955 wxPyEndAllowThreads(__tstate);
6956 if (PyErr_Occurred()) SWIG_fail;
6957 }
6958 resultobj = SWIG_FromInt((int)result);
6959 {
6960 if (temp2)
6961 delete arg2;
6962 }
6963 return resultobj;
6964 fail:
6965 {
6966 if (temp2)
6967 delete arg2;
6968 }
6969 return NULL;
6970 }
6971
6972
6973 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6974 PyObject *resultobj;
6975 size_t result;
6976 char *kwnames[] = {
6977 NULL
6978 };
6979
6980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
6981 {
6982 PyThreadState* __tstate = wxPyBeginAllowThreads();
6983 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
6984
6985 wxPyEndAllowThreads(__tstate);
6986 if (PyErr_Occurred()) SWIG_fail;
6987 }
6988 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
6989 return resultobj;
6990 fail:
6991 return NULL;
6992 }
6993
6994
6995 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6996 PyObject *resultobj;
6997 size_t arg1 ;
6998 int result;
6999 PyObject * obj0 = 0 ;
7000 char *kwnames[] = {
7001 (char *) "n", NULL
7002 };
7003
7004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7005 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7006 if (PyErr_Occurred()) SWIG_fail;
7007 {
7008 PyThreadState* __tstate = wxPyBeginAllowThreads();
7009 result = (int)wxFontMapper::GetEncoding(arg1);
7010
7011 wxPyEndAllowThreads(__tstate);
7012 if (PyErr_Occurred()) SWIG_fail;
7013 }
7014 resultobj = SWIG_FromInt((int)result);
7015 return resultobj;
7016 fail:
7017 return NULL;
7018 }
7019
7020
7021 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7022 PyObject *resultobj;
7023 int arg1 ;
7024 wxString result;
7025 PyObject * obj0 = 0 ;
7026 char *kwnames[] = {
7027 (char *) "encoding", NULL
7028 };
7029
7030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7031 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7032 if (PyErr_Occurred()) SWIG_fail;
7033 {
7034 PyThreadState* __tstate = wxPyBeginAllowThreads();
7035 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7036
7037 wxPyEndAllowThreads(__tstate);
7038 if (PyErr_Occurred()) SWIG_fail;
7039 }
7040 {
7041 #if wxUSE_UNICODE
7042 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7043 #else
7044 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7045 #endif
7046 }
7047 return resultobj;
7048 fail:
7049 return NULL;
7050 }
7051
7052
7053 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7054 PyObject *resultobj;
7055 int arg1 ;
7056 wxString result;
7057 PyObject * obj0 = 0 ;
7058 char *kwnames[] = {
7059 (char *) "encoding", NULL
7060 };
7061
7062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7063 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7064 if (PyErr_Occurred()) SWIG_fail;
7065 {
7066 PyThreadState* __tstate = wxPyBeginAllowThreads();
7067 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7068
7069 wxPyEndAllowThreads(__tstate);
7070 if (PyErr_Occurred()) SWIG_fail;
7071 }
7072 {
7073 #if wxUSE_UNICODE
7074 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7075 #else
7076 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7077 #endif
7078 }
7079 return resultobj;
7080 fail:
7081 return NULL;
7082 }
7083
7084
7085 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7086 PyObject *resultobj;
7087 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7088 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7089 PyObject * obj0 = 0 ;
7090 PyObject * obj1 = 0 ;
7091 char *kwnames[] = {
7092 (char *) "self",(char *) "config", NULL
7093 };
7094
7095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7098 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7100 {
7101 PyThreadState* __tstate = wxPyBeginAllowThreads();
7102 (arg1)->SetConfig(arg2);
7103
7104 wxPyEndAllowThreads(__tstate);
7105 if (PyErr_Occurred()) SWIG_fail;
7106 }
7107 Py_INCREF(Py_None); resultobj = Py_None;
7108 return resultobj;
7109 fail:
7110 return NULL;
7111 }
7112
7113
7114 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7115 PyObject *resultobj;
7116 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7117 wxString *arg2 = 0 ;
7118 bool temp2 = False ;
7119 PyObject * obj0 = 0 ;
7120 PyObject * obj1 = 0 ;
7121 char *kwnames[] = {
7122 (char *) "self",(char *) "prefix", NULL
7123 };
7124
7125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7128 {
7129 arg2 = wxString_in_helper(obj1);
7130 if (arg2 == NULL) SWIG_fail;
7131 temp2 = True;
7132 }
7133 {
7134 PyThreadState* __tstate = wxPyBeginAllowThreads();
7135 (arg1)->SetConfigPath((wxString const &)*arg2);
7136
7137 wxPyEndAllowThreads(__tstate);
7138 if (PyErr_Occurred()) SWIG_fail;
7139 }
7140 Py_INCREF(Py_None); resultobj = Py_None;
7141 {
7142 if (temp2)
7143 delete arg2;
7144 }
7145 return resultobj;
7146 fail:
7147 {
7148 if (temp2)
7149 delete arg2;
7150 }
7151 return NULL;
7152 }
7153
7154
7155 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7156 PyObject *resultobj;
7157 wxString result;
7158 char *kwnames[] = {
7159 NULL
7160 };
7161
7162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7163 {
7164 PyThreadState* __tstate = wxPyBeginAllowThreads();
7165 result = wxFontMapper::GetDefaultConfigPath();
7166
7167 wxPyEndAllowThreads(__tstate);
7168 if (PyErr_Occurred()) SWIG_fail;
7169 }
7170 {
7171 #if wxUSE_UNICODE
7172 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7173 #else
7174 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7175 #endif
7176 }
7177 return resultobj;
7178 fail:
7179 return NULL;
7180 }
7181
7182
7183 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7184 PyObject *resultobj;
7185 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7186 int arg2 ;
7187 wxString const &arg3_defvalue = wxPyEmptyString ;
7188 wxString *arg3 = (wxString *) &arg3_defvalue ;
7189 bool arg4 = (bool) True ;
7190 PyObject *result;
7191 bool temp3 = False ;
7192 PyObject * obj0 = 0 ;
7193 PyObject * obj1 = 0 ;
7194 PyObject * obj2 = 0 ;
7195 PyObject * obj3 = 0 ;
7196 char *kwnames[] = {
7197 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7198 };
7199
7200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7203 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7204 if (PyErr_Occurred()) SWIG_fail;
7205 if (obj2) {
7206 {
7207 arg3 = wxString_in_helper(obj2);
7208 if (arg3 == NULL) SWIG_fail;
7209 temp3 = True;
7210 }
7211 }
7212 if (obj3) {
7213 arg4 = (bool) SWIG_AsBool(obj3);
7214 if (PyErr_Occurred()) SWIG_fail;
7215 }
7216 {
7217 PyThreadState* __tstate = wxPyBeginAllowThreads();
7218 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7219
7220 wxPyEndAllowThreads(__tstate);
7221 if (PyErr_Occurred()) SWIG_fail;
7222 }
7223 resultobj = result;
7224 {
7225 if (temp3)
7226 delete arg3;
7227 }
7228 return resultobj;
7229 fail:
7230 {
7231 if (temp3)
7232 delete arg3;
7233 }
7234 return NULL;
7235 }
7236
7237
7238 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7239 PyObject *resultobj;
7240 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7241 int arg2 ;
7242 wxString const &arg3_defvalue = wxPyEmptyString ;
7243 wxString *arg3 = (wxString *) &arg3_defvalue ;
7244 bool result;
7245 bool temp3 = False ;
7246 PyObject * obj0 = 0 ;
7247 PyObject * obj1 = 0 ;
7248 PyObject * obj2 = 0 ;
7249 char *kwnames[] = {
7250 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7251 };
7252
7253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7256 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7257 if (PyErr_Occurred()) SWIG_fail;
7258 if (obj2) {
7259 {
7260 arg3 = wxString_in_helper(obj2);
7261 if (arg3 == NULL) SWIG_fail;
7262 temp3 = True;
7263 }
7264 }
7265 {
7266 PyThreadState* __tstate = wxPyBeginAllowThreads();
7267 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7268
7269 wxPyEndAllowThreads(__tstate);
7270 if (PyErr_Occurred()) SWIG_fail;
7271 }
7272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7273 {
7274 if (temp3)
7275 delete arg3;
7276 }
7277 return resultobj;
7278 fail:
7279 {
7280 if (temp3)
7281 delete arg3;
7282 }
7283 return NULL;
7284 }
7285
7286
7287 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7288 PyObject *resultobj;
7289 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7290 wxWindow *arg2 = (wxWindow *) 0 ;
7291 PyObject * obj0 = 0 ;
7292 PyObject * obj1 = 0 ;
7293 char *kwnames[] = {
7294 (char *) "self",(char *) "parent", NULL
7295 };
7296
7297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7300 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7302 {
7303 PyThreadState* __tstate = wxPyBeginAllowThreads();
7304 (arg1)->SetDialogParent(arg2);
7305
7306 wxPyEndAllowThreads(__tstate);
7307 if (PyErr_Occurred()) SWIG_fail;
7308 }
7309 Py_INCREF(Py_None); resultobj = Py_None;
7310 return resultobj;
7311 fail:
7312 return NULL;
7313 }
7314
7315
7316 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7317 PyObject *resultobj;
7318 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7319 wxString *arg2 = 0 ;
7320 bool temp2 = False ;
7321 PyObject * obj0 = 0 ;
7322 PyObject * obj1 = 0 ;
7323 char *kwnames[] = {
7324 (char *) "self",(char *) "title", NULL
7325 };
7326
7327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7330 {
7331 arg2 = wxString_in_helper(obj1);
7332 if (arg2 == NULL) SWIG_fail;
7333 temp2 = True;
7334 }
7335 {
7336 PyThreadState* __tstate = wxPyBeginAllowThreads();
7337 (arg1)->SetDialogTitle((wxString const &)*arg2);
7338
7339 wxPyEndAllowThreads(__tstate);
7340 if (PyErr_Occurred()) SWIG_fail;
7341 }
7342 Py_INCREF(Py_None); resultobj = Py_None;
7343 {
7344 if (temp2)
7345 delete arg2;
7346 }
7347 return resultobj;
7348 fail:
7349 {
7350 if (temp2)
7351 delete arg2;
7352 }
7353 return NULL;
7354 }
7355
7356
7357 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7358 PyObject *obj;
7359 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7360 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7361 Py_INCREF(obj);
7362 return Py_BuildValue((char *)"");
7363 }
7364 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7365 PyObject *resultobj;
7366 int arg1 ;
7367 int arg2 ;
7368 int arg3 ;
7369 int arg4 ;
7370 bool arg5 = (bool) False ;
7371 wxString const &arg6_defvalue = wxPyEmptyString ;
7372 wxString *arg6 = (wxString *) &arg6_defvalue ;
7373 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7374 wxFont *result;
7375 bool temp6 = False ;
7376 PyObject * obj0 = 0 ;
7377 PyObject * obj1 = 0 ;
7378 PyObject * obj2 = 0 ;
7379 PyObject * obj3 = 0 ;
7380 PyObject * obj4 = 0 ;
7381 PyObject * obj5 = 0 ;
7382 PyObject * obj6 = 0 ;
7383 char *kwnames[] = {
7384 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7385 };
7386
7387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7388 arg1 = (int) SWIG_AsInt(obj0);
7389 if (PyErr_Occurred()) SWIG_fail;
7390 arg2 = (int) SWIG_AsInt(obj1);
7391 if (PyErr_Occurred()) SWIG_fail;
7392 arg3 = (int) SWIG_AsInt(obj2);
7393 if (PyErr_Occurred()) SWIG_fail;
7394 arg4 = (int) SWIG_AsInt(obj3);
7395 if (PyErr_Occurred()) SWIG_fail;
7396 if (obj4) {
7397 arg5 = (bool) SWIG_AsBool(obj4);
7398 if (PyErr_Occurred()) SWIG_fail;
7399 }
7400 if (obj5) {
7401 {
7402 arg6 = wxString_in_helper(obj5);
7403 if (arg6 == NULL) SWIG_fail;
7404 temp6 = True;
7405 }
7406 }
7407 if (obj6) {
7408 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
7409 if (PyErr_Occurred()) SWIG_fail;
7410 }
7411 {
7412 PyThreadState* __tstate = wxPyBeginAllowThreads();
7413 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7414
7415 wxPyEndAllowThreads(__tstate);
7416 if (PyErr_Occurred()) SWIG_fail;
7417 }
7418 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7419 {
7420 if (temp6)
7421 delete arg6;
7422 }
7423 return resultobj;
7424 fail:
7425 {
7426 if (temp6)
7427 delete arg6;
7428 }
7429 return NULL;
7430 }
7431
7432
7433 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7434 PyObject *resultobj;
7435 wxFont *arg1 = (wxFont *) 0 ;
7436 PyObject * obj0 = 0 ;
7437 char *kwnames[] = {
7438 (char *) "self", NULL
7439 };
7440
7441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7444 {
7445 PyThreadState* __tstate = wxPyBeginAllowThreads();
7446 delete arg1;
7447
7448 wxPyEndAllowThreads(__tstate);
7449 if (PyErr_Occurred()) SWIG_fail;
7450 }
7451 Py_INCREF(Py_None); resultobj = Py_None;
7452 return resultobj;
7453 fail:
7454 return NULL;
7455 }
7456
7457
7458 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7459 PyObject *resultobj;
7460 wxNativeFontInfo *arg1 = 0 ;
7461 wxFont *result;
7462 PyObject * obj0 = 0 ;
7463 char *kwnames[] = {
7464 (char *) "info", NULL
7465 };
7466
7467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7469 SWIG_POINTER_EXCEPTION | 0)) == -1)
7470 SWIG_fail;
7471 if (arg1 == NULL) {
7472 PyErr_SetString(PyExc_TypeError,"null reference");
7473 SWIG_fail;
7474 }
7475 {
7476 PyThreadState* __tstate = wxPyBeginAllowThreads();
7477 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7478
7479 wxPyEndAllowThreads(__tstate);
7480 if (PyErr_Occurred()) SWIG_fail;
7481 }
7482 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7483 return resultobj;
7484 fail:
7485 return NULL;
7486 }
7487
7488
7489 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7490 PyObject *resultobj;
7491 wxString *arg1 = 0 ;
7492 wxFont *result;
7493 bool temp1 = False ;
7494 PyObject * obj0 = 0 ;
7495 char *kwnames[] = {
7496 (char *) "info", NULL
7497 };
7498
7499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7500 {
7501 arg1 = wxString_in_helper(obj0);
7502 if (arg1 == NULL) SWIG_fail;
7503 temp1 = True;
7504 }
7505 {
7506 PyThreadState* __tstate = wxPyBeginAllowThreads();
7507 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7508
7509 wxPyEndAllowThreads(__tstate);
7510 if (PyErr_Occurred()) SWIG_fail;
7511 }
7512 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7513 {
7514 if (temp1)
7515 delete arg1;
7516 }
7517 return resultobj;
7518 fail:
7519 {
7520 if (temp1)
7521 delete arg1;
7522 }
7523 return NULL;
7524 }
7525
7526
7527 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7528 PyObject *resultobj;
7529 int arg1 ;
7530 int arg2 ;
7531 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7532 wxString const &arg4_defvalue = wxPyEmptyString ;
7533 wxString *arg4 = (wxString *) &arg4_defvalue ;
7534 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7535 wxFont *result;
7536 bool temp4 = False ;
7537 PyObject * obj0 = 0 ;
7538 PyObject * obj1 = 0 ;
7539 PyObject * obj2 = 0 ;
7540 PyObject * obj3 = 0 ;
7541 PyObject * obj4 = 0 ;
7542 char *kwnames[] = {
7543 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7544 };
7545
7546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7547 arg1 = (int) SWIG_AsInt(obj0);
7548 if (PyErr_Occurred()) SWIG_fail;
7549 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
7550 if (PyErr_Occurred()) SWIG_fail;
7551 if (obj2) {
7552 arg3 = (int) SWIG_AsInt(obj2);
7553 if (PyErr_Occurred()) SWIG_fail;
7554 }
7555 if (obj3) {
7556 {
7557 arg4 = wxString_in_helper(obj3);
7558 if (arg4 == NULL) SWIG_fail;
7559 temp4 = True;
7560 }
7561 }
7562 if (obj4) {
7563 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
7564 if (PyErr_Occurred()) SWIG_fail;
7565 }
7566 {
7567 PyThreadState* __tstate = wxPyBeginAllowThreads();
7568 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7569
7570 wxPyEndAllowThreads(__tstate);
7571 if (PyErr_Occurred()) SWIG_fail;
7572 }
7573 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7574 {
7575 if (temp4)
7576 delete arg4;
7577 }
7578 return resultobj;
7579 fail:
7580 {
7581 if (temp4)
7582 delete arg4;
7583 }
7584 return NULL;
7585 }
7586
7587
7588 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7589 PyObject *resultobj;
7590 wxFont *arg1 = (wxFont *) 0 ;
7591 bool result;
7592 PyObject * obj0 = 0 ;
7593 char *kwnames[] = {
7594 (char *) "self", NULL
7595 };
7596
7597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7600 {
7601 PyThreadState* __tstate = wxPyBeginAllowThreads();
7602 result = (bool)((wxFont const *)arg1)->Ok();
7603
7604 wxPyEndAllowThreads(__tstate);
7605 if (PyErr_Occurred()) SWIG_fail;
7606 }
7607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7608 return resultobj;
7609 fail:
7610 return NULL;
7611 }
7612
7613
7614 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7615 PyObject *resultobj;
7616 wxFont *arg1 = (wxFont *) 0 ;
7617 wxFont *arg2 = (wxFont *) 0 ;
7618 bool result;
7619 PyObject * obj0 = 0 ;
7620 PyObject * obj1 = 0 ;
7621 char *kwnames[] = {
7622 (char *) "self",(char *) "other", NULL
7623 };
7624
7625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7628 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7630 {
7631 PyThreadState* __tstate = wxPyBeginAllowThreads();
7632 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
7633
7634 wxPyEndAllowThreads(__tstate);
7635 if (PyErr_Occurred()) SWIG_fail;
7636 }
7637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7638 return resultobj;
7639 fail:
7640 return NULL;
7641 }
7642
7643
7644 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7645 PyObject *resultobj;
7646 wxFont *arg1 = (wxFont *) 0 ;
7647 wxFont *arg2 = (wxFont *) 0 ;
7648 bool result;
7649 PyObject * obj0 = 0 ;
7650 PyObject * obj1 = 0 ;
7651 char *kwnames[] = {
7652 (char *) "self",(char *) "other", NULL
7653 };
7654
7655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7658 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7660 {
7661 PyThreadState* __tstate = wxPyBeginAllowThreads();
7662 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
7663
7664 wxPyEndAllowThreads(__tstate);
7665 if (PyErr_Occurred()) SWIG_fail;
7666 }
7667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7668 return resultobj;
7669 fail:
7670 return NULL;
7671 }
7672
7673
7674 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7675 PyObject *resultobj;
7676 wxFont *arg1 = (wxFont *) 0 ;
7677 int result;
7678 PyObject * obj0 = 0 ;
7679 char *kwnames[] = {
7680 (char *) "self", NULL
7681 };
7682
7683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7686 {
7687 PyThreadState* __tstate = wxPyBeginAllowThreads();
7688 result = (int)((wxFont const *)arg1)->GetPointSize();
7689
7690 wxPyEndAllowThreads(__tstate);
7691 if (PyErr_Occurred()) SWIG_fail;
7692 }
7693 resultobj = SWIG_FromInt((int)result);
7694 return resultobj;
7695 fail:
7696 return NULL;
7697 }
7698
7699
7700 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7701 PyObject *resultobj;
7702 wxFont *arg1 = (wxFont *) 0 ;
7703 int result;
7704 PyObject * obj0 = 0 ;
7705 char *kwnames[] = {
7706 (char *) "self", NULL
7707 };
7708
7709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
7710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7712 {
7713 PyThreadState* __tstate = wxPyBeginAllowThreads();
7714 result = (int)((wxFont const *)arg1)->GetFamily();
7715
7716 wxPyEndAllowThreads(__tstate);
7717 if (PyErr_Occurred()) SWIG_fail;
7718 }
7719 resultobj = SWIG_FromInt((int)result);
7720 return resultobj;
7721 fail:
7722 return NULL;
7723 }
7724
7725
7726 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7727 PyObject *resultobj;
7728 wxFont *arg1 = (wxFont *) 0 ;
7729 int result;
7730 PyObject * obj0 = 0 ;
7731 char *kwnames[] = {
7732 (char *) "self", NULL
7733 };
7734
7735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
7736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7738 {
7739 PyThreadState* __tstate = wxPyBeginAllowThreads();
7740 result = (int)((wxFont const *)arg1)->GetStyle();
7741
7742 wxPyEndAllowThreads(__tstate);
7743 if (PyErr_Occurred()) SWIG_fail;
7744 }
7745 resultobj = SWIG_FromInt((int)result);
7746 return resultobj;
7747 fail:
7748 return NULL;
7749 }
7750
7751
7752 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7753 PyObject *resultobj;
7754 wxFont *arg1 = (wxFont *) 0 ;
7755 int result;
7756 PyObject * obj0 = 0 ;
7757 char *kwnames[] = {
7758 (char *) "self", NULL
7759 };
7760
7761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
7762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7764 {
7765 PyThreadState* __tstate = wxPyBeginAllowThreads();
7766 result = (int)((wxFont const *)arg1)->GetWeight();
7767
7768 wxPyEndAllowThreads(__tstate);
7769 if (PyErr_Occurred()) SWIG_fail;
7770 }
7771 resultobj = SWIG_FromInt((int)result);
7772 return resultobj;
7773 fail:
7774 return NULL;
7775 }
7776
7777
7778 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7779 PyObject *resultobj;
7780 wxFont *arg1 = (wxFont *) 0 ;
7781 bool result;
7782 PyObject * obj0 = 0 ;
7783 char *kwnames[] = {
7784 (char *) "self", NULL
7785 };
7786
7787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
7788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7790 {
7791 PyThreadState* __tstate = wxPyBeginAllowThreads();
7792 result = (bool)((wxFont const *)arg1)->GetUnderlined();
7793
7794 wxPyEndAllowThreads(__tstate);
7795 if (PyErr_Occurred()) SWIG_fail;
7796 }
7797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7798 return resultobj;
7799 fail:
7800 return NULL;
7801 }
7802
7803
7804 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7805 PyObject *resultobj;
7806 wxFont *arg1 = (wxFont *) 0 ;
7807 wxString result;
7808 PyObject * obj0 = 0 ;
7809 char *kwnames[] = {
7810 (char *) "self", NULL
7811 };
7812
7813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
7814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7816 {
7817 PyThreadState* __tstate = wxPyBeginAllowThreads();
7818 result = ((wxFont const *)arg1)->GetFaceName();
7819
7820 wxPyEndAllowThreads(__tstate);
7821 if (PyErr_Occurred()) SWIG_fail;
7822 }
7823 {
7824 #if wxUSE_UNICODE
7825 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7826 #else
7827 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7828 #endif
7829 }
7830 return resultobj;
7831 fail:
7832 return NULL;
7833 }
7834
7835
7836 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7837 PyObject *resultobj;
7838 wxFont *arg1 = (wxFont *) 0 ;
7839 int result;
7840 PyObject * obj0 = 0 ;
7841 char *kwnames[] = {
7842 (char *) "self", NULL
7843 };
7844
7845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
7846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7848 {
7849 PyThreadState* __tstate = wxPyBeginAllowThreads();
7850 result = (int)((wxFont const *)arg1)->GetEncoding();
7851
7852 wxPyEndAllowThreads(__tstate);
7853 if (PyErr_Occurred()) SWIG_fail;
7854 }
7855 resultobj = SWIG_FromInt((int)result);
7856 return resultobj;
7857 fail:
7858 return NULL;
7859 }
7860
7861
7862 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7863 PyObject *resultobj;
7864 wxFont *arg1 = (wxFont *) 0 ;
7865 wxNativeFontInfo *result;
7866 PyObject * obj0 = 0 ;
7867 char *kwnames[] = {
7868 (char *) "self", NULL
7869 };
7870
7871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
7872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7874 {
7875 PyThreadState* __tstate = wxPyBeginAllowThreads();
7876 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
7877
7878 wxPyEndAllowThreads(__tstate);
7879 if (PyErr_Occurred()) SWIG_fail;
7880 }
7881 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
7882 return resultobj;
7883 fail:
7884 return NULL;
7885 }
7886
7887
7888 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
7889 PyObject *resultobj;
7890 wxFont *arg1 = (wxFont *) 0 ;
7891 bool result;
7892 PyObject * obj0 = 0 ;
7893 char *kwnames[] = {
7894 (char *) "self", NULL
7895 };
7896
7897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
7898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7900 {
7901 PyThreadState* __tstate = wxPyBeginAllowThreads();
7902 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
7903
7904 wxPyEndAllowThreads(__tstate);
7905 if (PyErr_Occurred()) SWIG_fail;
7906 }
7907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7908 return resultobj;
7909 fail:
7910 return NULL;
7911 }
7912
7913
7914 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7915 PyObject *resultobj;
7916 wxFont *arg1 = (wxFont *) 0 ;
7917 wxString result;
7918 PyObject * obj0 = 0 ;
7919 char *kwnames[] = {
7920 (char *) "self", NULL
7921 };
7922
7923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
7924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7926 {
7927 PyThreadState* __tstate = wxPyBeginAllowThreads();
7928 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
7929
7930 wxPyEndAllowThreads(__tstate);
7931 if (PyErr_Occurred()) SWIG_fail;
7932 }
7933 {
7934 #if wxUSE_UNICODE
7935 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7936 #else
7937 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7938 #endif
7939 }
7940 return resultobj;
7941 fail:
7942 return NULL;
7943 }
7944
7945
7946 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7947 PyObject *resultobj;
7948 wxFont *arg1 = (wxFont *) 0 ;
7949 wxString result;
7950 PyObject * obj0 = 0 ;
7951 char *kwnames[] = {
7952 (char *) "self", NULL
7953 };
7954
7955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
7956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7958 {
7959 PyThreadState* __tstate = wxPyBeginAllowThreads();
7960 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
7961
7962 wxPyEndAllowThreads(__tstate);
7963 if (PyErr_Occurred()) SWIG_fail;
7964 }
7965 {
7966 #if wxUSE_UNICODE
7967 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7968 #else
7969 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7970 #endif
7971 }
7972 return resultobj;
7973 fail:
7974 return NULL;
7975 }
7976
7977
7978 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7979 PyObject *resultobj;
7980 wxFont *arg1 = (wxFont *) 0 ;
7981 int arg2 ;
7982 PyObject * obj0 = 0 ;
7983 PyObject * obj1 = 0 ;
7984 char *kwnames[] = {
7985 (char *) "self",(char *) "pointSize", NULL
7986 };
7987
7988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
7989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7991 arg2 = (int) SWIG_AsInt(obj1);
7992 if (PyErr_Occurred()) SWIG_fail;
7993 {
7994 PyThreadState* __tstate = wxPyBeginAllowThreads();
7995 (arg1)->SetPointSize(arg2);
7996
7997 wxPyEndAllowThreads(__tstate);
7998 if (PyErr_Occurred()) SWIG_fail;
7999 }
8000 Py_INCREF(Py_None); resultobj = Py_None;
8001 return resultobj;
8002 fail:
8003 return NULL;
8004 }
8005
8006
8007 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8008 PyObject *resultobj;
8009 wxFont *arg1 = (wxFont *) 0 ;
8010 int arg2 ;
8011 PyObject * obj0 = 0 ;
8012 PyObject * obj1 = 0 ;
8013 char *kwnames[] = {
8014 (char *) "self",(char *) "family", NULL
8015 };
8016
8017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8020 arg2 = (int) SWIG_AsInt(obj1);
8021 if (PyErr_Occurred()) SWIG_fail;
8022 {
8023 PyThreadState* __tstate = wxPyBeginAllowThreads();
8024 (arg1)->SetFamily(arg2);
8025
8026 wxPyEndAllowThreads(__tstate);
8027 if (PyErr_Occurred()) SWIG_fail;
8028 }
8029 Py_INCREF(Py_None); resultobj = Py_None;
8030 return resultobj;
8031 fail:
8032 return NULL;
8033 }
8034
8035
8036 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8037 PyObject *resultobj;
8038 wxFont *arg1 = (wxFont *) 0 ;
8039 int arg2 ;
8040 PyObject * obj0 = 0 ;
8041 PyObject * obj1 = 0 ;
8042 char *kwnames[] = {
8043 (char *) "self",(char *) "style", NULL
8044 };
8045
8046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8049 arg2 = (int) SWIG_AsInt(obj1);
8050 if (PyErr_Occurred()) SWIG_fail;
8051 {
8052 PyThreadState* __tstate = wxPyBeginAllowThreads();
8053 (arg1)->SetStyle(arg2);
8054
8055 wxPyEndAllowThreads(__tstate);
8056 if (PyErr_Occurred()) SWIG_fail;
8057 }
8058 Py_INCREF(Py_None); resultobj = Py_None;
8059 return resultobj;
8060 fail:
8061 return NULL;
8062 }
8063
8064
8065 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8066 PyObject *resultobj;
8067 wxFont *arg1 = (wxFont *) 0 ;
8068 int arg2 ;
8069 PyObject * obj0 = 0 ;
8070 PyObject * obj1 = 0 ;
8071 char *kwnames[] = {
8072 (char *) "self",(char *) "weight", NULL
8073 };
8074
8075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8078 arg2 = (int) SWIG_AsInt(obj1);
8079 if (PyErr_Occurred()) SWIG_fail;
8080 {
8081 PyThreadState* __tstate = wxPyBeginAllowThreads();
8082 (arg1)->SetWeight(arg2);
8083
8084 wxPyEndAllowThreads(__tstate);
8085 if (PyErr_Occurred()) SWIG_fail;
8086 }
8087 Py_INCREF(Py_None); resultobj = Py_None;
8088 return resultobj;
8089 fail:
8090 return NULL;
8091 }
8092
8093
8094 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8095 PyObject *resultobj;
8096 wxFont *arg1 = (wxFont *) 0 ;
8097 wxString *arg2 = 0 ;
8098 bool temp2 = False ;
8099 PyObject * obj0 = 0 ;
8100 PyObject * obj1 = 0 ;
8101 char *kwnames[] = {
8102 (char *) "self",(char *) "faceName", NULL
8103 };
8104
8105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8108 {
8109 arg2 = wxString_in_helper(obj1);
8110 if (arg2 == NULL) SWIG_fail;
8111 temp2 = True;
8112 }
8113 {
8114 PyThreadState* __tstate = wxPyBeginAllowThreads();
8115 (arg1)->SetFaceName((wxString const &)*arg2);
8116
8117 wxPyEndAllowThreads(__tstate);
8118 if (PyErr_Occurred()) SWIG_fail;
8119 }
8120 Py_INCREF(Py_None); resultobj = Py_None;
8121 {
8122 if (temp2)
8123 delete arg2;
8124 }
8125 return resultobj;
8126 fail:
8127 {
8128 if (temp2)
8129 delete arg2;
8130 }
8131 return NULL;
8132 }
8133
8134
8135 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8136 PyObject *resultobj;
8137 wxFont *arg1 = (wxFont *) 0 ;
8138 bool arg2 ;
8139 PyObject * obj0 = 0 ;
8140 PyObject * obj1 = 0 ;
8141 char *kwnames[] = {
8142 (char *) "self",(char *) "underlined", NULL
8143 };
8144
8145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8148 arg2 = (bool) SWIG_AsBool(obj1);
8149 if (PyErr_Occurred()) SWIG_fail;
8150 {
8151 PyThreadState* __tstate = wxPyBeginAllowThreads();
8152 (arg1)->SetUnderlined(arg2);
8153
8154 wxPyEndAllowThreads(__tstate);
8155 if (PyErr_Occurred()) SWIG_fail;
8156 }
8157 Py_INCREF(Py_None); resultobj = Py_None;
8158 return resultobj;
8159 fail:
8160 return NULL;
8161 }
8162
8163
8164 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8165 PyObject *resultobj;
8166 wxFont *arg1 = (wxFont *) 0 ;
8167 int arg2 ;
8168 PyObject * obj0 = 0 ;
8169 PyObject * obj1 = 0 ;
8170 char *kwnames[] = {
8171 (char *) "self",(char *) "encoding", NULL
8172 };
8173
8174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8177 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8178 if (PyErr_Occurred()) SWIG_fail;
8179 {
8180 PyThreadState* __tstate = wxPyBeginAllowThreads();
8181 (arg1)->SetEncoding((wxFontEncoding )arg2);
8182
8183 wxPyEndAllowThreads(__tstate);
8184 if (PyErr_Occurred()) SWIG_fail;
8185 }
8186 Py_INCREF(Py_None); resultobj = Py_None;
8187 return resultobj;
8188 fail:
8189 return NULL;
8190 }
8191
8192
8193 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8194 PyObject *resultobj;
8195 wxFont *arg1 = (wxFont *) 0 ;
8196 wxNativeFontInfo *arg2 = 0 ;
8197 PyObject * obj0 = 0 ;
8198 PyObject * obj1 = 0 ;
8199 char *kwnames[] = {
8200 (char *) "self",(char *) "info", NULL
8201 };
8202
8203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8206 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8207 SWIG_POINTER_EXCEPTION | 0)) == -1)
8208 SWIG_fail;
8209 if (arg2 == NULL) {
8210 PyErr_SetString(PyExc_TypeError,"null reference");
8211 SWIG_fail;
8212 }
8213 {
8214 PyThreadState* __tstate = wxPyBeginAllowThreads();
8215 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8216
8217 wxPyEndAllowThreads(__tstate);
8218 if (PyErr_Occurred()) SWIG_fail;
8219 }
8220 Py_INCREF(Py_None); resultobj = Py_None;
8221 return resultobj;
8222 fail:
8223 return NULL;
8224 }
8225
8226
8227 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8228 PyObject *resultobj;
8229 wxFont *arg1 = (wxFont *) 0 ;
8230 wxString *arg2 = 0 ;
8231 bool temp2 = False ;
8232 PyObject * obj0 = 0 ;
8233 PyObject * obj1 = 0 ;
8234 char *kwnames[] = {
8235 (char *) "self",(char *) "info", NULL
8236 };
8237
8238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8241 {
8242 arg2 = wxString_in_helper(obj1);
8243 if (arg2 == NULL) SWIG_fail;
8244 temp2 = True;
8245 }
8246 {
8247 PyThreadState* __tstate = wxPyBeginAllowThreads();
8248 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8249
8250 wxPyEndAllowThreads(__tstate);
8251 if (PyErr_Occurred()) SWIG_fail;
8252 }
8253 Py_INCREF(Py_None); resultobj = Py_None;
8254 {
8255 if (temp2)
8256 delete arg2;
8257 }
8258 return resultobj;
8259 fail:
8260 {
8261 if (temp2)
8262 delete arg2;
8263 }
8264 return NULL;
8265 }
8266
8267
8268 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8269 PyObject *resultobj;
8270 wxFont *arg1 = (wxFont *) 0 ;
8271 wxString *arg2 = 0 ;
8272 bool temp2 = False ;
8273 PyObject * obj0 = 0 ;
8274 PyObject * obj1 = 0 ;
8275 char *kwnames[] = {
8276 (char *) "self",(char *) "info", NULL
8277 };
8278
8279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8282 {
8283 arg2 = wxString_in_helper(obj1);
8284 if (arg2 == NULL) SWIG_fail;
8285 temp2 = True;
8286 }
8287 {
8288 PyThreadState* __tstate = wxPyBeginAllowThreads();
8289 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8290
8291 wxPyEndAllowThreads(__tstate);
8292 if (PyErr_Occurred()) SWIG_fail;
8293 }
8294 Py_INCREF(Py_None); resultobj = Py_None;
8295 {
8296 if (temp2)
8297 delete arg2;
8298 }
8299 return resultobj;
8300 fail:
8301 {
8302 if (temp2)
8303 delete arg2;
8304 }
8305 return NULL;
8306 }
8307
8308
8309 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8310 PyObject *resultobj;
8311 wxFont *arg1 = (wxFont *) 0 ;
8312 wxString result;
8313 PyObject * obj0 = 0 ;
8314 char *kwnames[] = {
8315 (char *) "self", NULL
8316 };
8317
8318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8321 {
8322 PyThreadState* __tstate = wxPyBeginAllowThreads();
8323 result = ((wxFont const *)arg1)->GetFamilyString();
8324
8325 wxPyEndAllowThreads(__tstate);
8326 if (PyErr_Occurred()) SWIG_fail;
8327 }
8328 {
8329 #if wxUSE_UNICODE
8330 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8331 #else
8332 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8333 #endif
8334 }
8335 return resultobj;
8336 fail:
8337 return NULL;
8338 }
8339
8340
8341 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8342 PyObject *resultobj;
8343 wxFont *arg1 = (wxFont *) 0 ;
8344 wxString result;
8345 PyObject * obj0 = 0 ;
8346 char *kwnames[] = {
8347 (char *) "self", NULL
8348 };
8349
8350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8353 {
8354 PyThreadState* __tstate = wxPyBeginAllowThreads();
8355 result = ((wxFont const *)arg1)->GetStyleString();
8356
8357 wxPyEndAllowThreads(__tstate);
8358 if (PyErr_Occurred()) SWIG_fail;
8359 }
8360 {
8361 #if wxUSE_UNICODE
8362 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8363 #else
8364 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8365 #endif
8366 }
8367 return resultobj;
8368 fail:
8369 return NULL;
8370 }
8371
8372
8373 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8374 PyObject *resultobj;
8375 wxFont *arg1 = (wxFont *) 0 ;
8376 wxString result;
8377 PyObject * obj0 = 0 ;
8378 char *kwnames[] = {
8379 (char *) "self", NULL
8380 };
8381
8382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8385 {
8386 PyThreadState* __tstate = wxPyBeginAllowThreads();
8387 result = ((wxFont const *)arg1)->GetWeightString();
8388
8389 wxPyEndAllowThreads(__tstate);
8390 if (PyErr_Occurred()) SWIG_fail;
8391 }
8392 {
8393 #if wxUSE_UNICODE
8394 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8395 #else
8396 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8397 #endif
8398 }
8399 return resultobj;
8400 fail:
8401 return NULL;
8402 }
8403
8404
8405 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8406 PyObject *resultobj;
8407 wxFont *arg1 = (wxFont *) 0 ;
8408 bool arg2 = (bool) True ;
8409 PyObject * obj0 = 0 ;
8410 PyObject * obj1 = 0 ;
8411 char *kwnames[] = {
8412 (char *) "self",(char *) "no", NULL
8413 };
8414
8415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8418 if (obj1) {
8419 arg2 = (bool) SWIG_AsBool(obj1);
8420 if (PyErr_Occurred()) SWIG_fail;
8421 }
8422 {
8423 PyThreadState* __tstate = wxPyBeginAllowThreads();
8424 (arg1)->SetNoAntiAliasing(arg2);
8425
8426 wxPyEndAllowThreads(__tstate);
8427 if (PyErr_Occurred()) SWIG_fail;
8428 }
8429 Py_INCREF(Py_None); resultobj = Py_None;
8430 return resultobj;
8431 fail:
8432 return NULL;
8433 }
8434
8435
8436 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8437 PyObject *resultobj;
8438 wxFont *arg1 = (wxFont *) 0 ;
8439 bool result;
8440 PyObject * obj0 = 0 ;
8441 char *kwnames[] = {
8442 (char *) "self", NULL
8443 };
8444
8445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8448 {
8449 PyThreadState* __tstate = wxPyBeginAllowThreads();
8450 result = (bool)(arg1)->GetNoAntiAliasing();
8451
8452 wxPyEndAllowThreads(__tstate);
8453 if (PyErr_Occurred()) SWIG_fail;
8454 }
8455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8456 return resultobj;
8457 fail:
8458 return NULL;
8459 }
8460
8461
8462 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8463 PyObject *resultobj;
8464 int result;
8465 char *kwnames[] = {
8466 NULL
8467 };
8468
8469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8470 {
8471 PyThreadState* __tstate = wxPyBeginAllowThreads();
8472 result = (int)wxFont::GetDefaultEncoding();
8473
8474 wxPyEndAllowThreads(__tstate);
8475 if (PyErr_Occurred()) SWIG_fail;
8476 }
8477 resultobj = SWIG_FromInt((int)result);
8478 return resultobj;
8479 fail:
8480 return NULL;
8481 }
8482
8483
8484 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8485 PyObject *resultobj;
8486 int arg1 ;
8487 PyObject * obj0 = 0 ;
8488 char *kwnames[] = {
8489 (char *) "encoding", NULL
8490 };
8491
8492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8493 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
8494 if (PyErr_Occurred()) SWIG_fail;
8495 {
8496 PyThreadState* __tstate = wxPyBeginAllowThreads();
8497 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8498
8499 wxPyEndAllowThreads(__tstate);
8500 if (PyErr_Occurred()) SWIG_fail;
8501 }
8502 Py_INCREF(Py_None); resultobj = Py_None;
8503 return resultobj;
8504 fail:
8505 return NULL;
8506 }
8507
8508
8509 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8510 PyObject *obj;
8511 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8512 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8513 Py_INCREF(obj);
8514 return Py_BuildValue((char *)"");
8515 }
8516 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8517 PyObject *resultobj;
8518 wxPyFontEnumerator *result;
8519 char *kwnames[] = {
8520 NULL
8521 };
8522
8523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8524 {
8525 PyThreadState* __tstate = wxPyBeginAllowThreads();
8526 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8527
8528 wxPyEndAllowThreads(__tstate);
8529 if (PyErr_Occurred()) SWIG_fail;
8530 }
8531 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
8532 return resultobj;
8533 fail:
8534 return NULL;
8535 }
8536
8537
8538 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8539 PyObject *resultobj;
8540 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8541 PyObject * obj0 = 0 ;
8542 char *kwnames[] = {
8543 (char *) "self", NULL
8544 };
8545
8546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8549 {
8550 PyThreadState* __tstate = wxPyBeginAllowThreads();
8551 delete arg1;
8552
8553 wxPyEndAllowThreads(__tstate);
8554 if (PyErr_Occurred()) SWIG_fail;
8555 }
8556 Py_INCREF(Py_None); resultobj = Py_None;
8557 return resultobj;
8558 fail:
8559 return NULL;
8560 }
8561
8562
8563 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8564 PyObject *resultobj;
8565 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8566 PyObject *arg2 = (PyObject *) 0 ;
8567 PyObject *arg3 = (PyObject *) 0 ;
8568 bool arg4 ;
8569 PyObject * obj0 = 0 ;
8570 PyObject * obj1 = 0 ;
8571 PyObject * obj2 = 0 ;
8572 PyObject * obj3 = 0 ;
8573 char *kwnames[] = {
8574 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8575 };
8576
8577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8580 arg2 = obj1;
8581 arg3 = obj2;
8582 arg4 = (bool) SWIG_AsBool(obj3);
8583 if (PyErr_Occurred()) SWIG_fail;
8584 {
8585 PyThreadState* __tstate = wxPyBeginAllowThreads();
8586 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8587
8588 wxPyEndAllowThreads(__tstate);
8589 if (PyErr_Occurred()) SWIG_fail;
8590 }
8591 Py_INCREF(Py_None); resultobj = Py_None;
8592 return resultobj;
8593 fail:
8594 return NULL;
8595 }
8596
8597
8598 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8599 PyObject *resultobj;
8600 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8601 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8602 bool arg3 = (bool) False ;
8603 bool result;
8604 PyObject * obj0 = 0 ;
8605 PyObject * obj1 = 0 ;
8606 PyObject * obj2 = 0 ;
8607 char *kwnames[] = {
8608 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8609 };
8610
8611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8614 if (obj1) {
8615 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8616 if (PyErr_Occurred()) SWIG_fail;
8617 }
8618 if (obj2) {
8619 arg3 = (bool) SWIG_AsBool(obj2);
8620 if (PyErr_Occurred()) SWIG_fail;
8621 }
8622 {
8623 PyThreadState* __tstate = wxPyBeginAllowThreads();
8624 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8625
8626 wxPyEndAllowThreads(__tstate);
8627 if (PyErr_Occurred()) SWIG_fail;
8628 }
8629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8630 return resultobj;
8631 fail:
8632 return NULL;
8633 }
8634
8635
8636 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8637 PyObject *resultobj;
8638 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8639 wxString const &arg2_defvalue = wxPyEmptyString ;
8640 wxString *arg2 = (wxString *) &arg2_defvalue ;
8641 bool result;
8642 bool temp2 = False ;
8643 PyObject * obj0 = 0 ;
8644 PyObject * obj1 = 0 ;
8645 char *kwnames[] = {
8646 (char *) "self",(char *) "facename", NULL
8647 };
8648
8649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8652 if (obj1) {
8653 {
8654 arg2 = wxString_in_helper(obj1);
8655 if (arg2 == NULL) SWIG_fail;
8656 temp2 = True;
8657 }
8658 }
8659 {
8660 PyThreadState* __tstate = wxPyBeginAllowThreads();
8661 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8662
8663 wxPyEndAllowThreads(__tstate);
8664 if (PyErr_Occurred()) SWIG_fail;
8665 }
8666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8667 {
8668 if (temp2)
8669 delete arg2;
8670 }
8671 return resultobj;
8672 fail:
8673 {
8674 if (temp2)
8675 delete arg2;
8676 }
8677 return NULL;
8678 }
8679
8680
8681 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8682 PyObject *resultobj;
8683 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8684 PyObject *result;
8685 PyObject * obj0 = 0 ;
8686 char *kwnames[] = {
8687 (char *) "self", NULL
8688 };
8689
8690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
8691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8693 {
8694 PyThreadState* __tstate = wxPyBeginAllowThreads();
8695 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8696
8697 wxPyEndAllowThreads(__tstate);
8698 if (PyErr_Occurred()) SWIG_fail;
8699 }
8700 resultobj = result;
8701 return resultobj;
8702 fail:
8703 return NULL;
8704 }
8705
8706
8707 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8708 PyObject *resultobj;
8709 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8710 PyObject *result;
8711 PyObject * obj0 = 0 ;
8712 char *kwnames[] = {
8713 (char *) "self", NULL
8714 };
8715
8716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
8717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8719 {
8720 PyThreadState* __tstate = wxPyBeginAllowThreads();
8721 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
8722
8723 wxPyEndAllowThreads(__tstate);
8724 if (PyErr_Occurred()) SWIG_fail;
8725 }
8726 resultobj = result;
8727 return resultobj;
8728 fail:
8729 return NULL;
8730 }
8731
8732
8733 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
8734 PyObject *obj;
8735 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8736 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
8737 Py_INCREF(obj);
8738 return Py_BuildValue((char *)"");
8739 }
8740 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8741 PyObject *resultobj;
8742 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8743 int arg2 ;
8744 PyObject * obj0 = 0 ;
8745 PyObject * obj1 = 0 ;
8746 char *kwnames[] = {
8747 (char *) "self",(char *) "Language", NULL
8748 };
8749
8750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
8751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8753 arg2 = (int) SWIG_AsInt(obj1);
8754 if (PyErr_Occurred()) SWIG_fail;
8755 if (arg1) (arg1)->Language = arg2;
8756
8757 Py_INCREF(Py_None); resultobj = Py_None;
8758 return resultobj;
8759 fail:
8760 return NULL;
8761 }
8762
8763
8764 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8765 PyObject *resultobj;
8766 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8767 int result;
8768 PyObject * obj0 = 0 ;
8769 char *kwnames[] = {
8770 (char *) "self", NULL
8771 };
8772
8773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
8774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8776 result = (int) ((arg1)->Language);
8777
8778 resultobj = SWIG_FromInt((int)result);
8779 return resultobj;
8780 fail:
8781 return NULL;
8782 }
8783
8784
8785 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8786 PyObject *resultobj;
8787 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8788 wxString *arg2 = (wxString *) 0 ;
8789 bool temp2 = False ;
8790 PyObject * obj0 = 0 ;
8791 PyObject * obj1 = 0 ;
8792 char *kwnames[] = {
8793 (char *) "self",(char *) "CanonicalName", NULL
8794 };
8795
8796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
8797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8799 {
8800 arg2 = wxString_in_helper(obj1);
8801 if (arg2 == NULL) SWIG_fail;
8802 temp2 = True;
8803 }
8804 if (arg1) (arg1)->CanonicalName = *arg2;
8805
8806 Py_INCREF(Py_None); resultobj = Py_None;
8807 {
8808 if (temp2)
8809 delete arg2;
8810 }
8811 return resultobj;
8812 fail:
8813 {
8814 if (temp2)
8815 delete arg2;
8816 }
8817 return NULL;
8818 }
8819
8820
8821 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8822 PyObject *resultobj;
8823 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8824 wxString *result;
8825 PyObject * obj0 = 0 ;
8826 char *kwnames[] = {
8827 (char *) "self", NULL
8828 };
8829
8830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
8831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8833 result = (wxString *)& ((arg1)->CanonicalName);
8834
8835 {
8836 #if wxUSE_UNICODE
8837 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8838 #else
8839 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8840 #endif
8841 }
8842 return resultobj;
8843 fail:
8844 return NULL;
8845 }
8846
8847
8848 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8849 PyObject *resultobj;
8850 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8851 wxString *arg2 = (wxString *) 0 ;
8852 bool temp2 = False ;
8853 PyObject * obj0 = 0 ;
8854 PyObject * obj1 = 0 ;
8855 char *kwnames[] = {
8856 (char *) "self",(char *) "Description", NULL
8857 };
8858
8859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
8860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8862 {
8863 arg2 = wxString_in_helper(obj1);
8864 if (arg2 == NULL) SWIG_fail;
8865 temp2 = True;
8866 }
8867 if (arg1) (arg1)->Description = *arg2;
8868
8869 Py_INCREF(Py_None); resultobj = Py_None;
8870 {
8871 if (temp2)
8872 delete arg2;
8873 }
8874 return resultobj;
8875 fail:
8876 {
8877 if (temp2)
8878 delete arg2;
8879 }
8880 return NULL;
8881 }
8882
8883
8884 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8885 PyObject *resultobj;
8886 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8887 wxString *result;
8888 PyObject * obj0 = 0 ;
8889 char *kwnames[] = {
8890 (char *) "self", NULL
8891 };
8892
8893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
8894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8896 result = (wxString *)& ((arg1)->Description);
8897
8898 {
8899 #if wxUSE_UNICODE
8900 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8901 #else
8902 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8903 #endif
8904 }
8905 return resultobj;
8906 fail:
8907 return NULL;
8908 }
8909
8910
8911 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
8912 PyObject *obj;
8913 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8914 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
8915 Py_INCREF(obj);
8916 return Py_BuildValue((char *)"");
8917 }
8918 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
8919 PyObject *resultobj;
8920 int arg1 = (int) wxLANGUAGE_DEFAULT ;
8921 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
8922 wxLocale *result;
8923 PyObject * obj0 = 0 ;
8924 PyObject * obj1 = 0 ;
8925 char *kwnames[] = {
8926 (char *) "language",(char *) "flags", NULL
8927 };
8928
8929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
8930 if (obj0) {
8931 arg1 = (int) SWIG_AsInt(obj0);
8932 if (PyErr_Occurred()) SWIG_fail;
8933 }
8934 if (obj1) {
8935 arg2 = (int) SWIG_AsInt(obj1);
8936 if (PyErr_Occurred()) SWIG_fail;
8937 }
8938 {
8939 PyThreadState* __tstate = wxPyBeginAllowThreads();
8940 result = (wxLocale *)new wxLocale(arg1,arg2);
8941
8942 wxPyEndAllowThreads(__tstate);
8943 if (PyErr_Occurred()) SWIG_fail;
8944 }
8945 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
8946 return resultobj;
8947 fail:
8948 return NULL;
8949 }
8950
8951
8952 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
8953 PyObject *resultobj;
8954 wxLocale *arg1 = (wxLocale *) 0 ;
8955 PyObject * obj0 = 0 ;
8956 char *kwnames[] = {
8957 (char *) "self", NULL
8958 };
8959
8960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
8961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
8962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8963 {
8964 PyThreadState* __tstate = wxPyBeginAllowThreads();
8965 delete arg1;
8966
8967 wxPyEndAllowThreads(__tstate);
8968 if (PyErr_Occurred()) SWIG_fail;
8969 }
8970 Py_INCREF(Py_None); resultobj = Py_None;
8971 return resultobj;
8972 fail:
8973 return NULL;
8974 }
8975
8976
8977 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
8978 PyObject *resultobj;
8979 wxLocale *arg1 = (wxLocale *) 0 ;
8980 wxString *arg2 = 0 ;
8981 wxString const &arg3_defvalue = wxPyEmptyString ;
8982 wxString *arg3 = (wxString *) &arg3_defvalue ;
8983 wxString const &arg4_defvalue = wxPyEmptyString ;
8984 wxString *arg4 = (wxString *) &arg4_defvalue ;
8985 bool arg5 = (bool) True ;
8986 bool arg6 = (bool) False ;
8987 bool result;
8988 bool temp2 = False ;
8989 bool temp3 = False ;
8990 bool temp4 = False ;
8991 PyObject * obj0 = 0 ;
8992 PyObject * obj1 = 0 ;
8993 PyObject * obj2 = 0 ;
8994 PyObject * obj3 = 0 ;
8995 PyObject * obj4 = 0 ;
8996 PyObject * obj5 = 0 ;
8997 char *kwnames[] = {
8998 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
8999 };
9000
9001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9004 {
9005 arg2 = wxString_in_helper(obj1);
9006 if (arg2 == NULL) SWIG_fail;
9007 temp2 = True;
9008 }
9009 if (obj2) {
9010 {
9011 arg3 = wxString_in_helper(obj2);
9012 if (arg3 == NULL) SWIG_fail;
9013 temp3 = True;
9014 }
9015 }
9016 if (obj3) {
9017 {
9018 arg4 = wxString_in_helper(obj3);
9019 if (arg4 == NULL) SWIG_fail;
9020 temp4 = True;
9021 }
9022 }
9023 if (obj4) {
9024 arg5 = (bool) SWIG_AsBool(obj4);
9025 if (PyErr_Occurred()) SWIG_fail;
9026 }
9027 if (obj5) {
9028 arg6 = (bool) SWIG_AsBool(obj5);
9029 if (PyErr_Occurred()) SWIG_fail;
9030 }
9031 {
9032 PyThreadState* __tstate = wxPyBeginAllowThreads();
9033 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9034
9035 wxPyEndAllowThreads(__tstate);
9036 if (PyErr_Occurred()) SWIG_fail;
9037 }
9038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9039 {
9040 if (temp2)
9041 delete arg2;
9042 }
9043 {
9044 if (temp3)
9045 delete arg3;
9046 }
9047 {
9048 if (temp4)
9049 delete arg4;
9050 }
9051 return resultobj;
9052 fail:
9053 {
9054 if (temp2)
9055 delete arg2;
9056 }
9057 {
9058 if (temp3)
9059 delete arg3;
9060 }
9061 {
9062 if (temp4)
9063 delete arg4;
9064 }
9065 return NULL;
9066 }
9067
9068
9069 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9070 PyObject *resultobj;
9071 wxLocale *arg1 = (wxLocale *) 0 ;
9072 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9073 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9074 bool result;
9075 PyObject * obj0 = 0 ;
9076 PyObject * obj1 = 0 ;
9077 PyObject * obj2 = 0 ;
9078 char *kwnames[] = {
9079 (char *) "self",(char *) "language",(char *) "flags", NULL
9080 };
9081
9082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9085 if (obj1) {
9086 arg2 = (int) SWIG_AsInt(obj1);
9087 if (PyErr_Occurred()) SWIG_fail;
9088 }
9089 if (obj2) {
9090 arg3 = (int) SWIG_AsInt(obj2);
9091 if (PyErr_Occurred()) SWIG_fail;
9092 }
9093 {
9094 PyThreadState* __tstate = wxPyBeginAllowThreads();
9095 result = (bool)(arg1)->Init(arg2,arg3);
9096
9097 wxPyEndAllowThreads(__tstate);
9098 if (PyErr_Occurred()) SWIG_fail;
9099 }
9100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9101 return resultobj;
9102 fail:
9103 return NULL;
9104 }
9105
9106
9107 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9108 PyObject *resultobj;
9109 int result;
9110 char *kwnames[] = {
9111 NULL
9112 };
9113
9114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9115 {
9116 PyThreadState* __tstate = wxPyBeginAllowThreads();
9117 result = (int)wxLocale::GetSystemLanguage();
9118
9119 wxPyEndAllowThreads(__tstate);
9120 if (PyErr_Occurred()) SWIG_fail;
9121 }
9122 resultobj = SWIG_FromInt((int)result);
9123 return resultobj;
9124 fail:
9125 return NULL;
9126 }
9127
9128
9129 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9130 PyObject *resultobj;
9131 int result;
9132 char *kwnames[] = {
9133 NULL
9134 };
9135
9136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9137 {
9138 PyThreadState* __tstate = wxPyBeginAllowThreads();
9139 result = (int)wxLocale::GetSystemEncoding();
9140
9141 wxPyEndAllowThreads(__tstate);
9142 if (PyErr_Occurred()) SWIG_fail;
9143 }
9144 resultobj = SWIG_FromInt((int)result);
9145 return resultobj;
9146 fail:
9147 return NULL;
9148 }
9149
9150
9151 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9152 PyObject *resultobj;
9153 wxString result;
9154 char *kwnames[] = {
9155 NULL
9156 };
9157
9158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9159 {
9160 PyThreadState* __tstate = wxPyBeginAllowThreads();
9161 result = wxLocale::GetSystemEncodingName();
9162
9163 wxPyEndAllowThreads(__tstate);
9164 if (PyErr_Occurred()) SWIG_fail;
9165 }
9166 {
9167 #if wxUSE_UNICODE
9168 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9169 #else
9170 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9171 #endif
9172 }
9173 return resultobj;
9174 fail:
9175 return NULL;
9176 }
9177
9178
9179 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9180 PyObject *resultobj;
9181 wxLocale *arg1 = (wxLocale *) 0 ;
9182 bool result;
9183 PyObject * obj0 = 0 ;
9184 char *kwnames[] = {
9185 (char *) "self", NULL
9186 };
9187
9188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9191 {
9192 PyThreadState* __tstate = wxPyBeginAllowThreads();
9193 result = (bool)((wxLocale const *)arg1)->IsOk();
9194
9195 wxPyEndAllowThreads(__tstate);
9196 if (PyErr_Occurred()) SWIG_fail;
9197 }
9198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9199 return resultobj;
9200 fail:
9201 return NULL;
9202 }
9203
9204
9205 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9206 PyObject *resultobj;
9207 wxLocale *arg1 = (wxLocale *) 0 ;
9208 wxString result;
9209 PyObject * obj0 = 0 ;
9210 char *kwnames[] = {
9211 (char *) "self", NULL
9212 };
9213
9214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9217 {
9218 PyThreadState* __tstate = wxPyBeginAllowThreads();
9219 result = ((wxLocale const *)arg1)->GetLocale();
9220
9221 wxPyEndAllowThreads(__tstate);
9222 if (PyErr_Occurred()) SWIG_fail;
9223 }
9224 {
9225 #if wxUSE_UNICODE
9226 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9227 #else
9228 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9229 #endif
9230 }
9231 return resultobj;
9232 fail:
9233 return NULL;
9234 }
9235
9236
9237 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9238 PyObject *resultobj;
9239 wxLocale *arg1 = (wxLocale *) 0 ;
9240 int result;
9241 PyObject * obj0 = 0 ;
9242 char *kwnames[] = {
9243 (char *) "self", NULL
9244 };
9245
9246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9249 {
9250 PyThreadState* __tstate = wxPyBeginAllowThreads();
9251 result = (int)((wxLocale const *)arg1)->GetLanguage();
9252
9253 wxPyEndAllowThreads(__tstate);
9254 if (PyErr_Occurred()) SWIG_fail;
9255 }
9256 resultobj = SWIG_FromInt((int)result);
9257 return resultobj;
9258 fail:
9259 return NULL;
9260 }
9261
9262
9263 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9264 PyObject *resultobj;
9265 wxLocale *arg1 = (wxLocale *) 0 ;
9266 wxString result;
9267 PyObject * obj0 = 0 ;
9268 char *kwnames[] = {
9269 (char *) "self", NULL
9270 };
9271
9272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9275 {
9276 PyThreadState* __tstate = wxPyBeginAllowThreads();
9277 result = ((wxLocale const *)arg1)->GetSysName();
9278
9279 wxPyEndAllowThreads(__tstate);
9280 if (PyErr_Occurred()) SWIG_fail;
9281 }
9282 {
9283 #if wxUSE_UNICODE
9284 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9285 #else
9286 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9287 #endif
9288 }
9289 return resultobj;
9290 fail:
9291 return NULL;
9292 }
9293
9294
9295 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9296 PyObject *resultobj;
9297 wxLocale *arg1 = (wxLocale *) 0 ;
9298 wxString result;
9299 PyObject * obj0 = 0 ;
9300 char *kwnames[] = {
9301 (char *) "self", NULL
9302 };
9303
9304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9307 {
9308 PyThreadState* __tstate = wxPyBeginAllowThreads();
9309 result = ((wxLocale const *)arg1)->GetCanonicalName();
9310
9311 wxPyEndAllowThreads(__tstate);
9312 if (PyErr_Occurred()) SWIG_fail;
9313 }
9314 {
9315 #if wxUSE_UNICODE
9316 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9317 #else
9318 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9319 #endif
9320 }
9321 return resultobj;
9322 fail:
9323 return NULL;
9324 }
9325
9326
9327 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9328 PyObject *resultobj;
9329 wxString *arg1 = 0 ;
9330 bool temp1 = False ;
9331 PyObject * obj0 = 0 ;
9332 char *kwnames[] = {
9333 (char *) "prefix", NULL
9334 };
9335
9336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9337 {
9338 arg1 = wxString_in_helper(obj0);
9339 if (arg1 == NULL) SWIG_fail;
9340 temp1 = True;
9341 }
9342 {
9343 PyThreadState* __tstate = wxPyBeginAllowThreads();
9344 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9345
9346 wxPyEndAllowThreads(__tstate);
9347 if (PyErr_Occurred()) SWIG_fail;
9348 }
9349 Py_INCREF(Py_None); resultobj = Py_None;
9350 {
9351 if (temp1)
9352 delete arg1;
9353 }
9354 return resultobj;
9355 fail:
9356 {
9357 if (temp1)
9358 delete arg1;
9359 }
9360 return NULL;
9361 }
9362
9363
9364 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9365 PyObject *resultobj;
9366 wxLocale *arg1 = (wxLocale *) 0 ;
9367 wxString *arg2 = 0 ;
9368 bool result;
9369 bool temp2 = False ;
9370 PyObject * obj0 = 0 ;
9371 PyObject * obj1 = 0 ;
9372 char *kwnames[] = {
9373 (char *) "self",(char *) "szDomain", NULL
9374 };
9375
9376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9379 {
9380 arg2 = wxString_in_helper(obj1);
9381 if (arg2 == NULL) SWIG_fail;
9382 temp2 = True;
9383 }
9384 {
9385 PyThreadState* __tstate = wxPyBeginAllowThreads();
9386 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9387
9388 wxPyEndAllowThreads(__tstate);
9389 if (PyErr_Occurred()) SWIG_fail;
9390 }
9391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9392 {
9393 if (temp2)
9394 delete arg2;
9395 }
9396 return resultobj;
9397 fail:
9398 {
9399 if (temp2)
9400 delete arg2;
9401 }
9402 return NULL;
9403 }
9404
9405
9406 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9407 PyObject *resultobj;
9408 wxLocale *arg1 = (wxLocale *) 0 ;
9409 wxString *arg2 = 0 ;
9410 bool result;
9411 bool temp2 = False ;
9412 PyObject * obj0 = 0 ;
9413 PyObject * obj1 = 0 ;
9414 char *kwnames[] = {
9415 (char *) "self",(char *) "szDomain", NULL
9416 };
9417
9418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9421 {
9422 arg2 = wxString_in_helper(obj1);
9423 if (arg2 == NULL) SWIG_fail;
9424 temp2 = True;
9425 }
9426 {
9427 PyThreadState* __tstate = wxPyBeginAllowThreads();
9428 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9429
9430 wxPyEndAllowThreads(__tstate);
9431 if (PyErr_Occurred()) SWIG_fail;
9432 }
9433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9434 {
9435 if (temp2)
9436 delete arg2;
9437 }
9438 return resultobj;
9439 fail:
9440 {
9441 if (temp2)
9442 delete arg2;
9443 }
9444 return NULL;
9445 }
9446
9447
9448 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9449 PyObject *resultobj;
9450 int arg1 ;
9451 wxLanguageInfo *result;
9452 PyObject * obj0 = 0 ;
9453 char *kwnames[] = {
9454 (char *) "lang", NULL
9455 };
9456
9457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9458 arg1 = (int) SWIG_AsInt(obj0);
9459 if (PyErr_Occurred()) SWIG_fail;
9460 {
9461 PyThreadState* __tstate = wxPyBeginAllowThreads();
9462 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9463
9464 wxPyEndAllowThreads(__tstate);
9465 if (PyErr_Occurred()) SWIG_fail;
9466 }
9467 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9468 return resultobj;
9469 fail:
9470 return NULL;
9471 }
9472
9473
9474 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9475 PyObject *resultobj;
9476 int arg1 ;
9477 wxString result;
9478 PyObject * obj0 = 0 ;
9479 char *kwnames[] = {
9480 (char *) "lang", NULL
9481 };
9482
9483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9484 arg1 = (int) SWIG_AsInt(obj0);
9485 if (PyErr_Occurred()) SWIG_fail;
9486 {
9487 PyThreadState* __tstate = wxPyBeginAllowThreads();
9488 result = wxLocale::GetLanguageName(arg1);
9489
9490 wxPyEndAllowThreads(__tstate);
9491 if (PyErr_Occurred()) SWIG_fail;
9492 }
9493 {
9494 #if wxUSE_UNICODE
9495 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9496 #else
9497 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9498 #endif
9499 }
9500 return resultobj;
9501 fail:
9502 return NULL;
9503 }
9504
9505
9506 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9507 PyObject *resultobj;
9508 wxString *arg1 = 0 ;
9509 wxLanguageInfo *result;
9510 bool temp1 = False ;
9511 PyObject * obj0 = 0 ;
9512 char *kwnames[] = {
9513 (char *) "locale", NULL
9514 };
9515
9516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9517 {
9518 arg1 = wxString_in_helper(obj0);
9519 if (arg1 == NULL) SWIG_fail;
9520 temp1 = True;
9521 }
9522 {
9523 PyThreadState* __tstate = wxPyBeginAllowThreads();
9524 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9525
9526 wxPyEndAllowThreads(__tstate);
9527 if (PyErr_Occurred()) SWIG_fail;
9528 }
9529 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9530 {
9531 if (temp1)
9532 delete arg1;
9533 }
9534 return resultobj;
9535 fail:
9536 {
9537 if (temp1)
9538 delete arg1;
9539 }
9540 return NULL;
9541 }
9542
9543
9544 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9545 PyObject *resultobj;
9546 wxLanguageInfo *arg1 = 0 ;
9547 PyObject * obj0 = 0 ;
9548 char *kwnames[] = {
9549 (char *) "info", NULL
9550 };
9551
9552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9554 SWIG_POINTER_EXCEPTION | 0)) == -1)
9555 SWIG_fail;
9556 if (arg1 == NULL) {
9557 PyErr_SetString(PyExc_TypeError,"null reference");
9558 SWIG_fail;
9559 }
9560 {
9561 PyThreadState* __tstate = wxPyBeginAllowThreads();
9562 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9563
9564 wxPyEndAllowThreads(__tstate);
9565 if (PyErr_Occurred()) SWIG_fail;
9566 }
9567 Py_INCREF(Py_None); resultobj = Py_None;
9568 return resultobj;
9569 fail:
9570 return NULL;
9571 }
9572
9573
9574 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9575 PyObject *resultobj;
9576 wxLocale *arg1 = (wxLocale *) 0 ;
9577 wxString *arg2 = 0 ;
9578 wxString const &arg3_defvalue = wxPyEmptyString ;
9579 wxString *arg3 = (wxString *) &arg3_defvalue ;
9580 wxString result;
9581 bool temp2 = False ;
9582 bool temp3 = False ;
9583 PyObject * obj0 = 0 ;
9584 PyObject * obj1 = 0 ;
9585 PyObject * obj2 = 0 ;
9586 char *kwnames[] = {
9587 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9588 };
9589
9590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9593 {
9594 arg2 = wxString_in_helper(obj1);
9595 if (arg2 == NULL) SWIG_fail;
9596 temp2 = True;
9597 }
9598 if (obj2) {
9599 {
9600 arg3 = wxString_in_helper(obj2);
9601 if (arg3 == NULL) SWIG_fail;
9602 temp3 = True;
9603 }
9604 }
9605 {
9606 PyThreadState* __tstate = wxPyBeginAllowThreads();
9607 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9608
9609 wxPyEndAllowThreads(__tstate);
9610 if (PyErr_Occurred()) SWIG_fail;
9611 }
9612 {
9613 #if wxUSE_UNICODE
9614 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9615 #else
9616 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9617 #endif
9618 }
9619 {
9620 if (temp2)
9621 delete arg2;
9622 }
9623 {
9624 if (temp3)
9625 delete arg3;
9626 }
9627 return resultobj;
9628 fail:
9629 {
9630 if (temp2)
9631 delete arg2;
9632 }
9633 {
9634 if (temp3)
9635 delete arg3;
9636 }
9637 return NULL;
9638 }
9639
9640
9641 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9642 PyObject *resultobj;
9643 wxLocale *arg1 = (wxLocale *) 0 ;
9644 wxString *result;
9645 PyObject * obj0 = 0 ;
9646 char *kwnames[] = {
9647 (char *) "self", NULL
9648 };
9649
9650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9653 {
9654 PyThreadState* __tstate = wxPyBeginAllowThreads();
9655 {
9656 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9657 result = (wxString *) &_result_ref;
9658 }
9659
9660 wxPyEndAllowThreads(__tstate);
9661 if (PyErr_Occurred()) SWIG_fail;
9662 }
9663 {
9664 #if wxUSE_UNICODE
9665 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9666 #else
9667 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9668 #endif
9669 }
9670 return resultobj;
9671 fail:
9672 return NULL;
9673 }
9674
9675
9676 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9677 PyObject *obj;
9678 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9679 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9680 Py_INCREF(obj);
9681 return Py_BuildValue((char *)"");
9682 }
9683 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9684 PyObject *resultobj;
9685 wxLocale *result;
9686 char *kwnames[] = {
9687 NULL
9688 };
9689
9690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9691 {
9692 PyThreadState* __tstate = wxPyBeginAllowThreads();
9693 result = (wxLocale *)wxGetLocale();
9694
9695 wxPyEndAllowThreads(__tstate);
9696 if (PyErr_Occurred()) SWIG_fail;
9697 }
9698 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
9699 return resultobj;
9700 fail:
9701 return NULL;
9702 }
9703
9704
9705 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9706 PyObject *resultobj;
9707 wxString *arg1 = 0 ;
9708 wxString result;
9709 bool temp1 = False ;
9710 PyObject * obj0 = 0 ;
9711
9712 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9713 {
9714 arg1 = wxString_in_helper(obj0);
9715 if (arg1 == NULL) SWIG_fail;
9716 temp1 = True;
9717 }
9718 {
9719 PyThreadState* __tstate = wxPyBeginAllowThreads();
9720 result = wxGetTranslation((wxString const &)*arg1);
9721
9722 wxPyEndAllowThreads(__tstate);
9723 if (PyErr_Occurred()) SWIG_fail;
9724 }
9725 {
9726 #if wxUSE_UNICODE
9727 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9728 #else
9729 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9730 #endif
9731 }
9732 {
9733 if (temp1)
9734 delete arg1;
9735 }
9736 return resultobj;
9737 fail:
9738 {
9739 if (temp1)
9740 delete arg1;
9741 }
9742 return NULL;
9743 }
9744
9745
9746 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
9747 PyObject *resultobj;
9748 wxString *arg1 = 0 ;
9749 wxString *arg2 = 0 ;
9750 size_t arg3 ;
9751 wxString result;
9752 bool temp1 = False ;
9753 bool temp2 = False ;
9754 PyObject * obj0 = 0 ;
9755 PyObject * obj1 = 0 ;
9756 PyObject * obj2 = 0 ;
9757
9758 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
9759 {
9760 arg1 = wxString_in_helper(obj0);
9761 if (arg1 == NULL) SWIG_fail;
9762 temp1 = True;
9763 }
9764 {
9765 arg2 = wxString_in_helper(obj1);
9766 if (arg2 == NULL) SWIG_fail;
9767 temp2 = True;
9768 }
9769 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
9770 if (PyErr_Occurred()) SWIG_fail;
9771 {
9772 PyThreadState* __tstate = wxPyBeginAllowThreads();
9773 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
9774
9775 wxPyEndAllowThreads(__tstate);
9776 if (PyErr_Occurred()) SWIG_fail;
9777 }
9778 {
9779 #if wxUSE_UNICODE
9780 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9781 #else
9782 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9783 #endif
9784 }
9785 {
9786 if (temp1)
9787 delete arg1;
9788 }
9789 {
9790 if (temp2)
9791 delete arg2;
9792 }
9793 return resultobj;
9794 fail:
9795 {
9796 if (temp1)
9797 delete arg1;
9798 }
9799 {
9800 if (temp2)
9801 delete arg2;
9802 }
9803 return NULL;
9804 }
9805
9806
9807 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
9808 int argc;
9809 PyObject *argv[4];
9810 int ii;
9811
9812 argc = PyObject_Length(args);
9813 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
9814 argv[ii] = PyTuple_GetItem(args,ii);
9815 }
9816 if (argc == 1) {
9817 int _v;
9818 {
9819 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9820 }
9821 if (_v) {
9822 return _wrap_GetTranslation__SWIG_0(self,args);
9823 }
9824 }
9825 if (argc == 3) {
9826 int _v;
9827 {
9828 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9829 }
9830 if (_v) {
9831 {
9832 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
9833 }
9834 if (_v) {
9835 _v = SWIG_CheckUnsignedLong(argv[2]);
9836 if (_v) {
9837 return _wrap_GetTranslation__SWIG_1(self,args);
9838 }
9839 }
9840 }
9841 }
9842
9843 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
9844 return NULL;
9845 }
9846
9847
9848 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9849 PyObject *resultobj;
9850 wxEncodingConverter *result;
9851 char *kwnames[] = {
9852 NULL
9853 };
9854
9855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
9856 {
9857 PyThreadState* __tstate = wxPyBeginAllowThreads();
9858 result = (wxEncodingConverter *)new wxEncodingConverter();
9859
9860 wxPyEndAllowThreads(__tstate);
9861 if (PyErr_Occurred()) SWIG_fail;
9862 }
9863 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
9864 return resultobj;
9865 fail:
9866 return NULL;
9867 }
9868
9869
9870 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9871 PyObject *resultobj;
9872 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9873 PyObject * obj0 = 0 ;
9874 char *kwnames[] = {
9875 (char *) "self", NULL
9876 };
9877
9878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
9879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
9880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9881 {
9882 PyThreadState* __tstate = wxPyBeginAllowThreads();
9883 delete arg1;
9884
9885 wxPyEndAllowThreads(__tstate);
9886 if (PyErr_Occurred()) SWIG_fail;
9887 }
9888 Py_INCREF(Py_None); resultobj = Py_None;
9889 return resultobj;
9890 fail:
9891 return NULL;
9892 }
9893
9894
9895 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
9896 PyObject *resultobj;
9897 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9898 int arg2 ;
9899 int arg3 ;
9900 int arg4 = (int) wxCONVERT_STRICT ;
9901 bool result;
9902 PyObject * obj0 = 0 ;
9903 PyObject * obj1 = 0 ;
9904 PyObject * obj2 = 0 ;
9905 PyObject * obj3 = 0 ;
9906 char *kwnames[] = {
9907 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
9908 };
9909
9910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
9912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9913 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
9914 if (PyErr_Occurred()) SWIG_fail;
9915 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
9916 if (PyErr_Occurred()) SWIG_fail;
9917 if (obj3) {
9918 arg4 = (int) SWIG_AsInt(obj3);
9919 if (PyErr_Occurred()) SWIG_fail;
9920 }
9921 {
9922 PyThreadState* __tstate = wxPyBeginAllowThreads();
9923 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
9924
9925 wxPyEndAllowThreads(__tstate);
9926 if (PyErr_Occurred()) SWIG_fail;
9927 }
9928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9929 return resultobj;
9930 fail:
9931 return NULL;
9932 }
9933
9934
9935 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
9936 PyObject *resultobj;
9937 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9938 wxString *arg2 = 0 ;
9939 wxString result;
9940 bool temp2 = False ;
9941 PyObject * obj0 = 0 ;
9942 PyObject * obj1 = 0 ;
9943 char *kwnames[] = {
9944 (char *) "self",(char *) "input", NULL
9945 };
9946
9947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
9948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
9949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9950 {
9951 arg2 = wxString_in_helper(obj1);
9952 if (arg2 == NULL) SWIG_fail;
9953 temp2 = True;
9954 }
9955 {
9956 PyThreadState* __tstate = wxPyBeginAllowThreads();
9957 result = (arg1)->Convert((wxString const &)*arg2);
9958
9959 wxPyEndAllowThreads(__tstate);
9960 if (PyErr_Occurred()) SWIG_fail;
9961 }
9962 {
9963 #if wxUSE_UNICODE
9964 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9965 #else
9966 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9967 #endif
9968 }
9969 {
9970 if (temp2)
9971 delete arg2;
9972 }
9973 return resultobj;
9974 fail:
9975 {
9976 if (temp2)
9977 delete arg2;
9978 }
9979 return NULL;
9980 }
9981
9982
9983 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
9984 PyObject *resultobj;
9985 int arg1 ;
9986 int arg2 = (int) wxPLATFORM_CURRENT ;
9987 wxFontEncodingArray result;
9988 PyObject * obj0 = 0 ;
9989 PyObject * obj1 = 0 ;
9990 char *kwnames[] = {
9991 (char *) "enc",(char *) "platform", NULL
9992 };
9993
9994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
9995 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
9996 if (PyErr_Occurred()) SWIG_fail;
9997 if (obj1) {
9998 arg2 = (int) SWIG_AsInt(obj1);
9999 if (PyErr_Occurred()) SWIG_fail;
10000 }
10001 {
10002 PyThreadState* __tstate = wxPyBeginAllowThreads();
10003 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10004
10005 wxPyEndAllowThreads(__tstate);
10006 if (PyErr_Occurred()) SWIG_fail;
10007 }
10008 {
10009 resultobj = PyList_New(0);
10010 for (size_t i=0; i < (&result)->GetCount(); i++) {
10011 PyObject* number = PyInt_FromLong((&result)->Item(i));
10012 PyList_Append(resultobj, number);
10013 Py_DECREF(number);
10014 }
10015 }
10016 return resultobj;
10017 fail:
10018 return NULL;
10019 }
10020
10021
10022 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10023 PyObject *resultobj;
10024 int arg1 ;
10025 wxFontEncodingArray result;
10026 PyObject * obj0 = 0 ;
10027 char *kwnames[] = {
10028 (char *) "enc", NULL
10029 };
10030
10031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10032 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10033 if (PyErr_Occurred()) SWIG_fail;
10034 {
10035 PyThreadState* __tstate = wxPyBeginAllowThreads();
10036 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10037
10038 wxPyEndAllowThreads(__tstate);
10039 if (PyErr_Occurred()) SWIG_fail;
10040 }
10041 {
10042 resultobj = PyList_New(0);
10043 for (size_t i=0; i < (&result)->GetCount(); i++) {
10044 PyObject* number = PyInt_FromLong((&result)->Item(i));
10045 PyList_Append(resultobj, number);
10046 Py_DECREF(number);
10047 }
10048 }
10049 return resultobj;
10050 fail:
10051 return NULL;
10052 }
10053
10054
10055 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10056 PyObject *resultobj;
10057 int arg1 ;
10058 int arg2 ;
10059 bool result;
10060 PyObject * obj0 = 0 ;
10061 PyObject * obj1 = 0 ;
10062 char *kwnames[] = {
10063 (char *) "encIn",(char *) "encOut", NULL
10064 };
10065
10066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10067 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10068 if (PyErr_Occurred()) SWIG_fail;
10069 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10070 if (PyErr_Occurred()) SWIG_fail;
10071 {
10072 PyThreadState* __tstate = wxPyBeginAllowThreads();
10073 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10074
10075 wxPyEndAllowThreads(__tstate);
10076 if (PyErr_Occurred()) SWIG_fail;
10077 }
10078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10079 return resultobj;
10080 fail:
10081 return NULL;
10082 }
10083
10084
10085 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10086 PyObject *obj;
10087 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10088 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10089 Py_INCREF(obj);
10090 return Py_BuildValue((char *)"");
10091 }
10092 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10093 PyObject *resultobj;
10094 wxDC *arg1 = (wxDC *) 0 ;
10095 PyObject * obj0 = 0 ;
10096 char *kwnames[] = {
10097 (char *) "self", NULL
10098 };
10099
10100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10103 {
10104 PyThreadState* __tstate = wxPyBeginAllowThreads();
10105 delete arg1;
10106
10107 wxPyEndAllowThreads(__tstate);
10108 if (PyErr_Occurred()) SWIG_fail;
10109 }
10110 Py_INCREF(Py_None); resultobj = Py_None;
10111 return resultobj;
10112 fail:
10113 return NULL;
10114 }
10115
10116
10117 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10118 PyObject *resultobj;
10119 wxDC *arg1 = (wxDC *) 0 ;
10120 PyObject * obj0 = 0 ;
10121 char *kwnames[] = {
10122 (char *) "self", NULL
10123 };
10124
10125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10128 {
10129 PyThreadState* __tstate = wxPyBeginAllowThreads();
10130 (arg1)->BeginDrawing();
10131
10132 wxPyEndAllowThreads(__tstate);
10133 if (PyErr_Occurred()) SWIG_fail;
10134 }
10135 Py_INCREF(Py_None); resultobj = Py_None;
10136 return resultobj;
10137 fail:
10138 return NULL;
10139 }
10140
10141
10142 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10143 PyObject *resultobj;
10144 wxDC *arg1 = (wxDC *) 0 ;
10145 PyObject * obj0 = 0 ;
10146 char *kwnames[] = {
10147 (char *) "self", NULL
10148 };
10149
10150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10153 {
10154 PyThreadState* __tstate = wxPyBeginAllowThreads();
10155 (arg1)->EndDrawing();
10156
10157 wxPyEndAllowThreads(__tstate);
10158 if (PyErr_Occurred()) SWIG_fail;
10159 }
10160 Py_INCREF(Py_None); resultobj = Py_None;
10161 return resultobj;
10162 fail:
10163 return NULL;
10164 }
10165
10166
10167 static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10168 PyObject *resultobj;
10169 wxDC *arg1 = (wxDC *) 0 ;
10170 int arg2 ;
10171 int arg3 ;
10172 wxColour *arg4 = 0 ;
10173 int arg5 = (int) wxFLOOD_SURFACE ;
10174 bool result;
10175 wxColour temp4 ;
10176 PyObject * obj0 = 0 ;
10177 PyObject * obj1 = 0 ;
10178 PyObject * obj2 = 0 ;
10179 PyObject * obj3 = 0 ;
10180 PyObject * obj4 = 0 ;
10181 char *kwnames[] = {
10182 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10183 };
10184
10185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10188 arg2 = (int) SWIG_AsInt(obj1);
10189 if (PyErr_Occurred()) SWIG_fail;
10190 arg3 = (int) SWIG_AsInt(obj2);
10191 if (PyErr_Occurred()) SWIG_fail;
10192 {
10193 arg4 = &temp4;
10194 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10195 }
10196 if (obj4) {
10197 arg5 = (int) SWIG_AsInt(obj4);
10198 if (PyErr_Occurred()) SWIG_fail;
10199 }
10200 {
10201 PyThreadState* __tstate = wxPyBeginAllowThreads();
10202 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10203
10204 wxPyEndAllowThreads(__tstate);
10205 if (PyErr_Occurred()) SWIG_fail;
10206 }
10207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10208 return resultobj;
10209 fail:
10210 return NULL;
10211 }
10212
10213
10214 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
10215 PyObject *resultobj;
10216 wxDC *arg1 = (wxDC *) 0 ;
10217 wxPoint *arg2 = 0 ;
10218 wxColour *arg3 = 0 ;
10219 int arg4 = (int) wxFLOOD_SURFACE ;
10220 bool result;
10221 wxPoint temp2 ;
10222 wxColour temp3 ;
10223 PyObject * obj0 = 0 ;
10224 PyObject * obj1 = 0 ;
10225 PyObject * obj2 = 0 ;
10226 PyObject * obj3 = 0 ;
10227 char *kwnames[] = {
10228 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10229 };
10230
10231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10234 {
10235 arg2 = &temp2;
10236 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10237 }
10238 {
10239 arg3 = &temp3;
10240 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10241 }
10242 if (obj3) {
10243 arg4 = (int) SWIG_AsInt(obj3);
10244 if (PyErr_Occurred()) SWIG_fail;
10245 }
10246 {
10247 PyThreadState* __tstate = wxPyBeginAllowThreads();
10248 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10249
10250 wxPyEndAllowThreads(__tstate);
10251 if (PyErr_Occurred()) SWIG_fail;
10252 }
10253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10254 return resultobj;
10255 fail:
10256 return NULL;
10257 }
10258
10259
10260 static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10261 PyObject *resultobj;
10262 wxDC *arg1 = (wxDC *) 0 ;
10263 int arg2 ;
10264 int arg3 ;
10265 wxColour result;
10266 PyObject * obj0 = 0 ;
10267 PyObject * obj1 = 0 ;
10268 PyObject * obj2 = 0 ;
10269 char *kwnames[] = {
10270 (char *) "self",(char *) "x",(char *) "y", NULL
10271 };
10272
10273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10276 arg2 = (int) SWIG_AsInt(obj1);
10277 if (PyErr_Occurred()) SWIG_fail;
10278 arg3 = (int) SWIG_AsInt(obj2);
10279 if (PyErr_Occurred()) SWIG_fail;
10280 {
10281 PyThreadState* __tstate = wxPyBeginAllowThreads();
10282 result = wxDC_GetPixelXY(arg1,arg2,arg3);
10283
10284 wxPyEndAllowThreads(__tstate);
10285 if (PyErr_Occurred()) SWIG_fail;
10286 }
10287 {
10288 wxColour * resultptr;
10289 resultptr = new wxColour((wxColour &) result);
10290 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10291 }
10292 return resultobj;
10293 fail:
10294 return NULL;
10295 }
10296
10297
10298 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10299 PyObject *resultobj;
10300 wxDC *arg1 = (wxDC *) 0 ;
10301 wxPoint *arg2 = 0 ;
10302 wxColour result;
10303 wxPoint temp2 ;
10304 PyObject * obj0 = 0 ;
10305 PyObject * obj1 = 0 ;
10306 char *kwnames[] = {
10307 (char *) "self",(char *) "pt", NULL
10308 };
10309
10310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
10311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10313 {
10314 arg2 = &temp2;
10315 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10316 }
10317 {
10318 PyThreadState* __tstate = wxPyBeginAllowThreads();
10319 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
10320
10321 wxPyEndAllowThreads(__tstate);
10322 if (PyErr_Occurred()) SWIG_fail;
10323 }
10324 {
10325 wxColour * resultptr;
10326 resultptr = new wxColour((wxColour &) result);
10327 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10328 }
10329 return resultobj;
10330 fail:
10331 return NULL;
10332 }
10333
10334
10335 static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10336 PyObject *resultobj;
10337 wxDC *arg1 = (wxDC *) 0 ;
10338 int arg2 ;
10339 int arg3 ;
10340 int arg4 ;
10341 int arg5 ;
10342 PyObject * obj0 = 0 ;
10343 PyObject * obj1 = 0 ;
10344 PyObject * obj2 = 0 ;
10345 PyObject * obj3 = 0 ;
10346 PyObject * obj4 = 0 ;
10347 char *kwnames[] = {
10348 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10349 };
10350
10351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10354 arg2 = (int) SWIG_AsInt(obj1);
10355 if (PyErr_Occurred()) SWIG_fail;
10356 arg3 = (int) SWIG_AsInt(obj2);
10357 if (PyErr_Occurred()) SWIG_fail;
10358 arg4 = (int) SWIG_AsInt(obj3);
10359 if (PyErr_Occurred()) SWIG_fail;
10360 arg5 = (int) SWIG_AsInt(obj4);
10361 if (PyErr_Occurred()) SWIG_fail;
10362 {
10363 PyThreadState* __tstate = wxPyBeginAllowThreads();
10364 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10365
10366 wxPyEndAllowThreads(__tstate);
10367 if (PyErr_Occurred()) SWIG_fail;
10368 }
10369 Py_INCREF(Py_None); resultobj = Py_None;
10370 return resultobj;
10371 fail:
10372 return NULL;
10373 }
10374
10375
10376 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
10377 PyObject *resultobj;
10378 wxDC *arg1 = (wxDC *) 0 ;
10379 wxPoint *arg2 = 0 ;
10380 wxPoint *arg3 = 0 ;
10381 wxPoint temp2 ;
10382 wxPoint temp3 ;
10383 PyObject * obj0 = 0 ;
10384 PyObject * obj1 = 0 ;
10385 PyObject * obj2 = 0 ;
10386 char *kwnames[] = {
10387 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10388 };
10389
10390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
10391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10393 {
10394 arg2 = &temp2;
10395 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10396 }
10397 {
10398 arg3 = &temp3;
10399 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10400 }
10401 {
10402 PyThreadState* __tstate = wxPyBeginAllowThreads();
10403 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10404
10405 wxPyEndAllowThreads(__tstate);
10406 if (PyErr_Occurred()) SWIG_fail;
10407 }
10408 Py_INCREF(Py_None); resultobj = Py_None;
10409 return resultobj;
10410 fail:
10411 return NULL;
10412 }
10413
10414
10415 static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10416 PyObject *resultobj;
10417 wxDC *arg1 = (wxDC *) 0 ;
10418 int arg2 ;
10419 int arg3 ;
10420 PyObject * obj0 = 0 ;
10421 PyObject * obj1 = 0 ;
10422 PyObject * obj2 = 0 ;
10423 char *kwnames[] = {
10424 (char *) "self",(char *) "x",(char *) "y", NULL
10425 };
10426
10427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10430 arg2 = (int) SWIG_AsInt(obj1);
10431 if (PyErr_Occurred()) SWIG_fail;
10432 arg3 = (int) SWIG_AsInt(obj2);
10433 if (PyErr_Occurred()) SWIG_fail;
10434 {
10435 PyThreadState* __tstate = wxPyBeginAllowThreads();
10436 (arg1)->CrossHair(arg2,arg3);
10437
10438 wxPyEndAllowThreads(__tstate);
10439 if (PyErr_Occurred()) SWIG_fail;
10440 }
10441 Py_INCREF(Py_None); resultobj = Py_None;
10442 return resultobj;
10443 fail:
10444 return NULL;
10445 }
10446
10447
10448 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
10449 PyObject *resultobj;
10450 wxDC *arg1 = (wxDC *) 0 ;
10451 wxPoint *arg2 = 0 ;
10452 wxPoint temp2 ;
10453 PyObject * obj0 = 0 ;
10454 PyObject * obj1 = 0 ;
10455 char *kwnames[] = {
10456 (char *) "self",(char *) "pt", NULL
10457 };
10458
10459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
10460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10462 {
10463 arg2 = &temp2;
10464 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10465 }
10466 {
10467 PyThreadState* __tstate = wxPyBeginAllowThreads();
10468 (arg1)->CrossHair((wxPoint const &)*arg2);
10469
10470 wxPyEndAllowThreads(__tstate);
10471 if (PyErr_Occurred()) SWIG_fail;
10472 }
10473 Py_INCREF(Py_None); resultobj = Py_None;
10474 return resultobj;
10475 fail:
10476 return NULL;
10477 }
10478
10479
10480 static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10481 PyObject *resultobj;
10482 wxDC *arg1 = (wxDC *) 0 ;
10483 int arg2 ;
10484 int arg3 ;
10485 int arg4 ;
10486 int arg5 ;
10487 int arg6 ;
10488 int arg7 ;
10489 PyObject * obj0 = 0 ;
10490 PyObject * obj1 = 0 ;
10491 PyObject * obj2 = 0 ;
10492 PyObject * obj3 = 0 ;
10493 PyObject * obj4 = 0 ;
10494 PyObject * obj5 = 0 ;
10495 PyObject * obj6 = 0 ;
10496 char *kwnames[] = {
10497 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10498 };
10499
10500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10503 arg2 = (int) SWIG_AsInt(obj1);
10504 if (PyErr_Occurred()) SWIG_fail;
10505 arg3 = (int) SWIG_AsInt(obj2);
10506 if (PyErr_Occurred()) SWIG_fail;
10507 arg4 = (int) SWIG_AsInt(obj3);
10508 if (PyErr_Occurred()) SWIG_fail;
10509 arg5 = (int) SWIG_AsInt(obj4);
10510 if (PyErr_Occurred()) SWIG_fail;
10511 arg6 = (int) SWIG_AsInt(obj5);
10512 if (PyErr_Occurred()) SWIG_fail;
10513 arg7 = (int) SWIG_AsInt(obj6);
10514 if (PyErr_Occurred()) SWIG_fail;
10515 {
10516 PyThreadState* __tstate = wxPyBeginAllowThreads();
10517 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10518
10519 wxPyEndAllowThreads(__tstate);
10520 if (PyErr_Occurred()) SWIG_fail;
10521 }
10522 Py_INCREF(Py_None); resultobj = Py_None;
10523 return resultobj;
10524 fail:
10525 return NULL;
10526 }
10527
10528
10529 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10530 PyObject *resultobj;
10531 wxDC *arg1 = (wxDC *) 0 ;
10532 wxPoint *arg2 = 0 ;
10533 wxPoint *arg3 = 0 ;
10534 wxPoint *arg4 = 0 ;
10535 wxPoint temp2 ;
10536 wxPoint temp3 ;
10537 wxPoint temp4 ;
10538 PyObject * obj0 = 0 ;
10539 PyObject * obj1 = 0 ;
10540 PyObject * obj2 = 0 ;
10541 PyObject * obj3 = 0 ;
10542 char *kwnames[] = {
10543 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10544 };
10545
10546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10549 {
10550 arg2 = &temp2;
10551 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10552 }
10553 {
10554 arg3 = &temp3;
10555 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10556 }
10557 {
10558 arg4 = &temp4;
10559 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10560 }
10561 {
10562 PyThreadState* __tstate = wxPyBeginAllowThreads();
10563 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10564
10565 wxPyEndAllowThreads(__tstate);
10566 if (PyErr_Occurred()) SWIG_fail;
10567 }
10568 Py_INCREF(Py_None); resultobj = Py_None;
10569 return resultobj;
10570 fail:
10571 return NULL;
10572 }
10573
10574
10575 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10576 PyObject *resultobj;
10577 wxDC *arg1 = (wxDC *) 0 ;
10578 int arg2 ;
10579 int arg3 ;
10580 int arg4 ;
10581 int arg5 ;
10582 PyObject * obj0 = 0 ;
10583 PyObject * obj1 = 0 ;
10584 PyObject * obj2 = 0 ;
10585 PyObject * obj3 = 0 ;
10586 PyObject * obj4 = 0 ;
10587 char *kwnames[] = {
10588 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10589 };
10590
10591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10594 arg2 = (int) SWIG_AsInt(obj1);
10595 if (PyErr_Occurred()) SWIG_fail;
10596 arg3 = (int) SWIG_AsInt(obj2);
10597 if (PyErr_Occurred()) SWIG_fail;
10598 arg4 = (int) SWIG_AsInt(obj3);
10599 if (PyErr_Occurred()) SWIG_fail;
10600 arg5 = (int) SWIG_AsInt(obj4);
10601 if (PyErr_Occurred()) SWIG_fail;
10602 {
10603 PyThreadState* __tstate = wxPyBeginAllowThreads();
10604 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10605
10606 wxPyEndAllowThreads(__tstate);
10607 if (PyErr_Occurred()) SWIG_fail;
10608 }
10609 Py_INCREF(Py_None); resultobj = Py_None;
10610 return resultobj;
10611 fail:
10612 return NULL;
10613 }
10614
10615
10616 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
10617 PyObject *resultobj;
10618 wxDC *arg1 = (wxDC *) 0 ;
10619 wxRect *arg2 = 0 ;
10620 wxRect temp2 ;
10621 PyObject * obj0 = 0 ;
10622 PyObject * obj1 = 0 ;
10623 char *kwnames[] = {
10624 (char *) "self",(char *) "rect", NULL
10625 };
10626
10627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
10628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10630 {
10631 arg2 = &temp2;
10632 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10633 }
10634 {
10635 PyThreadState* __tstate = wxPyBeginAllowThreads();
10636 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10637
10638 wxPyEndAllowThreads(__tstate);
10639 if (PyErr_Occurred()) SWIG_fail;
10640 }
10641 Py_INCREF(Py_None); resultobj = Py_None;
10642 return resultobj;
10643 fail:
10644 return NULL;
10645 }
10646
10647
10648 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10649 PyObject *resultobj;
10650 wxDC *arg1 = (wxDC *) 0 ;
10651 int arg2 ;
10652 int arg3 ;
10653 int arg4 ;
10654 int arg5 ;
10655 double arg6 ;
10656 double arg7 ;
10657 PyObject * obj0 = 0 ;
10658 PyObject * obj1 = 0 ;
10659 PyObject * obj2 = 0 ;
10660 PyObject * obj3 = 0 ;
10661 PyObject * obj4 = 0 ;
10662 PyObject * obj5 = 0 ;
10663 PyObject * obj6 = 0 ;
10664 char *kwnames[] = {
10665 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
10666 };
10667
10668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10671 arg2 = (int) SWIG_AsInt(obj1);
10672 if (PyErr_Occurred()) SWIG_fail;
10673 arg3 = (int) SWIG_AsInt(obj2);
10674 if (PyErr_Occurred()) SWIG_fail;
10675 arg4 = (int) SWIG_AsInt(obj3);
10676 if (PyErr_Occurred()) SWIG_fail;
10677 arg5 = (int) SWIG_AsInt(obj4);
10678 if (PyErr_Occurred()) SWIG_fail;
10679 arg6 = (double) SWIG_AsDouble(obj5);
10680 if (PyErr_Occurred()) SWIG_fail;
10681 arg7 = (double) SWIG_AsDouble(obj6);
10682 if (PyErr_Occurred()) SWIG_fail;
10683 {
10684 PyThreadState* __tstate = wxPyBeginAllowThreads();
10685 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
10686
10687 wxPyEndAllowThreads(__tstate);
10688 if (PyErr_Occurred()) SWIG_fail;
10689 }
10690 Py_INCREF(Py_None); resultobj = Py_None;
10691 return resultobj;
10692 fail:
10693 return NULL;
10694 }
10695
10696
10697 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10698 PyObject *resultobj;
10699 wxDC *arg1 = (wxDC *) 0 ;
10700 wxPoint *arg2 = 0 ;
10701 wxSize *arg3 = 0 ;
10702 double arg4 ;
10703 double arg5 ;
10704 wxPoint temp2 ;
10705 wxSize temp3 ;
10706 PyObject * obj0 = 0 ;
10707 PyObject * obj1 = 0 ;
10708 PyObject * obj2 = 0 ;
10709 PyObject * obj3 = 0 ;
10710 PyObject * obj4 = 0 ;
10711 char *kwnames[] = {
10712 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
10713 };
10714
10715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10718 {
10719 arg2 = &temp2;
10720 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10721 }
10722 {
10723 arg3 = &temp3;
10724 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10725 }
10726 arg4 = (double) SWIG_AsDouble(obj3);
10727 if (PyErr_Occurred()) SWIG_fail;
10728 arg5 = (double) SWIG_AsDouble(obj4);
10729 if (PyErr_Occurred()) SWIG_fail;
10730 {
10731 PyThreadState* __tstate = wxPyBeginAllowThreads();
10732 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
10733
10734 wxPyEndAllowThreads(__tstate);
10735 if (PyErr_Occurred()) SWIG_fail;
10736 }
10737 Py_INCREF(Py_None); resultobj = Py_None;
10738 return resultobj;
10739 fail:
10740 return NULL;
10741 }
10742
10743
10744 static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10745 PyObject *resultobj;
10746 wxDC *arg1 = (wxDC *) 0 ;
10747 int arg2 ;
10748 int arg3 ;
10749 PyObject * obj0 = 0 ;
10750 PyObject * obj1 = 0 ;
10751 PyObject * obj2 = 0 ;
10752 char *kwnames[] = {
10753 (char *) "self",(char *) "x",(char *) "y", NULL
10754 };
10755
10756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10759 arg2 = (int) SWIG_AsInt(obj1);
10760 if (PyErr_Occurred()) SWIG_fail;
10761 arg3 = (int) SWIG_AsInt(obj2);
10762 if (PyErr_Occurred()) SWIG_fail;
10763 {
10764 PyThreadState* __tstate = wxPyBeginAllowThreads();
10765 (arg1)->DrawPoint(arg2,arg3);
10766
10767 wxPyEndAllowThreads(__tstate);
10768 if (PyErr_Occurred()) SWIG_fail;
10769 }
10770 Py_INCREF(Py_None); resultobj = Py_None;
10771 return resultobj;
10772 fail:
10773 return NULL;
10774 }
10775
10776
10777 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10778 PyObject *resultobj;
10779 wxDC *arg1 = (wxDC *) 0 ;
10780 wxPoint *arg2 = 0 ;
10781 wxPoint temp2 ;
10782 PyObject * obj0 = 0 ;
10783 PyObject * obj1 = 0 ;
10784 char *kwnames[] = {
10785 (char *) "self",(char *) "pt", NULL
10786 };
10787
10788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
10789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10791 {
10792 arg2 = &temp2;
10793 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10794 }
10795 {
10796 PyThreadState* __tstate = wxPyBeginAllowThreads();
10797 (arg1)->DrawPoint((wxPoint const &)*arg2);
10798
10799 wxPyEndAllowThreads(__tstate);
10800 if (PyErr_Occurred()) SWIG_fail;
10801 }
10802 Py_INCREF(Py_None); resultobj = Py_None;
10803 return resultobj;
10804 fail:
10805 return NULL;
10806 }
10807
10808
10809 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10810 PyObject *resultobj;
10811 wxDC *arg1 = (wxDC *) 0 ;
10812 int arg2 ;
10813 int arg3 ;
10814 int arg4 ;
10815 int arg5 ;
10816 PyObject * obj0 = 0 ;
10817 PyObject * obj1 = 0 ;
10818 PyObject * obj2 = 0 ;
10819 PyObject * obj3 = 0 ;
10820 PyObject * obj4 = 0 ;
10821 char *kwnames[] = {
10822 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10823 };
10824
10825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10828 arg2 = (int) SWIG_AsInt(obj1);
10829 if (PyErr_Occurred()) SWIG_fail;
10830 arg3 = (int) SWIG_AsInt(obj2);
10831 if (PyErr_Occurred()) SWIG_fail;
10832 arg4 = (int) SWIG_AsInt(obj3);
10833 if (PyErr_Occurred()) SWIG_fail;
10834 arg5 = (int) SWIG_AsInt(obj4);
10835 if (PyErr_Occurred()) SWIG_fail;
10836 {
10837 PyThreadState* __tstate = wxPyBeginAllowThreads();
10838 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
10839
10840 wxPyEndAllowThreads(__tstate);
10841 if (PyErr_Occurred()) SWIG_fail;
10842 }
10843 Py_INCREF(Py_None); resultobj = Py_None;
10844 return resultobj;
10845 fail:
10846 return NULL;
10847 }
10848
10849
10850 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
10851 PyObject *resultobj;
10852 wxDC *arg1 = (wxDC *) 0 ;
10853 wxPoint *arg2 = 0 ;
10854 wxSize *arg3 = 0 ;
10855 wxPoint temp2 ;
10856 wxSize temp3 ;
10857 PyObject * obj0 = 0 ;
10858 PyObject * obj1 = 0 ;
10859 PyObject * obj2 = 0 ;
10860 char *kwnames[] = {
10861 (char *) "self",(char *) "pt",(char *) "sz", NULL
10862 };
10863
10864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
10865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10867 {
10868 arg2 = &temp2;
10869 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10870 }
10871 {
10872 arg3 = &temp3;
10873 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10874 }
10875 {
10876 PyThreadState* __tstate = wxPyBeginAllowThreads();
10877 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
10878
10879 wxPyEndAllowThreads(__tstate);
10880 if (PyErr_Occurred()) SWIG_fail;
10881 }
10882 Py_INCREF(Py_None); resultobj = Py_None;
10883 return resultobj;
10884 fail:
10885 return NULL;
10886 }
10887
10888
10889 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10890 PyObject *resultobj;
10891 wxDC *arg1 = (wxDC *) 0 ;
10892 wxRect *arg2 = 0 ;
10893 wxRect temp2 ;
10894 PyObject * obj0 = 0 ;
10895 PyObject * obj1 = 0 ;
10896 char *kwnames[] = {
10897 (char *) "self",(char *) "rect", NULL
10898 };
10899
10900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
10901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10903 {
10904 arg2 = &temp2;
10905 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10906 }
10907 {
10908 PyThreadState* __tstate = wxPyBeginAllowThreads();
10909 (arg1)->DrawRectangle((wxRect const &)*arg2);
10910
10911 wxPyEndAllowThreads(__tstate);
10912 if (PyErr_Occurred()) SWIG_fail;
10913 }
10914 Py_INCREF(Py_None); resultobj = Py_None;
10915 return resultobj;
10916 fail:
10917 return NULL;
10918 }
10919
10920
10921 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10922 PyObject *resultobj;
10923 wxDC *arg1 = (wxDC *) 0 ;
10924 int arg2 ;
10925 int arg3 ;
10926 int arg4 ;
10927 int arg5 ;
10928 double arg6 ;
10929 PyObject * obj0 = 0 ;
10930 PyObject * obj1 = 0 ;
10931 PyObject * obj2 = 0 ;
10932 PyObject * obj3 = 0 ;
10933 PyObject * obj4 = 0 ;
10934 PyObject * obj5 = 0 ;
10935 char *kwnames[] = {
10936 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
10937 };
10938
10939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10942 arg2 = (int) SWIG_AsInt(obj1);
10943 if (PyErr_Occurred()) SWIG_fail;
10944 arg3 = (int) SWIG_AsInt(obj2);
10945 if (PyErr_Occurred()) SWIG_fail;
10946 arg4 = (int) SWIG_AsInt(obj3);
10947 if (PyErr_Occurred()) SWIG_fail;
10948 arg5 = (int) SWIG_AsInt(obj4);
10949 if (PyErr_Occurred()) SWIG_fail;
10950 arg6 = (double) SWIG_AsDouble(obj5);
10951 if (PyErr_Occurred()) SWIG_fail;
10952 {
10953 PyThreadState* __tstate = wxPyBeginAllowThreads();
10954 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
10955
10956 wxPyEndAllowThreads(__tstate);
10957 if (PyErr_Occurred()) SWIG_fail;
10958 }
10959 Py_INCREF(Py_None); resultobj = Py_None;
10960 return resultobj;
10961 fail:
10962 return NULL;
10963 }
10964
10965
10966 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
10967 PyObject *resultobj;
10968 wxDC *arg1 = (wxDC *) 0 ;
10969 wxPoint *arg2 = 0 ;
10970 wxSize *arg3 = 0 ;
10971 double arg4 ;
10972 wxPoint temp2 ;
10973 wxSize 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 *) "sz",(char *) "radius", NULL
10980 };
10981
10982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",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 ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10992 }
10993 arg4 = (double) SWIG_AsDouble(obj3);
10994 if (PyErr_Occurred()) SWIG_fail;
10995 {
10996 PyThreadState* __tstate = wxPyBeginAllowThreads();
10997 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
10998
10999 wxPyEndAllowThreads(__tstate);
11000 if (PyErr_Occurred()) SWIG_fail;
11001 }
11002 Py_INCREF(Py_None); resultobj = Py_None;
11003 return resultobj;
11004 fail:
11005 return NULL;
11006 }
11007
11008
11009 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11010 PyObject *resultobj;
11011 wxDC *arg1 = (wxDC *) 0 ;
11012 wxRect *arg2 = 0 ;
11013 double arg3 ;
11014 wxRect temp2 ;
11015 PyObject * obj0 = 0 ;
11016 PyObject * obj1 = 0 ;
11017 PyObject * obj2 = 0 ;
11018 char *kwnames[] = {
11019 (char *) "self",(char *) "r",(char *) "radius", NULL
11020 };
11021
11022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11025 {
11026 arg2 = &temp2;
11027 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11028 }
11029 arg3 = (double) SWIG_AsDouble(obj2);
11030 if (PyErr_Occurred()) SWIG_fail;
11031 {
11032 PyThreadState* __tstate = wxPyBeginAllowThreads();
11033 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11034
11035 wxPyEndAllowThreads(__tstate);
11036 if (PyErr_Occurred()) SWIG_fail;
11037 }
11038 Py_INCREF(Py_None); resultobj = Py_None;
11039 return resultobj;
11040 fail:
11041 return NULL;
11042 }
11043
11044
11045 static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11046 PyObject *resultobj;
11047 wxDC *arg1 = (wxDC *) 0 ;
11048 int arg2 ;
11049 int arg3 ;
11050 int arg4 ;
11051 PyObject * obj0 = 0 ;
11052 PyObject * obj1 = 0 ;
11053 PyObject * obj2 = 0 ;
11054 PyObject * obj3 = 0 ;
11055 char *kwnames[] = {
11056 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11057 };
11058
11059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11062 arg2 = (int) SWIG_AsInt(obj1);
11063 if (PyErr_Occurred()) SWIG_fail;
11064 arg3 = (int) SWIG_AsInt(obj2);
11065 if (PyErr_Occurred()) SWIG_fail;
11066 arg4 = (int) SWIG_AsInt(obj3);
11067 if (PyErr_Occurred()) SWIG_fail;
11068 {
11069 PyThreadState* __tstate = wxPyBeginAllowThreads();
11070 (arg1)->DrawCircle(arg2,arg3,arg4);
11071
11072 wxPyEndAllowThreads(__tstate);
11073 if (PyErr_Occurred()) SWIG_fail;
11074 }
11075 Py_INCREF(Py_None); resultobj = Py_None;
11076 return resultobj;
11077 fail:
11078 return NULL;
11079 }
11080
11081
11082 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11083 PyObject *resultobj;
11084 wxDC *arg1 = (wxDC *) 0 ;
11085 wxPoint *arg2 = 0 ;
11086 int arg3 ;
11087 wxPoint temp2 ;
11088 PyObject * obj0 = 0 ;
11089 PyObject * obj1 = 0 ;
11090 PyObject * obj2 = 0 ;
11091 char *kwnames[] = {
11092 (char *) "self",(char *) "pt",(char *) "radius", NULL
11093 };
11094
11095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11098 {
11099 arg2 = &temp2;
11100 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11101 }
11102 arg3 = (int) SWIG_AsInt(obj2);
11103 if (PyErr_Occurred()) SWIG_fail;
11104 {
11105 PyThreadState* __tstate = wxPyBeginAllowThreads();
11106 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11107
11108 wxPyEndAllowThreads(__tstate);
11109 if (PyErr_Occurred()) SWIG_fail;
11110 }
11111 Py_INCREF(Py_None); resultobj = Py_None;
11112 return resultobj;
11113 fail:
11114 return NULL;
11115 }
11116
11117
11118 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11119 PyObject *resultobj;
11120 wxDC *arg1 = (wxDC *) 0 ;
11121 int arg2 ;
11122 int arg3 ;
11123 int arg4 ;
11124 int arg5 ;
11125 PyObject * obj0 = 0 ;
11126 PyObject * obj1 = 0 ;
11127 PyObject * obj2 = 0 ;
11128 PyObject * obj3 = 0 ;
11129 PyObject * obj4 = 0 ;
11130 char *kwnames[] = {
11131 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11132 };
11133
11134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11137 arg2 = (int) SWIG_AsInt(obj1);
11138 if (PyErr_Occurred()) SWIG_fail;
11139 arg3 = (int) SWIG_AsInt(obj2);
11140 if (PyErr_Occurred()) SWIG_fail;
11141 arg4 = (int) SWIG_AsInt(obj3);
11142 if (PyErr_Occurred()) SWIG_fail;
11143 arg5 = (int) SWIG_AsInt(obj4);
11144 if (PyErr_Occurred()) SWIG_fail;
11145 {
11146 PyThreadState* __tstate = wxPyBeginAllowThreads();
11147 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11148
11149 wxPyEndAllowThreads(__tstate);
11150 if (PyErr_Occurred()) SWIG_fail;
11151 }
11152 Py_INCREF(Py_None); resultobj = Py_None;
11153 return resultobj;
11154 fail:
11155 return NULL;
11156 }
11157
11158
11159 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11160 PyObject *resultobj;
11161 wxDC *arg1 = (wxDC *) 0 ;
11162 wxPoint *arg2 = 0 ;
11163 wxSize *arg3 = 0 ;
11164 wxPoint temp2 ;
11165 wxSize temp3 ;
11166 PyObject * obj0 = 0 ;
11167 PyObject * obj1 = 0 ;
11168 PyObject * obj2 = 0 ;
11169 char *kwnames[] = {
11170 (char *) "self",(char *) "pt",(char *) "sz", NULL
11171 };
11172
11173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
11174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11176 {
11177 arg2 = &temp2;
11178 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11179 }
11180 {
11181 arg3 = &temp3;
11182 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11183 }
11184 {
11185 PyThreadState* __tstate = wxPyBeginAllowThreads();
11186 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11187
11188 wxPyEndAllowThreads(__tstate);
11189 if (PyErr_Occurred()) SWIG_fail;
11190 }
11191 Py_INCREF(Py_None); resultobj = Py_None;
11192 return resultobj;
11193 fail:
11194 return NULL;
11195 }
11196
11197
11198 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11199 PyObject *resultobj;
11200 wxDC *arg1 = (wxDC *) 0 ;
11201 wxRect *arg2 = 0 ;
11202 wxRect temp2 ;
11203 PyObject * obj0 = 0 ;
11204 PyObject * obj1 = 0 ;
11205 char *kwnames[] = {
11206 (char *) "self",(char *) "rect", NULL
11207 };
11208
11209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11212 {
11213 arg2 = &temp2;
11214 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11215 }
11216 {
11217 PyThreadState* __tstate = wxPyBeginAllowThreads();
11218 (arg1)->DrawEllipse((wxRect const &)*arg2);
11219
11220 wxPyEndAllowThreads(__tstate);
11221 if (PyErr_Occurred()) SWIG_fail;
11222 }
11223 Py_INCREF(Py_None); resultobj = Py_None;
11224 return resultobj;
11225 fail:
11226 return NULL;
11227 }
11228
11229
11230 static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11231 PyObject *resultobj;
11232 wxDC *arg1 = (wxDC *) 0 ;
11233 wxIcon *arg2 = 0 ;
11234 int arg3 ;
11235 int arg4 ;
11236 PyObject * obj0 = 0 ;
11237 PyObject * obj1 = 0 ;
11238 PyObject * obj2 = 0 ;
11239 PyObject * obj3 = 0 ;
11240 char *kwnames[] = {
11241 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11242 };
11243
11244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11247 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11248 SWIG_POINTER_EXCEPTION | 0)) == -1)
11249 SWIG_fail;
11250 if (arg2 == NULL) {
11251 PyErr_SetString(PyExc_TypeError,"null reference");
11252 SWIG_fail;
11253 }
11254 arg3 = (int) SWIG_AsInt(obj2);
11255 if (PyErr_Occurred()) SWIG_fail;
11256 arg4 = (int) SWIG_AsInt(obj3);
11257 if (PyErr_Occurred()) SWIG_fail;
11258 {
11259 PyThreadState* __tstate = wxPyBeginAllowThreads();
11260 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11261
11262 wxPyEndAllowThreads(__tstate);
11263 if (PyErr_Occurred()) SWIG_fail;
11264 }
11265 Py_INCREF(Py_None); resultobj = Py_None;
11266 return resultobj;
11267 fail:
11268 return NULL;
11269 }
11270
11271
11272 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11273 PyObject *resultobj;
11274 wxDC *arg1 = (wxDC *) 0 ;
11275 wxIcon *arg2 = 0 ;
11276 wxPoint *arg3 = 0 ;
11277 wxPoint temp3 ;
11278 PyObject * obj0 = 0 ;
11279 PyObject * obj1 = 0 ;
11280 PyObject * obj2 = 0 ;
11281 char *kwnames[] = {
11282 (char *) "self",(char *) "icon",(char *) "pt", NULL
11283 };
11284
11285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
11286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11288 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11289 SWIG_POINTER_EXCEPTION | 0)) == -1)
11290 SWIG_fail;
11291 if (arg2 == NULL) {
11292 PyErr_SetString(PyExc_TypeError,"null reference");
11293 SWIG_fail;
11294 }
11295 {
11296 arg3 = &temp3;
11297 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11298 }
11299 {
11300 PyThreadState* __tstate = wxPyBeginAllowThreads();
11301 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11302
11303 wxPyEndAllowThreads(__tstate);
11304 if (PyErr_Occurred()) SWIG_fail;
11305 }
11306 Py_INCREF(Py_None); resultobj = Py_None;
11307 return resultobj;
11308 fail:
11309 return NULL;
11310 }
11311
11312
11313 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11314 PyObject *resultobj;
11315 wxDC *arg1 = (wxDC *) 0 ;
11316 wxBitmap *arg2 = 0 ;
11317 int arg3 ;
11318 int arg4 ;
11319 bool arg5 = (bool) False ;
11320 PyObject * obj0 = 0 ;
11321 PyObject * obj1 = 0 ;
11322 PyObject * obj2 = 0 ;
11323 PyObject * obj3 = 0 ;
11324 PyObject * obj4 = 0 ;
11325 char *kwnames[] = {
11326 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11327 };
11328
11329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11332 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11333 SWIG_POINTER_EXCEPTION | 0)) == -1)
11334 SWIG_fail;
11335 if (arg2 == NULL) {
11336 PyErr_SetString(PyExc_TypeError,"null reference");
11337 SWIG_fail;
11338 }
11339 arg3 = (int) SWIG_AsInt(obj2);
11340 if (PyErr_Occurred()) SWIG_fail;
11341 arg4 = (int) SWIG_AsInt(obj3);
11342 if (PyErr_Occurred()) SWIG_fail;
11343 if (obj4) {
11344 arg5 = (bool) SWIG_AsBool(obj4);
11345 if (PyErr_Occurred()) SWIG_fail;
11346 }
11347 {
11348 PyThreadState* __tstate = wxPyBeginAllowThreads();
11349 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11350
11351 wxPyEndAllowThreads(__tstate);
11352 if (PyErr_Occurred()) SWIG_fail;
11353 }
11354 Py_INCREF(Py_None); resultobj = Py_None;
11355 return resultobj;
11356 fail:
11357 return NULL;
11358 }
11359
11360
11361 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11362 PyObject *resultobj;
11363 wxDC *arg1 = (wxDC *) 0 ;
11364 wxBitmap *arg2 = 0 ;
11365 wxPoint *arg3 = 0 ;
11366 bool arg4 = (bool) False ;
11367 wxPoint temp3 ;
11368 PyObject * obj0 = 0 ;
11369 PyObject * obj1 = 0 ;
11370 PyObject * obj2 = 0 ;
11371 PyObject * obj3 = 0 ;
11372 char *kwnames[] = {
11373 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11374 };
11375
11376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11379 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11380 SWIG_POINTER_EXCEPTION | 0)) == -1)
11381 SWIG_fail;
11382 if (arg2 == NULL) {
11383 PyErr_SetString(PyExc_TypeError,"null reference");
11384 SWIG_fail;
11385 }
11386 {
11387 arg3 = &temp3;
11388 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11389 }
11390 if (obj3) {
11391 arg4 = (bool) SWIG_AsBool(obj3);
11392 if (PyErr_Occurred()) SWIG_fail;
11393 }
11394 {
11395 PyThreadState* __tstate = wxPyBeginAllowThreads();
11396 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11397
11398 wxPyEndAllowThreads(__tstate);
11399 if (PyErr_Occurred()) SWIG_fail;
11400 }
11401 Py_INCREF(Py_None); resultobj = Py_None;
11402 return resultobj;
11403 fail:
11404 return NULL;
11405 }
11406
11407
11408 static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11409 PyObject *resultobj;
11410 wxDC *arg1 = (wxDC *) 0 ;
11411 wxString *arg2 = 0 ;
11412 int arg3 ;
11413 int arg4 ;
11414 bool temp2 = False ;
11415 PyObject * obj0 = 0 ;
11416 PyObject * obj1 = 0 ;
11417 PyObject * obj2 = 0 ;
11418 PyObject * obj3 = 0 ;
11419 char *kwnames[] = {
11420 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11421 };
11422
11423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11426 {
11427 arg2 = wxString_in_helper(obj1);
11428 if (arg2 == NULL) SWIG_fail;
11429 temp2 = True;
11430 }
11431 arg3 = (int) SWIG_AsInt(obj2);
11432 if (PyErr_Occurred()) SWIG_fail;
11433 arg4 = (int) SWIG_AsInt(obj3);
11434 if (PyErr_Occurred()) SWIG_fail;
11435 {
11436 PyThreadState* __tstate = wxPyBeginAllowThreads();
11437 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11438
11439 wxPyEndAllowThreads(__tstate);
11440 if (PyErr_Occurred()) SWIG_fail;
11441 }
11442 Py_INCREF(Py_None); resultobj = Py_None;
11443 {
11444 if (temp2)
11445 delete arg2;
11446 }
11447 return resultobj;
11448 fail:
11449 {
11450 if (temp2)
11451 delete arg2;
11452 }
11453 return NULL;
11454 }
11455
11456
11457 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
11458 PyObject *resultobj;
11459 wxDC *arg1 = (wxDC *) 0 ;
11460 wxString *arg2 = 0 ;
11461 wxPoint *arg3 = 0 ;
11462 bool temp2 = False ;
11463 wxPoint temp3 ;
11464 PyObject * obj0 = 0 ;
11465 PyObject * obj1 = 0 ;
11466 PyObject * obj2 = 0 ;
11467 char *kwnames[] = {
11468 (char *) "self",(char *) "text",(char *) "pt", NULL
11469 };
11470
11471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
11472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11474 {
11475 arg2 = wxString_in_helper(obj1);
11476 if (arg2 == NULL) SWIG_fail;
11477 temp2 = True;
11478 }
11479 {
11480 arg3 = &temp3;
11481 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11482 }
11483 {
11484 PyThreadState* __tstate = wxPyBeginAllowThreads();
11485 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11486
11487 wxPyEndAllowThreads(__tstate);
11488 if (PyErr_Occurred()) SWIG_fail;
11489 }
11490 Py_INCREF(Py_None); resultobj = Py_None;
11491 {
11492 if (temp2)
11493 delete arg2;
11494 }
11495 return resultobj;
11496 fail:
11497 {
11498 if (temp2)
11499 delete arg2;
11500 }
11501 return NULL;
11502 }
11503
11504
11505 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11506 PyObject *resultobj;
11507 wxDC *arg1 = (wxDC *) 0 ;
11508 wxString *arg2 = 0 ;
11509 int arg3 ;
11510 int arg4 ;
11511 double arg5 ;
11512 bool temp2 = False ;
11513 PyObject * obj0 = 0 ;
11514 PyObject * obj1 = 0 ;
11515 PyObject * obj2 = 0 ;
11516 PyObject * obj3 = 0 ;
11517 PyObject * obj4 = 0 ;
11518 char *kwnames[] = {
11519 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11520 };
11521
11522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11525 {
11526 arg2 = wxString_in_helper(obj1);
11527 if (arg2 == NULL) SWIG_fail;
11528 temp2 = True;
11529 }
11530 arg3 = (int) SWIG_AsInt(obj2);
11531 if (PyErr_Occurred()) SWIG_fail;
11532 arg4 = (int) SWIG_AsInt(obj3);
11533 if (PyErr_Occurred()) SWIG_fail;
11534 arg5 = (double) SWIG_AsDouble(obj4);
11535 if (PyErr_Occurred()) SWIG_fail;
11536 {
11537 PyThreadState* __tstate = wxPyBeginAllowThreads();
11538 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11539
11540 wxPyEndAllowThreads(__tstate);
11541 if (PyErr_Occurred()) SWIG_fail;
11542 }
11543 Py_INCREF(Py_None); resultobj = Py_None;
11544 {
11545 if (temp2)
11546 delete arg2;
11547 }
11548 return resultobj;
11549 fail:
11550 {
11551 if (temp2)
11552 delete arg2;
11553 }
11554 return NULL;
11555 }
11556
11557
11558 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
11559 PyObject *resultobj;
11560 wxDC *arg1 = (wxDC *) 0 ;
11561 wxString *arg2 = 0 ;
11562 wxPoint *arg3 = 0 ;
11563 double arg4 ;
11564 bool temp2 = False ;
11565 wxPoint temp3 ;
11566 PyObject * obj0 = 0 ;
11567 PyObject * obj1 = 0 ;
11568 PyObject * obj2 = 0 ;
11569 PyObject * obj3 = 0 ;
11570 char *kwnames[] = {
11571 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11572 };
11573
11574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11577 {
11578 arg2 = wxString_in_helper(obj1);
11579 if (arg2 == NULL) SWIG_fail;
11580 temp2 = True;
11581 }
11582 {
11583 arg3 = &temp3;
11584 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11585 }
11586 arg4 = (double) SWIG_AsDouble(obj3);
11587 if (PyErr_Occurred()) SWIG_fail;
11588 {
11589 PyThreadState* __tstate = wxPyBeginAllowThreads();
11590 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11591
11592 wxPyEndAllowThreads(__tstate);
11593 if (PyErr_Occurred()) SWIG_fail;
11594 }
11595 Py_INCREF(Py_None); resultobj = Py_None;
11596 {
11597 if (temp2)
11598 delete arg2;
11599 }
11600 return resultobj;
11601 fail:
11602 {
11603 if (temp2)
11604 delete arg2;
11605 }
11606 return NULL;
11607 }
11608
11609
11610 static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11611 PyObject *resultobj;
11612 wxDC *arg1 = (wxDC *) 0 ;
11613 int arg2 ;
11614 int arg3 ;
11615 int arg4 ;
11616 int arg5 ;
11617 wxDC *arg6 = (wxDC *) 0 ;
11618 int arg7 ;
11619 int arg8 ;
11620 int arg9 = (int) wxCOPY ;
11621 bool arg10 = (bool) False ;
11622 int arg11 = (int) -1 ;
11623 int arg12 = (int) -1 ;
11624 bool result;
11625 PyObject * obj0 = 0 ;
11626 PyObject * obj1 = 0 ;
11627 PyObject * obj2 = 0 ;
11628 PyObject * obj3 = 0 ;
11629 PyObject * obj4 = 0 ;
11630 PyObject * obj5 = 0 ;
11631 PyObject * obj6 = 0 ;
11632 PyObject * obj7 = 0 ;
11633 PyObject * obj8 = 0 ;
11634 PyObject * obj9 = 0 ;
11635 PyObject * obj10 = 0 ;
11636 PyObject * obj11 = 0 ;
11637 char *kwnames[] = {
11638 (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
11639 };
11640
11641 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;
11642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11644 arg2 = (int) SWIG_AsInt(obj1);
11645 if (PyErr_Occurred()) SWIG_fail;
11646 arg3 = (int) SWIG_AsInt(obj2);
11647 if (PyErr_Occurred()) SWIG_fail;
11648 arg4 = (int) SWIG_AsInt(obj3);
11649 if (PyErr_Occurred()) SWIG_fail;
11650 arg5 = (int) SWIG_AsInt(obj4);
11651 if (PyErr_Occurred()) SWIG_fail;
11652 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
11653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11654 arg7 = (int) SWIG_AsInt(obj6);
11655 if (PyErr_Occurred()) SWIG_fail;
11656 arg8 = (int) SWIG_AsInt(obj7);
11657 if (PyErr_Occurred()) SWIG_fail;
11658 if (obj8) {
11659 arg9 = (int) SWIG_AsInt(obj8);
11660 if (PyErr_Occurred()) SWIG_fail;
11661 }
11662 if (obj9) {
11663 arg10 = (bool) SWIG_AsBool(obj9);
11664 if (PyErr_Occurred()) SWIG_fail;
11665 }
11666 if (obj10) {
11667 arg11 = (int) SWIG_AsInt(obj10);
11668 if (PyErr_Occurred()) SWIG_fail;
11669 }
11670 if (obj11) {
11671 arg12 = (int) SWIG_AsInt(obj11);
11672 if (PyErr_Occurred()) SWIG_fail;
11673 }
11674 {
11675 PyThreadState* __tstate = wxPyBeginAllowThreads();
11676 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
11677
11678 wxPyEndAllowThreads(__tstate);
11679 if (PyErr_Occurred()) SWIG_fail;
11680 }
11681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11682 return resultobj;
11683 fail:
11684 return NULL;
11685 }
11686
11687
11688 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
11689 PyObject *resultobj;
11690 wxDC *arg1 = (wxDC *) 0 ;
11691 wxPoint *arg2 = 0 ;
11692 wxSize *arg3 = 0 ;
11693 wxDC *arg4 = (wxDC *) 0 ;
11694 wxPoint *arg5 = 0 ;
11695 int arg6 = (int) wxCOPY ;
11696 bool arg7 = (bool) False ;
11697 wxPoint const &arg8_defvalue = wxDefaultPosition ;
11698 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
11699 bool result;
11700 wxPoint temp2 ;
11701 wxSize temp3 ;
11702 wxPoint temp5 ;
11703 wxPoint temp8 ;
11704 PyObject * obj0 = 0 ;
11705 PyObject * obj1 = 0 ;
11706 PyObject * obj2 = 0 ;
11707 PyObject * obj3 = 0 ;
11708 PyObject * obj4 = 0 ;
11709 PyObject * obj5 = 0 ;
11710 PyObject * obj6 = 0 ;
11711 PyObject * obj7 = 0 ;
11712 char *kwnames[] = {
11713 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
11714 };
11715
11716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
11717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11719 {
11720 arg2 = &temp2;
11721 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11722 }
11723 {
11724 arg3 = &temp3;
11725 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11726 }
11727 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
11728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11729 {
11730 arg5 = &temp5;
11731 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11732 }
11733 if (obj5) {
11734 arg6 = (int) SWIG_AsInt(obj5);
11735 if (PyErr_Occurred()) SWIG_fail;
11736 }
11737 if (obj6) {
11738 arg7 = (bool) SWIG_AsBool(obj6);
11739 if (PyErr_Occurred()) SWIG_fail;
11740 }
11741 if (obj7) {
11742 {
11743 arg8 = &temp8;
11744 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
11745 }
11746 }
11747 {
11748 PyThreadState* __tstate = wxPyBeginAllowThreads();
11749 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
11750
11751 wxPyEndAllowThreads(__tstate);
11752 if (PyErr_Occurred()) SWIG_fail;
11753 }
11754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11755 return resultobj;
11756 fail:
11757 return NULL;
11758 }
11759
11760
11761 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
11762 PyObject *resultobj;
11763 wxDC *arg1 = (wxDC *) 0 ;
11764 int arg2 ;
11765 wxPoint *arg3 = (wxPoint *) 0 ;
11766 int arg4 = (int) 0 ;
11767 int arg5 = (int) 0 ;
11768 PyObject * obj0 = 0 ;
11769 PyObject * obj1 = 0 ;
11770 PyObject * obj2 = 0 ;
11771 PyObject * obj3 = 0 ;
11772 char *kwnames[] = {
11773 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
11774 };
11775
11776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11779 {
11780 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11781 if (arg3 == NULL) SWIG_fail;
11782 }
11783 if (obj2) {
11784 arg4 = (int) SWIG_AsInt(obj2);
11785 if (PyErr_Occurred()) SWIG_fail;
11786 }
11787 if (obj3) {
11788 arg5 = (int) SWIG_AsInt(obj3);
11789 if (PyErr_Occurred()) SWIG_fail;
11790 }
11791 {
11792 PyThreadState* __tstate = wxPyBeginAllowThreads();
11793 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
11794
11795 wxPyEndAllowThreads(__tstate);
11796 if (PyErr_Occurred()) SWIG_fail;
11797 }
11798 Py_INCREF(Py_None); resultobj = Py_None;
11799 {
11800 if (arg3) delete [] arg3;
11801 }
11802 return resultobj;
11803 fail:
11804 {
11805 if (arg3) delete [] arg3;
11806 }
11807 return NULL;
11808 }
11809
11810
11811 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
11812 PyObject *resultobj;
11813 wxDC *arg1 = (wxDC *) 0 ;
11814 int arg2 ;
11815 wxPoint *arg3 = (wxPoint *) 0 ;
11816 int arg4 = (int) 0 ;
11817 int arg5 = (int) 0 ;
11818 int arg6 = (int) wxODDEVEN_RULE ;
11819 PyObject * obj0 = 0 ;
11820 PyObject * obj1 = 0 ;
11821 PyObject * obj2 = 0 ;
11822 PyObject * obj3 = 0 ;
11823 PyObject * obj4 = 0 ;
11824 char *kwnames[] = {
11825 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
11826 };
11827
11828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11831 {
11832 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11833 if (arg3 == NULL) SWIG_fail;
11834 }
11835 if (obj2) {
11836 arg4 = (int) SWIG_AsInt(obj2);
11837 if (PyErr_Occurred()) SWIG_fail;
11838 }
11839 if (obj3) {
11840 arg5 = (int) SWIG_AsInt(obj3);
11841 if (PyErr_Occurred()) SWIG_fail;
11842 }
11843 if (obj4) {
11844 arg6 = (int) SWIG_AsInt(obj4);
11845 if (PyErr_Occurred()) SWIG_fail;
11846 }
11847 {
11848 PyThreadState* __tstate = wxPyBeginAllowThreads();
11849 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
11850
11851 wxPyEndAllowThreads(__tstate);
11852 if (PyErr_Occurred()) SWIG_fail;
11853 }
11854 Py_INCREF(Py_None); resultobj = Py_None;
11855 {
11856 if (arg3) delete [] arg3;
11857 }
11858 return resultobj;
11859 fail:
11860 {
11861 if (arg3) delete [] arg3;
11862 }
11863 return NULL;
11864 }
11865
11866
11867 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
11868 PyObject *resultobj;
11869 wxDC *arg1 = (wxDC *) 0 ;
11870 wxString *arg2 = 0 ;
11871 wxRect *arg3 = 0 ;
11872 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
11873 int arg5 = (int) -1 ;
11874 bool temp2 = False ;
11875 wxRect temp3 ;
11876 PyObject * obj0 = 0 ;
11877 PyObject * obj1 = 0 ;
11878 PyObject * obj2 = 0 ;
11879 PyObject * obj3 = 0 ;
11880 PyObject * obj4 = 0 ;
11881 char *kwnames[] = {
11882 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
11883 };
11884
11885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11888 {
11889 arg2 = wxString_in_helper(obj1);
11890 if (arg2 == NULL) SWIG_fail;
11891 temp2 = True;
11892 }
11893 {
11894 arg3 = &temp3;
11895 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
11896 }
11897 if (obj3) {
11898 arg4 = (int) SWIG_AsInt(obj3);
11899 if (PyErr_Occurred()) SWIG_fail;
11900 }
11901 if (obj4) {
11902 arg5 = (int) SWIG_AsInt(obj4);
11903 if (PyErr_Occurred()) SWIG_fail;
11904 }
11905 {
11906 PyThreadState* __tstate = wxPyBeginAllowThreads();
11907 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
11908
11909 wxPyEndAllowThreads(__tstate);
11910 if (PyErr_Occurred()) SWIG_fail;
11911 }
11912 Py_INCREF(Py_None); resultobj = Py_None;
11913 {
11914 if (temp2)
11915 delete arg2;
11916 }
11917 return resultobj;
11918 fail:
11919 {
11920 if (temp2)
11921 delete arg2;
11922 }
11923 return NULL;
11924 }
11925
11926
11927 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
11928 PyObject *resultobj;
11929 wxDC *arg1 = (wxDC *) 0 ;
11930 wxString *arg2 = 0 ;
11931 wxBitmap *arg3 = 0 ;
11932 wxRect *arg4 = 0 ;
11933 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
11934 int arg6 = (int) -1 ;
11935 wxRect result;
11936 bool temp2 = False ;
11937 wxRect temp4 ;
11938 PyObject * obj0 = 0 ;
11939 PyObject * obj1 = 0 ;
11940 PyObject * obj2 = 0 ;
11941 PyObject * obj3 = 0 ;
11942 PyObject * obj4 = 0 ;
11943 PyObject * obj5 = 0 ;
11944 char *kwnames[] = {
11945 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
11946 };
11947
11948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11951 {
11952 arg2 = wxString_in_helper(obj1);
11953 if (arg2 == NULL) SWIG_fail;
11954 temp2 = True;
11955 }
11956 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
11957 SWIG_POINTER_EXCEPTION | 0)) == -1)
11958 SWIG_fail;
11959 if (arg3 == NULL) {
11960 PyErr_SetString(PyExc_TypeError,"null reference");
11961 SWIG_fail;
11962 }
11963 {
11964 arg4 = &temp4;
11965 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
11966 }
11967 if (obj4) {
11968 arg5 = (int) SWIG_AsInt(obj4);
11969 if (PyErr_Occurred()) SWIG_fail;
11970 }
11971 if (obj5) {
11972 arg6 = (int) SWIG_AsInt(obj5);
11973 if (PyErr_Occurred()) SWIG_fail;
11974 }
11975 {
11976 PyThreadState* __tstate = wxPyBeginAllowThreads();
11977 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
11978
11979 wxPyEndAllowThreads(__tstate);
11980 if (PyErr_Occurred()) SWIG_fail;
11981 }
11982 {
11983 wxRect * resultptr;
11984 resultptr = new wxRect((wxRect &) result);
11985 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
11986 }
11987 {
11988 if (temp2)
11989 delete arg2;
11990 }
11991 return resultobj;
11992 fail:
11993 {
11994 if (temp2)
11995 delete arg2;
11996 }
11997 return NULL;
11998 }
11999
12000
12001 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12002 PyObject *resultobj;
12003 wxDC *arg1 = (wxDC *) 0 ;
12004 int arg2 ;
12005 wxPoint *arg3 = (wxPoint *) 0 ;
12006 PyObject * obj0 = 0 ;
12007 PyObject * obj1 = 0 ;
12008 char *kwnames[] = {
12009 (char *) "self",(char *) "points", NULL
12010 };
12011
12012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12015 {
12016 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12017 if (arg3 == NULL) SWIG_fail;
12018 }
12019 {
12020 PyThreadState* __tstate = wxPyBeginAllowThreads();
12021 (arg1)->DrawSpline(arg2,arg3);
12022
12023 wxPyEndAllowThreads(__tstate);
12024 if (PyErr_Occurred()) SWIG_fail;
12025 }
12026 Py_INCREF(Py_None); resultobj = Py_None;
12027 {
12028 if (arg3) delete [] arg3;
12029 }
12030 return resultobj;
12031 fail:
12032 {
12033 if (arg3) delete [] arg3;
12034 }
12035 return NULL;
12036 }
12037
12038
12039 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12040 PyObject *resultobj;
12041 wxDC *arg1 = (wxDC *) 0 ;
12042 PyObject * obj0 = 0 ;
12043 char *kwnames[] = {
12044 (char *) "self", NULL
12045 };
12046
12047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12050 {
12051 PyThreadState* __tstate = wxPyBeginAllowThreads();
12052 (arg1)->Clear();
12053
12054 wxPyEndAllowThreads(__tstate);
12055 if (PyErr_Occurred()) SWIG_fail;
12056 }
12057 Py_INCREF(Py_None); resultobj = Py_None;
12058 return resultobj;
12059 fail:
12060 return NULL;
12061 }
12062
12063
12064 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12065 PyObject *resultobj;
12066 wxDC *arg1 = (wxDC *) 0 ;
12067 wxString *arg2 = 0 ;
12068 bool result;
12069 bool temp2 = False ;
12070 PyObject * obj0 = 0 ;
12071 PyObject * obj1 = 0 ;
12072 char *kwnames[] = {
12073 (char *) "self",(char *) "message", NULL
12074 };
12075
12076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12079 {
12080 arg2 = wxString_in_helper(obj1);
12081 if (arg2 == NULL) SWIG_fail;
12082 temp2 = True;
12083 }
12084 {
12085 PyThreadState* __tstate = wxPyBeginAllowThreads();
12086 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12087
12088 wxPyEndAllowThreads(__tstate);
12089 if (PyErr_Occurred()) SWIG_fail;
12090 }
12091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12092 {
12093 if (temp2)
12094 delete arg2;
12095 }
12096 return resultobj;
12097 fail:
12098 {
12099 if (temp2)
12100 delete arg2;
12101 }
12102 return NULL;
12103 }
12104
12105
12106 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12107 PyObject *resultobj;
12108 wxDC *arg1 = (wxDC *) 0 ;
12109 PyObject * obj0 = 0 ;
12110 char *kwnames[] = {
12111 (char *) "self", NULL
12112 };
12113
12114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12117 {
12118 PyThreadState* __tstate = wxPyBeginAllowThreads();
12119 (arg1)->EndDoc();
12120
12121 wxPyEndAllowThreads(__tstate);
12122 if (PyErr_Occurred()) SWIG_fail;
12123 }
12124 Py_INCREF(Py_None); resultobj = Py_None;
12125 return resultobj;
12126 fail:
12127 return NULL;
12128 }
12129
12130
12131 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12132 PyObject *resultobj;
12133 wxDC *arg1 = (wxDC *) 0 ;
12134 PyObject * obj0 = 0 ;
12135 char *kwnames[] = {
12136 (char *) "self", NULL
12137 };
12138
12139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12142 {
12143 PyThreadState* __tstate = wxPyBeginAllowThreads();
12144 (arg1)->StartPage();
12145
12146 wxPyEndAllowThreads(__tstate);
12147 if (PyErr_Occurred()) SWIG_fail;
12148 }
12149 Py_INCREF(Py_None); resultobj = Py_None;
12150 return resultobj;
12151 fail:
12152 return NULL;
12153 }
12154
12155
12156 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12157 PyObject *resultobj;
12158 wxDC *arg1 = (wxDC *) 0 ;
12159 PyObject * obj0 = 0 ;
12160 char *kwnames[] = {
12161 (char *) "self", NULL
12162 };
12163
12164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12167 {
12168 PyThreadState* __tstate = wxPyBeginAllowThreads();
12169 (arg1)->EndPage();
12170
12171 wxPyEndAllowThreads(__tstate);
12172 if (PyErr_Occurred()) SWIG_fail;
12173 }
12174 Py_INCREF(Py_None); resultobj = Py_None;
12175 return resultobj;
12176 fail:
12177 return NULL;
12178 }
12179
12180
12181 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12182 PyObject *resultobj;
12183 wxDC *arg1 = (wxDC *) 0 ;
12184 wxFont *arg2 = 0 ;
12185 PyObject * obj0 = 0 ;
12186 PyObject * obj1 = 0 ;
12187 char *kwnames[] = {
12188 (char *) "self",(char *) "font", NULL
12189 };
12190
12191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12194 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12195 SWIG_POINTER_EXCEPTION | 0)) == -1)
12196 SWIG_fail;
12197 if (arg2 == NULL) {
12198 PyErr_SetString(PyExc_TypeError,"null reference");
12199 SWIG_fail;
12200 }
12201 {
12202 PyThreadState* __tstate = wxPyBeginAllowThreads();
12203 (arg1)->SetFont((wxFont const &)*arg2);
12204
12205 wxPyEndAllowThreads(__tstate);
12206 if (PyErr_Occurred()) SWIG_fail;
12207 }
12208 Py_INCREF(Py_None); resultobj = Py_None;
12209 return resultobj;
12210 fail:
12211 return NULL;
12212 }
12213
12214
12215 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12216 PyObject *resultobj;
12217 wxDC *arg1 = (wxDC *) 0 ;
12218 wxPen *arg2 = 0 ;
12219 PyObject * obj0 = 0 ;
12220 PyObject * obj1 = 0 ;
12221 char *kwnames[] = {
12222 (char *) "self",(char *) "pen", NULL
12223 };
12224
12225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12228 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12229 SWIG_POINTER_EXCEPTION | 0)) == -1)
12230 SWIG_fail;
12231 if (arg2 == NULL) {
12232 PyErr_SetString(PyExc_TypeError,"null reference");
12233 SWIG_fail;
12234 }
12235 {
12236 PyThreadState* __tstate = wxPyBeginAllowThreads();
12237 (arg1)->SetPen((wxPen const &)*arg2);
12238
12239 wxPyEndAllowThreads(__tstate);
12240 if (PyErr_Occurred()) SWIG_fail;
12241 }
12242 Py_INCREF(Py_None); resultobj = Py_None;
12243 return resultobj;
12244 fail:
12245 return NULL;
12246 }
12247
12248
12249 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12250 PyObject *resultobj;
12251 wxDC *arg1 = (wxDC *) 0 ;
12252 wxBrush *arg2 = 0 ;
12253 PyObject * obj0 = 0 ;
12254 PyObject * obj1 = 0 ;
12255 char *kwnames[] = {
12256 (char *) "self",(char *) "brush", NULL
12257 };
12258
12259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12262 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12263 SWIG_POINTER_EXCEPTION | 0)) == -1)
12264 SWIG_fail;
12265 if (arg2 == NULL) {
12266 PyErr_SetString(PyExc_TypeError,"null reference");
12267 SWIG_fail;
12268 }
12269 {
12270 PyThreadState* __tstate = wxPyBeginAllowThreads();
12271 (arg1)->SetBrush((wxBrush const &)*arg2);
12272
12273 wxPyEndAllowThreads(__tstate);
12274 if (PyErr_Occurred()) SWIG_fail;
12275 }
12276 Py_INCREF(Py_None); resultobj = Py_None;
12277 return resultobj;
12278 fail:
12279 return NULL;
12280 }
12281
12282
12283 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12284 PyObject *resultobj;
12285 wxDC *arg1 = (wxDC *) 0 ;
12286 wxBrush *arg2 = 0 ;
12287 PyObject * obj0 = 0 ;
12288 PyObject * obj1 = 0 ;
12289 char *kwnames[] = {
12290 (char *) "self",(char *) "brush", NULL
12291 };
12292
12293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12296 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12297 SWIG_POINTER_EXCEPTION | 0)) == -1)
12298 SWIG_fail;
12299 if (arg2 == NULL) {
12300 PyErr_SetString(PyExc_TypeError,"null reference");
12301 SWIG_fail;
12302 }
12303 {
12304 PyThreadState* __tstate = wxPyBeginAllowThreads();
12305 (arg1)->SetBackground((wxBrush const &)*arg2);
12306
12307 wxPyEndAllowThreads(__tstate);
12308 if (PyErr_Occurred()) SWIG_fail;
12309 }
12310 Py_INCREF(Py_None); resultobj = Py_None;
12311 return resultobj;
12312 fail:
12313 return NULL;
12314 }
12315
12316
12317 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12318 PyObject *resultobj;
12319 wxDC *arg1 = (wxDC *) 0 ;
12320 int arg2 ;
12321 PyObject * obj0 = 0 ;
12322 PyObject * obj1 = 0 ;
12323 char *kwnames[] = {
12324 (char *) "self",(char *) "mode", NULL
12325 };
12326
12327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12330 arg2 = (int) SWIG_AsInt(obj1);
12331 if (PyErr_Occurred()) SWIG_fail;
12332 {
12333 PyThreadState* __tstate = wxPyBeginAllowThreads();
12334 (arg1)->SetBackgroundMode(arg2);
12335
12336 wxPyEndAllowThreads(__tstate);
12337 if (PyErr_Occurred()) SWIG_fail;
12338 }
12339 Py_INCREF(Py_None); resultobj = Py_None;
12340 return resultobj;
12341 fail:
12342 return NULL;
12343 }
12344
12345
12346 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12347 PyObject *resultobj;
12348 wxDC *arg1 = (wxDC *) 0 ;
12349 wxPalette *arg2 = 0 ;
12350 PyObject * obj0 = 0 ;
12351 PyObject * obj1 = 0 ;
12352 char *kwnames[] = {
12353 (char *) "self",(char *) "palette", NULL
12354 };
12355
12356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12359 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
12360 SWIG_POINTER_EXCEPTION | 0)) == -1)
12361 SWIG_fail;
12362 if (arg2 == NULL) {
12363 PyErr_SetString(PyExc_TypeError,"null reference");
12364 SWIG_fail;
12365 }
12366 {
12367 PyThreadState* __tstate = wxPyBeginAllowThreads();
12368 (arg1)->SetPalette((wxPalette const &)*arg2);
12369
12370 wxPyEndAllowThreads(__tstate);
12371 if (PyErr_Occurred()) SWIG_fail;
12372 }
12373 Py_INCREF(Py_None); resultobj = Py_None;
12374 return resultobj;
12375 fail:
12376 return NULL;
12377 }
12378
12379
12380 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12381 PyObject *resultobj;
12382 wxDC *arg1 = (wxDC *) 0 ;
12383 int arg2 ;
12384 int arg3 ;
12385 int arg4 ;
12386 int arg5 ;
12387 PyObject * obj0 = 0 ;
12388 PyObject * obj1 = 0 ;
12389 PyObject * obj2 = 0 ;
12390 PyObject * obj3 = 0 ;
12391 PyObject * obj4 = 0 ;
12392 char *kwnames[] = {
12393 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12394 };
12395
12396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12399 arg2 = (int) SWIG_AsInt(obj1);
12400 if (PyErr_Occurred()) SWIG_fail;
12401 arg3 = (int) SWIG_AsInt(obj2);
12402 if (PyErr_Occurred()) SWIG_fail;
12403 arg4 = (int) SWIG_AsInt(obj3);
12404 if (PyErr_Occurred()) SWIG_fail;
12405 arg5 = (int) SWIG_AsInt(obj4);
12406 if (PyErr_Occurred()) SWIG_fail;
12407 {
12408 PyThreadState* __tstate = wxPyBeginAllowThreads();
12409 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12410
12411 wxPyEndAllowThreads(__tstate);
12412 if (PyErr_Occurred()) SWIG_fail;
12413 }
12414 Py_INCREF(Py_None); resultobj = Py_None;
12415 return resultobj;
12416 fail:
12417 return NULL;
12418 }
12419
12420
12421 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12422 PyObject *resultobj;
12423 wxDC *arg1 = (wxDC *) 0 ;
12424 wxPoint *arg2 = 0 ;
12425 wxSize *arg3 = 0 ;
12426 wxPoint temp2 ;
12427 wxSize temp3 ;
12428 PyObject * obj0 = 0 ;
12429 PyObject * obj1 = 0 ;
12430 PyObject * obj2 = 0 ;
12431 char *kwnames[] = {
12432 (char *) "self",(char *) "pt",(char *) "sz", NULL
12433 };
12434
12435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
12436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12438 {
12439 arg2 = &temp2;
12440 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12441 }
12442 {
12443 arg3 = &temp3;
12444 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12445 }
12446 {
12447 PyThreadState* __tstate = wxPyBeginAllowThreads();
12448 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12449
12450 wxPyEndAllowThreads(__tstate);
12451 if (PyErr_Occurred()) SWIG_fail;
12452 }
12453 Py_INCREF(Py_None); resultobj = Py_None;
12454 return resultobj;
12455 fail:
12456 return NULL;
12457 }
12458
12459
12460 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12461 PyObject *resultobj;
12462 wxDC *arg1 = (wxDC *) 0 ;
12463 wxRect *arg2 = 0 ;
12464 wxRect temp2 ;
12465 PyObject * obj0 = 0 ;
12466 PyObject * obj1 = 0 ;
12467 char *kwnames[] = {
12468 (char *) "self",(char *) "rect", NULL
12469 };
12470
12471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) 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 ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12477 }
12478 {
12479 PyThreadState* __tstate = wxPyBeginAllowThreads();
12480 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12481
12482 wxPyEndAllowThreads(__tstate);
12483 if (PyErr_Occurred()) SWIG_fail;
12484 }
12485 Py_INCREF(Py_None); resultobj = Py_None;
12486 return resultobj;
12487 fail:
12488 return NULL;
12489 }
12490
12491
12492 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12493 PyObject *resultobj;
12494 wxDC *arg1 = (wxDC *) 0 ;
12495 wxRegion *arg2 = 0 ;
12496 PyObject * obj0 = 0 ;
12497 PyObject * obj1 = 0 ;
12498 char *kwnames[] = {
12499 (char *) "self",(char *) "region", NULL
12500 };
12501
12502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12505 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12506 SWIG_POINTER_EXCEPTION | 0)) == -1)
12507 SWIG_fail;
12508 if (arg2 == NULL) {
12509 PyErr_SetString(PyExc_TypeError,"null reference");
12510 SWIG_fail;
12511 }
12512 {
12513 PyThreadState* __tstate = wxPyBeginAllowThreads();
12514 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12515
12516 wxPyEndAllowThreads(__tstate);
12517 if (PyErr_Occurred()) SWIG_fail;
12518 }
12519 Py_INCREF(Py_None); resultobj = Py_None;
12520 return resultobj;
12521 fail:
12522 return NULL;
12523 }
12524
12525
12526 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12527 PyObject *resultobj;
12528 wxDC *arg1 = (wxDC *) 0 ;
12529 PyObject * obj0 = 0 ;
12530 char *kwnames[] = {
12531 (char *) "self", NULL
12532 };
12533
12534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12537 {
12538 PyThreadState* __tstate = wxPyBeginAllowThreads();
12539 (arg1)->DestroyClippingRegion();
12540
12541 wxPyEndAllowThreads(__tstate);
12542 if (PyErr_Occurred()) SWIG_fail;
12543 }
12544 Py_INCREF(Py_None); resultobj = Py_None;
12545 return resultobj;
12546 fail:
12547 return NULL;
12548 }
12549
12550
12551 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12552 PyObject *resultobj;
12553 wxDC *arg1 = (wxDC *) 0 ;
12554 int *arg2 = (int *) 0 ;
12555 int *arg3 = (int *) 0 ;
12556 int *arg4 = (int *) 0 ;
12557 int *arg5 = (int *) 0 ;
12558 int temp2 ;
12559 int temp3 ;
12560 int temp4 ;
12561 int temp5 ;
12562 PyObject * obj0 = 0 ;
12563 char *kwnames[] = {
12564 (char *) "self", NULL
12565 };
12566
12567 arg2 = &temp2;
12568 arg3 = &temp3;
12569 arg4 = &temp4;
12570 arg5 = &temp5;
12571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12574 {
12575 PyThreadState* __tstate = wxPyBeginAllowThreads();
12576 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12577
12578 wxPyEndAllowThreads(__tstate);
12579 if (PyErr_Occurred()) SWIG_fail;
12580 }
12581 Py_INCREF(Py_None); resultobj = Py_None;
12582 {
12583 PyObject *o = PyInt_FromLong((long) (*arg2));
12584 resultobj = t_output_helper(resultobj,o);
12585 }
12586 {
12587 PyObject *o = PyInt_FromLong((long) (*arg3));
12588 resultobj = t_output_helper(resultobj,o);
12589 }
12590 {
12591 PyObject *o = PyInt_FromLong((long) (*arg4));
12592 resultobj = t_output_helper(resultobj,o);
12593 }
12594 {
12595 PyObject *o = PyInt_FromLong((long) (*arg5));
12596 resultobj = t_output_helper(resultobj,o);
12597 }
12598 return resultobj;
12599 fail:
12600 return NULL;
12601 }
12602
12603
12604 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12605 PyObject *resultobj;
12606 wxDC *arg1 = (wxDC *) 0 ;
12607 wxRect result;
12608 PyObject * obj0 = 0 ;
12609 char *kwnames[] = {
12610 (char *) "self", NULL
12611 };
12612
12613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
12614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12616 {
12617 PyThreadState* __tstate = wxPyBeginAllowThreads();
12618 result = wxDC_GetClippingRect(arg1);
12619
12620 wxPyEndAllowThreads(__tstate);
12621 if (PyErr_Occurred()) SWIG_fail;
12622 }
12623 {
12624 wxRect * resultptr;
12625 resultptr = new wxRect((wxRect &) result);
12626 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12627 }
12628 return resultobj;
12629 fail:
12630 return NULL;
12631 }
12632
12633
12634 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12635 PyObject *resultobj;
12636 wxDC *arg1 = (wxDC *) 0 ;
12637 int result;
12638 PyObject * obj0 = 0 ;
12639 char *kwnames[] = {
12640 (char *) "self", NULL
12641 };
12642
12643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
12644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12646 {
12647 PyThreadState* __tstate = wxPyBeginAllowThreads();
12648 result = (int)((wxDC const *)arg1)->GetCharHeight();
12649
12650 wxPyEndAllowThreads(__tstate);
12651 if (PyErr_Occurred()) SWIG_fail;
12652 }
12653 resultobj = SWIG_FromInt((int)result);
12654 return resultobj;
12655 fail:
12656 return NULL;
12657 }
12658
12659
12660 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12661 PyObject *resultobj;
12662 wxDC *arg1 = (wxDC *) 0 ;
12663 int result;
12664 PyObject * obj0 = 0 ;
12665 char *kwnames[] = {
12666 (char *) "self", NULL
12667 };
12668
12669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
12670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12672 {
12673 PyThreadState* __tstate = wxPyBeginAllowThreads();
12674 result = (int)((wxDC const *)arg1)->GetCharWidth();
12675
12676 wxPyEndAllowThreads(__tstate);
12677 if (PyErr_Occurred()) SWIG_fail;
12678 }
12679 resultobj = SWIG_FromInt((int)result);
12680 return resultobj;
12681 fail:
12682 return NULL;
12683 }
12684
12685
12686 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12687 PyObject *resultobj;
12688 wxDC *arg1 = (wxDC *) 0 ;
12689 wxString *arg2 = 0 ;
12690 int *arg3 = (int *) 0 ;
12691 int *arg4 = (int *) 0 ;
12692 bool temp2 = False ;
12693 int temp3 ;
12694 int temp4 ;
12695 PyObject * obj0 = 0 ;
12696 PyObject * obj1 = 0 ;
12697 char *kwnames[] = {
12698 (char *) "self",(char *) "string", NULL
12699 };
12700
12701 arg3 = &temp3;
12702 arg4 = &temp4;
12703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
12704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12706 {
12707 arg2 = wxString_in_helper(obj1);
12708 if (arg2 == NULL) SWIG_fail;
12709 temp2 = True;
12710 }
12711 {
12712 PyThreadState* __tstate = wxPyBeginAllowThreads();
12713 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
12714
12715 wxPyEndAllowThreads(__tstate);
12716 if (PyErr_Occurred()) SWIG_fail;
12717 }
12718 Py_INCREF(Py_None); resultobj = Py_None;
12719 {
12720 PyObject *o = PyInt_FromLong((long) (*arg3));
12721 resultobj = t_output_helper(resultobj,o);
12722 }
12723 {
12724 PyObject *o = PyInt_FromLong((long) (*arg4));
12725 resultobj = t_output_helper(resultobj,o);
12726 }
12727 {
12728 if (temp2)
12729 delete arg2;
12730 }
12731 return resultobj;
12732 fail:
12733 {
12734 if (temp2)
12735 delete arg2;
12736 }
12737 return NULL;
12738 }
12739
12740
12741 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12742 PyObject *resultobj;
12743 wxDC *arg1 = (wxDC *) 0 ;
12744 wxString *arg2 = 0 ;
12745 int *arg3 = (int *) 0 ;
12746 int *arg4 = (int *) 0 ;
12747 int *arg5 = (int *) 0 ;
12748 int *arg6 = (int *) 0 ;
12749 wxFont *arg7 = (wxFont *) NULL ;
12750 bool temp2 = False ;
12751 int temp3 ;
12752 int temp4 ;
12753 int temp5 ;
12754 int temp6 ;
12755 PyObject * obj0 = 0 ;
12756 PyObject * obj1 = 0 ;
12757 PyObject * obj2 = 0 ;
12758 char *kwnames[] = {
12759 (char *) "self",(char *) "string",(char *) "font", NULL
12760 };
12761
12762 arg3 = &temp3;
12763 arg4 = &temp4;
12764 arg5 = &temp5;
12765 arg6 = &temp6;
12766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12769 {
12770 arg2 = wxString_in_helper(obj1);
12771 if (arg2 == NULL) SWIG_fail;
12772 temp2 = True;
12773 }
12774 if (obj2) {
12775 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
12776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12777 }
12778 {
12779 PyThreadState* __tstate = wxPyBeginAllowThreads();
12780 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
12781
12782 wxPyEndAllowThreads(__tstate);
12783 if (PyErr_Occurred()) SWIG_fail;
12784 }
12785 Py_INCREF(Py_None); resultobj = Py_None;
12786 {
12787 PyObject *o = PyInt_FromLong((long) (*arg3));
12788 resultobj = t_output_helper(resultobj,o);
12789 }
12790 {
12791 PyObject *o = PyInt_FromLong((long) (*arg4));
12792 resultobj = t_output_helper(resultobj,o);
12793 }
12794 {
12795 PyObject *o = PyInt_FromLong((long) (*arg5));
12796 resultobj = t_output_helper(resultobj,o);
12797 }
12798 {
12799 PyObject *o = PyInt_FromLong((long) (*arg6));
12800 resultobj = t_output_helper(resultobj,o);
12801 }
12802 {
12803 if (temp2)
12804 delete arg2;
12805 }
12806 return resultobj;
12807 fail:
12808 {
12809 if (temp2)
12810 delete arg2;
12811 }
12812 return NULL;
12813 }
12814
12815
12816 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12817 PyObject *resultobj;
12818 wxDC *arg1 = (wxDC *) 0 ;
12819 wxString *arg2 = 0 ;
12820 int *arg3 = (int *) 0 ;
12821 int *arg4 = (int *) 0 ;
12822 int *arg5 = (int *) 0 ;
12823 wxFont *arg6 = (wxFont *) NULL ;
12824 bool temp2 = False ;
12825 int temp3 ;
12826 int temp4 ;
12827 int temp5 ;
12828 PyObject * obj0 = 0 ;
12829 PyObject * obj1 = 0 ;
12830 PyObject * obj2 = 0 ;
12831 char *kwnames[] = {
12832 (char *) "self",(char *) "text",(char *) "font", NULL
12833 };
12834
12835 arg3 = &temp3;
12836 arg4 = &temp4;
12837 arg5 = &temp5;
12838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12841 {
12842 arg2 = wxString_in_helper(obj1);
12843 if (arg2 == NULL) SWIG_fail;
12844 temp2 = True;
12845 }
12846 if (obj2) {
12847 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
12848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12849 }
12850 {
12851 PyThreadState* __tstate = wxPyBeginAllowThreads();
12852 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
12853
12854 wxPyEndAllowThreads(__tstate);
12855 if (PyErr_Occurred()) SWIG_fail;
12856 }
12857 Py_INCREF(Py_None); resultobj = Py_None;
12858 {
12859 PyObject *o = PyInt_FromLong((long) (*arg3));
12860 resultobj = t_output_helper(resultobj,o);
12861 }
12862 {
12863 PyObject *o = PyInt_FromLong((long) (*arg4));
12864 resultobj = t_output_helper(resultobj,o);
12865 }
12866 {
12867 PyObject *o = PyInt_FromLong((long) (*arg5));
12868 resultobj = t_output_helper(resultobj,o);
12869 }
12870 {
12871 if (temp2)
12872 delete arg2;
12873 }
12874 return resultobj;
12875 fail:
12876 {
12877 if (temp2)
12878 delete arg2;
12879 }
12880 return NULL;
12881 }
12882
12883
12884 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
12885 PyObject *resultobj;
12886 wxDC *arg1 = (wxDC *) 0 ;
12887 wxString *arg2 = 0 ;
12888 wxArrayInt result;
12889 bool temp2 = False ;
12890 PyObject * obj0 = 0 ;
12891 PyObject * obj1 = 0 ;
12892 char *kwnames[] = {
12893 (char *) "self",(char *) "text", NULL
12894 };
12895
12896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
12897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12899 {
12900 arg2 = wxString_in_helper(obj1);
12901 if (arg2 == NULL) SWIG_fail;
12902 temp2 = True;
12903 }
12904 {
12905 PyThreadState* __tstate = wxPyBeginAllowThreads();
12906 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
12907
12908 wxPyEndAllowThreads(__tstate);
12909 if (PyErr_Occurred()) SWIG_fail;
12910 }
12911 {
12912 resultobj = PyList_New(0);
12913 size_t idx;
12914 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
12915 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
12916 PyList_Append(resultobj, val);
12917 Py_DECREF(val);
12918 }
12919 }
12920 {
12921 if (temp2)
12922 delete arg2;
12923 }
12924 return resultobj;
12925 fail:
12926 {
12927 if (temp2)
12928 delete arg2;
12929 }
12930 return NULL;
12931 }
12932
12933
12934 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12935 PyObject *resultobj;
12936 wxDC *arg1 = (wxDC *) 0 ;
12937 wxSize result;
12938 PyObject * obj0 = 0 ;
12939 char *kwnames[] = {
12940 (char *) "self", NULL
12941 };
12942
12943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
12944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12946 {
12947 PyThreadState* __tstate = wxPyBeginAllowThreads();
12948 result = (arg1)->GetSize();
12949
12950 wxPyEndAllowThreads(__tstate);
12951 if (PyErr_Occurred()) SWIG_fail;
12952 }
12953 {
12954 wxSize * resultptr;
12955 resultptr = new wxSize((wxSize &) result);
12956 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
12957 }
12958 return resultobj;
12959 fail:
12960 return NULL;
12961 }
12962
12963
12964 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12965 PyObject *resultobj;
12966 wxDC *arg1 = (wxDC *) 0 ;
12967 int *arg2 = (int *) 0 ;
12968 int *arg3 = (int *) 0 ;
12969 int temp2 ;
12970 int temp3 ;
12971 PyObject * obj0 = 0 ;
12972 char *kwnames[] = {
12973 (char *) "self", NULL
12974 };
12975
12976 arg2 = &temp2;
12977 arg3 = &temp3;
12978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
12979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12981 {
12982 PyThreadState* __tstate = wxPyBeginAllowThreads();
12983 (arg1)->GetSize(arg2,arg3);
12984
12985 wxPyEndAllowThreads(__tstate);
12986 if (PyErr_Occurred()) SWIG_fail;
12987 }
12988 Py_INCREF(Py_None); resultobj = Py_None;
12989 {
12990 PyObject *o = PyInt_FromLong((long) (*arg2));
12991 resultobj = t_output_helper(resultobj,o);
12992 }
12993 {
12994 PyObject *o = PyInt_FromLong((long) (*arg3));
12995 resultobj = t_output_helper(resultobj,o);
12996 }
12997 return resultobj;
12998 fail:
12999 return NULL;
13000 }
13001
13002
13003 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13004 PyObject *resultobj;
13005 wxDC *arg1 = (wxDC *) 0 ;
13006 wxSize result;
13007 PyObject * obj0 = 0 ;
13008 char *kwnames[] = {
13009 (char *) "self", NULL
13010 };
13011
13012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13015 {
13016 PyThreadState* __tstate = wxPyBeginAllowThreads();
13017 result = ((wxDC const *)arg1)->GetSizeMM();
13018
13019 wxPyEndAllowThreads(__tstate);
13020 if (PyErr_Occurred()) SWIG_fail;
13021 }
13022 {
13023 wxSize * resultptr;
13024 resultptr = new wxSize((wxSize &) result);
13025 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13026 }
13027 return resultobj;
13028 fail:
13029 return NULL;
13030 }
13031
13032
13033 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13034 PyObject *resultobj;
13035 wxDC *arg1 = (wxDC *) 0 ;
13036 int *arg2 = (int *) 0 ;
13037 int *arg3 = (int *) 0 ;
13038 int temp2 ;
13039 int temp3 ;
13040 PyObject * obj0 = 0 ;
13041 char *kwnames[] = {
13042 (char *) "self", NULL
13043 };
13044
13045 arg2 = &temp2;
13046 arg3 = &temp3;
13047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13050 {
13051 PyThreadState* __tstate = wxPyBeginAllowThreads();
13052 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13053
13054 wxPyEndAllowThreads(__tstate);
13055 if (PyErr_Occurred()) SWIG_fail;
13056 }
13057 Py_INCREF(Py_None); resultobj = Py_None;
13058 {
13059 PyObject *o = PyInt_FromLong((long) (*arg2));
13060 resultobj = t_output_helper(resultobj,o);
13061 }
13062 {
13063 PyObject *o = PyInt_FromLong((long) (*arg3));
13064 resultobj = t_output_helper(resultobj,o);
13065 }
13066 return resultobj;
13067 fail:
13068 return NULL;
13069 }
13070
13071
13072 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13073 PyObject *resultobj;
13074 wxDC *arg1 = (wxDC *) 0 ;
13075 int arg2 ;
13076 int result;
13077 PyObject * obj0 = 0 ;
13078 PyObject * obj1 = 0 ;
13079 char *kwnames[] = {
13080 (char *) "self",(char *) "x", NULL
13081 };
13082
13083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13086 arg2 = (int) SWIG_AsInt(obj1);
13087 if (PyErr_Occurred()) SWIG_fail;
13088 {
13089 PyThreadState* __tstate = wxPyBeginAllowThreads();
13090 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13091
13092 wxPyEndAllowThreads(__tstate);
13093 if (PyErr_Occurred()) SWIG_fail;
13094 }
13095 resultobj = SWIG_FromInt((int)result);
13096 return resultobj;
13097 fail:
13098 return NULL;
13099 }
13100
13101
13102 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13103 PyObject *resultobj;
13104 wxDC *arg1 = (wxDC *) 0 ;
13105 int arg2 ;
13106 int result;
13107 PyObject * obj0 = 0 ;
13108 PyObject * obj1 = 0 ;
13109 char *kwnames[] = {
13110 (char *) "self",(char *) "y", NULL
13111 };
13112
13113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13116 arg2 = (int) SWIG_AsInt(obj1);
13117 if (PyErr_Occurred()) SWIG_fail;
13118 {
13119 PyThreadState* __tstate = wxPyBeginAllowThreads();
13120 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13121
13122 wxPyEndAllowThreads(__tstate);
13123 if (PyErr_Occurred()) SWIG_fail;
13124 }
13125 resultobj = SWIG_FromInt((int)result);
13126 return resultobj;
13127 fail:
13128 return NULL;
13129 }
13130
13131
13132 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13133 PyObject *resultobj;
13134 wxDC *arg1 = (wxDC *) 0 ;
13135 int arg2 ;
13136 int result;
13137 PyObject * obj0 = 0 ;
13138 PyObject * obj1 = 0 ;
13139 char *kwnames[] = {
13140 (char *) "self",(char *) "x", NULL
13141 };
13142
13143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13146 arg2 = (int) SWIG_AsInt(obj1);
13147 if (PyErr_Occurred()) SWIG_fail;
13148 {
13149 PyThreadState* __tstate = wxPyBeginAllowThreads();
13150 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13151
13152 wxPyEndAllowThreads(__tstate);
13153 if (PyErr_Occurred()) SWIG_fail;
13154 }
13155 resultobj = SWIG_FromInt((int)result);
13156 return resultobj;
13157 fail:
13158 return NULL;
13159 }
13160
13161
13162 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13163 PyObject *resultobj;
13164 wxDC *arg1 = (wxDC *) 0 ;
13165 int arg2 ;
13166 int result;
13167 PyObject * obj0 = 0 ;
13168 PyObject * obj1 = 0 ;
13169 char *kwnames[] = {
13170 (char *) "self",(char *) "y", NULL
13171 };
13172
13173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13176 arg2 = (int) SWIG_AsInt(obj1);
13177 if (PyErr_Occurred()) SWIG_fail;
13178 {
13179 PyThreadState* __tstate = wxPyBeginAllowThreads();
13180 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13181
13182 wxPyEndAllowThreads(__tstate);
13183 if (PyErr_Occurred()) SWIG_fail;
13184 }
13185 resultobj = SWIG_FromInt((int)result);
13186 return resultobj;
13187 fail:
13188 return NULL;
13189 }
13190
13191
13192 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13193 PyObject *resultobj;
13194 wxDC *arg1 = (wxDC *) 0 ;
13195 int arg2 ;
13196 int result;
13197 PyObject * obj0 = 0 ;
13198 PyObject * obj1 = 0 ;
13199 char *kwnames[] = {
13200 (char *) "self",(char *) "x", NULL
13201 };
13202
13203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13206 arg2 = (int) SWIG_AsInt(obj1);
13207 if (PyErr_Occurred()) SWIG_fail;
13208 {
13209 PyThreadState* __tstate = wxPyBeginAllowThreads();
13210 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13211
13212 wxPyEndAllowThreads(__tstate);
13213 if (PyErr_Occurred()) SWIG_fail;
13214 }
13215 resultobj = SWIG_FromInt((int)result);
13216 return resultobj;
13217 fail:
13218 return NULL;
13219 }
13220
13221
13222 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13223 PyObject *resultobj;
13224 wxDC *arg1 = (wxDC *) 0 ;
13225 int arg2 ;
13226 int result;
13227 PyObject * obj0 = 0 ;
13228 PyObject * obj1 = 0 ;
13229 char *kwnames[] = {
13230 (char *) "self",(char *) "y", NULL
13231 };
13232
13233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13236 arg2 = (int) SWIG_AsInt(obj1);
13237 if (PyErr_Occurred()) SWIG_fail;
13238 {
13239 PyThreadState* __tstate = wxPyBeginAllowThreads();
13240 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13241
13242 wxPyEndAllowThreads(__tstate);
13243 if (PyErr_Occurred()) SWIG_fail;
13244 }
13245 resultobj = SWIG_FromInt((int)result);
13246 return resultobj;
13247 fail:
13248 return NULL;
13249 }
13250
13251
13252 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13253 PyObject *resultobj;
13254 wxDC *arg1 = (wxDC *) 0 ;
13255 int arg2 ;
13256 int result;
13257 PyObject * obj0 = 0 ;
13258 PyObject * obj1 = 0 ;
13259 char *kwnames[] = {
13260 (char *) "self",(char *) "x", NULL
13261 };
13262
13263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13266 arg2 = (int) SWIG_AsInt(obj1);
13267 if (PyErr_Occurred()) SWIG_fail;
13268 {
13269 PyThreadState* __tstate = wxPyBeginAllowThreads();
13270 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13271
13272 wxPyEndAllowThreads(__tstate);
13273 if (PyErr_Occurred()) SWIG_fail;
13274 }
13275 resultobj = SWIG_FromInt((int)result);
13276 return resultobj;
13277 fail:
13278 return NULL;
13279 }
13280
13281
13282 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13283 PyObject *resultobj;
13284 wxDC *arg1 = (wxDC *) 0 ;
13285 int arg2 ;
13286 int result;
13287 PyObject * obj0 = 0 ;
13288 PyObject * obj1 = 0 ;
13289 char *kwnames[] = {
13290 (char *) "self",(char *) "y", NULL
13291 };
13292
13293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13296 arg2 = (int) SWIG_AsInt(obj1);
13297 if (PyErr_Occurred()) SWIG_fail;
13298 {
13299 PyThreadState* __tstate = wxPyBeginAllowThreads();
13300 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13301
13302 wxPyEndAllowThreads(__tstate);
13303 if (PyErr_Occurred()) SWIG_fail;
13304 }
13305 resultobj = SWIG_FromInt((int)result);
13306 return resultobj;
13307 fail:
13308 return NULL;
13309 }
13310
13311
13312 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13313 PyObject *resultobj;
13314 wxDC *arg1 = (wxDC *) 0 ;
13315 bool result;
13316 PyObject * obj0 = 0 ;
13317 char *kwnames[] = {
13318 (char *) "self", NULL
13319 };
13320
13321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13324 {
13325 PyThreadState* __tstate = wxPyBeginAllowThreads();
13326 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13327
13328 wxPyEndAllowThreads(__tstate);
13329 if (PyErr_Occurred()) SWIG_fail;
13330 }
13331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13332 return resultobj;
13333 fail:
13334 return NULL;
13335 }
13336
13337
13338 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13339 PyObject *resultobj;
13340 wxDC *arg1 = (wxDC *) 0 ;
13341 bool result;
13342 PyObject * obj0 = 0 ;
13343 char *kwnames[] = {
13344 (char *) "self", NULL
13345 };
13346
13347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13350 {
13351 PyThreadState* __tstate = wxPyBeginAllowThreads();
13352 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13353
13354 wxPyEndAllowThreads(__tstate);
13355 if (PyErr_Occurred()) SWIG_fail;
13356 }
13357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13358 return resultobj;
13359 fail:
13360 return NULL;
13361 }
13362
13363
13364 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13365 PyObject *resultobj;
13366 wxDC *arg1 = (wxDC *) 0 ;
13367 int result;
13368 PyObject * obj0 = 0 ;
13369 char *kwnames[] = {
13370 (char *) "self", NULL
13371 };
13372
13373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13376 {
13377 PyThreadState* __tstate = wxPyBeginAllowThreads();
13378 result = (int)((wxDC const *)arg1)->GetDepth();
13379
13380 wxPyEndAllowThreads(__tstate);
13381 if (PyErr_Occurred()) SWIG_fail;
13382 }
13383 resultobj = SWIG_FromInt((int)result);
13384 return resultobj;
13385 fail:
13386 return NULL;
13387 }
13388
13389
13390 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13391 PyObject *resultobj;
13392 wxDC *arg1 = (wxDC *) 0 ;
13393 wxSize result;
13394 PyObject * obj0 = 0 ;
13395 char *kwnames[] = {
13396 (char *) "self", NULL
13397 };
13398
13399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13402 {
13403 PyThreadState* __tstate = wxPyBeginAllowThreads();
13404 result = ((wxDC const *)arg1)->GetPPI();
13405
13406 wxPyEndAllowThreads(__tstate);
13407 if (PyErr_Occurred()) SWIG_fail;
13408 }
13409 {
13410 wxSize * resultptr;
13411 resultptr = new wxSize((wxSize &) result);
13412 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13413 }
13414 return resultobj;
13415 fail:
13416 return NULL;
13417 }
13418
13419
13420 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13421 PyObject *resultobj;
13422 wxDC *arg1 = (wxDC *) 0 ;
13423 bool result;
13424 PyObject * obj0 = 0 ;
13425 char *kwnames[] = {
13426 (char *) "self", NULL
13427 };
13428
13429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13432 {
13433 PyThreadState* __tstate = wxPyBeginAllowThreads();
13434 result = (bool)((wxDC const *)arg1)->Ok();
13435
13436 wxPyEndAllowThreads(__tstate);
13437 if (PyErr_Occurred()) SWIG_fail;
13438 }
13439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13440 return resultobj;
13441 fail:
13442 return NULL;
13443 }
13444
13445
13446 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13447 PyObject *resultobj;
13448 wxDC *arg1 = (wxDC *) 0 ;
13449 int result;
13450 PyObject * obj0 = 0 ;
13451 char *kwnames[] = {
13452 (char *) "self", NULL
13453 };
13454
13455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13458 {
13459 PyThreadState* __tstate = wxPyBeginAllowThreads();
13460 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13461
13462 wxPyEndAllowThreads(__tstate);
13463 if (PyErr_Occurred()) SWIG_fail;
13464 }
13465 resultobj = SWIG_FromInt((int)result);
13466 return resultobj;
13467 fail:
13468 return NULL;
13469 }
13470
13471
13472 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13473 PyObject *resultobj;
13474 wxDC *arg1 = (wxDC *) 0 ;
13475 wxBrush *result;
13476 PyObject * obj0 = 0 ;
13477 char *kwnames[] = {
13478 (char *) "self", NULL
13479 };
13480
13481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13484 {
13485 PyThreadState* __tstate = wxPyBeginAllowThreads();
13486 {
13487 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13488 result = (wxBrush *) &_result_ref;
13489 }
13490
13491 wxPyEndAllowThreads(__tstate);
13492 if (PyErr_Occurred()) SWIG_fail;
13493 }
13494 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
13495 return resultobj;
13496 fail:
13497 return NULL;
13498 }
13499
13500
13501 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13502 PyObject *resultobj;
13503 wxDC *arg1 = (wxDC *) 0 ;
13504 wxBrush *result;
13505 PyObject * obj0 = 0 ;
13506 char *kwnames[] = {
13507 (char *) "self", NULL
13508 };
13509
13510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13513 {
13514 PyThreadState* __tstate = wxPyBeginAllowThreads();
13515 {
13516 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13517 result = (wxBrush *) &_result_ref;
13518 }
13519
13520 wxPyEndAllowThreads(__tstate);
13521 if (PyErr_Occurred()) SWIG_fail;
13522 }
13523 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
13524 return resultobj;
13525 fail:
13526 return NULL;
13527 }
13528
13529
13530 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13531 PyObject *resultobj;
13532 wxDC *arg1 = (wxDC *) 0 ;
13533 wxFont *result;
13534 PyObject * obj0 = 0 ;
13535 char *kwnames[] = {
13536 (char *) "self", NULL
13537 };
13538
13539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13542 {
13543 PyThreadState* __tstate = wxPyBeginAllowThreads();
13544 {
13545 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13546 result = (wxFont *) &_result_ref;
13547 }
13548
13549 wxPyEndAllowThreads(__tstate);
13550 if (PyErr_Occurred()) SWIG_fail;
13551 }
13552 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
13553 return resultobj;
13554 fail:
13555 return NULL;
13556 }
13557
13558
13559 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13560 PyObject *resultobj;
13561 wxDC *arg1 = (wxDC *) 0 ;
13562 wxPen *result;
13563 PyObject * obj0 = 0 ;
13564 char *kwnames[] = {
13565 (char *) "self", NULL
13566 };
13567
13568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13571 {
13572 PyThreadState* __tstate = wxPyBeginAllowThreads();
13573 {
13574 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13575 result = (wxPen *) &_result_ref;
13576 }
13577
13578 wxPyEndAllowThreads(__tstate);
13579 if (PyErr_Occurred()) SWIG_fail;
13580 }
13581 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
13582 return resultobj;
13583 fail:
13584 return NULL;
13585 }
13586
13587
13588 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13589 PyObject *resultobj;
13590 wxDC *arg1 = (wxDC *) 0 ;
13591 wxColour *result;
13592 PyObject * obj0 = 0 ;
13593 char *kwnames[] = {
13594 (char *) "self", NULL
13595 };
13596
13597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13600 {
13601 PyThreadState* __tstate = wxPyBeginAllowThreads();
13602 {
13603 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13604 result = (wxColour *) &_result_ref;
13605 }
13606
13607 wxPyEndAllowThreads(__tstate);
13608 if (PyErr_Occurred()) SWIG_fail;
13609 }
13610 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13611 return resultobj;
13612 fail:
13613 return NULL;
13614 }
13615
13616
13617 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13618 PyObject *resultobj;
13619 wxDC *arg1 = (wxDC *) 0 ;
13620 wxColour *result;
13621 PyObject * obj0 = 0 ;
13622 char *kwnames[] = {
13623 (char *) "self", NULL
13624 };
13625
13626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
13627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13629 {
13630 PyThreadState* __tstate = wxPyBeginAllowThreads();
13631 {
13632 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13633 result = (wxColour *) &_result_ref;
13634 }
13635
13636 wxPyEndAllowThreads(__tstate);
13637 if (PyErr_Occurred()) SWIG_fail;
13638 }
13639 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13640 return resultobj;
13641 fail:
13642 return NULL;
13643 }
13644
13645
13646 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13647 PyObject *resultobj;
13648 wxDC *arg1 = (wxDC *) 0 ;
13649 wxColour *arg2 = 0 ;
13650 wxColour temp2 ;
13651 PyObject * obj0 = 0 ;
13652 PyObject * obj1 = 0 ;
13653 char *kwnames[] = {
13654 (char *) "self",(char *) "colour", NULL
13655 };
13656
13657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
13658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13660 {
13661 arg2 = &temp2;
13662 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13663 }
13664 {
13665 PyThreadState* __tstate = wxPyBeginAllowThreads();
13666 (arg1)->SetTextForeground((wxColour const &)*arg2);
13667
13668 wxPyEndAllowThreads(__tstate);
13669 if (PyErr_Occurred()) SWIG_fail;
13670 }
13671 Py_INCREF(Py_None); resultobj = Py_None;
13672 return resultobj;
13673 fail:
13674 return NULL;
13675 }
13676
13677
13678 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13679 PyObject *resultobj;
13680 wxDC *arg1 = (wxDC *) 0 ;
13681 wxColour *arg2 = 0 ;
13682 wxColour temp2 ;
13683 PyObject * obj0 = 0 ;
13684 PyObject * obj1 = 0 ;
13685 char *kwnames[] = {
13686 (char *) "self",(char *) "colour", NULL
13687 };
13688
13689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
13690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13692 {
13693 arg2 = &temp2;
13694 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13695 }
13696 {
13697 PyThreadState* __tstate = wxPyBeginAllowThreads();
13698 (arg1)->SetTextBackground((wxColour const &)*arg2);
13699
13700 wxPyEndAllowThreads(__tstate);
13701 if (PyErr_Occurred()) SWIG_fail;
13702 }
13703 Py_INCREF(Py_None); resultobj = Py_None;
13704 return resultobj;
13705 fail:
13706 return NULL;
13707 }
13708
13709
13710 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13711 PyObject *resultobj;
13712 wxDC *arg1 = (wxDC *) 0 ;
13713 int result;
13714 PyObject * obj0 = 0 ;
13715 char *kwnames[] = {
13716 (char *) "self", NULL
13717 };
13718
13719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
13720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13722 {
13723 PyThreadState* __tstate = wxPyBeginAllowThreads();
13724 result = (int)((wxDC const *)arg1)->GetMapMode();
13725
13726 wxPyEndAllowThreads(__tstate);
13727 if (PyErr_Occurred()) SWIG_fail;
13728 }
13729 resultobj = SWIG_FromInt((int)result);
13730 return resultobj;
13731 fail:
13732 return NULL;
13733 }
13734
13735
13736 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13737 PyObject *resultobj;
13738 wxDC *arg1 = (wxDC *) 0 ;
13739 int arg2 ;
13740 PyObject * obj0 = 0 ;
13741 PyObject * obj1 = 0 ;
13742 char *kwnames[] = {
13743 (char *) "self",(char *) "mode", NULL
13744 };
13745
13746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
13747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13749 arg2 = (int) SWIG_AsInt(obj1);
13750 if (PyErr_Occurred()) SWIG_fail;
13751 {
13752 PyThreadState* __tstate = wxPyBeginAllowThreads();
13753 (arg1)->SetMapMode(arg2);
13754
13755 wxPyEndAllowThreads(__tstate);
13756 if (PyErr_Occurred()) SWIG_fail;
13757 }
13758 Py_INCREF(Py_None); resultobj = Py_None;
13759 return resultobj;
13760 fail:
13761 return NULL;
13762 }
13763
13764
13765 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13766 PyObject *resultobj;
13767 wxDC *arg1 = (wxDC *) 0 ;
13768 double *arg2 = (double *) 0 ;
13769 double *arg3 = (double *) 0 ;
13770 double temp2 ;
13771 double temp3 ;
13772 PyObject * obj0 = 0 ;
13773 char *kwnames[] = {
13774 (char *) "self", NULL
13775 };
13776
13777 arg2 = &temp2;
13778 arg3 = &temp3;
13779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
13780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13782 {
13783 PyThreadState* __tstate = wxPyBeginAllowThreads();
13784 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
13785
13786 wxPyEndAllowThreads(__tstate);
13787 if (PyErr_Occurred()) SWIG_fail;
13788 }
13789 Py_INCREF(Py_None); resultobj = Py_None;
13790 {
13791 PyObject *o = PyFloat_FromDouble((double) (*arg2));
13792 resultobj = t_output_helper(resultobj,o);
13793 }
13794 {
13795 PyObject *o = PyFloat_FromDouble((double) (*arg3));
13796 resultobj = t_output_helper(resultobj,o);
13797 }
13798 return resultobj;
13799 fail:
13800 return NULL;
13801 }
13802
13803
13804 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13805 PyObject *resultobj;
13806 wxDC *arg1 = (wxDC *) 0 ;
13807 double arg2 ;
13808 double arg3 ;
13809 PyObject * obj0 = 0 ;
13810 PyObject * obj1 = 0 ;
13811 PyObject * obj2 = 0 ;
13812 char *kwnames[] = {
13813 (char *) "self",(char *) "x",(char *) "y", NULL
13814 };
13815
13816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
13817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13819 arg2 = (double) SWIG_AsDouble(obj1);
13820 if (PyErr_Occurred()) SWIG_fail;
13821 arg3 = (double) SWIG_AsDouble(obj2);
13822 if (PyErr_Occurred()) SWIG_fail;
13823 {
13824 PyThreadState* __tstate = wxPyBeginAllowThreads();
13825 (arg1)->SetUserScale(arg2,arg3);
13826
13827 wxPyEndAllowThreads(__tstate);
13828 if (PyErr_Occurred()) SWIG_fail;
13829 }
13830 Py_INCREF(Py_None); resultobj = Py_None;
13831 return resultobj;
13832 fail:
13833 return NULL;
13834 }
13835
13836
13837 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13838 PyObject *resultobj;
13839 wxDC *arg1 = (wxDC *) 0 ;
13840 double *arg2 = (double *) 0 ;
13841 double *arg3 = (double *) 0 ;
13842 double temp2 ;
13843 double temp3 ;
13844 PyObject * obj0 = 0 ;
13845 char *kwnames[] = {
13846 (char *) "self", NULL
13847 };
13848
13849 arg2 = &temp2;
13850 arg3 = &temp3;
13851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
13852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13854 {
13855 PyThreadState* __tstate = wxPyBeginAllowThreads();
13856 (arg1)->GetLogicalScale(arg2,arg3);
13857
13858 wxPyEndAllowThreads(__tstate);
13859 if (PyErr_Occurred()) SWIG_fail;
13860 }
13861 Py_INCREF(Py_None); resultobj = Py_None;
13862 {
13863 PyObject *o = PyFloat_FromDouble((double) (*arg2));
13864 resultobj = t_output_helper(resultobj,o);
13865 }
13866 {
13867 PyObject *o = PyFloat_FromDouble((double) (*arg3));
13868 resultobj = t_output_helper(resultobj,o);
13869 }
13870 return resultobj;
13871 fail:
13872 return NULL;
13873 }
13874
13875
13876 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13877 PyObject *resultobj;
13878 wxDC *arg1 = (wxDC *) 0 ;
13879 double arg2 ;
13880 double arg3 ;
13881 PyObject * obj0 = 0 ;
13882 PyObject * obj1 = 0 ;
13883 PyObject * obj2 = 0 ;
13884 char *kwnames[] = {
13885 (char *) "self",(char *) "x",(char *) "y", NULL
13886 };
13887
13888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
13889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13891 arg2 = (double) SWIG_AsDouble(obj1);
13892 if (PyErr_Occurred()) SWIG_fail;
13893 arg3 = (double) SWIG_AsDouble(obj2);
13894 if (PyErr_Occurred()) SWIG_fail;
13895 {
13896 PyThreadState* __tstate = wxPyBeginAllowThreads();
13897 (arg1)->SetLogicalScale(arg2,arg3);
13898
13899 wxPyEndAllowThreads(__tstate);
13900 if (PyErr_Occurred()) SWIG_fail;
13901 }
13902 Py_INCREF(Py_None); resultobj = Py_None;
13903 return resultobj;
13904 fail:
13905 return NULL;
13906 }
13907
13908
13909 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
13910 PyObject *resultobj;
13911 wxDC *arg1 = (wxDC *) 0 ;
13912 wxPoint result;
13913 PyObject * obj0 = 0 ;
13914 char *kwnames[] = {
13915 (char *) "self", NULL
13916 };
13917
13918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
13919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13921 {
13922 PyThreadState* __tstate = wxPyBeginAllowThreads();
13923 result = ((wxDC const *)arg1)->GetLogicalOrigin();
13924
13925 wxPyEndAllowThreads(__tstate);
13926 if (PyErr_Occurred()) SWIG_fail;
13927 }
13928 {
13929 wxPoint * resultptr;
13930 resultptr = new wxPoint((wxPoint &) result);
13931 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
13932 }
13933 return resultobj;
13934 fail:
13935 return NULL;
13936 }
13937
13938
13939 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13940 PyObject *resultobj;
13941 wxDC *arg1 = (wxDC *) 0 ;
13942 int *arg2 = (int *) 0 ;
13943 int *arg3 = (int *) 0 ;
13944 int temp2 ;
13945 int temp3 ;
13946 PyObject * obj0 = 0 ;
13947 char *kwnames[] = {
13948 (char *) "self", NULL
13949 };
13950
13951 arg2 = &temp2;
13952 arg3 = &temp3;
13953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
13954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13956 {
13957 PyThreadState* __tstate = wxPyBeginAllowThreads();
13958 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
13959
13960 wxPyEndAllowThreads(__tstate);
13961 if (PyErr_Occurred()) SWIG_fail;
13962 }
13963 Py_INCREF(Py_None); resultobj = Py_None;
13964 {
13965 PyObject *o = PyInt_FromLong((long) (*arg2));
13966 resultobj = t_output_helper(resultobj,o);
13967 }
13968 {
13969 PyObject *o = PyInt_FromLong((long) (*arg3));
13970 resultobj = t_output_helper(resultobj,o);
13971 }
13972 return resultobj;
13973 fail:
13974 return NULL;
13975 }
13976
13977
13978 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
13979 PyObject *resultobj;
13980 wxDC *arg1 = (wxDC *) 0 ;
13981 int arg2 ;
13982 int arg3 ;
13983 PyObject * obj0 = 0 ;
13984 PyObject * obj1 = 0 ;
13985 PyObject * obj2 = 0 ;
13986 char *kwnames[] = {
13987 (char *) "self",(char *) "x",(char *) "y", NULL
13988 };
13989
13990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
13991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13993 arg2 = (int) SWIG_AsInt(obj1);
13994 if (PyErr_Occurred()) SWIG_fail;
13995 arg3 = (int) SWIG_AsInt(obj2);
13996 if (PyErr_Occurred()) SWIG_fail;
13997 {
13998 PyThreadState* __tstate = wxPyBeginAllowThreads();
13999 (arg1)->SetLogicalOrigin(arg2,arg3);
14000
14001 wxPyEndAllowThreads(__tstate);
14002 if (PyErr_Occurred()) SWIG_fail;
14003 }
14004 Py_INCREF(Py_None); resultobj = Py_None;
14005 return resultobj;
14006 fail:
14007 return NULL;
14008 }
14009
14010
14011 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14012 PyObject *resultobj;
14013 wxDC *arg1 = (wxDC *) 0 ;
14014 wxPoint result;
14015 PyObject * obj0 = 0 ;
14016 char *kwnames[] = {
14017 (char *) "self", NULL
14018 };
14019
14020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14023 {
14024 PyThreadState* __tstate = wxPyBeginAllowThreads();
14025 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14026
14027 wxPyEndAllowThreads(__tstate);
14028 if (PyErr_Occurred()) SWIG_fail;
14029 }
14030 {
14031 wxPoint * resultptr;
14032 resultptr = new wxPoint((wxPoint &) result);
14033 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14034 }
14035 return resultobj;
14036 fail:
14037 return NULL;
14038 }
14039
14040
14041 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14042 PyObject *resultobj;
14043 wxDC *arg1 = (wxDC *) 0 ;
14044 int *arg2 = (int *) 0 ;
14045 int *arg3 = (int *) 0 ;
14046 int temp2 ;
14047 int temp3 ;
14048 PyObject * obj0 = 0 ;
14049 char *kwnames[] = {
14050 (char *) "self", NULL
14051 };
14052
14053 arg2 = &temp2;
14054 arg3 = &temp3;
14055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14058 {
14059 PyThreadState* __tstate = wxPyBeginAllowThreads();
14060 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14061
14062 wxPyEndAllowThreads(__tstate);
14063 if (PyErr_Occurred()) SWIG_fail;
14064 }
14065 Py_INCREF(Py_None); resultobj = Py_None;
14066 {
14067 PyObject *o = PyInt_FromLong((long) (*arg2));
14068 resultobj = t_output_helper(resultobj,o);
14069 }
14070 {
14071 PyObject *o = PyInt_FromLong((long) (*arg3));
14072 resultobj = t_output_helper(resultobj,o);
14073 }
14074 return resultobj;
14075 fail:
14076 return NULL;
14077 }
14078
14079
14080 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14081 PyObject *resultobj;
14082 wxDC *arg1 = (wxDC *) 0 ;
14083 int arg2 ;
14084 int arg3 ;
14085 PyObject * obj0 = 0 ;
14086 PyObject * obj1 = 0 ;
14087 PyObject * obj2 = 0 ;
14088 char *kwnames[] = {
14089 (char *) "self",(char *) "x",(char *) "y", NULL
14090 };
14091
14092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14095 arg2 = (int) SWIG_AsInt(obj1);
14096 if (PyErr_Occurred()) SWIG_fail;
14097 arg3 = (int) SWIG_AsInt(obj2);
14098 if (PyErr_Occurred()) SWIG_fail;
14099 {
14100 PyThreadState* __tstate = wxPyBeginAllowThreads();
14101 (arg1)->SetDeviceOrigin(arg2,arg3);
14102
14103 wxPyEndAllowThreads(__tstate);
14104 if (PyErr_Occurred()) SWIG_fail;
14105 }
14106 Py_INCREF(Py_None); resultobj = Py_None;
14107 return resultobj;
14108 fail:
14109 return NULL;
14110 }
14111
14112
14113 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14114 PyObject *resultobj;
14115 wxDC *arg1 = (wxDC *) 0 ;
14116 bool arg2 ;
14117 bool arg3 ;
14118 PyObject * obj0 = 0 ;
14119 PyObject * obj1 = 0 ;
14120 PyObject * obj2 = 0 ;
14121 char *kwnames[] = {
14122 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14123 };
14124
14125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14128 arg2 = (bool) SWIG_AsBool(obj1);
14129 if (PyErr_Occurred()) SWIG_fail;
14130 arg3 = (bool) SWIG_AsBool(obj2);
14131 if (PyErr_Occurred()) SWIG_fail;
14132 {
14133 PyThreadState* __tstate = wxPyBeginAllowThreads();
14134 (arg1)->SetAxisOrientation(arg2,arg3);
14135
14136 wxPyEndAllowThreads(__tstate);
14137 if (PyErr_Occurred()) SWIG_fail;
14138 }
14139 Py_INCREF(Py_None); resultobj = Py_None;
14140 return resultobj;
14141 fail:
14142 return NULL;
14143 }
14144
14145
14146 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14147 PyObject *resultobj;
14148 wxDC *arg1 = (wxDC *) 0 ;
14149 int result;
14150 PyObject * obj0 = 0 ;
14151 char *kwnames[] = {
14152 (char *) "self", NULL
14153 };
14154
14155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14158 {
14159 PyThreadState* __tstate = wxPyBeginAllowThreads();
14160 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14161
14162 wxPyEndAllowThreads(__tstate);
14163 if (PyErr_Occurred()) SWIG_fail;
14164 }
14165 resultobj = SWIG_FromInt((int)result);
14166 return resultobj;
14167 fail:
14168 return NULL;
14169 }
14170
14171
14172 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14173 PyObject *resultobj;
14174 wxDC *arg1 = (wxDC *) 0 ;
14175 int arg2 ;
14176 PyObject * obj0 = 0 ;
14177 PyObject * obj1 = 0 ;
14178 char *kwnames[] = {
14179 (char *) "self",(char *) "function", NULL
14180 };
14181
14182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14185 arg2 = (int) SWIG_AsInt(obj1);
14186 if (PyErr_Occurred()) SWIG_fail;
14187 {
14188 PyThreadState* __tstate = wxPyBeginAllowThreads();
14189 (arg1)->SetLogicalFunction(arg2);
14190
14191 wxPyEndAllowThreads(__tstate);
14192 if (PyErr_Occurred()) SWIG_fail;
14193 }
14194 Py_INCREF(Py_None); resultobj = Py_None;
14195 return resultobj;
14196 fail:
14197 return NULL;
14198 }
14199
14200
14201 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14202 PyObject *resultobj;
14203 wxDC *arg1 = (wxDC *) 0 ;
14204 bool arg2 ;
14205 PyObject * obj0 = 0 ;
14206 PyObject * obj1 = 0 ;
14207 char *kwnames[] = {
14208 (char *) "self",(char *) "opt", NULL
14209 };
14210
14211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14214 arg2 = (bool) SWIG_AsBool(obj1);
14215 if (PyErr_Occurred()) SWIG_fail;
14216 {
14217 PyThreadState* __tstate = wxPyBeginAllowThreads();
14218 (arg1)->SetOptimization(arg2);
14219
14220 wxPyEndAllowThreads(__tstate);
14221 if (PyErr_Occurred()) SWIG_fail;
14222 }
14223 Py_INCREF(Py_None); resultobj = Py_None;
14224 return resultobj;
14225 fail:
14226 return NULL;
14227 }
14228
14229
14230 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14231 PyObject *resultobj;
14232 wxDC *arg1 = (wxDC *) 0 ;
14233 bool result;
14234 PyObject * obj0 = 0 ;
14235 char *kwnames[] = {
14236 (char *) "self", NULL
14237 };
14238
14239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14242 {
14243 PyThreadState* __tstate = wxPyBeginAllowThreads();
14244 result = (bool)(arg1)->GetOptimization();
14245
14246 wxPyEndAllowThreads(__tstate);
14247 if (PyErr_Occurred()) SWIG_fail;
14248 }
14249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14250 return resultobj;
14251 fail:
14252 return NULL;
14253 }
14254
14255
14256 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14257 PyObject *resultobj;
14258 wxDC *arg1 = (wxDC *) 0 ;
14259 int arg2 ;
14260 int arg3 ;
14261 PyObject * obj0 = 0 ;
14262 PyObject * obj1 = 0 ;
14263 PyObject * obj2 = 0 ;
14264 char *kwnames[] = {
14265 (char *) "self",(char *) "x",(char *) "y", NULL
14266 };
14267
14268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14271 arg2 = (int) SWIG_AsInt(obj1);
14272 if (PyErr_Occurred()) SWIG_fail;
14273 arg3 = (int) SWIG_AsInt(obj2);
14274 if (PyErr_Occurred()) SWIG_fail;
14275 {
14276 PyThreadState* __tstate = wxPyBeginAllowThreads();
14277 (arg1)->CalcBoundingBox(arg2,arg3);
14278
14279 wxPyEndAllowThreads(__tstate);
14280 if (PyErr_Occurred()) SWIG_fail;
14281 }
14282 Py_INCREF(Py_None); resultobj = Py_None;
14283 return resultobj;
14284 fail:
14285 return NULL;
14286 }
14287
14288
14289 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14290 PyObject *resultobj;
14291 wxDC *arg1 = (wxDC *) 0 ;
14292 PyObject * obj0 = 0 ;
14293 char *kwnames[] = {
14294 (char *) "self", NULL
14295 };
14296
14297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14300 {
14301 PyThreadState* __tstate = wxPyBeginAllowThreads();
14302 (arg1)->ResetBoundingBox();
14303
14304 wxPyEndAllowThreads(__tstate);
14305 if (PyErr_Occurred()) SWIG_fail;
14306 }
14307 Py_INCREF(Py_None); resultobj = Py_None;
14308 return resultobj;
14309 fail:
14310 return NULL;
14311 }
14312
14313
14314 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14315 PyObject *resultobj;
14316 wxDC *arg1 = (wxDC *) 0 ;
14317 int result;
14318 PyObject * obj0 = 0 ;
14319 char *kwnames[] = {
14320 (char *) "self", NULL
14321 };
14322
14323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14326 {
14327 PyThreadState* __tstate = wxPyBeginAllowThreads();
14328 result = (int)((wxDC const *)arg1)->MinX();
14329
14330 wxPyEndAllowThreads(__tstate);
14331 if (PyErr_Occurred()) SWIG_fail;
14332 }
14333 resultobj = SWIG_FromInt((int)result);
14334 return resultobj;
14335 fail:
14336 return NULL;
14337 }
14338
14339
14340 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14341 PyObject *resultobj;
14342 wxDC *arg1 = (wxDC *) 0 ;
14343 int result;
14344 PyObject * obj0 = 0 ;
14345 char *kwnames[] = {
14346 (char *) "self", NULL
14347 };
14348
14349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14352 {
14353 PyThreadState* __tstate = wxPyBeginAllowThreads();
14354 result = (int)((wxDC const *)arg1)->MaxX();
14355
14356 wxPyEndAllowThreads(__tstate);
14357 if (PyErr_Occurred()) SWIG_fail;
14358 }
14359 resultobj = SWIG_FromInt((int)result);
14360 return resultobj;
14361 fail:
14362 return NULL;
14363 }
14364
14365
14366 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14367 PyObject *resultobj;
14368 wxDC *arg1 = (wxDC *) 0 ;
14369 int result;
14370 PyObject * obj0 = 0 ;
14371 char *kwnames[] = {
14372 (char *) "self", NULL
14373 };
14374
14375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14378 {
14379 PyThreadState* __tstate = wxPyBeginAllowThreads();
14380 result = (int)((wxDC const *)arg1)->MinY();
14381
14382 wxPyEndAllowThreads(__tstate);
14383 if (PyErr_Occurred()) SWIG_fail;
14384 }
14385 resultobj = SWIG_FromInt((int)result);
14386 return resultobj;
14387 fail:
14388 return NULL;
14389 }
14390
14391
14392 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14393 PyObject *resultobj;
14394 wxDC *arg1 = (wxDC *) 0 ;
14395 int result;
14396 PyObject * obj0 = 0 ;
14397 char *kwnames[] = {
14398 (char *) "self", NULL
14399 };
14400
14401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14404 {
14405 PyThreadState* __tstate = wxPyBeginAllowThreads();
14406 result = (int)((wxDC const *)arg1)->MaxY();
14407
14408 wxPyEndAllowThreads(__tstate);
14409 if (PyErr_Occurred()) SWIG_fail;
14410 }
14411 resultobj = SWIG_FromInt((int)result);
14412 return resultobj;
14413 fail:
14414 return NULL;
14415 }
14416
14417
14418 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14419 PyObject *resultobj;
14420 wxDC *arg1 = (wxDC *) 0 ;
14421 int *arg2 = (int *) 0 ;
14422 int *arg3 = (int *) 0 ;
14423 int *arg4 = (int *) 0 ;
14424 int *arg5 = (int *) 0 ;
14425 int temp2 ;
14426 int temp3 ;
14427 int temp4 ;
14428 int temp5 ;
14429 PyObject * obj0 = 0 ;
14430 char *kwnames[] = {
14431 (char *) "self", NULL
14432 };
14433
14434 arg2 = &temp2;
14435 arg3 = &temp3;
14436 arg4 = &temp4;
14437 arg5 = &temp5;
14438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14441 {
14442 PyThreadState* __tstate = wxPyBeginAllowThreads();
14443 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14444
14445 wxPyEndAllowThreads(__tstate);
14446 if (PyErr_Occurred()) SWIG_fail;
14447 }
14448 Py_INCREF(Py_None); resultobj = Py_None;
14449 {
14450 PyObject *o = PyInt_FromLong((long) (*arg2));
14451 resultobj = t_output_helper(resultobj,o);
14452 }
14453 {
14454 PyObject *o = PyInt_FromLong((long) (*arg3));
14455 resultobj = t_output_helper(resultobj,o);
14456 }
14457 {
14458 PyObject *o = PyInt_FromLong((long) (*arg4));
14459 resultobj = t_output_helper(resultobj,o);
14460 }
14461 {
14462 PyObject *o = PyInt_FromLong((long) (*arg5));
14463 resultobj = t_output_helper(resultobj,o);
14464 }
14465 return resultobj;
14466 fail:
14467 return NULL;
14468 }
14469
14470
14471 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14472 PyObject *resultobj;
14473 wxDC *arg1 = (wxDC *) 0 ;
14474 PyObject *arg2 = (PyObject *) 0 ;
14475 PyObject *arg3 = (PyObject *) 0 ;
14476 PyObject *arg4 = (PyObject *) 0 ;
14477 PyObject *result;
14478 PyObject * obj0 = 0 ;
14479 PyObject * obj1 = 0 ;
14480 PyObject * obj2 = 0 ;
14481 PyObject * obj3 = 0 ;
14482 char *kwnames[] = {
14483 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14484 };
14485
14486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14489 arg2 = obj1;
14490 arg3 = obj2;
14491 arg4 = obj3;
14492 {
14493 PyThreadState* __tstate = wxPyBeginAllowThreads();
14494 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14495
14496 wxPyEndAllowThreads(__tstate);
14497 if (PyErr_Occurred()) SWIG_fail;
14498 }
14499 resultobj = result;
14500 return resultobj;
14501 fail:
14502 return NULL;
14503 }
14504
14505
14506 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14507 PyObject *resultobj;
14508 wxDC *arg1 = (wxDC *) 0 ;
14509 PyObject *arg2 = (PyObject *) 0 ;
14510 PyObject *arg3 = (PyObject *) 0 ;
14511 PyObject *arg4 = (PyObject *) 0 ;
14512 PyObject *result;
14513 PyObject * obj0 = 0 ;
14514 PyObject * obj1 = 0 ;
14515 PyObject * obj2 = 0 ;
14516 PyObject * obj3 = 0 ;
14517 char *kwnames[] = {
14518 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14519 };
14520
14521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14524 arg2 = obj1;
14525 arg3 = obj2;
14526 arg4 = obj3;
14527 {
14528 PyThreadState* __tstate = wxPyBeginAllowThreads();
14529 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14530
14531 wxPyEndAllowThreads(__tstate);
14532 if (PyErr_Occurred()) SWIG_fail;
14533 }
14534 resultobj = result;
14535 return resultobj;
14536 fail:
14537 return NULL;
14538 }
14539
14540
14541 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14542 PyObject *resultobj;
14543 wxDC *arg1 = (wxDC *) 0 ;
14544 PyObject *arg2 = (PyObject *) 0 ;
14545 PyObject *arg3 = (PyObject *) 0 ;
14546 PyObject *arg4 = (PyObject *) 0 ;
14547 PyObject *result;
14548 PyObject * obj0 = 0 ;
14549 PyObject * obj1 = 0 ;
14550 PyObject * obj2 = 0 ;
14551 PyObject * obj3 = 0 ;
14552 char *kwnames[] = {
14553 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14554 };
14555
14556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14559 arg2 = obj1;
14560 arg3 = obj2;
14561 arg4 = obj3;
14562 {
14563 PyThreadState* __tstate = wxPyBeginAllowThreads();
14564 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14565
14566 wxPyEndAllowThreads(__tstate);
14567 if (PyErr_Occurred()) SWIG_fail;
14568 }
14569 resultobj = result;
14570 return resultobj;
14571 fail:
14572 return NULL;
14573 }
14574
14575
14576 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14577 PyObject *resultobj;
14578 wxDC *arg1 = (wxDC *) 0 ;
14579 PyObject *arg2 = (PyObject *) 0 ;
14580 PyObject *arg3 = (PyObject *) 0 ;
14581 PyObject *arg4 = (PyObject *) 0 ;
14582 PyObject *result;
14583 PyObject * obj0 = 0 ;
14584 PyObject * obj1 = 0 ;
14585 PyObject * obj2 = 0 ;
14586 PyObject * obj3 = 0 ;
14587 char *kwnames[] = {
14588 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14589 };
14590
14591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14594 arg2 = obj1;
14595 arg3 = obj2;
14596 arg4 = obj3;
14597 {
14598 PyThreadState* __tstate = wxPyBeginAllowThreads();
14599 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14600
14601 wxPyEndAllowThreads(__tstate);
14602 if (PyErr_Occurred()) SWIG_fail;
14603 }
14604 resultobj = result;
14605 return resultobj;
14606 fail:
14607 return NULL;
14608 }
14609
14610
14611 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
14612 PyObject *resultobj;
14613 wxDC *arg1 = (wxDC *) 0 ;
14614 PyObject *arg2 = (PyObject *) 0 ;
14615 PyObject *arg3 = (PyObject *) 0 ;
14616 PyObject *arg4 = (PyObject *) 0 ;
14617 PyObject *result;
14618 PyObject * obj0 = 0 ;
14619 PyObject * obj1 = 0 ;
14620 PyObject * obj2 = 0 ;
14621 PyObject * obj3 = 0 ;
14622 char *kwnames[] = {
14623 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14624 };
14625
14626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14629 arg2 = obj1;
14630 arg3 = obj2;
14631 arg4 = obj3;
14632 {
14633 PyThreadState* __tstate = wxPyBeginAllowThreads();
14634 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
14635
14636 wxPyEndAllowThreads(__tstate);
14637 if (PyErr_Occurred()) SWIG_fail;
14638 }
14639 resultobj = result;
14640 return resultobj;
14641 fail:
14642 return NULL;
14643 }
14644
14645
14646 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
14647 PyObject *resultobj;
14648 wxDC *arg1 = (wxDC *) 0 ;
14649 PyObject *arg2 = (PyObject *) 0 ;
14650 PyObject *arg3 = (PyObject *) 0 ;
14651 PyObject *arg4 = (PyObject *) 0 ;
14652 PyObject *arg5 = (PyObject *) 0 ;
14653 PyObject *result;
14654 PyObject * obj0 = 0 ;
14655 PyObject * obj1 = 0 ;
14656 PyObject * obj2 = 0 ;
14657 PyObject * obj3 = 0 ;
14658 PyObject * obj4 = 0 ;
14659 char *kwnames[] = {
14660 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
14661 };
14662
14663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14666 arg2 = obj1;
14667 arg3 = obj2;
14668 arg4 = obj3;
14669 arg5 = obj4;
14670 {
14671 PyThreadState* __tstate = wxPyBeginAllowThreads();
14672 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
14673
14674 wxPyEndAllowThreads(__tstate);
14675 if (PyErr_Occurred()) SWIG_fail;
14676 }
14677 resultobj = result;
14678 return resultobj;
14679 fail:
14680 return NULL;
14681 }
14682
14683
14684 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
14685 PyObject *obj;
14686 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14687 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
14688 Py_INCREF(obj);
14689 return Py_BuildValue((char *)"");
14690 }
14691 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14692 PyObject *resultobj;
14693 wxMemoryDC *result;
14694 char *kwnames[] = {
14695 NULL
14696 };
14697
14698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
14699 {
14700 PyThreadState* __tstate = wxPyBeginAllowThreads();
14701 result = (wxMemoryDC *)new wxMemoryDC();
14702
14703 wxPyEndAllowThreads(__tstate);
14704 if (PyErr_Occurred()) SWIG_fail;
14705 }
14706 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
14707 return resultobj;
14708 fail:
14709 return NULL;
14710 }
14711
14712
14713 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14714 PyObject *resultobj;
14715 wxDC *arg1 = (wxDC *) 0 ;
14716 wxMemoryDC *result;
14717 PyObject * obj0 = 0 ;
14718 char *kwnames[] = {
14719 (char *) "oldDC", NULL
14720 };
14721
14722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
14723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14725 {
14726 PyThreadState* __tstate = wxPyBeginAllowThreads();
14727 result = (wxMemoryDC *)new wxMemoryDC(arg1);
14728
14729 wxPyEndAllowThreads(__tstate);
14730 if (PyErr_Occurred()) SWIG_fail;
14731 }
14732 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
14733 return resultobj;
14734 fail:
14735 return NULL;
14736 }
14737
14738
14739 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
14740 PyObject *resultobj;
14741 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
14742 wxBitmap *arg2 = 0 ;
14743 PyObject * obj0 = 0 ;
14744 PyObject * obj1 = 0 ;
14745 char *kwnames[] = {
14746 (char *) "self",(char *) "bitmap", NULL
14747 };
14748
14749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
14750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
14751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14752 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
14753 SWIG_POINTER_EXCEPTION | 0)) == -1)
14754 SWIG_fail;
14755 if (arg2 == NULL) {
14756 PyErr_SetString(PyExc_TypeError,"null reference");
14757 SWIG_fail;
14758 }
14759 {
14760 PyThreadState* __tstate = wxPyBeginAllowThreads();
14761 (arg1)->SelectObject((wxBitmap const &)*arg2);
14762
14763 wxPyEndAllowThreads(__tstate);
14764 if (PyErr_Occurred()) SWIG_fail;
14765 }
14766 Py_INCREF(Py_None); resultobj = Py_None;
14767 return resultobj;
14768 fail:
14769 return NULL;
14770 }
14771
14772
14773 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
14774 PyObject *obj;
14775 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14776 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
14777 Py_INCREF(obj);
14778 return Py_BuildValue((char *)"");
14779 }
14780 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
14781 PyObject *resultobj;
14782 wxDC *arg1 = (wxDC *) 0 ;
14783 wxBitmap *arg2 = 0 ;
14784 wxBufferedDC *result;
14785 PyObject * obj0 = 0 ;
14786 PyObject * obj1 = 0 ;
14787
14788 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
14789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14791 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
14792 SWIG_POINTER_EXCEPTION | 0)) == -1)
14793 SWIG_fail;
14794 if (arg2 == NULL) {
14795 PyErr_SetString(PyExc_TypeError,"null reference");
14796 SWIG_fail;
14797 }
14798 {
14799 PyThreadState* __tstate = wxPyBeginAllowThreads();
14800 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
14801
14802 wxPyEndAllowThreads(__tstate);
14803 if (PyErr_Occurred()) SWIG_fail;
14804 }
14805 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
14806 return resultobj;
14807 fail:
14808 return NULL;
14809 }
14810
14811
14812 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
14813 PyObject *resultobj;
14814 wxDC *arg1 = (wxDC *) 0 ;
14815 wxSize *arg2 = 0 ;
14816 wxBufferedDC *result;
14817 wxSize temp2 ;
14818 PyObject * obj0 = 0 ;
14819 PyObject * obj1 = 0 ;
14820
14821 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
14822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14824 {
14825 arg2 = &temp2;
14826 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14827 }
14828 {
14829 PyThreadState* __tstate = wxPyBeginAllowThreads();
14830 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
14831
14832 wxPyEndAllowThreads(__tstate);
14833 if (PyErr_Occurred()) SWIG_fail;
14834 }
14835 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
14836 return resultobj;
14837 fail:
14838 return NULL;
14839 }
14840
14841
14842 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
14843 int argc;
14844 PyObject *argv[3];
14845 int ii;
14846
14847 argc = PyObject_Length(args);
14848 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
14849 argv[ii] = PyTuple_GetItem(args,ii);
14850 }
14851 if (argc == 2) {
14852 int _v;
14853 {
14854 void *ptr;
14855 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
14856 _v = 0;
14857 PyErr_Clear();
14858 } else {
14859 _v = 1;
14860 }
14861 }
14862 if (_v) {
14863 {
14864 void *ptr;
14865 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
14866 _v = 0;
14867 PyErr_Clear();
14868 } else {
14869 _v = 1;
14870 }
14871 }
14872 if (_v) {
14873 return _wrap_new_BufferedDC__SWIG_0(self,args);
14874 }
14875 }
14876 }
14877 if (argc == 2) {
14878 int _v;
14879 {
14880 void *ptr;
14881 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
14882 _v = 0;
14883 PyErr_Clear();
14884 } else {
14885 _v = 1;
14886 }
14887 }
14888 if (_v) {
14889 {
14890 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
14891 }
14892 if (_v) {
14893 return _wrap_new_BufferedDC__SWIG_1(self,args);
14894 }
14895 }
14896 }
14897
14898 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
14899 return NULL;
14900 }
14901
14902
14903 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
14904 PyObject *resultobj;
14905 wxDC *arg1 = (wxDC *) 0 ;
14906 wxSize *arg2 = 0 ;
14907 wxBufferedDC *result;
14908 wxSize temp2 ;
14909 PyObject * obj0 = 0 ;
14910 PyObject * obj1 = 0 ;
14911
14912 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
14913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14915 {
14916 arg2 = &temp2;
14917 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14918 }
14919 {
14920 PyThreadState* __tstate = wxPyBeginAllowThreads();
14921 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
14922
14923 wxPyEndAllowThreads(__tstate);
14924 if (PyErr_Occurred()) SWIG_fail;
14925 }
14926 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
14927 return resultobj;
14928 fail:
14929 return NULL;
14930 }
14931
14932
14933 static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14934 PyObject *resultobj;
14935 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
14936 PyObject * obj0 = 0 ;
14937 char *kwnames[] = {
14938 (char *) "self", NULL
14939 };
14940
14941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
14942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
14943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14944 {
14945 PyThreadState* __tstate = wxPyBeginAllowThreads();
14946 delete arg1;
14947
14948 wxPyEndAllowThreads(__tstate);
14949 if (PyErr_Occurred()) SWIG_fail;
14950 }
14951 Py_INCREF(Py_None); resultobj = Py_None;
14952 return resultobj;
14953 fail:
14954 return NULL;
14955 }
14956
14957
14958 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
14959 PyObject *resultobj;
14960 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
14961 PyObject * obj0 = 0 ;
14962 char *kwnames[] = {
14963 (char *) "self", NULL
14964 };
14965
14966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
14967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
14968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14969 {
14970 PyThreadState* __tstate = wxPyBeginAllowThreads();
14971 (arg1)->UnMask();
14972
14973 wxPyEndAllowThreads(__tstate);
14974 if (PyErr_Occurred()) SWIG_fail;
14975 }
14976 Py_INCREF(Py_None); resultobj = Py_None;
14977 return resultobj;
14978 fail:
14979 return NULL;
14980 }
14981
14982
14983 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
14984 PyObject *obj;
14985 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14986 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
14987 Py_INCREF(obj);
14988 return Py_BuildValue((char *)"");
14989 }
14990 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14991 PyObject *resultobj;
14992 wxWindow *arg1 = (wxWindow *) 0 ;
14993 wxBitmap const &arg2_defvalue = wxNullBitmap ;
14994 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
14995 wxBufferedPaintDC *result;
14996 PyObject * obj0 = 0 ;
14997 PyObject * obj1 = 0 ;
14998 char *kwnames[] = {
14999 (char *) "window",(char *) "buffer", NULL
15000 };
15001
15002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15005 if (obj1) {
15006 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15007 SWIG_POINTER_EXCEPTION | 0)) == -1)
15008 SWIG_fail;
15009 if (arg2 == NULL) {
15010 PyErr_SetString(PyExc_TypeError,"null reference");
15011 SWIG_fail;
15012 }
15013 }
15014 {
15015 PyThreadState* __tstate = wxPyBeginAllowThreads();
15016 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15017
15018 wxPyEndAllowThreads(__tstate);
15019 if (PyErr_Occurred()) SWIG_fail;
15020 }
15021 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15022 return resultobj;
15023 fail:
15024 return NULL;
15025 }
15026
15027
15028 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15029 PyObject *obj;
15030 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15031 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15032 Py_INCREF(obj);
15033 return Py_BuildValue((char *)"");
15034 }
15035 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15036 PyObject *resultobj;
15037 wxScreenDC *result;
15038 char *kwnames[] = {
15039 NULL
15040 };
15041
15042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15043 {
15044 PyThreadState* __tstate = wxPyBeginAllowThreads();
15045 result = (wxScreenDC *)new wxScreenDC();
15046
15047 wxPyEndAllowThreads(__tstate);
15048 if (PyErr_Occurred()) SWIG_fail;
15049 }
15050 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15051 return resultobj;
15052 fail:
15053 return NULL;
15054 }
15055
15056
15057 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15058 PyObject *resultobj;
15059 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15060 wxWindow *arg2 = (wxWindow *) 0 ;
15061 bool result;
15062 PyObject * obj0 = 0 ;
15063 PyObject * obj1 = 0 ;
15064 char *kwnames[] = {
15065 (char *) "self",(char *) "window", NULL
15066 };
15067
15068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15071 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15073 {
15074 PyThreadState* __tstate = wxPyBeginAllowThreads();
15075 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15076
15077 wxPyEndAllowThreads(__tstate);
15078 if (PyErr_Occurred()) SWIG_fail;
15079 }
15080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15081 return resultobj;
15082 fail:
15083 return NULL;
15084 }
15085
15086
15087 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15088 PyObject *resultobj;
15089 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15090 wxRect *arg2 = (wxRect *) NULL ;
15091 bool result;
15092 PyObject * obj0 = 0 ;
15093 PyObject * obj1 = 0 ;
15094 char *kwnames[] = {
15095 (char *) "self",(char *) "rect", NULL
15096 };
15097
15098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15101 if (obj1) {
15102 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15104 }
15105 {
15106 PyThreadState* __tstate = wxPyBeginAllowThreads();
15107 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15108
15109 wxPyEndAllowThreads(__tstate);
15110 if (PyErr_Occurred()) SWIG_fail;
15111 }
15112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15113 return resultobj;
15114 fail:
15115 return NULL;
15116 }
15117
15118
15119 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15120 PyObject *resultobj;
15121 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15122 bool result;
15123 PyObject * obj0 = 0 ;
15124 char *kwnames[] = {
15125 (char *) "self", NULL
15126 };
15127
15128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15131 {
15132 PyThreadState* __tstate = wxPyBeginAllowThreads();
15133 result = (bool)(arg1)->EndDrawingOnTop();
15134
15135 wxPyEndAllowThreads(__tstate);
15136 if (PyErr_Occurred()) SWIG_fail;
15137 }
15138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15139 return resultobj;
15140 fail:
15141 return NULL;
15142 }
15143
15144
15145 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15146 PyObject *obj;
15147 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15148 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15149 Py_INCREF(obj);
15150 return Py_BuildValue((char *)"");
15151 }
15152 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15153 PyObject *resultobj;
15154 wxWindow *arg1 = (wxWindow *) 0 ;
15155 wxClientDC *result;
15156 PyObject * obj0 = 0 ;
15157 char *kwnames[] = {
15158 (char *) "win", NULL
15159 };
15160
15161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15164 {
15165 PyThreadState* __tstate = wxPyBeginAllowThreads();
15166 result = (wxClientDC *)new wxClientDC(arg1);
15167
15168 wxPyEndAllowThreads(__tstate);
15169 if (PyErr_Occurred()) SWIG_fail;
15170 }
15171 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
15172 return resultobj;
15173 fail:
15174 return NULL;
15175 }
15176
15177
15178 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15179 PyObject *obj;
15180 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15181 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15182 Py_INCREF(obj);
15183 return Py_BuildValue((char *)"");
15184 }
15185 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15186 PyObject *resultobj;
15187 wxWindow *arg1 = (wxWindow *) 0 ;
15188 wxPaintDC *result;
15189 PyObject * obj0 = 0 ;
15190 char *kwnames[] = {
15191 (char *) "win", NULL
15192 };
15193
15194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15197 {
15198 PyThreadState* __tstate = wxPyBeginAllowThreads();
15199 result = (wxPaintDC *)new wxPaintDC(arg1);
15200
15201 wxPyEndAllowThreads(__tstate);
15202 if (PyErr_Occurred()) SWIG_fail;
15203 }
15204 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
15205 return resultobj;
15206 fail:
15207 return NULL;
15208 }
15209
15210
15211 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15212 PyObject *obj;
15213 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15214 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15215 Py_INCREF(obj);
15216 return Py_BuildValue((char *)"");
15217 }
15218 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15219 PyObject *resultobj;
15220 wxWindow *arg1 = (wxWindow *) 0 ;
15221 wxWindowDC *result;
15222 PyObject * obj0 = 0 ;
15223 char *kwnames[] = {
15224 (char *) "win", NULL
15225 };
15226
15227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15230 {
15231 PyThreadState* __tstate = wxPyBeginAllowThreads();
15232 result = (wxWindowDC *)new wxWindowDC(arg1);
15233
15234 wxPyEndAllowThreads(__tstate);
15235 if (PyErr_Occurred()) SWIG_fail;
15236 }
15237 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
15238 return resultobj;
15239 fail:
15240 return NULL;
15241 }
15242
15243
15244 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
15245 PyObject *obj;
15246 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15247 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15248 Py_INCREF(obj);
15249 return Py_BuildValue((char *)"");
15250 }
15251 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15252 PyObject *resultobj;
15253 wxDC *arg1 = 0 ;
15254 bool arg2 ;
15255 wxMirrorDC *result;
15256 PyObject * obj0 = 0 ;
15257 PyObject * obj1 = 0 ;
15258 char *kwnames[] = {
15259 (char *) "dc",(char *) "mirror", NULL
15260 };
15261
15262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15264 SWIG_POINTER_EXCEPTION | 0)) == -1)
15265 SWIG_fail;
15266 if (arg1 == NULL) {
15267 PyErr_SetString(PyExc_TypeError,"null reference");
15268 SWIG_fail;
15269 }
15270 arg2 = (bool) SWIG_AsBool(obj1);
15271 if (PyErr_Occurred()) SWIG_fail;
15272 {
15273 PyThreadState* __tstate = wxPyBeginAllowThreads();
15274 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15275
15276 wxPyEndAllowThreads(__tstate);
15277 if (PyErr_Occurred()) SWIG_fail;
15278 }
15279 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
15280 return resultobj;
15281 fail:
15282 return NULL;
15283 }
15284
15285
15286 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
15287 PyObject *obj;
15288 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15289 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15290 Py_INCREF(obj);
15291 return Py_BuildValue((char *)"");
15292 }
15293 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15294 PyObject *resultobj;
15295 wxPrintData *arg1 = 0 ;
15296 wxPostScriptDC *result;
15297 PyObject * obj0 = 0 ;
15298 char *kwnames[] = {
15299 (char *) "printData", NULL
15300 };
15301
15302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15304 SWIG_POINTER_EXCEPTION | 0)) == -1)
15305 SWIG_fail;
15306 if (arg1 == NULL) {
15307 PyErr_SetString(PyExc_TypeError,"null reference");
15308 SWIG_fail;
15309 }
15310 {
15311 PyThreadState* __tstate = wxPyBeginAllowThreads();
15312 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15313
15314 wxPyEndAllowThreads(__tstate);
15315 if (PyErr_Occurred()) SWIG_fail;
15316 }
15317 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
15318 return resultobj;
15319 fail:
15320 return NULL;
15321 }
15322
15323
15324 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15325 PyObject *resultobj;
15326 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15327 wxPrintData *result;
15328 PyObject * obj0 = 0 ;
15329 char *kwnames[] = {
15330 (char *) "self", NULL
15331 };
15332
15333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15336 {
15337 PyThreadState* __tstate = wxPyBeginAllowThreads();
15338 {
15339 wxPrintData &_result_ref = (arg1)->GetPrintData();
15340 result = (wxPrintData *) &_result_ref;
15341 }
15342
15343 wxPyEndAllowThreads(__tstate);
15344 if (PyErr_Occurred()) SWIG_fail;
15345 }
15346 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
15347 return resultobj;
15348 fail:
15349 return NULL;
15350 }
15351
15352
15353 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15354 PyObject *resultobj;
15355 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15356 wxPrintData *arg2 = 0 ;
15357 PyObject * obj0 = 0 ;
15358 PyObject * obj1 = 0 ;
15359 char *kwnames[] = {
15360 (char *) "self",(char *) "data", NULL
15361 };
15362
15363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15366 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
15367 SWIG_POINTER_EXCEPTION | 0)) == -1)
15368 SWIG_fail;
15369 if (arg2 == NULL) {
15370 PyErr_SetString(PyExc_TypeError,"null reference");
15371 SWIG_fail;
15372 }
15373 {
15374 PyThreadState* __tstate = wxPyBeginAllowThreads();
15375 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15376
15377 wxPyEndAllowThreads(__tstate);
15378 if (PyErr_Occurred()) SWIG_fail;
15379 }
15380 Py_INCREF(Py_None); resultobj = Py_None;
15381 return resultobj;
15382 fail:
15383 return NULL;
15384 }
15385
15386
15387 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15388 PyObject *resultobj;
15389 int arg1 ;
15390 PyObject * obj0 = 0 ;
15391 char *kwnames[] = {
15392 (char *) "ppi", NULL
15393 };
15394
15395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15396 arg1 = (int) SWIG_AsInt(obj0);
15397 if (PyErr_Occurred()) SWIG_fail;
15398 {
15399 PyThreadState* __tstate = wxPyBeginAllowThreads();
15400 wxPostScriptDC::SetResolution(arg1);
15401
15402 wxPyEndAllowThreads(__tstate);
15403 if (PyErr_Occurred()) SWIG_fail;
15404 }
15405 Py_INCREF(Py_None); resultobj = Py_None;
15406 return resultobj;
15407 fail:
15408 return NULL;
15409 }
15410
15411
15412 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15413 PyObject *resultobj;
15414 int result;
15415 char *kwnames[] = {
15416 NULL
15417 };
15418
15419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15420 {
15421 PyThreadState* __tstate = wxPyBeginAllowThreads();
15422 result = (int)wxPostScriptDC::GetResolution();
15423
15424 wxPyEndAllowThreads(__tstate);
15425 if (PyErr_Occurred()) SWIG_fail;
15426 }
15427 resultobj = SWIG_FromInt((int)result);
15428 return resultobj;
15429 fail:
15430 return NULL;
15431 }
15432
15433
15434 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15435 PyObject *obj;
15436 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15437 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15438 Py_INCREF(obj);
15439 return Py_BuildValue((char *)"");
15440 }
15441 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15442 PyObject *resultobj;
15443 wxString const &arg1_defvalue = wxPyEmptyString ;
15444 wxString *arg1 = (wxString *) &arg1_defvalue ;
15445 wxMetaFile *result;
15446 bool temp1 = False ;
15447 PyObject * obj0 = 0 ;
15448 char *kwnames[] = {
15449 (char *) "filename", NULL
15450 };
15451
15452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15453 if (obj0) {
15454 {
15455 arg1 = wxString_in_helper(obj0);
15456 if (arg1 == NULL) SWIG_fail;
15457 temp1 = True;
15458 }
15459 }
15460 {
15461 PyThreadState* __tstate = wxPyBeginAllowThreads();
15462 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15463
15464 wxPyEndAllowThreads(__tstate);
15465 if (PyErr_Occurred()) SWIG_fail;
15466 }
15467 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
15468 {
15469 if (temp1)
15470 delete arg1;
15471 }
15472 return resultobj;
15473 fail:
15474 {
15475 if (temp1)
15476 delete arg1;
15477 }
15478 return NULL;
15479 }
15480
15481
15482 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
15483 PyObject *obj;
15484 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15485 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15486 Py_INCREF(obj);
15487 return Py_BuildValue((char *)"");
15488 }
15489 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15490 PyObject *resultobj;
15491 wxString const &arg1_defvalue = wxPyEmptyString ;
15492 wxString *arg1 = (wxString *) &arg1_defvalue ;
15493 int arg2 = (int) 0 ;
15494 int arg3 = (int) 0 ;
15495 wxString const &arg4_defvalue = wxPyEmptyString ;
15496 wxString *arg4 = (wxString *) &arg4_defvalue ;
15497 wxMetaFileDC *result;
15498 bool temp1 = False ;
15499 bool temp4 = False ;
15500 PyObject * obj0 = 0 ;
15501 PyObject * obj1 = 0 ;
15502 PyObject * obj2 = 0 ;
15503 PyObject * obj3 = 0 ;
15504 char *kwnames[] = {
15505 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
15506 };
15507
15508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15509 if (obj0) {
15510 {
15511 arg1 = wxString_in_helper(obj0);
15512 if (arg1 == NULL) SWIG_fail;
15513 temp1 = True;
15514 }
15515 }
15516 if (obj1) {
15517 arg2 = (int) SWIG_AsInt(obj1);
15518 if (PyErr_Occurred()) SWIG_fail;
15519 }
15520 if (obj2) {
15521 arg3 = (int) SWIG_AsInt(obj2);
15522 if (PyErr_Occurred()) SWIG_fail;
15523 }
15524 if (obj3) {
15525 {
15526 arg4 = wxString_in_helper(obj3);
15527 if (arg4 == NULL) SWIG_fail;
15528 temp4 = True;
15529 }
15530 }
15531 {
15532 PyThreadState* __tstate = wxPyBeginAllowThreads();
15533 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
15534
15535 wxPyEndAllowThreads(__tstate);
15536 if (PyErr_Occurred()) SWIG_fail;
15537 }
15538 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
15539 {
15540 if (temp1)
15541 delete arg1;
15542 }
15543 {
15544 if (temp4)
15545 delete arg4;
15546 }
15547 return resultobj;
15548 fail:
15549 {
15550 if (temp1)
15551 delete arg1;
15552 }
15553 {
15554 if (temp4)
15555 delete arg4;
15556 }
15557 return NULL;
15558 }
15559
15560
15561 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
15562 PyObject *obj;
15563 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15564 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
15565 Py_INCREF(obj);
15566 return Py_BuildValue((char *)"");
15567 }
15568 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15569 PyObject *resultobj;
15570 wxPrintData *arg1 = 0 ;
15571 wxPrinterDC *result;
15572 PyObject * obj0 = 0 ;
15573 char *kwnames[] = {
15574 (char *) "printData", NULL
15575 };
15576
15577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
15578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15579 SWIG_POINTER_EXCEPTION | 0)) == -1)
15580 SWIG_fail;
15581 if (arg1 == NULL) {
15582 PyErr_SetString(PyExc_TypeError,"null reference");
15583 SWIG_fail;
15584 }
15585 {
15586 PyThreadState* __tstate = wxPyBeginAllowThreads();
15587 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
15588
15589 wxPyEndAllowThreads(__tstate);
15590 if (PyErr_Occurred()) SWIG_fail;
15591 }
15592 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
15593 return resultobj;
15594 fail:
15595 return NULL;
15596 }
15597
15598
15599 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
15600 PyObject *obj;
15601 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15602 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
15603 Py_INCREF(obj);
15604 return Py_BuildValue((char *)"");
15605 }
15606 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15607 PyObject *resultobj;
15608 int arg1 ;
15609 int arg2 ;
15610 int arg3 = (int) True ;
15611 int arg4 = (int) 1 ;
15612 wxImageList *result;
15613 PyObject * obj0 = 0 ;
15614 PyObject * obj1 = 0 ;
15615 PyObject * obj2 = 0 ;
15616 PyObject * obj3 = 0 ;
15617 char *kwnames[] = {
15618 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
15619 };
15620
15621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15622 arg1 = (int) SWIG_AsInt(obj0);
15623 if (PyErr_Occurred()) SWIG_fail;
15624 arg2 = (int) SWIG_AsInt(obj1);
15625 if (PyErr_Occurred()) SWIG_fail;
15626 if (obj2) {
15627 arg3 = (int) SWIG_AsInt(obj2);
15628 if (PyErr_Occurred()) SWIG_fail;
15629 }
15630 if (obj3) {
15631 arg4 = (int) SWIG_AsInt(obj3);
15632 if (PyErr_Occurred()) SWIG_fail;
15633 }
15634 {
15635 PyThreadState* __tstate = wxPyBeginAllowThreads();
15636 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
15637
15638 wxPyEndAllowThreads(__tstate);
15639 if (PyErr_Occurred()) SWIG_fail;
15640 }
15641 {
15642 resultobj = wxPyMake_wxObject(result);
15643 }
15644 return resultobj;
15645 fail:
15646 return NULL;
15647 }
15648
15649
15650 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15651 PyObject *resultobj;
15652 wxImageList *arg1 = (wxImageList *) 0 ;
15653 PyObject * obj0 = 0 ;
15654 char *kwnames[] = {
15655 (char *) "self", NULL
15656 };
15657
15658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
15659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
15660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15661 {
15662 PyThreadState* __tstate = wxPyBeginAllowThreads();
15663 delete arg1;
15664
15665 wxPyEndAllowThreads(__tstate);
15666 if (PyErr_Occurred()) SWIG_fail;
15667 }
15668 Py_INCREF(Py_None); resultobj = Py_None;
15669 return resultobj;
15670 fail:
15671 return NULL;
15672 }
15673
15674
15675 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
15676 PyObject *resultobj;
15677 wxImageList *arg1 = (wxImageList *) 0 ;
15678 wxBitmap *arg2 = 0 ;
15679 wxBitmap const &arg3_defvalue = wxNullBitmap ;
15680 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
15681 int result;
15682 PyObject * obj0 = 0 ;
15683 PyObject * obj1 = 0 ;
15684 PyObject * obj2 = 0 ;
15685 char *kwnames[] = {
15686 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
15687 };
15688
15689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
15690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
15691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15692 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15693 SWIG_POINTER_EXCEPTION | 0)) == -1)
15694 SWIG_fail;
15695 if (arg2 == NULL) {
15696 PyErr_SetString(PyExc_TypeError,"null reference");
15697 SWIG_fail;
15698 }
15699 if (obj2) {
15700 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
15701 SWIG_POINTER_EXCEPTION | 0)) == -1)
15702 SWIG_fail;
15703 if (arg3 == NULL) {
15704 PyErr_SetString(PyExc_TypeError,"null reference");
15705 SWIG_fail;
15706 }
15707 }
15708 {
15709 PyThreadState* __tstate = wxPyBeginAllowThreads();
15710 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
15711
15712 wxPyEndAllowThreads(__tstate);
15713 if (PyErr_Occurred()) SWIG_fail;
15714 }
15715 resultobj = SWIG_FromInt((int)result);
15716 return resultobj;
15717 fail:
15718 return NULL;
15719 }
15720
15721
15722 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15723 PyObject *resultobj;
15724 wxImageList *arg1 = (wxImageList *) 0 ;
15725 wxBitmap *arg2 = 0 ;
15726 wxColour *arg3 = 0 ;
15727 int result;
15728 wxColour temp3 ;
15729 PyObject * obj0 = 0 ;
15730 PyObject * obj1 = 0 ;
15731 PyObject * obj2 = 0 ;
15732 char *kwnames[] = {
15733 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
15734 };
15735
15736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
15737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
15738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15739 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15740 SWIG_POINTER_EXCEPTION | 0)) == -1)
15741 SWIG_fail;
15742 if (arg2 == NULL) {
15743 PyErr_SetString(PyExc_TypeError,"null reference");
15744 SWIG_fail;
15745 }
15746 {
15747 arg3 = &temp3;
15748 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15749 }
15750 {
15751 PyThreadState* __tstate = wxPyBeginAllowThreads();
15752 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
15753
15754 wxPyEndAllowThreads(__tstate);
15755 if (PyErr_Occurred()) SWIG_fail;
15756 }
15757 resultobj = SWIG_FromInt((int)result);
15758 return resultobj;
15759 fail:
15760 return NULL;
15761 }
15762
15763
15764 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
15765 PyObject *resultobj;
15766 wxImageList *arg1 = (wxImageList *) 0 ;
15767 wxIcon *arg2 = 0 ;
15768 int result;
15769 PyObject * obj0 = 0 ;
15770 PyObject * obj1 = 0 ;
15771 char *kwnames[] = {
15772 (char *) "self",(char *) "icon", NULL
15773 };
15774
15775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
15776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
15777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15778 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
15779 SWIG_POINTER_EXCEPTION | 0)) == -1)
15780 SWIG_fail;
15781 if (arg2 == NULL) {
15782 PyErr_SetString(PyExc_TypeError,"null reference");
15783 SWIG_fail;
15784 }
15785 {
15786 PyThreadState* __tstate = wxPyBeginAllowThreads();
15787 result = (int)(arg1)->Add((wxIcon const &)*arg2);
15788
15789 wxPyEndAllowThreads(__tstate);
15790 if (PyErr_Occurred()) SWIG_fail;
15791 }
15792 resultobj = SWIG_FromInt((int)result);
15793 return resultobj;
15794 fail:
15795 return NULL;
15796 }
15797
15798
15799 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
15800 PyObject *resultobj;
15801 wxImageList *arg1 = (wxImageList *) 0 ;
15802 int arg2 ;
15803 wxBitmap *arg3 = 0 ;
15804 bool result;
15805 PyObject * obj0 = 0 ;
15806 PyObject * obj1 = 0 ;
15807 PyObject * obj2 = 0 ;
15808 char *kwnames[] = {
15809 (char *) "self",(char *) "index",(char *) "bitmap", NULL
15810 };
15811
15812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
15813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
15814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15815 arg2 = (int) SWIG_AsInt(obj1);
15816 if (PyErr_Occurred()) SWIG_fail;
15817 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
15818 SWIG_POINTER_EXCEPTION | 0)) == -1)
15819 SWIG_fail;
15820 if (arg3 == NULL) {
15821 PyErr_SetString(PyExc_TypeError,"null reference");
15822 SWIG_fail;
15823 }
15824 {
15825 PyThreadState* __tstate = wxPyBeginAllowThreads();
15826 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
15827
15828 wxPyEndAllowThreads(__tstate);
15829 if (PyErr_Occurred()) SWIG_fail;
15830 }
15831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15832 return resultobj;
15833 fail:
15834 return NULL;
15835 }
15836
15837
15838 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
15839 PyObject *resultobj;
15840 wxImageList *arg1 = (wxImageList *) 0 ;
15841 int arg2 ;
15842 wxDC *arg3 = 0 ;
15843 int arg4 ;
15844 int arg5 ;
15845 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
15846 bool arg7 = (bool) (bool)False ;
15847 bool result;
15848 PyObject * obj0 = 0 ;
15849 PyObject * obj1 = 0 ;
15850 PyObject * obj2 = 0 ;
15851 PyObject * obj3 = 0 ;
15852 PyObject * obj4 = 0 ;
15853 PyObject * obj5 = 0 ;
15854 PyObject * obj6 = 0 ;
15855 char *kwnames[] = {
15856 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
15857 };
15858
15859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
15861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15862 arg2 = (int) SWIG_AsInt(obj1);
15863 if (PyErr_Occurred()) SWIG_fail;
15864 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
15865 SWIG_POINTER_EXCEPTION | 0)) == -1)
15866 SWIG_fail;
15867 if (arg3 == NULL) {
15868 PyErr_SetString(PyExc_TypeError,"null reference");
15869 SWIG_fail;
15870 }
15871 arg4 = (int) SWIG_AsInt(obj3);
15872 if (PyErr_Occurred()) SWIG_fail;
15873 arg5 = (int) SWIG_AsInt(obj4);
15874 if (PyErr_Occurred()) SWIG_fail;
15875 if (obj5) {
15876 arg6 = (int) SWIG_AsInt(obj5);
15877 if (PyErr_Occurred()) SWIG_fail;
15878 }
15879 if (obj6) {
15880 arg7 = (bool const) SWIG_AsBool(obj6);
15881 if (PyErr_Occurred()) SWIG_fail;
15882 }
15883 {
15884 PyThreadState* __tstate = wxPyBeginAllowThreads();
15885 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
15886
15887 wxPyEndAllowThreads(__tstate);
15888 if (PyErr_Occurred()) SWIG_fail;
15889 }
15890 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15891 return resultobj;
15892 fail:
15893 return NULL;
15894 }
15895
15896
15897 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
15898 PyObject *resultobj;
15899 wxImageList *arg1 = (wxImageList *) 0 ;
15900 int result;
15901 PyObject * obj0 = 0 ;
15902 char *kwnames[] = {
15903 (char *) "self", NULL
15904 };
15905
15906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
15907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
15908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15909 {
15910 PyThreadState* __tstate = wxPyBeginAllowThreads();
15911 result = (int)(arg1)->GetImageCount();
15912
15913 wxPyEndAllowThreads(__tstate);
15914 if (PyErr_Occurred()) SWIG_fail;
15915 }
15916 resultobj = SWIG_FromInt((int)result);
15917 return resultobj;
15918 fail:
15919 return NULL;
15920 }
15921
15922
15923 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
15924 PyObject *resultobj;
15925 wxImageList *arg1 = (wxImageList *) 0 ;
15926 int arg2 ;
15927 bool result;
15928 PyObject * obj0 = 0 ;
15929 PyObject * obj1 = 0 ;
15930 char *kwnames[] = {
15931 (char *) "self",(char *) "index", NULL
15932 };
15933
15934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
15935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
15936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15937 arg2 = (int) SWIG_AsInt(obj1);
15938 if (PyErr_Occurred()) SWIG_fail;
15939 {
15940 PyThreadState* __tstate = wxPyBeginAllowThreads();
15941 result = (bool)(arg1)->Remove(arg2);
15942
15943 wxPyEndAllowThreads(__tstate);
15944 if (PyErr_Occurred()) SWIG_fail;
15945 }
15946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15947 return resultobj;
15948 fail:
15949 return NULL;
15950 }
15951
15952
15953 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
15954 PyObject *resultobj;
15955 wxImageList *arg1 = (wxImageList *) 0 ;
15956 bool result;
15957 PyObject * obj0 = 0 ;
15958 char *kwnames[] = {
15959 (char *) "self", NULL
15960 };
15961
15962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
15963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
15964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15965 {
15966 PyThreadState* __tstate = wxPyBeginAllowThreads();
15967 result = (bool)(arg1)->RemoveAll();
15968
15969 wxPyEndAllowThreads(__tstate);
15970 if (PyErr_Occurred()) SWIG_fail;
15971 }
15972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15973 return resultobj;
15974 fail:
15975 return NULL;
15976 }
15977
15978
15979 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15980 PyObject *resultobj;
15981 wxImageList *arg1 = (wxImageList *) 0 ;
15982 int arg2 ;
15983 int *arg3 = 0 ;
15984 int *arg4 = 0 ;
15985 int temp3 ;
15986 int temp4 ;
15987 PyObject * obj0 = 0 ;
15988 PyObject * obj1 = 0 ;
15989 char *kwnames[] = {
15990 (char *) "self",(char *) "index", NULL
15991 };
15992
15993 arg3 = &temp3;
15994 arg4 = &temp4;
15995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
15996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
15997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15998 arg2 = (int) SWIG_AsInt(obj1);
15999 if (PyErr_Occurred()) SWIG_fail;
16000 {
16001 PyThreadState* __tstate = wxPyBeginAllowThreads();
16002 (arg1)->GetSize(arg2,*arg3,*arg4);
16003
16004 wxPyEndAllowThreads(__tstate);
16005 if (PyErr_Occurred()) SWIG_fail;
16006 }
16007 Py_INCREF(Py_None); resultobj = Py_None;
16008 {
16009 PyObject *o = PyInt_FromLong((long) (*arg3));
16010 resultobj = t_output_helper(resultobj,o);
16011 }
16012 {
16013 PyObject *o = PyInt_FromLong((long) (*arg4));
16014 resultobj = t_output_helper(resultobj,o);
16015 }
16016 return resultobj;
16017 fail:
16018 return NULL;
16019 }
16020
16021
16022 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
16023 PyObject *obj;
16024 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16025 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16026 Py_INCREF(obj);
16027 return Py_BuildValue((char *)"");
16028 }
16029 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
16030 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16031 return 1;
16032 }
16033
16034
16035 static PyObject *_wrap_NORMAL_FONT_get() {
16036 PyObject *pyobj;
16037
16038 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
16039 return pyobj;
16040 }
16041
16042
16043 static int _wrap_SMALL_FONT_set(PyObject *_val) {
16044 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16045 return 1;
16046 }
16047
16048
16049 static PyObject *_wrap_SMALL_FONT_get() {
16050 PyObject *pyobj;
16051
16052 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
16053 return pyobj;
16054 }
16055
16056
16057 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
16058 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16059 return 1;
16060 }
16061
16062
16063 static PyObject *_wrap_ITALIC_FONT_get() {
16064 PyObject *pyobj;
16065
16066 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
16067 return pyobj;
16068 }
16069
16070
16071 static int _wrap_SWISS_FONT_set(PyObject *_val) {
16072 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16073 return 1;
16074 }
16075
16076
16077 static PyObject *_wrap_SWISS_FONT_get() {
16078 PyObject *pyobj;
16079
16080 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
16081 return pyobj;
16082 }
16083
16084
16085 static int _wrap_RED_PEN_set(PyObject *_val) {
16086 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16087 return 1;
16088 }
16089
16090
16091 static PyObject *_wrap_RED_PEN_get() {
16092 PyObject *pyobj;
16093
16094 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
16095 return pyobj;
16096 }
16097
16098
16099 static int _wrap_CYAN_PEN_set(PyObject *_val) {
16100 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16101 return 1;
16102 }
16103
16104
16105 static PyObject *_wrap_CYAN_PEN_get() {
16106 PyObject *pyobj;
16107
16108 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
16109 return pyobj;
16110 }
16111
16112
16113 static int _wrap_GREEN_PEN_set(PyObject *_val) {
16114 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16115 return 1;
16116 }
16117
16118
16119 static PyObject *_wrap_GREEN_PEN_get() {
16120 PyObject *pyobj;
16121
16122 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
16123 return pyobj;
16124 }
16125
16126
16127 static int _wrap_BLACK_PEN_set(PyObject *_val) {
16128 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16129 return 1;
16130 }
16131
16132
16133 static PyObject *_wrap_BLACK_PEN_get() {
16134 PyObject *pyobj;
16135
16136 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
16137 return pyobj;
16138 }
16139
16140
16141 static int _wrap_WHITE_PEN_set(PyObject *_val) {
16142 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16143 return 1;
16144 }
16145
16146
16147 static PyObject *_wrap_WHITE_PEN_get() {
16148 PyObject *pyobj;
16149
16150 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
16151 return pyobj;
16152 }
16153
16154
16155 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
16156 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16157 return 1;
16158 }
16159
16160
16161 static PyObject *_wrap_TRANSPARENT_PEN_get() {
16162 PyObject *pyobj;
16163
16164 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
16165 return pyobj;
16166 }
16167
16168
16169 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
16170 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16171 return 1;
16172 }
16173
16174
16175 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16176 PyObject *pyobj;
16177
16178 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
16179 return pyobj;
16180 }
16181
16182
16183 static int _wrap_GREY_PEN_set(PyObject *_val) {
16184 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16185 return 1;
16186 }
16187
16188
16189 static PyObject *_wrap_GREY_PEN_get() {
16190 PyObject *pyobj;
16191
16192 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
16193 return pyobj;
16194 }
16195
16196
16197 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
16198 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16199 return 1;
16200 }
16201
16202
16203 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16204 PyObject *pyobj;
16205
16206 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16207 return pyobj;
16208 }
16209
16210
16211 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
16212 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16213 return 1;
16214 }
16215
16216
16217 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16218 PyObject *pyobj;
16219
16220 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16221 return pyobj;
16222 }
16223
16224
16225 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
16226 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16227 return 1;
16228 }
16229
16230
16231 static PyObject *_wrap_BLUE_BRUSH_get() {
16232 PyObject *pyobj;
16233
16234 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16235 return pyobj;
16236 }
16237
16238
16239 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
16240 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16241 return 1;
16242 }
16243
16244
16245 static PyObject *_wrap_GREEN_BRUSH_get() {
16246 PyObject *pyobj;
16247
16248 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16249 return pyobj;
16250 }
16251
16252
16253 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
16254 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16255 return 1;
16256 }
16257
16258
16259 static PyObject *_wrap_WHITE_BRUSH_get() {
16260 PyObject *pyobj;
16261
16262 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16263 return pyobj;
16264 }
16265
16266
16267 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
16268 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16269 return 1;
16270 }
16271
16272
16273 static PyObject *_wrap_BLACK_BRUSH_get() {
16274 PyObject *pyobj;
16275
16276 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
16277 return pyobj;
16278 }
16279
16280
16281 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
16282 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16283 return 1;
16284 }
16285
16286
16287 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16288 PyObject *pyobj;
16289
16290 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
16291 return pyobj;
16292 }
16293
16294
16295 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
16296 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16297 return 1;
16298 }
16299
16300
16301 static PyObject *_wrap_CYAN_BRUSH_get() {
16302 PyObject *pyobj;
16303
16304 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16305 return pyobj;
16306 }
16307
16308
16309 static int _wrap_RED_BRUSH_set(PyObject *_val) {
16310 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16311 return 1;
16312 }
16313
16314
16315 static PyObject *_wrap_RED_BRUSH_get() {
16316 PyObject *pyobj;
16317
16318 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
16319 return pyobj;
16320 }
16321
16322
16323 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
16324 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
16325 return 1;
16326 }
16327
16328
16329 static PyObject *_wrap_GREY_BRUSH_get() {
16330 PyObject *pyobj;
16331
16332 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16333 return pyobj;
16334 }
16335
16336
16337 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
16338 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
16339 return 1;
16340 }
16341
16342
16343 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
16344 PyObject *pyobj;
16345
16346 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16347 return pyobj;
16348 }
16349
16350
16351 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
16352 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
16353 return 1;
16354 }
16355
16356
16357 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
16358 PyObject *pyobj;
16359
16360 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16361 return pyobj;
16362 }
16363
16364
16365 static int _wrap_BLACK_set(PyObject *_val) {
16366 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
16367 return 1;
16368 }
16369
16370
16371 static PyObject *_wrap_BLACK_get() {
16372 PyObject *pyobj;
16373
16374 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
16375 return pyobj;
16376 }
16377
16378
16379 static int _wrap_WHITE_set(PyObject *_val) {
16380 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
16381 return 1;
16382 }
16383
16384
16385 static PyObject *_wrap_WHITE_get() {
16386 PyObject *pyobj;
16387
16388 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
16389 return pyobj;
16390 }
16391
16392
16393 static int _wrap_RED_set(PyObject *_val) {
16394 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
16395 return 1;
16396 }
16397
16398
16399 static PyObject *_wrap_RED_get() {
16400 PyObject *pyobj;
16401
16402 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
16403 return pyobj;
16404 }
16405
16406
16407 static int _wrap_BLUE_set(PyObject *_val) {
16408 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
16409 return 1;
16410 }
16411
16412
16413 static PyObject *_wrap_BLUE_get() {
16414 PyObject *pyobj;
16415
16416 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
16417 return pyobj;
16418 }
16419
16420
16421 static int _wrap_GREEN_set(PyObject *_val) {
16422 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
16423 return 1;
16424 }
16425
16426
16427 static PyObject *_wrap_GREEN_get() {
16428 PyObject *pyobj;
16429
16430 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
16431 return pyobj;
16432 }
16433
16434
16435 static int _wrap_CYAN_set(PyObject *_val) {
16436 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
16437 return 1;
16438 }
16439
16440
16441 static PyObject *_wrap_CYAN_get() {
16442 PyObject *pyobj;
16443
16444 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
16445 return pyobj;
16446 }
16447
16448
16449 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
16450 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
16451 return 1;
16452 }
16453
16454
16455 static PyObject *_wrap_LIGHT_GREY_get() {
16456 PyObject *pyobj;
16457
16458 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
16459 return pyobj;
16460 }
16461
16462
16463 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
16464 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
16465 return 1;
16466 }
16467
16468
16469 static PyObject *_wrap_STANDARD_CURSOR_get() {
16470 PyObject *pyobj;
16471
16472 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
16473 return pyobj;
16474 }
16475
16476
16477 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
16478 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
16479 return 1;
16480 }
16481
16482
16483 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
16484 PyObject *pyobj;
16485
16486 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16487 return pyobj;
16488 }
16489
16490
16491 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
16492 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
16493 return 1;
16494 }
16495
16496
16497 static PyObject *_wrap_CROSS_CURSOR_get() {
16498 PyObject *pyobj;
16499
16500 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16501 return pyobj;
16502 }
16503
16504
16505 static int _wrap_NullBitmap_set(PyObject *_val) {
16506 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
16507 return 1;
16508 }
16509
16510
16511 static PyObject *_wrap_NullBitmap_get() {
16512 PyObject *pyobj;
16513
16514 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
16515 return pyobj;
16516 }
16517
16518
16519 static int _wrap_NullIcon_set(PyObject *_val) {
16520 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
16521 return 1;
16522 }
16523
16524
16525 static PyObject *_wrap_NullIcon_get() {
16526 PyObject *pyobj;
16527
16528 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
16529 return pyobj;
16530 }
16531
16532
16533 static int _wrap_NullCursor_set(PyObject *_val) {
16534 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
16535 return 1;
16536 }
16537
16538
16539 static PyObject *_wrap_NullCursor_get() {
16540 PyObject *pyobj;
16541
16542 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
16543 return pyobj;
16544 }
16545
16546
16547 static int _wrap_NullPen_set(PyObject *_val) {
16548 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
16549 return 1;
16550 }
16551
16552
16553 static PyObject *_wrap_NullPen_get() {
16554 PyObject *pyobj;
16555
16556 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
16557 return pyobj;
16558 }
16559
16560
16561 static int _wrap_NullBrush_set(PyObject *_val) {
16562 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
16563 return 1;
16564 }
16565
16566
16567 static PyObject *_wrap_NullBrush_get() {
16568 PyObject *pyobj;
16569
16570 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
16571 return pyobj;
16572 }
16573
16574
16575 static int _wrap_NullPalette_set(PyObject *_val) {
16576 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
16577 return 1;
16578 }
16579
16580
16581 static PyObject *_wrap_NullPalette_get() {
16582 PyObject *pyobj;
16583
16584 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
16585 return pyobj;
16586 }
16587
16588
16589 static int _wrap_NullFont_set(PyObject *_val) {
16590 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
16591 return 1;
16592 }
16593
16594
16595 static PyObject *_wrap_NullFont_get() {
16596 PyObject *pyobj;
16597
16598 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
16599 return pyobj;
16600 }
16601
16602
16603 static int _wrap_NullColour_set(PyObject *_val) {
16604 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
16605 return 1;
16606 }
16607
16608
16609 static PyObject *_wrap_NullColour_get() {
16610 PyObject *pyobj;
16611
16612 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
16613 return pyobj;
16614 }
16615
16616
16617 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
16618 PyObject *resultobj;
16619 wxPenList *arg1 = (wxPenList *) 0 ;
16620 wxPen *arg2 = (wxPen *) 0 ;
16621 PyObject * obj0 = 0 ;
16622 PyObject * obj1 = 0 ;
16623 char *kwnames[] = {
16624 (char *) "self",(char *) "pen", NULL
16625 };
16626
16627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
16628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
16629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16630 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
16631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16632 {
16633 PyThreadState* __tstate = wxPyBeginAllowThreads();
16634 (arg1)->AddPen(arg2);
16635
16636 wxPyEndAllowThreads(__tstate);
16637 if (PyErr_Occurred()) SWIG_fail;
16638 }
16639 Py_INCREF(Py_None); resultobj = Py_None;
16640 return resultobj;
16641 fail:
16642 return NULL;
16643 }
16644
16645
16646 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
16647 PyObject *resultobj;
16648 wxPenList *arg1 = (wxPenList *) 0 ;
16649 wxColour *arg2 = 0 ;
16650 int arg3 ;
16651 int arg4 ;
16652 wxPen *result;
16653 wxColour temp2 ;
16654 PyObject * obj0 = 0 ;
16655 PyObject * obj1 = 0 ;
16656 PyObject * obj2 = 0 ;
16657 PyObject * obj3 = 0 ;
16658 char *kwnames[] = {
16659 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
16660 };
16661
16662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
16664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16665 {
16666 arg2 = &temp2;
16667 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16668 }
16669 arg3 = (int) SWIG_AsInt(obj2);
16670 if (PyErr_Occurred()) SWIG_fail;
16671 arg4 = (int) SWIG_AsInt(obj3);
16672 if (PyErr_Occurred()) SWIG_fail;
16673 {
16674 PyThreadState* __tstate = wxPyBeginAllowThreads();
16675 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
16676
16677 wxPyEndAllowThreads(__tstate);
16678 if (PyErr_Occurred()) SWIG_fail;
16679 }
16680 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
16681 return resultobj;
16682 fail:
16683 return NULL;
16684 }
16685
16686
16687 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
16688 PyObject *resultobj;
16689 wxPenList *arg1 = (wxPenList *) 0 ;
16690 wxPen *arg2 = (wxPen *) 0 ;
16691 PyObject * obj0 = 0 ;
16692 PyObject * obj1 = 0 ;
16693 char *kwnames[] = {
16694 (char *) "self",(char *) "pen", NULL
16695 };
16696
16697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
16698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
16699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16700 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
16701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16702 {
16703 PyThreadState* __tstate = wxPyBeginAllowThreads();
16704 (arg1)->RemovePen(arg2);
16705
16706 wxPyEndAllowThreads(__tstate);
16707 if (PyErr_Occurred()) SWIG_fail;
16708 }
16709 Py_INCREF(Py_None); resultobj = Py_None;
16710 return resultobj;
16711 fail:
16712 return NULL;
16713 }
16714
16715
16716 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16717 PyObject *resultobj;
16718 wxPenList *arg1 = (wxPenList *) 0 ;
16719 int result;
16720 PyObject * obj0 = 0 ;
16721 char *kwnames[] = {
16722 (char *) "self", NULL
16723 };
16724
16725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
16726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
16727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16728 {
16729 PyThreadState* __tstate = wxPyBeginAllowThreads();
16730 result = (int)(arg1)->GetCount();
16731
16732 wxPyEndAllowThreads(__tstate);
16733 if (PyErr_Occurred()) SWIG_fail;
16734 }
16735 resultobj = SWIG_FromInt((int)result);
16736 return resultobj;
16737 fail:
16738 return NULL;
16739 }
16740
16741
16742 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
16743 PyObject *obj;
16744 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16745 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
16746 Py_INCREF(obj);
16747 return Py_BuildValue((char *)"");
16748 }
16749 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
16750 PyObject *resultobj;
16751 wxBrushList *arg1 = (wxBrushList *) 0 ;
16752 wxBrush *arg2 = (wxBrush *) 0 ;
16753 PyObject * obj0 = 0 ;
16754 PyObject * obj1 = 0 ;
16755 char *kwnames[] = {
16756 (char *) "self",(char *) "brush", NULL
16757 };
16758
16759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
16760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
16761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16762 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
16763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16764 {
16765 PyThreadState* __tstate = wxPyBeginAllowThreads();
16766 (arg1)->AddBrush(arg2);
16767
16768 wxPyEndAllowThreads(__tstate);
16769 if (PyErr_Occurred()) SWIG_fail;
16770 }
16771 Py_INCREF(Py_None); resultobj = Py_None;
16772 return resultobj;
16773 fail:
16774 return NULL;
16775 }
16776
16777
16778 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
16779 PyObject *resultobj;
16780 wxBrushList *arg1 = (wxBrushList *) 0 ;
16781 wxColour *arg2 = 0 ;
16782 int arg3 ;
16783 wxBrush *result;
16784 wxColour temp2 ;
16785 PyObject * obj0 = 0 ;
16786 PyObject * obj1 = 0 ;
16787 PyObject * obj2 = 0 ;
16788 char *kwnames[] = {
16789 (char *) "self",(char *) "colour",(char *) "style", NULL
16790 };
16791
16792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
16793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
16794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16795 {
16796 arg2 = &temp2;
16797 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16798 }
16799 arg3 = (int) SWIG_AsInt(obj2);
16800 if (PyErr_Occurred()) SWIG_fail;
16801 {
16802 PyThreadState* __tstate = wxPyBeginAllowThreads();
16803 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
16804
16805 wxPyEndAllowThreads(__tstate);
16806 if (PyErr_Occurred()) SWIG_fail;
16807 }
16808 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
16809 return resultobj;
16810 fail:
16811 return NULL;
16812 }
16813
16814
16815 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
16816 PyObject *resultobj;
16817 wxBrushList *arg1 = (wxBrushList *) 0 ;
16818 wxBrush *arg2 = (wxBrush *) 0 ;
16819 PyObject * obj0 = 0 ;
16820 PyObject * obj1 = 0 ;
16821 char *kwnames[] = {
16822 (char *) "self",(char *) "brush", NULL
16823 };
16824
16825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
16826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
16827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16828 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
16829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16830 {
16831 PyThreadState* __tstate = wxPyBeginAllowThreads();
16832 (arg1)->RemoveBrush(arg2);
16833
16834 wxPyEndAllowThreads(__tstate);
16835 if (PyErr_Occurred()) SWIG_fail;
16836 }
16837 Py_INCREF(Py_None); resultobj = Py_None;
16838 return resultobj;
16839 fail:
16840 return NULL;
16841 }
16842
16843
16844 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16845 PyObject *resultobj;
16846 wxBrushList *arg1 = (wxBrushList *) 0 ;
16847 int result;
16848 PyObject * obj0 = 0 ;
16849 char *kwnames[] = {
16850 (char *) "self", NULL
16851 };
16852
16853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
16854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
16855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16856 {
16857 PyThreadState* __tstate = wxPyBeginAllowThreads();
16858 result = (int)(arg1)->GetCount();
16859
16860 wxPyEndAllowThreads(__tstate);
16861 if (PyErr_Occurred()) SWIG_fail;
16862 }
16863 resultobj = SWIG_FromInt((int)result);
16864 return resultobj;
16865 fail:
16866 return NULL;
16867 }
16868
16869
16870 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
16871 PyObject *obj;
16872 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16873 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
16874 Py_INCREF(obj);
16875 return Py_BuildValue((char *)"");
16876 }
16877 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
16878 PyObject *resultobj;
16879 wxColourDatabase *result;
16880 char *kwnames[] = {
16881 NULL
16882 };
16883
16884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
16885 {
16886 PyThreadState* __tstate = wxPyBeginAllowThreads();
16887 result = (wxColourDatabase *)new wxColourDatabase();
16888
16889 wxPyEndAllowThreads(__tstate);
16890 if (PyErr_Occurred()) SWIG_fail;
16891 }
16892 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
16893 return resultobj;
16894 fail:
16895 return NULL;
16896 }
16897
16898
16899 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
16900 PyObject *resultobj;
16901 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16902 PyObject * obj0 = 0 ;
16903 char *kwnames[] = {
16904 (char *) "self", NULL
16905 };
16906
16907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
16908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
16909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16910 {
16911 PyThreadState* __tstate = wxPyBeginAllowThreads();
16912 delete arg1;
16913
16914 wxPyEndAllowThreads(__tstate);
16915 if (PyErr_Occurred()) SWIG_fail;
16916 }
16917 Py_INCREF(Py_None); resultobj = Py_None;
16918 return resultobj;
16919 fail:
16920 return NULL;
16921 }
16922
16923
16924 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
16925 PyObject *resultobj;
16926 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16927 wxString *arg2 = 0 ;
16928 wxColour result;
16929 bool temp2 = False ;
16930 PyObject * obj0 = 0 ;
16931 PyObject * obj1 = 0 ;
16932 char *kwnames[] = {
16933 (char *) "self",(char *) "name", NULL
16934 };
16935
16936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
16937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
16938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16939 {
16940 arg2 = wxString_in_helper(obj1);
16941 if (arg2 == NULL) SWIG_fail;
16942 temp2 = True;
16943 }
16944 {
16945 PyThreadState* __tstate = wxPyBeginAllowThreads();
16946 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
16947
16948 wxPyEndAllowThreads(__tstate);
16949 if (PyErr_Occurred()) SWIG_fail;
16950 }
16951 {
16952 wxColour * resultptr;
16953 resultptr = new wxColour((wxColour &) result);
16954 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
16955 }
16956 {
16957 if (temp2)
16958 delete arg2;
16959 }
16960 return resultobj;
16961 fail:
16962 {
16963 if (temp2)
16964 delete arg2;
16965 }
16966 return NULL;
16967 }
16968
16969
16970 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
16971 PyObject *resultobj;
16972 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16973 wxColour *arg2 = 0 ;
16974 wxString result;
16975 wxColour temp2 ;
16976 PyObject * obj0 = 0 ;
16977 PyObject * obj1 = 0 ;
16978 char *kwnames[] = {
16979 (char *) "self",(char *) "colour", NULL
16980 };
16981
16982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
16983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
16984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16985 {
16986 arg2 = &temp2;
16987 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16988 }
16989 {
16990 PyThreadState* __tstate = wxPyBeginAllowThreads();
16991 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
16992
16993 wxPyEndAllowThreads(__tstate);
16994 if (PyErr_Occurred()) SWIG_fail;
16995 }
16996 {
16997 #if wxUSE_UNICODE
16998 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16999 #else
17000 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17001 #endif
17002 }
17003 return resultobj;
17004 fail:
17005 return NULL;
17006 }
17007
17008
17009 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17010 PyObject *resultobj;
17011 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17012 wxString *arg2 = 0 ;
17013 wxColour *arg3 = 0 ;
17014 bool temp2 = False ;
17015 wxColour temp3 ;
17016 PyObject * obj0 = 0 ;
17017 PyObject * obj1 = 0 ;
17018 PyObject * obj2 = 0 ;
17019 char *kwnames[] = {
17020 (char *) "self",(char *) "name",(char *) "colour", NULL
17021 };
17022
17023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17026 {
17027 arg2 = wxString_in_helper(obj1);
17028 if (arg2 == NULL) SWIG_fail;
17029 temp2 = True;
17030 }
17031 {
17032 arg3 = &temp3;
17033 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17034 }
17035 {
17036 PyThreadState* __tstate = wxPyBeginAllowThreads();
17037 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17038
17039 wxPyEndAllowThreads(__tstate);
17040 if (PyErr_Occurred()) SWIG_fail;
17041 }
17042 Py_INCREF(Py_None); resultobj = Py_None;
17043 {
17044 if (temp2)
17045 delete arg2;
17046 }
17047 return resultobj;
17048 fail:
17049 {
17050 if (temp2)
17051 delete arg2;
17052 }
17053 return NULL;
17054 }
17055
17056
17057 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
17058 PyObject *resultobj;
17059 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17060 wxString *arg2 = 0 ;
17061 int arg3 ;
17062 int arg4 ;
17063 int arg5 ;
17064 bool temp2 = False ;
17065 PyObject * obj0 = 0 ;
17066 PyObject * obj1 = 0 ;
17067 PyObject * obj2 = 0 ;
17068 PyObject * obj3 = 0 ;
17069 PyObject * obj4 = 0 ;
17070 char *kwnames[] = {
17071 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17072 };
17073
17074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17077 {
17078 arg2 = wxString_in_helper(obj1);
17079 if (arg2 == NULL) SWIG_fail;
17080 temp2 = True;
17081 }
17082 arg3 = (int) SWIG_AsInt(obj2);
17083 if (PyErr_Occurred()) SWIG_fail;
17084 arg4 = (int) SWIG_AsInt(obj3);
17085 if (PyErr_Occurred()) SWIG_fail;
17086 arg5 = (int) SWIG_AsInt(obj4);
17087 if (PyErr_Occurred()) SWIG_fail;
17088 {
17089 PyThreadState* __tstate = wxPyBeginAllowThreads();
17090 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17091
17092 wxPyEndAllowThreads(__tstate);
17093 if (PyErr_Occurred()) SWIG_fail;
17094 }
17095 Py_INCREF(Py_None); resultobj = Py_None;
17096 {
17097 if (temp2)
17098 delete arg2;
17099 }
17100 return resultobj;
17101 fail:
17102 {
17103 if (temp2)
17104 delete arg2;
17105 }
17106 return NULL;
17107 }
17108
17109
17110 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
17111 PyObject *obj;
17112 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17113 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17114 Py_INCREF(obj);
17115 return Py_BuildValue((char *)"");
17116 }
17117 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17118 PyObject *resultobj;
17119 wxFontList *arg1 = (wxFontList *) 0 ;
17120 wxFont *arg2 = (wxFont *) 0 ;
17121 PyObject * obj0 = 0 ;
17122 PyObject * obj1 = 0 ;
17123 char *kwnames[] = {
17124 (char *) "self",(char *) "font", NULL
17125 };
17126
17127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17130 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17132 {
17133 PyThreadState* __tstate = wxPyBeginAllowThreads();
17134 (arg1)->AddFont(arg2);
17135
17136 wxPyEndAllowThreads(__tstate);
17137 if (PyErr_Occurred()) SWIG_fail;
17138 }
17139 Py_INCREF(Py_None); resultobj = Py_None;
17140 return resultobj;
17141 fail:
17142 return NULL;
17143 }
17144
17145
17146 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17147 PyObject *resultobj;
17148 wxFontList *arg1 = (wxFontList *) 0 ;
17149 int arg2 ;
17150 int arg3 ;
17151 int arg4 ;
17152 int arg5 ;
17153 bool arg6 = (bool) False ;
17154 wxString const &arg7_defvalue = wxPyEmptyString ;
17155 wxString *arg7 = (wxString *) &arg7_defvalue ;
17156 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17157 wxFont *result;
17158 bool temp7 = False ;
17159 PyObject * obj0 = 0 ;
17160 PyObject * obj1 = 0 ;
17161 PyObject * obj2 = 0 ;
17162 PyObject * obj3 = 0 ;
17163 PyObject * obj4 = 0 ;
17164 PyObject * obj5 = 0 ;
17165 PyObject * obj6 = 0 ;
17166 PyObject * obj7 = 0 ;
17167 char *kwnames[] = {
17168 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17169 };
17170
17171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17174 arg2 = (int) SWIG_AsInt(obj1);
17175 if (PyErr_Occurred()) SWIG_fail;
17176 arg3 = (int) SWIG_AsInt(obj2);
17177 if (PyErr_Occurred()) SWIG_fail;
17178 arg4 = (int) SWIG_AsInt(obj3);
17179 if (PyErr_Occurred()) SWIG_fail;
17180 arg5 = (int) SWIG_AsInt(obj4);
17181 if (PyErr_Occurred()) SWIG_fail;
17182 if (obj5) {
17183 arg6 = (bool) SWIG_AsBool(obj5);
17184 if (PyErr_Occurred()) SWIG_fail;
17185 }
17186 if (obj6) {
17187 {
17188 arg7 = wxString_in_helper(obj6);
17189 if (arg7 == NULL) SWIG_fail;
17190 temp7 = True;
17191 }
17192 }
17193 if (obj7) {
17194 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
17195 if (PyErr_Occurred()) SWIG_fail;
17196 }
17197 {
17198 PyThreadState* __tstate = wxPyBeginAllowThreads();
17199 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17200
17201 wxPyEndAllowThreads(__tstate);
17202 if (PyErr_Occurred()) SWIG_fail;
17203 }
17204 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
17205 {
17206 if (temp7)
17207 delete arg7;
17208 }
17209 return resultobj;
17210 fail:
17211 {
17212 if (temp7)
17213 delete arg7;
17214 }
17215 return NULL;
17216 }
17217
17218
17219 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17220 PyObject *resultobj;
17221 wxFontList *arg1 = (wxFontList *) 0 ;
17222 wxFont *arg2 = (wxFont *) 0 ;
17223 PyObject * obj0 = 0 ;
17224 PyObject * obj1 = 0 ;
17225 char *kwnames[] = {
17226 (char *) "self",(char *) "font", NULL
17227 };
17228
17229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17232 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17234 {
17235 PyThreadState* __tstate = wxPyBeginAllowThreads();
17236 (arg1)->RemoveFont(arg2);
17237
17238 wxPyEndAllowThreads(__tstate);
17239 if (PyErr_Occurred()) SWIG_fail;
17240 }
17241 Py_INCREF(Py_None); resultobj = Py_None;
17242 return resultobj;
17243 fail:
17244 return NULL;
17245 }
17246
17247
17248 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17249 PyObject *resultobj;
17250 wxFontList *arg1 = (wxFontList *) 0 ;
17251 int result;
17252 PyObject * obj0 = 0 ;
17253 char *kwnames[] = {
17254 (char *) "self", NULL
17255 };
17256
17257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17260 {
17261 PyThreadState* __tstate = wxPyBeginAllowThreads();
17262 result = (int)(arg1)->GetCount();
17263
17264 wxPyEndAllowThreads(__tstate);
17265 if (PyErr_Occurred()) SWIG_fail;
17266 }
17267 resultobj = SWIG_FromInt((int)result);
17268 return resultobj;
17269 fail:
17270 return NULL;
17271 }
17272
17273
17274 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
17275 PyObject *obj;
17276 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17277 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17278 Py_INCREF(obj);
17279 return Py_BuildValue((char *)"");
17280 }
17281 static int _wrap_TheFontList_set(PyObject *_val) {
17282 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17283 return 1;
17284 }
17285
17286
17287 static PyObject *_wrap_TheFontList_get() {
17288 PyObject *pyobj;
17289
17290 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
17291 return pyobj;
17292 }
17293
17294
17295 static int _wrap_ThePenList_set(PyObject *_val) {
17296 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17297 return 1;
17298 }
17299
17300
17301 static PyObject *_wrap_ThePenList_get() {
17302 PyObject *pyobj;
17303
17304 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
17305 return pyobj;
17306 }
17307
17308
17309 static int _wrap_TheBrushList_set(PyObject *_val) {
17310 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17311 return 1;
17312 }
17313
17314
17315 static PyObject *_wrap_TheBrushList_get() {
17316 PyObject *pyobj;
17317
17318 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
17319 return pyobj;
17320 }
17321
17322
17323 static int _wrap_TheColourDatabase_set(PyObject *_val) {
17324 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17325 return 1;
17326 }
17327
17328
17329 static PyObject *_wrap_TheColourDatabase_get() {
17330 PyObject *pyobj;
17331
17332 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
17333 return pyobj;
17334 }
17335
17336
17337 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
17338 PyObject *resultobj;
17339 wxEffects *result;
17340 char *kwnames[] = {
17341 NULL
17342 };
17343
17344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
17345 {
17346 PyThreadState* __tstate = wxPyBeginAllowThreads();
17347 result = (wxEffects *)new wxEffects();
17348
17349 wxPyEndAllowThreads(__tstate);
17350 if (PyErr_Occurred()) SWIG_fail;
17351 }
17352 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
17353 return resultobj;
17354 fail:
17355 return NULL;
17356 }
17357
17358
17359 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17360 PyObject *resultobj;
17361 wxEffects *arg1 = (wxEffects *) 0 ;
17362 wxColour result;
17363 PyObject * obj0 = 0 ;
17364 char *kwnames[] = {
17365 (char *) "self", NULL
17366 };
17367
17368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
17369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17371 {
17372 PyThreadState* __tstate = wxPyBeginAllowThreads();
17373 result = ((wxEffects const *)arg1)->GetHighlightColour();
17374
17375 wxPyEndAllowThreads(__tstate);
17376 if (PyErr_Occurred()) SWIG_fail;
17377 }
17378 {
17379 wxColour * resultptr;
17380 resultptr = new wxColour((wxColour &) result);
17381 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17382 }
17383 return resultobj;
17384 fail:
17385 return NULL;
17386 }
17387
17388
17389 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17390 PyObject *resultobj;
17391 wxEffects *arg1 = (wxEffects *) 0 ;
17392 wxColour result;
17393 PyObject * obj0 = 0 ;
17394 char *kwnames[] = {
17395 (char *) "self", NULL
17396 };
17397
17398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
17399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17401 {
17402 PyThreadState* __tstate = wxPyBeginAllowThreads();
17403 result = ((wxEffects const *)arg1)->GetLightShadow();
17404
17405 wxPyEndAllowThreads(__tstate);
17406 if (PyErr_Occurred()) SWIG_fail;
17407 }
17408 {
17409 wxColour * resultptr;
17410 resultptr = new wxColour((wxColour &) result);
17411 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17412 }
17413 return resultobj;
17414 fail:
17415 return NULL;
17416 }
17417
17418
17419 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17420 PyObject *resultobj;
17421 wxEffects *arg1 = (wxEffects *) 0 ;
17422 wxColour result;
17423 PyObject * obj0 = 0 ;
17424 char *kwnames[] = {
17425 (char *) "self", NULL
17426 };
17427
17428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
17429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17431 {
17432 PyThreadState* __tstate = wxPyBeginAllowThreads();
17433 result = ((wxEffects const *)arg1)->GetFaceColour();
17434
17435 wxPyEndAllowThreads(__tstate);
17436 if (PyErr_Occurred()) SWIG_fail;
17437 }
17438 {
17439 wxColour * resultptr;
17440 resultptr = new wxColour((wxColour &) result);
17441 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17442 }
17443 return resultobj;
17444 fail:
17445 return NULL;
17446 }
17447
17448
17449 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17450 PyObject *resultobj;
17451 wxEffects *arg1 = (wxEffects *) 0 ;
17452 wxColour result;
17453 PyObject * obj0 = 0 ;
17454 char *kwnames[] = {
17455 (char *) "self", NULL
17456 };
17457
17458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
17459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17461 {
17462 PyThreadState* __tstate = wxPyBeginAllowThreads();
17463 result = ((wxEffects const *)arg1)->GetMediumShadow();
17464
17465 wxPyEndAllowThreads(__tstate);
17466 if (PyErr_Occurred()) SWIG_fail;
17467 }
17468 {
17469 wxColour * resultptr;
17470 resultptr = new wxColour((wxColour &) result);
17471 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17472 }
17473 return resultobj;
17474 fail:
17475 return NULL;
17476 }
17477
17478
17479 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17480 PyObject *resultobj;
17481 wxEffects *arg1 = (wxEffects *) 0 ;
17482 wxColour result;
17483 PyObject * obj0 = 0 ;
17484 char *kwnames[] = {
17485 (char *) "self", NULL
17486 };
17487
17488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
17489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17491 {
17492 PyThreadState* __tstate = wxPyBeginAllowThreads();
17493 result = ((wxEffects const *)arg1)->GetDarkShadow();
17494
17495 wxPyEndAllowThreads(__tstate);
17496 if (PyErr_Occurred()) SWIG_fail;
17497 }
17498 {
17499 wxColour * resultptr;
17500 resultptr = new wxColour((wxColour &) result);
17501 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17502 }
17503 return resultobj;
17504 fail:
17505 return NULL;
17506 }
17507
17508
17509 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17510 PyObject *resultobj;
17511 wxEffects *arg1 = (wxEffects *) 0 ;
17512 wxColour *arg2 = 0 ;
17513 wxColour temp2 ;
17514 PyObject * obj0 = 0 ;
17515 PyObject * obj1 = 0 ;
17516 char *kwnames[] = {
17517 (char *) "self",(char *) "c", NULL
17518 };
17519
17520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
17521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17523 {
17524 arg2 = &temp2;
17525 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17526 }
17527 {
17528 PyThreadState* __tstate = wxPyBeginAllowThreads();
17529 (arg1)->SetHighlightColour((wxColour const &)*arg2);
17530
17531 wxPyEndAllowThreads(__tstate);
17532 if (PyErr_Occurred()) SWIG_fail;
17533 }
17534 Py_INCREF(Py_None); resultobj = Py_None;
17535 return resultobj;
17536 fail:
17537 return NULL;
17538 }
17539
17540
17541 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17542 PyObject *resultobj;
17543 wxEffects *arg1 = (wxEffects *) 0 ;
17544 wxColour *arg2 = 0 ;
17545 wxColour temp2 ;
17546 PyObject * obj0 = 0 ;
17547 PyObject * obj1 = 0 ;
17548 char *kwnames[] = {
17549 (char *) "self",(char *) "c", NULL
17550 };
17551
17552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
17553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17555 {
17556 arg2 = &temp2;
17557 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17558 }
17559 {
17560 PyThreadState* __tstate = wxPyBeginAllowThreads();
17561 (arg1)->SetLightShadow((wxColour const &)*arg2);
17562
17563 wxPyEndAllowThreads(__tstate);
17564 if (PyErr_Occurred()) SWIG_fail;
17565 }
17566 Py_INCREF(Py_None); resultobj = Py_None;
17567 return resultobj;
17568 fail:
17569 return NULL;
17570 }
17571
17572
17573 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17574 PyObject *resultobj;
17575 wxEffects *arg1 = (wxEffects *) 0 ;
17576 wxColour *arg2 = 0 ;
17577 wxColour temp2 ;
17578 PyObject * obj0 = 0 ;
17579 PyObject * obj1 = 0 ;
17580 char *kwnames[] = {
17581 (char *) "self",(char *) "c", NULL
17582 };
17583
17584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
17585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17587 {
17588 arg2 = &temp2;
17589 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17590 }
17591 {
17592 PyThreadState* __tstate = wxPyBeginAllowThreads();
17593 (arg1)->SetFaceColour((wxColour const &)*arg2);
17594
17595 wxPyEndAllowThreads(__tstate);
17596 if (PyErr_Occurred()) SWIG_fail;
17597 }
17598 Py_INCREF(Py_None); resultobj = Py_None;
17599 return resultobj;
17600 fail:
17601 return NULL;
17602 }
17603
17604
17605 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17606 PyObject *resultobj;
17607 wxEffects *arg1 = (wxEffects *) 0 ;
17608 wxColour *arg2 = 0 ;
17609 wxColour temp2 ;
17610 PyObject * obj0 = 0 ;
17611 PyObject * obj1 = 0 ;
17612 char *kwnames[] = {
17613 (char *) "self",(char *) "c", NULL
17614 };
17615
17616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
17617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17619 {
17620 arg2 = &temp2;
17621 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17622 }
17623 {
17624 PyThreadState* __tstate = wxPyBeginAllowThreads();
17625 (arg1)->SetMediumShadow((wxColour const &)*arg2);
17626
17627 wxPyEndAllowThreads(__tstate);
17628 if (PyErr_Occurred()) SWIG_fail;
17629 }
17630 Py_INCREF(Py_None); resultobj = Py_None;
17631 return resultobj;
17632 fail:
17633 return NULL;
17634 }
17635
17636
17637 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17638 PyObject *resultobj;
17639 wxEffects *arg1 = (wxEffects *) 0 ;
17640 wxColour *arg2 = 0 ;
17641 wxColour temp2 ;
17642 PyObject * obj0 = 0 ;
17643 PyObject * obj1 = 0 ;
17644 char *kwnames[] = {
17645 (char *) "self",(char *) "c", NULL
17646 };
17647
17648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
17649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17651 {
17652 arg2 = &temp2;
17653 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17654 }
17655 {
17656 PyThreadState* __tstate = wxPyBeginAllowThreads();
17657 (arg1)->SetDarkShadow((wxColour const &)*arg2);
17658
17659 wxPyEndAllowThreads(__tstate);
17660 if (PyErr_Occurred()) SWIG_fail;
17661 }
17662 Py_INCREF(Py_None); resultobj = Py_None;
17663 return resultobj;
17664 fail:
17665 return NULL;
17666 }
17667
17668
17669 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17670 PyObject *resultobj;
17671 wxEffects *arg1 = (wxEffects *) 0 ;
17672 wxColour *arg2 = 0 ;
17673 wxColour *arg3 = 0 ;
17674 wxColour *arg4 = 0 ;
17675 wxColour *arg5 = 0 ;
17676 wxColour *arg6 = 0 ;
17677 wxColour temp2 ;
17678 wxColour temp3 ;
17679 wxColour temp4 ;
17680 wxColour temp5 ;
17681 wxColour temp6 ;
17682 PyObject * obj0 = 0 ;
17683 PyObject * obj1 = 0 ;
17684 PyObject * obj2 = 0 ;
17685 PyObject * obj3 = 0 ;
17686 PyObject * obj4 = 0 ;
17687 PyObject * obj5 = 0 ;
17688 char *kwnames[] = {
17689 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
17690 };
17691
17692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
17693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17695 {
17696 arg2 = &temp2;
17697 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17698 }
17699 {
17700 arg3 = &temp3;
17701 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17702 }
17703 {
17704 arg4 = &temp4;
17705 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17706 }
17707 {
17708 arg5 = &temp5;
17709 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
17710 }
17711 {
17712 arg6 = &temp6;
17713 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
17714 }
17715 {
17716 PyThreadState* __tstate = wxPyBeginAllowThreads();
17717 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
17718
17719 wxPyEndAllowThreads(__tstate);
17720 if (PyErr_Occurred()) SWIG_fail;
17721 }
17722 Py_INCREF(Py_None); resultobj = Py_None;
17723 return resultobj;
17724 fail:
17725 return NULL;
17726 }
17727
17728
17729 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
17730 PyObject *resultobj;
17731 wxEffects *arg1 = (wxEffects *) 0 ;
17732 wxDC *arg2 = 0 ;
17733 wxRect *arg3 = 0 ;
17734 int arg4 = (int) 1 ;
17735 wxRect temp3 ;
17736 PyObject * obj0 = 0 ;
17737 PyObject * obj1 = 0 ;
17738 PyObject * obj2 = 0 ;
17739 PyObject * obj3 = 0 ;
17740 char *kwnames[] = {
17741 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
17742 };
17743
17744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17747 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
17748 SWIG_POINTER_EXCEPTION | 0)) == -1)
17749 SWIG_fail;
17750 if (arg2 == NULL) {
17751 PyErr_SetString(PyExc_TypeError,"null reference");
17752 SWIG_fail;
17753 }
17754 {
17755 arg3 = &temp3;
17756 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17757 }
17758 if (obj3) {
17759 arg4 = (int) SWIG_AsInt(obj3);
17760 if (PyErr_Occurred()) SWIG_fail;
17761 }
17762 {
17763 PyThreadState* __tstate = wxPyBeginAllowThreads();
17764 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
17765
17766 wxPyEndAllowThreads(__tstate);
17767 if (PyErr_Occurred()) SWIG_fail;
17768 }
17769 Py_INCREF(Py_None); resultobj = Py_None;
17770 return resultobj;
17771 fail:
17772 return NULL;
17773 }
17774
17775
17776 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
17777 PyObject *resultobj;
17778 wxEffects *arg1 = (wxEffects *) 0 ;
17779 wxRect *arg2 = 0 ;
17780 wxDC *arg3 = 0 ;
17781 wxBitmap *arg4 = 0 ;
17782 bool result;
17783 wxRect temp2 ;
17784 PyObject * obj0 = 0 ;
17785 PyObject * obj1 = 0 ;
17786 PyObject * obj2 = 0 ;
17787 PyObject * obj3 = 0 ;
17788 char *kwnames[] = {
17789 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
17790 };
17791
17792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17795 {
17796 arg2 = &temp2;
17797 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17798 }
17799 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
17800 SWIG_POINTER_EXCEPTION | 0)) == -1)
17801 SWIG_fail;
17802 if (arg3 == NULL) {
17803 PyErr_SetString(PyExc_TypeError,"null reference");
17804 SWIG_fail;
17805 }
17806 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
17807 SWIG_POINTER_EXCEPTION | 0)) == -1)
17808 SWIG_fail;
17809 if (arg4 == NULL) {
17810 PyErr_SetString(PyExc_TypeError,"null reference");
17811 SWIG_fail;
17812 }
17813 {
17814 PyThreadState* __tstate = wxPyBeginAllowThreads();
17815 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
17816
17817 wxPyEndAllowThreads(__tstate);
17818 if (PyErr_Occurred()) SWIG_fail;
17819 }
17820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17821 return resultobj;
17822 fail:
17823 return NULL;
17824 }
17825
17826
17827 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
17828 PyObject *obj;
17829 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17830 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
17831 Py_INCREF(obj);
17832 return Py_BuildValue((char *)"");
17833 }
17834 static PyMethodDef SwigMethods[] = {
17835 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
17836 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
17837 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
17838 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
17839 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
17840 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
17841 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
17842 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
17843 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
17844 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
17845 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
17846 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
17847 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
17848 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
17849 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
17850 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
17851 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
17852 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
17853 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
17854 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
17855 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
17856 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
17857 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
17858 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
17859 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
17860 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
17861 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
17862 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
17863 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
17864 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
17865 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
17866 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
17867 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
17868 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
17869 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
17870 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
17871 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
17872 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
17873 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
17874 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
17875 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
17876 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
17877 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
17878 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
17879 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
17880 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
17881 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
17882 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
17883 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
17884 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
17885 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
17886 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
17887 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
17888 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
17889 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
17890 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
17891 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
17892 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
17893 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
17894 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
17895 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
17896 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
17897 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
17898 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
17899 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
17900 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
17901 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
17902 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
17903 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
17904 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
17905 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
17906 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
17907 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
17908 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
17909 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
17910 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
17911 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
17912 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
17913 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
17914 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
17915 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
17916 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
17917 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
17918 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
17919 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
17920 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
17921 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
17922 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
17923 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
17924 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
17925 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
17926 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
17927 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
17928 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
17929 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
17930 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
17931 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
17932 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
17933 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
17934 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
17935 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
17936 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
17937 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
17938 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
17939 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
17940 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
17941 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
17942 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
17943 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
17944 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
17945 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
17946 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
17947 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
17948 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
17949 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
17950 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
17951 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
17952 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
17953 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
17954 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
17955 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
17956 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
17957 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
17958 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
17959 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
17960 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
17961 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
17962 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
17963 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
17964 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
17965 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
17966 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
17967 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
17968 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
17969 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
17970 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
17971 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
17972 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
17973 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
17974 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
17975 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
17976 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
17977 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
17978 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
17979 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
17980 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
17981 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
17982 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
17983 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
17984 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
17985 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
17986 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
17987 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
17988 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
17989 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
17990 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
17991 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
17992 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
17993 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
17994 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
17995 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
17996 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
17997 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
17998 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
17999 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
18000 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
18001 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18002 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18003 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
18004 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
18005 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18006 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
18007 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
18008 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18009 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18010 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
18011 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18012 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18013 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
18014 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
18015 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18016 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18017 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
18018 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18019 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18020 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18021 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
18022 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
18023 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
18024 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
18025 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
18026 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
18027 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
18028 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
18029 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18030 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18031 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18032 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18033 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
18034 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
18035 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
18036 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
18037 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
18038 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
18039 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
18040 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
18041 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
18042 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18043 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
18044 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
18045 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
18046 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
18047 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
18048 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
18049 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
18050 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
18051 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
18052 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
18053 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
18054 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
18055 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
18056 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
18057 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
18058 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
18059 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
18060 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
18061 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18062 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
18063 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
18064 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
18065 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18066 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18067 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18068 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18069 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
18070 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
18071 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18072 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18073 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
18074 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
18075 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
18076 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18077 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18078 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18079 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18080 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
18081 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18082 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
18083 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
18084 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
18085 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18086 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18087 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18088 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18089 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
18090 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18091 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18092 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
18093 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
18094 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
18095 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
18096 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
18097 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
18098 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
18099 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
18100 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
18101 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
18102 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
18103 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
18104 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
18105 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
18106 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
18107 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
18108 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
18109 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
18110 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
18111 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
18112 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
18113 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
18114 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
18115 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
18116 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
18117 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
18118 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
18119 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
18120 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18121 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
18122 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18123 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
18124 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
18125 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
18126 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
18127 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
18128 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
18129 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18130 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18131 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
18132 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
18133 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
18134 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
18135 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
18136 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
18137 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
18138 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
18139 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
18140 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
18141 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
18142 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
18143 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
18144 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
18145 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
18146 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
18147 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
18148 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
18149 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
18150 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
18151 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
18152 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
18153 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
18154 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
18155 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
18156 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
18157 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
18158 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
18159 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
18160 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
18161 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
18162 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
18163 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
18164 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
18165 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
18166 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
18167 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
18168 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
18169 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
18170 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
18171 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
18172 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
18173 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
18174 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
18175 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
18176 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
18177 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
18178 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
18179 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
18180 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
18181 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
18182 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
18183 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
18184 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
18185 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
18186 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
18187 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
18188 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
18189 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
18190 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
18191 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18192 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
18193 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
18194 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
18195 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
18196 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
18197 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
18198 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
18199 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
18200 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
18201 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
18202 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
18203 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
18204 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
18205 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
18206 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
18207 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
18208 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
18209 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
18210 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
18211 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
18212 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
18213 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
18214 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
18215 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
18216 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
18217 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
18218 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
18219 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
18220 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
18221 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
18222 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
18223 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18224 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
18225 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
18226 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
18227 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
18228 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
18229 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
18230 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
18231 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
18232 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
18233 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
18234 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
18235 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
18236 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18237 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18238 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18239 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
18240 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18241 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18242 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
18243 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18244 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
18245 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18246 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18247 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
18248 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
18249 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
18250 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18251 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
18252 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
18253 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
18254 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
18255 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18256 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
18257 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
18258 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
18259 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
18260 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
18261 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
18262 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
18263 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
18264 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
18265 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
18266 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
18267 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
18268 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
18269 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
18270 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
18271 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
18272 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
18273 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
18274 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
18275 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
18276 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18277 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18278 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
18279 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
18280 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
18281 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
18282 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
18283 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
18284 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
18285 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
18286 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
18287 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
18288 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
18289 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
18290 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
18291 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
18292 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
18293 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
18294 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
18295 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
18296 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
18297 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
18298 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
18299 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
18300 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
18301 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
18302 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
18303 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
18304 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
18305 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
18306 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
18307 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
18308 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
18309 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
18310 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
18311 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
18312 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
18313 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
18314 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
18315 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
18316 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
18317 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
18318 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
18319 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
18320 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
18321 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18322 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18323 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
18324 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
18325 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
18326 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
18327 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
18328 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
18329 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
18330 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
18331 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
18332 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
18333 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
18334 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18335 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
18336 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
18337 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18338 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18339 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18340 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
18341 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
18342 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18343 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18344 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
18345 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
18346 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
18347 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
18348 { NULL, NULL }
18349 };
18350
18351
18352 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
18353
18354 static void *_p_wxControlTo_p_wxWindow(void *x) {
18355 return (void *)((wxWindow *) ((wxControl *) x));
18356 }
18357 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
18358 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
18359 }
18360 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
18361 return (void *)((wxWindow *) ((wxMenuBar *) x));
18362 }
18363 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
18364 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
18365 }
18366 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
18367 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
18368 }
18369 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
18370 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
18371 }
18372 static void *_p_wxPenTo_p_wxObject(void *x) {
18373 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
18374 }
18375 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
18376 return (void *)((wxObject *) ((wxRegionIterator *) x));
18377 }
18378 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
18379 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
18380 }
18381 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
18382 return (void *)((wxObject *) ((wxSizerItem *) x));
18383 }
18384 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
18385 return (void *)((wxObject *) ((wxColourDatabase *) x));
18386 }
18387 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
18388 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
18389 }
18390 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
18391 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
18392 }
18393 static void *_p_wxIconTo_p_wxObject(void *x) {
18394 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
18395 }
18396 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
18397 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
18398 }
18399 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
18400 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
18401 }
18402 static void *_p_wxSizerTo_p_wxObject(void *x) {
18403 return (void *)((wxObject *) ((wxSizer *) x));
18404 }
18405 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
18406 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
18407 }
18408 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18409 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18410 }
18411 static void *_p_wxPenListTo_p_wxObject(void *x) {
18412 return (void *)((wxObject *) ((wxPenList *) x));
18413 }
18414 static void *_p_wxEventTo_p_wxObject(void *x) {
18415 return (void *)((wxObject *) ((wxEvent *) x));
18416 }
18417 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
18418 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
18419 }
18420 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
18421 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
18422 }
18423 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
18424 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
18425 }
18426 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
18427 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
18428 }
18429 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
18430 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
18431 }
18432 static void *_p_wxDCTo_p_wxObject(void *x) {
18433 return (void *)((wxObject *) ((wxDC *) x));
18434 }
18435 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
18436 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
18437 }
18438 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
18439 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
18440 }
18441 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
18442 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
18443 }
18444 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
18445 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
18446 }
18447 static void *_p_wxControlTo_p_wxObject(void *x) {
18448 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
18449 }
18450 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
18451 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
18452 }
18453 static void *_p_wxClientDCTo_p_wxObject(void *x) {
18454 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
18455 }
18456 static void *_p_wxFSFileTo_p_wxObject(void *x) {
18457 return (void *)((wxObject *) ((wxFSFile *) x));
18458 }
18459 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
18460 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
18461 }
18462 static void *_p_wxRegionTo_p_wxObject(void *x) {
18463 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
18464 }
18465 static void *_p_wxPySizerTo_p_wxObject(void *x) {
18466 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
18467 }
18468 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
18469 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
18470 }
18471 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
18472 return (void *)((wxObject *) ((wxGDIObject *) x));
18473 }
18474 static void *_p_wxEffectsTo_p_wxObject(void *x) {
18475 return (void *)((wxObject *) ((wxEffects *) x));
18476 }
18477 static void *_p_wxPyEventTo_p_wxObject(void *x) {
18478 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
18479 }
18480 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
18481 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
18482 }
18483 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
18484 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
18485 }
18486 static void *_p_wxShowEventTo_p_wxObject(void *x) {
18487 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
18488 }
18489 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
18490 return (void *)((wxObject *) ((wxMenuItem *) x));
18491 }
18492 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
18493 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
18494 }
18495 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
18496 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
18497 }
18498 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
18499 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
18500 }
18501 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
18502 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
18503 }
18504 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
18505 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
18506 }
18507 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
18508 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
18509 }
18510 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
18511 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
18512 }
18513 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
18514 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
18515 }
18516 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
18517 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
18518 }
18519 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
18520 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
18521 }
18522 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
18523 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
18524 }
18525 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
18526 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
18527 }
18528 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
18529 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
18530 }
18531 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
18532 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
18533 }
18534 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
18535 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
18536 }
18537 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
18538 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
18539 }
18540 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
18541 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
18542 }
18543 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
18544 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
18545 }
18546 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
18547 return (void *)((wxObject *) ((wxImageHandler *) x));
18548 }
18549 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
18550 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
18551 }
18552 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
18553 return (void *)((wxObject *) ((wxEvtHandler *) x));
18554 }
18555 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
18556 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18557 }
18558 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
18559 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
18560 }
18561 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
18562 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
18563 }
18564 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
18565 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
18566 }
18567 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
18568 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
18569 }
18570 static void *_p_wxImageTo_p_wxObject(void *x) {
18571 return (void *)((wxObject *) ((wxImage *) x));
18572 }
18573 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
18574 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
18575 }
18576 static void *_p_wxPaletteTo_p_wxObject(void *x) {
18577 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
18578 }
18579 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
18580 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
18581 }
18582 static void *_p_wxImageListTo_p_wxObject(void *x) {
18583 return (void *)((wxObject *) ((wxImageList *) x));
18584 }
18585 static void *_p_wxCursorTo_p_wxObject(void *x) {
18586 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
18587 }
18588 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
18589 return (void *)((wxObject *) ((wxEncodingConverter *) x));
18590 }
18591 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
18592 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
18593 }
18594 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
18595 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
18596 }
18597 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
18598 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
18599 }
18600 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
18601 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
18602 }
18603 static void *_p_wxWindowTo_p_wxObject(void *x) {
18604 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
18605 }
18606 static void *_p_wxMenuTo_p_wxObject(void *x) {
18607 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
18608 }
18609 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
18610 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
18611 }
18612 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
18613 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
18614 }
18615 static void *_p_wxBrushListTo_p_wxObject(void *x) {
18616 return (void *)((wxObject *) ((wxBrushList *) x));
18617 }
18618 static void *_p_wxPyPenTo_p_wxObject(void *x) {
18619 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
18620 }
18621 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
18622 return (void *)((wxObject *) ((wxFileSystem *) x));
18623 }
18624 static void *_p_wxBitmapTo_p_wxObject(void *x) {
18625 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
18626 }
18627 static void *_p_wxMaskTo_p_wxObject(void *x) {
18628 return (void *)((wxObject *) ((wxMask *) x));
18629 }
18630 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
18631 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
18632 }
18633 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
18634 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
18635 }
18636 static void *_p_wxPyAppTo_p_wxObject(void *x) {
18637 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
18638 }
18639 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
18640 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
18641 }
18642 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
18643 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
18644 }
18645 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
18646 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
18647 }
18648 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
18649 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
18650 }
18651 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
18652 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
18653 }
18654 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
18655 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
18656 }
18657 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
18658 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
18659 }
18660 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
18661 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
18662 }
18663 static void *_p_wxFontTo_p_wxObject(void *x) {
18664 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
18665 }
18666 static void *_p_wxBrushTo_p_wxObject(void *x) {
18667 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
18668 }
18669 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
18670 return (void *)((wxObject *) ((wxMetaFile *) x));
18671 }
18672 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
18673 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
18674 }
18675 static void *_p_wxColourTo_p_wxObject(void *x) {
18676 return (void *)((wxObject *) ((wxColour *) x));
18677 }
18678 static void *_p_wxFontListTo_p_wxObject(void *x) {
18679 return (void *)((wxObject *) ((wxFontList *) x));
18680 }
18681 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
18682 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
18683 }
18684 static void *_p_wxValidatorTo_p_wxObject(void *x) {
18685 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
18686 }
18687 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
18688 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
18689 }
18690 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
18691 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
18692 }
18693 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
18694 return (void *)((wxDC *) ((wxScreenDC *) x));
18695 }
18696 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
18697 return (void *)((wxDC *) ((wxMirrorDC *) x));
18698 }
18699 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
18700 return (void *)((wxDC *) ((wxMemoryDC *) x));
18701 }
18702 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
18703 return (void *)((wxDC *) ((wxWindowDC *) x));
18704 }
18705 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
18706 return (void *)((wxDC *) ((wxMetaFileDC *) x));
18707 }
18708 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
18709 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18710 }
18711 static void *_p_wxClientDCTo_p_wxDC(void *x) {
18712 return (void *)((wxDC *) ((wxClientDC *) x));
18713 }
18714 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
18715 return (void *)((wxDC *) ((wxPaintDC *) x));
18716 }
18717 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
18718 return (void *)((wxDC *) ((wxPostScriptDC *) x));
18719 }
18720 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
18721 return (void *)((wxDC *) ((wxPrinterDC *) x));
18722 }
18723 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
18724 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
18725 }
18726 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
18727 return (void *)((wxGDIObject *) ((wxIcon *) x));
18728 }
18729 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
18730 return (void *)((wxGDIObject *) ((wxPalette *) x));
18731 }
18732 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
18733 return (void *)((wxGDIObject *) ((wxPen *) x));
18734 }
18735 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
18736 return (void *)((wxGDIObject *) ((wxFont *) x));
18737 }
18738 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
18739 return (void *)((wxGDIObject *) ((wxCursor *) x));
18740 }
18741 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
18742 return (void *)((wxGDIObject *) ((wxBitmap *) x));
18743 }
18744 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
18745 return (void *)((wxGDIObject *) ((wxRegion *) x));
18746 }
18747 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
18748 return (void *)((wxGDIObject *) ((wxBrush *) x));
18749 }
18750 static void *_p_wxPyPenTo_p_wxPen(void *x) {
18751 return (void *)((wxPen *) ((wxPyPen *) x));
18752 }
18753 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}};
18754 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}};
18755 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}};
18756 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}};
18757 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}};
18758 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}};
18759 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}};
18760 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}};
18761 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}};
18762 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}};
18763 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}};
18764 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}};
18765 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}};
18766 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}};
18767 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}};
18768 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}};
18769 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}};
18770 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}};
18771 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}};
18772 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}};
18773 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}};
18774 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}};
18775 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}};
18776 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}};
18777 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}};
18778 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}};
18779 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}};
18780 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}};
18781 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}};
18782 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}};
18783 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}};
18784 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}};
18785 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}};
18786 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}};
18787 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}};
18788 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}};
18789 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}};
18790 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}};
18791 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}};
18792 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}};
18793 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}};
18794 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}};
18795 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}};
18796 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}};
18797 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}};
18798 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}};
18799 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}};
18800 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}};
18801 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}};
18802 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}};
18803 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}};
18804 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}};
18805 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}};
18806 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}};
18807 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}};
18808 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}};
18809
18810 static swig_type_info *swig_types_initial[] = {
18811 _swigt__p_wxPostScriptDC,
18812 _swigt__p_wxBrush,
18813 _swigt__p_wxColour,
18814 _swigt__p_wxDC,
18815 _swigt__p_wxMirrorDC,
18816 _swigt__p_byte,
18817 _swigt__p_wxPyFontEnumerator,
18818 _swigt__p_char,
18819 _swigt__p_wxIconLocation,
18820 _swigt__p_wxImage,
18821 _swigt__p_wxMetaFileDC,
18822 _swigt__p_wxMask,
18823 _swigt__p_wxFont,
18824 _swigt__p_wxWindow,
18825 _swigt__p_wxSize,
18826 _swigt__p_double,
18827 _swigt__p_wxMemoryDC,
18828 _swigt__p_wxFontMapper,
18829 _swigt__p_wxEffects,
18830 _swigt__p_wxNativeEncodingInfo,
18831 _swigt__p_wxPalette,
18832 _swigt__p_wxBitmap,
18833 _swigt__p_wxObject,
18834 _swigt__p_wxRegionIterator,
18835 _swigt__p_wxRect,
18836 _swigt__p_wxString,
18837 _swigt__p_wxPrinterDC,
18838 _swigt__p_wxIconBundle,
18839 _swigt__p_wxPoint,
18840 _swigt__p_wxDash,
18841 _swigt__p_wxScreenDC,
18842 _swigt__p_wxCursor,
18843 _swigt__p_wxClientDC,
18844 _swigt__p_wxBufferedDC,
18845 _swigt__p_wxImageList,
18846 _swigt__p_unsigned_char,
18847 _swigt__p_wxGDIObject,
18848 _swigt__p_wxIcon,
18849 _swigt__p_wxLocale,
18850 _swigt__p_wxRegion,
18851 _swigt__p_wxLanguageInfo,
18852 _swigt__p_wxConfigBase,
18853 _swigt__p_wxWindowDC,
18854 _swigt__p_wxPrintData,
18855 _swigt__p_wxBrushList,
18856 _swigt__p_wxFontList,
18857 _swigt__p_wxPen,
18858 _swigt__p_wxBufferedPaintDC,
18859 _swigt__p_wxPaintDC,
18860 _swigt__p_wxPenList,
18861 _swigt__p_wxPyPen,
18862 _swigt__p_int,
18863 _swigt__p_wxMetaFile,
18864 _swigt__p_wxNativeFontInfo,
18865 _swigt__p_wxEncodingConverter,
18866 _swigt__p_wxColourDatabase,
18867 0
18868 };
18869
18870
18871 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
18872
18873 static swig_const_info swig_const_table[] = {
18874 {0}};
18875
18876 #ifdef __cplusplus
18877 }
18878 #endif
18879
18880 #ifdef __cplusplus
18881 extern "C"
18882 #endif
18883 SWIGEXPORT(void) SWIG_init(void) {
18884 static PyObject *SWIG_globals = 0;
18885 static int typeinit = 0;
18886 PyObject *m, *d;
18887 int i;
18888 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
18889 m = Py_InitModule((char *) SWIG_name, SwigMethods);
18890 d = PyModule_GetDict(m);
18891
18892 if (!typeinit) {
18893 for (i = 0; swig_types_initial[i]; i++) {
18894 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
18895 }
18896 typeinit = 1;
18897 }
18898 SWIG_InstallConstants(d,swig_const_table);
18899
18900 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
18901 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
18902 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
18903 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
18904 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
18905 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
18906 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
18907 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
18908 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
18909 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
18910 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
18911 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
18912 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
18913 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
18914 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
18915 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
18916 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
18917 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
18918 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
18919 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
18920 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
18921 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
18922 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
18923 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
18924 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
18925 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
18926 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
18927 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
18928 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
18929 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
18930 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
18931 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
18932 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
18933 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
18934 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
18935 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
18936 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
18937 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
18938 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
18939 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
18940 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
18941 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
18942 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
18943 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
18944 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
18945 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
18946 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
18947 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
18948 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
18949 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
18950 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
18951 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
18952 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
18953 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
18954 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
18955 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
18956 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
18957 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
18958 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
18959 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
18960 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
18961 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
18962 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
18963 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
18964 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
18965 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
18966 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
18967 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
18968 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
18969 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
18970 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
18971 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
18972 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
18973 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
18974 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
18975 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
18976 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
18977 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
18978 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
18979 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
18980 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
18981 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
18982 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
18983 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
18984 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
18985 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
18986 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
18987 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
18988 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
18989 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
18990 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
18991 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
18992 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
18993 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
18994 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
18995 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
18996 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
18997 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
18998 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
18999 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
19000 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
19001 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
19002 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
19003 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
19004 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
19005 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
19006 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
19007 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
19008 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
19009 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
19010 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
19011 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
19012 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
19013 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
19014 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
19015 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
19016 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
19017 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
19018 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
19019 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
19020 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
19021 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
19022 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
19023 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
19024 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
19025 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
19026
19027 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19028
19029 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
19030 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
19031 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
19032 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
19033 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
19034 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
19035 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
19036 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
19037 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
19038 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
19039 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
19040 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
19041 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
19042 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
19043 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
19044 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
19045 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
19046 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
19047 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
19048 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19049 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
19050 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
19051 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
19052 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
19053 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
19054 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
19055 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
19056 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
19057 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
19058 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
19059 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
19060 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
19061 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
19062 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
19063 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
19064 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
19065 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
19066 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
19067 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
19068 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
19069 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
19070 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
19071 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
19072 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
19073 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19074 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19075 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
19076 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
19077 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
19078 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
19079 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
19080 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
19081 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
19082 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
19083 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
19084 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
19085 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
19086 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
19087 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
19088 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19089 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
19090 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19091 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
19092 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19093 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
19094 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
19095 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
19096 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19097 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19098 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19099 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19100 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19101 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
19102 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
19103 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
19104 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
19105 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
19106 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
19107 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
19108 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
19109 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
19110 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19111 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
19112 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
19113 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
19114 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
19115 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
19116 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
19117 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19118 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
19119 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19120 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19121 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
19122 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
19123 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
19124 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
19125 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
19126 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
19127 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
19128 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
19129 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
19130 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
19131 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
19132 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
19133 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
19134 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
19135 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
19136 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
19137 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
19138 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19139 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
19140 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
19141 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
19142 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
19143 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19144 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
19145 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
19146 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
19147 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
19148 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
19149 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
19150 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
19151 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
19152 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
19153 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
19154 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
19155 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
19156 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
19157 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
19158 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
19159 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
19160 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
19161 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19162 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19163 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
19164 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
19165 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
19166 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
19167 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19168 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
19169 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
19170 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
19171 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
19172 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19173 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19174 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
19175 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
19176 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
19177 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
19178 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
19179 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
19180 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19181 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
19182 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
19183 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
19184 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
19185 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
19186 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19187 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
19188 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
19189 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
19190 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19191 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
19192 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19193 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19194 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19195 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
19196 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
19197 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
19198 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
19199 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
19200 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
19201 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
19202 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
19203 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
19204 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
19205 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19206 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19207 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19208 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19209 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19210 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19211 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19212 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19213 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19214 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19215 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19216 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19217 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19218 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19219 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19220 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19221 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19222 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19223 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
19224 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19225 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
19226 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
19227 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
19228 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19229 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
19230 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
19231 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
19232 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
19233 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
19234 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
19235 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
19236 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
19237 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
19238 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
19239 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
19240 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
19241 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
19242 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
19243 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
19244 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
19245 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
19246 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19247 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
19248 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19249 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19250 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
19251 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
19252 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
19253 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
19254 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
19255 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
19256 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
19257 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
19258 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
19259 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
19260 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
19261 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
19262 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
19263 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
19264 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19265 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
19266 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19267 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
19268 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
19269 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
19270 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
19271 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
19272 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
19273 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
19274 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
19275 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19276 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19277 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19278 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19279 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
19280 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
19281 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
19282 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19283 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19284 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19285 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19286 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19287 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19288 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19289 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19290 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19291 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19292 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19293 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19294 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19295 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19296 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19297 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19298 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19299 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19300 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19301 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19302 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19303 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19304 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19305 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19306 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19307 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19308 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19309 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19310 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19311 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19312 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19313 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19314 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19315 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19316 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19317 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19318 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19319 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19320 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19321 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19322 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19323 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19324 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19325 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19326 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19327 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19328 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
19329
19330 // Work around a chicken/egg problem in drawlist.cpp
19331 wxPyDrawList_SetAPIPtr();
19332
19333 }
19334