]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/gdi_wrap.cpp
reSWIGged
[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 bool blocked = 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(blocked);
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 bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; }
600 bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; }
601 wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
602 if ( !colour.Ok() )
603 return new wxMask(bitmap, *wxBLACK);
604 else
605 return new wxMask(bitmap, colour);
606 }
607
608 #include <wx/iconbndl.h>
609
610 wxIcon *new_wxIcon(wxBitmap const &bmp){
611 wxIcon* icon = new wxIcon();
612 icon->CopyFromBitmap(bmp);
613 return icon;
614 }
615 wxIcon *new_wxIcon(PyObject *listOfStrings){
616 char** cArray = NULL;
617 wxIcon* icon;
618
619 cArray = ConvertListOfStrings(listOfStrings);
620 if (! cArray)
621 return NULL;
622 icon = new wxIcon(cArray);
623 delete [] cArray;
624 return icon;
625 }
626 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
627
628
629
630 return new wxIconLocation(*filename);
631
632 }
633 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
634
635
636
637 // do nothing
638
639 }
640 int wxIconLocation_GetIndex(wxIconLocation *self){
641
642
643
644 return -1;
645
646 }
647
648 SWIGSTATICINLINE(int)
649 SWIG_CheckLong(PyObject* obj)
650 {
651 SWIG_AsLong(obj);
652 if (PyErr_Occurred()) {
653 PyErr_Clear();
654 return 0;
655 } else {
656 return 1;
657 }
658 }
659
660 wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
661 #ifdef __WXGTK__
662 wxCHECK_MSG(False, NULL,
663 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
664 #else
665 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
666 #endif
667 }
668
669
670 void wxRegionIterator_Next(wxRegionIterator *self){
671 (*self) ++;
672 }
673 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
674 return self->operator bool();
675 }
676
677 #include <wx/fontutil.h>
678 #include <wx/fontmap.h>
679 #include <wx/fontenum.h>
680
681 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
682 return self->ToString();
683 }
684
685 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
686 static wxNativeEncodingInfo info;
687 if ( wxGetNativeFontEncoding(encoding, &info) )
688 return &info;
689 else
690 return NULL;
691 }
692
693 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
694 wxFontEncoding alt_enc;
695 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
696 return PyInt_FromLong(alt_enc);
697 else {
698 Py_INCREF(Py_None);
699 return Py_None;
700 }
701 }
702 wxFont *new_wxFont(wxString const &info){
703 wxNativeFontInfo nfi;
704 nfi.FromString(info);
705 return new wxFont(nfi);
706 }
707 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
708 return wxFont::New(pointSize, family, flags, face, encoding);
709 }
710 bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
711 bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
712
713 class wxPyFontEnumerator : public wxFontEnumerator {
714 public:
715 wxPyFontEnumerator() {}
716 ~wxPyFontEnumerator() {}
717
718 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
719 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
720
721 PYPRIVATE;
722 };
723
724 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
725 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
726
727
728 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
729 wxArrayString* arr = self->GetEncodings();
730 return wxArrayString2PyList_helper(*arr);
731 }
732 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
733 wxArrayString* arr = self->GetFacenames();
734 return wxArrayString2PyList_helper(*arr);
735 }
736
737
738
739 #include "wx/wxPython/pydrawxxx.h"
740
741 wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
742 wxColour col;
743 self->GetPixel(x, y, &col);
744 return col;
745 }
746 wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
747 wxColour col;
748 self->GetPixel(pt, &col);
749 return col;
750 }
751
752 SWIGSTATICINLINE(double)
753 SWIG_AsDouble(PyObject *obj)
754 {
755 double val = (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
756 #if HAVE_LONG_LONG
757 ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
758 #else
759 ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj));
760 #endif
761 if (PyErr_Occurred()) {
762 PyErr_Clear();
763 PyErr_SetString(PyExc_TypeError, "a double is expected");
764 }
765 return val;
766 }
767
768
769 SWIGSTATICINLINE(int)
770 SWIG_CheckDouble(PyObject* obj)
771 {
772 SWIG_AsDouble(obj);
773 if (PyErr_Occurred()) {
774 PyErr_Clear();
775 return 0;
776 } else {
777 return 1;
778 }
779 }
780
781 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
782 wxRect rv;
783 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
784 return rv;
785 }
786 wxRect wxDC_GetClippingRect(wxDC *self){
787 wxRect rect;
788 self->GetClippingBox(rect);
789 return rect;
790 }
791 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
792 wxArrayInt widths;
793 self->GetPartialTextExtents(text, widths);
794 return widths;
795 }
796 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
797 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
798 }
799 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
800 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
801 }
802 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
803 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
804 }
805 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
806 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
807 }
808 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
809 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
810 }
811 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
812 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
813 }
814
815 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
816 *x1 = dc->MinX();
817 *y1 = dc->MinY();
818 *x2 = dc->MaxX();
819 *y2 = dc->MaxY();
820 }
821
822
823 //-=-=-=-=-=-=-=-=-=-=-
824
825 #if 1
826 // Use the standard wxBufferedDC
827 #include <wx/dcbuffer.h>
828
829 #else
830
831 // Or, temporarily put a set of classes here similar to the old buffered DC
832 // classes until the real ones can be fixed to work "correctly" again.
833
834 class wxBufferedDC : public wxMemoryDC
835 {
836 private:
837 wxDC *m_dc;
838 wxBitmap m_buffer;
839
840 public:
841
842 wxBufferedDC() : m_dc( 0 ) {}
843
844 wxBufferedDC( wxDC *dc, const wxBitmap &buffer )
845 : m_dc( dc ), m_buffer( buffer )
846 {
847 SelectObject( m_buffer );
848 }
849
850 wxBufferedDC( wxDC *dc, const wxSize &area )
851 : m_dc( dc ), m_buffer( area.GetWidth(), area.GetHeight() )
852 {
853 SelectObject( m_buffer );
854 }
855
856 ~wxBufferedDC() {
857 if( m_dc != 0 )
858 UnMask();
859 }
860
861
862 void Init( wxDC *dc, const wxBitmap &buffer ) {
863 wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap,
864 _T("wxBufferedDC already initialised") );
865 m_dc = dc;
866 m_buffer = buffer;
867 SelectObject( m_buffer );
868 }
869
870 void Init( wxDC *dc, const wxSize &area ) {
871 wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap,
872 _T("wxBufferedDC already initialised") );
873 m_dc = dc;
874 m_buffer = wxBitmap( area.GetWidth(), area.GetHeight() );
875 SelectObject( m_buffer );
876 }
877
878 void UnMask() {
879 wxASSERT_MSG( m_dc != 0, _T("No low level DC associated with buffer (anymore)") );
880 m_dc->Blit( 0, 0, m_buffer.GetWidth(), m_buffer.GetHeight(), this, 0, 0 );
881 m_dc = 0;
882 }
883 };
884
885
886 class wxBufferedPaintDC : public wxBufferedDC
887 {
888 private:
889 wxPaintDC m_paintdc;
890
891 public:
892 wxBufferedPaintDC( wxWindow *window, const wxBitmap &buffer = wxNullBitmap )
893 : m_paintdc( window )
894 {
895 window->PrepareDC( m_paintdc );
896
897 if( buffer != wxNullBitmap )
898 Init( &m_paintdc, buffer );
899 else
900 Init( &m_paintdc, window->GetClientSize() );
901 }
902
903 ~wxBufferedPaintDC() {
904 UnMask();
905 }
906 };
907
908 #endif
909 //-=-=-=-=-=-=-=-=-=-=-
910
911
912 #include <wx/dcps.h>
913
914
915 class wxMetaFile : public wxObject {
916 public:
917 wxMetaFile(const wxString&)
918 { wxPyRaiseNotImplemented(); }
919 };
920
921 class wxMetaFileDC : public wxClientDC {
922 public:
923 wxMetaFileDC(const wxString&, int, int, const wxString&)
924 { wxPyRaiseNotImplemented(); }
925 };
926
927
928
929 class wxPrinterDC : public wxClientDC {
930 public:
931 wxPrinterDC(const wxPrintData&)
932 { wxPyRaiseNotImplemented(); }
933
934 // wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int)
935 // { wxPyRaiseNotImplemented(); }
936 };
937
938
939
940 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
941 self->AddColour(name, wxColour(red, green, blue));
942 }
943
944 #include <wx/effects.h>
945
946 #ifdef __cplusplus
947 extern "C" {
948 #endif
949 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
950 PyObject *resultobj;
951 wxGDIObject *result;
952 char *kwnames[] = {
953 NULL
954 };
955
956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
957 {
958 PyThreadState* __tstate = wxPyBeginAllowThreads();
959 result = (wxGDIObject *)new wxGDIObject();
960
961 wxPyEndAllowThreads(__tstate);
962 if (PyErr_Occurred()) SWIG_fail;
963 }
964 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
965 return resultobj;
966 fail:
967 return NULL;
968 }
969
970
971 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
972 PyObject *resultobj;
973 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
974 PyObject * obj0 = 0 ;
975 char *kwnames[] = {
976 (char *) "self", NULL
977 };
978
979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
982 {
983 PyThreadState* __tstate = wxPyBeginAllowThreads();
984 delete arg1;
985
986 wxPyEndAllowThreads(__tstate);
987 if (PyErr_Occurred()) SWIG_fail;
988 }
989 Py_INCREF(Py_None); resultobj = Py_None;
990 return resultobj;
991 fail:
992 return NULL;
993 }
994
995
996 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
997 PyObject *resultobj;
998 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
999 bool result;
1000 PyObject * obj0 = 0 ;
1001 char *kwnames[] = {
1002 (char *) "self", NULL
1003 };
1004
1005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
1006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1008 {
1009 PyThreadState* __tstate = wxPyBeginAllowThreads();
1010 result = (bool)(arg1)->GetVisible();
1011
1012 wxPyEndAllowThreads(__tstate);
1013 if (PyErr_Occurred()) SWIG_fail;
1014 }
1015 {
1016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1017 }
1018 return resultobj;
1019 fail:
1020 return NULL;
1021 }
1022
1023
1024 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1025 PyObject *resultobj;
1026 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1027 bool arg2 ;
1028 PyObject * obj0 = 0 ;
1029 PyObject * obj1 = 0 ;
1030 char *kwnames[] = {
1031 (char *) "self",(char *) "visible", NULL
1032 };
1033
1034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
1035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1037 arg2 = (bool) SWIG_AsBool(obj1);
1038 if (PyErr_Occurred()) SWIG_fail;
1039 {
1040 PyThreadState* __tstate = wxPyBeginAllowThreads();
1041 (arg1)->SetVisible(arg2);
1042
1043 wxPyEndAllowThreads(__tstate);
1044 if (PyErr_Occurred()) SWIG_fail;
1045 }
1046 Py_INCREF(Py_None); resultobj = Py_None;
1047 return resultobj;
1048 fail:
1049 return NULL;
1050 }
1051
1052
1053 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1054 PyObject *resultobj;
1055 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1056 bool result;
1057 PyObject * obj0 = 0 ;
1058 char *kwnames[] = {
1059 (char *) "self", NULL
1060 };
1061
1062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
1063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1065 {
1066 PyThreadState* __tstate = wxPyBeginAllowThreads();
1067 result = (bool)(arg1)->IsNull();
1068
1069 wxPyEndAllowThreads(__tstate);
1070 if (PyErr_Occurred()) SWIG_fail;
1071 }
1072 {
1073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1074 }
1075 return resultobj;
1076 fail:
1077 return NULL;
1078 }
1079
1080
1081 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
1082 PyObject *obj;
1083 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1084 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1085 Py_INCREF(obj);
1086 return Py_BuildValue((char *)"");
1087 }
1088 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1089 PyObject *resultobj;
1090 unsigned char arg1 = (unsigned char) 0 ;
1091 unsigned char arg2 = (unsigned char) 0 ;
1092 unsigned char arg3 = (unsigned char) 0 ;
1093 wxColour *result;
1094 PyObject * obj0 = 0 ;
1095 PyObject * obj1 = 0 ;
1096 PyObject * obj2 = 0 ;
1097 char *kwnames[] = {
1098 (char *) "red",(char *) "green",(char *) "blue", NULL
1099 };
1100
1101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1102 if (obj0) {
1103 arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0);
1104 if (PyErr_Occurred()) SWIG_fail;
1105 }
1106 if (obj1) {
1107 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1108 if (PyErr_Occurred()) SWIG_fail;
1109 }
1110 if (obj2) {
1111 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1112 if (PyErr_Occurred()) SWIG_fail;
1113 }
1114 {
1115 PyThreadState* __tstate = wxPyBeginAllowThreads();
1116 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1117
1118 wxPyEndAllowThreads(__tstate);
1119 if (PyErr_Occurred()) SWIG_fail;
1120 }
1121 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1122 return resultobj;
1123 fail:
1124 return NULL;
1125 }
1126
1127
1128 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1129 PyObject *resultobj;
1130 wxString *arg1 = 0 ;
1131 wxColour *result;
1132 bool temp1 = False ;
1133 PyObject * obj0 = 0 ;
1134 char *kwnames[] = {
1135 (char *) "colorName", NULL
1136 };
1137
1138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1139 {
1140 arg1 = wxString_in_helper(obj0);
1141 if (arg1 == NULL) SWIG_fail;
1142 temp1 = True;
1143 }
1144 {
1145 PyThreadState* __tstate = wxPyBeginAllowThreads();
1146 result = (wxColour *)new wxColour((wxString const &)*arg1);
1147
1148 wxPyEndAllowThreads(__tstate);
1149 if (PyErr_Occurred()) SWIG_fail;
1150 }
1151 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1152 {
1153 if (temp1)
1154 delete arg1;
1155 }
1156 return resultobj;
1157 fail:
1158 {
1159 if (temp1)
1160 delete arg1;
1161 }
1162 return NULL;
1163 }
1164
1165
1166 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1167 PyObject *resultobj;
1168 unsigned long arg1 ;
1169 wxColour *result;
1170 PyObject * obj0 = 0 ;
1171 char *kwnames[] = {
1172 (char *) "colRGB", NULL
1173 };
1174
1175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1176 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1177 if (PyErr_Occurred()) SWIG_fail;
1178 {
1179 PyThreadState* __tstate = wxPyBeginAllowThreads();
1180 result = (wxColour *)new wxColour(arg1);
1181
1182 wxPyEndAllowThreads(__tstate);
1183 if (PyErr_Occurred()) SWIG_fail;
1184 }
1185 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1186 return resultobj;
1187 fail:
1188 return NULL;
1189 }
1190
1191
1192 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1193 PyObject *resultobj;
1194 wxColour *arg1 = (wxColour *) 0 ;
1195 PyObject * obj0 = 0 ;
1196 char *kwnames[] = {
1197 (char *) "self", NULL
1198 };
1199
1200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1203 {
1204 PyThreadState* __tstate = wxPyBeginAllowThreads();
1205 delete arg1;
1206
1207 wxPyEndAllowThreads(__tstate);
1208 if (PyErr_Occurred()) SWIG_fail;
1209 }
1210 Py_INCREF(Py_None); resultobj = Py_None;
1211 return resultobj;
1212 fail:
1213 return NULL;
1214 }
1215
1216
1217 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1218 PyObject *resultobj;
1219 wxColour *arg1 = (wxColour *) 0 ;
1220 unsigned char result;
1221 PyObject * obj0 = 0 ;
1222 char *kwnames[] = {
1223 (char *) "self", NULL
1224 };
1225
1226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1229 {
1230 PyThreadState* __tstate = wxPyBeginAllowThreads();
1231 result = (unsigned char)(arg1)->Red();
1232
1233 wxPyEndAllowThreads(__tstate);
1234 if (PyErr_Occurred()) SWIG_fail;
1235 }
1236 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1237 return resultobj;
1238 fail:
1239 return NULL;
1240 }
1241
1242
1243 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1244 PyObject *resultobj;
1245 wxColour *arg1 = (wxColour *) 0 ;
1246 unsigned char result;
1247 PyObject * obj0 = 0 ;
1248 char *kwnames[] = {
1249 (char *) "self", NULL
1250 };
1251
1252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1255 {
1256 PyThreadState* __tstate = wxPyBeginAllowThreads();
1257 result = (unsigned char)(arg1)->Green();
1258
1259 wxPyEndAllowThreads(__tstate);
1260 if (PyErr_Occurred()) SWIG_fail;
1261 }
1262 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1263 return resultobj;
1264 fail:
1265 return NULL;
1266 }
1267
1268
1269 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1270 PyObject *resultobj;
1271 wxColour *arg1 = (wxColour *) 0 ;
1272 unsigned char result;
1273 PyObject * obj0 = 0 ;
1274 char *kwnames[] = {
1275 (char *) "self", NULL
1276 };
1277
1278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1281 {
1282 PyThreadState* __tstate = wxPyBeginAllowThreads();
1283 result = (unsigned char)(arg1)->Blue();
1284
1285 wxPyEndAllowThreads(__tstate);
1286 if (PyErr_Occurred()) SWIG_fail;
1287 }
1288 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1289 return resultobj;
1290 fail:
1291 return NULL;
1292 }
1293
1294
1295 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1296 PyObject *resultobj;
1297 wxColour *arg1 = (wxColour *) 0 ;
1298 bool result;
1299 PyObject * obj0 = 0 ;
1300 char *kwnames[] = {
1301 (char *) "self", NULL
1302 };
1303
1304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1307 {
1308 PyThreadState* __tstate = wxPyBeginAllowThreads();
1309 result = (bool)(arg1)->Ok();
1310
1311 wxPyEndAllowThreads(__tstate);
1312 if (PyErr_Occurred()) SWIG_fail;
1313 }
1314 {
1315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1316 }
1317 return resultobj;
1318 fail:
1319 return NULL;
1320 }
1321
1322
1323 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1324 PyObject *resultobj;
1325 wxColour *arg1 = (wxColour *) 0 ;
1326 unsigned char arg2 ;
1327 unsigned char arg3 ;
1328 unsigned char arg4 ;
1329 PyObject * obj0 = 0 ;
1330 PyObject * obj1 = 0 ;
1331 PyObject * obj2 = 0 ;
1332 PyObject * obj3 = 0 ;
1333 char *kwnames[] = {
1334 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1335 };
1336
1337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1340 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1341 if (PyErr_Occurred()) SWIG_fail;
1342 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1343 if (PyErr_Occurred()) SWIG_fail;
1344 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
1345 if (PyErr_Occurred()) SWIG_fail;
1346 {
1347 PyThreadState* __tstate = wxPyBeginAllowThreads();
1348 (arg1)->Set(arg2,arg3,arg4);
1349
1350 wxPyEndAllowThreads(__tstate);
1351 if (PyErr_Occurred()) SWIG_fail;
1352 }
1353 Py_INCREF(Py_None); resultobj = Py_None;
1354 return resultobj;
1355 fail:
1356 return NULL;
1357 }
1358
1359
1360 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1361 PyObject *resultobj;
1362 wxColour *arg1 = (wxColour *) 0 ;
1363 unsigned long arg2 ;
1364 PyObject * obj0 = 0 ;
1365 PyObject * obj1 = 0 ;
1366 char *kwnames[] = {
1367 (char *) "self",(char *) "colRGB", NULL
1368 };
1369
1370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1373 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1374 if (PyErr_Occurred()) SWIG_fail;
1375 {
1376 PyThreadState* __tstate = wxPyBeginAllowThreads();
1377 (arg1)->Set(arg2);
1378
1379 wxPyEndAllowThreads(__tstate);
1380 if (PyErr_Occurred()) SWIG_fail;
1381 }
1382 Py_INCREF(Py_None); resultobj = Py_None;
1383 return resultobj;
1384 fail:
1385 return NULL;
1386 }
1387
1388
1389 static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1390 PyObject *resultobj;
1391 wxColour *arg1 = (wxColour *) 0 ;
1392 wxString *arg2 = 0 ;
1393 bool temp2 = False ;
1394 PyObject * obj0 = 0 ;
1395 PyObject * obj1 = 0 ;
1396 char *kwnames[] = {
1397 (char *) "self",(char *) "colourName", NULL
1398 };
1399
1400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1403 {
1404 arg2 = wxString_in_helper(obj1);
1405 if (arg2 == NULL) SWIG_fail;
1406 temp2 = True;
1407 }
1408 {
1409 PyThreadState* __tstate = wxPyBeginAllowThreads();
1410 (arg1)->InitFromName((wxString const &)*arg2);
1411
1412 wxPyEndAllowThreads(__tstate);
1413 if (PyErr_Occurred()) SWIG_fail;
1414 }
1415 Py_INCREF(Py_None); resultobj = Py_None;
1416 {
1417 if (temp2)
1418 delete arg2;
1419 }
1420 return resultobj;
1421 fail:
1422 {
1423 if (temp2)
1424 delete arg2;
1425 }
1426 return NULL;
1427 }
1428
1429
1430 static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1431 PyObject *resultobj;
1432 wxColour *arg1 = (wxColour *) 0 ;
1433 long result;
1434 PyObject * obj0 = 0 ;
1435 char *kwnames[] = {
1436 (char *) "self", NULL
1437 };
1438
1439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1442 {
1443 PyThreadState* __tstate = wxPyBeginAllowThreads();
1444 result = (long)((wxColour const *)arg1)->GetPixel();
1445
1446 wxPyEndAllowThreads(__tstate);
1447 if (PyErr_Occurred()) SWIG_fail;
1448 }
1449 resultobj = SWIG_FromLong((long)result);
1450 return resultobj;
1451 fail:
1452 return NULL;
1453 }
1454
1455
1456 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1457 PyObject *resultobj;
1458 wxColour *arg1 = (wxColour *) 0 ;
1459 wxColour *arg2 = 0 ;
1460 bool result;
1461 wxColour temp2 ;
1462 PyObject * obj0 = 0 ;
1463 PyObject * obj1 = 0 ;
1464 char *kwnames[] = {
1465 (char *) "self",(char *) "colour", NULL
1466 };
1467
1468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1471 {
1472 arg2 = &temp2;
1473 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1474 }
1475 {
1476 PyThreadState* __tstate = wxPyBeginAllowThreads();
1477 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1478
1479 wxPyEndAllowThreads(__tstate);
1480 if (PyErr_Occurred()) SWIG_fail;
1481 }
1482 {
1483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1484 }
1485 return resultobj;
1486 fail:
1487 return NULL;
1488 }
1489
1490
1491 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1492 PyObject *resultobj;
1493 wxColour *arg1 = (wxColour *) 0 ;
1494 wxColour *arg2 = 0 ;
1495 bool result;
1496 wxColour temp2 ;
1497 PyObject * obj0 = 0 ;
1498 PyObject * obj1 = 0 ;
1499 char *kwnames[] = {
1500 (char *) "self",(char *) "colour", NULL
1501 };
1502
1503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1506 {
1507 arg2 = &temp2;
1508 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1509 }
1510 {
1511 PyThreadState* __tstate = wxPyBeginAllowThreads();
1512 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1513
1514 wxPyEndAllowThreads(__tstate);
1515 if (PyErr_Occurred()) SWIG_fail;
1516 }
1517 {
1518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1519 }
1520 return resultobj;
1521 fail:
1522 return NULL;
1523 }
1524
1525
1526 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1527 PyObject *resultobj;
1528 wxColour *arg1 = (wxColour *) 0 ;
1529 PyObject *result;
1530 PyObject * obj0 = 0 ;
1531 char *kwnames[] = {
1532 (char *) "self", NULL
1533 };
1534
1535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1538 {
1539 PyThreadState* __tstate = wxPyBeginAllowThreads();
1540 result = (PyObject *)wxColour_Get(arg1);
1541
1542 wxPyEndAllowThreads(__tstate);
1543 if (PyErr_Occurred()) SWIG_fail;
1544 }
1545 resultobj = result;
1546 return resultobj;
1547 fail:
1548 return NULL;
1549 }
1550
1551
1552 static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1553 PyObject *resultobj;
1554 wxColour *arg1 = (wxColour *) 0 ;
1555 unsigned long result;
1556 PyObject * obj0 = 0 ;
1557 char *kwnames[] = {
1558 (char *) "self", NULL
1559 };
1560
1561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1564 {
1565 PyThreadState* __tstate = wxPyBeginAllowThreads();
1566 result = (unsigned long)wxColour_GetRGB(arg1);
1567
1568 wxPyEndAllowThreads(__tstate);
1569 if (PyErr_Occurred()) SWIG_fail;
1570 }
1571 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
1572 return resultobj;
1573 fail:
1574 return NULL;
1575 }
1576
1577
1578 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1579 PyObject *obj;
1580 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1581 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1582 Py_INCREF(obj);
1583 return Py_BuildValue((char *)"");
1584 }
1585 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1586 PyObject *resultobj;
1587 int arg1 ;
1588 unsigned char *arg2 = (unsigned char *) 0 ;
1589 unsigned char *arg3 = (unsigned char *) 0 ;
1590 unsigned char *arg4 = (unsigned char *) 0 ;
1591 wxPalette *result;
1592 PyObject * obj0 = 0 ;
1593 PyObject * obj1 = 0 ;
1594 PyObject * obj2 = 0 ;
1595 PyObject * obj3 = 0 ;
1596 char *kwnames[] = {
1597 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1598 };
1599
1600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1601 arg1 = (int) SWIG_AsInt(obj0);
1602 if (PyErr_Occurred()) SWIG_fail;
1603 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1605 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1607 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1609 {
1610 PyThreadState* __tstate = wxPyBeginAllowThreads();
1611 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1612
1613 wxPyEndAllowThreads(__tstate);
1614 if (PyErr_Occurred()) SWIG_fail;
1615 }
1616 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1617 return resultobj;
1618 fail:
1619 return NULL;
1620 }
1621
1622
1623 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1624 PyObject *resultobj;
1625 wxPalette *arg1 = (wxPalette *) 0 ;
1626 PyObject * obj0 = 0 ;
1627 char *kwnames[] = {
1628 (char *) "self", NULL
1629 };
1630
1631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1634 {
1635 PyThreadState* __tstate = wxPyBeginAllowThreads();
1636 delete arg1;
1637
1638 wxPyEndAllowThreads(__tstate);
1639 if (PyErr_Occurred()) SWIG_fail;
1640 }
1641 Py_INCREF(Py_None); resultobj = Py_None;
1642 return resultobj;
1643 fail:
1644 return NULL;
1645 }
1646
1647
1648 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1649 PyObject *resultobj;
1650 wxPalette *arg1 = (wxPalette *) 0 ;
1651 byte arg2 ;
1652 byte arg3 ;
1653 byte arg4 ;
1654 int result;
1655 PyObject * obj0 = 0 ;
1656 PyObject * obj1 = 0 ;
1657 PyObject * obj2 = 0 ;
1658 PyObject * obj3 = 0 ;
1659 char *kwnames[] = {
1660 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1661 };
1662
1663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1666 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1667 if (PyErr_Occurred()) SWIG_fail;
1668 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1669 if (PyErr_Occurred()) SWIG_fail;
1670 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1671 if (PyErr_Occurred()) SWIG_fail;
1672 {
1673 PyThreadState* __tstate = wxPyBeginAllowThreads();
1674 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1675
1676 wxPyEndAllowThreads(__tstate);
1677 if (PyErr_Occurred()) SWIG_fail;
1678 }
1679 resultobj = SWIG_FromInt((int)result);
1680 return resultobj;
1681 fail:
1682 return NULL;
1683 }
1684
1685
1686 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1687 PyObject *resultobj;
1688 wxPalette *arg1 = (wxPalette *) 0 ;
1689 int arg2 ;
1690 byte *arg3 = (byte *) 0 ;
1691 byte *arg4 = (byte *) 0 ;
1692 byte *arg5 = (byte *) 0 ;
1693 bool result;
1694 byte temp3 ;
1695 byte temp4 ;
1696 byte temp5 ;
1697 PyObject * obj0 = 0 ;
1698 PyObject * obj1 = 0 ;
1699 char *kwnames[] = {
1700 (char *) "self",(char *) "pixel", NULL
1701 };
1702
1703 arg3 = &temp3;
1704 arg4 = &temp4;
1705 arg5 = &temp5;
1706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1709 arg2 = (int) SWIG_AsInt(obj1);
1710 if (PyErr_Occurred()) SWIG_fail;
1711 {
1712 PyThreadState* __tstate = wxPyBeginAllowThreads();
1713 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1714
1715 wxPyEndAllowThreads(__tstate);
1716 if (PyErr_Occurred()) SWIG_fail;
1717 }
1718 {
1719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1720 }
1721 {
1722 PyObject *o = PyInt_FromLong((long) (*arg3));
1723 resultobj = t_output_helper(resultobj,o);
1724 }
1725 {
1726 PyObject *o = PyInt_FromLong((long) (*arg4));
1727 resultobj = t_output_helper(resultobj,o);
1728 }
1729 {
1730 PyObject *o = PyInt_FromLong((long) (*arg5));
1731 resultobj = t_output_helper(resultobj,o);
1732 }
1733 return resultobj;
1734 fail:
1735 return NULL;
1736 }
1737
1738
1739 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1740 PyObject *resultobj;
1741 wxPalette *arg1 = (wxPalette *) 0 ;
1742 bool result;
1743 PyObject * obj0 = 0 ;
1744 char *kwnames[] = {
1745 (char *) "self", NULL
1746 };
1747
1748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1751 {
1752 PyThreadState* __tstate = wxPyBeginAllowThreads();
1753 result = (bool)(arg1)->Ok();
1754
1755 wxPyEndAllowThreads(__tstate);
1756 if (PyErr_Occurred()) SWIG_fail;
1757 }
1758 {
1759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1760 }
1761 return resultobj;
1762 fail:
1763 return NULL;
1764 }
1765
1766
1767 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1768 PyObject *obj;
1769 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1770 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1771 Py_INCREF(obj);
1772 return Py_BuildValue((char *)"");
1773 }
1774 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1775 PyObject *resultobj;
1776 wxColour *arg1 = 0 ;
1777 int arg2 = (int) 1 ;
1778 int arg3 = (int) wxSOLID ;
1779 wxPen *result;
1780 wxColour temp1 ;
1781 PyObject * obj0 = 0 ;
1782 PyObject * obj1 = 0 ;
1783 PyObject * obj2 = 0 ;
1784 char *kwnames[] = {
1785 (char *) "colour",(char *) "width",(char *) "style", NULL
1786 };
1787
1788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1789 {
1790 arg1 = &temp1;
1791 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1792 }
1793 if (obj1) {
1794 arg2 = (int) SWIG_AsInt(obj1);
1795 if (PyErr_Occurred()) SWIG_fail;
1796 }
1797 if (obj2) {
1798 arg3 = (int) SWIG_AsInt(obj2);
1799 if (PyErr_Occurred()) SWIG_fail;
1800 }
1801 {
1802 PyThreadState* __tstate = wxPyBeginAllowThreads();
1803 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1804
1805 wxPyEndAllowThreads(__tstate);
1806 if (PyErr_Occurred()) SWIG_fail;
1807 }
1808 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1809 return resultobj;
1810 fail:
1811 return NULL;
1812 }
1813
1814
1815 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1816 PyObject *resultobj;
1817 wxPen *arg1 = (wxPen *) 0 ;
1818 PyObject * obj0 = 0 ;
1819 char *kwnames[] = {
1820 (char *) "self", NULL
1821 };
1822
1823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1826 {
1827 PyThreadState* __tstate = wxPyBeginAllowThreads();
1828 delete arg1;
1829
1830 wxPyEndAllowThreads(__tstate);
1831 if (PyErr_Occurred()) SWIG_fail;
1832 }
1833 Py_INCREF(Py_None); resultobj = Py_None;
1834 return resultobj;
1835 fail:
1836 return NULL;
1837 }
1838
1839
1840 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1841 PyObject *resultobj;
1842 wxPen *arg1 = (wxPen *) 0 ;
1843 int result;
1844 PyObject * obj0 = 0 ;
1845 char *kwnames[] = {
1846 (char *) "self", NULL
1847 };
1848
1849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1852 {
1853 PyThreadState* __tstate = wxPyBeginAllowThreads();
1854 result = (int)(arg1)->GetCap();
1855
1856 wxPyEndAllowThreads(__tstate);
1857 if (PyErr_Occurred()) SWIG_fail;
1858 }
1859 resultobj = SWIG_FromInt((int)result);
1860 return resultobj;
1861 fail:
1862 return NULL;
1863 }
1864
1865
1866 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1867 PyObject *resultobj;
1868 wxPen *arg1 = (wxPen *) 0 ;
1869 wxColour result;
1870 PyObject * obj0 = 0 ;
1871 char *kwnames[] = {
1872 (char *) "self", NULL
1873 };
1874
1875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1878 {
1879 PyThreadState* __tstate = wxPyBeginAllowThreads();
1880 result = (arg1)->GetColour();
1881
1882 wxPyEndAllowThreads(__tstate);
1883 if (PyErr_Occurred()) SWIG_fail;
1884 }
1885 {
1886 wxColour * resultptr;
1887 resultptr = new wxColour((wxColour &) result);
1888 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1889 }
1890 return resultobj;
1891 fail:
1892 return NULL;
1893 }
1894
1895
1896 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1897 PyObject *resultobj;
1898 wxPen *arg1 = (wxPen *) 0 ;
1899 int result;
1900 PyObject * obj0 = 0 ;
1901 char *kwnames[] = {
1902 (char *) "self", NULL
1903 };
1904
1905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1908 {
1909 PyThreadState* __tstate = wxPyBeginAllowThreads();
1910 result = (int)(arg1)->GetJoin();
1911
1912 wxPyEndAllowThreads(__tstate);
1913 if (PyErr_Occurred()) SWIG_fail;
1914 }
1915 resultobj = SWIG_FromInt((int)result);
1916 return resultobj;
1917 fail:
1918 return NULL;
1919 }
1920
1921
1922 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1923 PyObject *resultobj;
1924 wxPen *arg1 = (wxPen *) 0 ;
1925 int result;
1926 PyObject * obj0 = 0 ;
1927 char *kwnames[] = {
1928 (char *) "self", NULL
1929 };
1930
1931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1934 {
1935 PyThreadState* __tstate = wxPyBeginAllowThreads();
1936 result = (int)(arg1)->GetStyle();
1937
1938 wxPyEndAllowThreads(__tstate);
1939 if (PyErr_Occurred()) SWIG_fail;
1940 }
1941 resultobj = SWIG_FromInt((int)result);
1942 return resultobj;
1943 fail:
1944 return NULL;
1945 }
1946
1947
1948 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1949 PyObject *resultobj;
1950 wxPen *arg1 = (wxPen *) 0 ;
1951 int result;
1952 PyObject * obj0 = 0 ;
1953 char *kwnames[] = {
1954 (char *) "self", NULL
1955 };
1956
1957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1960 {
1961 PyThreadState* __tstate = wxPyBeginAllowThreads();
1962 result = (int)(arg1)->GetWidth();
1963
1964 wxPyEndAllowThreads(__tstate);
1965 if (PyErr_Occurred()) SWIG_fail;
1966 }
1967 resultobj = SWIG_FromInt((int)result);
1968 return resultobj;
1969 fail:
1970 return NULL;
1971 }
1972
1973
1974 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1975 PyObject *resultobj;
1976 wxPen *arg1 = (wxPen *) 0 ;
1977 bool result;
1978 PyObject * obj0 = 0 ;
1979 char *kwnames[] = {
1980 (char *) "self", NULL
1981 };
1982
1983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1986 {
1987 PyThreadState* __tstate = wxPyBeginAllowThreads();
1988 result = (bool)(arg1)->Ok();
1989
1990 wxPyEndAllowThreads(__tstate);
1991 if (PyErr_Occurred()) SWIG_fail;
1992 }
1993 {
1994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1995 }
1996 return resultobj;
1997 fail:
1998 return NULL;
1999 }
2000
2001
2002 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
2003 PyObject *resultobj;
2004 wxPen *arg1 = (wxPen *) 0 ;
2005 int arg2 ;
2006 PyObject * obj0 = 0 ;
2007 PyObject * obj1 = 0 ;
2008 char *kwnames[] = {
2009 (char *) "self",(char *) "cap_style", NULL
2010 };
2011
2012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
2013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2015 arg2 = (int) SWIG_AsInt(obj1);
2016 if (PyErr_Occurred()) SWIG_fail;
2017 {
2018 PyThreadState* __tstate = wxPyBeginAllowThreads();
2019 (arg1)->SetCap(arg2);
2020
2021 wxPyEndAllowThreads(__tstate);
2022 if (PyErr_Occurred()) SWIG_fail;
2023 }
2024 Py_INCREF(Py_None); resultobj = Py_None;
2025 return resultobj;
2026 fail:
2027 return NULL;
2028 }
2029
2030
2031 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2032 PyObject *resultobj;
2033 wxPen *arg1 = (wxPen *) 0 ;
2034 wxColour *arg2 = 0 ;
2035 wxColour temp2 ;
2036 PyObject * obj0 = 0 ;
2037 PyObject * obj1 = 0 ;
2038 char *kwnames[] = {
2039 (char *) "self",(char *) "colour", NULL
2040 };
2041
2042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
2043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2045 {
2046 arg2 = &temp2;
2047 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2048 }
2049 {
2050 PyThreadState* __tstate = wxPyBeginAllowThreads();
2051 (arg1)->SetColour(*arg2);
2052
2053 wxPyEndAllowThreads(__tstate);
2054 if (PyErr_Occurred()) SWIG_fail;
2055 }
2056 Py_INCREF(Py_None); resultobj = Py_None;
2057 return resultobj;
2058 fail:
2059 return NULL;
2060 }
2061
2062
2063 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
2064 PyObject *resultobj;
2065 wxPen *arg1 = (wxPen *) 0 ;
2066 int arg2 ;
2067 PyObject * obj0 = 0 ;
2068 PyObject * obj1 = 0 ;
2069 char *kwnames[] = {
2070 (char *) "self",(char *) "join_style", NULL
2071 };
2072
2073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2076 arg2 = (int) SWIG_AsInt(obj1);
2077 if (PyErr_Occurred()) SWIG_fail;
2078 {
2079 PyThreadState* __tstate = wxPyBeginAllowThreads();
2080 (arg1)->SetJoin(arg2);
2081
2082 wxPyEndAllowThreads(__tstate);
2083 if (PyErr_Occurred()) SWIG_fail;
2084 }
2085 Py_INCREF(Py_None); resultobj = Py_None;
2086 return resultobj;
2087 fail:
2088 return NULL;
2089 }
2090
2091
2092 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2093 PyObject *resultobj;
2094 wxPen *arg1 = (wxPen *) 0 ;
2095 int arg2 ;
2096 PyObject * obj0 = 0 ;
2097 PyObject * obj1 = 0 ;
2098 char *kwnames[] = {
2099 (char *) "self",(char *) "style", NULL
2100 };
2101
2102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2105 arg2 = (int) SWIG_AsInt(obj1);
2106 if (PyErr_Occurred()) SWIG_fail;
2107 {
2108 PyThreadState* __tstate = wxPyBeginAllowThreads();
2109 (arg1)->SetStyle(arg2);
2110
2111 wxPyEndAllowThreads(__tstate);
2112 if (PyErr_Occurred()) SWIG_fail;
2113 }
2114 Py_INCREF(Py_None); resultobj = Py_None;
2115 return resultobj;
2116 fail:
2117 return NULL;
2118 }
2119
2120
2121 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2122 PyObject *resultobj;
2123 wxPen *arg1 = (wxPen *) 0 ;
2124 int arg2 ;
2125 PyObject * obj0 = 0 ;
2126 PyObject * obj1 = 0 ;
2127 char *kwnames[] = {
2128 (char *) "self",(char *) "width", NULL
2129 };
2130
2131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2134 arg2 = (int) SWIG_AsInt(obj1);
2135 if (PyErr_Occurred()) SWIG_fail;
2136 {
2137 PyThreadState* __tstate = wxPyBeginAllowThreads();
2138 (arg1)->SetWidth(arg2);
2139
2140 wxPyEndAllowThreads(__tstate);
2141 if (PyErr_Occurred()) SWIG_fail;
2142 }
2143 Py_INCREF(Py_None); resultobj = Py_None;
2144 return resultobj;
2145 fail:
2146 return NULL;
2147 }
2148
2149
2150 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2151 PyObject *resultobj;
2152 wxPen *arg1 = (wxPen *) 0 ;
2153 int arg2 ;
2154 wxDash *arg3 = (wxDash *) 0 ;
2155 PyObject * obj0 = 0 ;
2156 PyObject * obj1 = 0 ;
2157 char *kwnames[] = {
2158 (char *) "self",(char *) "dashes", NULL
2159 };
2160
2161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2164 {
2165 arg2 = PyList_Size(obj1);
2166 arg3 = (wxDash*)byte_LIST_helper(obj1);
2167 if (arg3 == NULL) SWIG_fail;
2168 }
2169 {
2170 PyThreadState* __tstate = wxPyBeginAllowThreads();
2171 (arg1)->SetDashes(arg2,arg3);
2172
2173 wxPyEndAllowThreads(__tstate);
2174 if (PyErr_Occurred()) SWIG_fail;
2175 }
2176 Py_INCREF(Py_None); resultobj = Py_None;
2177 {
2178 if (arg3) delete [] arg3;
2179 }
2180 return resultobj;
2181 fail:
2182 {
2183 if (arg3) delete [] arg3;
2184 }
2185 return NULL;
2186 }
2187
2188
2189 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2190 PyObject *resultobj;
2191 wxPen *arg1 = (wxPen *) 0 ;
2192 PyObject *result;
2193 PyObject * obj0 = 0 ;
2194 char *kwnames[] = {
2195 (char *) "self", NULL
2196 };
2197
2198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2201 {
2202 PyThreadState* __tstate = wxPyBeginAllowThreads();
2203 result = (PyObject *)wxPen_GetDashes(arg1);
2204
2205 wxPyEndAllowThreads(__tstate);
2206 if (PyErr_Occurred()) SWIG_fail;
2207 }
2208 resultobj = result;
2209 return resultobj;
2210 fail:
2211 return NULL;
2212 }
2213
2214
2215 static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2216 PyObject *resultobj;
2217 wxPen *arg1 = (wxPen *) 0 ;
2218 wxPen *arg2 = (wxPen *) 0 ;
2219 bool result;
2220 PyObject * obj0 = 0 ;
2221 PyObject * obj1 = 0 ;
2222 char *kwnames[] = {
2223 (char *) "self",(char *) "other", NULL
2224 };
2225
2226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2229 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2231 {
2232 PyThreadState* __tstate = wxPyBeginAllowThreads();
2233 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2234
2235 wxPyEndAllowThreads(__tstate);
2236 if (PyErr_Occurred()) SWIG_fail;
2237 }
2238 {
2239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2240 }
2241 return resultobj;
2242 fail:
2243 return NULL;
2244 }
2245
2246
2247 static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2248 PyObject *resultobj;
2249 wxPen *arg1 = (wxPen *) 0 ;
2250 wxPen *arg2 = (wxPen *) 0 ;
2251 bool result;
2252 PyObject * obj0 = 0 ;
2253 PyObject * obj1 = 0 ;
2254 char *kwnames[] = {
2255 (char *) "self",(char *) "other", NULL
2256 };
2257
2258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2261 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2263 {
2264 PyThreadState* __tstate = wxPyBeginAllowThreads();
2265 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2266
2267 wxPyEndAllowThreads(__tstate);
2268 if (PyErr_Occurred()) SWIG_fail;
2269 }
2270 {
2271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2272 }
2273 return resultobj;
2274 fail:
2275 return NULL;
2276 }
2277
2278
2279 static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
2280 PyObject *resultobj;
2281 wxPen *arg1 = (wxPen *) 0 ;
2282 int result;
2283 PyObject * obj0 = 0 ;
2284 char *kwnames[] = {
2285 (char *) "self", NULL
2286 };
2287
2288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
2289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2291 {
2292 PyThreadState* __tstate = wxPyBeginAllowThreads();
2293 result = (int)((wxPen const *)arg1)->GetDashCount();
2294
2295 wxPyEndAllowThreads(__tstate);
2296 if (PyErr_Occurred()) SWIG_fail;
2297 }
2298 resultobj = SWIG_FromInt((int)result);
2299 return resultobj;
2300 fail:
2301 return NULL;
2302 }
2303
2304
2305 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
2306 PyObject *obj;
2307 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2308 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2309 Py_INCREF(obj);
2310 return Py_BuildValue((char *)"");
2311 }
2312 static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2313 PyObject *resultobj;
2314 wxColour *arg1 = 0 ;
2315 int arg2 = (int) 1 ;
2316 int arg3 = (int) wxSOLID ;
2317 wxPyPen *result;
2318 wxColour temp1 ;
2319 PyObject * obj0 = 0 ;
2320 PyObject * obj1 = 0 ;
2321 PyObject * obj2 = 0 ;
2322 char *kwnames[] = {
2323 (char *) "colour",(char *) "width",(char *) "style", NULL
2324 };
2325
2326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail;
2327 {
2328 arg1 = &temp1;
2329 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2330 }
2331 if (obj1) {
2332 arg2 = (int) SWIG_AsInt(obj1);
2333 if (PyErr_Occurred()) SWIG_fail;
2334 }
2335 if (obj2) {
2336 arg3 = (int) SWIG_AsInt(obj2);
2337 if (PyErr_Occurred()) SWIG_fail;
2338 }
2339 {
2340 PyThreadState* __tstate = wxPyBeginAllowThreads();
2341 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
2342
2343 wxPyEndAllowThreads(__tstate);
2344 if (PyErr_Occurred()) SWIG_fail;
2345 }
2346 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPen, 1);
2347 return resultobj;
2348 fail:
2349 return NULL;
2350 }
2351
2352
2353 static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2354 PyObject *resultobj;
2355 wxPyPen *arg1 = (wxPyPen *) 0 ;
2356 PyObject * obj0 = 0 ;
2357 char *kwnames[] = {
2358 (char *) "self", NULL
2359 };
2360
2361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
2362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2364 {
2365 PyThreadState* __tstate = wxPyBeginAllowThreads();
2366 delete arg1;
2367
2368 wxPyEndAllowThreads(__tstate);
2369 if (PyErr_Occurred()) SWIG_fail;
2370 }
2371 Py_INCREF(Py_None); resultobj = Py_None;
2372 return resultobj;
2373 fail:
2374 return NULL;
2375 }
2376
2377
2378 static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2379 PyObject *resultobj;
2380 wxPyPen *arg1 = (wxPyPen *) 0 ;
2381 int arg2 ;
2382 wxDash *arg3 = (wxDash *) 0 ;
2383 PyObject * obj0 = 0 ;
2384 PyObject * obj1 = 0 ;
2385 char *kwnames[] = {
2386 (char *) "self",(char *) "dashes", NULL
2387 };
2388
2389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2392 {
2393 arg2 = PyList_Size(obj1);
2394 arg3 = (wxDash*)byte_LIST_helper(obj1);
2395 if (arg3 == NULL) SWIG_fail;
2396 }
2397 {
2398 PyThreadState* __tstate = wxPyBeginAllowThreads();
2399 (arg1)->SetDashes(arg2,arg3);
2400
2401 wxPyEndAllowThreads(__tstate);
2402 if (PyErr_Occurred()) SWIG_fail;
2403 }
2404 Py_INCREF(Py_None); resultobj = Py_None;
2405 {
2406 if (arg3) delete [] arg3;
2407 }
2408 return resultobj;
2409 fail:
2410 {
2411 if (arg3) delete [] arg3;
2412 }
2413 return NULL;
2414 }
2415
2416
2417 static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
2418 PyObject *obj;
2419 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2420 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
2421 Py_INCREF(obj);
2422 return Py_BuildValue((char *)"");
2423 }
2424 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2425 PyObject *resultobj;
2426 wxColour *arg1 = 0 ;
2427 int arg2 = (int) wxSOLID ;
2428 wxBrush *result;
2429 wxColour temp1 ;
2430 PyObject * obj0 = 0 ;
2431 PyObject * obj1 = 0 ;
2432 char *kwnames[] = {
2433 (char *) "colour",(char *) "style", NULL
2434 };
2435
2436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2437 {
2438 arg1 = &temp1;
2439 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2440 }
2441 if (obj1) {
2442 arg2 = (int) SWIG_AsInt(obj1);
2443 if (PyErr_Occurred()) SWIG_fail;
2444 }
2445 {
2446 PyThreadState* __tstate = wxPyBeginAllowThreads();
2447 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2448
2449 wxPyEndAllowThreads(__tstate);
2450 if (PyErr_Occurred()) SWIG_fail;
2451 }
2452 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2453 return resultobj;
2454 fail:
2455 return NULL;
2456 }
2457
2458
2459 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2460 PyObject *resultobj;
2461 wxBrush *arg1 = (wxBrush *) 0 ;
2462 PyObject * obj0 = 0 ;
2463 char *kwnames[] = {
2464 (char *) "self", NULL
2465 };
2466
2467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2470 {
2471 PyThreadState* __tstate = wxPyBeginAllowThreads();
2472 delete arg1;
2473
2474 wxPyEndAllowThreads(__tstate);
2475 if (PyErr_Occurred()) SWIG_fail;
2476 }
2477 Py_INCREF(Py_None); resultobj = Py_None;
2478 return resultobj;
2479 fail:
2480 return NULL;
2481 }
2482
2483
2484 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2485 PyObject *resultobj;
2486 wxBrush *arg1 = (wxBrush *) 0 ;
2487 wxColour *arg2 = 0 ;
2488 wxColour temp2 ;
2489 PyObject * obj0 = 0 ;
2490 PyObject * obj1 = 0 ;
2491 char *kwnames[] = {
2492 (char *) "self",(char *) "col", NULL
2493 };
2494
2495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2498 {
2499 arg2 = &temp2;
2500 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2501 }
2502 {
2503 PyThreadState* __tstate = wxPyBeginAllowThreads();
2504 (arg1)->SetColour((wxColour const &)*arg2);
2505
2506 wxPyEndAllowThreads(__tstate);
2507 if (PyErr_Occurred()) SWIG_fail;
2508 }
2509 Py_INCREF(Py_None); resultobj = Py_None;
2510 return resultobj;
2511 fail:
2512 return NULL;
2513 }
2514
2515
2516 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2517 PyObject *resultobj;
2518 wxBrush *arg1 = (wxBrush *) 0 ;
2519 int arg2 ;
2520 PyObject * obj0 = 0 ;
2521 PyObject * obj1 = 0 ;
2522 char *kwnames[] = {
2523 (char *) "self",(char *) "style", NULL
2524 };
2525
2526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2529 arg2 = (int) SWIG_AsInt(obj1);
2530 if (PyErr_Occurred()) SWIG_fail;
2531 {
2532 PyThreadState* __tstate = wxPyBeginAllowThreads();
2533 (arg1)->SetStyle(arg2);
2534
2535 wxPyEndAllowThreads(__tstate);
2536 if (PyErr_Occurred()) SWIG_fail;
2537 }
2538 Py_INCREF(Py_None); resultobj = Py_None;
2539 return resultobj;
2540 fail:
2541 return NULL;
2542 }
2543
2544
2545 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2546 PyObject *resultobj;
2547 wxBrush *arg1 = (wxBrush *) 0 ;
2548 wxBitmap *arg2 = 0 ;
2549 PyObject * obj0 = 0 ;
2550 PyObject * obj1 = 0 ;
2551 char *kwnames[] = {
2552 (char *) "self",(char *) "stipple", NULL
2553 };
2554
2555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2558 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2559 SWIG_POINTER_EXCEPTION | 0)) == -1)
2560 SWIG_fail;
2561 if (arg2 == NULL) {
2562 PyErr_SetString(PyExc_TypeError,"null reference");
2563 SWIG_fail;
2564 }
2565 {
2566 PyThreadState* __tstate = wxPyBeginAllowThreads();
2567 (arg1)->SetStipple((wxBitmap const &)*arg2);
2568
2569 wxPyEndAllowThreads(__tstate);
2570 if (PyErr_Occurred()) SWIG_fail;
2571 }
2572 Py_INCREF(Py_None); resultobj = Py_None;
2573 return resultobj;
2574 fail:
2575 return NULL;
2576 }
2577
2578
2579 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2580 PyObject *resultobj;
2581 wxBrush *arg1 = (wxBrush *) 0 ;
2582 wxColour result;
2583 PyObject * obj0 = 0 ;
2584 char *kwnames[] = {
2585 (char *) "self", NULL
2586 };
2587
2588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2591 {
2592 PyThreadState* __tstate = wxPyBeginAllowThreads();
2593 result = ((wxBrush const *)arg1)->GetColour();
2594
2595 wxPyEndAllowThreads(__tstate);
2596 if (PyErr_Occurred()) SWIG_fail;
2597 }
2598 {
2599 wxColour * resultptr;
2600 resultptr = new wxColour((wxColour &) result);
2601 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2602 }
2603 return resultobj;
2604 fail:
2605 return NULL;
2606 }
2607
2608
2609 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2610 PyObject *resultobj;
2611 wxBrush *arg1 = (wxBrush *) 0 ;
2612 int result;
2613 PyObject * obj0 = 0 ;
2614 char *kwnames[] = {
2615 (char *) "self", NULL
2616 };
2617
2618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2621 {
2622 PyThreadState* __tstate = wxPyBeginAllowThreads();
2623 result = (int)((wxBrush const *)arg1)->GetStyle();
2624
2625 wxPyEndAllowThreads(__tstate);
2626 if (PyErr_Occurred()) SWIG_fail;
2627 }
2628 resultobj = SWIG_FromInt((int)result);
2629 return resultobj;
2630 fail:
2631 return NULL;
2632 }
2633
2634
2635 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2636 PyObject *resultobj;
2637 wxBrush *arg1 = (wxBrush *) 0 ;
2638 wxBitmap *result;
2639 PyObject * obj0 = 0 ;
2640 char *kwnames[] = {
2641 (char *) "self", NULL
2642 };
2643
2644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2647 {
2648 PyThreadState* __tstate = wxPyBeginAllowThreads();
2649 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2650
2651 wxPyEndAllowThreads(__tstate);
2652 if (PyErr_Occurred()) SWIG_fail;
2653 }
2654 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2655 return resultobj;
2656 fail:
2657 return NULL;
2658 }
2659
2660
2661 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2662 PyObject *resultobj;
2663 wxBrush *arg1 = (wxBrush *) 0 ;
2664 bool result;
2665 PyObject * obj0 = 0 ;
2666 char *kwnames[] = {
2667 (char *) "self", NULL
2668 };
2669
2670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2673 {
2674 PyThreadState* __tstate = wxPyBeginAllowThreads();
2675 result = (bool)(arg1)->Ok();
2676
2677 wxPyEndAllowThreads(__tstate);
2678 if (PyErr_Occurred()) SWIG_fail;
2679 }
2680 {
2681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2682 }
2683 return resultobj;
2684 fail:
2685 return NULL;
2686 }
2687
2688
2689 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2690 PyObject *obj;
2691 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2692 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2693 Py_INCREF(obj);
2694 return Py_BuildValue((char *)"");
2695 }
2696 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2697 PyObject *resultobj;
2698 wxString *arg1 = 0 ;
2699 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2700 wxBitmap *result;
2701 bool temp1 = False ;
2702 PyObject * obj0 = 0 ;
2703 PyObject * obj1 = 0 ;
2704 char *kwnames[] = {
2705 (char *) "name",(char *) "type", NULL
2706 };
2707
2708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2709 {
2710 arg1 = wxString_in_helper(obj0);
2711 if (arg1 == NULL) SWIG_fail;
2712 temp1 = True;
2713 }
2714 if (obj1) {
2715 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2716 if (PyErr_Occurred()) SWIG_fail;
2717 }
2718 {
2719 PyThreadState* __tstate = wxPyBeginAllowThreads();
2720 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2721
2722 wxPyEndAllowThreads(__tstate);
2723 if (PyErr_Occurred()) SWIG_fail;
2724 }
2725 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2726 {
2727 if (temp1)
2728 delete arg1;
2729 }
2730 return resultobj;
2731 fail:
2732 {
2733 if (temp1)
2734 delete arg1;
2735 }
2736 return NULL;
2737 }
2738
2739
2740 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2741 PyObject *resultobj;
2742 wxBitmap *arg1 = (wxBitmap *) 0 ;
2743 PyObject * obj0 = 0 ;
2744 char *kwnames[] = {
2745 (char *) "self", NULL
2746 };
2747
2748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2751 {
2752 PyThreadState* __tstate = wxPyBeginAllowThreads();
2753 delete arg1;
2754
2755 wxPyEndAllowThreads(__tstate);
2756 if (PyErr_Occurred()) SWIG_fail;
2757 }
2758 Py_INCREF(Py_None); resultobj = Py_None;
2759 return resultobj;
2760 fail:
2761 return NULL;
2762 }
2763
2764
2765 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2766 PyObject *resultobj;
2767 int arg1 ;
2768 int arg2 ;
2769 int arg3 = (int) -1 ;
2770 wxBitmap *result;
2771 PyObject * obj0 = 0 ;
2772 PyObject * obj1 = 0 ;
2773 PyObject * obj2 = 0 ;
2774 char *kwnames[] = {
2775 (char *) "width",(char *) "height",(char *) "depth", NULL
2776 };
2777
2778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2779 arg1 = (int) SWIG_AsInt(obj0);
2780 if (PyErr_Occurred()) SWIG_fail;
2781 arg2 = (int) SWIG_AsInt(obj1);
2782 if (PyErr_Occurred()) SWIG_fail;
2783 if (obj2) {
2784 arg3 = (int) SWIG_AsInt(obj2);
2785 if (PyErr_Occurred()) SWIG_fail;
2786 }
2787 {
2788 PyThreadState* __tstate = wxPyBeginAllowThreads();
2789 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2790
2791 wxPyEndAllowThreads(__tstate);
2792 if (PyErr_Occurred()) SWIG_fail;
2793 }
2794 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2795 return resultobj;
2796 fail:
2797 return NULL;
2798 }
2799
2800
2801 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2802 PyObject *resultobj;
2803 wxIcon *arg1 = 0 ;
2804 wxBitmap *result;
2805 PyObject * obj0 = 0 ;
2806 char *kwnames[] = {
2807 (char *) "icon", NULL
2808 };
2809
2810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2812 SWIG_POINTER_EXCEPTION | 0)) == -1)
2813 SWIG_fail;
2814 if (arg1 == NULL) {
2815 PyErr_SetString(PyExc_TypeError,"null reference");
2816 SWIG_fail;
2817 }
2818 {
2819 PyThreadState* __tstate = wxPyBeginAllowThreads();
2820 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2821
2822 wxPyEndAllowThreads(__tstate);
2823 if (PyErr_Occurred()) SWIG_fail;
2824 }
2825 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2826 return resultobj;
2827 fail:
2828 return NULL;
2829 }
2830
2831
2832 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2833 PyObject *resultobj;
2834 wxImage *arg1 = 0 ;
2835 int arg2 = (int) -1 ;
2836 wxBitmap *result;
2837 PyObject * obj0 = 0 ;
2838 PyObject * obj1 = 0 ;
2839 char *kwnames[] = {
2840 (char *) "image",(char *) "depth", NULL
2841 };
2842
2843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2845 SWIG_POINTER_EXCEPTION | 0)) == -1)
2846 SWIG_fail;
2847 if (arg1 == NULL) {
2848 PyErr_SetString(PyExc_TypeError,"null reference");
2849 SWIG_fail;
2850 }
2851 if (obj1) {
2852 arg2 = (int) SWIG_AsInt(obj1);
2853 if (PyErr_Occurred()) SWIG_fail;
2854 }
2855 {
2856 PyThreadState* __tstate = wxPyBeginAllowThreads();
2857 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2858
2859 wxPyEndAllowThreads(__tstate);
2860 if (PyErr_Occurred()) SWIG_fail;
2861 }
2862 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2863 return resultobj;
2864 fail:
2865 return NULL;
2866 }
2867
2868
2869 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2870 PyObject *resultobj;
2871 PyObject *arg1 = (PyObject *) 0 ;
2872 wxBitmap *result;
2873 PyObject * obj0 = 0 ;
2874 char *kwnames[] = {
2875 (char *) "listOfStrings", NULL
2876 };
2877
2878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2879 arg1 = obj0;
2880 {
2881 PyThreadState* __tstate = wxPyBeginAllowThreads();
2882 result = (wxBitmap *)new_wxBitmap(arg1);
2883
2884 wxPyEndAllowThreads(__tstate);
2885 if (PyErr_Occurred()) SWIG_fail;
2886 }
2887 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2888 return resultobj;
2889 fail:
2890 return NULL;
2891 }
2892
2893
2894 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2895 PyObject *resultobj;
2896 PyObject *arg1 = (PyObject *) 0 ;
2897 int arg2 ;
2898 int arg3 ;
2899 int arg4 = (int) 1 ;
2900 wxBitmap *result;
2901 PyObject * obj0 = 0 ;
2902 PyObject * obj1 = 0 ;
2903 PyObject * obj2 = 0 ;
2904 PyObject * obj3 = 0 ;
2905 char *kwnames[] = {
2906 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2907 };
2908
2909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2910 arg1 = obj0;
2911 arg2 = (int) SWIG_AsInt(obj1);
2912 if (PyErr_Occurred()) SWIG_fail;
2913 arg3 = (int) SWIG_AsInt(obj2);
2914 if (PyErr_Occurred()) SWIG_fail;
2915 if (obj3) {
2916 arg4 = (int) SWIG_AsInt(obj3);
2917 if (PyErr_Occurred()) SWIG_fail;
2918 }
2919 {
2920 PyThreadState* __tstate = wxPyBeginAllowThreads();
2921 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2922
2923 wxPyEndAllowThreads(__tstate);
2924 if (PyErr_Occurred()) SWIG_fail;
2925 }
2926 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2927 return resultobj;
2928 fail:
2929 return NULL;
2930 }
2931
2932
2933 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2934 PyObject *resultobj;
2935 wxBitmap *arg1 = (wxBitmap *) 0 ;
2936 bool result;
2937 PyObject * obj0 = 0 ;
2938 char *kwnames[] = {
2939 (char *) "self", NULL
2940 };
2941
2942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2945 {
2946 PyThreadState* __tstate = wxPyBeginAllowThreads();
2947 result = (bool)(arg1)->Ok();
2948
2949 wxPyEndAllowThreads(__tstate);
2950 if (PyErr_Occurred()) SWIG_fail;
2951 }
2952 {
2953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2954 }
2955 return resultobj;
2956 fail:
2957 return NULL;
2958 }
2959
2960
2961 static PyObject *_wrap_Bitmap_GetWidth(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_GetWidth",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)->GetWidth();
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_GetHeight(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_GetHeight",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)->GetHeight();
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_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3014 PyObject *resultobj;
3015 wxBitmap *arg1 = (wxBitmap *) 0 ;
3016 int result;
3017 PyObject * obj0 = 0 ;
3018 char *kwnames[] = {
3019 (char *) "self", NULL
3020 };
3021
3022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",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 = (int)(arg1)->GetDepth();
3028
3029 wxPyEndAllowThreads(__tstate);
3030 if (PyErr_Occurred()) SWIG_fail;
3031 }
3032 resultobj = SWIG_FromInt((int)result);
3033 return resultobj;
3034 fail:
3035 return NULL;
3036 }
3037
3038
3039 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3040 PyObject *resultobj;
3041 wxBitmap *arg1 = (wxBitmap *) 0 ;
3042 SwigValueWrapper< wxImage > result;
3043 PyObject * obj0 = 0 ;
3044 char *kwnames[] = {
3045 (char *) "self", NULL
3046 };
3047
3048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
3049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3051 {
3052 PyThreadState* __tstate = wxPyBeginAllowThreads();
3053 result = ((wxBitmap const *)arg1)->ConvertToImage();
3054
3055 wxPyEndAllowThreads(__tstate);
3056 if (PyErr_Occurred()) SWIG_fail;
3057 }
3058 {
3059 wxImage * resultptr;
3060 resultptr = new wxImage((wxImage &) result);
3061 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3062 }
3063 return resultobj;
3064 fail:
3065 return NULL;
3066 }
3067
3068
3069 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3070 PyObject *resultobj;
3071 wxBitmap *arg1 = (wxBitmap *) 0 ;
3072 wxMask *result;
3073 PyObject * obj0 = 0 ;
3074 char *kwnames[] = {
3075 (char *) "self", NULL
3076 };
3077
3078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3081 {
3082 PyThreadState* __tstate = wxPyBeginAllowThreads();
3083 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3084
3085 wxPyEndAllowThreads(__tstate);
3086 if (PyErr_Occurred()) SWIG_fail;
3087 }
3088 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3089 return resultobj;
3090 fail:
3091 return NULL;
3092 }
3093
3094
3095 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3096 PyObject *resultobj;
3097 wxBitmap *arg1 = (wxBitmap *) 0 ;
3098 wxMask *arg2 = (wxMask *) 0 ;
3099 PyObject * obj0 = 0 ;
3100 PyObject * obj1 = 0 ;
3101 char *kwnames[] = {
3102 (char *) "self",(char *) "mask", NULL
3103 };
3104
3105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3108 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3110 {
3111 PyThreadState* __tstate = wxPyBeginAllowThreads();
3112 (arg1)->SetMask(arg2);
3113
3114 wxPyEndAllowThreads(__tstate);
3115 if (PyErr_Occurred()) SWIG_fail;
3116 }
3117 Py_INCREF(Py_None); resultobj = Py_None;
3118 return resultobj;
3119 fail:
3120 return NULL;
3121 }
3122
3123
3124 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3125 PyObject *resultobj;
3126 wxBitmap *arg1 = (wxBitmap *) 0 ;
3127 wxColour *arg2 = 0 ;
3128 wxColour temp2 ;
3129 PyObject * obj0 = 0 ;
3130 PyObject * obj1 = 0 ;
3131 char *kwnames[] = {
3132 (char *) "self",(char *) "colour", NULL
3133 };
3134
3135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3138 {
3139 arg2 = &temp2;
3140 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3141 }
3142 {
3143 PyThreadState* __tstate = wxPyBeginAllowThreads();
3144 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3145
3146 wxPyEndAllowThreads(__tstate);
3147 if (PyErr_Occurred()) SWIG_fail;
3148 }
3149 Py_INCREF(Py_None); resultobj = Py_None;
3150 return resultobj;
3151 fail:
3152 return NULL;
3153 }
3154
3155
3156 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3157 PyObject *resultobj;
3158 wxBitmap *arg1 = (wxBitmap *) 0 ;
3159 wxRect *arg2 = 0 ;
3160 SwigValueWrapper< wxBitmap > result;
3161 wxRect temp2 ;
3162 PyObject * obj0 = 0 ;
3163 PyObject * obj1 = 0 ;
3164 char *kwnames[] = {
3165 (char *) "self",(char *) "rect", NULL
3166 };
3167
3168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3171 {
3172 arg2 = &temp2;
3173 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3174 }
3175 {
3176 PyThreadState* __tstate = wxPyBeginAllowThreads();
3177 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3178
3179 wxPyEndAllowThreads(__tstate);
3180 if (PyErr_Occurred()) SWIG_fail;
3181 }
3182 {
3183 wxBitmap * resultptr;
3184 resultptr = new wxBitmap((wxBitmap &) result);
3185 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3186 }
3187 return resultobj;
3188 fail:
3189 return NULL;
3190 }
3191
3192
3193 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3194 PyObject *resultobj;
3195 wxBitmap *arg1 = (wxBitmap *) 0 ;
3196 wxString *arg2 = 0 ;
3197 int arg3 ;
3198 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
3199 bool result;
3200 bool temp2 = False ;
3201 PyObject * obj0 = 0 ;
3202 PyObject * obj1 = 0 ;
3203 PyObject * obj2 = 0 ;
3204 PyObject * obj3 = 0 ;
3205 char *kwnames[] = {
3206 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3207 };
3208
3209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3212 {
3213 arg2 = wxString_in_helper(obj1);
3214 if (arg2 == NULL) SWIG_fail;
3215 temp2 = True;
3216 }
3217 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3218 if (PyErr_Occurred()) SWIG_fail;
3219 if (obj3) {
3220 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3222 }
3223 {
3224 PyThreadState* __tstate = wxPyBeginAllowThreads();
3225 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3226
3227 wxPyEndAllowThreads(__tstate);
3228 if (PyErr_Occurred()) SWIG_fail;
3229 }
3230 {
3231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3232 }
3233 {
3234 if (temp2)
3235 delete arg2;
3236 }
3237 return resultobj;
3238 fail:
3239 {
3240 if (temp2)
3241 delete arg2;
3242 }
3243 return NULL;
3244 }
3245
3246
3247 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3248 PyObject *resultobj;
3249 wxBitmap *arg1 = (wxBitmap *) 0 ;
3250 wxString *arg2 = 0 ;
3251 int arg3 ;
3252 bool result;
3253 bool temp2 = False ;
3254 PyObject * obj0 = 0 ;
3255 PyObject * obj1 = 0 ;
3256 PyObject * obj2 = 0 ;
3257 char *kwnames[] = {
3258 (char *) "self",(char *) "name",(char *) "type", NULL
3259 };
3260
3261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3264 {
3265 arg2 = wxString_in_helper(obj1);
3266 if (arg2 == NULL) SWIG_fail;
3267 temp2 = True;
3268 }
3269 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3270 if (PyErr_Occurred()) SWIG_fail;
3271 {
3272 PyThreadState* __tstate = wxPyBeginAllowThreads();
3273 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3274
3275 wxPyEndAllowThreads(__tstate);
3276 if (PyErr_Occurred()) SWIG_fail;
3277 }
3278 {
3279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3280 }
3281 {
3282 if (temp2)
3283 delete arg2;
3284 }
3285 return resultobj;
3286 fail:
3287 {
3288 if (temp2)
3289 delete arg2;
3290 }
3291 return NULL;
3292 }
3293
3294
3295 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3296 PyObject *resultobj;
3297 wxBitmap *arg1 = (wxBitmap *) 0 ;
3298 wxIcon *arg2 = 0 ;
3299 bool result;
3300 PyObject * obj0 = 0 ;
3301 PyObject * obj1 = 0 ;
3302 char *kwnames[] = {
3303 (char *) "self",(char *) "icon", NULL
3304 };
3305
3306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3309 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3310 SWIG_POINTER_EXCEPTION | 0)) == -1)
3311 SWIG_fail;
3312 if (arg2 == NULL) {
3313 PyErr_SetString(PyExc_TypeError,"null reference");
3314 SWIG_fail;
3315 }
3316 {
3317 PyThreadState* __tstate = wxPyBeginAllowThreads();
3318 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3319
3320 wxPyEndAllowThreads(__tstate);
3321 if (PyErr_Occurred()) SWIG_fail;
3322 }
3323 {
3324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3325 }
3326 return resultobj;
3327 fail:
3328 return NULL;
3329 }
3330
3331
3332 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3333 PyObject *resultobj;
3334 wxBitmap *arg1 = (wxBitmap *) 0 ;
3335 int arg2 ;
3336 PyObject * obj0 = 0 ;
3337 PyObject * obj1 = 0 ;
3338 char *kwnames[] = {
3339 (char *) "self",(char *) "height", NULL
3340 };
3341
3342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3345 arg2 = (int) SWIG_AsInt(obj1);
3346 if (PyErr_Occurred()) SWIG_fail;
3347 {
3348 PyThreadState* __tstate = wxPyBeginAllowThreads();
3349 (arg1)->SetHeight(arg2);
3350
3351 wxPyEndAllowThreads(__tstate);
3352 if (PyErr_Occurred()) SWIG_fail;
3353 }
3354 Py_INCREF(Py_None); resultobj = Py_None;
3355 return resultobj;
3356 fail:
3357 return NULL;
3358 }
3359
3360
3361 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3362 PyObject *resultobj;
3363 wxBitmap *arg1 = (wxBitmap *) 0 ;
3364 int arg2 ;
3365 PyObject * obj0 = 0 ;
3366 PyObject * obj1 = 0 ;
3367 char *kwnames[] = {
3368 (char *) "self",(char *) "width", NULL
3369 };
3370
3371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3374 arg2 = (int) SWIG_AsInt(obj1);
3375 if (PyErr_Occurred()) SWIG_fail;
3376 {
3377 PyThreadState* __tstate = wxPyBeginAllowThreads();
3378 (arg1)->SetWidth(arg2);
3379
3380 wxPyEndAllowThreads(__tstate);
3381 if (PyErr_Occurred()) SWIG_fail;
3382 }
3383 Py_INCREF(Py_None); resultobj = Py_None;
3384 return resultobj;
3385 fail:
3386 return NULL;
3387 }
3388
3389
3390 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3391 PyObject *resultobj;
3392 wxBitmap *arg1 = (wxBitmap *) 0 ;
3393 int arg2 ;
3394 PyObject * obj0 = 0 ;
3395 PyObject * obj1 = 0 ;
3396 char *kwnames[] = {
3397 (char *) "self",(char *) "depth", NULL
3398 };
3399
3400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3403 arg2 = (int) SWIG_AsInt(obj1);
3404 if (PyErr_Occurred()) SWIG_fail;
3405 {
3406 PyThreadState* __tstate = wxPyBeginAllowThreads();
3407 (arg1)->SetDepth(arg2);
3408
3409 wxPyEndAllowThreads(__tstate);
3410 if (PyErr_Occurred()) SWIG_fail;
3411 }
3412 Py_INCREF(Py_None); resultobj = Py_None;
3413 return resultobj;
3414 fail:
3415 return NULL;
3416 }
3417
3418
3419 static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3420 PyObject *resultobj;
3421 wxBitmap *arg1 = (wxBitmap *) 0 ;
3422 wxBitmap *arg2 = (wxBitmap *) 0 ;
3423 bool result;
3424 PyObject * obj0 = 0 ;
3425 PyObject * obj1 = 0 ;
3426 char *kwnames[] = {
3427 (char *) "self",(char *) "other", NULL
3428 };
3429
3430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3433 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3435 {
3436 PyThreadState* __tstate = wxPyBeginAllowThreads();
3437 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3438
3439 wxPyEndAllowThreads(__tstate);
3440 if (PyErr_Occurred()) SWIG_fail;
3441 }
3442 {
3443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3444 }
3445 return resultobj;
3446 fail:
3447 return NULL;
3448 }
3449
3450
3451 static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3452 PyObject *resultobj;
3453 wxBitmap *arg1 = (wxBitmap *) 0 ;
3454 wxBitmap *arg2 = (wxBitmap *) 0 ;
3455 bool result;
3456 PyObject * obj0 = 0 ;
3457 PyObject * obj1 = 0 ;
3458 char *kwnames[] = {
3459 (char *) "self",(char *) "other", NULL
3460 };
3461
3462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3465 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3467 {
3468 PyThreadState* __tstate = wxPyBeginAllowThreads();
3469 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3470
3471 wxPyEndAllowThreads(__tstate);
3472 if (PyErr_Occurred()) SWIG_fail;
3473 }
3474 {
3475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3476 }
3477 return resultobj;
3478 fail:
3479 return NULL;
3480 }
3481
3482
3483 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3484 PyObject *obj;
3485 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3486 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3487 Py_INCREF(obj);
3488 return Py_BuildValue((char *)"");
3489 }
3490 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3491 PyObject *resultobj;
3492 wxBitmap *arg1 = 0 ;
3493 wxColour const &arg2_defvalue = wxNullColour ;
3494 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3495 wxMask *result;
3496 wxColour temp2 ;
3497 PyObject * obj0 = 0 ;
3498 PyObject * obj1 = 0 ;
3499 char *kwnames[] = {
3500 (char *) "bitmap",(char *) "colour", NULL
3501 };
3502
3503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3505 SWIG_POINTER_EXCEPTION | 0)) == -1)
3506 SWIG_fail;
3507 if (arg1 == NULL) {
3508 PyErr_SetString(PyExc_TypeError,"null reference");
3509 SWIG_fail;
3510 }
3511 if (obj1) {
3512 {
3513 arg2 = &temp2;
3514 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3515 }
3516 }
3517 {
3518 PyThreadState* __tstate = wxPyBeginAllowThreads();
3519 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3520
3521 wxPyEndAllowThreads(__tstate);
3522 if (PyErr_Occurred()) SWIG_fail;
3523 }
3524 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3525 return resultobj;
3526 fail:
3527 return NULL;
3528 }
3529
3530
3531 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3532 PyObject *obj;
3533 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3534 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3535 Py_INCREF(obj);
3536 return Py_BuildValue((char *)"");
3537 }
3538 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3539 PyObject *resultobj;
3540 wxString *arg1 = 0 ;
3541 int arg2 ;
3542 int arg3 = (int) -1 ;
3543 int arg4 = (int) -1 ;
3544 wxIcon *result;
3545 bool temp1 = False ;
3546 PyObject * obj0 = 0 ;
3547 PyObject * obj1 = 0 ;
3548 PyObject * obj2 = 0 ;
3549 PyObject * obj3 = 0 ;
3550 char *kwnames[] = {
3551 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3552 };
3553
3554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3555 {
3556 arg1 = wxString_in_helper(obj0);
3557 if (arg1 == NULL) SWIG_fail;
3558 temp1 = True;
3559 }
3560 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3561 if (PyErr_Occurred()) SWIG_fail;
3562 if (obj2) {
3563 arg3 = (int) SWIG_AsInt(obj2);
3564 if (PyErr_Occurred()) SWIG_fail;
3565 }
3566 if (obj3) {
3567 arg4 = (int) SWIG_AsInt(obj3);
3568 if (PyErr_Occurred()) SWIG_fail;
3569 }
3570 {
3571 PyThreadState* __tstate = wxPyBeginAllowThreads();
3572 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3573
3574 wxPyEndAllowThreads(__tstate);
3575 if (PyErr_Occurred()) SWIG_fail;
3576 }
3577 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3578 {
3579 if (temp1)
3580 delete arg1;
3581 }
3582 return resultobj;
3583 fail:
3584 {
3585 if (temp1)
3586 delete arg1;
3587 }
3588 return NULL;
3589 }
3590
3591
3592 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3593 PyObject *resultobj;
3594 wxIcon *arg1 = (wxIcon *) 0 ;
3595 PyObject * obj0 = 0 ;
3596 char *kwnames[] = {
3597 (char *) "self", NULL
3598 };
3599
3600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3603 {
3604 PyThreadState* __tstate = wxPyBeginAllowThreads();
3605 delete arg1;
3606
3607 wxPyEndAllowThreads(__tstate);
3608 if (PyErr_Occurred()) SWIG_fail;
3609 }
3610 Py_INCREF(Py_None); resultobj = Py_None;
3611 return resultobj;
3612 fail:
3613 return NULL;
3614 }
3615
3616
3617 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3618 PyObject *resultobj;
3619 wxIcon *result;
3620 char *kwnames[] = {
3621 NULL
3622 };
3623
3624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3625 {
3626 PyThreadState* __tstate = wxPyBeginAllowThreads();
3627 result = (wxIcon *)new wxIcon();
3628
3629 wxPyEndAllowThreads(__tstate);
3630 if (PyErr_Occurred()) SWIG_fail;
3631 }
3632 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3633 return resultobj;
3634 fail:
3635 return NULL;
3636 }
3637
3638
3639 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3640 PyObject *resultobj;
3641 wxIconLocation *arg1 = 0 ;
3642 wxIcon *result;
3643 PyObject * obj0 = 0 ;
3644 char *kwnames[] = {
3645 (char *) "loc", NULL
3646 };
3647
3648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3650 SWIG_POINTER_EXCEPTION | 0)) == -1)
3651 SWIG_fail;
3652 if (arg1 == NULL) {
3653 PyErr_SetString(PyExc_TypeError,"null reference");
3654 SWIG_fail;
3655 }
3656 {
3657 PyThreadState* __tstate = wxPyBeginAllowThreads();
3658 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3659
3660 wxPyEndAllowThreads(__tstate);
3661 if (PyErr_Occurred()) SWIG_fail;
3662 }
3663 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3664 return resultobj;
3665 fail:
3666 return NULL;
3667 }
3668
3669
3670 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3671 PyObject *resultobj;
3672 wxBitmap *arg1 = 0 ;
3673 wxIcon *result;
3674 PyObject * obj0 = 0 ;
3675 char *kwnames[] = {
3676 (char *) "bmp", NULL
3677 };
3678
3679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3681 SWIG_POINTER_EXCEPTION | 0)) == -1)
3682 SWIG_fail;
3683 if (arg1 == NULL) {
3684 PyErr_SetString(PyExc_TypeError,"null reference");
3685 SWIG_fail;
3686 }
3687 {
3688 PyThreadState* __tstate = wxPyBeginAllowThreads();
3689 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3690
3691 wxPyEndAllowThreads(__tstate);
3692 if (PyErr_Occurred()) SWIG_fail;
3693 }
3694 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3695 return resultobj;
3696 fail:
3697 return NULL;
3698 }
3699
3700
3701 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3702 PyObject *resultobj;
3703 PyObject *arg1 = (PyObject *) 0 ;
3704 wxIcon *result;
3705 PyObject * obj0 = 0 ;
3706 char *kwnames[] = {
3707 (char *) "listOfStrings", NULL
3708 };
3709
3710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3711 arg1 = obj0;
3712 {
3713 PyThreadState* __tstate = wxPyBeginAllowThreads();
3714 result = (wxIcon *)new_wxIcon(arg1);
3715
3716 wxPyEndAllowThreads(__tstate);
3717 if (PyErr_Occurred()) SWIG_fail;
3718 }
3719 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3720 return resultobj;
3721 fail:
3722 return NULL;
3723 }
3724
3725
3726 static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3727 PyObject *resultobj;
3728 wxIcon *arg1 = (wxIcon *) 0 ;
3729 wxString *arg2 = 0 ;
3730 int arg3 ;
3731 bool result;
3732 bool temp2 = False ;
3733 PyObject * obj0 = 0 ;
3734 PyObject * obj1 = 0 ;
3735 PyObject * obj2 = 0 ;
3736 char *kwnames[] = {
3737 (char *) "self",(char *) "name",(char *) "type", NULL
3738 };
3739
3740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3743 {
3744 arg2 = wxString_in_helper(obj1);
3745 if (arg2 == NULL) SWIG_fail;
3746 temp2 = True;
3747 }
3748 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3749 if (PyErr_Occurred()) SWIG_fail;
3750 {
3751 PyThreadState* __tstate = wxPyBeginAllowThreads();
3752 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3753
3754 wxPyEndAllowThreads(__tstate);
3755 if (PyErr_Occurred()) SWIG_fail;
3756 }
3757 {
3758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3759 }
3760 {
3761 if (temp2)
3762 delete arg2;
3763 }
3764 return resultobj;
3765 fail:
3766 {
3767 if (temp2)
3768 delete arg2;
3769 }
3770 return NULL;
3771 }
3772
3773
3774 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3775 PyObject *resultobj;
3776 wxIcon *arg1 = (wxIcon *) 0 ;
3777 bool result;
3778 PyObject * obj0 = 0 ;
3779 char *kwnames[] = {
3780 (char *) "self", NULL
3781 };
3782
3783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3786 {
3787 PyThreadState* __tstate = wxPyBeginAllowThreads();
3788 result = (bool)(arg1)->Ok();
3789
3790 wxPyEndAllowThreads(__tstate);
3791 if (PyErr_Occurred()) SWIG_fail;
3792 }
3793 {
3794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3795 }
3796 return resultobj;
3797 fail:
3798 return NULL;
3799 }
3800
3801
3802 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3803 PyObject *resultobj;
3804 wxIcon *arg1 = (wxIcon *) 0 ;
3805 int result;
3806 PyObject * obj0 = 0 ;
3807 char *kwnames[] = {
3808 (char *) "self", NULL
3809 };
3810
3811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3814 {
3815 PyThreadState* __tstate = wxPyBeginAllowThreads();
3816 result = (int)(arg1)->GetWidth();
3817
3818 wxPyEndAllowThreads(__tstate);
3819 if (PyErr_Occurred()) SWIG_fail;
3820 }
3821 resultobj = SWIG_FromInt((int)result);
3822 return resultobj;
3823 fail:
3824 return NULL;
3825 }
3826
3827
3828 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3829 PyObject *resultobj;
3830 wxIcon *arg1 = (wxIcon *) 0 ;
3831 int result;
3832 PyObject * obj0 = 0 ;
3833 char *kwnames[] = {
3834 (char *) "self", NULL
3835 };
3836
3837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3840 {
3841 PyThreadState* __tstate = wxPyBeginAllowThreads();
3842 result = (int)(arg1)->GetHeight();
3843
3844 wxPyEndAllowThreads(__tstate);
3845 if (PyErr_Occurred()) SWIG_fail;
3846 }
3847 resultobj = SWIG_FromInt((int)result);
3848 return resultobj;
3849 fail:
3850 return NULL;
3851 }
3852
3853
3854 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3855 PyObject *resultobj;
3856 wxIcon *arg1 = (wxIcon *) 0 ;
3857 int result;
3858 PyObject * obj0 = 0 ;
3859 char *kwnames[] = {
3860 (char *) "self", NULL
3861 };
3862
3863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3866 {
3867 PyThreadState* __tstate = wxPyBeginAllowThreads();
3868 result = (int)(arg1)->GetDepth();
3869
3870 wxPyEndAllowThreads(__tstate);
3871 if (PyErr_Occurred()) SWIG_fail;
3872 }
3873 resultobj = SWIG_FromInt((int)result);
3874 return resultobj;
3875 fail:
3876 return NULL;
3877 }
3878
3879
3880 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3881 PyObject *resultobj;
3882 wxIcon *arg1 = (wxIcon *) 0 ;
3883 int arg2 ;
3884 PyObject * obj0 = 0 ;
3885 PyObject * obj1 = 0 ;
3886 char *kwnames[] = {
3887 (char *) "self",(char *) "w", NULL
3888 };
3889
3890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3893 arg2 = (int) SWIG_AsInt(obj1);
3894 if (PyErr_Occurred()) SWIG_fail;
3895 {
3896 PyThreadState* __tstate = wxPyBeginAllowThreads();
3897 (arg1)->SetWidth(arg2);
3898
3899 wxPyEndAllowThreads(__tstate);
3900 if (PyErr_Occurred()) SWIG_fail;
3901 }
3902 Py_INCREF(Py_None); resultobj = Py_None;
3903 return resultobj;
3904 fail:
3905 return NULL;
3906 }
3907
3908
3909 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3910 PyObject *resultobj;
3911 wxIcon *arg1 = (wxIcon *) 0 ;
3912 int arg2 ;
3913 PyObject * obj0 = 0 ;
3914 PyObject * obj1 = 0 ;
3915 char *kwnames[] = {
3916 (char *) "self",(char *) "h", NULL
3917 };
3918
3919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3922 arg2 = (int) SWIG_AsInt(obj1);
3923 if (PyErr_Occurred()) SWIG_fail;
3924 {
3925 PyThreadState* __tstate = wxPyBeginAllowThreads();
3926 (arg1)->SetHeight(arg2);
3927
3928 wxPyEndAllowThreads(__tstate);
3929 if (PyErr_Occurred()) SWIG_fail;
3930 }
3931 Py_INCREF(Py_None); resultobj = Py_None;
3932 return resultobj;
3933 fail:
3934 return NULL;
3935 }
3936
3937
3938 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3939 PyObject *resultobj;
3940 wxIcon *arg1 = (wxIcon *) 0 ;
3941 int arg2 ;
3942 PyObject * obj0 = 0 ;
3943 PyObject * obj1 = 0 ;
3944 char *kwnames[] = {
3945 (char *) "self",(char *) "d", NULL
3946 };
3947
3948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3951 arg2 = (int) SWIG_AsInt(obj1);
3952 if (PyErr_Occurred()) SWIG_fail;
3953 {
3954 PyThreadState* __tstate = wxPyBeginAllowThreads();
3955 (arg1)->SetDepth(arg2);
3956
3957 wxPyEndAllowThreads(__tstate);
3958 if (PyErr_Occurred()) SWIG_fail;
3959 }
3960 Py_INCREF(Py_None); resultobj = Py_None;
3961 return resultobj;
3962 fail:
3963 return NULL;
3964 }
3965
3966
3967 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3968 PyObject *resultobj;
3969 wxIcon *arg1 = (wxIcon *) 0 ;
3970 wxBitmap *arg2 = 0 ;
3971 PyObject * obj0 = 0 ;
3972 PyObject * obj1 = 0 ;
3973 char *kwnames[] = {
3974 (char *) "self",(char *) "bmp", NULL
3975 };
3976
3977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3980 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3981 SWIG_POINTER_EXCEPTION | 0)) == -1)
3982 SWIG_fail;
3983 if (arg2 == NULL) {
3984 PyErr_SetString(PyExc_TypeError,"null reference");
3985 SWIG_fail;
3986 }
3987 {
3988 PyThreadState* __tstate = wxPyBeginAllowThreads();
3989 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3990
3991 wxPyEndAllowThreads(__tstate);
3992 if (PyErr_Occurred()) SWIG_fail;
3993 }
3994 Py_INCREF(Py_None); resultobj = Py_None;
3995 return resultobj;
3996 fail:
3997 return NULL;
3998 }
3999
4000
4001 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
4002 PyObject *obj;
4003 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4004 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
4005 Py_INCREF(obj);
4006 return Py_BuildValue((char *)"");
4007 }
4008 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4009 PyObject *resultobj;
4010 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4011 int arg2 = (int) 0 ;
4012 wxIconLocation *result;
4013 bool temp1 = False ;
4014 PyObject * obj0 = 0 ;
4015 PyObject * obj1 = 0 ;
4016 char *kwnames[] = {
4017 (char *) "filename",(char *) "num", NULL
4018 };
4019
4020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
4021 if (obj0) {
4022 {
4023 arg1 = wxString_in_helper(obj0);
4024 if (arg1 == NULL) SWIG_fail;
4025 temp1 = True;
4026 }
4027 }
4028 if (obj1) {
4029 arg2 = (int) SWIG_AsInt(obj1);
4030 if (PyErr_Occurred()) SWIG_fail;
4031 }
4032 {
4033 PyThreadState* __tstate = wxPyBeginAllowThreads();
4034 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4035
4036 wxPyEndAllowThreads(__tstate);
4037 if (PyErr_Occurred()) SWIG_fail;
4038 }
4039 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
4040 {
4041 if (temp1)
4042 delete arg1;
4043 }
4044 return resultobj;
4045 fail:
4046 {
4047 if (temp1)
4048 delete arg1;
4049 }
4050 return NULL;
4051 }
4052
4053
4054 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4055 PyObject *resultobj;
4056 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4057 PyObject * obj0 = 0 ;
4058 char *kwnames[] = {
4059 (char *) "self", NULL
4060 };
4061
4062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
4063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4065 {
4066 PyThreadState* __tstate = wxPyBeginAllowThreads();
4067 delete arg1;
4068
4069 wxPyEndAllowThreads(__tstate);
4070 if (PyErr_Occurred()) SWIG_fail;
4071 }
4072 Py_INCREF(Py_None); resultobj = Py_None;
4073 return resultobj;
4074 fail:
4075 return NULL;
4076 }
4077
4078
4079 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4080 PyObject *resultobj;
4081 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4082 bool result;
4083 PyObject * obj0 = 0 ;
4084 char *kwnames[] = {
4085 (char *) "self", NULL
4086 };
4087
4088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4091 {
4092 PyThreadState* __tstate = wxPyBeginAllowThreads();
4093 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4094
4095 wxPyEndAllowThreads(__tstate);
4096 if (PyErr_Occurred()) SWIG_fail;
4097 }
4098 {
4099 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4100 }
4101 return resultobj;
4102 fail:
4103 return NULL;
4104 }
4105
4106
4107 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4108 PyObject *resultobj;
4109 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4110 wxString *arg2 = 0 ;
4111 bool temp2 = False ;
4112 PyObject * obj0 = 0 ;
4113 PyObject * obj1 = 0 ;
4114 char *kwnames[] = {
4115 (char *) "self",(char *) "filename", NULL
4116 };
4117
4118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4121 {
4122 arg2 = wxString_in_helper(obj1);
4123 if (arg2 == NULL) SWIG_fail;
4124 temp2 = True;
4125 }
4126 {
4127 PyThreadState* __tstate = wxPyBeginAllowThreads();
4128 (arg1)->SetFileName((wxString const &)*arg2);
4129
4130 wxPyEndAllowThreads(__tstate);
4131 if (PyErr_Occurred()) SWIG_fail;
4132 }
4133 Py_INCREF(Py_None); resultobj = Py_None;
4134 {
4135 if (temp2)
4136 delete arg2;
4137 }
4138 return resultobj;
4139 fail:
4140 {
4141 if (temp2)
4142 delete arg2;
4143 }
4144 return NULL;
4145 }
4146
4147
4148 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4149 PyObject *resultobj;
4150 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4151 wxString *result;
4152 PyObject * obj0 = 0 ;
4153 char *kwnames[] = {
4154 (char *) "self", NULL
4155 };
4156
4157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4160 {
4161 PyThreadState* __tstate = wxPyBeginAllowThreads();
4162 {
4163 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4164 result = (wxString *) &_result_ref;
4165 }
4166
4167 wxPyEndAllowThreads(__tstate);
4168 if (PyErr_Occurred()) SWIG_fail;
4169 }
4170 {
4171 #if wxUSE_UNICODE
4172 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4173 #else
4174 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4175 #endif
4176 }
4177 return resultobj;
4178 fail:
4179 return NULL;
4180 }
4181
4182
4183 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4184 PyObject *resultobj;
4185 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4186 int arg2 ;
4187 PyObject * obj0 = 0 ;
4188 PyObject * obj1 = 0 ;
4189 char *kwnames[] = {
4190 (char *) "self",(char *) "num", NULL
4191 };
4192
4193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4196 arg2 = (int) SWIG_AsInt(obj1);
4197 if (PyErr_Occurred()) SWIG_fail;
4198 {
4199 PyThreadState* __tstate = wxPyBeginAllowThreads();
4200 wxIconLocation_SetIndex(arg1,arg2);
4201
4202 wxPyEndAllowThreads(__tstate);
4203 if (PyErr_Occurred()) SWIG_fail;
4204 }
4205 Py_INCREF(Py_None); resultobj = Py_None;
4206 return resultobj;
4207 fail:
4208 return NULL;
4209 }
4210
4211
4212 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4213 PyObject *resultobj;
4214 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4215 int result;
4216 PyObject * obj0 = 0 ;
4217 char *kwnames[] = {
4218 (char *) "self", NULL
4219 };
4220
4221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4224 {
4225 PyThreadState* __tstate = wxPyBeginAllowThreads();
4226 result = (int)wxIconLocation_GetIndex(arg1);
4227
4228 wxPyEndAllowThreads(__tstate);
4229 if (PyErr_Occurred()) SWIG_fail;
4230 }
4231 resultobj = SWIG_FromInt((int)result);
4232 return resultobj;
4233 fail:
4234 return NULL;
4235 }
4236
4237
4238 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4239 PyObject *obj;
4240 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4241 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4242 Py_INCREF(obj);
4243 return Py_BuildValue((char *)"");
4244 }
4245 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4246 PyObject *resultobj;
4247 wxIconBundle *result;
4248 char *kwnames[] = {
4249 NULL
4250 };
4251
4252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4253 {
4254 PyThreadState* __tstate = wxPyBeginAllowThreads();
4255 result = (wxIconBundle *)new wxIconBundle();
4256
4257 wxPyEndAllowThreads(__tstate);
4258 if (PyErr_Occurred()) SWIG_fail;
4259 }
4260 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4261 return resultobj;
4262 fail:
4263 return NULL;
4264 }
4265
4266
4267 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4268 PyObject *resultobj;
4269 wxString *arg1 = 0 ;
4270 long arg2 ;
4271 wxIconBundle *result;
4272 bool temp1 = False ;
4273 PyObject * obj0 = 0 ;
4274 PyObject * obj1 = 0 ;
4275 char *kwnames[] = {
4276 (char *) "file",(char *) "type", NULL
4277 };
4278
4279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4280 {
4281 arg1 = wxString_in_helper(obj0);
4282 if (arg1 == NULL) SWIG_fail;
4283 temp1 = True;
4284 }
4285 arg2 = (long) SWIG_AsLong(obj1);
4286 if (PyErr_Occurred()) SWIG_fail;
4287 {
4288 PyThreadState* __tstate = wxPyBeginAllowThreads();
4289 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4290
4291 wxPyEndAllowThreads(__tstate);
4292 if (PyErr_Occurred()) SWIG_fail;
4293 }
4294 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4295 {
4296 if (temp1)
4297 delete arg1;
4298 }
4299 return resultobj;
4300 fail:
4301 {
4302 if (temp1)
4303 delete arg1;
4304 }
4305 return NULL;
4306 }
4307
4308
4309 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4310 PyObject *resultobj;
4311 wxIcon *arg1 = 0 ;
4312 wxIconBundle *result;
4313 PyObject * obj0 = 0 ;
4314 char *kwnames[] = {
4315 (char *) "icon", NULL
4316 };
4317
4318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4320 SWIG_POINTER_EXCEPTION | 0)) == -1)
4321 SWIG_fail;
4322 if (arg1 == NULL) {
4323 PyErr_SetString(PyExc_TypeError,"null reference");
4324 SWIG_fail;
4325 }
4326 {
4327 PyThreadState* __tstate = wxPyBeginAllowThreads();
4328 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4329
4330 wxPyEndAllowThreads(__tstate);
4331 if (PyErr_Occurred()) SWIG_fail;
4332 }
4333 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4334 return resultobj;
4335 fail:
4336 return NULL;
4337 }
4338
4339
4340 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4341 PyObject *resultobj;
4342 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4343 PyObject * obj0 = 0 ;
4344 char *kwnames[] = {
4345 (char *) "self", NULL
4346 };
4347
4348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4351 {
4352 PyThreadState* __tstate = wxPyBeginAllowThreads();
4353 delete arg1;
4354
4355 wxPyEndAllowThreads(__tstate);
4356 if (PyErr_Occurred()) SWIG_fail;
4357 }
4358 Py_INCREF(Py_None); resultobj = Py_None;
4359 return resultobj;
4360 fail:
4361 return NULL;
4362 }
4363
4364
4365 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4366 PyObject *resultobj;
4367 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4368 wxIcon *arg2 = 0 ;
4369 PyObject * obj0 = 0 ;
4370 PyObject * obj1 = 0 ;
4371 char *kwnames[] = {
4372 (char *) "self",(char *) "icon", NULL
4373 };
4374
4375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4378 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4379 SWIG_POINTER_EXCEPTION | 0)) == -1)
4380 SWIG_fail;
4381 if (arg2 == NULL) {
4382 PyErr_SetString(PyExc_TypeError,"null reference");
4383 SWIG_fail;
4384 }
4385 {
4386 PyThreadState* __tstate = wxPyBeginAllowThreads();
4387 (arg1)->AddIcon((wxIcon const &)*arg2);
4388
4389 wxPyEndAllowThreads(__tstate);
4390 if (PyErr_Occurred()) SWIG_fail;
4391 }
4392 Py_INCREF(Py_None); resultobj = Py_None;
4393 return resultobj;
4394 fail:
4395 return NULL;
4396 }
4397
4398
4399 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4400 PyObject *resultobj;
4401 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4402 wxString *arg2 = 0 ;
4403 long arg3 ;
4404 bool temp2 = False ;
4405 PyObject * obj0 = 0 ;
4406 PyObject * obj1 = 0 ;
4407 PyObject * obj2 = 0 ;
4408 char *kwnames[] = {
4409 (char *) "self",(char *) "file",(char *) "type", NULL
4410 };
4411
4412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4415 {
4416 arg2 = wxString_in_helper(obj1);
4417 if (arg2 == NULL) SWIG_fail;
4418 temp2 = True;
4419 }
4420 arg3 = (long) SWIG_AsLong(obj2);
4421 if (PyErr_Occurred()) SWIG_fail;
4422 {
4423 PyThreadState* __tstate = wxPyBeginAllowThreads();
4424 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4425
4426 wxPyEndAllowThreads(__tstate);
4427 if (PyErr_Occurred()) SWIG_fail;
4428 }
4429 Py_INCREF(Py_None); resultobj = Py_None;
4430 {
4431 if (temp2)
4432 delete arg2;
4433 }
4434 return resultobj;
4435 fail:
4436 {
4437 if (temp2)
4438 delete arg2;
4439 }
4440 return NULL;
4441 }
4442
4443
4444 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4445 PyObject *resultobj;
4446 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4447 wxSize *arg2 = 0 ;
4448 wxIcon *result;
4449 wxSize temp2 ;
4450 PyObject * obj0 = 0 ;
4451 PyObject * obj1 = 0 ;
4452 char *kwnames[] = {
4453 (char *) "self",(char *) "size", NULL
4454 };
4455
4456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4459 {
4460 arg2 = &temp2;
4461 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4462 }
4463 {
4464 PyThreadState* __tstate = wxPyBeginAllowThreads();
4465 {
4466 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4467 result = (wxIcon *) &_result_ref;
4468 }
4469
4470 wxPyEndAllowThreads(__tstate);
4471 if (PyErr_Occurred()) SWIG_fail;
4472 }
4473 {
4474 wxIcon* resultptr = new wxIcon(*result);
4475 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4476 }
4477 return resultobj;
4478 fail:
4479 return NULL;
4480 }
4481
4482
4483 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4484 PyObject *obj;
4485 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4486 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4487 Py_INCREF(obj);
4488 return Py_BuildValue((char *)"");
4489 }
4490 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4491 PyObject *resultobj;
4492 wxString *arg1 = (wxString *) 0 ;
4493 long arg2 ;
4494 int arg3 = (int) 0 ;
4495 int arg4 = (int) 0 ;
4496 wxCursor *result;
4497 bool temp1 = False ;
4498 PyObject * obj0 = 0 ;
4499 PyObject * obj1 = 0 ;
4500 PyObject * obj2 = 0 ;
4501 PyObject * obj3 = 0 ;
4502 char *kwnames[] = {
4503 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4504 };
4505
4506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4507 {
4508 arg1 = wxString_in_helper(obj0);
4509 if (arg1 == NULL) SWIG_fail;
4510 temp1 = True;
4511 }
4512 arg2 = (long) SWIG_AsLong(obj1);
4513 if (PyErr_Occurred()) SWIG_fail;
4514 if (obj2) {
4515 arg3 = (int) SWIG_AsInt(obj2);
4516 if (PyErr_Occurred()) SWIG_fail;
4517 }
4518 if (obj3) {
4519 arg4 = (int) SWIG_AsInt(obj3);
4520 if (PyErr_Occurred()) SWIG_fail;
4521 }
4522 {
4523 PyThreadState* __tstate = wxPyBeginAllowThreads();
4524 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4525
4526 wxPyEndAllowThreads(__tstate);
4527 if (PyErr_Occurred()) SWIG_fail;
4528 }
4529 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4530 {
4531 if (temp1)
4532 delete arg1;
4533 }
4534 return resultobj;
4535 fail:
4536 {
4537 if (temp1)
4538 delete arg1;
4539 }
4540 return NULL;
4541 }
4542
4543
4544 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4545 PyObject *resultobj;
4546 wxCursor *arg1 = (wxCursor *) 0 ;
4547 PyObject * obj0 = 0 ;
4548 char *kwnames[] = {
4549 (char *) "self", NULL
4550 };
4551
4552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4555 {
4556 PyThreadState* __tstate = wxPyBeginAllowThreads();
4557 delete arg1;
4558
4559 wxPyEndAllowThreads(__tstate);
4560 if (PyErr_Occurred()) SWIG_fail;
4561 }
4562 Py_INCREF(Py_None); resultobj = Py_None;
4563 return resultobj;
4564 fail:
4565 return NULL;
4566 }
4567
4568
4569 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4570 PyObject *resultobj;
4571 int arg1 ;
4572 wxCursor *result;
4573 PyObject * obj0 = 0 ;
4574 char *kwnames[] = {
4575 (char *) "id", NULL
4576 };
4577
4578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4579 arg1 = (int) SWIG_AsInt(obj0);
4580 if (PyErr_Occurred()) SWIG_fail;
4581 {
4582 PyThreadState* __tstate = wxPyBeginAllowThreads();
4583 result = (wxCursor *)new wxCursor(arg1);
4584
4585 wxPyEndAllowThreads(__tstate);
4586 if (PyErr_Occurred()) SWIG_fail;
4587 }
4588 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4589 return resultobj;
4590 fail:
4591 return NULL;
4592 }
4593
4594
4595 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4596 PyObject *resultobj;
4597 wxImage *arg1 = 0 ;
4598 wxCursor *result;
4599 PyObject * obj0 = 0 ;
4600 char *kwnames[] = {
4601 (char *) "image", NULL
4602 };
4603
4604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4606 SWIG_POINTER_EXCEPTION | 0)) == -1)
4607 SWIG_fail;
4608 if (arg1 == NULL) {
4609 PyErr_SetString(PyExc_TypeError,"null reference");
4610 SWIG_fail;
4611 }
4612 {
4613 PyThreadState* __tstate = wxPyBeginAllowThreads();
4614 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4615
4616 wxPyEndAllowThreads(__tstate);
4617 if (PyErr_Occurred()) SWIG_fail;
4618 }
4619 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4620 return resultobj;
4621 fail:
4622 return NULL;
4623 }
4624
4625
4626 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4627 PyObject *resultobj;
4628 wxCursor *arg1 = (wxCursor *) 0 ;
4629 bool result;
4630 PyObject * obj0 = 0 ;
4631 char *kwnames[] = {
4632 (char *) "self", NULL
4633 };
4634
4635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4638 {
4639 PyThreadState* __tstate = wxPyBeginAllowThreads();
4640 result = (bool)(arg1)->Ok();
4641
4642 wxPyEndAllowThreads(__tstate);
4643 if (PyErr_Occurred()) SWIG_fail;
4644 }
4645 {
4646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4647 }
4648 return resultobj;
4649 fail:
4650 return NULL;
4651 }
4652
4653
4654 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4655 PyObject *obj;
4656 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4657 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4658 Py_INCREF(obj);
4659 return Py_BuildValue((char *)"");
4660 }
4661 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4662 PyObject *resultobj;
4663 int arg1 = (int) 0 ;
4664 int arg2 = (int) 0 ;
4665 int arg3 = (int) 0 ;
4666 int arg4 = (int) 0 ;
4667 wxRegion *result;
4668 PyObject * obj0 = 0 ;
4669 PyObject * obj1 = 0 ;
4670 PyObject * obj2 = 0 ;
4671 PyObject * obj3 = 0 ;
4672 char *kwnames[] = {
4673 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4674 };
4675
4676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4677 if (obj0) {
4678 arg1 = (int) SWIG_AsInt(obj0);
4679 if (PyErr_Occurred()) SWIG_fail;
4680 }
4681 if (obj1) {
4682 arg2 = (int) SWIG_AsInt(obj1);
4683 if (PyErr_Occurred()) SWIG_fail;
4684 }
4685 if (obj2) {
4686 arg3 = (int) SWIG_AsInt(obj2);
4687 if (PyErr_Occurred()) SWIG_fail;
4688 }
4689 if (obj3) {
4690 arg4 = (int) SWIG_AsInt(obj3);
4691 if (PyErr_Occurred()) SWIG_fail;
4692 }
4693 {
4694 PyThreadState* __tstate = wxPyBeginAllowThreads();
4695 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4696
4697 wxPyEndAllowThreads(__tstate);
4698 if (PyErr_Occurred()) SWIG_fail;
4699 }
4700 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4701 return resultobj;
4702 fail:
4703 return NULL;
4704 }
4705
4706
4707 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4708 PyObject *resultobj;
4709 wxBitmap *arg1 = 0 ;
4710 wxColour const &arg2_defvalue = wxNullColour ;
4711 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4712 int arg3 = (int) 0 ;
4713 wxRegion *result;
4714 wxColour temp2 ;
4715 PyObject * obj0 = 0 ;
4716 PyObject * obj1 = 0 ;
4717 PyObject * obj2 = 0 ;
4718 char *kwnames[] = {
4719 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4720 };
4721
4722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4724 SWIG_POINTER_EXCEPTION | 0)) == -1)
4725 SWIG_fail;
4726 if (arg1 == NULL) {
4727 PyErr_SetString(PyExc_TypeError,"null reference");
4728 SWIG_fail;
4729 }
4730 if (obj1) {
4731 {
4732 arg2 = &temp2;
4733 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4734 }
4735 }
4736 if (obj2) {
4737 arg3 = (int) SWIG_AsInt(obj2);
4738 if (PyErr_Occurred()) SWIG_fail;
4739 }
4740 {
4741 PyThreadState* __tstate = wxPyBeginAllowThreads();
4742 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4743
4744 wxPyEndAllowThreads(__tstate);
4745 if (PyErr_Occurred()) SWIG_fail;
4746 }
4747 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4748 return resultobj;
4749 fail:
4750 return NULL;
4751 }
4752
4753
4754 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4755 PyObject *resultobj;
4756 int arg1 ;
4757 wxPoint *arg2 = (wxPoint *) 0 ;
4758 int arg3 = (int) wxWINDING_RULE ;
4759 wxRegion *result;
4760 PyObject * obj0 = 0 ;
4761 PyObject * obj1 = 0 ;
4762 char *kwnames[] = {
4763 (char *) "points",(char *) "fillStyle", NULL
4764 };
4765
4766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4767 {
4768 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4769 if (arg2 == NULL) SWIG_fail;
4770 }
4771 if (obj1) {
4772 arg3 = (int) SWIG_AsInt(obj1);
4773 if (PyErr_Occurred()) SWIG_fail;
4774 }
4775 {
4776 PyThreadState* __tstate = wxPyBeginAllowThreads();
4777 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
4778
4779 wxPyEndAllowThreads(__tstate);
4780 if (PyErr_Occurred()) SWIG_fail;
4781 }
4782 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4783 {
4784 if (arg2) delete [] arg2;
4785 }
4786 return resultobj;
4787 fail:
4788 {
4789 if (arg2) delete [] arg2;
4790 }
4791 return NULL;
4792 }
4793
4794
4795 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4796 PyObject *resultobj;
4797 wxRegion *arg1 = (wxRegion *) 0 ;
4798 PyObject * obj0 = 0 ;
4799 char *kwnames[] = {
4800 (char *) "self", NULL
4801 };
4802
4803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4806 {
4807 PyThreadState* __tstate = wxPyBeginAllowThreads();
4808 delete arg1;
4809
4810 wxPyEndAllowThreads(__tstate);
4811 if (PyErr_Occurred()) SWIG_fail;
4812 }
4813 Py_INCREF(Py_None); resultobj = Py_None;
4814 return resultobj;
4815 fail:
4816 return NULL;
4817 }
4818
4819
4820 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4821 PyObject *resultobj;
4822 wxRegion *arg1 = (wxRegion *) 0 ;
4823 PyObject * obj0 = 0 ;
4824 char *kwnames[] = {
4825 (char *) "self", NULL
4826 };
4827
4828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4831 {
4832 PyThreadState* __tstate = wxPyBeginAllowThreads();
4833 (arg1)->Clear();
4834
4835 wxPyEndAllowThreads(__tstate);
4836 if (PyErr_Occurred()) SWIG_fail;
4837 }
4838 Py_INCREF(Py_None); resultobj = Py_None;
4839 return resultobj;
4840 fail:
4841 return NULL;
4842 }
4843
4844
4845 static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
4846 PyObject *resultobj;
4847 wxRegion *arg1 = (wxRegion *) 0 ;
4848 int arg2 ;
4849 int arg3 ;
4850 bool result;
4851 PyObject * obj0 = 0 ;
4852 PyObject * obj1 = 0 ;
4853 PyObject * obj2 = 0 ;
4854 char *kwnames[] = {
4855 (char *) "self",(char *) "x",(char *) "y", NULL
4856 };
4857
4858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
4859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4861 arg2 = (int) SWIG_AsInt(obj1);
4862 if (PyErr_Occurred()) SWIG_fail;
4863 arg3 = (int) SWIG_AsInt(obj2);
4864 if (PyErr_Occurred()) SWIG_fail;
4865 {
4866 PyThreadState* __tstate = wxPyBeginAllowThreads();
4867 result = (bool)(arg1)->Offset(arg2,arg3);
4868
4869 wxPyEndAllowThreads(__tstate);
4870 if (PyErr_Occurred()) SWIG_fail;
4871 }
4872 {
4873 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4874 }
4875 return resultobj;
4876 fail:
4877 return NULL;
4878 }
4879
4880
4881 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4882 PyObject *resultobj;
4883 wxRegion *arg1 = (wxRegion *) 0 ;
4884 int arg2 ;
4885 int arg3 ;
4886 int result;
4887 PyObject * obj0 = 0 ;
4888 PyObject * obj1 = 0 ;
4889 PyObject * obj2 = 0 ;
4890 char *kwnames[] = {
4891 (char *) "self",(char *) "x",(char *) "y", NULL
4892 };
4893
4894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
4895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4897 arg2 = (int) SWIG_AsInt(obj1);
4898 if (PyErr_Occurred()) SWIG_fail;
4899 arg3 = (int) SWIG_AsInt(obj2);
4900 if (PyErr_Occurred()) SWIG_fail;
4901 {
4902 PyThreadState* __tstate = wxPyBeginAllowThreads();
4903 result = (int)(arg1)->Contains(arg2,arg3);
4904
4905 wxPyEndAllowThreads(__tstate);
4906 if (PyErr_Occurred()) SWIG_fail;
4907 }
4908 resultobj = SWIG_FromInt((int)result);
4909 return resultobj;
4910 fail:
4911 return NULL;
4912 }
4913
4914
4915 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4916 PyObject *resultobj;
4917 wxRegion *arg1 = (wxRegion *) 0 ;
4918 wxPoint *arg2 = 0 ;
4919 int result;
4920 wxPoint temp2 ;
4921 PyObject * obj0 = 0 ;
4922 PyObject * obj1 = 0 ;
4923 char *kwnames[] = {
4924 (char *) "self",(char *) "pt", NULL
4925 };
4926
4927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4930 {
4931 arg2 = &temp2;
4932 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4933 }
4934 {
4935 PyThreadState* __tstate = wxPyBeginAllowThreads();
4936 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4937
4938 wxPyEndAllowThreads(__tstate);
4939 if (PyErr_Occurred()) SWIG_fail;
4940 }
4941 resultobj = SWIG_FromInt((int)result);
4942 return resultobj;
4943 fail:
4944 return NULL;
4945 }
4946
4947
4948 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4949 PyObject *resultobj;
4950 wxRegion *arg1 = (wxRegion *) 0 ;
4951 wxRect *arg2 = 0 ;
4952 int result;
4953 wxRect temp2 ;
4954 PyObject * obj0 = 0 ;
4955 PyObject * obj1 = 0 ;
4956 char *kwnames[] = {
4957 (char *) "self",(char *) "rect", NULL
4958 };
4959
4960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4963 {
4964 arg2 = &temp2;
4965 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4966 }
4967 {
4968 PyThreadState* __tstate = wxPyBeginAllowThreads();
4969 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4970
4971 wxPyEndAllowThreads(__tstate);
4972 if (PyErr_Occurred()) SWIG_fail;
4973 }
4974 resultobj = SWIG_FromInt((int)result);
4975 return resultobj;
4976 fail:
4977 return NULL;
4978 }
4979
4980
4981 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4982 PyObject *resultobj;
4983 wxRegion *arg1 = (wxRegion *) 0 ;
4984 int arg2 ;
4985 int arg3 ;
4986 int arg4 ;
4987 int arg5 ;
4988 int result;
4989 PyObject * obj0 = 0 ;
4990 PyObject * obj1 = 0 ;
4991 PyObject * obj2 = 0 ;
4992 PyObject * obj3 = 0 ;
4993 PyObject * obj4 = 0 ;
4994 char *kwnames[] = {
4995 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4996 };
4997
4998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5001 arg2 = (int) SWIG_AsInt(obj1);
5002 if (PyErr_Occurred()) SWIG_fail;
5003 arg3 = (int) SWIG_AsInt(obj2);
5004 if (PyErr_Occurred()) SWIG_fail;
5005 arg4 = (int) SWIG_AsInt(obj3);
5006 if (PyErr_Occurred()) SWIG_fail;
5007 arg5 = (int) SWIG_AsInt(obj4);
5008 if (PyErr_Occurred()) SWIG_fail;
5009 {
5010 PyThreadState* __tstate = wxPyBeginAllowThreads();
5011 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5012
5013 wxPyEndAllowThreads(__tstate);
5014 if (PyErr_Occurred()) SWIG_fail;
5015 }
5016 resultobj = SWIG_FromInt((int)result);
5017 return resultobj;
5018 fail:
5019 return NULL;
5020 }
5021
5022
5023 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5024 PyObject *resultobj;
5025 wxRegion *arg1 = (wxRegion *) 0 ;
5026 wxRect result;
5027 PyObject * obj0 = 0 ;
5028 char *kwnames[] = {
5029 (char *) "self", NULL
5030 };
5031
5032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5035 {
5036 PyThreadState* __tstate = wxPyBeginAllowThreads();
5037 result = (arg1)->GetBox();
5038
5039 wxPyEndAllowThreads(__tstate);
5040 if (PyErr_Occurred()) SWIG_fail;
5041 }
5042 {
5043 wxRect * resultptr;
5044 resultptr = new wxRect((wxRect &) result);
5045 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5046 }
5047 return resultobj;
5048 fail:
5049 return NULL;
5050 }
5051
5052
5053 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
5054 PyObject *resultobj;
5055 wxRegion *arg1 = (wxRegion *) 0 ;
5056 int arg2 ;
5057 int arg3 ;
5058 int arg4 ;
5059 int arg5 ;
5060 bool result;
5061 PyObject * obj0 = 0 ;
5062 PyObject * obj1 = 0 ;
5063 PyObject * obj2 = 0 ;
5064 PyObject * obj3 = 0 ;
5065 PyObject * obj4 = 0 ;
5066 char *kwnames[] = {
5067 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5068 };
5069
5070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5073 arg2 = (int) SWIG_AsInt(obj1);
5074 if (PyErr_Occurred()) SWIG_fail;
5075 arg3 = (int) SWIG_AsInt(obj2);
5076 if (PyErr_Occurred()) SWIG_fail;
5077 arg4 = (int) SWIG_AsInt(obj3);
5078 if (PyErr_Occurred()) SWIG_fail;
5079 arg5 = (int) SWIG_AsInt(obj4);
5080 if (PyErr_Occurred()) SWIG_fail;
5081 {
5082 PyThreadState* __tstate = wxPyBeginAllowThreads();
5083 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5084
5085 wxPyEndAllowThreads(__tstate);
5086 if (PyErr_Occurred()) SWIG_fail;
5087 }
5088 {
5089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5090 }
5091 return resultobj;
5092 fail:
5093 return NULL;
5094 }
5095
5096
5097 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5098 PyObject *resultobj;
5099 wxRegion *arg1 = (wxRegion *) 0 ;
5100 wxRect *arg2 = 0 ;
5101 bool result;
5102 wxRect temp2 ;
5103 PyObject * obj0 = 0 ;
5104 PyObject * obj1 = 0 ;
5105 char *kwnames[] = {
5106 (char *) "self",(char *) "rect", NULL
5107 };
5108
5109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5112 {
5113 arg2 = &temp2;
5114 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5115 }
5116 {
5117 PyThreadState* __tstate = wxPyBeginAllowThreads();
5118 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5119
5120 wxPyEndAllowThreads(__tstate);
5121 if (PyErr_Occurred()) SWIG_fail;
5122 }
5123 {
5124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5125 }
5126 return resultobj;
5127 fail:
5128 return NULL;
5129 }
5130
5131
5132 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5133 PyObject *resultobj;
5134 wxRegion *arg1 = (wxRegion *) 0 ;
5135 wxRegion *arg2 = 0 ;
5136 bool result;
5137 PyObject * obj0 = 0 ;
5138 PyObject * obj1 = 0 ;
5139 char *kwnames[] = {
5140 (char *) "self",(char *) "region", NULL
5141 };
5142
5143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5146 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5147 SWIG_POINTER_EXCEPTION | 0)) == -1)
5148 SWIG_fail;
5149 if (arg2 == NULL) {
5150 PyErr_SetString(PyExc_TypeError,"null reference");
5151 SWIG_fail;
5152 }
5153 {
5154 PyThreadState* __tstate = wxPyBeginAllowThreads();
5155 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5156
5157 wxPyEndAllowThreads(__tstate);
5158 if (PyErr_Occurred()) SWIG_fail;
5159 }
5160 {
5161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5162 }
5163 return resultobj;
5164 fail:
5165 return NULL;
5166 }
5167
5168
5169 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5170 PyObject *resultobj;
5171 wxRegion *arg1 = (wxRegion *) 0 ;
5172 bool result;
5173 PyObject * obj0 = 0 ;
5174 char *kwnames[] = {
5175 (char *) "self", NULL
5176 };
5177
5178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5181 {
5182 PyThreadState* __tstate = wxPyBeginAllowThreads();
5183 result = (bool)(arg1)->IsEmpty();
5184
5185 wxPyEndAllowThreads(__tstate);
5186 if (PyErr_Occurred()) SWIG_fail;
5187 }
5188 {
5189 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5190 }
5191 return resultobj;
5192 fail:
5193 return NULL;
5194 }
5195
5196
5197 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5198 PyObject *resultobj;
5199 wxRegion *arg1 = (wxRegion *) 0 ;
5200 int arg2 ;
5201 int arg3 ;
5202 int arg4 ;
5203 int arg5 ;
5204 bool result;
5205 PyObject * obj0 = 0 ;
5206 PyObject * obj1 = 0 ;
5207 PyObject * obj2 = 0 ;
5208 PyObject * obj3 = 0 ;
5209 PyObject * obj4 = 0 ;
5210 char *kwnames[] = {
5211 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5212 };
5213
5214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5217 arg2 = (int) SWIG_AsInt(obj1);
5218 if (PyErr_Occurred()) SWIG_fail;
5219 arg3 = (int) SWIG_AsInt(obj2);
5220 if (PyErr_Occurred()) SWIG_fail;
5221 arg4 = (int) SWIG_AsInt(obj3);
5222 if (PyErr_Occurred()) SWIG_fail;
5223 arg5 = (int) SWIG_AsInt(obj4);
5224 if (PyErr_Occurred()) SWIG_fail;
5225 {
5226 PyThreadState* __tstate = wxPyBeginAllowThreads();
5227 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5228
5229 wxPyEndAllowThreads(__tstate);
5230 if (PyErr_Occurred()) SWIG_fail;
5231 }
5232 {
5233 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5234 }
5235 return resultobj;
5236 fail:
5237 return NULL;
5238 }
5239
5240
5241 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5242 PyObject *resultobj;
5243 wxRegion *arg1 = (wxRegion *) 0 ;
5244 wxRect *arg2 = 0 ;
5245 bool result;
5246 wxRect temp2 ;
5247 PyObject * obj0 = 0 ;
5248 PyObject * obj1 = 0 ;
5249 char *kwnames[] = {
5250 (char *) "self",(char *) "rect", NULL
5251 };
5252
5253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5256 {
5257 arg2 = &temp2;
5258 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5259 }
5260 {
5261 PyThreadState* __tstate = wxPyBeginAllowThreads();
5262 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5263
5264 wxPyEndAllowThreads(__tstate);
5265 if (PyErr_Occurred()) SWIG_fail;
5266 }
5267 {
5268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5269 }
5270 return resultobj;
5271 fail:
5272 return NULL;
5273 }
5274
5275
5276 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5277 PyObject *resultobj;
5278 wxRegion *arg1 = (wxRegion *) 0 ;
5279 wxRegion *arg2 = 0 ;
5280 bool result;
5281 PyObject * obj0 = 0 ;
5282 PyObject * obj1 = 0 ;
5283 char *kwnames[] = {
5284 (char *) "self",(char *) "region", NULL
5285 };
5286
5287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5290 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5291 SWIG_POINTER_EXCEPTION | 0)) == -1)
5292 SWIG_fail;
5293 if (arg2 == NULL) {
5294 PyErr_SetString(PyExc_TypeError,"null reference");
5295 SWIG_fail;
5296 }
5297 {
5298 PyThreadState* __tstate = wxPyBeginAllowThreads();
5299 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5300
5301 wxPyEndAllowThreads(__tstate);
5302 if (PyErr_Occurred()) SWIG_fail;
5303 }
5304 {
5305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5306 }
5307 return resultobj;
5308 fail:
5309 return NULL;
5310 }
5311
5312
5313 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5314 PyObject *resultobj;
5315 wxRegion *arg1 = (wxRegion *) 0 ;
5316 int arg2 ;
5317 int arg3 ;
5318 int arg4 ;
5319 int arg5 ;
5320 bool result;
5321 PyObject * obj0 = 0 ;
5322 PyObject * obj1 = 0 ;
5323 PyObject * obj2 = 0 ;
5324 PyObject * obj3 = 0 ;
5325 PyObject * obj4 = 0 ;
5326 char *kwnames[] = {
5327 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5328 };
5329
5330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5333 arg2 = (int) SWIG_AsInt(obj1);
5334 if (PyErr_Occurred()) SWIG_fail;
5335 arg3 = (int) SWIG_AsInt(obj2);
5336 if (PyErr_Occurred()) SWIG_fail;
5337 arg4 = (int) SWIG_AsInt(obj3);
5338 if (PyErr_Occurred()) SWIG_fail;
5339 arg5 = (int) SWIG_AsInt(obj4);
5340 if (PyErr_Occurred()) SWIG_fail;
5341 {
5342 PyThreadState* __tstate = wxPyBeginAllowThreads();
5343 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5344
5345 wxPyEndAllowThreads(__tstate);
5346 if (PyErr_Occurred()) SWIG_fail;
5347 }
5348 {
5349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5350 }
5351 return resultobj;
5352 fail:
5353 return NULL;
5354 }
5355
5356
5357 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5358 PyObject *resultobj;
5359 wxRegion *arg1 = (wxRegion *) 0 ;
5360 wxRect *arg2 = 0 ;
5361 bool result;
5362 wxRect temp2 ;
5363 PyObject * obj0 = 0 ;
5364 PyObject * obj1 = 0 ;
5365 char *kwnames[] = {
5366 (char *) "self",(char *) "rect", NULL
5367 };
5368
5369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5372 {
5373 arg2 = &temp2;
5374 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5375 }
5376 {
5377 PyThreadState* __tstate = wxPyBeginAllowThreads();
5378 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5379
5380 wxPyEndAllowThreads(__tstate);
5381 if (PyErr_Occurred()) SWIG_fail;
5382 }
5383 {
5384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5385 }
5386 return resultobj;
5387 fail:
5388 return NULL;
5389 }
5390
5391
5392 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5393 PyObject *resultobj;
5394 wxRegion *arg1 = (wxRegion *) 0 ;
5395 wxRegion *arg2 = 0 ;
5396 bool result;
5397 PyObject * obj0 = 0 ;
5398 PyObject * obj1 = 0 ;
5399 char *kwnames[] = {
5400 (char *) "self",(char *) "region", NULL
5401 };
5402
5403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5406 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5407 SWIG_POINTER_EXCEPTION | 0)) == -1)
5408 SWIG_fail;
5409 if (arg2 == NULL) {
5410 PyErr_SetString(PyExc_TypeError,"null reference");
5411 SWIG_fail;
5412 }
5413 {
5414 PyThreadState* __tstate = wxPyBeginAllowThreads();
5415 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5416
5417 wxPyEndAllowThreads(__tstate);
5418 if (PyErr_Occurred()) SWIG_fail;
5419 }
5420 {
5421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5422 }
5423 return resultobj;
5424 fail:
5425 return NULL;
5426 }
5427
5428
5429 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5430 PyObject *resultobj;
5431 wxRegion *arg1 = (wxRegion *) 0 ;
5432 int arg2 ;
5433 int arg3 ;
5434 int arg4 ;
5435 int arg5 ;
5436 bool result;
5437 PyObject * obj0 = 0 ;
5438 PyObject * obj1 = 0 ;
5439 PyObject * obj2 = 0 ;
5440 PyObject * obj3 = 0 ;
5441 PyObject * obj4 = 0 ;
5442 char *kwnames[] = {
5443 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5444 };
5445
5446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5449 arg2 = (int) SWIG_AsInt(obj1);
5450 if (PyErr_Occurred()) SWIG_fail;
5451 arg3 = (int) SWIG_AsInt(obj2);
5452 if (PyErr_Occurred()) SWIG_fail;
5453 arg4 = (int) SWIG_AsInt(obj3);
5454 if (PyErr_Occurred()) SWIG_fail;
5455 arg5 = (int) SWIG_AsInt(obj4);
5456 if (PyErr_Occurred()) SWIG_fail;
5457 {
5458 PyThreadState* __tstate = wxPyBeginAllowThreads();
5459 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5460
5461 wxPyEndAllowThreads(__tstate);
5462 if (PyErr_Occurred()) SWIG_fail;
5463 }
5464 {
5465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5466 }
5467 return resultobj;
5468 fail:
5469 return NULL;
5470 }
5471
5472
5473 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5474 PyObject *resultobj;
5475 wxRegion *arg1 = (wxRegion *) 0 ;
5476 wxRect *arg2 = 0 ;
5477 bool result;
5478 wxRect temp2 ;
5479 PyObject * obj0 = 0 ;
5480 PyObject * obj1 = 0 ;
5481 char *kwnames[] = {
5482 (char *) "self",(char *) "rect", NULL
5483 };
5484
5485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5488 {
5489 arg2 = &temp2;
5490 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5491 }
5492 {
5493 PyThreadState* __tstate = wxPyBeginAllowThreads();
5494 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5495
5496 wxPyEndAllowThreads(__tstate);
5497 if (PyErr_Occurred()) SWIG_fail;
5498 }
5499 {
5500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5501 }
5502 return resultobj;
5503 fail:
5504 return NULL;
5505 }
5506
5507
5508 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5509 PyObject *resultobj;
5510 wxRegion *arg1 = (wxRegion *) 0 ;
5511 wxRegion *arg2 = 0 ;
5512 bool result;
5513 PyObject * obj0 = 0 ;
5514 PyObject * obj1 = 0 ;
5515 char *kwnames[] = {
5516 (char *) "self",(char *) "region", NULL
5517 };
5518
5519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5522 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5523 SWIG_POINTER_EXCEPTION | 0)) == -1)
5524 SWIG_fail;
5525 if (arg2 == NULL) {
5526 PyErr_SetString(PyExc_TypeError,"null reference");
5527 SWIG_fail;
5528 }
5529 {
5530 PyThreadState* __tstate = wxPyBeginAllowThreads();
5531 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5532
5533 wxPyEndAllowThreads(__tstate);
5534 if (PyErr_Occurred()) SWIG_fail;
5535 }
5536 {
5537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5538 }
5539 return resultobj;
5540 fail:
5541 return NULL;
5542 }
5543
5544
5545 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5546 PyObject *resultobj;
5547 wxRegion *arg1 = (wxRegion *) 0 ;
5548 SwigValueWrapper< wxBitmap > result;
5549 PyObject * obj0 = 0 ;
5550 char *kwnames[] = {
5551 (char *) "self", NULL
5552 };
5553
5554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5557 {
5558 PyThreadState* __tstate = wxPyBeginAllowThreads();
5559 result = (arg1)->ConvertToBitmap();
5560
5561 wxPyEndAllowThreads(__tstate);
5562 if (PyErr_Occurred()) SWIG_fail;
5563 }
5564 {
5565 wxBitmap * resultptr;
5566 resultptr = new wxBitmap((wxBitmap &) result);
5567 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5568 }
5569 return resultobj;
5570 fail:
5571 return NULL;
5572 }
5573
5574
5575 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5576 PyObject *resultobj;
5577 wxRegion *arg1 = (wxRegion *) 0 ;
5578 wxBitmap *arg2 = 0 ;
5579 wxColour const &arg3_defvalue = wxNullColour ;
5580 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
5581 int arg4 = (int) 0 ;
5582 bool result;
5583 wxColour temp3 ;
5584 PyObject * obj0 = 0 ;
5585 PyObject * obj1 = 0 ;
5586 PyObject * obj2 = 0 ;
5587 PyObject * obj3 = 0 ;
5588 char *kwnames[] = {
5589 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5590 };
5591
5592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5595 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5596 SWIG_POINTER_EXCEPTION | 0)) == -1)
5597 SWIG_fail;
5598 if (arg2 == NULL) {
5599 PyErr_SetString(PyExc_TypeError,"null reference");
5600 SWIG_fail;
5601 }
5602 if (obj2) {
5603 {
5604 arg3 = &temp3;
5605 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5606 }
5607 }
5608 if (obj3) {
5609 arg4 = (int) SWIG_AsInt(obj3);
5610 if (PyErr_Occurred()) SWIG_fail;
5611 }
5612 {
5613 PyThreadState* __tstate = wxPyBeginAllowThreads();
5614 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5615
5616 wxPyEndAllowThreads(__tstate);
5617 if (PyErr_Occurred()) SWIG_fail;
5618 }
5619 {
5620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5621 }
5622 return resultobj;
5623 fail:
5624 return NULL;
5625 }
5626
5627
5628 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5629 PyObject *obj;
5630 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5631 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5632 Py_INCREF(obj);
5633 return Py_BuildValue((char *)"");
5634 }
5635 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5636 PyObject *resultobj;
5637 wxRegion *arg1 = 0 ;
5638 wxRegionIterator *result;
5639 PyObject * obj0 = 0 ;
5640 char *kwnames[] = {
5641 (char *) "region", NULL
5642 };
5643
5644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5646 SWIG_POINTER_EXCEPTION | 0)) == -1)
5647 SWIG_fail;
5648 if (arg1 == NULL) {
5649 PyErr_SetString(PyExc_TypeError,"null reference");
5650 SWIG_fail;
5651 }
5652 {
5653 PyThreadState* __tstate = wxPyBeginAllowThreads();
5654 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5655
5656 wxPyEndAllowThreads(__tstate);
5657 if (PyErr_Occurred()) SWIG_fail;
5658 }
5659 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
5660 return resultobj;
5661 fail:
5662 return NULL;
5663 }
5664
5665
5666 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5667 PyObject *resultobj;
5668 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5669 PyObject * obj0 = 0 ;
5670 char *kwnames[] = {
5671 (char *) "self", NULL
5672 };
5673
5674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5677 {
5678 PyThreadState* __tstate = wxPyBeginAllowThreads();
5679 delete arg1;
5680
5681 wxPyEndAllowThreads(__tstate);
5682 if (PyErr_Occurred()) SWIG_fail;
5683 }
5684 Py_INCREF(Py_None); resultobj = Py_None;
5685 return resultobj;
5686 fail:
5687 return NULL;
5688 }
5689
5690
5691 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5692 PyObject *resultobj;
5693 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5694 int result;
5695 PyObject * obj0 = 0 ;
5696 char *kwnames[] = {
5697 (char *) "self", NULL
5698 };
5699
5700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5703 {
5704 PyThreadState* __tstate = wxPyBeginAllowThreads();
5705 result = (int)(arg1)->GetX();
5706
5707 wxPyEndAllowThreads(__tstate);
5708 if (PyErr_Occurred()) SWIG_fail;
5709 }
5710 resultobj = SWIG_FromInt((int)result);
5711 return resultobj;
5712 fail:
5713 return NULL;
5714 }
5715
5716
5717 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5718 PyObject *resultobj;
5719 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5720 int result;
5721 PyObject * obj0 = 0 ;
5722 char *kwnames[] = {
5723 (char *) "self", NULL
5724 };
5725
5726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5729 {
5730 PyThreadState* __tstate = wxPyBeginAllowThreads();
5731 result = (int)(arg1)->GetY();
5732
5733 wxPyEndAllowThreads(__tstate);
5734 if (PyErr_Occurred()) SWIG_fail;
5735 }
5736 resultobj = SWIG_FromInt((int)result);
5737 return resultobj;
5738 fail:
5739 return NULL;
5740 }
5741
5742
5743 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5744 PyObject *resultobj;
5745 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5746 int result;
5747 PyObject * obj0 = 0 ;
5748 char *kwnames[] = {
5749 (char *) "self", NULL
5750 };
5751
5752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5755 {
5756 PyThreadState* __tstate = wxPyBeginAllowThreads();
5757 result = (int)(arg1)->GetW();
5758
5759 wxPyEndAllowThreads(__tstate);
5760 if (PyErr_Occurred()) SWIG_fail;
5761 }
5762 resultobj = SWIG_FromInt((int)result);
5763 return resultobj;
5764 fail:
5765 return NULL;
5766 }
5767
5768
5769 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5770 PyObject *resultobj;
5771 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5772 int result;
5773 PyObject * obj0 = 0 ;
5774 char *kwnames[] = {
5775 (char *) "self", NULL
5776 };
5777
5778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5781 {
5782 PyThreadState* __tstate = wxPyBeginAllowThreads();
5783 result = (int)(arg1)->GetWidth();
5784
5785 wxPyEndAllowThreads(__tstate);
5786 if (PyErr_Occurred()) SWIG_fail;
5787 }
5788 resultobj = SWIG_FromInt((int)result);
5789 return resultobj;
5790 fail:
5791 return NULL;
5792 }
5793
5794
5795 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5796 PyObject *resultobj;
5797 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5798 int result;
5799 PyObject * obj0 = 0 ;
5800 char *kwnames[] = {
5801 (char *) "self", NULL
5802 };
5803
5804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5807 {
5808 PyThreadState* __tstate = wxPyBeginAllowThreads();
5809 result = (int)(arg1)->GetH();
5810
5811 wxPyEndAllowThreads(__tstate);
5812 if (PyErr_Occurred()) SWIG_fail;
5813 }
5814 resultobj = SWIG_FromInt((int)result);
5815 return resultobj;
5816 fail:
5817 return NULL;
5818 }
5819
5820
5821 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5822 PyObject *resultobj;
5823 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5824 int result;
5825 PyObject * obj0 = 0 ;
5826 char *kwnames[] = {
5827 (char *) "self", NULL
5828 };
5829
5830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5833 {
5834 PyThreadState* __tstate = wxPyBeginAllowThreads();
5835 result = (int)(arg1)->GetHeight();
5836
5837 wxPyEndAllowThreads(__tstate);
5838 if (PyErr_Occurred()) SWIG_fail;
5839 }
5840 resultobj = SWIG_FromInt((int)result);
5841 return resultobj;
5842 fail:
5843 return NULL;
5844 }
5845
5846
5847 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5848 PyObject *resultobj;
5849 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5850 wxRect result;
5851 PyObject * obj0 = 0 ;
5852 char *kwnames[] = {
5853 (char *) "self", NULL
5854 };
5855
5856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5859 {
5860 PyThreadState* __tstate = wxPyBeginAllowThreads();
5861 result = (arg1)->GetRect();
5862
5863 wxPyEndAllowThreads(__tstate);
5864 if (PyErr_Occurred()) SWIG_fail;
5865 }
5866 {
5867 wxRect * resultptr;
5868 resultptr = new wxRect((wxRect &) result);
5869 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5870 }
5871 return resultobj;
5872 fail:
5873 return NULL;
5874 }
5875
5876
5877 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
5878 PyObject *resultobj;
5879 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5880 bool result;
5881 PyObject * obj0 = 0 ;
5882 char *kwnames[] = {
5883 (char *) "self", NULL
5884 };
5885
5886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
5887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5889 {
5890 PyThreadState* __tstate = wxPyBeginAllowThreads();
5891 result = (bool)(arg1)->HaveRects();
5892
5893 wxPyEndAllowThreads(__tstate);
5894 if (PyErr_Occurred()) SWIG_fail;
5895 }
5896 {
5897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5898 }
5899 return resultobj;
5900 fail:
5901 return NULL;
5902 }
5903
5904
5905 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
5906 PyObject *resultobj;
5907 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5908 PyObject * obj0 = 0 ;
5909 char *kwnames[] = {
5910 (char *) "self", NULL
5911 };
5912
5913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
5914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5916 {
5917 PyThreadState* __tstate = wxPyBeginAllowThreads();
5918 (arg1)->Reset();
5919
5920 wxPyEndAllowThreads(__tstate);
5921 if (PyErr_Occurred()) SWIG_fail;
5922 }
5923 Py_INCREF(Py_None); resultobj = Py_None;
5924 return resultobj;
5925 fail:
5926 return NULL;
5927 }
5928
5929
5930 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
5931 PyObject *resultobj;
5932 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5933 PyObject * obj0 = 0 ;
5934 char *kwnames[] = {
5935 (char *) "self", NULL
5936 };
5937
5938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
5939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5941 {
5942 PyThreadState* __tstate = wxPyBeginAllowThreads();
5943 wxRegionIterator_Next(arg1);
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_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
5956 PyObject *resultobj;
5957 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5958 bool result;
5959 PyObject * obj0 = 0 ;
5960 char *kwnames[] = {
5961 (char *) "self", NULL
5962 };
5963
5964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
5965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5967 {
5968 PyThreadState* __tstate = wxPyBeginAllowThreads();
5969 result = (bool)wxRegionIterator___nonzero__(arg1);
5970
5971 wxPyEndAllowThreads(__tstate);
5972 if (PyErr_Occurred()) SWIG_fail;
5973 }
5974 {
5975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5976 }
5977 return resultobj;
5978 fail:
5979 return NULL;
5980 }
5981
5982
5983 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
5984 PyObject *obj;
5985 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5986 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
5987 Py_INCREF(obj);
5988 return Py_BuildValue((char *)"");
5989 }
5990 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5991 PyObject *resultobj;
5992 wxNativeFontInfo *result;
5993 char *kwnames[] = {
5994 NULL
5995 };
5996
5997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
5998 {
5999 PyThreadState* __tstate = wxPyBeginAllowThreads();
6000 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6001
6002 wxPyEndAllowThreads(__tstate);
6003 if (PyErr_Occurred()) SWIG_fail;
6004 }
6005 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
6006 return resultobj;
6007 fail:
6008 return NULL;
6009 }
6010
6011
6012 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6013 PyObject *resultobj;
6014 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6015 PyObject * obj0 = 0 ;
6016 char *kwnames[] = {
6017 (char *) "self", NULL
6018 };
6019
6020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6023 {
6024 PyThreadState* __tstate = wxPyBeginAllowThreads();
6025 delete arg1;
6026
6027 wxPyEndAllowThreads(__tstate);
6028 if (PyErr_Occurred()) SWIG_fail;
6029 }
6030 Py_INCREF(Py_None); resultobj = Py_None;
6031 return resultobj;
6032 fail:
6033 return NULL;
6034 }
6035
6036
6037 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6038 PyObject *resultobj;
6039 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6040 PyObject * obj0 = 0 ;
6041 char *kwnames[] = {
6042 (char *) "self", NULL
6043 };
6044
6045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6048 {
6049 PyThreadState* __tstate = wxPyBeginAllowThreads();
6050 (arg1)->Init();
6051
6052 wxPyEndAllowThreads(__tstate);
6053 if (PyErr_Occurred()) SWIG_fail;
6054 }
6055 Py_INCREF(Py_None); resultobj = Py_None;
6056 return resultobj;
6057 fail:
6058 return NULL;
6059 }
6060
6061
6062 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6063 PyObject *resultobj;
6064 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6065 wxFont *arg2 = 0 ;
6066 PyObject * obj0 = 0 ;
6067 PyObject * obj1 = 0 ;
6068 char *kwnames[] = {
6069 (char *) "self",(char *) "font", NULL
6070 };
6071
6072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6075 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6076 SWIG_POINTER_EXCEPTION | 0)) == -1)
6077 SWIG_fail;
6078 if (arg2 == NULL) {
6079 PyErr_SetString(PyExc_TypeError,"null reference");
6080 SWIG_fail;
6081 }
6082 {
6083 PyThreadState* __tstate = wxPyBeginAllowThreads();
6084 (arg1)->InitFromFont((wxFont const &)*arg2);
6085
6086 wxPyEndAllowThreads(__tstate);
6087 if (PyErr_Occurred()) SWIG_fail;
6088 }
6089 Py_INCREF(Py_None); resultobj = Py_None;
6090 return resultobj;
6091 fail:
6092 return NULL;
6093 }
6094
6095
6096 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6097 PyObject *resultobj;
6098 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6099 int result;
6100 PyObject * obj0 = 0 ;
6101 char *kwnames[] = {
6102 (char *) "self", NULL
6103 };
6104
6105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6108 {
6109 PyThreadState* __tstate = wxPyBeginAllowThreads();
6110 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6111
6112 wxPyEndAllowThreads(__tstate);
6113 if (PyErr_Occurred()) SWIG_fail;
6114 }
6115 resultobj = SWIG_FromInt((int)result);
6116 return resultobj;
6117 fail:
6118 return NULL;
6119 }
6120
6121
6122 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6123 PyObject *resultobj;
6124 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6125 int result;
6126 PyObject * obj0 = 0 ;
6127 char *kwnames[] = {
6128 (char *) "self", NULL
6129 };
6130
6131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6134 {
6135 PyThreadState* __tstate = wxPyBeginAllowThreads();
6136 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6137
6138 wxPyEndAllowThreads(__tstate);
6139 if (PyErr_Occurred()) SWIG_fail;
6140 }
6141 resultobj = SWIG_FromInt((int)result);
6142 return resultobj;
6143 fail:
6144 return NULL;
6145 }
6146
6147
6148 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6149 PyObject *resultobj;
6150 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6151 int result;
6152 PyObject * obj0 = 0 ;
6153 char *kwnames[] = {
6154 (char *) "self", NULL
6155 };
6156
6157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6160 {
6161 PyThreadState* __tstate = wxPyBeginAllowThreads();
6162 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6163
6164 wxPyEndAllowThreads(__tstate);
6165 if (PyErr_Occurred()) SWIG_fail;
6166 }
6167 resultobj = SWIG_FromInt((int)result);
6168 return resultobj;
6169 fail:
6170 return NULL;
6171 }
6172
6173
6174 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6175 PyObject *resultobj;
6176 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6177 bool result;
6178 PyObject * obj0 = 0 ;
6179 char *kwnames[] = {
6180 (char *) "self", NULL
6181 };
6182
6183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6186 {
6187 PyThreadState* __tstate = wxPyBeginAllowThreads();
6188 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6189
6190 wxPyEndAllowThreads(__tstate);
6191 if (PyErr_Occurred()) SWIG_fail;
6192 }
6193 {
6194 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6195 }
6196 return resultobj;
6197 fail:
6198 return NULL;
6199 }
6200
6201
6202 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6203 PyObject *resultobj;
6204 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6205 wxString result;
6206 PyObject * obj0 = 0 ;
6207 char *kwnames[] = {
6208 (char *) "self", NULL
6209 };
6210
6211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6214 {
6215 PyThreadState* __tstate = wxPyBeginAllowThreads();
6216 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6217
6218 wxPyEndAllowThreads(__tstate);
6219 if (PyErr_Occurred()) SWIG_fail;
6220 }
6221 {
6222 #if wxUSE_UNICODE
6223 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6224 #else
6225 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6226 #endif
6227 }
6228 return resultobj;
6229 fail:
6230 return NULL;
6231 }
6232
6233
6234 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6235 PyObject *resultobj;
6236 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6237 int result;
6238 PyObject * obj0 = 0 ;
6239 char *kwnames[] = {
6240 (char *) "self", NULL
6241 };
6242
6243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6246 {
6247 PyThreadState* __tstate = wxPyBeginAllowThreads();
6248 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6249
6250 wxPyEndAllowThreads(__tstate);
6251 if (PyErr_Occurred()) SWIG_fail;
6252 }
6253 resultobj = SWIG_FromInt((int)result);
6254 return resultobj;
6255 fail:
6256 return NULL;
6257 }
6258
6259
6260 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6261 PyObject *resultobj;
6262 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6263 int result;
6264 PyObject * obj0 = 0 ;
6265 char *kwnames[] = {
6266 (char *) "self", NULL
6267 };
6268
6269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6272 {
6273 PyThreadState* __tstate = wxPyBeginAllowThreads();
6274 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6275
6276 wxPyEndAllowThreads(__tstate);
6277 if (PyErr_Occurred()) SWIG_fail;
6278 }
6279 resultobj = SWIG_FromInt((int)result);
6280 return resultobj;
6281 fail:
6282 return NULL;
6283 }
6284
6285
6286 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6287 PyObject *resultobj;
6288 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6289 int arg2 ;
6290 PyObject * obj0 = 0 ;
6291 PyObject * obj1 = 0 ;
6292 char *kwnames[] = {
6293 (char *) "self",(char *) "pointsize", NULL
6294 };
6295
6296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6299 arg2 = (int) SWIG_AsInt(obj1);
6300 if (PyErr_Occurred()) SWIG_fail;
6301 {
6302 PyThreadState* __tstate = wxPyBeginAllowThreads();
6303 (arg1)->SetPointSize(arg2);
6304
6305 wxPyEndAllowThreads(__tstate);
6306 if (PyErr_Occurred()) SWIG_fail;
6307 }
6308 Py_INCREF(Py_None); resultobj = Py_None;
6309 return resultobj;
6310 fail:
6311 return NULL;
6312 }
6313
6314
6315 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6316 PyObject *resultobj;
6317 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6318 int arg2 ;
6319 PyObject * obj0 = 0 ;
6320 PyObject * obj1 = 0 ;
6321 char *kwnames[] = {
6322 (char *) "self",(char *) "style", NULL
6323 };
6324
6325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6328 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6329 if (PyErr_Occurred()) SWIG_fail;
6330 {
6331 PyThreadState* __tstate = wxPyBeginAllowThreads();
6332 (arg1)->SetStyle((wxFontStyle )arg2);
6333
6334 wxPyEndAllowThreads(__tstate);
6335 if (PyErr_Occurred()) SWIG_fail;
6336 }
6337 Py_INCREF(Py_None); resultobj = Py_None;
6338 return resultobj;
6339 fail:
6340 return NULL;
6341 }
6342
6343
6344 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6345 PyObject *resultobj;
6346 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6347 int arg2 ;
6348 PyObject * obj0 = 0 ;
6349 PyObject * obj1 = 0 ;
6350 char *kwnames[] = {
6351 (char *) "self",(char *) "weight", NULL
6352 };
6353
6354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6357 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6358 if (PyErr_Occurred()) SWIG_fail;
6359 {
6360 PyThreadState* __tstate = wxPyBeginAllowThreads();
6361 (arg1)->SetWeight((wxFontWeight )arg2);
6362
6363 wxPyEndAllowThreads(__tstate);
6364 if (PyErr_Occurred()) SWIG_fail;
6365 }
6366 Py_INCREF(Py_None); resultobj = Py_None;
6367 return resultobj;
6368 fail:
6369 return NULL;
6370 }
6371
6372
6373 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6374 PyObject *resultobj;
6375 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6376 bool arg2 ;
6377 PyObject * obj0 = 0 ;
6378 PyObject * obj1 = 0 ;
6379 char *kwnames[] = {
6380 (char *) "self",(char *) "underlined", NULL
6381 };
6382
6383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6386 arg2 = (bool) SWIG_AsBool(obj1);
6387 if (PyErr_Occurred()) SWIG_fail;
6388 {
6389 PyThreadState* __tstate = wxPyBeginAllowThreads();
6390 (arg1)->SetUnderlined(arg2);
6391
6392 wxPyEndAllowThreads(__tstate);
6393 if (PyErr_Occurred()) SWIG_fail;
6394 }
6395 Py_INCREF(Py_None); resultobj = Py_None;
6396 return resultobj;
6397 fail:
6398 return NULL;
6399 }
6400
6401
6402 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6403 PyObject *resultobj;
6404 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6405 wxString arg2 ;
6406 PyObject * obj0 = 0 ;
6407 PyObject * obj1 = 0 ;
6408 char *kwnames[] = {
6409 (char *) "self",(char *) "facename", NULL
6410 };
6411
6412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6415 {
6416 wxString* sptr = wxString_in_helper(obj1);
6417 if (sptr == NULL) SWIG_fail;
6418 arg2 = *sptr;
6419 delete sptr;
6420 }
6421 {
6422 PyThreadState* __tstate = wxPyBeginAllowThreads();
6423 (arg1)->SetFaceName(arg2);
6424
6425 wxPyEndAllowThreads(__tstate);
6426 if (PyErr_Occurred()) SWIG_fail;
6427 }
6428 Py_INCREF(Py_None); resultobj = Py_None;
6429 return resultobj;
6430 fail:
6431 return NULL;
6432 }
6433
6434
6435 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6436 PyObject *resultobj;
6437 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6438 int arg2 ;
6439 PyObject * obj0 = 0 ;
6440 PyObject * obj1 = 0 ;
6441 char *kwnames[] = {
6442 (char *) "self",(char *) "family", NULL
6443 };
6444
6445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6448 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
6449 if (PyErr_Occurred()) SWIG_fail;
6450 {
6451 PyThreadState* __tstate = wxPyBeginAllowThreads();
6452 (arg1)->SetFamily((wxFontFamily )arg2);
6453
6454 wxPyEndAllowThreads(__tstate);
6455 if (PyErr_Occurred()) SWIG_fail;
6456 }
6457 Py_INCREF(Py_None); resultobj = Py_None;
6458 return resultobj;
6459 fail:
6460 return NULL;
6461 }
6462
6463
6464 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6465 PyObject *resultobj;
6466 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6467 int arg2 ;
6468 PyObject * obj0 = 0 ;
6469 PyObject * obj1 = 0 ;
6470 char *kwnames[] = {
6471 (char *) "self",(char *) "encoding", NULL
6472 };
6473
6474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6477 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6478 if (PyErr_Occurred()) SWIG_fail;
6479 {
6480 PyThreadState* __tstate = wxPyBeginAllowThreads();
6481 (arg1)->SetEncoding((wxFontEncoding )arg2);
6482
6483 wxPyEndAllowThreads(__tstate);
6484 if (PyErr_Occurred()) SWIG_fail;
6485 }
6486 Py_INCREF(Py_None); resultobj = Py_None;
6487 return resultobj;
6488 fail:
6489 return NULL;
6490 }
6491
6492
6493 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6494 PyObject *resultobj;
6495 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6496 wxString *arg2 = 0 ;
6497 bool result;
6498 bool temp2 = False ;
6499 PyObject * obj0 = 0 ;
6500 PyObject * obj1 = 0 ;
6501 char *kwnames[] = {
6502 (char *) "self",(char *) "s", NULL
6503 };
6504
6505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6508 {
6509 arg2 = wxString_in_helper(obj1);
6510 if (arg2 == NULL) SWIG_fail;
6511 temp2 = True;
6512 }
6513 {
6514 PyThreadState* __tstate = wxPyBeginAllowThreads();
6515 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6516
6517 wxPyEndAllowThreads(__tstate);
6518 if (PyErr_Occurred()) SWIG_fail;
6519 }
6520 {
6521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6522 }
6523 {
6524 if (temp2)
6525 delete arg2;
6526 }
6527 return resultobj;
6528 fail:
6529 {
6530 if (temp2)
6531 delete arg2;
6532 }
6533 return NULL;
6534 }
6535
6536
6537 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6538 PyObject *resultobj;
6539 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6540 wxString result;
6541 PyObject * obj0 = 0 ;
6542 char *kwnames[] = {
6543 (char *) "self", NULL
6544 };
6545
6546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6549 {
6550 PyThreadState* __tstate = wxPyBeginAllowThreads();
6551 result = ((wxNativeFontInfo const *)arg1)->ToString();
6552
6553 wxPyEndAllowThreads(__tstate);
6554 if (PyErr_Occurred()) SWIG_fail;
6555 }
6556 {
6557 #if wxUSE_UNICODE
6558 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6559 #else
6560 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6561 #endif
6562 }
6563 return resultobj;
6564 fail:
6565 return NULL;
6566 }
6567
6568
6569 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6570 PyObject *resultobj;
6571 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6572 wxString result;
6573 PyObject * obj0 = 0 ;
6574 char *kwnames[] = {
6575 (char *) "self", NULL
6576 };
6577
6578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6581 {
6582 PyThreadState* __tstate = wxPyBeginAllowThreads();
6583 result = wxNativeFontInfo___str__(arg1);
6584
6585 wxPyEndAllowThreads(__tstate);
6586 if (PyErr_Occurred()) SWIG_fail;
6587 }
6588 {
6589 #if wxUSE_UNICODE
6590 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6591 #else
6592 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6593 #endif
6594 }
6595 return resultobj;
6596 fail:
6597 return NULL;
6598 }
6599
6600
6601 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6602 PyObject *resultobj;
6603 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6604 wxString *arg2 = 0 ;
6605 bool result;
6606 bool temp2 = False ;
6607 PyObject * obj0 = 0 ;
6608 PyObject * obj1 = 0 ;
6609 char *kwnames[] = {
6610 (char *) "self",(char *) "s", NULL
6611 };
6612
6613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6616 {
6617 arg2 = wxString_in_helper(obj1);
6618 if (arg2 == NULL) SWIG_fail;
6619 temp2 = True;
6620 }
6621 {
6622 PyThreadState* __tstate = wxPyBeginAllowThreads();
6623 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6624
6625 wxPyEndAllowThreads(__tstate);
6626 if (PyErr_Occurred()) SWIG_fail;
6627 }
6628 {
6629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6630 }
6631 {
6632 if (temp2)
6633 delete arg2;
6634 }
6635 return resultobj;
6636 fail:
6637 {
6638 if (temp2)
6639 delete arg2;
6640 }
6641 return NULL;
6642 }
6643
6644
6645 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6646 PyObject *resultobj;
6647 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6648 wxString result;
6649 PyObject * obj0 = 0 ;
6650 char *kwnames[] = {
6651 (char *) "self", NULL
6652 };
6653
6654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6657 {
6658 PyThreadState* __tstate = wxPyBeginAllowThreads();
6659 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6660
6661 wxPyEndAllowThreads(__tstate);
6662 if (PyErr_Occurred()) SWIG_fail;
6663 }
6664 {
6665 #if wxUSE_UNICODE
6666 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6667 #else
6668 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6669 #endif
6670 }
6671 return resultobj;
6672 fail:
6673 return NULL;
6674 }
6675
6676
6677 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6678 PyObject *obj;
6679 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6680 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6681 Py_INCREF(obj);
6682 return Py_BuildValue((char *)"");
6683 }
6684 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6685 PyObject *resultobj;
6686 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6687 wxString *arg2 = (wxString *) 0 ;
6688 bool temp2 = False ;
6689 PyObject * obj0 = 0 ;
6690 PyObject * obj1 = 0 ;
6691 char *kwnames[] = {
6692 (char *) "self",(char *) "facename", NULL
6693 };
6694
6695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6698 {
6699 arg2 = wxString_in_helper(obj1);
6700 if (arg2 == NULL) SWIG_fail;
6701 temp2 = True;
6702 }
6703 if (arg1) (arg1)->facename = *arg2;
6704
6705 Py_INCREF(Py_None); resultobj = Py_None;
6706 {
6707 if (temp2)
6708 delete arg2;
6709 }
6710 return resultobj;
6711 fail:
6712 {
6713 if (temp2)
6714 delete arg2;
6715 }
6716 return NULL;
6717 }
6718
6719
6720 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6721 PyObject *resultobj;
6722 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6723 wxString *result;
6724 PyObject * obj0 = 0 ;
6725 char *kwnames[] = {
6726 (char *) "self", NULL
6727 };
6728
6729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6732 result = (wxString *)& ((arg1)->facename);
6733
6734 {
6735 #if wxUSE_UNICODE
6736 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6737 #else
6738 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6739 #endif
6740 }
6741 return resultobj;
6742 fail:
6743 return NULL;
6744 }
6745
6746
6747 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6748 PyObject *resultobj;
6749 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6750 int arg2 ;
6751 PyObject * obj0 = 0 ;
6752 PyObject * obj1 = 0 ;
6753 char *kwnames[] = {
6754 (char *) "self",(char *) "encoding", NULL
6755 };
6756
6757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6760 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6761 if (PyErr_Occurred()) SWIG_fail;
6762 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6763
6764 Py_INCREF(Py_None); resultobj = Py_None;
6765 return resultobj;
6766 fail:
6767 return NULL;
6768 }
6769
6770
6771 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6772 PyObject *resultobj;
6773 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6774 int result;
6775 PyObject * obj0 = 0 ;
6776 char *kwnames[] = {
6777 (char *) "self", NULL
6778 };
6779
6780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6783 result = (int) ((arg1)->encoding);
6784
6785 resultobj = SWIG_FromInt((int)result);
6786 return resultobj;
6787 fail:
6788 return NULL;
6789 }
6790
6791
6792 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6793 PyObject *resultobj;
6794 wxNativeEncodingInfo *result;
6795 char *kwnames[] = {
6796 NULL
6797 };
6798
6799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6800 {
6801 PyThreadState* __tstate = wxPyBeginAllowThreads();
6802 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6803
6804 wxPyEndAllowThreads(__tstate);
6805 if (PyErr_Occurred()) SWIG_fail;
6806 }
6807 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
6808 return resultobj;
6809 fail:
6810 return NULL;
6811 }
6812
6813
6814 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6815 PyObject *resultobj;
6816 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6817 PyObject * obj0 = 0 ;
6818 char *kwnames[] = {
6819 (char *) "self", NULL
6820 };
6821
6822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6825 {
6826 PyThreadState* __tstate = wxPyBeginAllowThreads();
6827 delete arg1;
6828
6829 wxPyEndAllowThreads(__tstate);
6830 if (PyErr_Occurred()) SWIG_fail;
6831 }
6832 Py_INCREF(Py_None); resultobj = Py_None;
6833 return resultobj;
6834 fail:
6835 return NULL;
6836 }
6837
6838
6839 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6840 PyObject *resultobj;
6841 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6842 wxString *arg2 = 0 ;
6843 bool result;
6844 bool temp2 = False ;
6845 PyObject * obj0 = 0 ;
6846 PyObject * obj1 = 0 ;
6847 char *kwnames[] = {
6848 (char *) "self",(char *) "s", NULL
6849 };
6850
6851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6854 {
6855 arg2 = wxString_in_helper(obj1);
6856 if (arg2 == NULL) SWIG_fail;
6857 temp2 = True;
6858 }
6859 {
6860 PyThreadState* __tstate = wxPyBeginAllowThreads();
6861 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6862
6863 wxPyEndAllowThreads(__tstate);
6864 if (PyErr_Occurred()) SWIG_fail;
6865 }
6866 {
6867 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6868 }
6869 {
6870 if (temp2)
6871 delete arg2;
6872 }
6873 return resultobj;
6874 fail:
6875 {
6876 if (temp2)
6877 delete arg2;
6878 }
6879 return NULL;
6880 }
6881
6882
6883 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6884 PyObject *resultobj;
6885 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6886 wxString result;
6887 PyObject * obj0 = 0 ;
6888 char *kwnames[] = {
6889 (char *) "self", NULL
6890 };
6891
6892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
6893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6895 {
6896 PyThreadState* __tstate = wxPyBeginAllowThreads();
6897 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6898
6899 wxPyEndAllowThreads(__tstate);
6900 if (PyErr_Occurred()) SWIG_fail;
6901 }
6902 {
6903 #if wxUSE_UNICODE
6904 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6905 #else
6906 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6907 #endif
6908 }
6909 return resultobj;
6910 fail:
6911 return NULL;
6912 }
6913
6914
6915 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
6916 PyObject *obj;
6917 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6918 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6919 Py_INCREF(obj);
6920 return Py_BuildValue((char *)"");
6921 }
6922 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6923 PyObject *resultobj;
6924 int arg1 ;
6925 wxNativeEncodingInfo *result;
6926 PyObject * obj0 = 0 ;
6927 char *kwnames[] = {
6928 (char *) "encoding", NULL
6929 };
6930
6931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
6932 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
6933 if (PyErr_Occurred()) SWIG_fail;
6934 {
6935 PyThreadState* __tstate = wxPyBeginAllowThreads();
6936 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
6937
6938 wxPyEndAllowThreads(__tstate);
6939 if (PyErr_Occurred()) SWIG_fail;
6940 }
6941 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
6942 return resultobj;
6943 fail:
6944 return NULL;
6945 }
6946
6947
6948 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6949 PyObject *resultobj;
6950 wxNativeEncodingInfo *arg1 = 0 ;
6951 bool result;
6952 PyObject * obj0 = 0 ;
6953 char *kwnames[] = {
6954 (char *) "info", NULL
6955 };
6956
6957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
6958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6959 SWIG_POINTER_EXCEPTION | 0)) == -1)
6960 SWIG_fail;
6961 if (arg1 == NULL) {
6962 PyErr_SetString(PyExc_TypeError,"null reference");
6963 SWIG_fail;
6964 }
6965 {
6966 PyThreadState* __tstate = wxPyBeginAllowThreads();
6967 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6968
6969 wxPyEndAllowThreads(__tstate);
6970 if (PyErr_Occurred()) SWIG_fail;
6971 }
6972 {
6973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6974 }
6975 return resultobj;
6976 fail:
6977 return NULL;
6978 }
6979
6980
6981 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6982 PyObject *resultobj;
6983 wxFontMapper *result;
6984 char *kwnames[] = {
6985 NULL
6986 };
6987
6988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
6989 {
6990 PyThreadState* __tstate = wxPyBeginAllowThreads();
6991 result = (wxFontMapper *)new wxFontMapper();
6992
6993 wxPyEndAllowThreads(__tstate);
6994 if (PyErr_Occurred()) SWIG_fail;
6995 }
6996 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
6997 return resultobj;
6998 fail:
6999 return NULL;
7000 }
7001
7002
7003 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7004 PyObject *resultobj;
7005 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7006 PyObject * obj0 = 0 ;
7007 char *kwnames[] = {
7008 (char *) "self", NULL
7009 };
7010
7011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7014 {
7015 PyThreadState* __tstate = wxPyBeginAllowThreads();
7016 delete arg1;
7017
7018 wxPyEndAllowThreads(__tstate);
7019 if (PyErr_Occurred()) SWIG_fail;
7020 }
7021 Py_INCREF(Py_None); resultobj = Py_None;
7022 return resultobj;
7023 fail:
7024 return NULL;
7025 }
7026
7027
7028 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
7029 PyObject *resultobj;
7030 wxFontMapper *result;
7031 char *kwnames[] = {
7032 NULL
7033 };
7034
7035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7036 {
7037 PyThreadState* __tstate = wxPyBeginAllowThreads();
7038 result = (wxFontMapper *)wxFontMapper::Get();
7039
7040 wxPyEndAllowThreads(__tstate);
7041 if (PyErr_Occurred()) SWIG_fail;
7042 }
7043 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7044 return resultobj;
7045 fail:
7046 return NULL;
7047 }
7048
7049
7050 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7051 PyObject *resultobj;
7052 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7053 wxFontMapper *result;
7054 PyObject * obj0 = 0 ;
7055 char *kwnames[] = {
7056 (char *) "mapper", NULL
7057 };
7058
7059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7062 {
7063 PyThreadState* __tstate = wxPyBeginAllowThreads();
7064 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7065
7066 wxPyEndAllowThreads(__tstate);
7067 if (PyErr_Occurred()) SWIG_fail;
7068 }
7069 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7070 return resultobj;
7071 fail:
7072 return NULL;
7073 }
7074
7075
7076 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7077 PyObject *resultobj;
7078 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7079 wxString *arg2 = 0 ;
7080 bool arg3 = (bool) True ;
7081 int result;
7082 bool temp2 = False ;
7083 PyObject * obj0 = 0 ;
7084 PyObject * obj1 = 0 ;
7085 PyObject * obj2 = 0 ;
7086 char *kwnames[] = {
7087 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7088 };
7089
7090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7093 {
7094 arg2 = wxString_in_helper(obj1);
7095 if (arg2 == NULL) SWIG_fail;
7096 temp2 = True;
7097 }
7098 if (obj2) {
7099 arg3 = (bool) SWIG_AsBool(obj2);
7100 if (PyErr_Occurred()) SWIG_fail;
7101 }
7102 {
7103 PyThreadState* __tstate = wxPyBeginAllowThreads();
7104 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7105
7106 wxPyEndAllowThreads(__tstate);
7107 if (PyErr_Occurred()) SWIG_fail;
7108 }
7109 resultobj = SWIG_FromInt((int)result);
7110 {
7111 if (temp2)
7112 delete arg2;
7113 }
7114 return resultobj;
7115 fail:
7116 {
7117 if (temp2)
7118 delete arg2;
7119 }
7120 return NULL;
7121 }
7122
7123
7124 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7125 PyObject *resultobj;
7126 size_t result;
7127 char *kwnames[] = {
7128 NULL
7129 };
7130
7131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7132 {
7133 PyThreadState* __tstate = wxPyBeginAllowThreads();
7134 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7135
7136 wxPyEndAllowThreads(__tstate);
7137 if (PyErr_Occurred()) SWIG_fail;
7138 }
7139 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7140 return resultobj;
7141 fail:
7142 return NULL;
7143 }
7144
7145
7146 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7147 PyObject *resultobj;
7148 size_t arg1 ;
7149 int result;
7150 PyObject * obj0 = 0 ;
7151 char *kwnames[] = {
7152 (char *) "n", NULL
7153 };
7154
7155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7156 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7157 if (PyErr_Occurred()) SWIG_fail;
7158 {
7159 PyThreadState* __tstate = wxPyBeginAllowThreads();
7160 result = (int)wxFontMapper::GetEncoding(arg1);
7161
7162 wxPyEndAllowThreads(__tstate);
7163 if (PyErr_Occurred()) SWIG_fail;
7164 }
7165 resultobj = SWIG_FromInt((int)result);
7166 return resultobj;
7167 fail:
7168 return NULL;
7169 }
7170
7171
7172 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7173 PyObject *resultobj;
7174 int arg1 ;
7175 wxString result;
7176 PyObject * obj0 = 0 ;
7177 char *kwnames[] = {
7178 (char *) "encoding", NULL
7179 };
7180
7181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7182 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7183 if (PyErr_Occurred()) SWIG_fail;
7184 {
7185 PyThreadState* __tstate = wxPyBeginAllowThreads();
7186 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7187
7188 wxPyEndAllowThreads(__tstate);
7189 if (PyErr_Occurred()) SWIG_fail;
7190 }
7191 {
7192 #if wxUSE_UNICODE
7193 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7194 #else
7195 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7196 #endif
7197 }
7198 return resultobj;
7199 fail:
7200 return NULL;
7201 }
7202
7203
7204 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7205 PyObject *resultobj;
7206 int arg1 ;
7207 wxString result;
7208 PyObject * obj0 = 0 ;
7209 char *kwnames[] = {
7210 (char *) "encoding", NULL
7211 };
7212
7213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7214 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7215 if (PyErr_Occurred()) SWIG_fail;
7216 {
7217 PyThreadState* __tstate = wxPyBeginAllowThreads();
7218 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7219
7220 wxPyEndAllowThreads(__tstate);
7221 if (PyErr_Occurred()) SWIG_fail;
7222 }
7223 {
7224 #if wxUSE_UNICODE
7225 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7226 #else
7227 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7228 #endif
7229 }
7230 return resultobj;
7231 fail:
7232 return NULL;
7233 }
7234
7235
7236 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7237 PyObject *resultobj;
7238 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7239 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7240 PyObject * obj0 = 0 ;
7241 PyObject * obj1 = 0 ;
7242 char *kwnames[] = {
7243 (char *) "self",(char *) "config", NULL
7244 };
7245
7246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7249 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7251 {
7252 PyThreadState* __tstate = wxPyBeginAllowThreads();
7253 (arg1)->SetConfig(arg2);
7254
7255 wxPyEndAllowThreads(__tstate);
7256 if (PyErr_Occurred()) SWIG_fail;
7257 }
7258 Py_INCREF(Py_None); resultobj = Py_None;
7259 return resultobj;
7260 fail:
7261 return NULL;
7262 }
7263
7264
7265 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7266 PyObject *resultobj;
7267 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7268 wxString *arg2 = 0 ;
7269 bool temp2 = False ;
7270 PyObject * obj0 = 0 ;
7271 PyObject * obj1 = 0 ;
7272 char *kwnames[] = {
7273 (char *) "self",(char *) "prefix", NULL
7274 };
7275
7276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7279 {
7280 arg2 = wxString_in_helper(obj1);
7281 if (arg2 == NULL) SWIG_fail;
7282 temp2 = True;
7283 }
7284 {
7285 PyThreadState* __tstate = wxPyBeginAllowThreads();
7286 (arg1)->SetConfigPath((wxString const &)*arg2);
7287
7288 wxPyEndAllowThreads(__tstate);
7289 if (PyErr_Occurred()) SWIG_fail;
7290 }
7291 Py_INCREF(Py_None); resultobj = Py_None;
7292 {
7293 if (temp2)
7294 delete arg2;
7295 }
7296 return resultobj;
7297 fail:
7298 {
7299 if (temp2)
7300 delete arg2;
7301 }
7302 return NULL;
7303 }
7304
7305
7306 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7307 PyObject *resultobj;
7308 wxString result;
7309 char *kwnames[] = {
7310 NULL
7311 };
7312
7313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7314 {
7315 PyThreadState* __tstate = wxPyBeginAllowThreads();
7316 result = wxFontMapper::GetDefaultConfigPath();
7317
7318 wxPyEndAllowThreads(__tstate);
7319 if (PyErr_Occurred()) SWIG_fail;
7320 }
7321 {
7322 #if wxUSE_UNICODE
7323 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7324 #else
7325 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7326 #endif
7327 }
7328 return resultobj;
7329 fail:
7330 return NULL;
7331 }
7332
7333
7334 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7335 PyObject *resultobj;
7336 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7337 int arg2 ;
7338 wxString const &arg3_defvalue = wxPyEmptyString ;
7339 wxString *arg3 = (wxString *) &arg3_defvalue ;
7340 bool arg4 = (bool) True ;
7341 PyObject *result;
7342 bool temp3 = False ;
7343 PyObject * obj0 = 0 ;
7344 PyObject * obj1 = 0 ;
7345 PyObject * obj2 = 0 ;
7346 PyObject * obj3 = 0 ;
7347 char *kwnames[] = {
7348 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7349 };
7350
7351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7354 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7355 if (PyErr_Occurred()) SWIG_fail;
7356 if (obj2) {
7357 {
7358 arg3 = wxString_in_helper(obj2);
7359 if (arg3 == NULL) SWIG_fail;
7360 temp3 = True;
7361 }
7362 }
7363 if (obj3) {
7364 arg4 = (bool) SWIG_AsBool(obj3);
7365 if (PyErr_Occurred()) SWIG_fail;
7366 }
7367 {
7368 PyThreadState* __tstate = wxPyBeginAllowThreads();
7369 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7370
7371 wxPyEndAllowThreads(__tstate);
7372 if (PyErr_Occurred()) SWIG_fail;
7373 }
7374 resultobj = result;
7375 {
7376 if (temp3)
7377 delete arg3;
7378 }
7379 return resultobj;
7380 fail:
7381 {
7382 if (temp3)
7383 delete arg3;
7384 }
7385 return NULL;
7386 }
7387
7388
7389 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7390 PyObject *resultobj;
7391 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7392 int arg2 ;
7393 wxString const &arg3_defvalue = wxPyEmptyString ;
7394 wxString *arg3 = (wxString *) &arg3_defvalue ;
7395 bool result;
7396 bool temp3 = False ;
7397 PyObject * obj0 = 0 ;
7398 PyObject * obj1 = 0 ;
7399 PyObject * obj2 = 0 ;
7400 char *kwnames[] = {
7401 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7402 };
7403
7404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7407 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7408 if (PyErr_Occurred()) SWIG_fail;
7409 if (obj2) {
7410 {
7411 arg3 = wxString_in_helper(obj2);
7412 if (arg3 == NULL) SWIG_fail;
7413 temp3 = True;
7414 }
7415 }
7416 {
7417 PyThreadState* __tstate = wxPyBeginAllowThreads();
7418 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7419
7420 wxPyEndAllowThreads(__tstate);
7421 if (PyErr_Occurred()) SWIG_fail;
7422 }
7423 {
7424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7425 }
7426 {
7427 if (temp3)
7428 delete arg3;
7429 }
7430 return resultobj;
7431 fail:
7432 {
7433 if (temp3)
7434 delete arg3;
7435 }
7436 return NULL;
7437 }
7438
7439
7440 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7441 PyObject *resultobj;
7442 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7443 wxWindow *arg2 = (wxWindow *) 0 ;
7444 PyObject * obj0 = 0 ;
7445 PyObject * obj1 = 0 ;
7446 char *kwnames[] = {
7447 (char *) "self",(char *) "parent", NULL
7448 };
7449
7450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7453 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7455 {
7456 PyThreadState* __tstate = wxPyBeginAllowThreads();
7457 (arg1)->SetDialogParent(arg2);
7458
7459 wxPyEndAllowThreads(__tstate);
7460 if (PyErr_Occurred()) SWIG_fail;
7461 }
7462 Py_INCREF(Py_None); resultobj = Py_None;
7463 return resultobj;
7464 fail:
7465 return NULL;
7466 }
7467
7468
7469 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7470 PyObject *resultobj;
7471 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7472 wxString *arg2 = 0 ;
7473 bool temp2 = False ;
7474 PyObject * obj0 = 0 ;
7475 PyObject * obj1 = 0 ;
7476 char *kwnames[] = {
7477 (char *) "self",(char *) "title", NULL
7478 };
7479
7480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7483 {
7484 arg2 = wxString_in_helper(obj1);
7485 if (arg2 == NULL) SWIG_fail;
7486 temp2 = True;
7487 }
7488 {
7489 PyThreadState* __tstate = wxPyBeginAllowThreads();
7490 (arg1)->SetDialogTitle((wxString const &)*arg2);
7491
7492 wxPyEndAllowThreads(__tstate);
7493 if (PyErr_Occurred()) SWIG_fail;
7494 }
7495 Py_INCREF(Py_None); resultobj = Py_None;
7496 {
7497 if (temp2)
7498 delete arg2;
7499 }
7500 return resultobj;
7501 fail:
7502 {
7503 if (temp2)
7504 delete arg2;
7505 }
7506 return NULL;
7507 }
7508
7509
7510 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7511 PyObject *obj;
7512 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7513 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7514 Py_INCREF(obj);
7515 return Py_BuildValue((char *)"");
7516 }
7517 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7518 PyObject *resultobj;
7519 int arg1 ;
7520 int arg2 ;
7521 int arg3 ;
7522 int arg4 ;
7523 bool arg5 = (bool) False ;
7524 wxString const &arg6_defvalue = wxPyEmptyString ;
7525 wxString *arg6 = (wxString *) &arg6_defvalue ;
7526 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7527 wxFont *result;
7528 bool temp6 = False ;
7529 PyObject * obj0 = 0 ;
7530 PyObject * obj1 = 0 ;
7531 PyObject * obj2 = 0 ;
7532 PyObject * obj3 = 0 ;
7533 PyObject * obj4 = 0 ;
7534 PyObject * obj5 = 0 ;
7535 PyObject * obj6 = 0 ;
7536 char *kwnames[] = {
7537 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7538 };
7539
7540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7541 arg1 = (int) SWIG_AsInt(obj0);
7542 if (PyErr_Occurred()) SWIG_fail;
7543 arg2 = (int) SWIG_AsInt(obj1);
7544 if (PyErr_Occurred()) SWIG_fail;
7545 arg3 = (int) SWIG_AsInt(obj2);
7546 if (PyErr_Occurred()) SWIG_fail;
7547 arg4 = (int) SWIG_AsInt(obj3);
7548 if (PyErr_Occurred()) SWIG_fail;
7549 if (obj4) {
7550 arg5 = (bool) SWIG_AsBool(obj4);
7551 if (PyErr_Occurred()) SWIG_fail;
7552 }
7553 if (obj5) {
7554 {
7555 arg6 = wxString_in_helper(obj5);
7556 if (arg6 == NULL) SWIG_fail;
7557 temp6 = True;
7558 }
7559 }
7560 if (obj6) {
7561 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
7562 if (PyErr_Occurred()) SWIG_fail;
7563 }
7564 {
7565 PyThreadState* __tstate = wxPyBeginAllowThreads();
7566 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7567
7568 wxPyEndAllowThreads(__tstate);
7569 if (PyErr_Occurred()) SWIG_fail;
7570 }
7571 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7572 {
7573 if (temp6)
7574 delete arg6;
7575 }
7576 return resultobj;
7577 fail:
7578 {
7579 if (temp6)
7580 delete arg6;
7581 }
7582 return NULL;
7583 }
7584
7585
7586 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7587 PyObject *resultobj;
7588 wxFont *arg1 = (wxFont *) 0 ;
7589 PyObject * obj0 = 0 ;
7590 char *kwnames[] = {
7591 (char *) "self", NULL
7592 };
7593
7594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7597 {
7598 PyThreadState* __tstate = wxPyBeginAllowThreads();
7599 delete arg1;
7600
7601 wxPyEndAllowThreads(__tstate);
7602 if (PyErr_Occurred()) SWIG_fail;
7603 }
7604 Py_INCREF(Py_None); resultobj = Py_None;
7605 return resultobj;
7606 fail:
7607 return NULL;
7608 }
7609
7610
7611 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7612 PyObject *resultobj;
7613 wxNativeFontInfo *arg1 = 0 ;
7614 wxFont *result;
7615 PyObject * obj0 = 0 ;
7616 char *kwnames[] = {
7617 (char *) "info", NULL
7618 };
7619
7620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7622 SWIG_POINTER_EXCEPTION | 0)) == -1)
7623 SWIG_fail;
7624 if (arg1 == NULL) {
7625 PyErr_SetString(PyExc_TypeError,"null reference");
7626 SWIG_fail;
7627 }
7628 {
7629 PyThreadState* __tstate = wxPyBeginAllowThreads();
7630 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7631
7632 wxPyEndAllowThreads(__tstate);
7633 if (PyErr_Occurred()) SWIG_fail;
7634 }
7635 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7636 return resultobj;
7637 fail:
7638 return NULL;
7639 }
7640
7641
7642 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7643 PyObject *resultobj;
7644 wxString *arg1 = 0 ;
7645 wxFont *result;
7646 bool temp1 = False ;
7647 PyObject * obj0 = 0 ;
7648 char *kwnames[] = {
7649 (char *) "info", NULL
7650 };
7651
7652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7653 {
7654 arg1 = wxString_in_helper(obj0);
7655 if (arg1 == NULL) SWIG_fail;
7656 temp1 = True;
7657 }
7658 {
7659 PyThreadState* __tstate = wxPyBeginAllowThreads();
7660 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7661
7662 wxPyEndAllowThreads(__tstate);
7663 if (PyErr_Occurred()) SWIG_fail;
7664 }
7665 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7666 {
7667 if (temp1)
7668 delete arg1;
7669 }
7670 return resultobj;
7671 fail:
7672 {
7673 if (temp1)
7674 delete arg1;
7675 }
7676 return NULL;
7677 }
7678
7679
7680 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7681 PyObject *resultobj;
7682 int arg1 ;
7683 int arg2 ;
7684 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7685 wxString const &arg4_defvalue = wxPyEmptyString ;
7686 wxString *arg4 = (wxString *) &arg4_defvalue ;
7687 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7688 wxFont *result;
7689 bool temp4 = False ;
7690 PyObject * obj0 = 0 ;
7691 PyObject * obj1 = 0 ;
7692 PyObject * obj2 = 0 ;
7693 PyObject * obj3 = 0 ;
7694 PyObject * obj4 = 0 ;
7695 char *kwnames[] = {
7696 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7697 };
7698
7699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7700 arg1 = (int) SWIG_AsInt(obj0);
7701 if (PyErr_Occurred()) SWIG_fail;
7702 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
7703 if (PyErr_Occurred()) SWIG_fail;
7704 if (obj2) {
7705 arg3 = (int) SWIG_AsInt(obj2);
7706 if (PyErr_Occurred()) SWIG_fail;
7707 }
7708 if (obj3) {
7709 {
7710 arg4 = wxString_in_helper(obj3);
7711 if (arg4 == NULL) SWIG_fail;
7712 temp4 = True;
7713 }
7714 }
7715 if (obj4) {
7716 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
7717 if (PyErr_Occurred()) SWIG_fail;
7718 }
7719 {
7720 PyThreadState* __tstate = wxPyBeginAllowThreads();
7721 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7722
7723 wxPyEndAllowThreads(__tstate);
7724 if (PyErr_Occurred()) SWIG_fail;
7725 }
7726 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7727 {
7728 if (temp4)
7729 delete arg4;
7730 }
7731 return resultobj;
7732 fail:
7733 {
7734 if (temp4)
7735 delete arg4;
7736 }
7737 return NULL;
7738 }
7739
7740
7741 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7742 PyObject *resultobj;
7743 wxFont *arg1 = (wxFont *) 0 ;
7744 bool result;
7745 PyObject * obj0 = 0 ;
7746 char *kwnames[] = {
7747 (char *) "self", NULL
7748 };
7749
7750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7753 {
7754 PyThreadState* __tstate = wxPyBeginAllowThreads();
7755 result = (bool)((wxFont const *)arg1)->Ok();
7756
7757 wxPyEndAllowThreads(__tstate);
7758 if (PyErr_Occurred()) SWIG_fail;
7759 }
7760 {
7761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7762 }
7763 return resultobj;
7764 fail:
7765 return NULL;
7766 }
7767
7768
7769 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7770 PyObject *resultobj;
7771 wxFont *arg1 = (wxFont *) 0 ;
7772 wxFont *arg2 = (wxFont *) 0 ;
7773 bool result;
7774 PyObject * obj0 = 0 ;
7775 PyObject * obj1 = 0 ;
7776 char *kwnames[] = {
7777 (char *) "self",(char *) "other", NULL
7778 };
7779
7780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7783 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7785 {
7786 PyThreadState* __tstate = wxPyBeginAllowThreads();
7787 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
7788
7789 wxPyEndAllowThreads(__tstate);
7790 if (PyErr_Occurred()) SWIG_fail;
7791 }
7792 {
7793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7794 }
7795 return resultobj;
7796 fail:
7797 return NULL;
7798 }
7799
7800
7801 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7802 PyObject *resultobj;
7803 wxFont *arg1 = (wxFont *) 0 ;
7804 wxFont *arg2 = (wxFont *) 0 ;
7805 bool result;
7806 PyObject * obj0 = 0 ;
7807 PyObject * obj1 = 0 ;
7808 char *kwnames[] = {
7809 (char *) "self",(char *) "other", NULL
7810 };
7811
7812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7815 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7817 {
7818 PyThreadState* __tstate = wxPyBeginAllowThreads();
7819 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
7820
7821 wxPyEndAllowThreads(__tstate);
7822 if (PyErr_Occurred()) SWIG_fail;
7823 }
7824 {
7825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7826 }
7827 return resultobj;
7828 fail:
7829 return NULL;
7830 }
7831
7832
7833 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7834 PyObject *resultobj;
7835 wxFont *arg1 = (wxFont *) 0 ;
7836 int result;
7837 PyObject * obj0 = 0 ;
7838 char *kwnames[] = {
7839 (char *) "self", NULL
7840 };
7841
7842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7845 {
7846 PyThreadState* __tstate = wxPyBeginAllowThreads();
7847 result = (int)((wxFont const *)arg1)->GetPointSize();
7848
7849 wxPyEndAllowThreads(__tstate);
7850 if (PyErr_Occurred()) SWIG_fail;
7851 }
7852 resultobj = SWIG_FromInt((int)result);
7853 return resultobj;
7854 fail:
7855 return NULL;
7856 }
7857
7858
7859 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7860 PyObject *resultobj;
7861 wxFont *arg1 = (wxFont *) 0 ;
7862 int result;
7863 PyObject * obj0 = 0 ;
7864 char *kwnames[] = {
7865 (char *) "self", NULL
7866 };
7867
7868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
7869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7871 {
7872 PyThreadState* __tstate = wxPyBeginAllowThreads();
7873 result = (int)((wxFont const *)arg1)->GetFamily();
7874
7875 wxPyEndAllowThreads(__tstate);
7876 if (PyErr_Occurred()) SWIG_fail;
7877 }
7878 resultobj = SWIG_FromInt((int)result);
7879 return resultobj;
7880 fail:
7881 return NULL;
7882 }
7883
7884
7885 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7886 PyObject *resultobj;
7887 wxFont *arg1 = (wxFont *) 0 ;
7888 int result;
7889 PyObject * obj0 = 0 ;
7890 char *kwnames[] = {
7891 (char *) "self", NULL
7892 };
7893
7894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
7895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7897 {
7898 PyThreadState* __tstate = wxPyBeginAllowThreads();
7899 result = (int)((wxFont const *)arg1)->GetStyle();
7900
7901 wxPyEndAllowThreads(__tstate);
7902 if (PyErr_Occurred()) SWIG_fail;
7903 }
7904 resultobj = SWIG_FromInt((int)result);
7905 return resultobj;
7906 fail:
7907 return NULL;
7908 }
7909
7910
7911 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7912 PyObject *resultobj;
7913 wxFont *arg1 = (wxFont *) 0 ;
7914 int result;
7915 PyObject * obj0 = 0 ;
7916 char *kwnames[] = {
7917 (char *) "self", NULL
7918 };
7919
7920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
7921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7923 {
7924 PyThreadState* __tstate = wxPyBeginAllowThreads();
7925 result = (int)((wxFont const *)arg1)->GetWeight();
7926
7927 wxPyEndAllowThreads(__tstate);
7928 if (PyErr_Occurred()) SWIG_fail;
7929 }
7930 resultobj = SWIG_FromInt((int)result);
7931 return resultobj;
7932 fail:
7933 return NULL;
7934 }
7935
7936
7937 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7938 PyObject *resultobj;
7939 wxFont *arg1 = (wxFont *) 0 ;
7940 bool result;
7941 PyObject * obj0 = 0 ;
7942 char *kwnames[] = {
7943 (char *) "self", NULL
7944 };
7945
7946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
7947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7949 {
7950 PyThreadState* __tstate = wxPyBeginAllowThreads();
7951 result = (bool)((wxFont const *)arg1)->GetUnderlined();
7952
7953 wxPyEndAllowThreads(__tstate);
7954 if (PyErr_Occurred()) SWIG_fail;
7955 }
7956 {
7957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7958 }
7959 return resultobj;
7960 fail:
7961 return NULL;
7962 }
7963
7964
7965 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7966 PyObject *resultobj;
7967 wxFont *arg1 = (wxFont *) 0 ;
7968 wxString result;
7969 PyObject * obj0 = 0 ;
7970 char *kwnames[] = {
7971 (char *) "self", NULL
7972 };
7973
7974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
7975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7977 {
7978 PyThreadState* __tstate = wxPyBeginAllowThreads();
7979 result = ((wxFont const *)arg1)->GetFaceName();
7980
7981 wxPyEndAllowThreads(__tstate);
7982 if (PyErr_Occurred()) SWIG_fail;
7983 }
7984 {
7985 #if wxUSE_UNICODE
7986 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7987 #else
7988 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7989 #endif
7990 }
7991 return resultobj;
7992 fail:
7993 return NULL;
7994 }
7995
7996
7997 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7998 PyObject *resultobj;
7999 wxFont *arg1 = (wxFont *) 0 ;
8000 int result;
8001 PyObject * obj0 = 0 ;
8002 char *kwnames[] = {
8003 (char *) "self", NULL
8004 };
8005
8006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8009 {
8010 PyThreadState* __tstate = wxPyBeginAllowThreads();
8011 result = (int)((wxFont const *)arg1)->GetEncoding();
8012
8013 wxPyEndAllowThreads(__tstate);
8014 if (PyErr_Occurred()) SWIG_fail;
8015 }
8016 resultobj = SWIG_FromInt((int)result);
8017 return resultobj;
8018 fail:
8019 return NULL;
8020 }
8021
8022
8023 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8024 PyObject *resultobj;
8025 wxFont *arg1 = (wxFont *) 0 ;
8026 wxNativeFontInfo *result;
8027 PyObject * obj0 = 0 ;
8028 char *kwnames[] = {
8029 (char *) "self", NULL
8030 };
8031
8032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8035 {
8036 PyThreadState* __tstate = wxPyBeginAllowThreads();
8037 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8038
8039 wxPyEndAllowThreads(__tstate);
8040 if (PyErr_Occurred()) SWIG_fail;
8041 }
8042 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8043 return resultobj;
8044 fail:
8045 return NULL;
8046 }
8047
8048
8049 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8050 PyObject *resultobj;
8051 wxFont *arg1 = (wxFont *) 0 ;
8052 bool result;
8053 PyObject * obj0 = 0 ;
8054 char *kwnames[] = {
8055 (char *) "self", NULL
8056 };
8057
8058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8061 {
8062 PyThreadState* __tstate = wxPyBeginAllowThreads();
8063 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8064
8065 wxPyEndAllowThreads(__tstate);
8066 if (PyErr_Occurred()) SWIG_fail;
8067 }
8068 {
8069 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8070 }
8071 return resultobj;
8072 fail:
8073 return NULL;
8074 }
8075
8076
8077 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8078 PyObject *resultobj;
8079 wxFont *arg1 = (wxFont *) 0 ;
8080 wxString result;
8081 PyObject * obj0 = 0 ;
8082 char *kwnames[] = {
8083 (char *) "self", NULL
8084 };
8085
8086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8089 {
8090 PyThreadState* __tstate = wxPyBeginAllowThreads();
8091 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8092
8093 wxPyEndAllowThreads(__tstate);
8094 if (PyErr_Occurred()) SWIG_fail;
8095 }
8096 {
8097 #if wxUSE_UNICODE
8098 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8099 #else
8100 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8101 #endif
8102 }
8103 return resultobj;
8104 fail:
8105 return NULL;
8106 }
8107
8108
8109 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8110 PyObject *resultobj;
8111 wxFont *arg1 = (wxFont *) 0 ;
8112 wxString result;
8113 PyObject * obj0 = 0 ;
8114 char *kwnames[] = {
8115 (char *) "self", NULL
8116 };
8117
8118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8121 {
8122 PyThreadState* __tstate = wxPyBeginAllowThreads();
8123 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8124
8125 wxPyEndAllowThreads(__tstate);
8126 if (PyErr_Occurred()) SWIG_fail;
8127 }
8128 {
8129 #if wxUSE_UNICODE
8130 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8131 #else
8132 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8133 #endif
8134 }
8135 return resultobj;
8136 fail:
8137 return NULL;
8138 }
8139
8140
8141 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8142 PyObject *resultobj;
8143 wxFont *arg1 = (wxFont *) 0 ;
8144 int arg2 ;
8145 PyObject * obj0 = 0 ;
8146 PyObject * obj1 = 0 ;
8147 char *kwnames[] = {
8148 (char *) "self",(char *) "pointSize", NULL
8149 };
8150
8151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8154 arg2 = (int) SWIG_AsInt(obj1);
8155 if (PyErr_Occurred()) SWIG_fail;
8156 {
8157 PyThreadState* __tstate = wxPyBeginAllowThreads();
8158 (arg1)->SetPointSize(arg2);
8159
8160 wxPyEndAllowThreads(__tstate);
8161 if (PyErr_Occurred()) SWIG_fail;
8162 }
8163 Py_INCREF(Py_None); resultobj = Py_None;
8164 return resultobj;
8165 fail:
8166 return NULL;
8167 }
8168
8169
8170 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8171 PyObject *resultobj;
8172 wxFont *arg1 = (wxFont *) 0 ;
8173 int arg2 ;
8174 PyObject * obj0 = 0 ;
8175 PyObject * obj1 = 0 ;
8176 char *kwnames[] = {
8177 (char *) "self",(char *) "family", NULL
8178 };
8179
8180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8183 arg2 = (int) SWIG_AsInt(obj1);
8184 if (PyErr_Occurred()) SWIG_fail;
8185 {
8186 PyThreadState* __tstate = wxPyBeginAllowThreads();
8187 (arg1)->SetFamily(arg2);
8188
8189 wxPyEndAllowThreads(__tstate);
8190 if (PyErr_Occurred()) SWIG_fail;
8191 }
8192 Py_INCREF(Py_None); resultobj = Py_None;
8193 return resultobj;
8194 fail:
8195 return NULL;
8196 }
8197
8198
8199 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8200 PyObject *resultobj;
8201 wxFont *arg1 = (wxFont *) 0 ;
8202 int arg2 ;
8203 PyObject * obj0 = 0 ;
8204 PyObject * obj1 = 0 ;
8205 char *kwnames[] = {
8206 (char *) "self",(char *) "style", NULL
8207 };
8208
8209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8212 arg2 = (int) SWIG_AsInt(obj1);
8213 if (PyErr_Occurred()) SWIG_fail;
8214 {
8215 PyThreadState* __tstate = wxPyBeginAllowThreads();
8216 (arg1)->SetStyle(arg2);
8217
8218 wxPyEndAllowThreads(__tstate);
8219 if (PyErr_Occurred()) SWIG_fail;
8220 }
8221 Py_INCREF(Py_None); resultobj = Py_None;
8222 return resultobj;
8223 fail:
8224 return NULL;
8225 }
8226
8227
8228 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8229 PyObject *resultobj;
8230 wxFont *arg1 = (wxFont *) 0 ;
8231 int arg2 ;
8232 PyObject * obj0 = 0 ;
8233 PyObject * obj1 = 0 ;
8234 char *kwnames[] = {
8235 (char *) "self",(char *) "weight", NULL
8236 };
8237
8238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8241 arg2 = (int) SWIG_AsInt(obj1);
8242 if (PyErr_Occurred()) SWIG_fail;
8243 {
8244 PyThreadState* __tstate = wxPyBeginAllowThreads();
8245 (arg1)->SetWeight(arg2);
8246
8247 wxPyEndAllowThreads(__tstate);
8248 if (PyErr_Occurred()) SWIG_fail;
8249 }
8250 Py_INCREF(Py_None); resultobj = Py_None;
8251 return resultobj;
8252 fail:
8253 return NULL;
8254 }
8255
8256
8257 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8258 PyObject *resultobj;
8259 wxFont *arg1 = (wxFont *) 0 ;
8260 wxString *arg2 = 0 ;
8261 bool temp2 = False ;
8262 PyObject * obj0 = 0 ;
8263 PyObject * obj1 = 0 ;
8264 char *kwnames[] = {
8265 (char *) "self",(char *) "faceName", NULL
8266 };
8267
8268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8271 {
8272 arg2 = wxString_in_helper(obj1);
8273 if (arg2 == NULL) SWIG_fail;
8274 temp2 = True;
8275 }
8276 {
8277 PyThreadState* __tstate = wxPyBeginAllowThreads();
8278 (arg1)->SetFaceName((wxString const &)*arg2);
8279
8280 wxPyEndAllowThreads(__tstate);
8281 if (PyErr_Occurred()) SWIG_fail;
8282 }
8283 Py_INCREF(Py_None); resultobj = Py_None;
8284 {
8285 if (temp2)
8286 delete arg2;
8287 }
8288 return resultobj;
8289 fail:
8290 {
8291 if (temp2)
8292 delete arg2;
8293 }
8294 return NULL;
8295 }
8296
8297
8298 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8299 PyObject *resultobj;
8300 wxFont *arg1 = (wxFont *) 0 ;
8301 bool arg2 ;
8302 PyObject * obj0 = 0 ;
8303 PyObject * obj1 = 0 ;
8304 char *kwnames[] = {
8305 (char *) "self",(char *) "underlined", NULL
8306 };
8307
8308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8311 arg2 = (bool) SWIG_AsBool(obj1);
8312 if (PyErr_Occurred()) SWIG_fail;
8313 {
8314 PyThreadState* __tstate = wxPyBeginAllowThreads();
8315 (arg1)->SetUnderlined(arg2);
8316
8317 wxPyEndAllowThreads(__tstate);
8318 if (PyErr_Occurred()) SWIG_fail;
8319 }
8320 Py_INCREF(Py_None); resultobj = Py_None;
8321 return resultobj;
8322 fail:
8323 return NULL;
8324 }
8325
8326
8327 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8328 PyObject *resultobj;
8329 wxFont *arg1 = (wxFont *) 0 ;
8330 int arg2 ;
8331 PyObject * obj0 = 0 ;
8332 PyObject * obj1 = 0 ;
8333 char *kwnames[] = {
8334 (char *) "self",(char *) "encoding", NULL
8335 };
8336
8337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8340 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8341 if (PyErr_Occurred()) SWIG_fail;
8342 {
8343 PyThreadState* __tstate = wxPyBeginAllowThreads();
8344 (arg1)->SetEncoding((wxFontEncoding )arg2);
8345
8346 wxPyEndAllowThreads(__tstate);
8347 if (PyErr_Occurred()) SWIG_fail;
8348 }
8349 Py_INCREF(Py_None); resultobj = Py_None;
8350 return resultobj;
8351 fail:
8352 return NULL;
8353 }
8354
8355
8356 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8357 PyObject *resultobj;
8358 wxFont *arg1 = (wxFont *) 0 ;
8359 wxNativeFontInfo *arg2 = 0 ;
8360 PyObject * obj0 = 0 ;
8361 PyObject * obj1 = 0 ;
8362 char *kwnames[] = {
8363 (char *) "self",(char *) "info", NULL
8364 };
8365
8366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8369 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8370 SWIG_POINTER_EXCEPTION | 0)) == -1)
8371 SWIG_fail;
8372 if (arg2 == NULL) {
8373 PyErr_SetString(PyExc_TypeError,"null reference");
8374 SWIG_fail;
8375 }
8376 {
8377 PyThreadState* __tstate = wxPyBeginAllowThreads();
8378 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8379
8380 wxPyEndAllowThreads(__tstate);
8381 if (PyErr_Occurred()) SWIG_fail;
8382 }
8383 Py_INCREF(Py_None); resultobj = Py_None;
8384 return resultobj;
8385 fail:
8386 return NULL;
8387 }
8388
8389
8390 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8391 PyObject *resultobj;
8392 wxFont *arg1 = (wxFont *) 0 ;
8393 wxString *arg2 = 0 ;
8394 bool temp2 = False ;
8395 PyObject * obj0 = 0 ;
8396 PyObject * obj1 = 0 ;
8397 char *kwnames[] = {
8398 (char *) "self",(char *) "info", NULL
8399 };
8400
8401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8404 {
8405 arg2 = wxString_in_helper(obj1);
8406 if (arg2 == NULL) SWIG_fail;
8407 temp2 = True;
8408 }
8409 {
8410 PyThreadState* __tstate = wxPyBeginAllowThreads();
8411 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8412
8413 wxPyEndAllowThreads(__tstate);
8414 if (PyErr_Occurred()) SWIG_fail;
8415 }
8416 Py_INCREF(Py_None); resultobj = Py_None;
8417 {
8418 if (temp2)
8419 delete arg2;
8420 }
8421 return resultobj;
8422 fail:
8423 {
8424 if (temp2)
8425 delete arg2;
8426 }
8427 return NULL;
8428 }
8429
8430
8431 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8432 PyObject *resultobj;
8433 wxFont *arg1 = (wxFont *) 0 ;
8434 wxString *arg2 = 0 ;
8435 bool temp2 = False ;
8436 PyObject * obj0 = 0 ;
8437 PyObject * obj1 = 0 ;
8438 char *kwnames[] = {
8439 (char *) "self",(char *) "info", NULL
8440 };
8441
8442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8445 {
8446 arg2 = wxString_in_helper(obj1);
8447 if (arg2 == NULL) SWIG_fail;
8448 temp2 = True;
8449 }
8450 {
8451 PyThreadState* __tstate = wxPyBeginAllowThreads();
8452 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8453
8454 wxPyEndAllowThreads(__tstate);
8455 if (PyErr_Occurred()) SWIG_fail;
8456 }
8457 Py_INCREF(Py_None); resultobj = Py_None;
8458 {
8459 if (temp2)
8460 delete arg2;
8461 }
8462 return resultobj;
8463 fail:
8464 {
8465 if (temp2)
8466 delete arg2;
8467 }
8468 return NULL;
8469 }
8470
8471
8472 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8473 PyObject *resultobj;
8474 wxFont *arg1 = (wxFont *) 0 ;
8475 wxString result;
8476 PyObject * obj0 = 0 ;
8477 char *kwnames[] = {
8478 (char *) "self", NULL
8479 };
8480
8481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8484 {
8485 PyThreadState* __tstate = wxPyBeginAllowThreads();
8486 result = ((wxFont const *)arg1)->GetFamilyString();
8487
8488 wxPyEndAllowThreads(__tstate);
8489 if (PyErr_Occurred()) SWIG_fail;
8490 }
8491 {
8492 #if wxUSE_UNICODE
8493 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8494 #else
8495 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8496 #endif
8497 }
8498 return resultobj;
8499 fail:
8500 return NULL;
8501 }
8502
8503
8504 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8505 PyObject *resultobj;
8506 wxFont *arg1 = (wxFont *) 0 ;
8507 wxString result;
8508 PyObject * obj0 = 0 ;
8509 char *kwnames[] = {
8510 (char *) "self", NULL
8511 };
8512
8513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8516 {
8517 PyThreadState* __tstate = wxPyBeginAllowThreads();
8518 result = ((wxFont const *)arg1)->GetStyleString();
8519
8520 wxPyEndAllowThreads(__tstate);
8521 if (PyErr_Occurred()) SWIG_fail;
8522 }
8523 {
8524 #if wxUSE_UNICODE
8525 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8526 #else
8527 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8528 #endif
8529 }
8530 return resultobj;
8531 fail:
8532 return NULL;
8533 }
8534
8535
8536 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8537 PyObject *resultobj;
8538 wxFont *arg1 = (wxFont *) 0 ;
8539 wxString result;
8540 PyObject * obj0 = 0 ;
8541 char *kwnames[] = {
8542 (char *) "self", NULL
8543 };
8544
8545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8548 {
8549 PyThreadState* __tstate = wxPyBeginAllowThreads();
8550 result = ((wxFont const *)arg1)->GetWeightString();
8551
8552 wxPyEndAllowThreads(__tstate);
8553 if (PyErr_Occurred()) SWIG_fail;
8554 }
8555 {
8556 #if wxUSE_UNICODE
8557 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8558 #else
8559 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8560 #endif
8561 }
8562 return resultobj;
8563 fail:
8564 return NULL;
8565 }
8566
8567
8568 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8569 PyObject *resultobj;
8570 wxFont *arg1 = (wxFont *) 0 ;
8571 bool arg2 = (bool) True ;
8572 PyObject * obj0 = 0 ;
8573 PyObject * obj1 = 0 ;
8574 char *kwnames[] = {
8575 (char *) "self",(char *) "no", NULL
8576 };
8577
8578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8581 if (obj1) {
8582 arg2 = (bool) SWIG_AsBool(obj1);
8583 if (PyErr_Occurred()) SWIG_fail;
8584 }
8585 {
8586 PyThreadState* __tstate = wxPyBeginAllowThreads();
8587 (arg1)->SetNoAntiAliasing(arg2);
8588
8589 wxPyEndAllowThreads(__tstate);
8590 if (PyErr_Occurred()) SWIG_fail;
8591 }
8592 Py_INCREF(Py_None); resultobj = Py_None;
8593 return resultobj;
8594 fail:
8595 return NULL;
8596 }
8597
8598
8599 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8600 PyObject *resultobj;
8601 wxFont *arg1 = (wxFont *) 0 ;
8602 bool result;
8603 PyObject * obj0 = 0 ;
8604 char *kwnames[] = {
8605 (char *) "self", NULL
8606 };
8607
8608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8611 {
8612 PyThreadState* __tstate = wxPyBeginAllowThreads();
8613 result = (bool)(arg1)->GetNoAntiAliasing();
8614
8615 wxPyEndAllowThreads(__tstate);
8616 if (PyErr_Occurred()) SWIG_fail;
8617 }
8618 {
8619 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8620 }
8621 return resultobj;
8622 fail:
8623 return NULL;
8624 }
8625
8626
8627 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8628 PyObject *resultobj;
8629 int result;
8630 char *kwnames[] = {
8631 NULL
8632 };
8633
8634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8635 {
8636 PyThreadState* __tstate = wxPyBeginAllowThreads();
8637 result = (int)wxFont::GetDefaultEncoding();
8638
8639 wxPyEndAllowThreads(__tstate);
8640 if (PyErr_Occurred()) SWIG_fail;
8641 }
8642 resultobj = SWIG_FromInt((int)result);
8643 return resultobj;
8644 fail:
8645 return NULL;
8646 }
8647
8648
8649 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8650 PyObject *resultobj;
8651 int arg1 ;
8652 PyObject * obj0 = 0 ;
8653 char *kwnames[] = {
8654 (char *) "encoding", NULL
8655 };
8656
8657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8658 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
8659 if (PyErr_Occurred()) SWIG_fail;
8660 {
8661 PyThreadState* __tstate = wxPyBeginAllowThreads();
8662 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8663
8664 wxPyEndAllowThreads(__tstate);
8665 if (PyErr_Occurred()) SWIG_fail;
8666 }
8667 Py_INCREF(Py_None); resultobj = Py_None;
8668 return resultobj;
8669 fail:
8670 return NULL;
8671 }
8672
8673
8674 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8675 PyObject *obj;
8676 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8677 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8678 Py_INCREF(obj);
8679 return Py_BuildValue((char *)"");
8680 }
8681 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8682 PyObject *resultobj;
8683 wxPyFontEnumerator *result;
8684 char *kwnames[] = {
8685 NULL
8686 };
8687
8688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8689 {
8690 PyThreadState* __tstate = wxPyBeginAllowThreads();
8691 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8692
8693 wxPyEndAllowThreads(__tstate);
8694 if (PyErr_Occurred()) SWIG_fail;
8695 }
8696 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
8697 return resultobj;
8698 fail:
8699 return NULL;
8700 }
8701
8702
8703 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8704 PyObject *resultobj;
8705 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8706 PyObject * obj0 = 0 ;
8707 char *kwnames[] = {
8708 (char *) "self", NULL
8709 };
8710
8711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8714 {
8715 PyThreadState* __tstate = wxPyBeginAllowThreads();
8716 delete arg1;
8717
8718 wxPyEndAllowThreads(__tstate);
8719 if (PyErr_Occurred()) SWIG_fail;
8720 }
8721 Py_INCREF(Py_None); resultobj = Py_None;
8722 return resultobj;
8723 fail:
8724 return NULL;
8725 }
8726
8727
8728 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8729 PyObject *resultobj;
8730 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8731 PyObject *arg2 = (PyObject *) 0 ;
8732 PyObject *arg3 = (PyObject *) 0 ;
8733 bool arg4 ;
8734 PyObject * obj0 = 0 ;
8735 PyObject * obj1 = 0 ;
8736 PyObject * obj2 = 0 ;
8737 PyObject * obj3 = 0 ;
8738 char *kwnames[] = {
8739 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8740 };
8741
8742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8745 arg2 = obj1;
8746 arg3 = obj2;
8747 arg4 = (bool) SWIG_AsBool(obj3);
8748 if (PyErr_Occurred()) SWIG_fail;
8749 {
8750 PyThreadState* __tstate = wxPyBeginAllowThreads();
8751 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8752
8753 wxPyEndAllowThreads(__tstate);
8754 if (PyErr_Occurred()) SWIG_fail;
8755 }
8756 Py_INCREF(Py_None); resultobj = Py_None;
8757 return resultobj;
8758 fail:
8759 return NULL;
8760 }
8761
8762
8763 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8764 PyObject *resultobj;
8765 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8766 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8767 bool arg3 = (bool) False ;
8768 bool result;
8769 PyObject * obj0 = 0 ;
8770 PyObject * obj1 = 0 ;
8771 PyObject * obj2 = 0 ;
8772 char *kwnames[] = {
8773 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8774 };
8775
8776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8779 if (obj1) {
8780 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8781 if (PyErr_Occurred()) SWIG_fail;
8782 }
8783 if (obj2) {
8784 arg3 = (bool) SWIG_AsBool(obj2);
8785 if (PyErr_Occurred()) SWIG_fail;
8786 }
8787 {
8788 PyThreadState* __tstate = wxPyBeginAllowThreads();
8789 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8790
8791 wxPyEndAllowThreads(__tstate);
8792 if (PyErr_Occurred()) SWIG_fail;
8793 }
8794 {
8795 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8796 }
8797 return resultobj;
8798 fail:
8799 return NULL;
8800 }
8801
8802
8803 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8804 PyObject *resultobj;
8805 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8806 wxString const &arg2_defvalue = wxPyEmptyString ;
8807 wxString *arg2 = (wxString *) &arg2_defvalue ;
8808 bool result;
8809 bool temp2 = False ;
8810 PyObject * obj0 = 0 ;
8811 PyObject * obj1 = 0 ;
8812 char *kwnames[] = {
8813 (char *) "self",(char *) "facename", NULL
8814 };
8815
8816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8819 if (obj1) {
8820 {
8821 arg2 = wxString_in_helper(obj1);
8822 if (arg2 == NULL) SWIG_fail;
8823 temp2 = True;
8824 }
8825 }
8826 {
8827 PyThreadState* __tstate = wxPyBeginAllowThreads();
8828 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8829
8830 wxPyEndAllowThreads(__tstate);
8831 if (PyErr_Occurred()) SWIG_fail;
8832 }
8833 {
8834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8835 }
8836 {
8837 if (temp2)
8838 delete arg2;
8839 }
8840 return resultobj;
8841 fail:
8842 {
8843 if (temp2)
8844 delete arg2;
8845 }
8846 return NULL;
8847 }
8848
8849
8850 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8851 PyObject *resultobj;
8852 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8853 PyObject *result;
8854 PyObject * obj0 = 0 ;
8855 char *kwnames[] = {
8856 (char *) "self", NULL
8857 };
8858
8859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
8860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8862 {
8863 PyThreadState* __tstate = wxPyBeginAllowThreads();
8864 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8865
8866 wxPyEndAllowThreads(__tstate);
8867 if (PyErr_Occurred()) SWIG_fail;
8868 }
8869 resultobj = result;
8870 return resultobj;
8871 fail:
8872 return NULL;
8873 }
8874
8875
8876 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8877 PyObject *resultobj;
8878 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8879 PyObject *result;
8880 PyObject * obj0 = 0 ;
8881 char *kwnames[] = {
8882 (char *) "self", NULL
8883 };
8884
8885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
8886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8888 {
8889 PyThreadState* __tstate = wxPyBeginAllowThreads();
8890 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
8891
8892 wxPyEndAllowThreads(__tstate);
8893 if (PyErr_Occurred()) SWIG_fail;
8894 }
8895 resultobj = result;
8896 return resultobj;
8897 fail:
8898 return NULL;
8899 }
8900
8901
8902 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
8903 PyObject *obj;
8904 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8905 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
8906 Py_INCREF(obj);
8907 return Py_BuildValue((char *)"");
8908 }
8909 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8910 PyObject *resultobj;
8911 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8912 int arg2 ;
8913 PyObject * obj0 = 0 ;
8914 PyObject * obj1 = 0 ;
8915 char *kwnames[] = {
8916 (char *) "self",(char *) "Language", NULL
8917 };
8918
8919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
8920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8922 arg2 = (int) SWIG_AsInt(obj1);
8923 if (PyErr_Occurred()) SWIG_fail;
8924 if (arg1) (arg1)->Language = arg2;
8925
8926 Py_INCREF(Py_None); resultobj = Py_None;
8927 return resultobj;
8928 fail:
8929 return NULL;
8930 }
8931
8932
8933 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8934 PyObject *resultobj;
8935 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8936 int result;
8937 PyObject * obj0 = 0 ;
8938 char *kwnames[] = {
8939 (char *) "self", NULL
8940 };
8941
8942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
8943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8945 result = (int) ((arg1)->Language);
8946
8947 resultobj = SWIG_FromInt((int)result);
8948 return resultobj;
8949 fail:
8950 return NULL;
8951 }
8952
8953
8954 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8955 PyObject *resultobj;
8956 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8957 wxString *arg2 = (wxString *) 0 ;
8958 bool temp2 = False ;
8959 PyObject * obj0 = 0 ;
8960 PyObject * obj1 = 0 ;
8961 char *kwnames[] = {
8962 (char *) "self",(char *) "CanonicalName", NULL
8963 };
8964
8965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
8966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8968 {
8969 arg2 = wxString_in_helper(obj1);
8970 if (arg2 == NULL) SWIG_fail;
8971 temp2 = True;
8972 }
8973 if (arg1) (arg1)->CanonicalName = *arg2;
8974
8975 Py_INCREF(Py_None); resultobj = Py_None;
8976 {
8977 if (temp2)
8978 delete arg2;
8979 }
8980 return resultobj;
8981 fail:
8982 {
8983 if (temp2)
8984 delete arg2;
8985 }
8986 return NULL;
8987 }
8988
8989
8990 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8991 PyObject *resultobj;
8992 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8993 wxString *result;
8994 PyObject * obj0 = 0 ;
8995 char *kwnames[] = {
8996 (char *) "self", NULL
8997 };
8998
8999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9002 result = (wxString *)& ((arg1)->CanonicalName);
9003
9004 {
9005 #if wxUSE_UNICODE
9006 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9007 #else
9008 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9009 #endif
9010 }
9011 return resultobj;
9012 fail:
9013 return NULL;
9014 }
9015
9016
9017 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9018 PyObject *resultobj;
9019 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9020 wxString *arg2 = (wxString *) 0 ;
9021 bool temp2 = False ;
9022 PyObject * obj0 = 0 ;
9023 PyObject * obj1 = 0 ;
9024 char *kwnames[] = {
9025 (char *) "self",(char *) "Description", NULL
9026 };
9027
9028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9031 {
9032 arg2 = wxString_in_helper(obj1);
9033 if (arg2 == NULL) SWIG_fail;
9034 temp2 = True;
9035 }
9036 if (arg1) (arg1)->Description = *arg2;
9037
9038 Py_INCREF(Py_None); resultobj = Py_None;
9039 {
9040 if (temp2)
9041 delete arg2;
9042 }
9043 return resultobj;
9044 fail:
9045 {
9046 if (temp2)
9047 delete arg2;
9048 }
9049 return NULL;
9050 }
9051
9052
9053 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9054 PyObject *resultobj;
9055 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9056 wxString *result;
9057 PyObject * obj0 = 0 ;
9058 char *kwnames[] = {
9059 (char *) "self", NULL
9060 };
9061
9062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9065 result = (wxString *)& ((arg1)->Description);
9066
9067 {
9068 #if wxUSE_UNICODE
9069 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9070 #else
9071 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9072 #endif
9073 }
9074 return resultobj;
9075 fail:
9076 return NULL;
9077 }
9078
9079
9080 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9081 PyObject *obj;
9082 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9083 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9084 Py_INCREF(obj);
9085 return Py_BuildValue((char *)"");
9086 }
9087 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9088 PyObject *resultobj;
9089 int arg1 = (int) wxLANGUAGE_DEFAULT ;
9090 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9091 wxLocale *result;
9092 PyObject * obj0 = 0 ;
9093 PyObject * obj1 = 0 ;
9094 char *kwnames[] = {
9095 (char *) "language",(char *) "flags", NULL
9096 };
9097
9098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9099 if (obj0) {
9100 arg1 = (int) SWIG_AsInt(obj0);
9101 if (PyErr_Occurred()) SWIG_fail;
9102 }
9103 if (obj1) {
9104 arg2 = (int) SWIG_AsInt(obj1);
9105 if (PyErr_Occurred()) SWIG_fail;
9106 }
9107 {
9108 PyThreadState* __tstate = wxPyBeginAllowThreads();
9109 result = (wxLocale *)new wxLocale(arg1,arg2);
9110
9111 wxPyEndAllowThreads(__tstate);
9112 if (PyErr_Occurred()) SWIG_fail;
9113 }
9114 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9115 return resultobj;
9116 fail:
9117 return NULL;
9118 }
9119
9120
9121 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9122 PyObject *resultobj;
9123 wxLocale *arg1 = (wxLocale *) 0 ;
9124 PyObject * obj0 = 0 ;
9125 char *kwnames[] = {
9126 (char *) "self", NULL
9127 };
9128
9129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9132 {
9133 PyThreadState* __tstate = wxPyBeginAllowThreads();
9134 delete arg1;
9135
9136 wxPyEndAllowThreads(__tstate);
9137 if (PyErr_Occurred()) SWIG_fail;
9138 }
9139 Py_INCREF(Py_None); resultobj = Py_None;
9140 return resultobj;
9141 fail:
9142 return NULL;
9143 }
9144
9145
9146 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9147 PyObject *resultobj;
9148 wxLocale *arg1 = (wxLocale *) 0 ;
9149 wxString *arg2 = 0 ;
9150 wxString const &arg3_defvalue = wxPyEmptyString ;
9151 wxString *arg3 = (wxString *) &arg3_defvalue ;
9152 wxString const &arg4_defvalue = wxPyEmptyString ;
9153 wxString *arg4 = (wxString *) &arg4_defvalue ;
9154 bool arg5 = (bool) True ;
9155 bool arg6 = (bool) False ;
9156 bool result;
9157 bool temp2 = False ;
9158 bool temp3 = False ;
9159 bool temp4 = False ;
9160 PyObject * obj0 = 0 ;
9161 PyObject * obj1 = 0 ;
9162 PyObject * obj2 = 0 ;
9163 PyObject * obj3 = 0 ;
9164 PyObject * obj4 = 0 ;
9165 PyObject * obj5 = 0 ;
9166 char *kwnames[] = {
9167 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9168 };
9169
9170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9173 {
9174 arg2 = wxString_in_helper(obj1);
9175 if (arg2 == NULL) SWIG_fail;
9176 temp2 = True;
9177 }
9178 if (obj2) {
9179 {
9180 arg3 = wxString_in_helper(obj2);
9181 if (arg3 == NULL) SWIG_fail;
9182 temp3 = True;
9183 }
9184 }
9185 if (obj3) {
9186 {
9187 arg4 = wxString_in_helper(obj3);
9188 if (arg4 == NULL) SWIG_fail;
9189 temp4 = True;
9190 }
9191 }
9192 if (obj4) {
9193 arg5 = (bool) SWIG_AsBool(obj4);
9194 if (PyErr_Occurred()) SWIG_fail;
9195 }
9196 if (obj5) {
9197 arg6 = (bool) SWIG_AsBool(obj5);
9198 if (PyErr_Occurred()) SWIG_fail;
9199 }
9200 {
9201 PyThreadState* __tstate = wxPyBeginAllowThreads();
9202 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9203
9204 wxPyEndAllowThreads(__tstate);
9205 if (PyErr_Occurred()) SWIG_fail;
9206 }
9207 {
9208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9209 }
9210 {
9211 if (temp2)
9212 delete arg2;
9213 }
9214 {
9215 if (temp3)
9216 delete arg3;
9217 }
9218 {
9219 if (temp4)
9220 delete arg4;
9221 }
9222 return resultobj;
9223 fail:
9224 {
9225 if (temp2)
9226 delete arg2;
9227 }
9228 {
9229 if (temp3)
9230 delete arg3;
9231 }
9232 {
9233 if (temp4)
9234 delete arg4;
9235 }
9236 return NULL;
9237 }
9238
9239
9240 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9241 PyObject *resultobj;
9242 wxLocale *arg1 = (wxLocale *) 0 ;
9243 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9244 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9245 bool result;
9246 PyObject * obj0 = 0 ;
9247 PyObject * obj1 = 0 ;
9248 PyObject * obj2 = 0 ;
9249 char *kwnames[] = {
9250 (char *) "self",(char *) "language",(char *) "flags", NULL
9251 };
9252
9253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9256 if (obj1) {
9257 arg2 = (int) SWIG_AsInt(obj1);
9258 if (PyErr_Occurred()) SWIG_fail;
9259 }
9260 if (obj2) {
9261 arg3 = (int) SWIG_AsInt(obj2);
9262 if (PyErr_Occurred()) SWIG_fail;
9263 }
9264 {
9265 PyThreadState* __tstate = wxPyBeginAllowThreads();
9266 result = (bool)(arg1)->Init(arg2,arg3);
9267
9268 wxPyEndAllowThreads(__tstate);
9269 if (PyErr_Occurred()) SWIG_fail;
9270 }
9271 {
9272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9273 }
9274 return resultobj;
9275 fail:
9276 return NULL;
9277 }
9278
9279
9280 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9281 PyObject *resultobj;
9282 int result;
9283 char *kwnames[] = {
9284 NULL
9285 };
9286
9287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9288 {
9289 PyThreadState* __tstate = wxPyBeginAllowThreads();
9290 result = (int)wxLocale::GetSystemLanguage();
9291
9292 wxPyEndAllowThreads(__tstate);
9293 if (PyErr_Occurred()) SWIG_fail;
9294 }
9295 resultobj = SWIG_FromInt((int)result);
9296 return resultobj;
9297 fail:
9298 return NULL;
9299 }
9300
9301
9302 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9303 PyObject *resultobj;
9304 int result;
9305 char *kwnames[] = {
9306 NULL
9307 };
9308
9309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9310 {
9311 PyThreadState* __tstate = wxPyBeginAllowThreads();
9312 result = (int)wxLocale::GetSystemEncoding();
9313
9314 wxPyEndAllowThreads(__tstate);
9315 if (PyErr_Occurred()) SWIG_fail;
9316 }
9317 resultobj = SWIG_FromInt((int)result);
9318 return resultobj;
9319 fail:
9320 return NULL;
9321 }
9322
9323
9324 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9325 PyObject *resultobj;
9326 wxString result;
9327 char *kwnames[] = {
9328 NULL
9329 };
9330
9331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9332 {
9333 PyThreadState* __tstate = wxPyBeginAllowThreads();
9334 result = wxLocale::GetSystemEncodingName();
9335
9336 wxPyEndAllowThreads(__tstate);
9337 if (PyErr_Occurred()) SWIG_fail;
9338 }
9339 {
9340 #if wxUSE_UNICODE
9341 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9342 #else
9343 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9344 #endif
9345 }
9346 return resultobj;
9347 fail:
9348 return NULL;
9349 }
9350
9351
9352 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9353 PyObject *resultobj;
9354 wxLocale *arg1 = (wxLocale *) 0 ;
9355 bool result;
9356 PyObject * obj0 = 0 ;
9357 char *kwnames[] = {
9358 (char *) "self", NULL
9359 };
9360
9361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9364 {
9365 PyThreadState* __tstate = wxPyBeginAllowThreads();
9366 result = (bool)((wxLocale const *)arg1)->IsOk();
9367
9368 wxPyEndAllowThreads(__tstate);
9369 if (PyErr_Occurred()) SWIG_fail;
9370 }
9371 {
9372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9373 }
9374 return resultobj;
9375 fail:
9376 return NULL;
9377 }
9378
9379
9380 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9381 PyObject *resultobj;
9382 wxLocale *arg1 = (wxLocale *) 0 ;
9383 wxString result;
9384 PyObject * obj0 = 0 ;
9385 char *kwnames[] = {
9386 (char *) "self", NULL
9387 };
9388
9389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9392 {
9393 PyThreadState* __tstate = wxPyBeginAllowThreads();
9394 result = ((wxLocale const *)arg1)->GetLocale();
9395
9396 wxPyEndAllowThreads(__tstate);
9397 if (PyErr_Occurred()) SWIG_fail;
9398 }
9399 {
9400 #if wxUSE_UNICODE
9401 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9402 #else
9403 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9404 #endif
9405 }
9406 return resultobj;
9407 fail:
9408 return NULL;
9409 }
9410
9411
9412 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9413 PyObject *resultobj;
9414 wxLocale *arg1 = (wxLocale *) 0 ;
9415 int result;
9416 PyObject * obj0 = 0 ;
9417 char *kwnames[] = {
9418 (char *) "self", NULL
9419 };
9420
9421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9424 {
9425 PyThreadState* __tstate = wxPyBeginAllowThreads();
9426 result = (int)((wxLocale const *)arg1)->GetLanguage();
9427
9428 wxPyEndAllowThreads(__tstate);
9429 if (PyErr_Occurred()) SWIG_fail;
9430 }
9431 resultobj = SWIG_FromInt((int)result);
9432 return resultobj;
9433 fail:
9434 return NULL;
9435 }
9436
9437
9438 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9439 PyObject *resultobj;
9440 wxLocale *arg1 = (wxLocale *) 0 ;
9441 wxString result;
9442 PyObject * obj0 = 0 ;
9443 char *kwnames[] = {
9444 (char *) "self", NULL
9445 };
9446
9447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9450 {
9451 PyThreadState* __tstate = wxPyBeginAllowThreads();
9452 result = ((wxLocale const *)arg1)->GetSysName();
9453
9454 wxPyEndAllowThreads(__tstate);
9455 if (PyErr_Occurred()) SWIG_fail;
9456 }
9457 {
9458 #if wxUSE_UNICODE
9459 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9460 #else
9461 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9462 #endif
9463 }
9464 return resultobj;
9465 fail:
9466 return NULL;
9467 }
9468
9469
9470 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9471 PyObject *resultobj;
9472 wxLocale *arg1 = (wxLocale *) 0 ;
9473 wxString result;
9474 PyObject * obj0 = 0 ;
9475 char *kwnames[] = {
9476 (char *) "self", NULL
9477 };
9478
9479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9482 {
9483 PyThreadState* __tstate = wxPyBeginAllowThreads();
9484 result = ((wxLocale const *)arg1)->GetCanonicalName();
9485
9486 wxPyEndAllowThreads(__tstate);
9487 if (PyErr_Occurred()) SWIG_fail;
9488 }
9489 {
9490 #if wxUSE_UNICODE
9491 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9492 #else
9493 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9494 #endif
9495 }
9496 return resultobj;
9497 fail:
9498 return NULL;
9499 }
9500
9501
9502 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9503 PyObject *resultobj;
9504 wxString *arg1 = 0 ;
9505 bool temp1 = False ;
9506 PyObject * obj0 = 0 ;
9507 char *kwnames[] = {
9508 (char *) "prefix", NULL
9509 };
9510
9511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9512 {
9513 arg1 = wxString_in_helper(obj0);
9514 if (arg1 == NULL) SWIG_fail;
9515 temp1 = True;
9516 }
9517 {
9518 PyThreadState* __tstate = wxPyBeginAllowThreads();
9519 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9520
9521 wxPyEndAllowThreads(__tstate);
9522 if (PyErr_Occurred()) SWIG_fail;
9523 }
9524 Py_INCREF(Py_None); resultobj = Py_None;
9525 {
9526 if (temp1)
9527 delete arg1;
9528 }
9529 return resultobj;
9530 fail:
9531 {
9532 if (temp1)
9533 delete arg1;
9534 }
9535 return NULL;
9536 }
9537
9538
9539 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9540 PyObject *resultobj;
9541 wxLocale *arg1 = (wxLocale *) 0 ;
9542 wxString *arg2 = 0 ;
9543 bool result;
9544 bool temp2 = False ;
9545 PyObject * obj0 = 0 ;
9546 PyObject * obj1 = 0 ;
9547 char *kwnames[] = {
9548 (char *) "self",(char *) "szDomain", NULL
9549 };
9550
9551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9554 {
9555 arg2 = wxString_in_helper(obj1);
9556 if (arg2 == NULL) SWIG_fail;
9557 temp2 = True;
9558 }
9559 {
9560 PyThreadState* __tstate = wxPyBeginAllowThreads();
9561 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9562
9563 wxPyEndAllowThreads(__tstate);
9564 if (PyErr_Occurred()) SWIG_fail;
9565 }
9566 {
9567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9568 }
9569 {
9570 if (temp2)
9571 delete arg2;
9572 }
9573 return resultobj;
9574 fail:
9575 {
9576 if (temp2)
9577 delete arg2;
9578 }
9579 return NULL;
9580 }
9581
9582
9583 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9584 PyObject *resultobj;
9585 wxLocale *arg1 = (wxLocale *) 0 ;
9586 wxString *arg2 = 0 ;
9587 bool result;
9588 bool temp2 = False ;
9589 PyObject * obj0 = 0 ;
9590 PyObject * obj1 = 0 ;
9591 char *kwnames[] = {
9592 (char *) "self",(char *) "szDomain", NULL
9593 };
9594
9595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9598 {
9599 arg2 = wxString_in_helper(obj1);
9600 if (arg2 == NULL) SWIG_fail;
9601 temp2 = True;
9602 }
9603 {
9604 PyThreadState* __tstate = wxPyBeginAllowThreads();
9605 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9606
9607 wxPyEndAllowThreads(__tstate);
9608 if (PyErr_Occurred()) SWIG_fail;
9609 }
9610 {
9611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9612 }
9613 {
9614 if (temp2)
9615 delete arg2;
9616 }
9617 return resultobj;
9618 fail:
9619 {
9620 if (temp2)
9621 delete arg2;
9622 }
9623 return NULL;
9624 }
9625
9626
9627 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9628 PyObject *resultobj;
9629 int arg1 ;
9630 wxLanguageInfo *result;
9631 PyObject * obj0 = 0 ;
9632 char *kwnames[] = {
9633 (char *) "lang", NULL
9634 };
9635
9636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9637 arg1 = (int) SWIG_AsInt(obj0);
9638 if (PyErr_Occurred()) SWIG_fail;
9639 {
9640 PyThreadState* __tstate = wxPyBeginAllowThreads();
9641 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9642
9643 wxPyEndAllowThreads(__tstate);
9644 if (PyErr_Occurred()) SWIG_fail;
9645 }
9646 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9647 return resultobj;
9648 fail:
9649 return NULL;
9650 }
9651
9652
9653 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9654 PyObject *resultobj;
9655 int arg1 ;
9656 wxString result;
9657 PyObject * obj0 = 0 ;
9658 char *kwnames[] = {
9659 (char *) "lang", NULL
9660 };
9661
9662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9663 arg1 = (int) SWIG_AsInt(obj0);
9664 if (PyErr_Occurred()) SWIG_fail;
9665 {
9666 PyThreadState* __tstate = wxPyBeginAllowThreads();
9667 result = wxLocale::GetLanguageName(arg1);
9668
9669 wxPyEndAllowThreads(__tstate);
9670 if (PyErr_Occurred()) SWIG_fail;
9671 }
9672 {
9673 #if wxUSE_UNICODE
9674 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9675 #else
9676 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9677 #endif
9678 }
9679 return resultobj;
9680 fail:
9681 return NULL;
9682 }
9683
9684
9685 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9686 PyObject *resultobj;
9687 wxString *arg1 = 0 ;
9688 wxLanguageInfo *result;
9689 bool temp1 = False ;
9690 PyObject * obj0 = 0 ;
9691 char *kwnames[] = {
9692 (char *) "locale", NULL
9693 };
9694
9695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9696 {
9697 arg1 = wxString_in_helper(obj0);
9698 if (arg1 == NULL) SWIG_fail;
9699 temp1 = True;
9700 }
9701 {
9702 PyThreadState* __tstate = wxPyBeginAllowThreads();
9703 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9704
9705 wxPyEndAllowThreads(__tstate);
9706 if (PyErr_Occurred()) SWIG_fail;
9707 }
9708 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9709 {
9710 if (temp1)
9711 delete arg1;
9712 }
9713 return resultobj;
9714 fail:
9715 {
9716 if (temp1)
9717 delete arg1;
9718 }
9719 return NULL;
9720 }
9721
9722
9723 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9724 PyObject *resultobj;
9725 wxLanguageInfo *arg1 = 0 ;
9726 PyObject * obj0 = 0 ;
9727 char *kwnames[] = {
9728 (char *) "info", NULL
9729 };
9730
9731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9733 SWIG_POINTER_EXCEPTION | 0)) == -1)
9734 SWIG_fail;
9735 if (arg1 == NULL) {
9736 PyErr_SetString(PyExc_TypeError,"null reference");
9737 SWIG_fail;
9738 }
9739 {
9740 PyThreadState* __tstate = wxPyBeginAllowThreads();
9741 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9742
9743 wxPyEndAllowThreads(__tstate);
9744 if (PyErr_Occurred()) SWIG_fail;
9745 }
9746 Py_INCREF(Py_None); resultobj = Py_None;
9747 return resultobj;
9748 fail:
9749 return NULL;
9750 }
9751
9752
9753 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9754 PyObject *resultobj;
9755 wxLocale *arg1 = (wxLocale *) 0 ;
9756 wxString *arg2 = 0 ;
9757 wxString const &arg3_defvalue = wxPyEmptyString ;
9758 wxString *arg3 = (wxString *) &arg3_defvalue ;
9759 wxString result;
9760 bool temp2 = False ;
9761 bool temp3 = False ;
9762 PyObject * obj0 = 0 ;
9763 PyObject * obj1 = 0 ;
9764 PyObject * obj2 = 0 ;
9765 char *kwnames[] = {
9766 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9767 };
9768
9769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9772 {
9773 arg2 = wxString_in_helper(obj1);
9774 if (arg2 == NULL) SWIG_fail;
9775 temp2 = True;
9776 }
9777 if (obj2) {
9778 {
9779 arg3 = wxString_in_helper(obj2);
9780 if (arg3 == NULL) SWIG_fail;
9781 temp3 = True;
9782 }
9783 }
9784 {
9785 PyThreadState* __tstate = wxPyBeginAllowThreads();
9786 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9787
9788 wxPyEndAllowThreads(__tstate);
9789 if (PyErr_Occurred()) SWIG_fail;
9790 }
9791 {
9792 #if wxUSE_UNICODE
9793 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9794 #else
9795 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9796 #endif
9797 }
9798 {
9799 if (temp2)
9800 delete arg2;
9801 }
9802 {
9803 if (temp3)
9804 delete arg3;
9805 }
9806 return resultobj;
9807 fail:
9808 {
9809 if (temp2)
9810 delete arg2;
9811 }
9812 {
9813 if (temp3)
9814 delete arg3;
9815 }
9816 return NULL;
9817 }
9818
9819
9820 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9821 PyObject *resultobj;
9822 wxLocale *arg1 = (wxLocale *) 0 ;
9823 wxString *result;
9824 PyObject * obj0 = 0 ;
9825 char *kwnames[] = {
9826 (char *) "self", NULL
9827 };
9828
9829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9832 {
9833 PyThreadState* __tstate = wxPyBeginAllowThreads();
9834 {
9835 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9836 result = (wxString *) &_result_ref;
9837 }
9838
9839 wxPyEndAllowThreads(__tstate);
9840 if (PyErr_Occurred()) SWIG_fail;
9841 }
9842 {
9843 #if wxUSE_UNICODE
9844 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9845 #else
9846 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9847 #endif
9848 }
9849 return resultobj;
9850 fail:
9851 return NULL;
9852 }
9853
9854
9855 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9856 PyObject *obj;
9857 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9858 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9859 Py_INCREF(obj);
9860 return Py_BuildValue((char *)"");
9861 }
9862 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9863 PyObject *resultobj;
9864 wxLocale *result;
9865 char *kwnames[] = {
9866 NULL
9867 };
9868
9869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9870 {
9871 PyThreadState* __tstate = wxPyBeginAllowThreads();
9872 result = (wxLocale *)wxGetLocale();
9873
9874 wxPyEndAllowThreads(__tstate);
9875 if (PyErr_Occurred()) SWIG_fail;
9876 }
9877 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
9878 return resultobj;
9879 fail:
9880 return NULL;
9881 }
9882
9883
9884 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9885 PyObject *resultobj;
9886 wxString *arg1 = 0 ;
9887 wxString result;
9888 bool temp1 = False ;
9889 PyObject * obj0 = 0 ;
9890
9891 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9892 {
9893 arg1 = wxString_in_helper(obj0);
9894 if (arg1 == NULL) SWIG_fail;
9895 temp1 = True;
9896 }
9897 {
9898 PyThreadState* __tstate = wxPyBeginAllowThreads();
9899 result = wxGetTranslation((wxString const &)*arg1);
9900
9901 wxPyEndAllowThreads(__tstate);
9902 if (PyErr_Occurred()) SWIG_fail;
9903 }
9904 {
9905 #if wxUSE_UNICODE
9906 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9907 #else
9908 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9909 #endif
9910 }
9911 {
9912 if (temp1)
9913 delete arg1;
9914 }
9915 return resultobj;
9916 fail:
9917 {
9918 if (temp1)
9919 delete arg1;
9920 }
9921 return NULL;
9922 }
9923
9924
9925 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
9926 PyObject *resultobj;
9927 wxString *arg1 = 0 ;
9928 wxString *arg2 = 0 ;
9929 size_t arg3 ;
9930 wxString result;
9931 bool temp1 = False ;
9932 bool temp2 = False ;
9933 PyObject * obj0 = 0 ;
9934 PyObject * obj1 = 0 ;
9935 PyObject * obj2 = 0 ;
9936
9937 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
9938 {
9939 arg1 = wxString_in_helper(obj0);
9940 if (arg1 == NULL) SWIG_fail;
9941 temp1 = True;
9942 }
9943 {
9944 arg2 = wxString_in_helper(obj1);
9945 if (arg2 == NULL) SWIG_fail;
9946 temp2 = True;
9947 }
9948 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
9949 if (PyErr_Occurred()) SWIG_fail;
9950 {
9951 PyThreadState* __tstate = wxPyBeginAllowThreads();
9952 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
9953
9954 wxPyEndAllowThreads(__tstate);
9955 if (PyErr_Occurred()) SWIG_fail;
9956 }
9957 {
9958 #if wxUSE_UNICODE
9959 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9960 #else
9961 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9962 #endif
9963 }
9964 {
9965 if (temp1)
9966 delete arg1;
9967 }
9968 {
9969 if (temp2)
9970 delete arg2;
9971 }
9972 return resultobj;
9973 fail:
9974 {
9975 if (temp1)
9976 delete arg1;
9977 }
9978 {
9979 if (temp2)
9980 delete arg2;
9981 }
9982 return NULL;
9983 }
9984
9985
9986 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
9987 int argc;
9988 PyObject *argv[4];
9989 int ii;
9990
9991 argc = PyObject_Length(args);
9992 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
9993 argv[ii] = PyTuple_GetItem(args,ii);
9994 }
9995 if (argc == 1) {
9996 int _v;
9997 {
9998 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9999 }
10000 if (_v) {
10001 return _wrap_GetTranslation__SWIG_0(self,args);
10002 }
10003 }
10004 if (argc == 3) {
10005 int _v;
10006 {
10007 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10008 }
10009 if (_v) {
10010 {
10011 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10012 }
10013 if (_v) {
10014 _v = SWIG_CheckUnsignedLong(argv[2]);
10015 if (_v) {
10016 return _wrap_GetTranslation__SWIG_1(self,args);
10017 }
10018 }
10019 }
10020 }
10021
10022 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10023 return NULL;
10024 }
10025
10026
10027 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10028 PyObject *resultobj;
10029 wxEncodingConverter *result;
10030 char *kwnames[] = {
10031 NULL
10032 };
10033
10034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10035 {
10036 PyThreadState* __tstate = wxPyBeginAllowThreads();
10037 result = (wxEncodingConverter *)new wxEncodingConverter();
10038
10039 wxPyEndAllowThreads(__tstate);
10040 if (PyErr_Occurred()) SWIG_fail;
10041 }
10042 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10043 return resultobj;
10044 fail:
10045 return NULL;
10046 }
10047
10048
10049 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10050 PyObject *resultobj;
10051 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10052 PyObject * obj0 = 0 ;
10053 char *kwnames[] = {
10054 (char *) "self", NULL
10055 };
10056
10057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10060 {
10061 PyThreadState* __tstate = wxPyBeginAllowThreads();
10062 delete arg1;
10063
10064 wxPyEndAllowThreads(__tstate);
10065 if (PyErr_Occurred()) SWIG_fail;
10066 }
10067 Py_INCREF(Py_None); resultobj = Py_None;
10068 return resultobj;
10069 fail:
10070 return NULL;
10071 }
10072
10073
10074 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10075 PyObject *resultobj;
10076 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10077 int arg2 ;
10078 int arg3 ;
10079 int arg4 = (int) wxCONVERT_STRICT ;
10080 bool result;
10081 PyObject * obj0 = 0 ;
10082 PyObject * obj1 = 0 ;
10083 PyObject * obj2 = 0 ;
10084 PyObject * obj3 = 0 ;
10085 char *kwnames[] = {
10086 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10087 };
10088
10089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10092 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10093 if (PyErr_Occurred()) SWIG_fail;
10094 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10095 if (PyErr_Occurred()) SWIG_fail;
10096 if (obj3) {
10097 arg4 = (int) SWIG_AsInt(obj3);
10098 if (PyErr_Occurred()) SWIG_fail;
10099 }
10100 {
10101 PyThreadState* __tstate = wxPyBeginAllowThreads();
10102 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10103
10104 wxPyEndAllowThreads(__tstate);
10105 if (PyErr_Occurred()) SWIG_fail;
10106 }
10107 {
10108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10109 }
10110 return resultobj;
10111 fail:
10112 return NULL;
10113 }
10114
10115
10116 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10117 PyObject *resultobj;
10118 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10119 wxString *arg2 = 0 ;
10120 wxString result;
10121 bool temp2 = False ;
10122 PyObject * obj0 = 0 ;
10123 PyObject * obj1 = 0 ;
10124 char *kwnames[] = {
10125 (char *) "self",(char *) "input", NULL
10126 };
10127
10128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10131 {
10132 arg2 = wxString_in_helper(obj1);
10133 if (arg2 == NULL) SWIG_fail;
10134 temp2 = True;
10135 }
10136 {
10137 PyThreadState* __tstate = wxPyBeginAllowThreads();
10138 result = (arg1)->Convert((wxString const &)*arg2);
10139
10140 wxPyEndAllowThreads(__tstate);
10141 if (PyErr_Occurred()) SWIG_fail;
10142 }
10143 {
10144 #if wxUSE_UNICODE
10145 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10146 #else
10147 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10148 #endif
10149 }
10150 {
10151 if (temp2)
10152 delete arg2;
10153 }
10154 return resultobj;
10155 fail:
10156 {
10157 if (temp2)
10158 delete arg2;
10159 }
10160 return NULL;
10161 }
10162
10163
10164 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10165 PyObject *resultobj;
10166 int arg1 ;
10167 int arg2 = (int) wxPLATFORM_CURRENT ;
10168 wxFontEncodingArray result;
10169 PyObject * obj0 = 0 ;
10170 PyObject * obj1 = 0 ;
10171 char *kwnames[] = {
10172 (char *) "enc",(char *) "platform", NULL
10173 };
10174
10175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10176 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10177 if (PyErr_Occurred()) SWIG_fail;
10178 if (obj1) {
10179 arg2 = (int) SWIG_AsInt(obj1);
10180 if (PyErr_Occurred()) SWIG_fail;
10181 }
10182 {
10183 PyThreadState* __tstate = wxPyBeginAllowThreads();
10184 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10185
10186 wxPyEndAllowThreads(__tstate);
10187 if (PyErr_Occurred()) SWIG_fail;
10188 }
10189 {
10190 resultobj = PyList_New(0);
10191 for (size_t i=0; i < (&result)->GetCount(); i++) {
10192 PyObject* number = PyInt_FromLong((&result)->Item(i));
10193 PyList_Append(resultobj, number);
10194 Py_DECREF(number);
10195 }
10196 }
10197 return resultobj;
10198 fail:
10199 return NULL;
10200 }
10201
10202
10203 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10204 PyObject *resultobj;
10205 int arg1 ;
10206 wxFontEncodingArray result;
10207 PyObject * obj0 = 0 ;
10208 char *kwnames[] = {
10209 (char *) "enc", NULL
10210 };
10211
10212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10213 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10214 if (PyErr_Occurred()) SWIG_fail;
10215 {
10216 PyThreadState* __tstate = wxPyBeginAllowThreads();
10217 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10218
10219 wxPyEndAllowThreads(__tstate);
10220 if (PyErr_Occurred()) SWIG_fail;
10221 }
10222 {
10223 resultobj = PyList_New(0);
10224 for (size_t i=0; i < (&result)->GetCount(); i++) {
10225 PyObject* number = PyInt_FromLong((&result)->Item(i));
10226 PyList_Append(resultobj, number);
10227 Py_DECREF(number);
10228 }
10229 }
10230 return resultobj;
10231 fail:
10232 return NULL;
10233 }
10234
10235
10236 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10237 PyObject *resultobj;
10238 int arg1 ;
10239 int arg2 ;
10240 bool result;
10241 PyObject * obj0 = 0 ;
10242 PyObject * obj1 = 0 ;
10243 char *kwnames[] = {
10244 (char *) "encIn",(char *) "encOut", NULL
10245 };
10246
10247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10248 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10249 if (PyErr_Occurred()) SWIG_fail;
10250 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10251 if (PyErr_Occurred()) SWIG_fail;
10252 {
10253 PyThreadState* __tstate = wxPyBeginAllowThreads();
10254 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10255
10256 wxPyEndAllowThreads(__tstate);
10257 if (PyErr_Occurred()) SWIG_fail;
10258 }
10259 {
10260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10261 }
10262 return resultobj;
10263 fail:
10264 return NULL;
10265 }
10266
10267
10268 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10269 PyObject *obj;
10270 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10271 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10272 Py_INCREF(obj);
10273 return Py_BuildValue((char *)"");
10274 }
10275 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10276 PyObject *resultobj;
10277 wxDC *arg1 = (wxDC *) 0 ;
10278 PyObject * obj0 = 0 ;
10279 char *kwnames[] = {
10280 (char *) "self", NULL
10281 };
10282
10283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10286 {
10287 PyThreadState* __tstate = wxPyBeginAllowThreads();
10288 delete arg1;
10289
10290 wxPyEndAllowThreads(__tstate);
10291 if (PyErr_Occurred()) SWIG_fail;
10292 }
10293 Py_INCREF(Py_None); resultobj = Py_None;
10294 return resultobj;
10295 fail:
10296 return NULL;
10297 }
10298
10299
10300 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10301 PyObject *resultobj;
10302 wxDC *arg1 = (wxDC *) 0 ;
10303 PyObject * obj0 = 0 ;
10304 char *kwnames[] = {
10305 (char *) "self", NULL
10306 };
10307
10308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10311 {
10312 PyThreadState* __tstate = wxPyBeginAllowThreads();
10313 (arg1)->BeginDrawing();
10314
10315 wxPyEndAllowThreads(__tstate);
10316 if (PyErr_Occurred()) SWIG_fail;
10317 }
10318 Py_INCREF(Py_None); resultobj = Py_None;
10319 return resultobj;
10320 fail:
10321 return NULL;
10322 }
10323
10324
10325 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10326 PyObject *resultobj;
10327 wxDC *arg1 = (wxDC *) 0 ;
10328 PyObject * obj0 = 0 ;
10329 char *kwnames[] = {
10330 (char *) "self", NULL
10331 };
10332
10333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10336 {
10337 PyThreadState* __tstate = wxPyBeginAllowThreads();
10338 (arg1)->EndDrawing();
10339
10340 wxPyEndAllowThreads(__tstate);
10341 if (PyErr_Occurred()) SWIG_fail;
10342 }
10343 Py_INCREF(Py_None); resultobj = Py_None;
10344 return resultobj;
10345 fail:
10346 return NULL;
10347 }
10348
10349
10350 static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10351 PyObject *resultobj;
10352 wxDC *arg1 = (wxDC *) 0 ;
10353 int arg2 ;
10354 int arg3 ;
10355 wxColour *arg4 = 0 ;
10356 int arg5 = (int) wxFLOOD_SURFACE ;
10357 bool result;
10358 wxColour temp4 ;
10359 PyObject * obj0 = 0 ;
10360 PyObject * obj1 = 0 ;
10361 PyObject * obj2 = 0 ;
10362 PyObject * obj3 = 0 ;
10363 PyObject * obj4 = 0 ;
10364 char *kwnames[] = {
10365 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10366 };
10367
10368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10371 arg2 = (int) SWIG_AsInt(obj1);
10372 if (PyErr_Occurred()) SWIG_fail;
10373 arg3 = (int) SWIG_AsInt(obj2);
10374 if (PyErr_Occurred()) SWIG_fail;
10375 {
10376 arg4 = &temp4;
10377 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10378 }
10379 if (obj4) {
10380 arg5 = (int) SWIG_AsInt(obj4);
10381 if (PyErr_Occurred()) SWIG_fail;
10382 }
10383 {
10384 PyThreadState* __tstate = wxPyBeginAllowThreads();
10385 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10386
10387 wxPyEndAllowThreads(__tstate);
10388 if (PyErr_Occurred()) SWIG_fail;
10389 }
10390 {
10391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10392 }
10393 return resultobj;
10394 fail:
10395 return NULL;
10396 }
10397
10398
10399 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
10400 PyObject *resultobj;
10401 wxDC *arg1 = (wxDC *) 0 ;
10402 wxPoint *arg2 = 0 ;
10403 wxColour *arg3 = 0 ;
10404 int arg4 = (int) wxFLOOD_SURFACE ;
10405 bool result;
10406 wxPoint temp2 ;
10407 wxColour temp3 ;
10408 PyObject * obj0 = 0 ;
10409 PyObject * obj1 = 0 ;
10410 PyObject * obj2 = 0 ;
10411 PyObject * obj3 = 0 ;
10412 char *kwnames[] = {
10413 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10414 };
10415
10416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10419 {
10420 arg2 = &temp2;
10421 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10422 }
10423 {
10424 arg3 = &temp3;
10425 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10426 }
10427 if (obj3) {
10428 arg4 = (int) SWIG_AsInt(obj3);
10429 if (PyErr_Occurred()) SWIG_fail;
10430 }
10431 {
10432 PyThreadState* __tstate = wxPyBeginAllowThreads();
10433 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10434
10435 wxPyEndAllowThreads(__tstate);
10436 if (PyErr_Occurred()) SWIG_fail;
10437 }
10438 {
10439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10440 }
10441 return resultobj;
10442 fail:
10443 return NULL;
10444 }
10445
10446
10447 static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10448 PyObject *resultobj;
10449 wxDC *arg1 = (wxDC *) 0 ;
10450 int arg2 ;
10451 int arg3 ;
10452 wxColour result;
10453 PyObject * obj0 = 0 ;
10454 PyObject * obj1 = 0 ;
10455 PyObject * obj2 = 0 ;
10456 char *kwnames[] = {
10457 (char *) "self",(char *) "x",(char *) "y", NULL
10458 };
10459
10460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10463 arg2 = (int) SWIG_AsInt(obj1);
10464 if (PyErr_Occurred()) SWIG_fail;
10465 arg3 = (int) SWIG_AsInt(obj2);
10466 if (PyErr_Occurred()) SWIG_fail;
10467 {
10468 PyThreadState* __tstate = wxPyBeginAllowThreads();
10469 result = wxDC_GetPixelXY(arg1,arg2,arg3);
10470
10471 wxPyEndAllowThreads(__tstate);
10472 if (PyErr_Occurred()) SWIG_fail;
10473 }
10474 {
10475 wxColour * resultptr;
10476 resultptr = new wxColour((wxColour &) result);
10477 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10478 }
10479 return resultobj;
10480 fail:
10481 return NULL;
10482 }
10483
10484
10485 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10486 PyObject *resultobj;
10487 wxDC *arg1 = (wxDC *) 0 ;
10488 wxPoint *arg2 = 0 ;
10489 wxColour result;
10490 wxPoint temp2 ;
10491 PyObject * obj0 = 0 ;
10492 PyObject * obj1 = 0 ;
10493 char *kwnames[] = {
10494 (char *) "self",(char *) "pt", NULL
10495 };
10496
10497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
10498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10500 {
10501 arg2 = &temp2;
10502 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10503 }
10504 {
10505 PyThreadState* __tstate = wxPyBeginAllowThreads();
10506 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
10507
10508 wxPyEndAllowThreads(__tstate);
10509 if (PyErr_Occurred()) SWIG_fail;
10510 }
10511 {
10512 wxColour * resultptr;
10513 resultptr = new wxColour((wxColour &) result);
10514 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10515 }
10516 return resultobj;
10517 fail:
10518 return NULL;
10519 }
10520
10521
10522 static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10523 PyObject *resultobj;
10524 wxDC *arg1 = (wxDC *) 0 ;
10525 int arg2 ;
10526 int arg3 ;
10527 int arg4 ;
10528 int arg5 ;
10529 PyObject * obj0 = 0 ;
10530 PyObject * obj1 = 0 ;
10531 PyObject * obj2 = 0 ;
10532 PyObject * obj3 = 0 ;
10533 PyObject * obj4 = 0 ;
10534 char *kwnames[] = {
10535 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10536 };
10537
10538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10541 arg2 = (int) SWIG_AsInt(obj1);
10542 if (PyErr_Occurred()) SWIG_fail;
10543 arg3 = (int) SWIG_AsInt(obj2);
10544 if (PyErr_Occurred()) SWIG_fail;
10545 arg4 = (int) SWIG_AsInt(obj3);
10546 if (PyErr_Occurred()) SWIG_fail;
10547 arg5 = (int) SWIG_AsInt(obj4);
10548 if (PyErr_Occurred()) SWIG_fail;
10549 {
10550 PyThreadState* __tstate = wxPyBeginAllowThreads();
10551 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10552
10553 wxPyEndAllowThreads(__tstate);
10554 if (PyErr_Occurred()) SWIG_fail;
10555 }
10556 Py_INCREF(Py_None); resultobj = Py_None;
10557 return resultobj;
10558 fail:
10559 return NULL;
10560 }
10561
10562
10563 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
10564 PyObject *resultobj;
10565 wxDC *arg1 = (wxDC *) 0 ;
10566 wxPoint *arg2 = 0 ;
10567 wxPoint *arg3 = 0 ;
10568 wxPoint temp2 ;
10569 wxPoint temp3 ;
10570 PyObject * obj0 = 0 ;
10571 PyObject * obj1 = 0 ;
10572 PyObject * obj2 = 0 ;
10573 char *kwnames[] = {
10574 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10575 };
10576
10577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
10578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10580 {
10581 arg2 = &temp2;
10582 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10583 }
10584 {
10585 arg3 = &temp3;
10586 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10587 }
10588 {
10589 PyThreadState* __tstate = wxPyBeginAllowThreads();
10590 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10591
10592 wxPyEndAllowThreads(__tstate);
10593 if (PyErr_Occurred()) SWIG_fail;
10594 }
10595 Py_INCREF(Py_None); resultobj = Py_None;
10596 return resultobj;
10597 fail:
10598 return NULL;
10599 }
10600
10601
10602 static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10603 PyObject *resultobj;
10604 wxDC *arg1 = (wxDC *) 0 ;
10605 int arg2 ;
10606 int arg3 ;
10607 PyObject * obj0 = 0 ;
10608 PyObject * obj1 = 0 ;
10609 PyObject * obj2 = 0 ;
10610 char *kwnames[] = {
10611 (char *) "self",(char *) "x",(char *) "y", NULL
10612 };
10613
10614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10617 arg2 = (int) SWIG_AsInt(obj1);
10618 if (PyErr_Occurred()) SWIG_fail;
10619 arg3 = (int) SWIG_AsInt(obj2);
10620 if (PyErr_Occurred()) SWIG_fail;
10621 {
10622 PyThreadState* __tstate = wxPyBeginAllowThreads();
10623 (arg1)->CrossHair(arg2,arg3);
10624
10625 wxPyEndAllowThreads(__tstate);
10626 if (PyErr_Occurred()) SWIG_fail;
10627 }
10628 Py_INCREF(Py_None); resultobj = Py_None;
10629 return resultobj;
10630 fail:
10631 return NULL;
10632 }
10633
10634
10635 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
10636 PyObject *resultobj;
10637 wxDC *arg1 = (wxDC *) 0 ;
10638 wxPoint *arg2 = 0 ;
10639 wxPoint temp2 ;
10640 PyObject * obj0 = 0 ;
10641 PyObject * obj1 = 0 ;
10642 char *kwnames[] = {
10643 (char *) "self",(char *) "pt", NULL
10644 };
10645
10646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
10647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10649 {
10650 arg2 = &temp2;
10651 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10652 }
10653 {
10654 PyThreadState* __tstate = wxPyBeginAllowThreads();
10655 (arg1)->CrossHair((wxPoint const &)*arg2);
10656
10657 wxPyEndAllowThreads(__tstate);
10658 if (PyErr_Occurred()) SWIG_fail;
10659 }
10660 Py_INCREF(Py_None); resultobj = Py_None;
10661 return resultobj;
10662 fail:
10663 return NULL;
10664 }
10665
10666
10667 static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10668 PyObject *resultobj;
10669 wxDC *arg1 = (wxDC *) 0 ;
10670 int arg2 ;
10671 int arg3 ;
10672 int arg4 ;
10673 int arg5 ;
10674 int arg6 ;
10675 int arg7 ;
10676 PyObject * obj0 = 0 ;
10677 PyObject * obj1 = 0 ;
10678 PyObject * obj2 = 0 ;
10679 PyObject * obj3 = 0 ;
10680 PyObject * obj4 = 0 ;
10681 PyObject * obj5 = 0 ;
10682 PyObject * obj6 = 0 ;
10683 char *kwnames[] = {
10684 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10685 };
10686
10687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10690 arg2 = (int) SWIG_AsInt(obj1);
10691 if (PyErr_Occurred()) SWIG_fail;
10692 arg3 = (int) SWIG_AsInt(obj2);
10693 if (PyErr_Occurred()) SWIG_fail;
10694 arg4 = (int) SWIG_AsInt(obj3);
10695 if (PyErr_Occurred()) SWIG_fail;
10696 arg5 = (int) SWIG_AsInt(obj4);
10697 if (PyErr_Occurred()) SWIG_fail;
10698 arg6 = (int) SWIG_AsInt(obj5);
10699 if (PyErr_Occurred()) SWIG_fail;
10700 arg7 = (int) SWIG_AsInt(obj6);
10701 if (PyErr_Occurred()) SWIG_fail;
10702 {
10703 PyThreadState* __tstate = wxPyBeginAllowThreads();
10704 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10705
10706 wxPyEndAllowThreads(__tstate);
10707 if (PyErr_Occurred()) SWIG_fail;
10708 }
10709 Py_INCREF(Py_None); resultobj = Py_None;
10710 return resultobj;
10711 fail:
10712 return NULL;
10713 }
10714
10715
10716 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10717 PyObject *resultobj;
10718 wxDC *arg1 = (wxDC *) 0 ;
10719 wxPoint *arg2 = 0 ;
10720 wxPoint *arg3 = 0 ;
10721 wxPoint *arg4 = 0 ;
10722 wxPoint temp2 ;
10723 wxPoint temp3 ;
10724 wxPoint temp4 ;
10725 PyObject * obj0 = 0 ;
10726 PyObject * obj1 = 0 ;
10727 PyObject * obj2 = 0 ;
10728 PyObject * obj3 = 0 ;
10729 char *kwnames[] = {
10730 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10731 };
10732
10733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10736 {
10737 arg2 = &temp2;
10738 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10739 }
10740 {
10741 arg3 = &temp3;
10742 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10743 }
10744 {
10745 arg4 = &temp4;
10746 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10747 }
10748 {
10749 PyThreadState* __tstate = wxPyBeginAllowThreads();
10750 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10751
10752 wxPyEndAllowThreads(__tstate);
10753 if (PyErr_Occurred()) SWIG_fail;
10754 }
10755 Py_INCREF(Py_None); resultobj = Py_None;
10756 return resultobj;
10757 fail:
10758 return NULL;
10759 }
10760
10761
10762 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10763 PyObject *resultobj;
10764 wxDC *arg1 = (wxDC *) 0 ;
10765 int arg2 ;
10766 int arg3 ;
10767 int arg4 ;
10768 int arg5 ;
10769 PyObject * obj0 = 0 ;
10770 PyObject * obj1 = 0 ;
10771 PyObject * obj2 = 0 ;
10772 PyObject * obj3 = 0 ;
10773 PyObject * obj4 = 0 ;
10774 char *kwnames[] = {
10775 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10776 };
10777
10778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10781 arg2 = (int) SWIG_AsInt(obj1);
10782 if (PyErr_Occurred()) SWIG_fail;
10783 arg3 = (int) SWIG_AsInt(obj2);
10784 if (PyErr_Occurred()) SWIG_fail;
10785 arg4 = (int) SWIG_AsInt(obj3);
10786 if (PyErr_Occurred()) SWIG_fail;
10787 arg5 = (int) SWIG_AsInt(obj4);
10788 if (PyErr_Occurred()) SWIG_fail;
10789 {
10790 PyThreadState* __tstate = wxPyBeginAllowThreads();
10791 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10792
10793 wxPyEndAllowThreads(__tstate);
10794 if (PyErr_Occurred()) SWIG_fail;
10795 }
10796 Py_INCREF(Py_None); resultobj = Py_None;
10797 return resultobj;
10798 fail:
10799 return NULL;
10800 }
10801
10802
10803 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
10804 PyObject *resultobj;
10805 wxDC *arg1 = (wxDC *) 0 ;
10806 wxRect *arg2 = 0 ;
10807 wxRect temp2 ;
10808 PyObject * obj0 = 0 ;
10809 PyObject * obj1 = 0 ;
10810 char *kwnames[] = {
10811 (char *) "self",(char *) "rect", NULL
10812 };
10813
10814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
10815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10817 {
10818 arg2 = &temp2;
10819 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10820 }
10821 {
10822 PyThreadState* __tstate = wxPyBeginAllowThreads();
10823 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10824
10825 wxPyEndAllowThreads(__tstate);
10826 if (PyErr_Occurred()) SWIG_fail;
10827 }
10828 Py_INCREF(Py_None); resultobj = Py_None;
10829 return resultobj;
10830 fail:
10831 return NULL;
10832 }
10833
10834
10835 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10836 PyObject *resultobj;
10837 wxDC *arg1 = (wxDC *) 0 ;
10838 int arg2 ;
10839 int arg3 ;
10840 int arg4 ;
10841 int arg5 ;
10842 double arg6 ;
10843 double arg7 ;
10844 PyObject * obj0 = 0 ;
10845 PyObject * obj1 = 0 ;
10846 PyObject * obj2 = 0 ;
10847 PyObject * obj3 = 0 ;
10848 PyObject * obj4 = 0 ;
10849 PyObject * obj5 = 0 ;
10850 PyObject * obj6 = 0 ;
10851 char *kwnames[] = {
10852 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
10853 };
10854
10855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10858 arg2 = (int) SWIG_AsInt(obj1);
10859 if (PyErr_Occurred()) SWIG_fail;
10860 arg3 = (int) SWIG_AsInt(obj2);
10861 if (PyErr_Occurred()) SWIG_fail;
10862 arg4 = (int) SWIG_AsInt(obj3);
10863 if (PyErr_Occurred()) SWIG_fail;
10864 arg5 = (int) SWIG_AsInt(obj4);
10865 if (PyErr_Occurred()) SWIG_fail;
10866 arg6 = (double) SWIG_AsDouble(obj5);
10867 if (PyErr_Occurred()) SWIG_fail;
10868 arg7 = (double) SWIG_AsDouble(obj6);
10869 if (PyErr_Occurred()) SWIG_fail;
10870 {
10871 PyThreadState* __tstate = wxPyBeginAllowThreads();
10872 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
10873
10874 wxPyEndAllowThreads(__tstate);
10875 if (PyErr_Occurred()) SWIG_fail;
10876 }
10877 Py_INCREF(Py_None); resultobj = Py_None;
10878 return resultobj;
10879 fail:
10880 return NULL;
10881 }
10882
10883
10884 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10885 PyObject *resultobj;
10886 wxDC *arg1 = (wxDC *) 0 ;
10887 wxPoint *arg2 = 0 ;
10888 wxSize *arg3 = 0 ;
10889 double arg4 ;
10890 double arg5 ;
10891 wxPoint temp2 ;
10892 wxSize temp3 ;
10893 PyObject * obj0 = 0 ;
10894 PyObject * obj1 = 0 ;
10895 PyObject * obj2 = 0 ;
10896 PyObject * obj3 = 0 ;
10897 PyObject * obj4 = 0 ;
10898 char *kwnames[] = {
10899 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
10900 };
10901
10902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10905 {
10906 arg2 = &temp2;
10907 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10908 }
10909 {
10910 arg3 = &temp3;
10911 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10912 }
10913 arg4 = (double) SWIG_AsDouble(obj3);
10914 if (PyErr_Occurred()) SWIG_fail;
10915 arg5 = (double) SWIG_AsDouble(obj4);
10916 if (PyErr_Occurred()) SWIG_fail;
10917 {
10918 PyThreadState* __tstate = wxPyBeginAllowThreads();
10919 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
10920
10921 wxPyEndAllowThreads(__tstate);
10922 if (PyErr_Occurred()) SWIG_fail;
10923 }
10924 Py_INCREF(Py_None); resultobj = Py_None;
10925 return resultobj;
10926 fail:
10927 return NULL;
10928 }
10929
10930
10931 static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10932 PyObject *resultobj;
10933 wxDC *arg1 = (wxDC *) 0 ;
10934 int arg2 ;
10935 int arg3 ;
10936 PyObject * obj0 = 0 ;
10937 PyObject * obj1 = 0 ;
10938 PyObject * obj2 = 0 ;
10939 char *kwnames[] = {
10940 (char *) "self",(char *) "x",(char *) "y", NULL
10941 };
10942
10943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10946 arg2 = (int) SWIG_AsInt(obj1);
10947 if (PyErr_Occurred()) SWIG_fail;
10948 arg3 = (int) SWIG_AsInt(obj2);
10949 if (PyErr_Occurred()) SWIG_fail;
10950 {
10951 PyThreadState* __tstate = wxPyBeginAllowThreads();
10952 (arg1)->DrawPoint(arg2,arg3);
10953
10954 wxPyEndAllowThreads(__tstate);
10955 if (PyErr_Occurred()) SWIG_fail;
10956 }
10957 Py_INCREF(Py_None); resultobj = Py_None;
10958 return resultobj;
10959 fail:
10960 return NULL;
10961 }
10962
10963
10964 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10965 PyObject *resultobj;
10966 wxDC *arg1 = (wxDC *) 0 ;
10967 wxPoint *arg2 = 0 ;
10968 wxPoint temp2 ;
10969 PyObject * obj0 = 0 ;
10970 PyObject * obj1 = 0 ;
10971 char *kwnames[] = {
10972 (char *) "self",(char *) "pt", NULL
10973 };
10974
10975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
10976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10978 {
10979 arg2 = &temp2;
10980 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10981 }
10982 {
10983 PyThreadState* __tstate = wxPyBeginAllowThreads();
10984 (arg1)->DrawPoint((wxPoint const &)*arg2);
10985
10986 wxPyEndAllowThreads(__tstate);
10987 if (PyErr_Occurred()) SWIG_fail;
10988 }
10989 Py_INCREF(Py_None); resultobj = Py_None;
10990 return resultobj;
10991 fail:
10992 return NULL;
10993 }
10994
10995
10996 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10997 PyObject *resultobj;
10998 wxDC *arg1 = (wxDC *) 0 ;
10999 int arg2 ;
11000 int arg3 ;
11001 int arg4 ;
11002 int arg5 ;
11003 PyObject * obj0 = 0 ;
11004 PyObject * obj1 = 0 ;
11005 PyObject * obj2 = 0 ;
11006 PyObject * obj3 = 0 ;
11007 PyObject * obj4 = 0 ;
11008 char *kwnames[] = {
11009 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11010 };
11011
11012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11015 arg2 = (int) SWIG_AsInt(obj1);
11016 if (PyErr_Occurred()) SWIG_fail;
11017 arg3 = (int) SWIG_AsInt(obj2);
11018 if (PyErr_Occurred()) SWIG_fail;
11019 arg4 = (int) SWIG_AsInt(obj3);
11020 if (PyErr_Occurred()) SWIG_fail;
11021 arg5 = (int) SWIG_AsInt(obj4);
11022 if (PyErr_Occurred()) SWIG_fail;
11023 {
11024 PyThreadState* __tstate = wxPyBeginAllowThreads();
11025 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11026
11027 wxPyEndAllowThreads(__tstate);
11028 if (PyErr_Occurred()) SWIG_fail;
11029 }
11030 Py_INCREF(Py_None); resultobj = Py_None;
11031 return resultobj;
11032 fail:
11033 return NULL;
11034 }
11035
11036
11037 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11038 PyObject *resultobj;
11039 wxDC *arg1 = (wxDC *) 0 ;
11040 wxPoint *arg2 = 0 ;
11041 wxSize *arg3 = 0 ;
11042 wxPoint temp2 ;
11043 wxSize temp3 ;
11044 PyObject * obj0 = 0 ;
11045 PyObject * obj1 = 0 ;
11046 PyObject * obj2 = 0 ;
11047 char *kwnames[] = {
11048 (char *) "self",(char *) "pt",(char *) "sz", NULL
11049 };
11050
11051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11054 {
11055 arg2 = &temp2;
11056 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11057 }
11058 {
11059 arg3 = &temp3;
11060 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11061 }
11062 {
11063 PyThreadState* __tstate = wxPyBeginAllowThreads();
11064 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11065
11066 wxPyEndAllowThreads(__tstate);
11067 if (PyErr_Occurred()) SWIG_fail;
11068 }
11069 Py_INCREF(Py_None); resultobj = Py_None;
11070 return resultobj;
11071 fail:
11072 return NULL;
11073 }
11074
11075
11076 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11077 PyObject *resultobj;
11078 wxDC *arg1 = (wxDC *) 0 ;
11079 wxRect *arg2 = 0 ;
11080 wxRect temp2 ;
11081 PyObject * obj0 = 0 ;
11082 PyObject * obj1 = 0 ;
11083 char *kwnames[] = {
11084 (char *) "self",(char *) "rect", NULL
11085 };
11086
11087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11090 {
11091 arg2 = &temp2;
11092 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11093 }
11094 {
11095 PyThreadState* __tstate = wxPyBeginAllowThreads();
11096 (arg1)->DrawRectangle((wxRect const &)*arg2);
11097
11098 wxPyEndAllowThreads(__tstate);
11099 if (PyErr_Occurred()) SWIG_fail;
11100 }
11101 Py_INCREF(Py_None); resultobj = Py_None;
11102 return resultobj;
11103 fail:
11104 return NULL;
11105 }
11106
11107
11108 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11109 PyObject *resultobj;
11110 wxDC *arg1 = (wxDC *) 0 ;
11111 int arg2 ;
11112 int arg3 ;
11113 int arg4 ;
11114 int arg5 ;
11115 double arg6 ;
11116 PyObject * obj0 = 0 ;
11117 PyObject * obj1 = 0 ;
11118 PyObject * obj2 = 0 ;
11119 PyObject * obj3 = 0 ;
11120 PyObject * obj4 = 0 ;
11121 PyObject * obj5 = 0 ;
11122 char *kwnames[] = {
11123 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11124 };
11125
11126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11129 arg2 = (int) SWIG_AsInt(obj1);
11130 if (PyErr_Occurred()) SWIG_fail;
11131 arg3 = (int) SWIG_AsInt(obj2);
11132 if (PyErr_Occurred()) SWIG_fail;
11133 arg4 = (int) SWIG_AsInt(obj3);
11134 if (PyErr_Occurred()) SWIG_fail;
11135 arg5 = (int) SWIG_AsInt(obj4);
11136 if (PyErr_Occurred()) SWIG_fail;
11137 arg6 = (double) SWIG_AsDouble(obj5);
11138 if (PyErr_Occurred()) SWIG_fail;
11139 {
11140 PyThreadState* __tstate = wxPyBeginAllowThreads();
11141 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11142
11143 wxPyEndAllowThreads(__tstate);
11144 if (PyErr_Occurred()) SWIG_fail;
11145 }
11146 Py_INCREF(Py_None); resultobj = Py_None;
11147 return resultobj;
11148 fail:
11149 return NULL;
11150 }
11151
11152
11153 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11154 PyObject *resultobj;
11155 wxDC *arg1 = (wxDC *) 0 ;
11156 wxPoint *arg2 = 0 ;
11157 wxSize *arg3 = 0 ;
11158 double arg4 ;
11159 wxPoint temp2 ;
11160 wxSize temp3 ;
11161 PyObject * obj0 = 0 ;
11162 PyObject * obj1 = 0 ;
11163 PyObject * obj2 = 0 ;
11164 PyObject * obj3 = 0 ;
11165 char *kwnames[] = {
11166 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11167 };
11168
11169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11172 {
11173 arg2 = &temp2;
11174 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11175 }
11176 {
11177 arg3 = &temp3;
11178 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11179 }
11180 arg4 = (double) SWIG_AsDouble(obj3);
11181 if (PyErr_Occurred()) SWIG_fail;
11182 {
11183 PyThreadState* __tstate = wxPyBeginAllowThreads();
11184 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11185
11186 wxPyEndAllowThreads(__tstate);
11187 if (PyErr_Occurred()) SWIG_fail;
11188 }
11189 Py_INCREF(Py_None); resultobj = Py_None;
11190 return resultobj;
11191 fail:
11192 return NULL;
11193 }
11194
11195
11196 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11197 PyObject *resultobj;
11198 wxDC *arg1 = (wxDC *) 0 ;
11199 wxRect *arg2 = 0 ;
11200 double arg3 ;
11201 wxRect temp2 ;
11202 PyObject * obj0 = 0 ;
11203 PyObject * obj1 = 0 ;
11204 PyObject * obj2 = 0 ;
11205 char *kwnames[] = {
11206 (char *) "self",(char *) "r",(char *) "radius", NULL
11207 };
11208
11209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) 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 arg3 = (double) SWIG_AsDouble(obj2);
11217 if (PyErr_Occurred()) SWIG_fail;
11218 {
11219 PyThreadState* __tstate = wxPyBeginAllowThreads();
11220 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11221
11222 wxPyEndAllowThreads(__tstate);
11223 if (PyErr_Occurred()) SWIG_fail;
11224 }
11225 Py_INCREF(Py_None); resultobj = Py_None;
11226 return resultobj;
11227 fail:
11228 return NULL;
11229 }
11230
11231
11232 static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11233 PyObject *resultobj;
11234 wxDC *arg1 = (wxDC *) 0 ;
11235 int arg2 ;
11236 int arg3 ;
11237 int arg4 ;
11238 PyObject * obj0 = 0 ;
11239 PyObject * obj1 = 0 ;
11240 PyObject * obj2 = 0 ;
11241 PyObject * obj3 = 0 ;
11242 char *kwnames[] = {
11243 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11244 };
11245
11246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11249 arg2 = (int) SWIG_AsInt(obj1);
11250 if (PyErr_Occurred()) SWIG_fail;
11251 arg3 = (int) SWIG_AsInt(obj2);
11252 if (PyErr_Occurred()) SWIG_fail;
11253 arg4 = (int) SWIG_AsInt(obj3);
11254 if (PyErr_Occurred()) SWIG_fail;
11255 {
11256 PyThreadState* __tstate = wxPyBeginAllowThreads();
11257 (arg1)->DrawCircle(arg2,arg3,arg4);
11258
11259 wxPyEndAllowThreads(__tstate);
11260 if (PyErr_Occurred()) SWIG_fail;
11261 }
11262 Py_INCREF(Py_None); resultobj = Py_None;
11263 return resultobj;
11264 fail:
11265 return NULL;
11266 }
11267
11268
11269 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11270 PyObject *resultobj;
11271 wxDC *arg1 = (wxDC *) 0 ;
11272 wxPoint *arg2 = 0 ;
11273 int arg3 ;
11274 wxPoint temp2 ;
11275 PyObject * obj0 = 0 ;
11276 PyObject * obj1 = 0 ;
11277 PyObject * obj2 = 0 ;
11278 char *kwnames[] = {
11279 (char *) "self",(char *) "pt",(char *) "radius", NULL
11280 };
11281
11282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11285 {
11286 arg2 = &temp2;
11287 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11288 }
11289 arg3 = (int) SWIG_AsInt(obj2);
11290 if (PyErr_Occurred()) SWIG_fail;
11291 {
11292 PyThreadState* __tstate = wxPyBeginAllowThreads();
11293 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11294
11295 wxPyEndAllowThreads(__tstate);
11296 if (PyErr_Occurred()) SWIG_fail;
11297 }
11298 Py_INCREF(Py_None); resultobj = Py_None;
11299 return resultobj;
11300 fail:
11301 return NULL;
11302 }
11303
11304
11305 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11306 PyObject *resultobj;
11307 wxDC *arg1 = (wxDC *) 0 ;
11308 int arg2 ;
11309 int arg3 ;
11310 int arg4 ;
11311 int arg5 ;
11312 PyObject * obj0 = 0 ;
11313 PyObject * obj1 = 0 ;
11314 PyObject * obj2 = 0 ;
11315 PyObject * obj3 = 0 ;
11316 PyObject * obj4 = 0 ;
11317 char *kwnames[] = {
11318 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11319 };
11320
11321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11324 arg2 = (int) SWIG_AsInt(obj1);
11325 if (PyErr_Occurred()) SWIG_fail;
11326 arg3 = (int) SWIG_AsInt(obj2);
11327 if (PyErr_Occurred()) SWIG_fail;
11328 arg4 = (int) SWIG_AsInt(obj3);
11329 if (PyErr_Occurred()) SWIG_fail;
11330 arg5 = (int) SWIG_AsInt(obj4);
11331 if (PyErr_Occurred()) SWIG_fail;
11332 {
11333 PyThreadState* __tstate = wxPyBeginAllowThreads();
11334 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11335
11336 wxPyEndAllowThreads(__tstate);
11337 if (PyErr_Occurred()) SWIG_fail;
11338 }
11339 Py_INCREF(Py_None); resultobj = Py_None;
11340 return resultobj;
11341 fail:
11342 return NULL;
11343 }
11344
11345
11346 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11347 PyObject *resultobj;
11348 wxDC *arg1 = (wxDC *) 0 ;
11349 wxPoint *arg2 = 0 ;
11350 wxSize *arg3 = 0 ;
11351 wxPoint temp2 ;
11352 wxSize temp3 ;
11353 PyObject * obj0 = 0 ;
11354 PyObject * obj1 = 0 ;
11355 PyObject * obj2 = 0 ;
11356 char *kwnames[] = {
11357 (char *) "self",(char *) "pt",(char *) "sz", NULL
11358 };
11359
11360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
11361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11363 {
11364 arg2 = &temp2;
11365 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11366 }
11367 {
11368 arg3 = &temp3;
11369 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11370 }
11371 {
11372 PyThreadState* __tstate = wxPyBeginAllowThreads();
11373 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11374
11375 wxPyEndAllowThreads(__tstate);
11376 if (PyErr_Occurred()) SWIG_fail;
11377 }
11378 Py_INCREF(Py_None); resultobj = Py_None;
11379 return resultobj;
11380 fail:
11381 return NULL;
11382 }
11383
11384
11385 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11386 PyObject *resultobj;
11387 wxDC *arg1 = (wxDC *) 0 ;
11388 wxRect *arg2 = 0 ;
11389 wxRect temp2 ;
11390 PyObject * obj0 = 0 ;
11391 PyObject * obj1 = 0 ;
11392 char *kwnames[] = {
11393 (char *) "self",(char *) "rect", NULL
11394 };
11395
11396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11399 {
11400 arg2 = &temp2;
11401 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11402 }
11403 {
11404 PyThreadState* __tstate = wxPyBeginAllowThreads();
11405 (arg1)->DrawEllipse((wxRect const &)*arg2);
11406
11407 wxPyEndAllowThreads(__tstate);
11408 if (PyErr_Occurred()) SWIG_fail;
11409 }
11410 Py_INCREF(Py_None); resultobj = Py_None;
11411 return resultobj;
11412 fail:
11413 return NULL;
11414 }
11415
11416
11417 static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11418 PyObject *resultobj;
11419 wxDC *arg1 = (wxDC *) 0 ;
11420 wxIcon *arg2 = 0 ;
11421 int arg3 ;
11422 int arg4 ;
11423 PyObject * obj0 = 0 ;
11424 PyObject * obj1 = 0 ;
11425 PyObject * obj2 = 0 ;
11426 PyObject * obj3 = 0 ;
11427 char *kwnames[] = {
11428 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11429 };
11430
11431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11434 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11435 SWIG_POINTER_EXCEPTION | 0)) == -1)
11436 SWIG_fail;
11437 if (arg2 == NULL) {
11438 PyErr_SetString(PyExc_TypeError,"null reference");
11439 SWIG_fail;
11440 }
11441 arg3 = (int) SWIG_AsInt(obj2);
11442 if (PyErr_Occurred()) SWIG_fail;
11443 arg4 = (int) SWIG_AsInt(obj3);
11444 if (PyErr_Occurred()) SWIG_fail;
11445 {
11446 PyThreadState* __tstate = wxPyBeginAllowThreads();
11447 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11448
11449 wxPyEndAllowThreads(__tstate);
11450 if (PyErr_Occurred()) SWIG_fail;
11451 }
11452 Py_INCREF(Py_None); resultobj = Py_None;
11453 return resultobj;
11454 fail:
11455 return NULL;
11456 }
11457
11458
11459 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11460 PyObject *resultobj;
11461 wxDC *arg1 = (wxDC *) 0 ;
11462 wxIcon *arg2 = 0 ;
11463 wxPoint *arg3 = 0 ;
11464 wxPoint temp3 ;
11465 PyObject * obj0 = 0 ;
11466 PyObject * obj1 = 0 ;
11467 PyObject * obj2 = 0 ;
11468 char *kwnames[] = {
11469 (char *) "self",(char *) "icon",(char *) "pt", NULL
11470 };
11471
11472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
11473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11475 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11476 SWIG_POINTER_EXCEPTION | 0)) == -1)
11477 SWIG_fail;
11478 if (arg2 == NULL) {
11479 PyErr_SetString(PyExc_TypeError,"null reference");
11480 SWIG_fail;
11481 }
11482 {
11483 arg3 = &temp3;
11484 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11485 }
11486 {
11487 PyThreadState* __tstate = wxPyBeginAllowThreads();
11488 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11489
11490 wxPyEndAllowThreads(__tstate);
11491 if (PyErr_Occurred()) SWIG_fail;
11492 }
11493 Py_INCREF(Py_None); resultobj = Py_None;
11494 return resultobj;
11495 fail:
11496 return NULL;
11497 }
11498
11499
11500 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11501 PyObject *resultobj;
11502 wxDC *arg1 = (wxDC *) 0 ;
11503 wxBitmap *arg2 = 0 ;
11504 int arg3 ;
11505 int arg4 ;
11506 bool arg5 = (bool) False ;
11507 PyObject * obj0 = 0 ;
11508 PyObject * obj1 = 0 ;
11509 PyObject * obj2 = 0 ;
11510 PyObject * obj3 = 0 ;
11511 PyObject * obj4 = 0 ;
11512 char *kwnames[] = {
11513 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11514 };
11515
11516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11519 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11520 SWIG_POINTER_EXCEPTION | 0)) == -1)
11521 SWIG_fail;
11522 if (arg2 == NULL) {
11523 PyErr_SetString(PyExc_TypeError,"null reference");
11524 SWIG_fail;
11525 }
11526 arg3 = (int) SWIG_AsInt(obj2);
11527 if (PyErr_Occurred()) SWIG_fail;
11528 arg4 = (int) SWIG_AsInt(obj3);
11529 if (PyErr_Occurred()) SWIG_fail;
11530 if (obj4) {
11531 arg5 = (bool) SWIG_AsBool(obj4);
11532 if (PyErr_Occurred()) SWIG_fail;
11533 }
11534 {
11535 PyThreadState* __tstate = wxPyBeginAllowThreads();
11536 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11537
11538 wxPyEndAllowThreads(__tstate);
11539 if (PyErr_Occurred()) SWIG_fail;
11540 }
11541 Py_INCREF(Py_None); resultobj = Py_None;
11542 return resultobj;
11543 fail:
11544 return NULL;
11545 }
11546
11547
11548 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11549 PyObject *resultobj;
11550 wxDC *arg1 = (wxDC *) 0 ;
11551 wxBitmap *arg2 = 0 ;
11552 wxPoint *arg3 = 0 ;
11553 bool arg4 = (bool) False ;
11554 wxPoint temp3 ;
11555 PyObject * obj0 = 0 ;
11556 PyObject * obj1 = 0 ;
11557 PyObject * obj2 = 0 ;
11558 PyObject * obj3 = 0 ;
11559 char *kwnames[] = {
11560 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11561 };
11562
11563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11566 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11567 SWIG_POINTER_EXCEPTION | 0)) == -1)
11568 SWIG_fail;
11569 if (arg2 == NULL) {
11570 PyErr_SetString(PyExc_TypeError,"null reference");
11571 SWIG_fail;
11572 }
11573 {
11574 arg3 = &temp3;
11575 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11576 }
11577 if (obj3) {
11578 arg4 = (bool) SWIG_AsBool(obj3);
11579 if (PyErr_Occurred()) SWIG_fail;
11580 }
11581 {
11582 PyThreadState* __tstate = wxPyBeginAllowThreads();
11583 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11584
11585 wxPyEndAllowThreads(__tstate);
11586 if (PyErr_Occurred()) SWIG_fail;
11587 }
11588 Py_INCREF(Py_None); resultobj = Py_None;
11589 return resultobj;
11590 fail:
11591 return NULL;
11592 }
11593
11594
11595 static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11596 PyObject *resultobj;
11597 wxDC *arg1 = (wxDC *) 0 ;
11598 wxString *arg2 = 0 ;
11599 int arg3 ;
11600 int arg4 ;
11601 bool temp2 = False ;
11602 PyObject * obj0 = 0 ;
11603 PyObject * obj1 = 0 ;
11604 PyObject * obj2 = 0 ;
11605 PyObject * obj3 = 0 ;
11606 char *kwnames[] = {
11607 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11608 };
11609
11610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11613 {
11614 arg2 = wxString_in_helper(obj1);
11615 if (arg2 == NULL) SWIG_fail;
11616 temp2 = True;
11617 }
11618 arg3 = (int) SWIG_AsInt(obj2);
11619 if (PyErr_Occurred()) SWIG_fail;
11620 arg4 = (int) SWIG_AsInt(obj3);
11621 if (PyErr_Occurred()) SWIG_fail;
11622 {
11623 PyThreadState* __tstate = wxPyBeginAllowThreads();
11624 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11625
11626 wxPyEndAllowThreads(__tstate);
11627 if (PyErr_Occurred()) SWIG_fail;
11628 }
11629 Py_INCREF(Py_None); resultobj = Py_None;
11630 {
11631 if (temp2)
11632 delete arg2;
11633 }
11634 return resultobj;
11635 fail:
11636 {
11637 if (temp2)
11638 delete arg2;
11639 }
11640 return NULL;
11641 }
11642
11643
11644 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
11645 PyObject *resultobj;
11646 wxDC *arg1 = (wxDC *) 0 ;
11647 wxString *arg2 = 0 ;
11648 wxPoint *arg3 = 0 ;
11649 bool temp2 = False ;
11650 wxPoint temp3 ;
11651 PyObject * obj0 = 0 ;
11652 PyObject * obj1 = 0 ;
11653 PyObject * obj2 = 0 ;
11654 char *kwnames[] = {
11655 (char *) "self",(char *) "text",(char *) "pt", NULL
11656 };
11657
11658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
11659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11661 {
11662 arg2 = wxString_in_helper(obj1);
11663 if (arg2 == NULL) SWIG_fail;
11664 temp2 = True;
11665 }
11666 {
11667 arg3 = &temp3;
11668 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11669 }
11670 {
11671 PyThreadState* __tstate = wxPyBeginAllowThreads();
11672 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11673
11674 wxPyEndAllowThreads(__tstate);
11675 if (PyErr_Occurred()) SWIG_fail;
11676 }
11677 Py_INCREF(Py_None); resultobj = Py_None;
11678 {
11679 if (temp2)
11680 delete arg2;
11681 }
11682 return resultobj;
11683 fail:
11684 {
11685 if (temp2)
11686 delete arg2;
11687 }
11688 return NULL;
11689 }
11690
11691
11692 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11693 PyObject *resultobj;
11694 wxDC *arg1 = (wxDC *) 0 ;
11695 wxString *arg2 = 0 ;
11696 int arg3 ;
11697 int arg4 ;
11698 double arg5 ;
11699 bool temp2 = False ;
11700 PyObject * obj0 = 0 ;
11701 PyObject * obj1 = 0 ;
11702 PyObject * obj2 = 0 ;
11703 PyObject * obj3 = 0 ;
11704 PyObject * obj4 = 0 ;
11705 char *kwnames[] = {
11706 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11707 };
11708
11709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11712 {
11713 arg2 = wxString_in_helper(obj1);
11714 if (arg2 == NULL) SWIG_fail;
11715 temp2 = True;
11716 }
11717 arg3 = (int) SWIG_AsInt(obj2);
11718 if (PyErr_Occurred()) SWIG_fail;
11719 arg4 = (int) SWIG_AsInt(obj3);
11720 if (PyErr_Occurred()) SWIG_fail;
11721 arg5 = (double) SWIG_AsDouble(obj4);
11722 if (PyErr_Occurred()) SWIG_fail;
11723 {
11724 PyThreadState* __tstate = wxPyBeginAllowThreads();
11725 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11726
11727 wxPyEndAllowThreads(__tstate);
11728 if (PyErr_Occurred()) SWIG_fail;
11729 }
11730 Py_INCREF(Py_None); resultobj = Py_None;
11731 {
11732 if (temp2)
11733 delete arg2;
11734 }
11735 return resultobj;
11736 fail:
11737 {
11738 if (temp2)
11739 delete arg2;
11740 }
11741 return NULL;
11742 }
11743
11744
11745 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
11746 PyObject *resultobj;
11747 wxDC *arg1 = (wxDC *) 0 ;
11748 wxString *arg2 = 0 ;
11749 wxPoint *arg3 = 0 ;
11750 double arg4 ;
11751 bool temp2 = False ;
11752 wxPoint temp3 ;
11753 PyObject * obj0 = 0 ;
11754 PyObject * obj1 = 0 ;
11755 PyObject * obj2 = 0 ;
11756 PyObject * obj3 = 0 ;
11757 char *kwnames[] = {
11758 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11759 };
11760
11761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11764 {
11765 arg2 = wxString_in_helper(obj1);
11766 if (arg2 == NULL) SWIG_fail;
11767 temp2 = True;
11768 }
11769 {
11770 arg3 = &temp3;
11771 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11772 }
11773 arg4 = (double) SWIG_AsDouble(obj3);
11774 if (PyErr_Occurred()) SWIG_fail;
11775 {
11776 PyThreadState* __tstate = wxPyBeginAllowThreads();
11777 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11778
11779 wxPyEndAllowThreads(__tstate);
11780 if (PyErr_Occurred()) SWIG_fail;
11781 }
11782 Py_INCREF(Py_None); resultobj = Py_None;
11783 {
11784 if (temp2)
11785 delete arg2;
11786 }
11787 return resultobj;
11788 fail:
11789 {
11790 if (temp2)
11791 delete arg2;
11792 }
11793 return NULL;
11794 }
11795
11796
11797 static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11798 PyObject *resultobj;
11799 wxDC *arg1 = (wxDC *) 0 ;
11800 int arg2 ;
11801 int arg3 ;
11802 int arg4 ;
11803 int arg5 ;
11804 wxDC *arg6 = (wxDC *) 0 ;
11805 int arg7 ;
11806 int arg8 ;
11807 int arg9 = (int) wxCOPY ;
11808 bool arg10 = (bool) False ;
11809 int arg11 = (int) -1 ;
11810 int arg12 = (int) -1 ;
11811 bool result;
11812 PyObject * obj0 = 0 ;
11813 PyObject * obj1 = 0 ;
11814 PyObject * obj2 = 0 ;
11815 PyObject * obj3 = 0 ;
11816 PyObject * obj4 = 0 ;
11817 PyObject * obj5 = 0 ;
11818 PyObject * obj6 = 0 ;
11819 PyObject * obj7 = 0 ;
11820 PyObject * obj8 = 0 ;
11821 PyObject * obj9 = 0 ;
11822 PyObject * obj10 = 0 ;
11823 PyObject * obj11 = 0 ;
11824 char *kwnames[] = {
11825 (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
11826 };
11827
11828 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;
11829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11831 arg2 = (int) SWIG_AsInt(obj1);
11832 if (PyErr_Occurred()) SWIG_fail;
11833 arg3 = (int) SWIG_AsInt(obj2);
11834 if (PyErr_Occurred()) SWIG_fail;
11835 arg4 = (int) SWIG_AsInt(obj3);
11836 if (PyErr_Occurred()) SWIG_fail;
11837 arg5 = (int) SWIG_AsInt(obj4);
11838 if (PyErr_Occurred()) SWIG_fail;
11839 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
11840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11841 arg7 = (int) SWIG_AsInt(obj6);
11842 if (PyErr_Occurred()) SWIG_fail;
11843 arg8 = (int) SWIG_AsInt(obj7);
11844 if (PyErr_Occurred()) SWIG_fail;
11845 if (obj8) {
11846 arg9 = (int) SWIG_AsInt(obj8);
11847 if (PyErr_Occurred()) SWIG_fail;
11848 }
11849 if (obj9) {
11850 arg10 = (bool) SWIG_AsBool(obj9);
11851 if (PyErr_Occurred()) SWIG_fail;
11852 }
11853 if (obj10) {
11854 arg11 = (int) SWIG_AsInt(obj10);
11855 if (PyErr_Occurred()) SWIG_fail;
11856 }
11857 if (obj11) {
11858 arg12 = (int) SWIG_AsInt(obj11);
11859 if (PyErr_Occurred()) SWIG_fail;
11860 }
11861 {
11862 PyThreadState* __tstate = wxPyBeginAllowThreads();
11863 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
11864
11865 wxPyEndAllowThreads(__tstate);
11866 if (PyErr_Occurred()) SWIG_fail;
11867 }
11868 {
11869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11870 }
11871 return resultobj;
11872 fail:
11873 return NULL;
11874 }
11875
11876
11877 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
11878 PyObject *resultobj;
11879 wxDC *arg1 = (wxDC *) 0 ;
11880 wxPoint *arg2 = 0 ;
11881 wxSize *arg3 = 0 ;
11882 wxDC *arg4 = (wxDC *) 0 ;
11883 wxPoint *arg5 = 0 ;
11884 int arg6 = (int) wxCOPY ;
11885 bool arg7 = (bool) False ;
11886 wxPoint const &arg8_defvalue = wxDefaultPosition ;
11887 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
11888 bool result;
11889 wxPoint temp2 ;
11890 wxSize temp3 ;
11891 wxPoint temp5 ;
11892 wxPoint temp8 ;
11893 PyObject * obj0 = 0 ;
11894 PyObject * obj1 = 0 ;
11895 PyObject * obj2 = 0 ;
11896 PyObject * obj3 = 0 ;
11897 PyObject * obj4 = 0 ;
11898 PyObject * obj5 = 0 ;
11899 PyObject * obj6 = 0 ;
11900 PyObject * obj7 = 0 ;
11901 char *kwnames[] = {
11902 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
11903 };
11904
11905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
11906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11908 {
11909 arg2 = &temp2;
11910 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11911 }
11912 {
11913 arg3 = &temp3;
11914 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11915 }
11916 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
11917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11918 {
11919 arg5 = &temp5;
11920 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11921 }
11922 if (obj5) {
11923 arg6 = (int) SWIG_AsInt(obj5);
11924 if (PyErr_Occurred()) SWIG_fail;
11925 }
11926 if (obj6) {
11927 arg7 = (bool) SWIG_AsBool(obj6);
11928 if (PyErr_Occurred()) SWIG_fail;
11929 }
11930 if (obj7) {
11931 {
11932 arg8 = &temp8;
11933 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
11934 }
11935 }
11936 {
11937 PyThreadState* __tstate = wxPyBeginAllowThreads();
11938 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
11939
11940 wxPyEndAllowThreads(__tstate);
11941 if (PyErr_Occurred()) SWIG_fail;
11942 }
11943 {
11944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11945 }
11946 return resultobj;
11947 fail:
11948 return NULL;
11949 }
11950
11951
11952 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
11953 PyObject *resultobj;
11954 wxDC *arg1 = (wxDC *) 0 ;
11955 int arg2 ;
11956 wxPoint *arg3 = (wxPoint *) 0 ;
11957 int arg4 = (int) 0 ;
11958 int arg5 = (int) 0 ;
11959 PyObject * obj0 = 0 ;
11960 PyObject * obj1 = 0 ;
11961 PyObject * obj2 = 0 ;
11962 PyObject * obj3 = 0 ;
11963 char *kwnames[] = {
11964 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
11965 };
11966
11967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11970 {
11971 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11972 if (arg3 == NULL) SWIG_fail;
11973 }
11974 if (obj2) {
11975 arg4 = (int) SWIG_AsInt(obj2);
11976 if (PyErr_Occurred()) SWIG_fail;
11977 }
11978 if (obj3) {
11979 arg5 = (int) SWIG_AsInt(obj3);
11980 if (PyErr_Occurred()) SWIG_fail;
11981 }
11982 {
11983 PyThreadState* __tstate = wxPyBeginAllowThreads();
11984 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
11985
11986 wxPyEndAllowThreads(__tstate);
11987 if (PyErr_Occurred()) SWIG_fail;
11988 }
11989 Py_INCREF(Py_None); resultobj = Py_None;
11990 {
11991 if (arg3) delete [] arg3;
11992 }
11993 return resultobj;
11994 fail:
11995 {
11996 if (arg3) delete [] arg3;
11997 }
11998 return NULL;
11999 }
12000
12001
12002 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12003 PyObject *resultobj;
12004 wxDC *arg1 = (wxDC *) 0 ;
12005 int arg2 ;
12006 wxPoint *arg3 = (wxPoint *) 0 ;
12007 int arg4 = (int) 0 ;
12008 int arg5 = (int) 0 ;
12009 int arg6 = (int) wxODDEVEN_RULE ;
12010 PyObject * obj0 = 0 ;
12011 PyObject * obj1 = 0 ;
12012 PyObject * obj2 = 0 ;
12013 PyObject * obj3 = 0 ;
12014 PyObject * obj4 = 0 ;
12015 char *kwnames[] = {
12016 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12017 };
12018
12019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12022 {
12023 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12024 if (arg3 == NULL) SWIG_fail;
12025 }
12026 if (obj2) {
12027 arg4 = (int) SWIG_AsInt(obj2);
12028 if (PyErr_Occurred()) SWIG_fail;
12029 }
12030 if (obj3) {
12031 arg5 = (int) SWIG_AsInt(obj3);
12032 if (PyErr_Occurred()) SWIG_fail;
12033 }
12034 if (obj4) {
12035 arg6 = (int) SWIG_AsInt(obj4);
12036 if (PyErr_Occurred()) SWIG_fail;
12037 }
12038 {
12039 PyThreadState* __tstate = wxPyBeginAllowThreads();
12040 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12041
12042 wxPyEndAllowThreads(__tstate);
12043 if (PyErr_Occurred()) SWIG_fail;
12044 }
12045 Py_INCREF(Py_None); resultobj = Py_None;
12046 {
12047 if (arg3) delete [] arg3;
12048 }
12049 return resultobj;
12050 fail:
12051 {
12052 if (arg3) delete [] arg3;
12053 }
12054 return NULL;
12055 }
12056
12057
12058 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12059 PyObject *resultobj;
12060 wxDC *arg1 = (wxDC *) 0 ;
12061 wxString *arg2 = 0 ;
12062 wxRect *arg3 = 0 ;
12063 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12064 int arg5 = (int) -1 ;
12065 bool temp2 = False ;
12066 wxRect temp3 ;
12067 PyObject * obj0 = 0 ;
12068 PyObject * obj1 = 0 ;
12069 PyObject * obj2 = 0 ;
12070 PyObject * obj3 = 0 ;
12071 PyObject * obj4 = 0 ;
12072 char *kwnames[] = {
12073 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12074 };
12075
12076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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 arg3 = &temp3;
12086 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12087 }
12088 if (obj3) {
12089 arg4 = (int) SWIG_AsInt(obj3);
12090 if (PyErr_Occurred()) SWIG_fail;
12091 }
12092 if (obj4) {
12093 arg5 = (int) SWIG_AsInt(obj4);
12094 if (PyErr_Occurred()) SWIG_fail;
12095 }
12096 {
12097 PyThreadState* __tstate = wxPyBeginAllowThreads();
12098 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12099
12100 wxPyEndAllowThreads(__tstate);
12101 if (PyErr_Occurred()) SWIG_fail;
12102 }
12103 Py_INCREF(Py_None); resultobj = Py_None;
12104 {
12105 if (temp2)
12106 delete arg2;
12107 }
12108 return resultobj;
12109 fail:
12110 {
12111 if (temp2)
12112 delete arg2;
12113 }
12114 return NULL;
12115 }
12116
12117
12118 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12119 PyObject *resultobj;
12120 wxDC *arg1 = (wxDC *) 0 ;
12121 wxString *arg2 = 0 ;
12122 wxBitmap *arg3 = 0 ;
12123 wxRect *arg4 = 0 ;
12124 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12125 int arg6 = (int) -1 ;
12126 wxRect result;
12127 bool temp2 = False ;
12128 wxRect temp4 ;
12129 PyObject * obj0 = 0 ;
12130 PyObject * obj1 = 0 ;
12131 PyObject * obj2 = 0 ;
12132 PyObject * obj3 = 0 ;
12133 PyObject * obj4 = 0 ;
12134 PyObject * obj5 = 0 ;
12135 char *kwnames[] = {
12136 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12137 };
12138
12139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12142 {
12143 arg2 = wxString_in_helper(obj1);
12144 if (arg2 == NULL) SWIG_fail;
12145 temp2 = True;
12146 }
12147 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12148 SWIG_POINTER_EXCEPTION | 0)) == -1)
12149 SWIG_fail;
12150 if (arg3 == NULL) {
12151 PyErr_SetString(PyExc_TypeError,"null reference");
12152 SWIG_fail;
12153 }
12154 {
12155 arg4 = &temp4;
12156 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12157 }
12158 if (obj4) {
12159 arg5 = (int) SWIG_AsInt(obj4);
12160 if (PyErr_Occurred()) SWIG_fail;
12161 }
12162 if (obj5) {
12163 arg6 = (int) SWIG_AsInt(obj5);
12164 if (PyErr_Occurred()) SWIG_fail;
12165 }
12166 {
12167 PyThreadState* __tstate = wxPyBeginAllowThreads();
12168 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12169
12170 wxPyEndAllowThreads(__tstate);
12171 if (PyErr_Occurred()) SWIG_fail;
12172 }
12173 {
12174 wxRect * resultptr;
12175 resultptr = new wxRect((wxRect &) result);
12176 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12177 }
12178 {
12179 if (temp2)
12180 delete arg2;
12181 }
12182 return resultobj;
12183 fail:
12184 {
12185 if (temp2)
12186 delete arg2;
12187 }
12188 return NULL;
12189 }
12190
12191
12192 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12193 PyObject *resultobj;
12194 wxDC *arg1 = (wxDC *) 0 ;
12195 int arg2 ;
12196 wxPoint *arg3 = (wxPoint *) 0 ;
12197 PyObject * obj0 = 0 ;
12198 PyObject * obj1 = 0 ;
12199 char *kwnames[] = {
12200 (char *) "self",(char *) "points", NULL
12201 };
12202
12203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12206 {
12207 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12208 if (arg3 == NULL) SWIG_fail;
12209 }
12210 {
12211 PyThreadState* __tstate = wxPyBeginAllowThreads();
12212 (arg1)->DrawSpline(arg2,arg3);
12213
12214 wxPyEndAllowThreads(__tstate);
12215 if (PyErr_Occurred()) SWIG_fail;
12216 }
12217 Py_INCREF(Py_None); resultobj = Py_None;
12218 {
12219 if (arg3) delete [] arg3;
12220 }
12221 return resultobj;
12222 fail:
12223 {
12224 if (arg3) delete [] arg3;
12225 }
12226 return NULL;
12227 }
12228
12229
12230 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12231 PyObject *resultobj;
12232 wxDC *arg1 = (wxDC *) 0 ;
12233 PyObject * obj0 = 0 ;
12234 char *kwnames[] = {
12235 (char *) "self", NULL
12236 };
12237
12238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12241 {
12242 PyThreadState* __tstate = wxPyBeginAllowThreads();
12243 (arg1)->Clear();
12244
12245 wxPyEndAllowThreads(__tstate);
12246 if (PyErr_Occurred()) SWIG_fail;
12247 }
12248 Py_INCREF(Py_None); resultobj = Py_None;
12249 return resultobj;
12250 fail:
12251 return NULL;
12252 }
12253
12254
12255 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12256 PyObject *resultobj;
12257 wxDC *arg1 = (wxDC *) 0 ;
12258 wxString *arg2 = 0 ;
12259 bool result;
12260 bool temp2 = False ;
12261 PyObject * obj0 = 0 ;
12262 PyObject * obj1 = 0 ;
12263 char *kwnames[] = {
12264 (char *) "self",(char *) "message", NULL
12265 };
12266
12267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12270 {
12271 arg2 = wxString_in_helper(obj1);
12272 if (arg2 == NULL) SWIG_fail;
12273 temp2 = True;
12274 }
12275 {
12276 PyThreadState* __tstate = wxPyBeginAllowThreads();
12277 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12278
12279 wxPyEndAllowThreads(__tstate);
12280 if (PyErr_Occurred()) SWIG_fail;
12281 }
12282 {
12283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12284 }
12285 {
12286 if (temp2)
12287 delete arg2;
12288 }
12289 return resultobj;
12290 fail:
12291 {
12292 if (temp2)
12293 delete arg2;
12294 }
12295 return NULL;
12296 }
12297
12298
12299 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12300 PyObject *resultobj;
12301 wxDC *arg1 = (wxDC *) 0 ;
12302 PyObject * obj0 = 0 ;
12303 char *kwnames[] = {
12304 (char *) "self", NULL
12305 };
12306
12307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12310 {
12311 PyThreadState* __tstate = wxPyBeginAllowThreads();
12312 (arg1)->EndDoc();
12313
12314 wxPyEndAllowThreads(__tstate);
12315 if (PyErr_Occurred()) SWIG_fail;
12316 }
12317 Py_INCREF(Py_None); resultobj = Py_None;
12318 return resultobj;
12319 fail:
12320 return NULL;
12321 }
12322
12323
12324 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12325 PyObject *resultobj;
12326 wxDC *arg1 = (wxDC *) 0 ;
12327 PyObject * obj0 = 0 ;
12328 char *kwnames[] = {
12329 (char *) "self", NULL
12330 };
12331
12332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12335 {
12336 PyThreadState* __tstate = wxPyBeginAllowThreads();
12337 (arg1)->StartPage();
12338
12339 wxPyEndAllowThreads(__tstate);
12340 if (PyErr_Occurred()) SWIG_fail;
12341 }
12342 Py_INCREF(Py_None); resultobj = Py_None;
12343 return resultobj;
12344 fail:
12345 return NULL;
12346 }
12347
12348
12349 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12350 PyObject *resultobj;
12351 wxDC *arg1 = (wxDC *) 0 ;
12352 PyObject * obj0 = 0 ;
12353 char *kwnames[] = {
12354 (char *) "self", NULL
12355 };
12356
12357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12360 {
12361 PyThreadState* __tstate = wxPyBeginAllowThreads();
12362 (arg1)->EndPage();
12363
12364 wxPyEndAllowThreads(__tstate);
12365 if (PyErr_Occurred()) SWIG_fail;
12366 }
12367 Py_INCREF(Py_None); resultobj = Py_None;
12368 return resultobj;
12369 fail:
12370 return NULL;
12371 }
12372
12373
12374 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12375 PyObject *resultobj;
12376 wxDC *arg1 = (wxDC *) 0 ;
12377 wxFont *arg2 = 0 ;
12378 PyObject * obj0 = 0 ;
12379 PyObject * obj1 = 0 ;
12380 char *kwnames[] = {
12381 (char *) "self",(char *) "font", NULL
12382 };
12383
12384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12387 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12388 SWIG_POINTER_EXCEPTION | 0)) == -1)
12389 SWIG_fail;
12390 if (arg2 == NULL) {
12391 PyErr_SetString(PyExc_TypeError,"null reference");
12392 SWIG_fail;
12393 }
12394 {
12395 PyThreadState* __tstate = wxPyBeginAllowThreads();
12396 (arg1)->SetFont((wxFont const &)*arg2);
12397
12398 wxPyEndAllowThreads(__tstate);
12399 if (PyErr_Occurred()) SWIG_fail;
12400 }
12401 Py_INCREF(Py_None); resultobj = Py_None;
12402 return resultobj;
12403 fail:
12404 return NULL;
12405 }
12406
12407
12408 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12409 PyObject *resultobj;
12410 wxDC *arg1 = (wxDC *) 0 ;
12411 wxPen *arg2 = 0 ;
12412 PyObject * obj0 = 0 ;
12413 PyObject * obj1 = 0 ;
12414 char *kwnames[] = {
12415 (char *) "self",(char *) "pen", NULL
12416 };
12417
12418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12421 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12422 SWIG_POINTER_EXCEPTION | 0)) == -1)
12423 SWIG_fail;
12424 if (arg2 == NULL) {
12425 PyErr_SetString(PyExc_TypeError,"null reference");
12426 SWIG_fail;
12427 }
12428 {
12429 PyThreadState* __tstate = wxPyBeginAllowThreads();
12430 (arg1)->SetPen((wxPen const &)*arg2);
12431
12432 wxPyEndAllowThreads(__tstate);
12433 if (PyErr_Occurred()) SWIG_fail;
12434 }
12435 Py_INCREF(Py_None); resultobj = Py_None;
12436 return resultobj;
12437 fail:
12438 return NULL;
12439 }
12440
12441
12442 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12443 PyObject *resultobj;
12444 wxDC *arg1 = (wxDC *) 0 ;
12445 wxBrush *arg2 = 0 ;
12446 PyObject * obj0 = 0 ;
12447 PyObject * obj1 = 0 ;
12448 char *kwnames[] = {
12449 (char *) "self",(char *) "brush", NULL
12450 };
12451
12452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12455 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12456 SWIG_POINTER_EXCEPTION | 0)) == -1)
12457 SWIG_fail;
12458 if (arg2 == NULL) {
12459 PyErr_SetString(PyExc_TypeError,"null reference");
12460 SWIG_fail;
12461 }
12462 {
12463 PyThreadState* __tstate = wxPyBeginAllowThreads();
12464 (arg1)->SetBrush((wxBrush const &)*arg2);
12465
12466 wxPyEndAllowThreads(__tstate);
12467 if (PyErr_Occurred()) SWIG_fail;
12468 }
12469 Py_INCREF(Py_None); resultobj = Py_None;
12470 return resultobj;
12471 fail:
12472 return NULL;
12473 }
12474
12475
12476 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12477 PyObject *resultobj;
12478 wxDC *arg1 = (wxDC *) 0 ;
12479 wxBrush *arg2 = 0 ;
12480 PyObject * obj0 = 0 ;
12481 PyObject * obj1 = 0 ;
12482 char *kwnames[] = {
12483 (char *) "self",(char *) "brush", NULL
12484 };
12485
12486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12489 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12490 SWIG_POINTER_EXCEPTION | 0)) == -1)
12491 SWIG_fail;
12492 if (arg2 == NULL) {
12493 PyErr_SetString(PyExc_TypeError,"null reference");
12494 SWIG_fail;
12495 }
12496 {
12497 PyThreadState* __tstate = wxPyBeginAllowThreads();
12498 (arg1)->SetBackground((wxBrush const &)*arg2);
12499
12500 wxPyEndAllowThreads(__tstate);
12501 if (PyErr_Occurred()) SWIG_fail;
12502 }
12503 Py_INCREF(Py_None); resultobj = Py_None;
12504 return resultobj;
12505 fail:
12506 return NULL;
12507 }
12508
12509
12510 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12511 PyObject *resultobj;
12512 wxDC *arg1 = (wxDC *) 0 ;
12513 int arg2 ;
12514 PyObject * obj0 = 0 ;
12515 PyObject * obj1 = 0 ;
12516 char *kwnames[] = {
12517 (char *) "self",(char *) "mode", NULL
12518 };
12519
12520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12523 arg2 = (int) SWIG_AsInt(obj1);
12524 if (PyErr_Occurred()) SWIG_fail;
12525 {
12526 PyThreadState* __tstate = wxPyBeginAllowThreads();
12527 (arg1)->SetBackgroundMode(arg2);
12528
12529 wxPyEndAllowThreads(__tstate);
12530 if (PyErr_Occurred()) SWIG_fail;
12531 }
12532 Py_INCREF(Py_None); resultobj = Py_None;
12533 return resultobj;
12534 fail:
12535 return NULL;
12536 }
12537
12538
12539 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12540 PyObject *resultobj;
12541 wxDC *arg1 = (wxDC *) 0 ;
12542 wxPalette *arg2 = 0 ;
12543 PyObject * obj0 = 0 ;
12544 PyObject * obj1 = 0 ;
12545 char *kwnames[] = {
12546 (char *) "self",(char *) "palette", NULL
12547 };
12548
12549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12552 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
12553 SWIG_POINTER_EXCEPTION | 0)) == -1)
12554 SWIG_fail;
12555 if (arg2 == NULL) {
12556 PyErr_SetString(PyExc_TypeError,"null reference");
12557 SWIG_fail;
12558 }
12559 {
12560 PyThreadState* __tstate = wxPyBeginAllowThreads();
12561 (arg1)->SetPalette((wxPalette const &)*arg2);
12562
12563 wxPyEndAllowThreads(__tstate);
12564 if (PyErr_Occurred()) SWIG_fail;
12565 }
12566 Py_INCREF(Py_None); resultobj = Py_None;
12567 return resultobj;
12568 fail:
12569 return NULL;
12570 }
12571
12572
12573 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12574 PyObject *resultobj;
12575 wxDC *arg1 = (wxDC *) 0 ;
12576 int arg2 ;
12577 int arg3 ;
12578 int arg4 ;
12579 int arg5 ;
12580 PyObject * obj0 = 0 ;
12581 PyObject * obj1 = 0 ;
12582 PyObject * obj2 = 0 ;
12583 PyObject * obj3 = 0 ;
12584 PyObject * obj4 = 0 ;
12585 char *kwnames[] = {
12586 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12587 };
12588
12589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12592 arg2 = (int) SWIG_AsInt(obj1);
12593 if (PyErr_Occurred()) SWIG_fail;
12594 arg3 = (int) SWIG_AsInt(obj2);
12595 if (PyErr_Occurred()) SWIG_fail;
12596 arg4 = (int) SWIG_AsInt(obj3);
12597 if (PyErr_Occurred()) SWIG_fail;
12598 arg5 = (int) SWIG_AsInt(obj4);
12599 if (PyErr_Occurred()) SWIG_fail;
12600 {
12601 PyThreadState* __tstate = wxPyBeginAllowThreads();
12602 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12603
12604 wxPyEndAllowThreads(__tstate);
12605 if (PyErr_Occurred()) SWIG_fail;
12606 }
12607 Py_INCREF(Py_None); resultobj = Py_None;
12608 return resultobj;
12609 fail:
12610 return NULL;
12611 }
12612
12613
12614 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12615 PyObject *resultobj;
12616 wxDC *arg1 = (wxDC *) 0 ;
12617 wxPoint *arg2 = 0 ;
12618 wxSize *arg3 = 0 ;
12619 wxPoint temp2 ;
12620 wxSize temp3 ;
12621 PyObject * obj0 = 0 ;
12622 PyObject * obj1 = 0 ;
12623 PyObject * obj2 = 0 ;
12624 char *kwnames[] = {
12625 (char *) "self",(char *) "pt",(char *) "sz", NULL
12626 };
12627
12628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
12629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12631 {
12632 arg2 = &temp2;
12633 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12634 }
12635 {
12636 arg3 = &temp3;
12637 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12638 }
12639 {
12640 PyThreadState* __tstate = wxPyBeginAllowThreads();
12641 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12642
12643 wxPyEndAllowThreads(__tstate);
12644 if (PyErr_Occurred()) SWIG_fail;
12645 }
12646 Py_INCREF(Py_None); resultobj = Py_None;
12647 return resultobj;
12648 fail:
12649 return NULL;
12650 }
12651
12652
12653 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12654 PyObject *resultobj;
12655 wxDC *arg1 = (wxDC *) 0 ;
12656 wxRect *arg2 = 0 ;
12657 wxRect temp2 ;
12658 PyObject * obj0 = 0 ;
12659 PyObject * obj1 = 0 ;
12660 char *kwnames[] = {
12661 (char *) "self",(char *) "rect", NULL
12662 };
12663
12664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12667 {
12668 arg2 = &temp2;
12669 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12670 }
12671 {
12672 PyThreadState* __tstate = wxPyBeginAllowThreads();
12673 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12674
12675 wxPyEndAllowThreads(__tstate);
12676 if (PyErr_Occurred()) SWIG_fail;
12677 }
12678 Py_INCREF(Py_None); resultobj = Py_None;
12679 return resultobj;
12680 fail:
12681 return NULL;
12682 }
12683
12684
12685 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12686 PyObject *resultobj;
12687 wxDC *arg1 = (wxDC *) 0 ;
12688 wxRegion *arg2 = 0 ;
12689 PyObject * obj0 = 0 ;
12690 PyObject * obj1 = 0 ;
12691 char *kwnames[] = {
12692 (char *) "self",(char *) "region", NULL
12693 };
12694
12695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12698 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12699 SWIG_POINTER_EXCEPTION | 0)) == -1)
12700 SWIG_fail;
12701 if (arg2 == NULL) {
12702 PyErr_SetString(PyExc_TypeError,"null reference");
12703 SWIG_fail;
12704 }
12705 {
12706 PyThreadState* __tstate = wxPyBeginAllowThreads();
12707 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12708
12709 wxPyEndAllowThreads(__tstate);
12710 if (PyErr_Occurred()) SWIG_fail;
12711 }
12712 Py_INCREF(Py_None); resultobj = Py_None;
12713 return resultobj;
12714 fail:
12715 return NULL;
12716 }
12717
12718
12719 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12720 PyObject *resultobj;
12721 wxDC *arg1 = (wxDC *) 0 ;
12722 PyObject * obj0 = 0 ;
12723 char *kwnames[] = {
12724 (char *) "self", NULL
12725 };
12726
12727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12730 {
12731 PyThreadState* __tstate = wxPyBeginAllowThreads();
12732 (arg1)->DestroyClippingRegion();
12733
12734 wxPyEndAllowThreads(__tstate);
12735 if (PyErr_Occurred()) SWIG_fail;
12736 }
12737 Py_INCREF(Py_None); resultobj = Py_None;
12738 return resultobj;
12739 fail:
12740 return NULL;
12741 }
12742
12743
12744 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12745 PyObject *resultobj;
12746 wxDC *arg1 = (wxDC *) 0 ;
12747 int *arg2 = (int *) 0 ;
12748 int *arg3 = (int *) 0 ;
12749 int *arg4 = (int *) 0 ;
12750 int *arg5 = (int *) 0 ;
12751 int temp2 ;
12752 int temp3 ;
12753 int temp4 ;
12754 int temp5 ;
12755 PyObject * obj0 = 0 ;
12756 char *kwnames[] = {
12757 (char *) "self", NULL
12758 };
12759
12760 arg2 = &temp2;
12761 arg3 = &temp3;
12762 arg4 = &temp4;
12763 arg5 = &temp5;
12764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12767 {
12768 PyThreadState* __tstate = wxPyBeginAllowThreads();
12769 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12770
12771 wxPyEndAllowThreads(__tstate);
12772 if (PyErr_Occurred()) SWIG_fail;
12773 }
12774 Py_INCREF(Py_None); resultobj = Py_None;
12775 {
12776 PyObject *o = PyInt_FromLong((long) (*arg2));
12777 resultobj = t_output_helper(resultobj,o);
12778 }
12779 {
12780 PyObject *o = PyInt_FromLong((long) (*arg3));
12781 resultobj = t_output_helper(resultobj,o);
12782 }
12783 {
12784 PyObject *o = PyInt_FromLong((long) (*arg4));
12785 resultobj = t_output_helper(resultobj,o);
12786 }
12787 {
12788 PyObject *o = PyInt_FromLong((long) (*arg5));
12789 resultobj = t_output_helper(resultobj,o);
12790 }
12791 return resultobj;
12792 fail:
12793 return NULL;
12794 }
12795
12796
12797 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12798 PyObject *resultobj;
12799 wxDC *arg1 = (wxDC *) 0 ;
12800 wxRect result;
12801 PyObject * obj0 = 0 ;
12802 char *kwnames[] = {
12803 (char *) "self", NULL
12804 };
12805
12806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
12807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12809 {
12810 PyThreadState* __tstate = wxPyBeginAllowThreads();
12811 result = wxDC_GetClippingRect(arg1);
12812
12813 wxPyEndAllowThreads(__tstate);
12814 if (PyErr_Occurred()) SWIG_fail;
12815 }
12816 {
12817 wxRect * resultptr;
12818 resultptr = new wxRect((wxRect &) result);
12819 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12820 }
12821 return resultobj;
12822 fail:
12823 return NULL;
12824 }
12825
12826
12827 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12828 PyObject *resultobj;
12829 wxDC *arg1 = (wxDC *) 0 ;
12830 int result;
12831 PyObject * obj0 = 0 ;
12832 char *kwnames[] = {
12833 (char *) "self", NULL
12834 };
12835
12836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
12837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12839 {
12840 PyThreadState* __tstate = wxPyBeginAllowThreads();
12841 result = (int)((wxDC const *)arg1)->GetCharHeight();
12842
12843 wxPyEndAllowThreads(__tstate);
12844 if (PyErr_Occurred()) SWIG_fail;
12845 }
12846 resultobj = SWIG_FromInt((int)result);
12847 return resultobj;
12848 fail:
12849 return NULL;
12850 }
12851
12852
12853 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12854 PyObject *resultobj;
12855 wxDC *arg1 = (wxDC *) 0 ;
12856 int result;
12857 PyObject * obj0 = 0 ;
12858 char *kwnames[] = {
12859 (char *) "self", NULL
12860 };
12861
12862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
12863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12865 {
12866 PyThreadState* __tstate = wxPyBeginAllowThreads();
12867 result = (int)((wxDC const *)arg1)->GetCharWidth();
12868
12869 wxPyEndAllowThreads(__tstate);
12870 if (PyErr_Occurred()) SWIG_fail;
12871 }
12872 resultobj = SWIG_FromInt((int)result);
12873 return resultobj;
12874 fail:
12875 return NULL;
12876 }
12877
12878
12879 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12880 PyObject *resultobj;
12881 wxDC *arg1 = (wxDC *) 0 ;
12882 wxString *arg2 = 0 ;
12883 int *arg3 = (int *) 0 ;
12884 int *arg4 = (int *) 0 ;
12885 bool temp2 = False ;
12886 int temp3 ;
12887 int temp4 ;
12888 PyObject * obj0 = 0 ;
12889 PyObject * obj1 = 0 ;
12890 char *kwnames[] = {
12891 (char *) "self",(char *) "string", NULL
12892 };
12893
12894 arg3 = &temp3;
12895 arg4 = &temp4;
12896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",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 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
12907
12908 wxPyEndAllowThreads(__tstate);
12909 if (PyErr_Occurred()) SWIG_fail;
12910 }
12911 Py_INCREF(Py_None); resultobj = Py_None;
12912 {
12913 PyObject *o = PyInt_FromLong((long) (*arg3));
12914 resultobj = t_output_helper(resultobj,o);
12915 }
12916 {
12917 PyObject *o = PyInt_FromLong((long) (*arg4));
12918 resultobj = t_output_helper(resultobj,o);
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_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12935 PyObject *resultobj;
12936 wxDC *arg1 = (wxDC *) 0 ;
12937 wxString *arg2 = 0 ;
12938 int *arg3 = (int *) 0 ;
12939 int *arg4 = (int *) 0 ;
12940 int *arg5 = (int *) 0 ;
12941 int *arg6 = (int *) 0 ;
12942 wxFont *arg7 = (wxFont *) NULL ;
12943 bool temp2 = False ;
12944 int temp3 ;
12945 int temp4 ;
12946 int temp5 ;
12947 int temp6 ;
12948 PyObject * obj0 = 0 ;
12949 PyObject * obj1 = 0 ;
12950 PyObject * obj2 = 0 ;
12951 char *kwnames[] = {
12952 (char *) "self",(char *) "string",(char *) "font", NULL
12953 };
12954
12955 arg3 = &temp3;
12956 arg4 = &temp4;
12957 arg5 = &temp5;
12958 arg6 = &temp6;
12959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12962 {
12963 arg2 = wxString_in_helper(obj1);
12964 if (arg2 == NULL) SWIG_fail;
12965 temp2 = True;
12966 }
12967 if (obj2) {
12968 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
12969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12970 }
12971 {
12972 PyThreadState* __tstate = wxPyBeginAllowThreads();
12973 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
12974
12975 wxPyEndAllowThreads(__tstate);
12976 if (PyErr_Occurred()) SWIG_fail;
12977 }
12978 Py_INCREF(Py_None); resultobj = Py_None;
12979 {
12980 PyObject *o = PyInt_FromLong((long) (*arg3));
12981 resultobj = t_output_helper(resultobj,o);
12982 }
12983 {
12984 PyObject *o = PyInt_FromLong((long) (*arg4));
12985 resultobj = t_output_helper(resultobj,o);
12986 }
12987 {
12988 PyObject *o = PyInt_FromLong((long) (*arg5));
12989 resultobj = t_output_helper(resultobj,o);
12990 }
12991 {
12992 PyObject *o = PyInt_FromLong((long) (*arg6));
12993 resultobj = t_output_helper(resultobj,o);
12994 }
12995 {
12996 if (temp2)
12997 delete arg2;
12998 }
12999 return resultobj;
13000 fail:
13001 {
13002 if (temp2)
13003 delete arg2;
13004 }
13005 return NULL;
13006 }
13007
13008
13009 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13010 PyObject *resultobj;
13011 wxDC *arg1 = (wxDC *) 0 ;
13012 wxString *arg2 = 0 ;
13013 int *arg3 = (int *) 0 ;
13014 int *arg4 = (int *) 0 ;
13015 int *arg5 = (int *) 0 ;
13016 wxFont *arg6 = (wxFont *) NULL ;
13017 bool temp2 = False ;
13018 int temp3 ;
13019 int temp4 ;
13020 int temp5 ;
13021 PyObject * obj0 = 0 ;
13022 PyObject * obj1 = 0 ;
13023 PyObject * obj2 = 0 ;
13024 char *kwnames[] = {
13025 (char *) "self",(char *) "text",(char *) "font", NULL
13026 };
13027
13028 arg3 = &temp3;
13029 arg4 = &temp4;
13030 arg5 = &temp5;
13031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13034 {
13035 arg2 = wxString_in_helper(obj1);
13036 if (arg2 == NULL) SWIG_fail;
13037 temp2 = True;
13038 }
13039 if (obj2) {
13040 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13042 }
13043 {
13044 PyThreadState* __tstate = wxPyBeginAllowThreads();
13045 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13046
13047 wxPyEndAllowThreads(__tstate);
13048 if (PyErr_Occurred()) SWIG_fail;
13049 }
13050 Py_INCREF(Py_None); resultobj = Py_None;
13051 {
13052 PyObject *o = PyInt_FromLong((long) (*arg3));
13053 resultobj = t_output_helper(resultobj,o);
13054 }
13055 {
13056 PyObject *o = PyInt_FromLong((long) (*arg4));
13057 resultobj = t_output_helper(resultobj,o);
13058 }
13059 {
13060 PyObject *o = PyInt_FromLong((long) (*arg5));
13061 resultobj = t_output_helper(resultobj,o);
13062 }
13063 {
13064 if (temp2)
13065 delete arg2;
13066 }
13067 return resultobj;
13068 fail:
13069 {
13070 if (temp2)
13071 delete arg2;
13072 }
13073 return NULL;
13074 }
13075
13076
13077 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
13078 PyObject *resultobj;
13079 wxDC *arg1 = (wxDC *) 0 ;
13080 wxString *arg2 = 0 ;
13081 wxArrayInt result;
13082 bool temp2 = False ;
13083 PyObject * obj0 = 0 ;
13084 PyObject * obj1 = 0 ;
13085 char *kwnames[] = {
13086 (char *) "self",(char *) "text", NULL
13087 };
13088
13089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13092 {
13093 arg2 = wxString_in_helper(obj1);
13094 if (arg2 == NULL) SWIG_fail;
13095 temp2 = True;
13096 }
13097 {
13098 PyThreadState* __tstate = wxPyBeginAllowThreads();
13099 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13100
13101 wxPyEndAllowThreads(__tstate);
13102 if (PyErr_Occurred()) SWIG_fail;
13103 }
13104 {
13105 resultobj = PyList_New(0);
13106 size_t idx;
13107 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13108 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13109 PyList_Append(resultobj, val);
13110 Py_DECREF(val);
13111 }
13112 }
13113 {
13114 if (temp2)
13115 delete arg2;
13116 }
13117 return resultobj;
13118 fail:
13119 {
13120 if (temp2)
13121 delete arg2;
13122 }
13123 return NULL;
13124 }
13125
13126
13127 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13128 PyObject *resultobj;
13129 wxDC *arg1 = (wxDC *) 0 ;
13130 wxSize result;
13131 PyObject * obj0 = 0 ;
13132 char *kwnames[] = {
13133 (char *) "self", NULL
13134 };
13135
13136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13139 {
13140 PyThreadState* __tstate = wxPyBeginAllowThreads();
13141 result = (arg1)->GetSize();
13142
13143 wxPyEndAllowThreads(__tstate);
13144 if (PyErr_Occurred()) SWIG_fail;
13145 }
13146 {
13147 wxSize * resultptr;
13148 resultptr = new wxSize((wxSize &) result);
13149 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13150 }
13151 return resultobj;
13152 fail:
13153 return NULL;
13154 }
13155
13156
13157 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13158 PyObject *resultobj;
13159 wxDC *arg1 = (wxDC *) 0 ;
13160 int *arg2 = (int *) 0 ;
13161 int *arg3 = (int *) 0 ;
13162 int temp2 ;
13163 int temp3 ;
13164 PyObject * obj0 = 0 ;
13165 char *kwnames[] = {
13166 (char *) "self", NULL
13167 };
13168
13169 arg2 = &temp2;
13170 arg3 = &temp3;
13171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13174 {
13175 PyThreadState* __tstate = wxPyBeginAllowThreads();
13176 (arg1)->GetSize(arg2,arg3);
13177
13178 wxPyEndAllowThreads(__tstate);
13179 if (PyErr_Occurred()) SWIG_fail;
13180 }
13181 Py_INCREF(Py_None); resultobj = Py_None;
13182 {
13183 PyObject *o = PyInt_FromLong((long) (*arg2));
13184 resultobj = t_output_helper(resultobj,o);
13185 }
13186 {
13187 PyObject *o = PyInt_FromLong((long) (*arg3));
13188 resultobj = t_output_helper(resultobj,o);
13189 }
13190 return resultobj;
13191 fail:
13192 return NULL;
13193 }
13194
13195
13196 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13197 PyObject *resultobj;
13198 wxDC *arg1 = (wxDC *) 0 ;
13199 wxSize result;
13200 PyObject * obj0 = 0 ;
13201 char *kwnames[] = {
13202 (char *) "self", NULL
13203 };
13204
13205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13208 {
13209 PyThreadState* __tstate = wxPyBeginAllowThreads();
13210 result = ((wxDC const *)arg1)->GetSizeMM();
13211
13212 wxPyEndAllowThreads(__tstate);
13213 if (PyErr_Occurred()) SWIG_fail;
13214 }
13215 {
13216 wxSize * resultptr;
13217 resultptr = new wxSize((wxSize &) result);
13218 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13219 }
13220 return resultobj;
13221 fail:
13222 return NULL;
13223 }
13224
13225
13226 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13227 PyObject *resultobj;
13228 wxDC *arg1 = (wxDC *) 0 ;
13229 int *arg2 = (int *) 0 ;
13230 int *arg3 = (int *) 0 ;
13231 int temp2 ;
13232 int temp3 ;
13233 PyObject * obj0 = 0 ;
13234 char *kwnames[] = {
13235 (char *) "self", NULL
13236 };
13237
13238 arg2 = &temp2;
13239 arg3 = &temp3;
13240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13243 {
13244 PyThreadState* __tstate = wxPyBeginAllowThreads();
13245 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13246
13247 wxPyEndAllowThreads(__tstate);
13248 if (PyErr_Occurred()) SWIG_fail;
13249 }
13250 Py_INCREF(Py_None); resultobj = Py_None;
13251 {
13252 PyObject *o = PyInt_FromLong((long) (*arg2));
13253 resultobj = t_output_helper(resultobj,o);
13254 }
13255 {
13256 PyObject *o = PyInt_FromLong((long) (*arg3));
13257 resultobj = t_output_helper(resultobj,o);
13258 }
13259 return resultobj;
13260 fail:
13261 return NULL;
13262 }
13263
13264
13265 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13266 PyObject *resultobj;
13267 wxDC *arg1 = (wxDC *) 0 ;
13268 int arg2 ;
13269 int result;
13270 PyObject * obj0 = 0 ;
13271 PyObject * obj1 = 0 ;
13272 char *kwnames[] = {
13273 (char *) "self",(char *) "x", NULL
13274 };
13275
13276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13279 arg2 = (int) SWIG_AsInt(obj1);
13280 if (PyErr_Occurred()) SWIG_fail;
13281 {
13282 PyThreadState* __tstate = wxPyBeginAllowThreads();
13283 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13284
13285 wxPyEndAllowThreads(__tstate);
13286 if (PyErr_Occurred()) SWIG_fail;
13287 }
13288 resultobj = SWIG_FromInt((int)result);
13289 return resultobj;
13290 fail:
13291 return NULL;
13292 }
13293
13294
13295 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13296 PyObject *resultobj;
13297 wxDC *arg1 = (wxDC *) 0 ;
13298 int arg2 ;
13299 int result;
13300 PyObject * obj0 = 0 ;
13301 PyObject * obj1 = 0 ;
13302 char *kwnames[] = {
13303 (char *) "self",(char *) "y", NULL
13304 };
13305
13306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13309 arg2 = (int) SWIG_AsInt(obj1);
13310 if (PyErr_Occurred()) SWIG_fail;
13311 {
13312 PyThreadState* __tstate = wxPyBeginAllowThreads();
13313 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13314
13315 wxPyEndAllowThreads(__tstate);
13316 if (PyErr_Occurred()) SWIG_fail;
13317 }
13318 resultobj = SWIG_FromInt((int)result);
13319 return resultobj;
13320 fail:
13321 return NULL;
13322 }
13323
13324
13325 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13326 PyObject *resultobj;
13327 wxDC *arg1 = (wxDC *) 0 ;
13328 int arg2 ;
13329 int result;
13330 PyObject * obj0 = 0 ;
13331 PyObject * obj1 = 0 ;
13332 char *kwnames[] = {
13333 (char *) "self",(char *) "x", NULL
13334 };
13335
13336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13339 arg2 = (int) SWIG_AsInt(obj1);
13340 if (PyErr_Occurred()) SWIG_fail;
13341 {
13342 PyThreadState* __tstate = wxPyBeginAllowThreads();
13343 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13344
13345 wxPyEndAllowThreads(__tstate);
13346 if (PyErr_Occurred()) SWIG_fail;
13347 }
13348 resultobj = SWIG_FromInt((int)result);
13349 return resultobj;
13350 fail:
13351 return NULL;
13352 }
13353
13354
13355 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13356 PyObject *resultobj;
13357 wxDC *arg1 = (wxDC *) 0 ;
13358 int arg2 ;
13359 int result;
13360 PyObject * obj0 = 0 ;
13361 PyObject * obj1 = 0 ;
13362 char *kwnames[] = {
13363 (char *) "self",(char *) "y", NULL
13364 };
13365
13366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13369 arg2 = (int) SWIG_AsInt(obj1);
13370 if (PyErr_Occurred()) SWIG_fail;
13371 {
13372 PyThreadState* __tstate = wxPyBeginAllowThreads();
13373 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13374
13375 wxPyEndAllowThreads(__tstate);
13376 if (PyErr_Occurred()) SWIG_fail;
13377 }
13378 resultobj = SWIG_FromInt((int)result);
13379 return resultobj;
13380 fail:
13381 return NULL;
13382 }
13383
13384
13385 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13386 PyObject *resultobj;
13387 wxDC *arg1 = (wxDC *) 0 ;
13388 int arg2 ;
13389 int result;
13390 PyObject * obj0 = 0 ;
13391 PyObject * obj1 = 0 ;
13392 char *kwnames[] = {
13393 (char *) "self",(char *) "x", NULL
13394 };
13395
13396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13399 arg2 = (int) SWIG_AsInt(obj1);
13400 if (PyErr_Occurred()) SWIG_fail;
13401 {
13402 PyThreadState* __tstate = wxPyBeginAllowThreads();
13403 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13404
13405 wxPyEndAllowThreads(__tstate);
13406 if (PyErr_Occurred()) SWIG_fail;
13407 }
13408 resultobj = SWIG_FromInt((int)result);
13409 return resultobj;
13410 fail:
13411 return NULL;
13412 }
13413
13414
13415 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13416 PyObject *resultobj;
13417 wxDC *arg1 = (wxDC *) 0 ;
13418 int arg2 ;
13419 int result;
13420 PyObject * obj0 = 0 ;
13421 PyObject * obj1 = 0 ;
13422 char *kwnames[] = {
13423 (char *) "self",(char *) "y", NULL
13424 };
13425
13426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13429 arg2 = (int) SWIG_AsInt(obj1);
13430 if (PyErr_Occurred()) SWIG_fail;
13431 {
13432 PyThreadState* __tstate = wxPyBeginAllowThreads();
13433 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13434
13435 wxPyEndAllowThreads(__tstate);
13436 if (PyErr_Occurred()) SWIG_fail;
13437 }
13438 resultobj = SWIG_FromInt((int)result);
13439 return resultobj;
13440 fail:
13441 return NULL;
13442 }
13443
13444
13445 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13446 PyObject *resultobj;
13447 wxDC *arg1 = (wxDC *) 0 ;
13448 int arg2 ;
13449 int result;
13450 PyObject * obj0 = 0 ;
13451 PyObject * obj1 = 0 ;
13452 char *kwnames[] = {
13453 (char *) "self",(char *) "x", NULL
13454 };
13455
13456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13459 arg2 = (int) SWIG_AsInt(obj1);
13460 if (PyErr_Occurred()) SWIG_fail;
13461 {
13462 PyThreadState* __tstate = wxPyBeginAllowThreads();
13463 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13464
13465 wxPyEndAllowThreads(__tstate);
13466 if (PyErr_Occurred()) SWIG_fail;
13467 }
13468 resultobj = SWIG_FromInt((int)result);
13469 return resultobj;
13470 fail:
13471 return NULL;
13472 }
13473
13474
13475 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13476 PyObject *resultobj;
13477 wxDC *arg1 = (wxDC *) 0 ;
13478 int arg2 ;
13479 int result;
13480 PyObject * obj0 = 0 ;
13481 PyObject * obj1 = 0 ;
13482 char *kwnames[] = {
13483 (char *) "self",(char *) "y", NULL
13484 };
13485
13486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13489 arg2 = (int) SWIG_AsInt(obj1);
13490 if (PyErr_Occurred()) SWIG_fail;
13491 {
13492 PyThreadState* __tstate = wxPyBeginAllowThreads();
13493 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13494
13495 wxPyEndAllowThreads(__tstate);
13496 if (PyErr_Occurred()) SWIG_fail;
13497 }
13498 resultobj = SWIG_FromInt((int)result);
13499 return resultobj;
13500 fail:
13501 return NULL;
13502 }
13503
13504
13505 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13506 PyObject *resultobj;
13507 wxDC *arg1 = (wxDC *) 0 ;
13508 bool result;
13509 PyObject * obj0 = 0 ;
13510 char *kwnames[] = {
13511 (char *) "self", NULL
13512 };
13513
13514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13517 {
13518 PyThreadState* __tstate = wxPyBeginAllowThreads();
13519 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13520
13521 wxPyEndAllowThreads(__tstate);
13522 if (PyErr_Occurred()) SWIG_fail;
13523 }
13524 {
13525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13526 }
13527 return resultobj;
13528 fail:
13529 return NULL;
13530 }
13531
13532
13533 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13534 PyObject *resultobj;
13535 wxDC *arg1 = (wxDC *) 0 ;
13536 bool result;
13537 PyObject * obj0 = 0 ;
13538 char *kwnames[] = {
13539 (char *) "self", NULL
13540 };
13541
13542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13545 {
13546 PyThreadState* __tstate = wxPyBeginAllowThreads();
13547 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13548
13549 wxPyEndAllowThreads(__tstate);
13550 if (PyErr_Occurred()) SWIG_fail;
13551 }
13552 {
13553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13554 }
13555 return resultobj;
13556 fail:
13557 return NULL;
13558 }
13559
13560
13561 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13562 PyObject *resultobj;
13563 wxDC *arg1 = (wxDC *) 0 ;
13564 int result;
13565 PyObject * obj0 = 0 ;
13566 char *kwnames[] = {
13567 (char *) "self", NULL
13568 };
13569
13570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13573 {
13574 PyThreadState* __tstate = wxPyBeginAllowThreads();
13575 result = (int)((wxDC const *)arg1)->GetDepth();
13576
13577 wxPyEndAllowThreads(__tstate);
13578 if (PyErr_Occurred()) SWIG_fail;
13579 }
13580 resultobj = SWIG_FromInt((int)result);
13581 return resultobj;
13582 fail:
13583 return NULL;
13584 }
13585
13586
13587 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13588 PyObject *resultobj;
13589 wxDC *arg1 = (wxDC *) 0 ;
13590 wxSize result;
13591 PyObject * obj0 = 0 ;
13592 char *kwnames[] = {
13593 (char *) "self", NULL
13594 };
13595
13596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13599 {
13600 PyThreadState* __tstate = wxPyBeginAllowThreads();
13601 result = ((wxDC const *)arg1)->GetPPI();
13602
13603 wxPyEndAllowThreads(__tstate);
13604 if (PyErr_Occurred()) SWIG_fail;
13605 }
13606 {
13607 wxSize * resultptr;
13608 resultptr = new wxSize((wxSize &) result);
13609 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13610 }
13611 return resultobj;
13612 fail:
13613 return NULL;
13614 }
13615
13616
13617 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13618 PyObject *resultobj;
13619 wxDC *arg1 = (wxDC *) 0 ;
13620 bool result;
13621 PyObject * obj0 = 0 ;
13622 char *kwnames[] = {
13623 (char *) "self", NULL
13624 };
13625
13626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",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 result = (bool)((wxDC const *)arg1)->Ok();
13632
13633 wxPyEndAllowThreads(__tstate);
13634 if (PyErr_Occurred()) SWIG_fail;
13635 }
13636 {
13637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13638 }
13639 return resultobj;
13640 fail:
13641 return NULL;
13642 }
13643
13644
13645 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13646 PyObject *resultobj;
13647 wxDC *arg1 = (wxDC *) 0 ;
13648 int result;
13649 PyObject * obj0 = 0 ;
13650 char *kwnames[] = {
13651 (char *) "self", NULL
13652 };
13653
13654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13657 {
13658 PyThreadState* __tstate = wxPyBeginAllowThreads();
13659 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13660
13661 wxPyEndAllowThreads(__tstate);
13662 if (PyErr_Occurred()) SWIG_fail;
13663 }
13664 resultobj = SWIG_FromInt((int)result);
13665 return resultobj;
13666 fail:
13667 return NULL;
13668 }
13669
13670
13671 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13672 PyObject *resultobj;
13673 wxDC *arg1 = (wxDC *) 0 ;
13674 wxBrush *result;
13675 PyObject * obj0 = 0 ;
13676 char *kwnames[] = {
13677 (char *) "self", NULL
13678 };
13679
13680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13683 {
13684 PyThreadState* __tstate = wxPyBeginAllowThreads();
13685 {
13686 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13687 result = (wxBrush *) &_result_ref;
13688 }
13689
13690 wxPyEndAllowThreads(__tstate);
13691 if (PyErr_Occurred()) SWIG_fail;
13692 }
13693 {
13694 wxBrush* resultptr = new wxBrush(*result);
13695 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13696 }
13697 return resultobj;
13698 fail:
13699 return NULL;
13700 }
13701
13702
13703 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13704 PyObject *resultobj;
13705 wxDC *arg1 = (wxDC *) 0 ;
13706 wxBrush *result;
13707 PyObject * obj0 = 0 ;
13708 char *kwnames[] = {
13709 (char *) "self", NULL
13710 };
13711
13712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13715 {
13716 PyThreadState* __tstate = wxPyBeginAllowThreads();
13717 {
13718 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13719 result = (wxBrush *) &_result_ref;
13720 }
13721
13722 wxPyEndAllowThreads(__tstate);
13723 if (PyErr_Occurred()) SWIG_fail;
13724 }
13725 {
13726 wxBrush* resultptr = new wxBrush(*result);
13727 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13728 }
13729 return resultobj;
13730 fail:
13731 return NULL;
13732 }
13733
13734
13735 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13736 PyObject *resultobj;
13737 wxDC *arg1 = (wxDC *) 0 ;
13738 wxFont *result;
13739 PyObject * obj0 = 0 ;
13740 char *kwnames[] = {
13741 (char *) "self", NULL
13742 };
13743
13744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13747 {
13748 PyThreadState* __tstate = wxPyBeginAllowThreads();
13749 {
13750 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13751 result = (wxFont *) &_result_ref;
13752 }
13753
13754 wxPyEndAllowThreads(__tstate);
13755 if (PyErr_Occurred()) SWIG_fail;
13756 }
13757 {
13758 wxFont* resultptr = new wxFont(*result);
13759 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
13760 }
13761 return resultobj;
13762 fail:
13763 return NULL;
13764 }
13765
13766
13767 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13768 PyObject *resultobj;
13769 wxDC *arg1 = (wxDC *) 0 ;
13770 wxPen *result;
13771 PyObject * obj0 = 0 ;
13772 char *kwnames[] = {
13773 (char *) "self", NULL
13774 };
13775
13776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13779 {
13780 PyThreadState* __tstate = wxPyBeginAllowThreads();
13781 {
13782 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13783 result = (wxPen *) &_result_ref;
13784 }
13785
13786 wxPyEndAllowThreads(__tstate);
13787 if (PyErr_Occurred()) SWIG_fail;
13788 }
13789 {
13790 wxPen* resultptr = new wxPen(*result);
13791 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
13792 }
13793 return resultobj;
13794 fail:
13795 return NULL;
13796 }
13797
13798
13799 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13800 PyObject *resultobj;
13801 wxDC *arg1 = (wxDC *) 0 ;
13802 wxColour *result;
13803 PyObject * obj0 = 0 ;
13804 char *kwnames[] = {
13805 (char *) "self", NULL
13806 };
13807
13808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13811 {
13812 PyThreadState* __tstate = wxPyBeginAllowThreads();
13813 {
13814 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13815 result = (wxColour *) &_result_ref;
13816 }
13817
13818 wxPyEndAllowThreads(__tstate);
13819 if (PyErr_Occurred()) SWIG_fail;
13820 }
13821 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13822 return resultobj;
13823 fail:
13824 return NULL;
13825 }
13826
13827
13828 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13829 PyObject *resultobj;
13830 wxDC *arg1 = (wxDC *) 0 ;
13831 wxColour *result;
13832 PyObject * obj0 = 0 ;
13833 char *kwnames[] = {
13834 (char *) "self", NULL
13835 };
13836
13837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
13838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13840 {
13841 PyThreadState* __tstate = wxPyBeginAllowThreads();
13842 {
13843 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13844 result = (wxColour *) &_result_ref;
13845 }
13846
13847 wxPyEndAllowThreads(__tstate);
13848 if (PyErr_Occurred()) SWIG_fail;
13849 }
13850 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13851 return resultobj;
13852 fail:
13853 return NULL;
13854 }
13855
13856
13857 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13858 PyObject *resultobj;
13859 wxDC *arg1 = (wxDC *) 0 ;
13860 wxColour *arg2 = 0 ;
13861 wxColour temp2 ;
13862 PyObject * obj0 = 0 ;
13863 PyObject * obj1 = 0 ;
13864 char *kwnames[] = {
13865 (char *) "self",(char *) "colour", NULL
13866 };
13867
13868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
13869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13871 {
13872 arg2 = &temp2;
13873 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13874 }
13875 {
13876 PyThreadState* __tstate = wxPyBeginAllowThreads();
13877 (arg1)->SetTextForeground((wxColour const &)*arg2);
13878
13879 wxPyEndAllowThreads(__tstate);
13880 if (PyErr_Occurred()) SWIG_fail;
13881 }
13882 Py_INCREF(Py_None); resultobj = Py_None;
13883 return resultobj;
13884 fail:
13885 return NULL;
13886 }
13887
13888
13889 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13890 PyObject *resultobj;
13891 wxDC *arg1 = (wxDC *) 0 ;
13892 wxColour *arg2 = 0 ;
13893 wxColour temp2 ;
13894 PyObject * obj0 = 0 ;
13895 PyObject * obj1 = 0 ;
13896 char *kwnames[] = {
13897 (char *) "self",(char *) "colour", NULL
13898 };
13899
13900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
13901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13903 {
13904 arg2 = &temp2;
13905 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13906 }
13907 {
13908 PyThreadState* __tstate = wxPyBeginAllowThreads();
13909 (arg1)->SetTextBackground((wxColour const &)*arg2);
13910
13911 wxPyEndAllowThreads(__tstate);
13912 if (PyErr_Occurred()) SWIG_fail;
13913 }
13914 Py_INCREF(Py_None); resultobj = Py_None;
13915 return resultobj;
13916 fail:
13917 return NULL;
13918 }
13919
13920
13921 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13922 PyObject *resultobj;
13923 wxDC *arg1 = (wxDC *) 0 ;
13924 int result;
13925 PyObject * obj0 = 0 ;
13926 char *kwnames[] = {
13927 (char *) "self", NULL
13928 };
13929
13930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
13931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13933 {
13934 PyThreadState* __tstate = wxPyBeginAllowThreads();
13935 result = (int)((wxDC const *)arg1)->GetMapMode();
13936
13937 wxPyEndAllowThreads(__tstate);
13938 if (PyErr_Occurred()) SWIG_fail;
13939 }
13940 resultobj = SWIG_FromInt((int)result);
13941 return resultobj;
13942 fail:
13943 return NULL;
13944 }
13945
13946
13947 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13948 PyObject *resultobj;
13949 wxDC *arg1 = (wxDC *) 0 ;
13950 int arg2 ;
13951 PyObject * obj0 = 0 ;
13952 PyObject * obj1 = 0 ;
13953 char *kwnames[] = {
13954 (char *) "self",(char *) "mode", NULL
13955 };
13956
13957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
13958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13960 arg2 = (int) SWIG_AsInt(obj1);
13961 if (PyErr_Occurred()) SWIG_fail;
13962 {
13963 PyThreadState* __tstate = wxPyBeginAllowThreads();
13964 (arg1)->SetMapMode(arg2);
13965
13966 wxPyEndAllowThreads(__tstate);
13967 if (PyErr_Occurred()) SWIG_fail;
13968 }
13969 Py_INCREF(Py_None); resultobj = Py_None;
13970 return resultobj;
13971 fail:
13972 return NULL;
13973 }
13974
13975
13976 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13977 PyObject *resultobj;
13978 wxDC *arg1 = (wxDC *) 0 ;
13979 double *arg2 = (double *) 0 ;
13980 double *arg3 = (double *) 0 ;
13981 double temp2 ;
13982 double temp3 ;
13983 PyObject * obj0 = 0 ;
13984 char *kwnames[] = {
13985 (char *) "self", NULL
13986 };
13987
13988 arg2 = &temp2;
13989 arg3 = &temp3;
13990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
13991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13993 {
13994 PyThreadState* __tstate = wxPyBeginAllowThreads();
13995 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
13996
13997 wxPyEndAllowThreads(__tstate);
13998 if (PyErr_Occurred()) SWIG_fail;
13999 }
14000 Py_INCREF(Py_None); resultobj = Py_None;
14001 {
14002 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14003 resultobj = t_output_helper(resultobj,o);
14004 }
14005 {
14006 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14007 resultobj = t_output_helper(resultobj,o);
14008 }
14009 return resultobj;
14010 fail:
14011 return NULL;
14012 }
14013
14014
14015 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14016 PyObject *resultobj;
14017 wxDC *arg1 = (wxDC *) 0 ;
14018 double arg2 ;
14019 double arg3 ;
14020 PyObject * obj0 = 0 ;
14021 PyObject * obj1 = 0 ;
14022 PyObject * obj2 = 0 ;
14023 char *kwnames[] = {
14024 (char *) "self",(char *) "x",(char *) "y", NULL
14025 };
14026
14027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14030 arg2 = (double) SWIG_AsDouble(obj1);
14031 if (PyErr_Occurred()) SWIG_fail;
14032 arg3 = (double) SWIG_AsDouble(obj2);
14033 if (PyErr_Occurred()) SWIG_fail;
14034 {
14035 PyThreadState* __tstate = wxPyBeginAllowThreads();
14036 (arg1)->SetUserScale(arg2,arg3);
14037
14038 wxPyEndAllowThreads(__tstate);
14039 if (PyErr_Occurred()) SWIG_fail;
14040 }
14041 Py_INCREF(Py_None); resultobj = Py_None;
14042 return resultobj;
14043 fail:
14044 return NULL;
14045 }
14046
14047
14048 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14049 PyObject *resultobj;
14050 wxDC *arg1 = (wxDC *) 0 ;
14051 double *arg2 = (double *) 0 ;
14052 double *arg3 = (double *) 0 ;
14053 double temp2 ;
14054 double temp3 ;
14055 PyObject * obj0 = 0 ;
14056 char *kwnames[] = {
14057 (char *) "self", NULL
14058 };
14059
14060 arg2 = &temp2;
14061 arg3 = &temp3;
14062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14065 {
14066 PyThreadState* __tstate = wxPyBeginAllowThreads();
14067 (arg1)->GetLogicalScale(arg2,arg3);
14068
14069 wxPyEndAllowThreads(__tstate);
14070 if (PyErr_Occurred()) SWIG_fail;
14071 }
14072 Py_INCREF(Py_None); resultobj = Py_None;
14073 {
14074 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14075 resultobj = t_output_helper(resultobj,o);
14076 }
14077 {
14078 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14079 resultobj = t_output_helper(resultobj,o);
14080 }
14081 return resultobj;
14082 fail:
14083 return NULL;
14084 }
14085
14086
14087 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14088 PyObject *resultobj;
14089 wxDC *arg1 = (wxDC *) 0 ;
14090 double arg2 ;
14091 double arg3 ;
14092 PyObject * obj0 = 0 ;
14093 PyObject * obj1 = 0 ;
14094 PyObject * obj2 = 0 ;
14095 char *kwnames[] = {
14096 (char *) "self",(char *) "x",(char *) "y", NULL
14097 };
14098
14099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14102 arg2 = (double) SWIG_AsDouble(obj1);
14103 if (PyErr_Occurred()) SWIG_fail;
14104 arg3 = (double) SWIG_AsDouble(obj2);
14105 if (PyErr_Occurred()) SWIG_fail;
14106 {
14107 PyThreadState* __tstate = wxPyBeginAllowThreads();
14108 (arg1)->SetLogicalScale(arg2,arg3);
14109
14110 wxPyEndAllowThreads(__tstate);
14111 if (PyErr_Occurred()) SWIG_fail;
14112 }
14113 Py_INCREF(Py_None); resultobj = Py_None;
14114 return resultobj;
14115 fail:
14116 return NULL;
14117 }
14118
14119
14120 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14121 PyObject *resultobj;
14122 wxDC *arg1 = (wxDC *) 0 ;
14123 wxPoint result;
14124 PyObject * obj0 = 0 ;
14125 char *kwnames[] = {
14126 (char *) "self", NULL
14127 };
14128
14129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14132 {
14133 PyThreadState* __tstate = wxPyBeginAllowThreads();
14134 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14135
14136 wxPyEndAllowThreads(__tstate);
14137 if (PyErr_Occurred()) SWIG_fail;
14138 }
14139 {
14140 wxPoint * resultptr;
14141 resultptr = new wxPoint((wxPoint &) result);
14142 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14143 }
14144 return resultobj;
14145 fail:
14146 return NULL;
14147 }
14148
14149
14150 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14151 PyObject *resultobj;
14152 wxDC *arg1 = (wxDC *) 0 ;
14153 int *arg2 = (int *) 0 ;
14154 int *arg3 = (int *) 0 ;
14155 int temp2 ;
14156 int temp3 ;
14157 PyObject * obj0 = 0 ;
14158 char *kwnames[] = {
14159 (char *) "self", NULL
14160 };
14161
14162 arg2 = &temp2;
14163 arg3 = &temp3;
14164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14167 {
14168 PyThreadState* __tstate = wxPyBeginAllowThreads();
14169 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14170
14171 wxPyEndAllowThreads(__tstate);
14172 if (PyErr_Occurred()) SWIG_fail;
14173 }
14174 Py_INCREF(Py_None); resultobj = Py_None;
14175 {
14176 PyObject *o = PyInt_FromLong((long) (*arg2));
14177 resultobj = t_output_helper(resultobj,o);
14178 }
14179 {
14180 PyObject *o = PyInt_FromLong((long) (*arg3));
14181 resultobj = t_output_helper(resultobj,o);
14182 }
14183 return resultobj;
14184 fail:
14185 return NULL;
14186 }
14187
14188
14189 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14190 PyObject *resultobj;
14191 wxDC *arg1 = (wxDC *) 0 ;
14192 int arg2 ;
14193 int arg3 ;
14194 PyObject * obj0 = 0 ;
14195 PyObject * obj1 = 0 ;
14196 PyObject * obj2 = 0 ;
14197 char *kwnames[] = {
14198 (char *) "self",(char *) "x",(char *) "y", NULL
14199 };
14200
14201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14204 arg2 = (int) SWIG_AsInt(obj1);
14205 if (PyErr_Occurred()) SWIG_fail;
14206 arg3 = (int) SWIG_AsInt(obj2);
14207 if (PyErr_Occurred()) SWIG_fail;
14208 {
14209 PyThreadState* __tstate = wxPyBeginAllowThreads();
14210 (arg1)->SetLogicalOrigin(arg2,arg3);
14211
14212 wxPyEndAllowThreads(__tstate);
14213 if (PyErr_Occurred()) SWIG_fail;
14214 }
14215 Py_INCREF(Py_None); resultobj = Py_None;
14216 return resultobj;
14217 fail:
14218 return NULL;
14219 }
14220
14221
14222 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14223 PyObject *resultobj;
14224 wxDC *arg1 = (wxDC *) 0 ;
14225 wxPoint result;
14226 PyObject * obj0 = 0 ;
14227 char *kwnames[] = {
14228 (char *) "self", NULL
14229 };
14230
14231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14234 {
14235 PyThreadState* __tstate = wxPyBeginAllowThreads();
14236 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14237
14238 wxPyEndAllowThreads(__tstate);
14239 if (PyErr_Occurred()) SWIG_fail;
14240 }
14241 {
14242 wxPoint * resultptr;
14243 resultptr = new wxPoint((wxPoint &) result);
14244 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14245 }
14246 return resultobj;
14247 fail:
14248 return NULL;
14249 }
14250
14251
14252 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14253 PyObject *resultobj;
14254 wxDC *arg1 = (wxDC *) 0 ;
14255 int *arg2 = (int *) 0 ;
14256 int *arg3 = (int *) 0 ;
14257 int temp2 ;
14258 int temp3 ;
14259 PyObject * obj0 = 0 ;
14260 char *kwnames[] = {
14261 (char *) "self", NULL
14262 };
14263
14264 arg2 = &temp2;
14265 arg3 = &temp3;
14266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14269 {
14270 PyThreadState* __tstate = wxPyBeginAllowThreads();
14271 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14272
14273 wxPyEndAllowThreads(__tstate);
14274 if (PyErr_Occurred()) SWIG_fail;
14275 }
14276 Py_INCREF(Py_None); resultobj = Py_None;
14277 {
14278 PyObject *o = PyInt_FromLong((long) (*arg2));
14279 resultobj = t_output_helper(resultobj,o);
14280 }
14281 {
14282 PyObject *o = PyInt_FromLong((long) (*arg3));
14283 resultobj = t_output_helper(resultobj,o);
14284 }
14285 return resultobj;
14286 fail:
14287 return NULL;
14288 }
14289
14290
14291 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14292 PyObject *resultobj;
14293 wxDC *arg1 = (wxDC *) 0 ;
14294 int arg2 ;
14295 int arg3 ;
14296 PyObject * obj0 = 0 ;
14297 PyObject * obj1 = 0 ;
14298 PyObject * obj2 = 0 ;
14299 char *kwnames[] = {
14300 (char *) "self",(char *) "x",(char *) "y", NULL
14301 };
14302
14303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14306 arg2 = (int) SWIG_AsInt(obj1);
14307 if (PyErr_Occurred()) SWIG_fail;
14308 arg3 = (int) SWIG_AsInt(obj2);
14309 if (PyErr_Occurred()) SWIG_fail;
14310 {
14311 PyThreadState* __tstate = wxPyBeginAllowThreads();
14312 (arg1)->SetDeviceOrigin(arg2,arg3);
14313
14314 wxPyEndAllowThreads(__tstate);
14315 if (PyErr_Occurred()) SWIG_fail;
14316 }
14317 Py_INCREF(Py_None); resultobj = Py_None;
14318 return resultobj;
14319 fail:
14320 return NULL;
14321 }
14322
14323
14324 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14325 PyObject *resultobj;
14326 wxDC *arg1 = (wxDC *) 0 ;
14327 bool arg2 ;
14328 bool arg3 ;
14329 PyObject * obj0 = 0 ;
14330 PyObject * obj1 = 0 ;
14331 PyObject * obj2 = 0 ;
14332 char *kwnames[] = {
14333 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14334 };
14335
14336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14339 arg2 = (bool) SWIG_AsBool(obj1);
14340 if (PyErr_Occurred()) SWIG_fail;
14341 arg3 = (bool) SWIG_AsBool(obj2);
14342 if (PyErr_Occurred()) SWIG_fail;
14343 {
14344 PyThreadState* __tstate = wxPyBeginAllowThreads();
14345 (arg1)->SetAxisOrientation(arg2,arg3);
14346
14347 wxPyEndAllowThreads(__tstate);
14348 if (PyErr_Occurred()) SWIG_fail;
14349 }
14350 Py_INCREF(Py_None); resultobj = Py_None;
14351 return resultobj;
14352 fail:
14353 return NULL;
14354 }
14355
14356
14357 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14358 PyObject *resultobj;
14359 wxDC *arg1 = (wxDC *) 0 ;
14360 int result;
14361 PyObject * obj0 = 0 ;
14362 char *kwnames[] = {
14363 (char *) "self", NULL
14364 };
14365
14366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14369 {
14370 PyThreadState* __tstate = wxPyBeginAllowThreads();
14371 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14372
14373 wxPyEndAllowThreads(__tstate);
14374 if (PyErr_Occurred()) SWIG_fail;
14375 }
14376 resultobj = SWIG_FromInt((int)result);
14377 return resultobj;
14378 fail:
14379 return NULL;
14380 }
14381
14382
14383 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14384 PyObject *resultobj;
14385 wxDC *arg1 = (wxDC *) 0 ;
14386 int arg2 ;
14387 PyObject * obj0 = 0 ;
14388 PyObject * obj1 = 0 ;
14389 char *kwnames[] = {
14390 (char *) "self",(char *) "function", NULL
14391 };
14392
14393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14396 arg2 = (int) SWIG_AsInt(obj1);
14397 if (PyErr_Occurred()) SWIG_fail;
14398 {
14399 PyThreadState* __tstate = wxPyBeginAllowThreads();
14400 (arg1)->SetLogicalFunction(arg2);
14401
14402 wxPyEndAllowThreads(__tstate);
14403 if (PyErr_Occurred()) SWIG_fail;
14404 }
14405 Py_INCREF(Py_None); resultobj = Py_None;
14406 return resultobj;
14407 fail:
14408 return NULL;
14409 }
14410
14411
14412 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14413 PyObject *resultobj;
14414 wxDC *arg1 = (wxDC *) 0 ;
14415 bool arg2 ;
14416 PyObject * obj0 = 0 ;
14417 PyObject * obj1 = 0 ;
14418 char *kwnames[] = {
14419 (char *) "self",(char *) "opt", NULL
14420 };
14421
14422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14425 arg2 = (bool) SWIG_AsBool(obj1);
14426 if (PyErr_Occurred()) SWIG_fail;
14427 {
14428 PyThreadState* __tstate = wxPyBeginAllowThreads();
14429 (arg1)->SetOptimization(arg2);
14430
14431 wxPyEndAllowThreads(__tstate);
14432 if (PyErr_Occurred()) SWIG_fail;
14433 }
14434 Py_INCREF(Py_None); resultobj = Py_None;
14435 return resultobj;
14436 fail:
14437 return NULL;
14438 }
14439
14440
14441 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14442 PyObject *resultobj;
14443 wxDC *arg1 = (wxDC *) 0 ;
14444 bool result;
14445 PyObject * obj0 = 0 ;
14446 char *kwnames[] = {
14447 (char *) "self", NULL
14448 };
14449
14450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14453 {
14454 PyThreadState* __tstate = wxPyBeginAllowThreads();
14455 result = (bool)(arg1)->GetOptimization();
14456
14457 wxPyEndAllowThreads(__tstate);
14458 if (PyErr_Occurred()) SWIG_fail;
14459 }
14460 {
14461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14462 }
14463 return resultobj;
14464 fail:
14465 return NULL;
14466 }
14467
14468
14469 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14470 PyObject *resultobj;
14471 wxDC *arg1 = (wxDC *) 0 ;
14472 int arg2 ;
14473 int arg3 ;
14474 PyObject * obj0 = 0 ;
14475 PyObject * obj1 = 0 ;
14476 PyObject * obj2 = 0 ;
14477 char *kwnames[] = {
14478 (char *) "self",(char *) "x",(char *) "y", NULL
14479 };
14480
14481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14484 arg2 = (int) SWIG_AsInt(obj1);
14485 if (PyErr_Occurred()) SWIG_fail;
14486 arg3 = (int) SWIG_AsInt(obj2);
14487 if (PyErr_Occurred()) SWIG_fail;
14488 {
14489 PyThreadState* __tstate = wxPyBeginAllowThreads();
14490 (arg1)->CalcBoundingBox(arg2,arg3);
14491
14492 wxPyEndAllowThreads(__tstate);
14493 if (PyErr_Occurred()) SWIG_fail;
14494 }
14495 Py_INCREF(Py_None); resultobj = Py_None;
14496 return resultobj;
14497 fail:
14498 return NULL;
14499 }
14500
14501
14502 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14503 PyObject *resultobj;
14504 wxDC *arg1 = (wxDC *) 0 ;
14505 PyObject * obj0 = 0 ;
14506 char *kwnames[] = {
14507 (char *) "self", NULL
14508 };
14509
14510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14513 {
14514 PyThreadState* __tstate = wxPyBeginAllowThreads();
14515 (arg1)->ResetBoundingBox();
14516
14517 wxPyEndAllowThreads(__tstate);
14518 if (PyErr_Occurred()) SWIG_fail;
14519 }
14520 Py_INCREF(Py_None); resultobj = Py_None;
14521 return resultobj;
14522 fail:
14523 return NULL;
14524 }
14525
14526
14527 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14528 PyObject *resultobj;
14529 wxDC *arg1 = (wxDC *) 0 ;
14530 int result;
14531 PyObject * obj0 = 0 ;
14532 char *kwnames[] = {
14533 (char *) "self", NULL
14534 };
14535
14536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14539 {
14540 PyThreadState* __tstate = wxPyBeginAllowThreads();
14541 result = (int)((wxDC const *)arg1)->MinX();
14542
14543 wxPyEndAllowThreads(__tstate);
14544 if (PyErr_Occurred()) SWIG_fail;
14545 }
14546 resultobj = SWIG_FromInt((int)result);
14547 return resultobj;
14548 fail:
14549 return NULL;
14550 }
14551
14552
14553 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14554 PyObject *resultobj;
14555 wxDC *arg1 = (wxDC *) 0 ;
14556 int result;
14557 PyObject * obj0 = 0 ;
14558 char *kwnames[] = {
14559 (char *) "self", NULL
14560 };
14561
14562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14565 {
14566 PyThreadState* __tstate = wxPyBeginAllowThreads();
14567 result = (int)((wxDC const *)arg1)->MaxX();
14568
14569 wxPyEndAllowThreads(__tstate);
14570 if (PyErr_Occurred()) SWIG_fail;
14571 }
14572 resultobj = SWIG_FromInt((int)result);
14573 return resultobj;
14574 fail:
14575 return NULL;
14576 }
14577
14578
14579 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14580 PyObject *resultobj;
14581 wxDC *arg1 = (wxDC *) 0 ;
14582 int result;
14583 PyObject * obj0 = 0 ;
14584 char *kwnames[] = {
14585 (char *) "self", NULL
14586 };
14587
14588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14591 {
14592 PyThreadState* __tstate = wxPyBeginAllowThreads();
14593 result = (int)((wxDC const *)arg1)->MinY();
14594
14595 wxPyEndAllowThreads(__tstate);
14596 if (PyErr_Occurred()) SWIG_fail;
14597 }
14598 resultobj = SWIG_FromInt((int)result);
14599 return resultobj;
14600 fail:
14601 return NULL;
14602 }
14603
14604
14605 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14606 PyObject *resultobj;
14607 wxDC *arg1 = (wxDC *) 0 ;
14608 int result;
14609 PyObject * obj0 = 0 ;
14610 char *kwnames[] = {
14611 (char *) "self", NULL
14612 };
14613
14614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14617 {
14618 PyThreadState* __tstate = wxPyBeginAllowThreads();
14619 result = (int)((wxDC const *)arg1)->MaxY();
14620
14621 wxPyEndAllowThreads(__tstate);
14622 if (PyErr_Occurred()) SWIG_fail;
14623 }
14624 resultobj = SWIG_FromInt((int)result);
14625 return resultobj;
14626 fail:
14627 return NULL;
14628 }
14629
14630
14631 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14632 PyObject *resultobj;
14633 wxDC *arg1 = (wxDC *) 0 ;
14634 int *arg2 = (int *) 0 ;
14635 int *arg3 = (int *) 0 ;
14636 int *arg4 = (int *) 0 ;
14637 int *arg5 = (int *) 0 ;
14638 int temp2 ;
14639 int temp3 ;
14640 int temp4 ;
14641 int temp5 ;
14642 PyObject * obj0 = 0 ;
14643 char *kwnames[] = {
14644 (char *) "self", NULL
14645 };
14646
14647 arg2 = &temp2;
14648 arg3 = &temp3;
14649 arg4 = &temp4;
14650 arg5 = &temp5;
14651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14654 {
14655 PyThreadState* __tstate = wxPyBeginAllowThreads();
14656 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14657
14658 wxPyEndAllowThreads(__tstate);
14659 if (PyErr_Occurred()) SWIG_fail;
14660 }
14661 Py_INCREF(Py_None); resultobj = Py_None;
14662 {
14663 PyObject *o = PyInt_FromLong((long) (*arg2));
14664 resultobj = t_output_helper(resultobj,o);
14665 }
14666 {
14667 PyObject *o = PyInt_FromLong((long) (*arg3));
14668 resultobj = t_output_helper(resultobj,o);
14669 }
14670 {
14671 PyObject *o = PyInt_FromLong((long) (*arg4));
14672 resultobj = t_output_helper(resultobj,o);
14673 }
14674 {
14675 PyObject *o = PyInt_FromLong((long) (*arg5));
14676 resultobj = t_output_helper(resultobj,o);
14677 }
14678 return resultobj;
14679 fail:
14680 return NULL;
14681 }
14682
14683
14684 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14685 PyObject *resultobj;
14686 wxDC *arg1 = (wxDC *) 0 ;
14687 PyObject *arg2 = (PyObject *) 0 ;
14688 PyObject *arg3 = (PyObject *) 0 ;
14689 PyObject *arg4 = (PyObject *) 0 ;
14690 PyObject *result;
14691 PyObject * obj0 = 0 ;
14692 PyObject * obj1 = 0 ;
14693 PyObject * obj2 = 0 ;
14694 PyObject * obj3 = 0 ;
14695 char *kwnames[] = {
14696 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14697 };
14698
14699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14702 arg2 = obj1;
14703 arg3 = obj2;
14704 arg4 = obj3;
14705 {
14706 PyThreadState* __tstate = wxPyBeginAllowThreads();
14707 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14708
14709 wxPyEndAllowThreads(__tstate);
14710 if (PyErr_Occurred()) SWIG_fail;
14711 }
14712 resultobj = result;
14713 return resultobj;
14714 fail:
14715 return NULL;
14716 }
14717
14718
14719 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14720 PyObject *resultobj;
14721 wxDC *arg1 = (wxDC *) 0 ;
14722 PyObject *arg2 = (PyObject *) 0 ;
14723 PyObject *arg3 = (PyObject *) 0 ;
14724 PyObject *arg4 = (PyObject *) 0 ;
14725 PyObject *result;
14726 PyObject * obj0 = 0 ;
14727 PyObject * obj1 = 0 ;
14728 PyObject * obj2 = 0 ;
14729 PyObject * obj3 = 0 ;
14730 char *kwnames[] = {
14731 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14732 };
14733
14734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14737 arg2 = obj1;
14738 arg3 = obj2;
14739 arg4 = obj3;
14740 {
14741 PyThreadState* __tstate = wxPyBeginAllowThreads();
14742 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14743
14744 wxPyEndAllowThreads(__tstate);
14745 if (PyErr_Occurred()) SWIG_fail;
14746 }
14747 resultobj = result;
14748 return resultobj;
14749 fail:
14750 return NULL;
14751 }
14752
14753
14754 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14755 PyObject *resultobj;
14756 wxDC *arg1 = (wxDC *) 0 ;
14757 PyObject *arg2 = (PyObject *) 0 ;
14758 PyObject *arg3 = (PyObject *) 0 ;
14759 PyObject *arg4 = (PyObject *) 0 ;
14760 PyObject *result;
14761 PyObject * obj0 = 0 ;
14762 PyObject * obj1 = 0 ;
14763 PyObject * obj2 = 0 ;
14764 PyObject * obj3 = 0 ;
14765 char *kwnames[] = {
14766 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14767 };
14768
14769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14772 arg2 = obj1;
14773 arg3 = obj2;
14774 arg4 = obj3;
14775 {
14776 PyThreadState* __tstate = wxPyBeginAllowThreads();
14777 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14778
14779 wxPyEndAllowThreads(__tstate);
14780 if (PyErr_Occurred()) SWIG_fail;
14781 }
14782 resultobj = result;
14783 return resultobj;
14784 fail:
14785 return NULL;
14786 }
14787
14788
14789 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14790 PyObject *resultobj;
14791 wxDC *arg1 = (wxDC *) 0 ;
14792 PyObject *arg2 = (PyObject *) 0 ;
14793 PyObject *arg3 = (PyObject *) 0 ;
14794 PyObject *arg4 = (PyObject *) 0 ;
14795 PyObject *result;
14796 PyObject * obj0 = 0 ;
14797 PyObject * obj1 = 0 ;
14798 PyObject * obj2 = 0 ;
14799 PyObject * obj3 = 0 ;
14800 char *kwnames[] = {
14801 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14802 };
14803
14804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14807 arg2 = obj1;
14808 arg3 = obj2;
14809 arg4 = obj3;
14810 {
14811 PyThreadState* __tstate = wxPyBeginAllowThreads();
14812 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14813
14814 wxPyEndAllowThreads(__tstate);
14815 if (PyErr_Occurred()) SWIG_fail;
14816 }
14817 resultobj = result;
14818 return resultobj;
14819 fail:
14820 return NULL;
14821 }
14822
14823
14824 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
14825 PyObject *resultobj;
14826 wxDC *arg1 = (wxDC *) 0 ;
14827 PyObject *arg2 = (PyObject *) 0 ;
14828 PyObject *arg3 = (PyObject *) 0 ;
14829 PyObject *arg4 = (PyObject *) 0 ;
14830 PyObject *result;
14831 PyObject * obj0 = 0 ;
14832 PyObject * obj1 = 0 ;
14833 PyObject * obj2 = 0 ;
14834 PyObject * obj3 = 0 ;
14835 char *kwnames[] = {
14836 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14837 };
14838
14839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14842 arg2 = obj1;
14843 arg3 = obj2;
14844 arg4 = obj3;
14845 {
14846 PyThreadState* __tstate = wxPyBeginAllowThreads();
14847 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
14848
14849 wxPyEndAllowThreads(__tstate);
14850 if (PyErr_Occurred()) SWIG_fail;
14851 }
14852 resultobj = result;
14853 return resultobj;
14854 fail:
14855 return NULL;
14856 }
14857
14858
14859 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
14860 PyObject *resultobj;
14861 wxDC *arg1 = (wxDC *) 0 ;
14862 PyObject *arg2 = (PyObject *) 0 ;
14863 PyObject *arg3 = (PyObject *) 0 ;
14864 PyObject *arg4 = (PyObject *) 0 ;
14865 PyObject *arg5 = (PyObject *) 0 ;
14866 PyObject *result;
14867 PyObject * obj0 = 0 ;
14868 PyObject * obj1 = 0 ;
14869 PyObject * obj2 = 0 ;
14870 PyObject * obj3 = 0 ;
14871 PyObject * obj4 = 0 ;
14872 char *kwnames[] = {
14873 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
14874 };
14875
14876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14879 arg2 = obj1;
14880 arg3 = obj2;
14881 arg4 = obj3;
14882 arg5 = obj4;
14883 {
14884 PyThreadState* __tstate = wxPyBeginAllowThreads();
14885 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
14886
14887 wxPyEndAllowThreads(__tstate);
14888 if (PyErr_Occurred()) SWIG_fail;
14889 }
14890 resultobj = result;
14891 return resultobj;
14892 fail:
14893 return NULL;
14894 }
14895
14896
14897 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
14898 PyObject *obj;
14899 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14900 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
14901 Py_INCREF(obj);
14902 return Py_BuildValue((char *)"");
14903 }
14904 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14905 PyObject *resultobj;
14906 wxMemoryDC *result;
14907 char *kwnames[] = {
14908 NULL
14909 };
14910
14911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
14912 {
14913 PyThreadState* __tstate = wxPyBeginAllowThreads();
14914 result = (wxMemoryDC *)new wxMemoryDC();
14915
14916 wxPyEndAllowThreads(__tstate);
14917 if (PyErr_Occurred()) SWIG_fail;
14918 }
14919 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
14920 return resultobj;
14921 fail:
14922 return NULL;
14923 }
14924
14925
14926 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14927 PyObject *resultobj;
14928 wxDC *arg1 = (wxDC *) 0 ;
14929 wxMemoryDC *result;
14930 PyObject * obj0 = 0 ;
14931 char *kwnames[] = {
14932 (char *) "oldDC", NULL
14933 };
14934
14935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
14936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14938 {
14939 PyThreadState* __tstate = wxPyBeginAllowThreads();
14940 result = (wxMemoryDC *)new wxMemoryDC(arg1);
14941
14942 wxPyEndAllowThreads(__tstate);
14943 if (PyErr_Occurred()) SWIG_fail;
14944 }
14945 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
14946 return resultobj;
14947 fail:
14948 return NULL;
14949 }
14950
14951
14952 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
14953 PyObject *resultobj;
14954 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
14955 wxBitmap *arg2 = 0 ;
14956 PyObject * obj0 = 0 ;
14957 PyObject * obj1 = 0 ;
14958 char *kwnames[] = {
14959 (char *) "self",(char *) "bitmap", NULL
14960 };
14961
14962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
14963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
14964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14965 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
14966 SWIG_POINTER_EXCEPTION | 0)) == -1)
14967 SWIG_fail;
14968 if (arg2 == NULL) {
14969 PyErr_SetString(PyExc_TypeError,"null reference");
14970 SWIG_fail;
14971 }
14972 {
14973 PyThreadState* __tstate = wxPyBeginAllowThreads();
14974 (arg1)->SelectObject((wxBitmap const &)*arg2);
14975
14976 wxPyEndAllowThreads(__tstate);
14977 if (PyErr_Occurred()) SWIG_fail;
14978 }
14979 Py_INCREF(Py_None); resultobj = Py_None;
14980 return resultobj;
14981 fail:
14982 return NULL;
14983 }
14984
14985
14986 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
14987 PyObject *obj;
14988 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14989 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
14990 Py_INCREF(obj);
14991 return Py_BuildValue((char *)"");
14992 }
14993 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
14994 PyObject *resultobj;
14995 wxDC *arg1 = (wxDC *) 0 ;
14996 wxBitmap *arg2 = 0 ;
14997 wxBufferedDC *result;
14998 PyObject * obj0 = 0 ;
14999 PyObject * obj1 = 0 ;
15000
15001 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15004 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15005 SWIG_POINTER_EXCEPTION | 0)) == -1)
15006 SWIG_fail;
15007 if (arg2 == NULL) {
15008 PyErr_SetString(PyExc_TypeError,"null reference");
15009 SWIG_fail;
15010 }
15011 {
15012 PyThreadState* __tstate = wxPyBeginAllowThreads();
15013 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15014
15015 wxPyEndAllowThreads(__tstate);
15016 if (PyErr_Occurred()) SWIG_fail;
15017 }
15018 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15019 return resultobj;
15020 fail:
15021 return NULL;
15022 }
15023
15024
15025 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
15026 PyObject *resultobj;
15027 wxDC *arg1 = (wxDC *) 0 ;
15028 wxSize *arg2 = 0 ;
15029 wxBufferedDC *result;
15030 wxSize temp2 ;
15031 PyObject * obj0 = 0 ;
15032 PyObject * obj1 = 0 ;
15033
15034 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15037 {
15038 arg2 = &temp2;
15039 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15040 }
15041 {
15042 PyThreadState* __tstate = wxPyBeginAllowThreads();
15043 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15044
15045 wxPyEndAllowThreads(__tstate);
15046 if (PyErr_Occurred()) SWIG_fail;
15047 }
15048 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15049 return resultobj;
15050 fail:
15051 return NULL;
15052 }
15053
15054
15055 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15056 int argc;
15057 PyObject *argv[3];
15058 int ii;
15059
15060 argc = PyObject_Length(args);
15061 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15062 argv[ii] = PyTuple_GetItem(args,ii);
15063 }
15064 if (argc == 2) {
15065 int _v;
15066 {
15067 void *ptr;
15068 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15069 _v = 0;
15070 PyErr_Clear();
15071 } else {
15072 _v = 1;
15073 }
15074 }
15075 if (_v) {
15076 {
15077 void *ptr;
15078 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15079 _v = 0;
15080 PyErr_Clear();
15081 } else {
15082 _v = 1;
15083 }
15084 }
15085 if (_v) {
15086 return _wrap_new_BufferedDC__SWIG_0(self,args);
15087 }
15088 }
15089 }
15090 if (argc == 2) {
15091 int _v;
15092 {
15093 void *ptr;
15094 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15095 _v = 0;
15096 PyErr_Clear();
15097 } else {
15098 _v = 1;
15099 }
15100 }
15101 if (_v) {
15102 {
15103 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15104 }
15105 if (_v) {
15106 return _wrap_new_BufferedDC__SWIG_1(self,args);
15107 }
15108 }
15109 }
15110
15111 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15112 return NULL;
15113 }
15114
15115
15116 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
15117 PyObject *resultobj;
15118 wxDC *arg1 = (wxDC *) 0 ;
15119 wxSize *arg2 = 0 ;
15120 wxBufferedDC *result;
15121 wxSize temp2 ;
15122 PyObject * obj0 = 0 ;
15123 PyObject * obj1 = 0 ;
15124
15125 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
15126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15128 {
15129 arg2 = &temp2;
15130 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15131 }
15132 {
15133 PyThreadState* __tstate = wxPyBeginAllowThreads();
15134 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15135
15136 wxPyEndAllowThreads(__tstate);
15137 if (PyErr_Occurred()) SWIG_fail;
15138 }
15139 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15140 return resultobj;
15141 fail:
15142 return NULL;
15143 }
15144
15145
15146 static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15147 PyObject *resultobj;
15148 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15149 PyObject * obj0 = 0 ;
15150 char *kwnames[] = {
15151 (char *) "self", NULL
15152 };
15153
15154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15157 {
15158 PyThreadState* __tstate = wxPyBeginAllowThreads();
15159 delete arg1;
15160
15161 wxPyEndAllowThreads(__tstate);
15162 if (PyErr_Occurred()) SWIG_fail;
15163 }
15164 Py_INCREF(Py_None); resultobj = Py_None;
15165 return resultobj;
15166 fail:
15167 return NULL;
15168 }
15169
15170
15171 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15172 PyObject *resultobj;
15173 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15174 PyObject * obj0 = 0 ;
15175 char *kwnames[] = {
15176 (char *) "self", NULL
15177 };
15178
15179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15182 {
15183 PyThreadState* __tstate = wxPyBeginAllowThreads();
15184 (arg1)->UnMask();
15185
15186 wxPyEndAllowThreads(__tstate);
15187 if (PyErr_Occurred()) SWIG_fail;
15188 }
15189 Py_INCREF(Py_None); resultobj = Py_None;
15190 return resultobj;
15191 fail:
15192 return NULL;
15193 }
15194
15195
15196 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15197 PyObject *obj;
15198 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15199 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15200 Py_INCREF(obj);
15201 return Py_BuildValue((char *)"");
15202 }
15203 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15204 PyObject *resultobj;
15205 wxWindow *arg1 = (wxWindow *) 0 ;
15206 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15207 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15208 wxBufferedPaintDC *result;
15209 PyObject * obj0 = 0 ;
15210 PyObject * obj1 = 0 ;
15211 char *kwnames[] = {
15212 (char *) "window",(char *) "buffer", NULL
15213 };
15214
15215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15218 if (obj1) {
15219 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15220 SWIG_POINTER_EXCEPTION | 0)) == -1)
15221 SWIG_fail;
15222 if (arg2 == NULL) {
15223 PyErr_SetString(PyExc_TypeError,"null reference");
15224 SWIG_fail;
15225 }
15226 }
15227 {
15228 PyThreadState* __tstate = wxPyBeginAllowThreads();
15229 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15230
15231 wxPyEndAllowThreads(__tstate);
15232 if (PyErr_Occurred()) SWIG_fail;
15233 }
15234 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15235 return resultobj;
15236 fail:
15237 return NULL;
15238 }
15239
15240
15241 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15242 PyObject *obj;
15243 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15244 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15245 Py_INCREF(obj);
15246 return Py_BuildValue((char *)"");
15247 }
15248 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15249 PyObject *resultobj;
15250 wxScreenDC *result;
15251 char *kwnames[] = {
15252 NULL
15253 };
15254
15255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15256 {
15257 PyThreadState* __tstate = wxPyBeginAllowThreads();
15258 result = (wxScreenDC *)new wxScreenDC();
15259
15260 wxPyEndAllowThreads(__tstate);
15261 if (PyErr_Occurred()) SWIG_fail;
15262 }
15263 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15264 return resultobj;
15265 fail:
15266 return NULL;
15267 }
15268
15269
15270 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15271 PyObject *resultobj;
15272 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15273 wxWindow *arg2 = (wxWindow *) 0 ;
15274 bool result;
15275 PyObject * obj0 = 0 ;
15276 PyObject * obj1 = 0 ;
15277 char *kwnames[] = {
15278 (char *) "self",(char *) "window", NULL
15279 };
15280
15281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15284 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15286 {
15287 PyThreadState* __tstate = wxPyBeginAllowThreads();
15288 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15289
15290 wxPyEndAllowThreads(__tstate);
15291 if (PyErr_Occurred()) SWIG_fail;
15292 }
15293 {
15294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15295 }
15296 return resultobj;
15297 fail:
15298 return NULL;
15299 }
15300
15301
15302 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15303 PyObject *resultobj;
15304 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15305 wxRect *arg2 = (wxRect *) NULL ;
15306 bool result;
15307 PyObject * obj0 = 0 ;
15308 PyObject * obj1 = 0 ;
15309 char *kwnames[] = {
15310 (char *) "self",(char *) "rect", NULL
15311 };
15312
15313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15316 if (obj1) {
15317 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15319 }
15320 {
15321 PyThreadState* __tstate = wxPyBeginAllowThreads();
15322 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15323
15324 wxPyEndAllowThreads(__tstate);
15325 if (PyErr_Occurred()) SWIG_fail;
15326 }
15327 {
15328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15329 }
15330 return resultobj;
15331 fail:
15332 return NULL;
15333 }
15334
15335
15336 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15337 PyObject *resultobj;
15338 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15339 bool result;
15340 PyObject * obj0 = 0 ;
15341 char *kwnames[] = {
15342 (char *) "self", NULL
15343 };
15344
15345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15348 {
15349 PyThreadState* __tstate = wxPyBeginAllowThreads();
15350 result = (bool)(arg1)->EndDrawingOnTop();
15351
15352 wxPyEndAllowThreads(__tstate);
15353 if (PyErr_Occurred()) SWIG_fail;
15354 }
15355 {
15356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15357 }
15358 return resultobj;
15359 fail:
15360 return NULL;
15361 }
15362
15363
15364 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15365 PyObject *obj;
15366 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15367 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15368 Py_INCREF(obj);
15369 return Py_BuildValue((char *)"");
15370 }
15371 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15372 PyObject *resultobj;
15373 wxWindow *arg1 = (wxWindow *) 0 ;
15374 wxClientDC *result;
15375 PyObject * obj0 = 0 ;
15376 char *kwnames[] = {
15377 (char *) "win", NULL
15378 };
15379
15380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15383 {
15384 PyThreadState* __tstate = wxPyBeginAllowThreads();
15385 result = (wxClientDC *)new wxClientDC(arg1);
15386
15387 wxPyEndAllowThreads(__tstate);
15388 if (PyErr_Occurred()) SWIG_fail;
15389 }
15390 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
15391 return resultobj;
15392 fail:
15393 return NULL;
15394 }
15395
15396
15397 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15398 PyObject *obj;
15399 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15400 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15401 Py_INCREF(obj);
15402 return Py_BuildValue((char *)"");
15403 }
15404 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15405 PyObject *resultobj;
15406 wxWindow *arg1 = (wxWindow *) 0 ;
15407 wxPaintDC *result;
15408 PyObject * obj0 = 0 ;
15409 char *kwnames[] = {
15410 (char *) "win", NULL
15411 };
15412
15413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15416 {
15417 PyThreadState* __tstate = wxPyBeginAllowThreads();
15418 result = (wxPaintDC *)new wxPaintDC(arg1);
15419
15420 wxPyEndAllowThreads(__tstate);
15421 if (PyErr_Occurred()) SWIG_fail;
15422 }
15423 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
15424 return resultobj;
15425 fail:
15426 return NULL;
15427 }
15428
15429
15430 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15431 PyObject *obj;
15432 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15433 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15434 Py_INCREF(obj);
15435 return Py_BuildValue((char *)"");
15436 }
15437 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15438 PyObject *resultobj;
15439 wxWindow *arg1 = (wxWindow *) 0 ;
15440 wxWindowDC *result;
15441 PyObject * obj0 = 0 ;
15442 char *kwnames[] = {
15443 (char *) "win", NULL
15444 };
15445
15446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15449 {
15450 PyThreadState* __tstate = wxPyBeginAllowThreads();
15451 result = (wxWindowDC *)new wxWindowDC(arg1);
15452
15453 wxPyEndAllowThreads(__tstate);
15454 if (PyErr_Occurred()) SWIG_fail;
15455 }
15456 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
15457 return resultobj;
15458 fail:
15459 return NULL;
15460 }
15461
15462
15463 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
15464 PyObject *obj;
15465 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15466 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15467 Py_INCREF(obj);
15468 return Py_BuildValue((char *)"");
15469 }
15470 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15471 PyObject *resultobj;
15472 wxDC *arg1 = 0 ;
15473 bool arg2 ;
15474 wxMirrorDC *result;
15475 PyObject * obj0 = 0 ;
15476 PyObject * obj1 = 0 ;
15477 char *kwnames[] = {
15478 (char *) "dc",(char *) "mirror", NULL
15479 };
15480
15481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15483 SWIG_POINTER_EXCEPTION | 0)) == -1)
15484 SWIG_fail;
15485 if (arg1 == NULL) {
15486 PyErr_SetString(PyExc_TypeError,"null reference");
15487 SWIG_fail;
15488 }
15489 arg2 = (bool) SWIG_AsBool(obj1);
15490 if (PyErr_Occurred()) SWIG_fail;
15491 {
15492 PyThreadState* __tstate = wxPyBeginAllowThreads();
15493 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15494
15495 wxPyEndAllowThreads(__tstate);
15496 if (PyErr_Occurred()) SWIG_fail;
15497 }
15498 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
15499 return resultobj;
15500 fail:
15501 return NULL;
15502 }
15503
15504
15505 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
15506 PyObject *obj;
15507 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15508 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15509 Py_INCREF(obj);
15510 return Py_BuildValue((char *)"");
15511 }
15512 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15513 PyObject *resultobj;
15514 wxPrintData *arg1 = 0 ;
15515 wxPostScriptDC *result;
15516 PyObject * obj0 = 0 ;
15517 char *kwnames[] = {
15518 (char *) "printData", NULL
15519 };
15520
15521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15523 SWIG_POINTER_EXCEPTION | 0)) == -1)
15524 SWIG_fail;
15525 if (arg1 == NULL) {
15526 PyErr_SetString(PyExc_TypeError,"null reference");
15527 SWIG_fail;
15528 }
15529 {
15530 PyThreadState* __tstate = wxPyBeginAllowThreads();
15531 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15532
15533 wxPyEndAllowThreads(__tstate);
15534 if (PyErr_Occurred()) SWIG_fail;
15535 }
15536 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
15537 return resultobj;
15538 fail:
15539 return NULL;
15540 }
15541
15542
15543 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15544 PyObject *resultobj;
15545 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15546 wxPrintData *result;
15547 PyObject * obj0 = 0 ;
15548 char *kwnames[] = {
15549 (char *) "self", NULL
15550 };
15551
15552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15555 {
15556 PyThreadState* __tstate = wxPyBeginAllowThreads();
15557 {
15558 wxPrintData &_result_ref = (arg1)->GetPrintData();
15559 result = (wxPrintData *) &_result_ref;
15560 }
15561
15562 wxPyEndAllowThreads(__tstate);
15563 if (PyErr_Occurred()) SWIG_fail;
15564 }
15565 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
15566 return resultobj;
15567 fail:
15568 return NULL;
15569 }
15570
15571
15572 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15573 PyObject *resultobj;
15574 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15575 wxPrintData *arg2 = 0 ;
15576 PyObject * obj0 = 0 ;
15577 PyObject * obj1 = 0 ;
15578 char *kwnames[] = {
15579 (char *) "self",(char *) "data", NULL
15580 };
15581
15582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15585 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
15586 SWIG_POINTER_EXCEPTION | 0)) == -1)
15587 SWIG_fail;
15588 if (arg2 == NULL) {
15589 PyErr_SetString(PyExc_TypeError,"null reference");
15590 SWIG_fail;
15591 }
15592 {
15593 PyThreadState* __tstate = wxPyBeginAllowThreads();
15594 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15595
15596 wxPyEndAllowThreads(__tstate);
15597 if (PyErr_Occurred()) SWIG_fail;
15598 }
15599 Py_INCREF(Py_None); resultobj = Py_None;
15600 return resultobj;
15601 fail:
15602 return NULL;
15603 }
15604
15605
15606 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15607 PyObject *resultobj;
15608 int arg1 ;
15609 PyObject * obj0 = 0 ;
15610 char *kwnames[] = {
15611 (char *) "ppi", NULL
15612 };
15613
15614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15615 arg1 = (int) SWIG_AsInt(obj0);
15616 if (PyErr_Occurred()) SWIG_fail;
15617 {
15618 PyThreadState* __tstate = wxPyBeginAllowThreads();
15619 wxPostScriptDC::SetResolution(arg1);
15620
15621 wxPyEndAllowThreads(__tstate);
15622 if (PyErr_Occurred()) SWIG_fail;
15623 }
15624 Py_INCREF(Py_None); resultobj = Py_None;
15625 return resultobj;
15626 fail:
15627 return NULL;
15628 }
15629
15630
15631 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15632 PyObject *resultobj;
15633 int result;
15634 char *kwnames[] = {
15635 NULL
15636 };
15637
15638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15639 {
15640 PyThreadState* __tstate = wxPyBeginAllowThreads();
15641 result = (int)wxPostScriptDC::GetResolution();
15642
15643 wxPyEndAllowThreads(__tstate);
15644 if (PyErr_Occurred()) SWIG_fail;
15645 }
15646 resultobj = SWIG_FromInt((int)result);
15647 return resultobj;
15648 fail:
15649 return NULL;
15650 }
15651
15652
15653 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15654 PyObject *obj;
15655 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15656 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15657 Py_INCREF(obj);
15658 return Py_BuildValue((char *)"");
15659 }
15660 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15661 PyObject *resultobj;
15662 wxString const &arg1_defvalue = wxPyEmptyString ;
15663 wxString *arg1 = (wxString *) &arg1_defvalue ;
15664 wxMetaFile *result;
15665 bool temp1 = False ;
15666 PyObject * obj0 = 0 ;
15667 char *kwnames[] = {
15668 (char *) "filename", NULL
15669 };
15670
15671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15672 if (obj0) {
15673 {
15674 arg1 = wxString_in_helper(obj0);
15675 if (arg1 == NULL) SWIG_fail;
15676 temp1 = True;
15677 }
15678 }
15679 {
15680 PyThreadState* __tstate = wxPyBeginAllowThreads();
15681 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15682
15683 wxPyEndAllowThreads(__tstate);
15684 if (PyErr_Occurred()) SWIG_fail;
15685 }
15686 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
15687 {
15688 if (temp1)
15689 delete arg1;
15690 }
15691 return resultobj;
15692 fail:
15693 {
15694 if (temp1)
15695 delete arg1;
15696 }
15697 return NULL;
15698 }
15699
15700
15701 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
15702 PyObject *obj;
15703 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15704 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15705 Py_INCREF(obj);
15706 return Py_BuildValue((char *)"");
15707 }
15708 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15709 PyObject *resultobj;
15710 wxString const &arg1_defvalue = wxPyEmptyString ;
15711 wxString *arg1 = (wxString *) &arg1_defvalue ;
15712 int arg2 = (int) 0 ;
15713 int arg3 = (int) 0 ;
15714 wxString const &arg4_defvalue = wxPyEmptyString ;
15715 wxString *arg4 = (wxString *) &arg4_defvalue ;
15716 wxMetaFileDC *result;
15717 bool temp1 = False ;
15718 bool temp4 = False ;
15719 PyObject * obj0 = 0 ;
15720 PyObject * obj1 = 0 ;
15721 PyObject * obj2 = 0 ;
15722 PyObject * obj3 = 0 ;
15723 char *kwnames[] = {
15724 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
15725 };
15726
15727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15728 if (obj0) {
15729 {
15730 arg1 = wxString_in_helper(obj0);
15731 if (arg1 == NULL) SWIG_fail;
15732 temp1 = True;
15733 }
15734 }
15735 if (obj1) {
15736 arg2 = (int) SWIG_AsInt(obj1);
15737 if (PyErr_Occurred()) SWIG_fail;
15738 }
15739 if (obj2) {
15740 arg3 = (int) SWIG_AsInt(obj2);
15741 if (PyErr_Occurred()) SWIG_fail;
15742 }
15743 if (obj3) {
15744 {
15745 arg4 = wxString_in_helper(obj3);
15746 if (arg4 == NULL) SWIG_fail;
15747 temp4 = True;
15748 }
15749 }
15750 {
15751 PyThreadState* __tstate = wxPyBeginAllowThreads();
15752 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
15753
15754 wxPyEndAllowThreads(__tstate);
15755 if (PyErr_Occurred()) SWIG_fail;
15756 }
15757 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
15758 {
15759 if (temp1)
15760 delete arg1;
15761 }
15762 {
15763 if (temp4)
15764 delete arg4;
15765 }
15766 return resultobj;
15767 fail:
15768 {
15769 if (temp1)
15770 delete arg1;
15771 }
15772 {
15773 if (temp4)
15774 delete arg4;
15775 }
15776 return NULL;
15777 }
15778
15779
15780 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
15781 PyObject *obj;
15782 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15783 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
15784 Py_INCREF(obj);
15785 return Py_BuildValue((char *)"");
15786 }
15787 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15788 PyObject *resultobj;
15789 wxPrintData *arg1 = 0 ;
15790 wxPrinterDC *result;
15791 PyObject * obj0 = 0 ;
15792 char *kwnames[] = {
15793 (char *) "printData", NULL
15794 };
15795
15796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
15797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15798 SWIG_POINTER_EXCEPTION | 0)) == -1)
15799 SWIG_fail;
15800 if (arg1 == NULL) {
15801 PyErr_SetString(PyExc_TypeError,"null reference");
15802 SWIG_fail;
15803 }
15804 {
15805 PyThreadState* __tstate = wxPyBeginAllowThreads();
15806 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
15807
15808 wxPyEndAllowThreads(__tstate);
15809 if (PyErr_Occurred()) SWIG_fail;
15810 }
15811 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
15812 return resultobj;
15813 fail:
15814 return NULL;
15815 }
15816
15817
15818 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
15819 PyObject *obj;
15820 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15821 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
15822 Py_INCREF(obj);
15823 return Py_BuildValue((char *)"");
15824 }
15825 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15826 PyObject *resultobj;
15827 int arg1 ;
15828 int arg2 ;
15829 int arg3 = (int) True ;
15830 int arg4 = (int) 1 ;
15831 wxImageList *result;
15832 PyObject * obj0 = 0 ;
15833 PyObject * obj1 = 0 ;
15834 PyObject * obj2 = 0 ;
15835 PyObject * obj3 = 0 ;
15836 char *kwnames[] = {
15837 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
15838 };
15839
15840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15841 arg1 = (int) SWIG_AsInt(obj0);
15842 if (PyErr_Occurred()) SWIG_fail;
15843 arg2 = (int) SWIG_AsInt(obj1);
15844 if (PyErr_Occurred()) SWIG_fail;
15845 if (obj2) {
15846 arg3 = (int) SWIG_AsInt(obj2);
15847 if (PyErr_Occurred()) SWIG_fail;
15848 }
15849 if (obj3) {
15850 arg4 = (int) SWIG_AsInt(obj3);
15851 if (PyErr_Occurred()) SWIG_fail;
15852 }
15853 {
15854 PyThreadState* __tstate = wxPyBeginAllowThreads();
15855 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
15856
15857 wxPyEndAllowThreads(__tstate);
15858 if (PyErr_Occurred()) SWIG_fail;
15859 }
15860 {
15861 resultobj = wxPyMake_wxObject(result);
15862 }
15863 return resultobj;
15864 fail:
15865 return NULL;
15866 }
15867
15868
15869 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15870 PyObject *resultobj;
15871 wxImageList *arg1 = (wxImageList *) 0 ;
15872 PyObject * obj0 = 0 ;
15873 char *kwnames[] = {
15874 (char *) "self", NULL
15875 };
15876
15877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
15878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
15879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15880 {
15881 PyThreadState* __tstate = wxPyBeginAllowThreads();
15882 delete arg1;
15883
15884 wxPyEndAllowThreads(__tstate);
15885 if (PyErr_Occurred()) SWIG_fail;
15886 }
15887 Py_INCREF(Py_None); resultobj = Py_None;
15888 return resultobj;
15889 fail:
15890 return NULL;
15891 }
15892
15893
15894 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
15895 PyObject *resultobj;
15896 wxImageList *arg1 = (wxImageList *) 0 ;
15897 wxBitmap *arg2 = 0 ;
15898 wxBitmap const &arg3_defvalue = wxNullBitmap ;
15899 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
15900 int result;
15901 PyObject * obj0 = 0 ;
15902 PyObject * obj1 = 0 ;
15903 PyObject * obj2 = 0 ;
15904 char *kwnames[] = {
15905 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
15906 };
15907
15908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
15909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
15910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15911 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15912 SWIG_POINTER_EXCEPTION | 0)) == -1)
15913 SWIG_fail;
15914 if (arg2 == NULL) {
15915 PyErr_SetString(PyExc_TypeError,"null reference");
15916 SWIG_fail;
15917 }
15918 if (obj2) {
15919 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
15920 SWIG_POINTER_EXCEPTION | 0)) == -1)
15921 SWIG_fail;
15922 if (arg3 == NULL) {
15923 PyErr_SetString(PyExc_TypeError,"null reference");
15924 SWIG_fail;
15925 }
15926 }
15927 {
15928 PyThreadState* __tstate = wxPyBeginAllowThreads();
15929 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
15930
15931 wxPyEndAllowThreads(__tstate);
15932 if (PyErr_Occurred()) SWIG_fail;
15933 }
15934 resultobj = SWIG_FromInt((int)result);
15935 return resultobj;
15936 fail:
15937 return NULL;
15938 }
15939
15940
15941 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15942 PyObject *resultobj;
15943 wxImageList *arg1 = (wxImageList *) 0 ;
15944 wxBitmap *arg2 = 0 ;
15945 wxColour *arg3 = 0 ;
15946 int result;
15947 wxColour temp3 ;
15948 PyObject * obj0 = 0 ;
15949 PyObject * obj1 = 0 ;
15950 PyObject * obj2 = 0 ;
15951 char *kwnames[] = {
15952 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
15953 };
15954
15955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
15956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
15957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15958 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15959 SWIG_POINTER_EXCEPTION | 0)) == -1)
15960 SWIG_fail;
15961 if (arg2 == NULL) {
15962 PyErr_SetString(PyExc_TypeError,"null reference");
15963 SWIG_fail;
15964 }
15965 {
15966 arg3 = &temp3;
15967 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15968 }
15969 {
15970 PyThreadState* __tstate = wxPyBeginAllowThreads();
15971 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
15972
15973 wxPyEndAllowThreads(__tstate);
15974 if (PyErr_Occurred()) SWIG_fail;
15975 }
15976 resultobj = SWIG_FromInt((int)result);
15977 return resultobj;
15978 fail:
15979 return NULL;
15980 }
15981
15982
15983 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
15984 PyObject *resultobj;
15985 wxImageList *arg1 = (wxImageList *) 0 ;
15986 wxIcon *arg2 = 0 ;
15987 int result;
15988 PyObject * obj0 = 0 ;
15989 PyObject * obj1 = 0 ;
15990 char *kwnames[] = {
15991 (char *) "self",(char *) "icon", NULL
15992 };
15993
15994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
15995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
15996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15997 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
15998 SWIG_POINTER_EXCEPTION | 0)) == -1)
15999 SWIG_fail;
16000 if (arg2 == NULL) {
16001 PyErr_SetString(PyExc_TypeError,"null reference");
16002 SWIG_fail;
16003 }
16004 {
16005 PyThreadState* __tstate = wxPyBeginAllowThreads();
16006 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16007
16008 wxPyEndAllowThreads(__tstate);
16009 if (PyErr_Occurred()) SWIG_fail;
16010 }
16011 resultobj = SWIG_FromInt((int)result);
16012 return resultobj;
16013 fail:
16014 return NULL;
16015 }
16016
16017
16018 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16019 PyObject *resultobj;
16020 wxImageList *arg1 = (wxImageList *) 0 ;
16021 int arg2 ;
16022 wxBitmap *arg3 = 0 ;
16023 bool result;
16024 PyObject * obj0 = 0 ;
16025 PyObject * obj1 = 0 ;
16026 PyObject * obj2 = 0 ;
16027 char *kwnames[] = {
16028 (char *) "self",(char *) "index",(char *) "bitmap", NULL
16029 };
16030
16031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
16032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16034 arg2 = (int) SWIG_AsInt(obj1);
16035 if (PyErr_Occurred()) SWIG_fail;
16036 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16037 SWIG_POINTER_EXCEPTION | 0)) == -1)
16038 SWIG_fail;
16039 if (arg3 == NULL) {
16040 PyErr_SetString(PyExc_TypeError,"null reference");
16041 SWIG_fail;
16042 }
16043 {
16044 PyThreadState* __tstate = wxPyBeginAllowThreads();
16045 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
16046
16047 wxPyEndAllowThreads(__tstate);
16048 if (PyErr_Occurred()) SWIG_fail;
16049 }
16050 {
16051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16052 }
16053 return resultobj;
16054 fail:
16055 return NULL;
16056 }
16057
16058
16059 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16060 PyObject *resultobj;
16061 wxImageList *arg1 = (wxImageList *) 0 ;
16062 int arg2 ;
16063 wxDC *arg3 = 0 ;
16064 int arg4 ;
16065 int arg5 ;
16066 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16067 bool arg7 = (bool) (bool)False ;
16068 bool result;
16069 PyObject * obj0 = 0 ;
16070 PyObject * obj1 = 0 ;
16071 PyObject * obj2 = 0 ;
16072 PyObject * obj3 = 0 ;
16073 PyObject * obj4 = 0 ;
16074 PyObject * obj5 = 0 ;
16075 PyObject * obj6 = 0 ;
16076 char *kwnames[] = {
16077 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16078 };
16079
16080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16083 arg2 = (int) SWIG_AsInt(obj1);
16084 if (PyErr_Occurred()) SWIG_fail;
16085 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16086 SWIG_POINTER_EXCEPTION | 0)) == -1)
16087 SWIG_fail;
16088 if (arg3 == NULL) {
16089 PyErr_SetString(PyExc_TypeError,"null reference");
16090 SWIG_fail;
16091 }
16092 arg4 = (int) SWIG_AsInt(obj3);
16093 if (PyErr_Occurred()) SWIG_fail;
16094 arg5 = (int) SWIG_AsInt(obj4);
16095 if (PyErr_Occurred()) SWIG_fail;
16096 if (obj5) {
16097 arg6 = (int) SWIG_AsInt(obj5);
16098 if (PyErr_Occurred()) SWIG_fail;
16099 }
16100 if (obj6) {
16101 arg7 = (bool const) SWIG_AsBool(obj6);
16102 if (PyErr_Occurred()) SWIG_fail;
16103 }
16104 {
16105 PyThreadState* __tstate = wxPyBeginAllowThreads();
16106 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16107
16108 wxPyEndAllowThreads(__tstate);
16109 if (PyErr_Occurred()) SWIG_fail;
16110 }
16111 {
16112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16113 }
16114 return resultobj;
16115 fail:
16116 return NULL;
16117 }
16118
16119
16120 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16121 PyObject *resultobj;
16122 wxImageList *arg1 = (wxImageList *) 0 ;
16123 int result;
16124 PyObject * obj0 = 0 ;
16125 char *kwnames[] = {
16126 (char *) "self", NULL
16127 };
16128
16129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16132 {
16133 PyThreadState* __tstate = wxPyBeginAllowThreads();
16134 result = (int)(arg1)->GetImageCount();
16135
16136 wxPyEndAllowThreads(__tstate);
16137 if (PyErr_Occurred()) SWIG_fail;
16138 }
16139 resultobj = SWIG_FromInt((int)result);
16140 return resultobj;
16141 fail:
16142 return NULL;
16143 }
16144
16145
16146 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
16147 PyObject *resultobj;
16148 wxImageList *arg1 = (wxImageList *) 0 ;
16149 int arg2 ;
16150 bool result;
16151 PyObject * obj0 = 0 ;
16152 PyObject * obj1 = 0 ;
16153 char *kwnames[] = {
16154 (char *) "self",(char *) "index", NULL
16155 };
16156
16157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16160 arg2 = (int) SWIG_AsInt(obj1);
16161 if (PyErr_Occurred()) SWIG_fail;
16162 {
16163 PyThreadState* __tstate = wxPyBeginAllowThreads();
16164 result = (bool)(arg1)->Remove(arg2);
16165
16166 wxPyEndAllowThreads(__tstate);
16167 if (PyErr_Occurred()) SWIG_fail;
16168 }
16169 {
16170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16171 }
16172 return resultobj;
16173 fail:
16174 return NULL;
16175 }
16176
16177
16178 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
16179 PyObject *resultobj;
16180 wxImageList *arg1 = (wxImageList *) 0 ;
16181 bool result;
16182 PyObject * obj0 = 0 ;
16183 char *kwnames[] = {
16184 (char *) "self", NULL
16185 };
16186
16187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16190 {
16191 PyThreadState* __tstate = wxPyBeginAllowThreads();
16192 result = (bool)(arg1)->RemoveAll();
16193
16194 wxPyEndAllowThreads(__tstate);
16195 if (PyErr_Occurred()) SWIG_fail;
16196 }
16197 {
16198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16199 }
16200 return resultobj;
16201 fail:
16202 return NULL;
16203 }
16204
16205
16206 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16207 PyObject *resultobj;
16208 wxImageList *arg1 = (wxImageList *) 0 ;
16209 int arg2 ;
16210 int *arg3 = 0 ;
16211 int *arg4 = 0 ;
16212 int temp3 ;
16213 int temp4 ;
16214 PyObject * obj0 = 0 ;
16215 PyObject * obj1 = 0 ;
16216 char *kwnames[] = {
16217 (char *) "self",(char *) "index", NULL
16218 };
16219
16220 arg3 = &temp3;
16221 arg4 = &temp4;
16222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16225 arg2 = (int) SWIG_AsInt(obj1);
16226 if (PyErr_Occurred()) SWIG_fail;
16227 {
16228 PyThreadState* __tstate = wxPyBeginAllowThreads();
16229 (arg1)->GetSize(arg2,*arg3,*arg4);
16230
16231 wxPyEndAllowThreads(__tstate);
16232 if (PyErr_Occurred()) SWIG_fail;
16233 }
16234 Py_INCREF(Py_None); resultobj = Py_None;
16235 {
16236 PyObject *o = PyInt_FromLong((long) (*arg3));
16237 resultobj = t_output_helper(resultobj,o);
16238 }
16239 {
16240 PyObject *o = PyInt_FromLong((long) (*arg4));
16241 resultobj = t_output_helper(resultobj,o);
16242 }
16243 return resultobj;
16244 fail:
16245 return NULL;
16246 }
16247
16248
16249 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
16250 PyObject *obj;
16251 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16252 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16253 Py_INCREF(obj);
16254 return Py_BuildValue((char *)"");
16255 }
16256 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
16257 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16258 return 1;
16259 }
16260
16261
16262 static PyObject *_wrap_NORMAL_FONT_get() {
16263 PyObject *pyobj;
16264
16265 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
16266 return pyobj;
16267 }
16268
16269
16270 static int _wrap_SMALL_FONT_set(PyObject *_val) {
16271 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16272 return 1;
16273 }
16274
16275
16276 static PyObject *_wrap_SMALL_FONT_get() {
16277 PyObject *pyobj;
16278
16279 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
16280 return pyobj;
16281 }
16282
16283
16284 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
16285 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16286 return 1;
16287 }
16288
16289
16290 static PyObject *_wrap_ITALIC_FONT_get() {
16291 PyObject *pyobj;
16292
16293 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
16294 return pyobj;
16295 }
16296
16297
16298 static int _wrap_SWISS_FONT_set(PyObject *_val) {
16299 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16300 return 1;
16301 }
16302
16303
16304 static PyObject *_wrap_SWISS_FONT_get() {
16305 PyObject *pyobj;
16306
16307 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
16308 return pyobj;
16309 }
16310
16311
16312 static int _wrap_RED_PEN_set(PyObject *_val) {
16313 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16314 return 1;
16315 }
16316
16317
16318 static PyObject *_wrap_RED_PEN_get() {
16319 PyObject *pyobj;
16320
16321 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
16322 return pyobj;
16323 }
16324
16325
16326 static int _wrap_CYAN_PEN_set(PyObject *_val) {
16327 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16328 return 1;
16329 }
16330
16331
16332 static PyObject *_wrap_CYAN_PEN_get() {
16333 PyObject *pyobj;
16334
16335 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
16336 return pyobj;
16337 }
16338
16339
16340 static int _wrap_GREEN_PEN_set(PyObject *_val) {
16341 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16342 return 1;
16343 }
16344
16345
16346 static PyObject *_wrap_GREEN_PEN_get() {
16347 PyObject *pyobj;
16348
16349 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
16350 return pyobj;
16351 }
16352
16353
16354 static int _wrap_BLACK_PEN_set(PyObject *_val) {
16355 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16356 return 1;
16357 }
16358
16359
16360 static PyObject *_wrap_BLACK_PEN_get() {
16361 PyObject *pyobj;
16362
16363 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
16364 return pyobj;
16365 }
16366
16367
16368 static int _wrap_WHITE_PEN_set(PyObject *_val) {
16369 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16370 return 1;
16371 }
16372
16373
16374 static PyObject *_wrap_WHITE_PEN_get() {
16375 PyObject *pyobj;
16376
16377 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
16378 return pyobj;
16379 }
16380
16381
16382 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
16383 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16384 return 1;
16385 }
16386
16387
16388 static PyObject *_wrap_TRANSPARENT_PEN_get() {
16389 PyObject *pyobj;
16390
16391 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
16392 return pyobj;
16393 }
16394
16395
16396 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
16397 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16398 return 1;
16399 }
16400
16401
16402 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16403 PyObject *pyobj;
16404
16405 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
16406 return pyobj;
16407 }
16408
16409
16410 static int _wrap_GREY_PEN_set(PyObject *_val) {
16411 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16412 return 1;
16413 }
16414
16415
16416 static PyObject *_wrap_GREY_PEN_get() {
16417 PyObject *pyobj;
16418
16419 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
16420 return pyobj;
16421 }
16422
16423
16424 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
16425 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16426 return 1;
16427 }
16428
16429
16430 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16431 PyObject *pyobj;
16432
16433 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16434 return pyobj;
16435 }
16436
16437
16438 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
16439 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16440 return 1;
16441 }
16442
16443
16444 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16445 PyObject *pyobj;
16446
16447 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16448 return pyobj;
16449 }
16450
16451
16452 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
16453 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16454 return 1;
16455 }
16456
16457
16458 static PyObject *_wrap_BLUE_BRUSH_get() {
16459 PyObject *pyobj;
16460
16461 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16462 return pyobj;
16463 }
16464
16465
16466 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
16467 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16468 return 1;
16469 }
16470
16471
16472 static PyObject *_wrap_GREEN_BRUSH_get() {
16473 PyObject *pyobj;
16474
16475 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16476 return pyobj;
16477 }
16478
16479
16480 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
16481 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16482 return 1;
16483 }
16484
16485
16486 static PyObject *_wrap_WHITE_BRUSH_get() {
16487 PyObject *pyobj;
16488
16489 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16490 return pyobj;
16491 }
16492
16493
16494 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
16495 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16496 return 1;
16497 }
16498
16499
16500 static PyObject *_wrap_BLACK_BRUSH_get() {
16501 PyObject *pyobj;
16502
16503 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
16504 return pyobj;
16505 }
16506
16507
16508 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
16509 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16510 return 1;
16511 }
16512
16513
16514 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16515 PyObject *pyobj;
16516
16517 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
16518 return pyobj;
16519 }
16520
16521
16522 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
16523 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16524 return 1;
16525 }
16526
16527
16528 static PyObject *_wrap_CYAN_BRUSH_get() {
16529 PyObject *pyobj;
16530
16531 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16532 return pyobj;
16533 }
16534
16535
16536 static int _wrap_RED_BRUSH_set(PyObject *_val) {
16537 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16538 return 1;
16539 }
16540
16541
16542 static PyObject *_wrap_RED_BRUSH_get() {
16543 PyObject *pyobj;
16544
16545 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
16546 return pyobj;
16547 }
16548
16549
16550 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
16551 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
16552 return 1;
16553 }
16554
16555
16556 static PyObject *_wrap_GREY_BRUSH_get() {
16557 PyObject *pyobj;
16558
16559 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16560 return pyobj;
16561 }
16562
16563
16564 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
16565 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
16566 return 1;
16567 }
16568
16569
16570 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
16571 PyObject *pyobj;
16572
16573 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16574 return pyobj;
16575 }
16576
16577
16578 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
16579 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
16580 return 1;
16581 }
16582
16583
16584 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
16585 PyObject *pyobj;
16586
16587 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16588 return pyobj;
16589 }
16590
16591
16592 static int _wrap_BLACK_set(PyObject *_val) {
16593 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
16594 return 1;
16595 }
16596
16597
16598 static PyObject *_wrap_BLACK_get() {
16599 PyObject *pyobj;
16600
16601 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
16602 return pyobj;
16603 }
16604
16605
16606 static int _wrap_WHITE_set(PyObject *_val) {
16607 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
16608 return 1;
16609 }
16610
16611
16612 static PyObject *_wrap_WHITE_get() {
16613 PyObject *pyobj;
16614
16615 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
16616 return pyobj;
16617 }
16618
16619
16620 static int _wrap_RED_set(PyObject *_val) {
16621 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
16622 return 1;
16623 }
16624
16625
16626 static PyObject *_wrap_RED_get() {
16627 PyObject *pyobj;
16628
16629 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
16630 return pyobj;
16631 }
16632
16633
16634 static int _wrap_BLUE_set(PyObject *_val) {
16635 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
16636 return 1;
16637 }
16638
16639
16640 static PyObject *_wrap_BLUE_get() {
16641 PyObject *pyobj;
16642
16643 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
16644 return pyobj;
16645 }
16646
16647
16648 static int _wrap_GREEN_set(PyObject *_val) {
16649 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
16650 return 1;
16651 }
16652
16653
16654 static PyObject *_wrap_GREEN_get() {
16655 PyObject *pyobj;
16656
16657 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
16658 return pyobj;
16659 }
16660
16661
16662 static int _wrap_CYAN_set(PyObject *_val) {
16663 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
16664 return 1;
16665 }
16666
16667
16668 static PyObject *_wrap_CYAN_get() {
16669 PyObject *pyobj;
16670
16671 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
16672 return pyobj;
16673 }
16674
16675
16676 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
16677 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
16678 return 1;
16679 }
16680
16681
16682 static PyObject *_wrap_LIGHT_GREY_get() {
16683 PyObject *pyobj;
16684
16685 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
16686 return pyobj;
16687 }
16688
16689
16690 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
16691 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
16692 return 1;
16693 }
16694
16695
16696 static PyObject *_wrap_STANDARD_CURSOR_get() {
16697 PyObject *pyobj;
16698
16699 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
16700 return pyobj;
16701 }
16702
16703
16704 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
16705 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
16706 return 1;
16707 }
16708
16709
16710 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
16711 PyObject *pyobj;
16712
16713 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16714 return pyobj;
16715 }
16716
16717
16718 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
16719 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
16720 return 1;
16721 }
16722
16723
16724 static PyObject *_wrap_CROSS_CURSOR_get() {
16725 PyObject *pyobj;
16726
16727 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16728 return pyobj;
16729 }
16730
16731
16732 static int _wrap_NullBitmap_set(PyObject *_val) {
16733 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
16734 return 1;
16735 }
16736
16737
16738 static PyObject *_wrap_NullBitmap_get() {
16739 PyObject *pyobj;
16740
16741 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
16742 return pyobj;
16743 }
16744
16745
16746 static int _wrap_NullIcon_set(PyObject *_val) {
16747 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
16748 return 1;
16749 }
16750
16751
16752 static PyObject *_wrap_NullIcon_get() {
16753 PyObject *pyobj;
16754
16755 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
16756 return pyobj;
16757 }
16758
16759
16760 static int _wrap_NullCursor_set(PyObject *_val) {
16761 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
16762 return 1;
16763 }
16764
16765
16766 static PyObject *_wrap_NullCursor_get() {
16767 PyObject *pyobj;
16768
16769 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
16770 return pyobj;
16771 }
16772
16773
16774 static int _wrap_NullPen_set(PyObject *_val) {
16775 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
16776 return 1;
16777 }
16778
16779
16780 static PyObject *_wrap_NullPen_get() {
16781 PyObject *pyobj;
16782
16783 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
16784 return pyobj;
16785 }
16786
16787
16788 static int _wrap_NullBrush_set(PyObject *_val) {
16789 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
16790 return 1;
16791 }
16792
16793
16794 static PyObject *_wrap_NullBrush_get() {
16795 PyObject *pyobj;
16796
16797 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
16798 return pyobj;
16799 }
16800
16801
16802 static int _wrap_NullPalette_set(PyObject *_val) {
16803 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
16804 return 1;
16805 }
16806
16807
16808 static PyObject *_wrap_NullPalette_get() {
16809 PyObject *pyobj;
16810
16811 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
16812 return pyobj;
16813 }
16814
16815
16816 static int _wrap_NullFont_set(PyObject *_val) {
16817 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
16818 return 1;
16819 }
16820
16821
16822 static PyObject *_wrap_NullFont_get() {
16823 PyObject *pyobj;
16824
16825 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
16826 return pyobj;
16827 }
16828
16829
16830 static int _wrap_NullColour_set(PyObject *_val) {
16831 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
16832 return 1;
16833 }
16834
16835
16836 static PyObject *_wrap_NullColour_get() {
16837 PyObject *pyobj;
16838
16839 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
16840 return pyobj;
16841 }
16842
16843
16844 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
16845 PyObject *resultobj;
16846 wxPenList *arg1 = (wxPenList *) 0 ;
16847 wxPen *arg2 = (wxPen *) 0 ;
16848 PyObject * obj0 = 0 ;
16849 PyObject * obj1 = 0 ;
16850 char *kwnames[] = {
16851 (char *) "self",(char *) "pen", NULL
16852 };
16853
16854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
16855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
16856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16857 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
16858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16859 {
16860 PyThreadState* __tstate = wxPyBeginAllowThreads();
16861 (arg1)->AddPen(arg2);
16862
16863 wxPyEndAllowThreads(__tstate);
16864 if (PyErr_Occurred()) SWIG_fail;
16865 }
16866 Py_INCREF(Py_None); resultobj = Py_None;
16867 return resultobj;
16868 fail:
16869 return NULL;
16870 }
16871
16872
16873 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
16874 PyObject *resultobj;
16875 wxPenList *arg1 = (wxPenList *) 0 ;
16876 wxColour *arg2 = 0 ;
16877 int arg3 ;
16878 int arg4 ;
16879 wxPen *result;
16880 wxColour temp2 ;
16881 PyObject * obj0 = 0 ;
16882 PyObject * obj1 = 0 ;
16883 PyObject * obj2 = 0 ;
16884 PyObject * obj3 = 0 ;
16885 char *kwnames[] = {
16886 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
16887 };
16888
16889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
16891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16892 {
16893 arg2 = &temp2;
16894 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16895 }
16896 arg3 = (int) SWIG_AsInt(obj2);
16897 if (PyErr_Occurred()) SWIG_fail;
16898 arg4 = (int) SWIG_AsInt(obj3);
16899 if (PyErr_Occurred()) SWIG_fail;
16900 {
16901 PyThreadState* __tstate = wxPyBeginAllowThreads();
16902 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
16903
16904 wxPyEndAllowThreads(__tstate);
16905 if (PyErr_Occurred()) SWIG_fail;
16906 }
16907 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
16908 return resultobj;
16909 fail:
16910 return NULL;
16911 }
16912
16913
16914 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
16915 PyObject *resultobj;
16916 wxPenList *arg1 = (wxPenList *) 0 ;
16917 wxPen *arg2 = (wxPen *) 0 ;
16918 PyObject * obj0 = 0 ;
16919 PyObject * obj1 = 0 ;
16920 char *kwnames[] = {
16921 (char *) "self",(char *) "pen", NULL
16922 };
16923
16924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
16925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
16926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16927 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
16928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16929 {
16930 PyThreadState* __tstate = wxPyBeginAllowThreads();
16931 (arg1)->RemovePen(arg2);
16932
16933 wxPyEndAllowThreads(__tstate);
16934 if (PyErr_Occurred()) SWIG_fail;
16935 }
16936 Py_INCREF(Py_None); resultobj = Py_None;
16937 return resultobj;
16938 fail:
16939 return NULL;
16940 }
16941
16942
16943 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16944 PyObject *resultobj;
16945 wxPenList *arg1 = (wxPenList *) 0 ;
16946 int result;
16947 PyObject * obj0 = 0 ;
16948 char *kwnames[] = {
16949 (char *) "self", NULL
16950 };
16951
16952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
16953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
16954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16955 {
16956 PyThreadState* __tstate = wxPyBeginAllowThreads();
16957 result = (int)(arg1)->GetCount();
16958
16959 wxPyEndAllowThreads(__tstate);
16960 if (PyErr_Occurred()) SWIG_fail;
16961 }
16962 resultobj = SWIG_FromInt((int)result);
16963 return resultobj;
16964 fail:
16965 return NULL;
16966 }
16967
16968
16969 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
16970 PyObject *obj;
16971 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16972 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
16973 Py_INCREF(obj);
16974 return Py_BuildValue((char *)"");
16975 }
16976 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
16977 PyObject *resultobj;
16978 wxBrushList *arg1 = (wxBrushList *) 0 ;
16979 wxBrush *arg2 = (wxBrush *) 0 ;
16980 PyObject * obj0 = 0 ;
16981 PyObject * obj1 = 0 ;
16982 char *kwnames[] = {
16983 (char *) "self",(char *) "brush", NULL
16984 };
16985
16986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
16987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
16988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16989 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
16990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16991 {
16992 PyThreadState* __tstate = wxPyBeginAllowThreads();
16993 (arg1)->AddBrush(arg2);
16994
16995 wxPyEndAllowThreads(__tstate);
16996 if (PyErr_Occurred()) SWIG_fail;
16997 }
16998 Py_INCREF(Py_None); resultobj = Py_None;
16999 return resultobj;
17000 fail:
17001 return NULL;
17002 }
17003
17004
17005 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17006 PyObject *resultobj;
17007 wxBrushList *arg1 = (wxBrushList *) 0 ;
17008 wxColour *arg2 = 0 ;
17009 int arg3 ;
17010 wxBrush *result;
17011 wxColour temp2 ;
17012 PyObject * obj0 = 0 ;
17013 PyObject * obj1 = 0 ;
17014 PyObject * obj2 = 0 ;
17015 char *kwnames[] = {
17016 (char *) "self",(char *) "colour",(char *) "style", NULL
17017 };
17018
17019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17022 {
17023 arg2 = &temp2;
17024 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17025 }
17026 arg3 = (int) SWIG_AsInt(obj2);
17027 if (PyErr_Occurred()) SWIG_fail;
17028 {
17029 PyThreadState* __tstate = wxPyBeginAllowThreads();
17030 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17031
17032 wxPyEndAllowThreads(__tstate);
17033 if (PyErr_Occurred()) SWIG_fail;
17034 }
17035 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17036 return resultobj;
17037 fail:
17038 return NULL;
17039 }
17040
17041
17042 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17043 PyObject *resultobj;
17044 wxBrushList *arg1 = (wxBrushList *) 0 ;
17045 wxBrush *arg2 = (wxBrush *) 0 ;
17046 PyObject * obj0 = 0 ;
17047 PyObject * obj1 = 0 ;
17048 char *kwnames[] = {
17049 (char *) "self",(char *) "brush", NULL
17050 };
17051
17052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17055 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17057 {
17058 PyThreadState* __tstate = wxPyBeginAllowThreads();
17059 (arg1)->RemoveBrush(arg2);
17060
17061 wxPyEndAllowThreads(__tstate);
17062 if (PyErr_Occurred()) SWIG_fail;
17063 }
17064 Py_INCREF(Py_None); resultobj = Py_None;
17065 return resultobj;
17066 fail:
17067 return NULL;
17068 }
17069
17070
17071 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17072 PyObject *resultobj;
17073 wxBrushList *arg1 = (wxBrushList *) 0 ;
17074 int result;
17075 PyObject * obj0 = 0 ;
17076 char *kwnames[] = {
17077 (char *) "self", NULL
17078 };
17079
17080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17083 {
17084 PyThreadState* __tstate = wxPyBeginAllowThreads();
17085 result = (int)(arg1)->GetCount();
17086
17087 wxPyEndAllowThreads(__tstate);
17088 if (PyErr_Occurred()) SWIG_fail;
17089 }
17090 resultobj = SWIG_FromInt((int)result);
17091 return resultobj;
17092 fail:
17093 return NULL;
17094 }
17095
17096
17097 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17098 PyObject *obj;
17099 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17100 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17101 Py_INCREF(obj);
17102 return Py_BuildValue((char *)"");
17103 }
17104 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17105 PyObject *resultobj;
17106 wxColourDatabase *result;
17107 char *kwnames[] = {
17108 NULL
17109 };
17110
17111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17112 {
17113 PyThreadState* __tstate = wxPyBeginAllowThreads();
17114 result = (wxColourDatabase *)new wxColourDatabase();
17115
17116 wxPyEndAllowThreads(__tstate);
17117 if (PyErr_Occurred()) SWIG_fail;
17118 }
17119 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17120 return resultobj;
17121 fail:
17122 return NULL;
17123 }
17124
17125
17126 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17127 PyObject *resultobj;
17128 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17129 PyObject * obj0 = 0 ;
17130 char *kwnames[] = {
17131 (char *) "self", NULL
17132 };
17133
17134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17137 {
17138 PyThreadState* __tstate = wxPyBeginAllowThreads();
17139 delete arg1;
17140
17141 wxPyEndAllowThreads(__tstate);
17142 if (PyErr_Occurred()) SWIG_fail;
17143 }
17144 Py_INCREF(Py_None); resultobj = Py_None;
17145 return resultobj;
17146 fail:
17147 return NULL;
17148 }
17149
17150
17151 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
17152 PyObject *resultobj;
17153 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17154 wxString *arg2 = 0 ;
17155 wxColour result;
17156 bool temp2 = False ;
17157 PyObject * obj0 = 0 ;
17158 PyObject * obj1 = 0 ;
17159 char *kwnames[] = {
17160 (char *) "self",(char *) "name", NULL
17161 };
17162
17163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17166 {
17167 arg2 = wxString_in_helper(obj1);
17168 if (arg2 == NULL) SWIG_fail;
17169 temp2 = True;
17170 }
17171 {
17172 PyThreadState* __tstate = wxPyBeginAllowThreads();
17173 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17174
17175 wxPyEndAllowThreads(__tstate);
17176 if (PyErr_Occurred()) SWIG_fail;
17177 }
17178 {
17179 wxColour * resultptr;
17180 resultptr = new wxColour((wxColour &) result);
17181 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17182 }
17183 {
17184 if (temp2)
17185 delete arg2;
17186 }
17187 return resultobj;
17188 fail:
17189 {
17190 if (temp2)
17191 delete arg2;
17192 }
17193 return NULL;
17194 }
17195
17196
17197 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
17198 PyObject *resultobj;
17199 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17200 wxColour *arg2 = 0 ;
17201 wxString result;
17202 wxColour temp2 ;
17203 PyObject * obj0 = 0 ;
17204 PyObject * obj1 = 0 ;
17205 char *kwnames[] = {
17206 (char *) "self",(char *) "colour", NULL
17207 };
17208
17209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17212 {
17213 arg2 = &temp2;
17214 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17215 }
17216 {
17217 PyThreadState* __tstate = wxPyBeginAllowThreads();
17218 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17219
17220 wxPyEndAllowThreads(__tstate);
17221 if (PyErr_Occurred()) SWIG_fail;
17222 }
17223 {
17224 #if wxUSE_UNICODE
17225 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17226 #else
17227 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17228 #endif
17229 }
17230 return resultobj;
17231 fail:
17232 return NULL;
17233 }
17234
17235
17236 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17237 PyObject *resultobj;
17238 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17239 wxString *arg2 = 0 ;
17240 wxColour *arg3 = 0 ;
17241 bool temp2 = False ;
17242 wxColour temp3 ;
17243 PyObject * obj0 = 0 ;
17244 PyObject * obj1 = 0 ;
17245 PyObject * obj2 = 0 ;
17246 char *kwnames[] = {
17247 (char *) "self",(char *) "name",(char *) "colour", NULL
17248 };
17249
17250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17253 {
17254 arg2 = wxString_in_helper(obj1);
17255 if (arg2 == NULL) SWIG_fail;
17256 temp2 = True;
17257 }
17258 {
17259 arg3 = &temp3;
17260 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17261 }
17262 {
17263 PyThreadState* __tstate = wxPyBeginAllowThreads();
17264 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17265
17266 wxPyEndAllowThreads(__tstate);
17267 if (PyErr_Occurred()) SWIG_fail;
17268 }
17269 Py_INCREF(Py_None); resultobj = Py_None;
17270 {
17271 if (temp2)
17272 delete arg2;
17273 }
17274 return resultobj;
17275 fail:
17276 {
17277 if (temp2)
17278 delete arg2;
17279 }
17280 return NULL;
17281 }
17282
17283
17284 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
17285 PyObject *resultobj;
17286 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17287 wxString *arg2 = 0 ;
17288 int arg3 ;
17289 int arg4 ;
17290 int arg5 ;
17291 bool temp2 = False ;
17292 PyObject * obj0 = 0 ;
17293 PyObject * obj1 = 0 ;
17294 PyObject * obj2 = 0 ;
17295 PyObject * obj3 = 0 ;
17296 PyObject * obj4 = 0 ;
17297 char *kwnames[] = {
17298 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17299 };
17300
17301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17304 {
17305 arg2 = wxString_in_helper(obj1);
17306 if (arg2 == NULL) SWIG_fail;
17307 temp2 = True;
17308 }
17309 arg3 = (int) SWIG_AsInt(obj2);
17310 if (PyErr_Occurred()) SWIG_fail;
17311 arg4 = (int) SWIG_AsInt(obj3);
17312 if (PyErr_Occurred()) SWIG_fail;
17313 arg5 = (int) SWIG_AsInt(obj4);
17314 if (PyErr_Occurred()) SWIG_fail;
17315 {
17316 PyThreadState* __tstate = wxPyBeginAllowThreads();
17317 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17318
17319 wxPyEndAllowThreads(__tstate);
17320 if (PyErr_Occurred()) SWIG_fail;
17321 }
17322 Py_INCREF(Py_None); resultobj = Py_None;
17323 {
17324 if (temp2)
17325 delete arg2;
17326 }
17327 return resultobj;
17328 fail:
17329 {
17330 if (temp2)
17331 delete arg2;
17332 }
17333 return NULL;
17334 }
17335
17336
17337 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
17338 PyObject *obj;
17339 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17340 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17341 Py_INCREF(obj);
17342 return Py_BuildValue((char *)"");
17343 }
17344 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17345 PyObject *resultobj;
17346 wxFontList *arg1 = (wxFontList *) 0 ;
17347 wxFont *arg2 = (wxFont *) 0 ;
17348 PyObject * obj0 = 0 ;
17349 PyObject * obj1 = 0 ;
17350 char *kwnames[] = {
17351 (char *) "self",(char *) "font", NULL
17352 };
17353
17354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17357 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17359 {
17360 PyThreadState* __tstate = wxPyBeginAllowThreads();
17361 (arg1)->AddFont(arg2);
17362
17363 wxPyEndAllowThreads(__tstate);
17364 if (PyErr_Occurred()) SWIG_fail;
17365 }
17366 Py_INCREF(Py_None); resultobj = Py_None;
17367 return resultobj;
17368 fail:
17369 return NULL;
17370 }
17371
17372
17373 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17374 PyObject *resultobj;
17375 wxFontList *arg1 = (wxFontList *) 0 ;
17376 int arg2 ;
17377 int arg3 ;
17378 int arg4 ;
17379 int arg5 ;
17380 bool arg6 = (bool) False ;
17381 wxString const &arg7_defvalue = wxPyEmptyString ;
17382 wxString *arg7 = (wxString *) &arg7_defvalue ;
17383 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17384 wxFont *result;
17385 bool temp7 = False ;
17386 PyObject * obj0 = 0 ;
17387 PyObject * obj1 = 0 ;
17388 PyObject * obj2 = 0 ;
17389 PyObject * obj3 = 0 ;
17390 PyObject * obj4 = 0 ;
17391 PyObject * obj5 = 0 ;
17392 PyObject * obj6 = 0 ;
17393 PyObject * obj7 = 0 ;
17394 char *kwnames[] = {
17395 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17396 };
17397
17398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17401 arg2 = (int) SWIG_AsInt(obj1);
17402 if (PyErr_Occurred()) SWIG_fail;
17403 arg3 = (int) SWIG_AsInt(obj2);
17404 if (PyErr_Occurred()) SWIG_fail;
17405 arg4 = (int) SWIG_AsInt(obj3);
17406 if (PyErr_Occurred()) SWIG_fail;
17407 arg5 = (int) SWIG_AsInt(obj4);
17408 if (PyErr_Occurred()) SWIG_fail;
17409 if (obj5) {
17410 arg6 = (bool) SWIG_AsBool(obj5);
17411 if (PyErr_Occurred()) SWIG_fail;
17412 }
17413 if (obj6) {
17414 {
17415 arg7 = wxString_in_helper(obj6);
17416 if (arg7 == NULL) SWIG_fail;
17417 temp7 = True;
17418 }
17419 }
17420 if (obj7) {
17421 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
17422 if (PyErr_Occurred()) SWIG_fail;
17423 }
17424 {
17425 PyThreadState* __tstate = wxPyBeginAllowThreads();
17426 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17427
17428 wxPyEndAllowThreads(__tstate);
17429 if (PyErr_Occurred()) SWIG_fail;
17430 }
17431 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
17432 {
17433 if (temp7)
17434 delete arg7;
17435 }
17436 return resultobj;
17437 fail:
17438 {
17439 if (temp7)
17440 delete arg7;
17441 }
17442 return NULL;
17443 }
17444
17445
17446 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17447 PyObject *resultobj;
17448 wxFontList *arg1 = (wxFontList *) 0 ;
17449 wxFont *arg2 = (wxFont *) 0 ;
17450 PyObject * obj0 = 0 ;
17451 PyObject * obj1 = 0 ;
17452 char *kwnames[] = {
17453 (char *) "self",(char *) "font", NULL
17454 };
17455
17456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17459 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17461 {
17462 PyThreadState* __tstate = wxPyBeginAllowThreads();
17463 (arg1)->RemoveFont(arg2);
17464
17465 wxPyEndAllowThreads(__tstate);
17466 if (PyErr_Occurred()) SWIG_fail;
17467 }
17468 Py_INCREF(Py_None); resultobj = Py_None;
17469 return resultobj;
17470 fail:
17471 return NULL;
17472 }
17473
17474
17475 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17476 PyObject *resultobj;
17477 wxFontList *arg1 = (wxFontList *) 0 ;
17478 int result;
17479 PyObject * obj0 = 0 ;
17480 char *kwnames[] = {
17481 (char *) "self", NULL
17482 };
17483
17484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17487 {
17488 PyThreadState* __tstate = wxPyBeginAllowThreads();
17489 result = (int)(arg1)->GetCount();
17490
17491 wxPyEndAllowThreads(__tstate);
17492 if (PyErr_Occurred()) SWIG_fail;
17493 }
17494 resultobj = SWIG_FromInt((int)result);
17495 return resultobj;
17496 fail:
17497 return NULL;
17498 }
17499
17500
17501 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
17502 PyObject *obj;
17503 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17504 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17505 Py_INCREF(obj);
17506 return Py_BuildValue((char *)"");
17507 }
17508 static int _wrap_TheFontList_set(PyObject *_val) {
17509 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17510 return 1;
17511 }
17512
17513
17514 static PyObject *_wrap_TheFontList_get() {
17515 PyObject *pyobj;
17516
17517 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
17518 return pyobj;
17519 }
17520
17521
17522 static int _wrap_ThePenList_set(PyObject *_val) {
17523 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17524 return 1;
17525 }
17526
17527
17528 static PyObject *_wrap_ThePenList_get() {
17529 PyObject *pyobj;
17530
17531 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
17532 return pyobj;
17533 }
17534
17535
17536 static int _wrap_TheBrushList_set(PyObject *_val) {
17537 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17538 return 1;
17539 }
17540
17541
17542 static PyObject *_wrap_TheBrushList_get() {
17543 PyObject *pyobj;
17544
17545 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
17546 return pyobj;
17547 }
17548
17549
17550 static int _wrap_TheColourDatabase_set(PyObject *_val) {
17551 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17552 return 1;
17553 }
17554
17555
17556 static PyObject *_wrap_TheColourDatabase_get() {
17557 PyObject *pyobj;
17558
17559 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
17560 return pyobj;
17561 }
17562
17563
17564 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
17565 PyObject *resultobj;
17566 wxEffects *result;
17567 char *kwnames[] = {
17568 NULL
17569 };
17570
17571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
17572 {
17573 PyThreadState* __tstate = wxPyBeginAllowThreads();
17574 result = (wxEffects *)new wxEffects();
17575
17576 wxPyEndAllowThreads(__tstate);
17577 if (PyErr_Occurred()) SWIG_fail;
17578 }
17579 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
17580 return resultobj;
17581 fail:
17582 return NULL;
17583 }
17584
17585
17586 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17587 PyObject *resultobj;
17588 wxEffects *arg1 = (wxEffects *) 0 ;
17589 wxColour result;
17590 PyObject * obj0 = 0 ;
17591 char *kwnames[] = {
17592 (char *) "self", NULL
17593 };
17594
17595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
17596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17598 {
17599 PyThreadState* __tstate = wxPyBeginAllowThreads();
17600 result = ((wxEffects const *)arg1)->GetHighlightColour();
17601
17602 wxPyEndAllowThreads(__tstate);
17603 if (PyErr_Occurred()) SWIG_fail;
17604 }
17605 {
17606 wxColour * resultptr;
17607 resultptr = new wxColour((wxColour &) result);
17608 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17609 }
17610 return resultobj;
17611 fail:
17612 return NULL;
17613 }
17614
17615
17616 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17617 PyObject *resultobj;
17618 wxEffects *arg1 = (wxEffects *) 0 ;
17619 wxColour result;
17620 PyObject * obj0 = 0 ;
17621 char *kwnames[] = {
17622 (char *) "self", NULL
17623 };
17624
17625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
17626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17628 {
17629 PyThreadState* __tstate = wxPyBeginAllowThreads();
17630 result = ((wxEffects const *)arg1)->GetLightShadow();
17631
17632 wxPyEndAllowThreads(__tstate);
17633 if (PyErr_Occurred()) SWIG_fail;
17634 }
17635 {
17636 wxColour * resultptr;
17637 resultptr = new wxColour((wxColour &) result);
17638 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17639 }
17640 return resultobj;
17641 fail:
17642 return NULL;
17643 }
17644
17645
17646 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17647 PyObject *resultobj;
17648 wxEffects *arg1 = (wxEffects *) 0 ;
17649 wxColour result;
17650 PyObject * obj0 = 0 ;
17651 char *kwnames[] = {
17652 (char *) "self", NULL
17653 };
17654
17655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
17656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17658 {
17659 PyThreadState* __tstate = wxPyBeginAllowThreads();
17660 result = ((wxEffects const *)arg1)->GetFaceColour();
17661
17662 wxPyEndAllowThreads(__tstate);
17663 if (PyErr_Occurred()) SWIG_fail;
17664 }
17665 {
17666 wxColour * resultptr;
17667 resultptr = new wxColour((wxColour &) result);
17668 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17669 }
17670 return resultobj;
17671 fail:
17672 return NULL;
17673 }
17674
17675
17676 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17677 PyObject *resultobj;
17678 wxEffects *arg1 = (wxEffects *) 0 ;
17679 wxColour result;
17680 PyObject * obj0 = 0 ;
17681 char *kwnames[] = {
17682 (char *) "self", NULL
17683 };
17684
17685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
17686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17688 {
17689 PyThreadState* __tstate = wxPyBeginAllowThreads();
17690 result = ((wxEffects const *)arg1)->GetMediumShadow();
17691
17692 wxPyEndAllowThreads(__tstate);
17693 if (PyErr_Occurred()) SWIG_fail;
17694 }
17695 {
17696 wxColour * resultptr;
17697 resultptr = new wxColour((wxColour &) result);
17698 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17699 }
17700 return resultobj;
17701 fail:
17702 return NULL;
17703 }
17704
17705
17706 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17707 PyObject *resultobj;
17708 wxEffects *arg1 = (wxEffects *) 0 ;
17709 wxColour result;
17710 PyObject * obj0 = 0 ;
17711 char *kwnames[] = {
17712 (char *) "self", NULL
17713 };
17714
17715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
17716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17718 {
17719 PyThreadState* __tstate = wxPyBeginAllowThreads();
17720 result = ((wxEffects const *)arg1)->GetDarkShadow();
17721
17722 wxPyEndAllowThreads(__tstate);
17723 if (PyErr_Occurred()) SWIG_fail;
17724 }
17725 {
17726 wxColour * resultptr;
17727 resultptr = new wxColour((wxColour &) result);
17728 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17729 }
17730 return resultobj;
17731 fail:
17732 return NULL;
17733 }
17734
17735
17736 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17737 PyObject *resultobj;
17738 wxEffects *arg1 = (wxEffects *) 0 ;
17739 wxColour *arg2 = 0 ;
17740 wxColour temp2 ;
17741 PyObject * obj0 = 0 ;
17742 PyObject * obj1 = 0 ;
17743 char *kwnames[] = {
17744 (char *) "self",(char *) "c", NULL
17745 };
17746
17747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
17748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17750 {
17751 arg2 = &temp2;
17752 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17753 }
17754 {
17755 PyThreadState* __tstate = wxPyBeginAllowThreads();
17756 (arg1)->SetHighlightColour((wxColour const &)*arg2);
17757
17758 wxPyEndAllowThreads(__tstate);
17759 if (PyErr_Occurred()) SWIG_fail;
17760 }
17761 Py_INCREF(Py_None); resultobj = Py_None;
17762 return resultobj;
17763 fail:
17764 return NULL;
17765 }
17766
17767
17768 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17769 PyObject *resultobj;
17770 wxEffects *arg1 = (wxEffects *) 0 ;
17771 wxColour *arg2 = 0 ;
17772 wxColour temp2 ;
17773 PyObject * obj0 = 0 ;
17774 PyObject * obj1 = 0 ;
17775 char *kwnames[] = {
17776 (char *) "self",(char *) "c", NULL
17777 };
17778
17779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
17780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17782 {
17783 arg2 = &temp2;
17784 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17785 }
17786 {
17787 PyThreadState* __tstate = wxPyBeginAllowThreads();
17788 (arg1)->SetLightShadow((wxColour const &)*arg2);
17789
17790 wxPyEndAllowThreads(__tstate);
17791 if (PyErr_Occurred()) SWIG_fail;
17792 }
17793 Py_INCREF(Py_None); resultobj = Py_None;
17794 return resultobj;
17795 fail:
17796 return NULL;
17797 }
17798
17799
17800 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17801 PyObject *resultobj;
17802 wxEffects *arg1 = (wxEffects *) 0 ;
17803 wxColour *arg2 = 0 ;
17804 wxColour temp2 ;
17805 PyObject * obj0 = 0 ;
17806 PyObject * obj1 = 0 ;
17807 char *kwnames[] = {
17808 (char *) "self",(char *) "c", NULL
17809 };
17810
17811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
17812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17814 {
17815 arg2 = &temp2;
17816 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17817 }
17818 {
17819 PyThreadState* __tstate = wxPyBeginAllowThreads();
17820 (arg1)->SetFaceColour((wxColour const &)*arg2);
17821
17822 wxPyEndAllowThreads(__tstate);
17823 if (PyErr_Occurred()) SWIG_fail;
17824 }
17825 Py_INCREF(Py_None); resultobj = Py_None;
17826 return resultobj;
17827 fail:
17828 return NULL;
17829 }
17830
17831
17832 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17833 PyObject *resultobj;
17834 wxEffects *arg1 = (wxEffects *) 0 ;
17835 wxColour *arg2 = 0 ;
17836 wxColour temp2 ;
17837 PyObject * obj0 = 0 ;
17838 PyObject * obj1 = 0 ;
17839 char *kwnames[] = {
17840 (char *) "self",(char *) "c", NULL
17841 };
17842
17843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
17844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17846 {
17847 arg2 = &temp2;
17848 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17849 }
17850 {
17851 PyThreadState* __tstate = wxPyBeginAllowThreads();
17852 (arg1)->SetMediumShadow((wxColour const &)*arg2);
17853
17854 wxPyEndAllowThreads(__tstate);
17855 if (PyErr_Occurred()) SWIG_fail;
17856 }
17857 Py_INCREF(Py_None); resultobj = Py_None;
17858 return resultobj;
17859 fail:
17860 return NULL;
17861 }
17862
17863
17864 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17865 PyObject *resultobj;
17866 wxEffects *arg1 = (wxEffects *) 0 ;
17867 wxColour *arg2 = 0 ;
17868 wxColour temp2 ;
17869 PyObject * obj0 = 0 ;
17870 PyObject * obj1 = 0 ;
17871 char *kwnames[] = {
17872 (char *) "self",(char *) "c", NULL
17873 };
17874
17875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
17876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17878 {
17879 arg2 = &temp2;
17880 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17881 }
17882 {
17883 PyThreadState* __tstate = wxPyBeginAllowThreads();
17884 (arg1)->SetDarkShadow((wxColour const &)*arg2);
17885
17886 wxPyEndAllowThreads(__tstate);
17887 if (PyErr_Occurred()) SWIG_fail;
17888 }
17889 Py_INCREF(Py_None); resultobj = Py_None;
17890 return resultobj;
17891 fail:
17892 return NULL;
17893 }
17894
17895
17896 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17897 PyObject *resultobj;
17898 wxEffects *arg1 = (wxEffects *) 0 ;
17899 wxColour *arg2 = 0 ;
17900 wxColour *arg3 = 0 ;
17901 wxColour *arg4 = 0 ;
17902 wxColour *arg5 = 0 ;
17903 wxColour *arg6 = 0 ;
17904 wxColour temp2 ;
17905 wxColour temp3 ;
17906 wxColour temp4 ;
17907 wxColour temp5 ;
17908 wxColour temp6 ;
17909 PyObject * obj0 = 0 ;
17910 PyObject * obj1 = 0 ;
17911 PyObject * obj2 = 0 ;
17912 PyObject * obj3 = 0 ;
17913 PyObject * obj4 = 0 ;
17914 PyObject * obj5 = 0 ;
17915 char *kwnames[] = {
17916 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
17917 };
17918
17919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
17920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17922 {
17923 arg2 = &temp2;
17924 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17925 }
17926 {
17927 arg3 = &temp3;
17928 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17929 }
17930 {
17931 arg4 = &temp4;
17932 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17933 }
17934 {
17935 arg5 = &temp5;
17936 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
17937 }
17938 {
17939 arg6 = &temp6;
17940 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
17941 }
17942 {
17943 PyThreadState* __tstate = wxPyBeginAllowThreads();
17944 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
17945
17946 wxPyEndAllowThreads(__tstate);
17947 if (PyErr_Occurred()) SWIG_fail;
17948 }
17949 Py_INCREF(Py_None); resultobj = Py_None;
17950 return resultobj;
17951 fail:
17952 return NULL;
17953 }
17954
17955
17956 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
17957 PyObject *resultobj;
17958 wxEffects *arg1 = (wxEffects *) 0 ;
17959 wxDC *arg2 = 0 ;
17960 wxRect *arg3 = 0 ;
17961 int arg4 = (int) 1 ;
17962 wxRect temp3 ;
17963 PyObject * obj0 = 0 ;
17964 PyObject * obj1 = 0 ;
17965 PyObject * obj2 = 0 ;
17966 PyObject * obj3 = 0 ;
17967 char *kwnames[] = {
17968 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
17969 };
17970
17971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17974 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
17975 SWIG_POINTER_EXCEPTION | 0)) == -1)
17976 SWIG_fail;
17977 if (arg2 == NULL) {
17978 PyErr_SetString(PyExc_TypeError,"null reference");
17979 SWIG_fail;
17980 }
17981 {
17982 arg3 = &temp3;
17983 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17984 }
17985 if (obj3) {
17986 arg4 = (int) SWIG_AsInt(obj3);
17987 if (PyErr_Occurred()) SWIG_fail;
17988 }
17989 {
17990 PyThreadState* __tstate = wxPyBeginAllowThreads();
17991 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
17992
17993 wxPyEndAllowThreads(__tstate);
17994 if (PyErr_Occurred()) SWIG_fail;
17995 }
17996 Py_INCREF(Py_None); resultobj = Py_None;
17997 return resultobj;
17998 fail:
17999 return NULL;
18000 }
18001
18002
18003 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18004 PyObject *resultobj;
18005 wxEffects *arg1 = (wxEffects *) 0 ;
18006 wxRect *arg2 = 0 ;
18007 wxDC *arg3 = 0 ;
18008 wxBitmap *arg4 = 0 ;
18009 bool result;
18010 wxRect temp2 ;
18011 PyObject * obj0 = 0 ;
18012 PyObject * obj1 = 0 ;
18013 PyObject * obj2 = 0 ;
18014 PyObject * obj3 = 0 ;
18015 char *kwnames[] = {
18016 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18017 };
18018
18019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18022 {
18023 arg2 = &temp2;
18024 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18025 }
18026 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18027 SWIG_POINTER_EXCEPTION | 0)) == -1)
18028 SWIG_fail;
18029 if (arg3 == NULL) {
18030 PyErr_SetString(PyExc_TypeError,"null reference");
18031 SWIG_fail;
18032 }
18033 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18034 SWIG_POINTER_EXCEPTION | 0)) == -1)
18035 SWIG_fail;
18036 if (arg4 == NULL) {
18037 PyErr_SetString(PyExc_TypeError,"null reference");
18038 SWIG_fail;
18039 }
18040 {
18041 PyThreadState* __tstate = wxPyBeginAllowThreads();
18042 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18043
18044 wxPyEndAllowThreads(__tstate);
18045 if (PyErr_Occurred()) SWIG_fail;
18046 }
18047 {
18048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18049 }
18050 return resultobj;
18051 fail:
18052 return NULL;
18053 }
18054
18055
18056 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18057 PyObject *obj;
18058 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18059 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18060 Py_INCREF(obj);
18061 return Py_BuildValue((char *)"");
18062 }
18063 static PyMethodDef SwigMethods[] = {
18064 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18065 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18066 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18067 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18068 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18069 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18070 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
18071 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18072 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
18073 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
18074 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18075 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18076 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18077 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18078 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
18079 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
18080 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
18081 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
18082 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18083 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18084 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
18085 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
18086 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18087 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18088 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18089 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18090 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18091 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18092 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18093 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18094 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18095 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18096 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18097 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18098 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18099 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18100 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18101 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18102 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18103 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18104 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18105 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18106 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18107 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
18108 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
18109 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
18110 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
18111 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
18112 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
18113 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
18114 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18115 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
18116 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18117 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18118 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18119 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18120 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18121 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18122 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18123 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18124 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18125 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18126 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18127 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
18128 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
18129 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18130 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18131 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
18132 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
18133 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
18134 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
18135 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
18136 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
18137 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
18138 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
18139 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
18140 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
18141 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
18142 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
18143 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
18144 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
18145 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
18146 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
18147 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
18148 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
18149 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
18150 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
18151 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
18152 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
18153 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
18154 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
18155 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
18156 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
18157 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
18158 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
18159 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
18160 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
18161 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
18162 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
18163 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
18164 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
18165 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
18166 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
18167 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
18168 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
18169 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
18170 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
18171 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
18172 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
18173 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
18174 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
18175 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
18176 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
18177 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
18178 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
18179 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
18180 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
18181 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
18182 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
18183 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
18184 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
18185 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
18186 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
18187 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
18188 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
18189 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
18190 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
18191 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
18192 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
18193 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
18194 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
18195 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
18196 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
18197 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
18198 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
18199 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
18200 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
18201 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
18202 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
18203 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
18204 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
18205 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
18206 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
18207 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
18208 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
18209 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
18210 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
18211 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
18212 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
18213 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
18214 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
18215 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
18216 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
18217 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
18218 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18219 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18220 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
18221 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
18222 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
18223 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
18224 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
18225 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
18226 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
18227 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
18228 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
18229 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
18230 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
18231 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
18232 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18233 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18234 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
18235 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
18236 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18237 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
18238 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
18239 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18240 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18241 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
18242 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18243 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18244 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
18245 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
18246 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18247 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18248 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
18249 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18250 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18251 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18252 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
18253 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
18254 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
18255 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
18256 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
18257 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
18258 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
18259 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
18260 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18261 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18262 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18263 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18264 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
18265 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
18266 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
18267 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
18268 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
18269 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
18270 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
18271 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
18272 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
18273 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18274 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
18275 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
18276 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
18277 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
18278 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
18279 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
18280 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
18281 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
18282 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
18283 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
18284 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
18285 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
18286 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
18287 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
18288 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
18289 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
18290 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
18291 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
18292 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18293 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
18294 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
18295 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
18296 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18297 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18298 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18299 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18300 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
18301 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
18302 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18303 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18304 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
18305 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
18306 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
18307 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18308 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18309 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18310 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18311 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
18312 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18313 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
18314 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
18315 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
18316 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18317 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18318 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18319 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18320 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
18321 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18322 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18323 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
18324 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
18325 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
18326 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
18327 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
18328 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
18329 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
18330 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
18331 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
18332 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
18333 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
18334 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
18335 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
18336 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
18337 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
18338 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
18339 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
18340 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
18341 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
18342 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
18343 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
18344 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
18345 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
18346 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
18347 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
18348 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
18349 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
18350 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
18351 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18352 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
18353 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18354 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
18355 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
18356 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
18357 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
18358 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
18359 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
18360 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18361 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18362 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
18363 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
18364 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
18365 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
18366 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
18367 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
18368 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
18369 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
18370 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
18371 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
18372 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
18373 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
18374 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
18375 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
18376 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
18377 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
18378 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
18379 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
18380 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
18381 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
18382 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
18383 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
18384 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
18385 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
18386 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
18387 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
18388 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
18389 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
18390 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
18391 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
18392 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
18393 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
18394 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
18395 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
18396 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
18397 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
18398 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
18399 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
18400 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
18401 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
18402 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
18403 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
18404 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
18405 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
18406 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
18407 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
18408 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
18409 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
18410 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
18411 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
18412 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
18413 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
18414 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
18415 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
18416 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
18417 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
18418 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
18419 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
18420 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
18421 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
18422 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18423 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
18424 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
18425 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
18426 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
18427 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
18428 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
18429 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
18430 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
18431 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
18432 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
18433 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
18434 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
18435 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
18436 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
18437 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
18438 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
18439 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
18440 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
18441 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
18442 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
18443 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
18444 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
18445 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
18446 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
18447 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
18448 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
18449 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
18450 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
18451 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
18452 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
18453 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
18454 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18455 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
18456 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
18457 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
18458 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
18459 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
18460 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
18461 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
18462 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
18463 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
18464 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
18465 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
18466 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
18467 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18468 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18469 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18470 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
18471 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18472 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18473 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
18474 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18475 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
18476 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18477 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18478 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
18479 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
18480 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
18481 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18482 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
18483 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
18484 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
18485 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
18486 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18487 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
18488 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
18489 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
18490 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
18491 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
18492 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
18493 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
18494 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
18495 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
18496 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
18497 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
18498 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
18499 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
18500 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
18501 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
18502 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
18503 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
18504 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
18505 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
18506 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
18507 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18508 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18509 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
18510 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
18511 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
18512 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
18513 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
18514 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
18515 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
18516 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
18517 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
18518 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
18519 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
18520 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
18521 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
18522 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
18523 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
18524 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
18525 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
18526 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
18527 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
18528 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
18529 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
18530 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
18531 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
18532 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
18533 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
18534 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
18535 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
18536 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
18537 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
18538 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
18539 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
18540 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
18541 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
18542 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
18543 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
18544 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
18545 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
18546 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
18547 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
18548 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
18549 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
18550 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
18551 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
18552 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18553 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18554 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
18555 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
18556 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
18557 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
18558 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
18559 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
18560 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
18561 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
18562 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
18563 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
18564 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
18565 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18566 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
18567 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
18568 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18569 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18570 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18571 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
18572 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
18573 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18574 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18575 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
18576 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
18577 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
18578 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
18579 { NULL, NULL }
18580 };
18581
18582
18583 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
18584
18585 static void *_p_wxControlTo_p_wxWindow(void *x) {
18586 return (void *)((wxWindow *) ((wxControl *) x));
18587 }
18588 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
18589 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
18590 }
18591 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
18592 return (void *)((wxWindow *) ((wxMenuBar *) x));
18593 }
18594 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
18595 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
18596 }
18597 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
18598 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
18599 }
18600 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
18601 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
18602 }
18603 static void *_p_wxPenTo_p_wxObject(void *x) {
18604 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
18605 }
18606 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
18607 return (void *)((wxObject *) ((wxRegionIterator *) x));
18608 }
18609 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
18610 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
18611 }
18612 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
18613 return (void *)((wxObject *) ((wxSizerItem *) x));
18614 }
18615 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
18616 return (void *)((wxObject *) ((wxColourDatabase *) x));
18617 }
18618 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
18619 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
18620 }
18621 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
18622 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
18623 }
18624 static void *_p_wxIconTo_p_wxObject(void *x) {
18625 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
18626 }
18627 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
18628 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
18629 }
18630 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
18631 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
18632 }
18633 static void *_p_wxSizerTo_p_wxObject(void *x) {
18634 return (void *)((wxObject *) ((wxSizer *) x));
18635 }
18636 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
18637 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
18638 }
18639 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18640 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18641 }
18642 static void *_p_wxPenListTo_p_wxObject(void *x) {
18643 return (void *)((wxObject *) ((wxPenList *) x));
18644 }
18645 static void *_p_wxEventTo_p_wxObject(void *x) {
18646 return (void *)((wxObject *) ((wxEvent *) x));
18647 }
18648 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
18649 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
18650 }
18651 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
18652 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
18653 }
18654 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
18655 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
18656 }
18657 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
18658 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
18659 }
18660 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
18661 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
18662 }
18663 static void *_p_wxDCTo_p_wxObject(void *x) {
18664 return (void *)((wxObject *) ((wxDC *) x));
18665 }
18666 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
18667 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
18668 }
18669 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
18670 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
18671 }
18672 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
18673 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
18674 }
18675 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
18676 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
18677 }
18678 static void *_p_wxControlTo_p_wxObject(void *x) {
18679 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
18680 }
18681 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
18682 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
18683 }
18684 static void *_p_wxClientDCTo_p_wxObject(void *x) {
18685 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
18686 }
18687 static void *_p_wxFSFileTo_p_wxObject(void *x) {
18688 return (void *)((wxObject *) ((wxFSFile *) x));
18689 }
18690 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
18691 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
18692 }
18693 static void *_p_wxRegionTo_p_wxObject(void *x) {
18694 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
18695 }
18696 static void *_p_wxPySizerTo_p_wxObject(void *x) {
18697 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
18698 }
18699 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
18700 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
18701 }
18702 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
18703 return (void *)((wxObject *) ((wxGDIObject *) x));
18704 }
18705 static void *_p_wxEffectsTo_p_wxObject(void *x) {
18706 return (void *)((wxObject *) ((wxEffects *) x));
18707 }
18708 static void *_p_wxPyEventTo_p_wxObject(void *x) {
18709 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
18710 }
18711 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
18712 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
18713 }
18714 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
18715 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
18716 }
18717 static void *_p_wxShowEventTo_p_wxObject(void *x) {
18718 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
18719 }
18720 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
18721 return (void *)((wxObject *) ((wxMenuItem *) x));
18722 }
18723 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
18724 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
18725 }
18726 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
18727 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
18728 }
18729 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
18730 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
18731 }
18732 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
18733 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
18734 }
18735 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
18736 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
18737 }
18738 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
18739 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
18740 }
18741 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
18742 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
18743 }
18744 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
18745 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
18746 }
18747 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
18748 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
18749 }
18750 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
18751 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
18752 }
18753 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
18754 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
18755 }
18756 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
18757 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
18758 }
18759 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
18760 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
18761 }
18762 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
18763 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
18764 }
18765 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
18766 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
18767 }
18768 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
18769 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
18770 }
18771 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
18772 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
18773 }
18774 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
18775 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
18776 }
18777 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
18778 return (void *)((wxObject *) ((wxImageHandler *) x));
18779 }
18780 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
18781 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
18782 }
18783 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
18784 return (void *)((wxObject *) ((wxEvtHandler *) x));
18785 }
18786 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
18787 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18788 }
18789 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
18790 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
18791 }
18792 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
18793 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
18794 }
18795 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
18796 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
18797 }
18798 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
18799 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
18800 }
18801 static void *_p_wxImageTo_p_wxObject(void *x) {
18802 return (void *)((wxObject *) ((wxImage *) x));
18803 }
18804 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
18805 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
18806 }
18807 static void *_p_wxPaletteTo_p_wxObject(void *x) {
18808 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
18809 }
18810 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
18811 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
18812 }
18813 static void *_p_wxImageListTo_p_wxObject(void *x) {
18814 return (void *)((wxObject *) ((wxImageList *) x));
18815 }
18816 static void *_p_wxCursorTo_p_wxObject(void *x) {
18817 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
18818 }
18819 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
18820 return (void *)((wxObject *) ((wxEncodingConverter *) x));
18821 }
18822 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
18823 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
18824 }
18825 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
18826 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
18827 }
18828 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
18829 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
18830 }
18831 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
18832 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
18833 }
18834 static void *_p_wxWindowTo_p_wxObject(void *x) {
18835 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
18836 }
18837 static void *_p_wxMenuTo_p_wxObject(void *x) {
18838 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
18839 }
18840 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
18841 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
18842 }
18843 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
18844 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
18845 }
18846 static void *_p_wxBrushListTo_p_wxObject(void *x) {
18847 return (void *)((wxObject *) ((wxBrushList *) x));
18848 }
18849 static void *_p_wxPyPenTo_p_wxObject(void *x) {
18850 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
18851 }
18852 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
18853 return (void *)((wxObject *) ((wxFileSystem *) x));
18854 }
18855 static void *_p_wxBitmapTo_p_wxObject(void *x) {
18856 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
18857 }
18858 static void *_p_wxMaskTo_p_wxObject(void *x) {
18859 return (void *)((wxObject *) ((wxMask *) x));
18860 }
18861 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
18862 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
18863 }
18864 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
18865 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
18866 }
18867 static void *_p_wxPyAppTo_p_wxObject(void *x) {
18868 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
18869 }
18870 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
18871 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
18872 }
18873 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
18874 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
18875 }
18876 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
18877 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
18878 }
18879 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
18880 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
18881 }
18882 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
18883 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
18884 }
18885 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
18886 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
18887 }
18888 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
18889 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
18890 }
18891 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
18892 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
18893 }
18894 static void *_p_wxFontTo_p_wxObject(void *x) {
18895 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
18896 }
18897 static void *_p_wxBrushTo_p_wxObject(void *x) {
18898 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
18899 }
18900 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
18901 return (void *)((wxObject *) ((wxMetaFile *) x));
18902 }
18903 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
18904 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
18905 }
18906 static void *_p_wxColourTo_p_wxObject(void *x) {
18907 return (void *)((wxObject *) ((wxColour *) x));
18908 }
18909 static void *_p_wxFontListTo_p_wxObject(void *x) {
18910 return (void *)((wxObject *) ((wxFontList *) x));
18911 }
18912 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
18913 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
18914 }
18915 static void *_p_wxValidatorTo_p_wxObject(void *x) {
18916 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
18917 }
18918 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
18919 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
18920 }
18921 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
18922 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
18923 }
18924 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
18925 return (void *)((wxDC *) ((wxScreenDC *) x));
18926 }
18927 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
18928 return (void *)((wxDC *) ((wxMirrorDC *) x));
18929 }
18930 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
18931 return (void *)((wxDC *) ((wxMemoryDC *) x));
18932 }
18933 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
18934 return (void *)((wxDC *) ((wxWindowDC *) x));
18935 }
18936 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
18937 return (void *)((wxDC *) ((wxMetaFileDC *) x));
18938 }
18939 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
18940 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18941 }
18942 static void *_p_wxClientDCTo_p_wxDC(void *x) {
18943 return (void *)((wxDC *) ((wxClientDC *) x));
18944 }
18945 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
18946 return (void *)((wxDC *) ((wxPaintDC *) x));
18947 }
18948 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
18949 return (void *)((wxDC *) ((wxPostScriptDC *) x));
18950 }
18951 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
18952 return (void *)((wxDC *) ((wxPrinterDC *) x));
18953 }
18954 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
18955 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
18956 }
18957 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
18958 return (void *)((wxGDIObject *) ((wxIcon *) x));
18959 }
18960 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
18961 return (void *)((wxGDIObject *) ((wxPalette *) x));
18962 }
18963 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
18964 return (void *)((wxGDIObject *) ((wxPen *) x));
18965 }
18966 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
18967 return (void *)((wxGDIObject *) ((wxFont *) x));
18968 }
18969 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
18970 return (void *)((wxGDIObject *) ((wxCursor *) x));
18971 }
18972 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
18973 return (void *)((wxGDIObject *) ((wxBitmap *) x));
18974 }
18975 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
18976 return (void *)((wxGDIObject *) ((wxRegion *) x));
18977 }
18978 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
18979 return (void *)((wxGDIObject *) ((wxBrush *) x));
18980 }
18981 static void *_p_wxPyPenTo_p_wxPen(void *x) {
18982 return (void *)((wxPen *) ((wxPyPen *) x));
18983 }
18984 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}};
18985 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}};
18986 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}};
18987 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}};
18988 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}};
18989 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}};
18990 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}};
18991 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}};
18992 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}};
18993 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}};
18994 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}};
18995 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}};
18996 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}};
18997 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}};
18998 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}};
18999 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}};
19000 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}};
19001 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}};
19002 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}};
19003 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}};
19004 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}};
19005 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}};
19006 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}};
19007 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}};
19008 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}};
19009 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}};
19010 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}};
19011 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}};
19012 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}};
19013 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}};
19014 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}};
19015 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}};
19016 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}};
19017 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}};
19018 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}};
19019 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}};
19020 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}};
19021 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}};
19022 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}};
19023 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}};
19024 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}};
19025 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}};
19026 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}};
19027 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}};
19028 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}};
19029 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}};
19030 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}};
19031 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}};
19032 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}};
19033 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}};
19034 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}};
19035 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}};
19036 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}};
19037 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}};
19038 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}};
19039 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}};
19040
19041 static swig_type_info *swig_types_initial[] = {
19042 _swigt__p_wxPostScriptDC,
19043 _swigt__p_wxBrush,
19044 _swigt__p_wxColour,
19045 _swigt__p_wxDC,
19046 _swigt__p_wxMirrorDC,
19047 _swigt__p_byte,
19048 _swigt__p_wxPyFontEnumerator,
19049 _swigt__p_char,
19050 _swigt__p_wxIconLocation,
19051 _swigt__p_wxImage,
19052 _swigt__p_wxMetaFileDC,
19053 _swigt__p_wxMask,
19054 _swigt__p_wxFont,
19055 _swigt__p_wxWindow,
19056 _swigt__p_wxSize,
19057 _swigt__p_double,
19058 _swigt__p_wxMemoryDC,
19059 _swigt__p_wxFontMapper,
19060 _swigt__p_wxEffects,
19061 _swigt__p_wxNativeEncodingInfo,
19062 _swigt__p_wxPalette,
19063 _swigt__p_wxBitmap,
19064 _swigt__p_wxObject,
19065 _swigt__p_wxRegionIterator,
19066 _swigt__p_wxRect,
19067 _swigt__p_wxString,
19068 _swigt__p_wxPrinterDC,
19069 _swigt__p_wxIconBundle,
19070 _swigt__p_wxPoint,
19071 _swigt__p_wxDash,
19072 _swigt__p_wxScreenDC,
19073 _swigt__p_wxCursor,
19074 _swigt__p_wxClientDC,
19075 _swigt__p_wxBufferedDC,
19076 _swigt__p_wxImageList,
19077 _swigt__p_unsigned_char,
19078 _swigt__p_wxGDIObject,
19079 _swigt__p_wxIcon,
19080 _swigt__p_wxLocale,
19081 _swigt__p_wxRegion,
19082 _swigt__p_wxLanguageInfo,
19083 _swigt__p_wxConfigBase,
19084 _swigt__p_wxWindowDC,
19085 _swigt__p_wxPrintData,
19086 _swigt__p_wxBrushList,
19087 _swigt__p_wxFontList,
19088 _swigt__p_wxPen,
19089 _swigt__p_wxBufferedPaintDC,
19090 _swigt__p_wxPaintDC,
19091 _swigt__p_wxPenList,
19092 _swigt__p_wxPyPen,
19093 _swigt__p_int,
19094 _swigt__p_wxMetaFile,
19095 _swigt__p_wxNativeFontInfo,
19096 _swigt__p_wxEncodingConverter,
19097 _swigt__p_wxColourDatabase,
19098 0
19099 };
19100
19101
19102 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19103
19104 static swig_const_info swig_const_table[] = {
19105 {0}};
19106
19107 #ifdef __cplusplus
19108 }
19109 #endif
19110
19111 #ifdef __cplusplus
19112 extern "C"
19113 #endif
19114 SWIGEXPORT(void) SWIG_init(void) {
19115 static PyObject *SWIG_globals = 0;
19116 static int typeinit = 0;
19117 PyObject *m, *d;
19118 int i;
19119 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19120 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19121 d = PyModule_GetDict(m);
19122
19123 if (!typeinit) {
19124 for (i = 0; swig_types_initial[i]; i++) {
19125 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19126 }
19127 typeinit = 1;
19128 }
19129 SWIG_InstallConstants(d,swig_const_table);
19130
19131 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
19132 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
19133 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
19134 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
19135 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
19136 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
19137 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
19138 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
19139 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
19140 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
19141 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
19142 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
19143 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
19144 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
19145 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
19146 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
19147 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
19148 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
19149 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
19150 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
19151 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
19152 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
19153 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
19154 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
19155 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
19156 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
19157 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
19158 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
19159 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
19160 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
19161 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
19162 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
19163 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
19164 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
19165 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
19166 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
19167 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
19168 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
19169 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
19170 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
19171 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
19172 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
19173 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
19174 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
19175 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
19176 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
19177 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
19178 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
19179 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
19180 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
19181 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
19182 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
19183 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
19184 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
19185 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
19186 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
19187 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
19188 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
19189 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
19190 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
19191 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
19192 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
19193 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
19194 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
19195 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
19196 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
19197 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
19198 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
19199 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
19200 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
19201 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
19202 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
19203 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
19204 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
19205 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
19206 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
19207 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
19208 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
19209 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
19210 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
19211 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
19212 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
19213 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
19214 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
19215 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
19216 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
19217 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
19218 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
19219 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
19220 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
19221 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
19222 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
19223 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
19224 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
19225 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
19226 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
19227 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
19228 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
19229 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
19230 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
19231 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
19232 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
19233 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
19234 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
19235 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
19236 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
19237 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
19238 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
19239 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
19240 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
19241 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
19242 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
19243 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
19244 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
19245 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
19246 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
19247 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
19248 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
19249 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
19250 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
19251 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
19252 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
19253 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
19254 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
19255 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
19256 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
19257
19258 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19259
19260 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
19261 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
19262 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
19263 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
19264 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
19265 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
19266 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
19267 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
19268 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
19269 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
19270 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
19271 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
19272 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
19273 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
19274 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
19275 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
19276 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
19277 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
19278 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
19279 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19280 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
19281 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
19282 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
19283 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
19284 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
19285 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
19286 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
19287 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
19288 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
19289 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
19290 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
19291 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
19292 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
19293 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
19294 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
19295 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
19296 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
19297 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
19298 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
19299 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
19300 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
19301 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
19302 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
19303 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
19304 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19305 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19306 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
19307 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
19308 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
19309 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
19310 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
19311 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
19312 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
19313 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
19314 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
19315 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
19316 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
19317 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
19318 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
19319 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19320 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
19321 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19322 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
19323 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19324 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
19325 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
19326 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
19327 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19328 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19329 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19330 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19331 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19332 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
19333 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
19334 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
19335 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
19336 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
19337 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
19338 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
19339 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
19340 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
19341 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19342 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
19343 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
19344 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
19345 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
19346 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
19347 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
19348 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19349 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
19350 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19351 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19352 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
19353 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
19354 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
19355 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
19356 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
19357 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
19358 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
19359 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
19360 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
19361 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
19362 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
19363 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
19364 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
19365 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
19366 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
19367 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
19368 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
19369 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19370 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
19371 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
19372 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
19373 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
19374 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19375 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
19376 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
19377 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
19378 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
19379 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
19380 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
19381 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
19382 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
19383 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
19384 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
19385 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
19386 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
19387 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
19388 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
19389 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
19390 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
19391 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
19392 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19393 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19394 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
19395 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
19396 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
19397 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
19398 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19399 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
19400 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
19401 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
19402 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
19403 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19404 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19405 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
19406 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
19407 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
19408 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
19409 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
19410 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
19411 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19412 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
19413 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
19414 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
19415 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
19416 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
19417 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19418 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
19419 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
19420 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
19421 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19422 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
19423 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19424 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19425 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19426 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
19427 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
19428 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
19429 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
19430 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
19431 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
19432 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
19433 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
19434 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
19435 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
19436 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19437 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19438 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19439 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19440 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19441 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19442 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19443 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19444 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19445 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19446 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19447 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19448 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19449 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19450 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19451 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19452 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19453 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19454 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
19455 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19456 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
19457 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
19458 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
19459 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19460 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
19461 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
19462 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
19463 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
19464 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
19465 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
19466 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
19467 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
19468 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
19469 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
19470 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
19471 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
19472 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
19473 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
19474 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
19475 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
19476 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
19477 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19478 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
19479 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19480 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19481 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
19482 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
19483 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
19484 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
19485 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
19486 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
19487 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
19488 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
19489 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
19490 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
19491 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
19492 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
19493 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
19494 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
19495 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19496 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
19497 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19498 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
19499 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
19500 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
19501 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
19502 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
19503 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
19504 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
19505 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
19506 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19507 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19508 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19509 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19510 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
19511 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
19512 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
19513 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19514 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19515 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19516 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19517 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19518 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19519 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19520 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19521 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19522 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19523 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19524 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19525 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19526 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19527 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19528 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19529 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19530 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19531 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19532 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19533 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19534 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19535 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19536 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19537 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19538 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19539 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19540 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19541 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19542 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19543 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19544 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19545 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19546 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19547 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19548 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19549 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19550 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19551 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19552 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19553 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19554 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19555 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19556 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19557 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19558 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19559 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
19560
19561 // Work around a chicken/egg problem in drawlist.cpp
19562 wxPyDrawList_SetAPIPtr();
19563
19564 }
19565