]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/gdi_wrap.cpp
updated version number
[wxWidgets.git] / wxPython / src / mac / gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 /***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136 #include "Python.h"
137
138 #ifdef __cplusplus
139 extern "C" {
140 #endif
141
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
147
148 /* Flags for pointer conversion */
149
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
152
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
155
156 /* Constant information structure */
157 typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164 } swig_const_info;
165
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
207 /* -------- TYPES TABLE (BEGIN) -------- */
208
209 #define SWIGTYPE_p_wxPostScriptDC swig_types[0]
210 #define SWIGTYPE_p_wxBrush swig_types[1]
211 #define SWIGTYPE_p_wxColour swig_types[2]
212 #define SWIGTYPE_p_wxDC swig_types[3]
213 #define SWIGTYPE_p_wxMirrorDC swig_types[4]
214 #define SWIGTYPE_p_byte swig_types[5]
215 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
216 #define SWIGTYPE_p_char swig_types[7]
217 #define SWIGTYPE_p_wxIconLocation swig_types[8]
218 #define SWIGTYPE_p_wxImage swig_types[9]
219 #define SWIGTYPE_p_wxMetaFileDC swig_types[10]
220 #define SWIGTYPE_p_wxMask swig_types[11]
221 #define SWIGTYPE_p_wxFont swig_types[12]
222 #define SWIGTYPE_p_wxWindow swig_types[13]
223 #define SWIGTYPE_p_wxSize swig_types[14]
224 #define SWIGTYPE_p_double swig_types[15]
225 #define SWIGTYPE_p_wxMemoryDC swig_types[16]
226 #define SWIGTYPE_p_wxFontMapper swig_types[17]
227 #define SWIGTYPE_p_wxEffects swig_types[18]
228 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19]
229 #define SWIGTYPE_p_wxPalette swig_types[20]
230 #define SWIGTYPE_p_wxBitmap swig_types[21]
231 #define SWIGTYPE_p_wxObject swig_types[22]
232 #define SWIGTYPE_p_wxRegionIterator swig_types[23]
233 #define SWIGTYPE_p_wxRect swig_types[24]
234 #define SWIGTYPE_p_wxString swig_types[25]
235 #define SWIGTYPE_p_wxPrinterDC swig_types[26]
236 #define SWIGTYPE_p_wxIconBundle swig_types[27]
237 #define SWIGTYPE_p_wxPoint swig_types[28]
238 #define SWIGTYPE_p_wxDash swig_types[29]
239 #define SWIGTYPE_p_wxScreenDC swig_types[30]
240 #define SWIGTYPE_p_wxCursor swig_types[31]
241 #define SWIGTYPE_p_wxClientDC swig_types[32]
242 #define SWIGTYPE_p_wxBufferedDC swig_types[33]
243 #define SWIGTYPE_p_wxImageList swig_types[34]
244 #define SWIGTYPE_p_unsigned_char swig_types[35]
245 #define SWIGTYPE_p_wxGDIObject swig_types[36]
246 #define SWIGTYPE_p_wxIcon swig_types[37]
247 #define SWIGTYPE_p_wxLocale swig_types[38]
248 #define SWIGTYPE_p_wxRegion swig_types[39]
249 #define SWIGTYPE_p_wxLanguageInfo swig_types[40]
250 #define SWIGTYPE_p_wxConfigBase swig_types[41]
251 #define SWIGTYPE_p_wxWindowDC swig_types[42]
252 #define SWIGTYPE_p_wxPrintData swig_types[43]
253 #define SWIGTYPE_p_wxBrushList swig_types[44]
254 #define SWIGTYPE_p_wxFontList swig_types[45]
255 #define SWIGTYPE_p_wxPen swig_types[46]
256 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[47]
257 #define SWIGTYPE_p_wxPaintDC swig_types[48]
258 #define SWIGTYPE_p_wxPenList swig_types[49]
259 #define SWIGTYPE_p_wxPyPen swig_types[50]
260 #define SWIGTYPE_p_int swig_types[51]
261 #define SWIGTYPE_p_wxMetaFile swig_types[52]
262 #define SWIGTYPE_p_wxNativeFontInfo swig_types[53]
263 #define SWIGTYPE_p_wxEncodingConverter swig_types[54]
264 #define SWIGTYPE_p_wxColourDatabase swig_types[55]
265 static swig_type_info *swig_types[57];
266
267 /* -------- TYPES TABLE (END) -------- */
268
269
270 /*-----------------------------------------------
271 @(target):= _gdi.so
272 ------------------------------------------------*/
273 #define SWIG_init init_gdi
274
275 #define SWIG_name "_gdi"
276
277 /* Auxiliar swig macros */
278
279 #ifdef __cplusplus
280 #define SWIGSTATICINLINE(a) static inline a
281 #define SWIGSTATIC(a) static a
282 #define swig_new_array(type, size) (new type[(size)])
283 #define swig_delete_array(cptr) delete[] cptr
284 #define swig_const_cast(type,a) const_cast<type>(a)
285 #define swig_static_cast(type,a) static_cast<type>(a)
286 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
287
288 #ifdef HAVE_NUMERIC_CAST
289 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
290 #else
291 #define swig_numeric_cast(type,a) static_cast<type>(a)
292 #endif
293
294 #else /* C case */
295
296 #define SWIGSTATICINLINE(a) static a
297 #define SWIGSTATIC(a) static a
298 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
299 #define swig_delete_array(cptr) free((char*)cptr)
300 #define swig_const_cast(type,a) (type)(a)
301 #define swig_static_cast(type,a) (type)(a)
302 #define swig_reinterpret_cast(type,a) (type)(a)
303 #define swig_numeric_cast(type,a) (type)(a)
304
305 #endif /* __cplusplus */
306
307
308 #define SWIG_FromSignedChar PyInt_FromLong
309 #define SWIG_FromUnsignedChar PyInt_FromLong
310 #define SWIG_FromShort PyInt_FromLong
311 #define SWIG_FromUnsignedShort PyInt_FromLong
312 #define SWIG_FromInt PyInt_FromLong
313 #define SWIG_FromLong PyInt_FromLong
314 #define SWIG_FromFloat PyFloat_FromDouble
315 #define SWIG_FromDouble PyFloat_FromDouble
316 #define SWIG_FromFloat PyFloat_FromDouble
317 #define SWIG_FromDouble PyFloat_FromDouble
318
319
320 #include "wx/wxPython/wxPython.h"
321 #include "wx/wxPython/pyclasses.h"
322
323
324 static const wxString wxPyEmptyString(wxEmptyString);
325
326 SWIGSTATICINLINE(bool)
327 SWIG_AsBool(PyObject *obj)
328 {
329 return PyObject_IsTrue(obj) ? true : false;
330 }
331
332
333 SWIGSTATICINLINE(int)
334 SWIG_CheckBool(PyObject* obj)
335 {
336 SWIG_AsBool(obj);
337 if (PyErr_Occurred()) {
338 PyErr_Clear();
339 return 0;
340 } else {
341 return 1;
342 }
343 }
344
345
346 #include <limits.h>
347
348
349 SWIGSTATICINLINE(unsigned long)
350 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
351 unsigned long max_value)
352 {
353 if (!PyErr_Occurred()) {
354 if (value > max_value) {
355 PyObject *err =
356 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
357 value, type, max_value);
358 PyErr_SetObject(PyExc_OverflowError, err);
359 Py_DECREF(err);
360 }
361 }
362 return value;
363 }
364
365
366 SWIGSTATICINLINE(long)
367 SWIG_AsLong(PyObject * obj)
368 {
369 if (PyNumber_Check(obj))
370 return PyInt_AsLong(obj);
371 else {
372 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
373 obj->ob_type->tp_name);
374 PyErr_SetObject(PyExc_TypeError, errmsg);
375 Py_DECREF(errmsg);
376 return 0;
377 }
378 }
379
380
381 SWIGSTATICINLINE(unsigned long)
382 SWIG_AsUnsignedLong(PyObject * obj)
383 {
384 if (PyLong_Check(obj)) {
385 return PyLong_AsUnsignedLong(obj);
386 } else {
387 long i = SWIG_AsLong(obj);
388 if ( !PyErr_Occurred() && (i < 0)) {
389 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
390 }
391 return i;
392 }
393 }
394
395
396 SWIGSTATICINLINE(unsigned char)
397 SWIG_AsUnsignedChar(PyObject *obj)
398 {
399 return swig_numeric_cast(unsigned char,
400 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
401 "unsigned char", UCHAR_MAX));
402 }
403
404
405 SWIGSTATICINLINE(int)
406 SWIG_CheckUnsignedChar(PyObject* obj)
407 {
408 SWIG_AsUnsignedChar(obj);
409 if (PyErr_Occurred()) {
410 PyErr_Clear();
411 return 0;
412 } else {
413 return 1;
414 }
415 }
416
417
418 SWIGSTATICINLINE(int)
419 SWIG_CheckUnsignedLong(PyObject* obj)
420 {
421 SWIG_AsUnsignedLong(obj);
422 if (PyErr_Occurred()) {
423 PyErr_Clear();
424 return 0;
425 } else {
426 return 1;
427 }
428 }
429
430 PyObject *wxColour_Get(wxColour *self){
431 PyObject* rv = PyTuple_New(3);
432 int red = -1;
433 int green = -1;
434 int blue = -1;
435 if (self->Ok()) {
436 red = self->Red();
437 green = self->Green();
438 blue = self->Blue();
439 }
440 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
441 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
442 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
443 return rv;
444 }
445 unsigned long wxColour_GetRGB(wxColour *self){
446 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
447 }
448
449 SWIGSTATICINLINE(PyObject* )
450 SWIG_FromUnsignedLong(unsigned long value)
451 {
452 return (value > LONG_MAX) ?
453 PyLong_FromUnsignedLong(value)
454 : PyInt_FromLong(swig_numeric_cast(long,value));
455 }
456
457
458 SWIGSTATICINLINE(long)
459 SWIG_CheckLongInRange(long value, const char* type,
460 long min_value, long max_value)
461 {
462 if (!PyErr_Occurred()) {
463 if (value < min_value) {
464 PyObject *err =
465 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
466 value, type, min_value);
467
468 PyErr_SetObject(PyExc_OverflowError, err);
469 Py_DECREF(err);
470 } else if (value > max_value) {
471 PyObject *err =
472 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
473 value, type, max_value);
474 PyErr_SetObject(PyExc_OverflowError, err);
475 Py_DECREF(err);
476 }
477 }
478 return value;
479 }
480
481
482 #if INT_MAX != LONG_MAX
483 SWIGSTATICINLINE(int)
484 SWIG_AsInt(PyObject *obj)
485 {
486 return swig_numeric_cast(int,
487 SWIG_CheckLongInRange(SWIG_AsLong(obj),
488 "int", INT_MIN, INT_MAX));
489 }
490 #else
491 #define SWIG_AsInt SWIG_AsLong
492 #endif
493
494
495 SWIGSTATICINLINE(int)
496 SWIG_CheckInt(PyObject* obj)
497 {
498 SWIG_AsInt(obj);
499 if (PyErr_Occurred()) {
500 PyErr_Clear();
501 return 0;
502 } else {
503 return 1;
504 }
505 }
506
507
508 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
509 PyObject* o2;
510 PyObject* o3;
511
512 if (!target) {
513 target = o;
514 } else if (target == Py_None) {
515 Py_DECREF(Py_None);
516 target = o;
517 } else {
518 if (!PyTuple_Check(target)) {
519 o2 = target;
520 target = PyTuple_New(1);
521 PyTuple_SetItem(target, 0, o2);
522 }
523 o3 = PyTuple_New(1);
524 PyTuple_SetItem(o3, 0, o);
525
526 o2 = target;
527 target = PySequence_Concat(o2, o3);
528 Py_DECREF(o2);
529 Py_DECREF(o3);
530 }
531 return target;
532 }
533
534 PyObject *wxPen_GetDashes(wxPen *self){
535 wxDash* dashes;
536 int count = self->GetDashes(&dashes);
537 bool blocked = wxPyBeginBlockThreads();
538 PyObject* retval = PyList_New(0);
539 for (int x=0; x<count; x++)
540 PyList_Append(retval, PyInt_FromLong(dashes[x]));
541 wxPyEndBlockThreads(blocked);
542 return retval;
543 }
544 bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; }
545 bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; }
546
547 wxPyPen::~wxPyPen()
548 {
549 if (m_dash)
550 delete [] m_dash;
551 }
552
553 void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash)
554 {
555 if (m_dash)
556 delete [] m_dash;
557 m_dash = new wxDash[nb_dashes];
558 for (int i=0; i<nb_dashes; i++) {
559 m_dash[i] = dash[i];
560 }
561 wxPen::SetDashes(nb_dashes, m_dash);
562 }
563
564
565 SWIGSTATICINLINE(short)
566 SWIG_AsShort(PyObject *obj)
567 {
568 return swig_numeric_cast(short,
569 SWIG_CheckLongInRange(SWIG_AsLong(obj),
570 "short", SHRT_MIN, SHRT_MAX));
571 }
572
573
574 SWIGSTATICINLINE(int)
575 SWIG_CheckShort(PyObject* obj)
576 {
577 SWIG_AsShort(obj);
578 if (PyErr_Occurred()) {
579 PyErr_Clear();
580 return 0;
581 } else {
582 return 1;
583 }
584 }
585
586
587 #include <wx/image.h>
588
589 static char** ConvertListOfStrings(PyObject* listOfStrings) {
590 char** cArray = NULL;
591 int count;
592
593 if (!PyList_Check(listOfStrings)) {
594 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
595 return NULL;
596 }
597 count = PyList_Size(listOfStrings);
598 cArray = new char*[count];
599
600 for(int x=0; x<count; x++) {
601 // TODO: Need some validation and error checking here
602 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
603 }
604 return cArray;
605 }
606
607
608 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
609 char** cArray = NULL;
610 wxBitmap* bmp;
611
612 cArray = ConvertListOfStrings(listOfStrings);
613 if (! cArray)
614 return NULL;
615 bmp = new wxBitmap(cArray);
616 delete [] cArray;
617 return bmp;
618 }
619 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
620 char* buf;
621 int length;
622 PyString_AsStringAndSize(bits, &buf, &length);
623 return new wxBitmap(buf, width, height, depth);
624 }
625 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
626 wxMask *mask = new wxMask(*self, colour);
627 self->SetMask(mask);
628 }
629 bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; }
630 bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; }
631 wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
632 if ( !colour.Ok() )
633 return new wxMask(bitmap, *wxBLACK);
634 else
635 return new wxMask(bitmap, colour);
636 }
637
638 #include <wx/iconbndl.h>
639
640 wxIcon *new_wxIcon(wxBitmap const &bmp){
641 wxIcon* icon = new wxIcon();
642 icon->CopyFromBitmap(bmp);
643 return icon;
644 }
645 wxIcon *new_wxIcon(PyObject *listOfStrings){
646 char** cArray = NULL;
647 wxIcon* icon;
648
649 cArray = ConvertListOfStrings(listOfStrings);
650 if (! cArray)
651 return NULL;
652 icon = new wxIcon(cArray);
653 delete [] cArray;
654 return icon;
655 }
656 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
657
658
659
660 return new wxIconLocation(*filename);
661
662 }
663 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
664
665
666
667 // do nothing
668
669 }
670 int wxIconLocation_GetIndex(wxIconLocation *self){
671
672
673
674 return -1;
675
676 }
677
678 SWIGSTATICINLINE(int)
679 SWIG_CheckLong(PyObject* obj)
680 {
681 SWIG_AsLong(obj);
682 if (PyErr_Occurred()) {
683 PyErr_Clear();
684 return 0;
685 } else {
686 return 1;
687 }
688 }
689
690 wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
691 #ifdef __WXGTK__
692 wxCHECK_MSG(False, NULL,
693 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
694 #else
695 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
696 #endif
697 }
698
699
700 wxRegion *new_wxRegion(int points,wxPoint *points_array,int fillStyle){
701 wxPyRaiseNotImplemented();
702 return NULL;
703 }
704 void wxRegionIterator_Next(wxRegionIterator *self){
705 (*self) ++;
706 }
707 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
708 return self->operator bool();
709 }
710
711 #include <wx/fontutil.h>
712 #include <wx/fontmap.h>
713 #include <wx/fontenum.h>
714
715 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
716 return self->ToString();
717 }
718
719 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
720 static wxNativeEncodingInfo info;
721 if ( wxGetNativeFontEncoding(encoding, &info) )
722 return &info;
723 else
724 return NULL;
725 }
726
727 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
728 wxFontEncoding alt_enc;
729 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
730 return PyInt_FromLong(alt_enc);
731 else {
732 Py_INCREF(Py_None);
733 return Py_None;
734 }
735 }
736 wxFont *new_wxFont(wxString const &info){
737 wxNativeFontInfo nfi;
738 nfi.FromString(info);
739 return new wxFont(nfi);
740 }
741 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
742 return wxFont::New(pointSize, family, flags, face, encoding);
743 }
744 bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
745 bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
746
747 class wxPyFontEnumerator : public wxFontEnumerator {
748 public:
749 wxPyFontEnumerator() {}
750 ~wxPyFontEnumerator() {}
751
752 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
753 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
754
755 PYPRIVATE;
756 };
757
758 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
759 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
760
761
762 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
763 wxArrayString* arr = self->GetEncodings();
764 return wxArrayString2PyList_helper(*arr);
765 }
766 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
767 wxArrayString* arr = self->GetFacenames();
768 return wxArrayString2PyList_helper(*arr);
769 }
770
771
772
773 #include "wx/wxPython/pydrawxxx.h"
774
775 wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
776 wxColour col;
777 self->GetPixel(x, y, &col);
778 return col;
779 }
780 wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
781 wxColour col;
782 self->GetPixel(pt, &col);
783 return col;
784 }
785
786 SWIGSTATICINLINE(double)
787 SWIG_AsDouble(PyObject *obj)
788 {
789 if (PyNumber_Check(obj))
790 return PyFloat_AsDouble(obj);
791 else {
792 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
793 obj->ob_type->tp_name);
794 PyErr_SetObject(PyExc_TypeError, errmsg);
795 Py_DECREF(errmsg);
796 return 0;
797 }
798 }
799
800
801 SWIGSTATICINLINE(int)
802 SWIG_CheckDouble(PyObject* obj)
803 {
804 SWIG_AsDouble(obj);
805 if (PyErr_Occurred()) {
806 PyErr_Clear();
807 return 0;
808 } else {
809 return 1;
810 }
811 }
812
813 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
814 wxRect rv;
815 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
816 return rv;
817 }
818 wxRect wxDC_GetClippingRect(wxDC *self){
819 wxRect rect;
820 self->GetClippingBox(rect);
821 return rect;
822 }
823 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
824 wxArrayInt widths;
825 self->GetPartialTextExtents(text, widths);
826 return widths;
827 }
828 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
829 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
830 }
831 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
832 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
833 }
834 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
835 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
836 }
837 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
838 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
839 }
840 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
841 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
842 }
843 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
844 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
845 }
846
847 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
848 *x1 = dc->MinX();
849 *y1 = dc->MinY();
850 *x2 = dc->MaxX();
851 *y2 = dc->MaxY();
852 }
853
854
855 //-=-=-=-=-=-=-=-=-=-=-
856
857 #if 1
858 // Use the standard wxBufferedDC
859 #include <wx/dcbuffer.h>
860
861 #else
862
863 // Or, temporarily put a set of classes here similar to the old buffered DC
864 // classes until the real ones can be fixed to work "correctly" again.
865
866 class wxBufferedDC : public wxMemoryDC
867 {
868 private:
869 wxDC *m_dc;
870 wxBitmap m_buffer;
871
872 public:
873
874 wxBufferedDC() : m_dc( 0 ) {}
875
876 wxBufferedDC( wxDC *dc, const wxBitmap &buffer )
877 : m_dc( dc ), m_buffer( buffer )
878 {
879 SelectObject( m_buffer );
880 }
881
882 wxBufferedDC( wxDC *dc, const wxSize &area )
883 : m_dc( dc ), m_buffer( area.GetWidth(), area.GetHeight() )
884 {
885 SelectObject( m_buffer );
886 }
887
888 ~wxBufferedDC() {
889 if( m_dc != 0 )
890 UnMask();
891 }
892
893
894 void Init( wxDC *dc, const wxBitmap &buffer ) {
895 wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap,
896 _T("wxBufferedDC already initialised") );
897 m_dc = dc;
898 m_buffer = buffer;
899 SelectObject( m_buffer );
900 }
901
902 void Init( wxDC *dc, const wxSize &area ) {
903 wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap,
904 _T("wxBufferedDC already initialised") );
905 m_dc = dc;
906 m_buffer = wxBitmap( area.GetWidth(), area.GetHeight() );
907 SelectObject( m_buffer );
908 }
909
910 void UnMask() {
911 wxASSERT_MSG( m_dc != 0, _T("No low level DC associated with buffer (anymore)") );
912 m_dc->Blit( 0, 0, m_buffer.GetWidth(), m_buffer.GetHeight(), this, 0, 0 );
913 m_dc = 0;
914 }
915 };
916
917
918 class wxBufferedPaintDC : public wxBufferedDC
919 {
920 private:
921 wxPaintDC m_paintdc;
922
923 public:
924 wxBufferedPaintDC( wxWindow *window, const wxBitmap &buffer = wxNullBitmap )
925 : m_paintdc( window )
926 {
927 window->PrepareDC( m_paintdc );
928
929 if( buffer != wxNullBitmap )
930 Init( &m_paintdc, buffer );
931 else
932 Init( &m_paintdc, window->GetClientSize() );
933 }
934
935 ~wxBufferedPaintDC() {
936 UnMask();
937 }
938 };
939
940 #endif
941 //-=-=-=-=-=-=-=-=-=-=-
942
943
944 #include <wx/dcps.h>
945
946
947 #include <wx/metafile.h>
948
949
950
951 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
952 self->AddColour(name, wxColour(red, green, blue));
953 }
954
955 #include <wx/effects.h>
956
957 #ifdef __cplusplus
958 extern "C" {
959 #endif
960 static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
961 PyObject *resultobj;
962 wxGDIObject *result;
963 char *kwnames[] = {
964 NULL
965 };
966
967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
968 {
969 PyThreadState* __tstate = wxPyBeginAllowThreads();
970 result = (wxGDIObject *)new wxGDIObject();
971
972 wxPyEndAllowThreads(__tstate);
973 if (PyErr_Occurred()) SWIG_fail;
974 }
975 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
976 return resultobj;
977 fail:
978 return NULL;
979 }
980
981
982 static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
983 PyObject *resultobj;
984 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
985 PyObject * obj0 = 0 ;
986 char *kwnames[] = {
987 (char *) "self", NULL
988 };
989
990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
993 {
994 PyThreadState* __tstate = wxPyBeginAllowThreads();
995 delete arg1;
996
997 wxPyEndAllowThreads(__tstate);
998 if (PyErr_Occurred()) SWIG_fail;
999 }
1000 Py_INCREF(Py_None); resultobj = Py_None;
1001 return resultobj;
1002 fail:
1003 return NULL;
1004 }
1005
1006
1007 static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
1008 PyObject *resultobj;
1009 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1010 bool result;
1011 PyObject * obj0 = 0 ;
1012 char *kwnames[] = {
1013 (char *) "self", NULL
1014 };
1015
1016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
1017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1019 {
1020 PyThreadState* __tstate = wxPyBeginAllowThreads();
1021 result = (bool)(arg1)->GetVisible();
1022
1023 wxPyEndAllowThreads(__tstate);
1024 if (PyErr_Occurred()) SWIG_fail;
1025 }
1026 {
1027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1028 }
1029 return resultobj;
1030 fail:
1031 return NULL;
1032 }
1033
1034
1035 static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
1036 PyObject *resultobj;
1037 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1038 bool arg2 ;
1039 PyObject * obj0 = 0 ;
1040 PyObject * obj1 = 0 ;
1041 char *kwnames[] = {
1042 (char *) "self",(char *) "visible", NULL
1043 };
1044
1045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
1046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1048 arg2 = (bool) SWIG_AsBool(obj1);
1049 if (PyErr_Occurred()) SWIG_fail;
1050 {
1051 PyThreadState* __tstate = wxPyBeginAllowThreads();
1052 (arg1)->SetVisible(arg2);
1053
1054 wxPyEndAllowThreads(__tstate);
1055 if (PyErr_Occurred()) SWIG_fail;
1056 }
1057 Py_INCREF(Py_None); resultobj = Py_None;
1058 return resultobj;
1059 fail:
1060 return NULL;
1061 }
1062
1063
1064 static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
1065 PyObject *resultobj;
1066 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1067 bool result;
1068 PyObject * obj0 = 0 ;
1069 char *kwnames[] = {
1070 (char *) "self", NULL
1071 };
1072
1073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
1074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1076 {
1077 PyThreadState* __tstate = wxPyBeginAllowThreads();
1078 result = (bool)(arg1)->IsNull();
1079
1080 wxPyEndAllowThreads(__tstate);
1081 if (PyErr_Occurred()) SWIG_fail;
1082 }
1083 {
1084 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1085 }
1086 return resultobj;
1087 fail:
1088 return NULL;
1089 }
1090
1091
1092 static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) {
1093 PyObject *obj;
1094 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1095 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1096 Py_INCREF(obj);
1097 return Py_BuildValue((char *)"");
1098 }
1099 static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
1100 PyObject *resultobj;
1101 unsigned char arg1 = (unsigned char) 0 ;
1102 unsigned char arg2 = (unsigned char) 0 ;
1103 unsigned char arg3 = (unsigned char) 0 ;
1104 wxColour *result;
1105 PyObject * obj0 = 0 ;
1106 PyObject * obj1 = 0 ;
1107 PyObject * obj2 = 0 ;
1108 char *kwnames[] = {
1109 (char *) "red",(char *) "green",(char *) "blue", NULL
1110 };
1111
1112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1113 if (obj0) {
1114 arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0);
1115 if (PyErr_Occurred()) SWIG_fail;
1116 }
1117 if (obj1) {
1118 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1119 if (PyErr_Occurred()) SWIG_fail;
1120 }
1121 if (obj2) {
1122 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1123 if (PyErr_Occurred()) SWIG_fail;
1124 }
1125 {
1126 PyThreadState* __tstate = wxPyBeginAllowThreads();
1127 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1128
1129 wxPyEndAllowThreads(__tstate);
1130 if (PyErr_Occurred()) SWIG_fail;
1131 }
1132 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1133 return resultobj;
1134 fail:
1135 return NULL;
1136 }
1137
1138
1139 static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) {
1140 PyObject *resultobj;
1141 wxString *arg1 = 0 ;
1142 wxColour *result;
1143 bool temp1 = False ;
1144 PyObject * obj0 = 0 ;
1145 char *kwnames[] = {
1146 (char *) "colorName", NULL
1147 };
1148
1149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1150 {
1151 arg1 = wxString_in_helper(obj0);
1152 if (arg1 == NULL) SWIG_fail;
1153 temp1 = True;
1154 }
1155 {
1156 PyThreadState* __tstate = wxPyBeginAllowThreads();
1157 result = (wxColour *)new wxColour((wxString const &)*arg1);
1158
1159 wxPyEndAllowThreads(__tstate);
1160 if (PyErr_Occurred()) SWIG_fail;
1161 }
1162 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1163 {
1164 if (temp1)
1165 delete arg1;
1166 }
1167 return resultobj;
1168 fail:
1169 {
1170 if (temp1)
1171 delete arg1;
1172 }
1173 return NULL;
1174 }
1175
1176
1177 static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1178 PyObject *resultobj;
1179 unsigned long arg1 ;
1180 wxColour *result;
1181 PyObject * obj0 = 0 ;
1182 char *kwnames[] = {
1183 (char *) "colRGB", NULL
1184 };
1185
1186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1187 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1188 if (PyErr_Occurred()) SWIG_fail;
1189 {
1190 PyThreadState* __tstate = wxPyBeginAllowThreads();
1191 result = (wxColour *)new wxColour(arg1);
1192
1193 wxPyEndAllowThreads(__tstate);
1194 if (PyErr_Occurred()) SWIG_fail;
1195 }
1196 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1197 return resultobj;
1198 fail:
1199 return NULL;
1200 }
1201
1202
1203 static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
1204 PyObject *resultobj;
1205 wxColour *arg1 = (wxColour *) 0 ;
1206 PyObject * obj0 = 0 ;
1207 char *kwnames[] = {
1208 (char *) "self", NULL
1209 };
1210
1211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1214 {
1215 PyThreadState* __tstate = wxPyBeginAllowThreads();
1216 delete arg1;
1217
1218 wxPyEndAllowThreads(__tstate);
1219 if (PyErr_Occurred()) SWIG_fail;
1220 }
1221 Py_INCREF(Py_None); resultobj = Py_None;
1222 return resultobj;
1223 fail:
1224 return NULL;
1225 }
1226
1227
1228 static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) {
1229 PyObject *resultobj;
1230 wxColour *arg1 = (wxColour *) 0 ;
1231 unsigned char result;
1232 PyObject * obj0 = 0 ;
1233 char *kwnames[] = {
1234 (char *) "self", NULL
1235 };
1236
1237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1240 {
1241 PyThreadState* __tstate = wxPyBeginAllowThreads();
1242 result = (unsigned char)(arg1)->Red();
1243
1244 wxPyEndAllowThreads(__tstate);
1245 if (PyErr_Occurred()) SWIG_fail;
1246 }
1247 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1248 return resultobj;
1249 fail:
1250 return NULL;
1251 }
1252
1253
1254 static PyObject *_wrap_Colour_Green(PyObject *, PyObject *args, PyObject *kwargs) {
1255 PyObject *resultobj;
1256 wxColour *arg1 = (wxColour *) 0 ;
1257 unsigned char result;
1258 PyObject * obj0 = 0 ;
1259 char *kwnames[] = {
1260 (char *) "self", NULL
1261 };
1262
1263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1266 {
1267 PyThreadState* __tstate = wxPyBeginAllowThreads();
1268 result = (unsigned char)(arg1)->Green();
1269
1270 wxPyEndAllowThreads(__tstate);
1271 if (PyErr_Occurred()) SWIG_fail;
1272 }
1273 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1274 return resultobj;
1275 fail:
1276 return NULL;
1277 }
1278
1279
1280 static PyObject *_wrap_Colour_Blue(PyObject *, PyObject *args, PyObject *kwargs) {
1281 PyObject *resultobj;
1282 wxColour *arg1 = (wxColour *) 0 ;
1283 unsigned char result;
1284 PyObject * obj0 = 0 ;
1285 char *kwnames[] = {
1286 (char *) "self", NULL
1287 };
1288
1289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1292 {
1293 PyThreadState* __tstate = wxPyBeginAllowThreads();
1294 result = (unsigned char)(arg1)->Blue();
1295
1296 wxPyEndAllowThreads(__tstate);
1297 if (PyErr_Occurred()) SWIG_fail;
1298 }
1299 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1300 return resultobj;
1301 fail:
1302 return NULL;
1303 }
1304
1305
1306 static PyObject *_wrap_Colour_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
1307 PyObject *resultobj;
1308 wxColour *arg1 = (wxColour *) 0 ;
1309 bool result;
1310 PyObject * obj0 = 0 ;
1311 char *kwnames[] = {
1312 (char *) "self", NULL
1313 };
1314
1315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1318 {
1319 PyThreadState* __tstate = wxPyBeginAllowThreads();
1320 result = (bool)(arg1)->Ok();
1321
1322 wxPyEndAllowThreads(__tstate);
1323 if (PyErr_Occurred()) SWIG_fail;
1324 }
1325 {
1326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1327 }
1328 return resultobj;
1329 fail:
1330 return NULL;
1331 }
1332
1333
1334 static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) {
1335 PyObject *resultobj;
1336 wxColour *arg1 = (wxColour *) 0 ;
1337 unsigned char arg2 ;
1338 unsigned char arg3 ;
1339 unsigned char arg4 ;
1340 PyObject * obj0 = 0 ;
1341 PyObject * obj1 = 0 ;
1342 PyObject * obj2 = 0 ;
1343 PyObject * obj3 = 0 ;
1344 char *kwnames[] = {
1345 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1346 };
1347
1348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1351 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1352 if (PyErr_Occurred()) SWIG_fail;
1353 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1354 if (PyErr_Occurred()) SWIG_fail;
1355 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
1356 if (PyErr_Occurred()) SWIG_fail;
1357 {
1358 PyThreadState* __tstate = wxPyBeginAllowThreads();
1359 (arg1)->Set(arg2,arg3,arg4);
1360
1361 wxPyEndAllowThreads(__tstate);
1362 if (PyErr_Occurred()) SWIG_fail;
1363 }
1364 Py_INCREF(Py_None); resultobj = Py_None;
1365 return resultobj;
1366 fail:
1367 return NULL;
1368 }
1369
1370
1371 static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1372 PyObject *resultobj;
1373 wxColour *arg1 = (wxColour *) 0 ;
1374 unsigned long arg2 ;
1375 PyObject * obj0 = 0 ;
1376 PyObject * obj1 = 0 ;
1377 char *kwnames[] = {
1378 (char *) "self",(char *) "colRGB", NULL
1379 };
1380
1381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1384 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1385 if (PyErr_Occurred()) SWIG_fail;
1386 {
1387 PyThreadState* __tstate = wxPyBeginAllowThreads();
1388 (arg1)->Set(arg2);
1389
1390 wxPyEndAllowThreads(__tstate);
1391 if (PyErr_Occurred()) SWIG_fail;
1392 }
1393 Py_INCREF(Py_None); resultobj = Py_None;
1394 return resultobj;
1395 fail:
1396 return NULL;
1397 }
1398
1399
1400 static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) {
1401 PyObject *resultobj;
1402 wxColour *arg1 = (wxColour *) 0 ;
1403 wxString *arg2 = 0 ;
1404 bool temp2 = False ;
1405 PyObject * obj0 = 0 ;
1406 PyObject * obj1 = 0 ;
1407 char *kwnames[] = {
1408 (char *) "self",(char *) "colourName", NULL
1409 };
1410
1411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1414 {
1415 arg2 = wxString_in_helper(obj1);
1416 if (arg2 == NULL) SWIG_fail;
1417 temp2 = True;
1418 }
1419 {
1420 PyThreadState* __tstate = wxPyBeginAllowThreads();
1421 (arg1)->InitFromName((wxString const &)*arg2);
1422
1423 wxPyEndAllowThreads(__tstate);
1424 if (PyErr_Occurred()) SWIG_fail;
1425 }
1426 Py_INCREF(Py_None); resultobj = Py_None;
1427 {
1428 if (temp2)
1429 delete arg2;
1430 }
1431 return resultobj;
1432 fail:
1433 {
1434 if (temp2)
1435 delete arg2;
1436 }
1437 return NULL;
1438 }
1439
1440
1441 static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
1442 PyObject *resultobj;
1443 wxColour *arg1 = (wxColour *) 0 ;
1444 long result;
1445 PyObject * obj0 = 0 ;
1446 char *kwnames[] = {
1447 (char *) "self", NULL
1448 };
1449
1450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1453 {
1454 PyThreadState* __tstate = wxPyBeginAllowThreads();
1455 result = (long)((wxColour const *)arg1)->GetPixel();
1456
1457 wxPyEndAllowThreads(__tstate);
1458 if (PyErr_Occurred()) SWIG_fail;
1459 }
1460 resultobj = SWIG_FromLong((long)result);
1461 return resultobj;
1462 fail:
1463 return NULL;
1464 }
1465
1466
1467 static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
1468 PyObject *resultobj;
1469 wxColour *arg1 = (wxColour *) 0 ;
1470 wxColour *arg2 = 0 ;
1471 bool result;
1472 wxColour temp2 ;
1473 PyObject * obj0 = 0 ;
1474 PyObject * obj1 = 0 ;
1475 char *kwnames[] = {
1476 (char *) "self",(char *) "colour", NULL
1477 };
1478
1479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1482 {
1483 arg2 = &temp2;
1484 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1485 }
1486 {
1487 PyThreadState* __tstate = wxPyBeginAllowThreads();
1488 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1489
1490 wxPyEndAllowThreads(__tstate);
1491 if (PyErr_Occurred()) SWIG_fail;
1492 }
1493 {
1494 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1495 }
1496 return resultobj;
1497 fail:
1498 return NULL;
1499 }
1500
1501
1502 static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
1503 PyObject *resultobj;
1504 wxColour *arg1 = (wxColour *) 0 ;
1505 wxColour *arg2 = 0 ;
1506 bool result;
1507 wxColour temp2 ;
1508 PyObject * obj0 = 0 ;
1509 PyObject * obj1 = 0 ;
1510 char *kwnames[] = {
1511 (char *) "self",(char *) "colour", NULL
1512 };
1513
1514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1517 {
1518 arg2 = &temp2;
1519 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1520 }
1521 {
1522 PyThreadState* __tstate = wxPyBeginAllowThreads();
1523 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1524
1525 wxPyEndAllowThreads(__tstate);
1526 if (PyErr_Occurred()) SWIG_fail;
1527 }
1528 {
1529 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1530 }
1531 return resultobj;
1532 fail:
1533 return NULL;
1534 }
1535
1536
1537 static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) {
1538 PyObject *resultobj;
1539 wxColour *arg1 = (wxColour *) 0 ;
1540 PyObject *result;
1541 PyObject * obj0 = 0 ;
1542 char *kwnames[] = {
1543 (char *) "self", NULL
1544 };
1545
1546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1549 {
1550 PyThreadState* __tstate = wxPyBeginAllowThreads();
1551 result = (PyObject *)wxColour_Get(arg1);
1552
1553 wxPyEndAllowThreads(__tstate);
1554 if (PyErr_Occurred()) SWIG_fail;
1555 }
1556 resultobj = result;
1557 return resultobj;
1558 fail:
1559 return NULL;
1560 }
1561
1562
1563 static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1564 PyObject *resultobj;
1565 wxColour *arg1 = (wxColour *) 0 ;
1566 unsigned long result;
1567 PyObject * obj0 = 0 ;
1568 char *kwnames[] = {
1569 (char *) "self", NULL
1570 };
1571
1572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1575 {
1576 PyThreadState* __tstate = wxPyBeginAllowThreads();
1577 result = (unsigned long)wxColour_GetRGB(arg1);
1578
1579 wxPyEndAllowThreads(__tstate);
1580 if (PyErr_Occurred()) SWIG_fail;
1581 }
1582 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
1583 return resultobj;
1584 fail:
1585 return NULL;
1586 }
1587
1588
1589 static PyObject * Colour_swigregister(PyObject *, PyObject *args) {
1590 PyObject *obj;
1591 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1592 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1593 Py_INCREF(obj);
1594 return Py_BuildValue((char *)"");
1595 }
1596 static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
1597 PyObject *resultobj;
1598 int arg1 ;
1599 unsigned char *arg2 = (unsigned char *) 0 ;
1600 unsigned char *arg3 = (unsigned char *) 0 ;
1601 unsigned char *arg4 = (unsigned char *) 0 ;
1602 wxPalette *result;
1603 PyObject * obj0 = 0 ;
1604 PyObject * obj1 = 0 ;
1605 PyObject * obj2 = 0 ;
1606 PyObject * obj3 = 0 ;
1607 char *kwnames[] = {
1608 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1609 };
1610
1611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1612 arg1 = (int) SWIG_AsInt(obj0);
1613 if (PyErr_Occurred()) SWIG_fail;
1614 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1616 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1618 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1620 {
1621 PyThreadState* __tstate = wxPyBeginAllowThreads();
1622 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1623
1624 wxPyEndAllowThreads(__tstate);
1625 if (PyErr_Occurred()) SWIG_fail;
1626 }
1627 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1628 return resultobj;
1629 fail:
1630 return NULL;
1631 }
1632
1633
1634 static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
1635 PyObject *resultobj;
1636 wxPalette *arg1 = (wxPalette *) 0 ;
1637 PyObject * obj0 = 0 ;
1638 char *kwnames[] = {
1639 (char *) "self", NULL
1640 };
1641
1642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1645 {
1646 PyThreadState* __tstate = wxPyBeginAllowThreads();
1647 delete arg1;
1648
1649 wxPyEndAllowThreads(__tstate);
1650 if (PyErr_Occurred()) SWIG_fail;
1651 }
1652 Py_INCREF(Py_None); resultobj = Py_None;
1653 return resultobj;
1654 fail:
1655 return NULL;
1656 }
1657
1658
1659 static PyObject *_wrap_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
1660 PyObject *resultobj;
1661 wxPalette *arg1 = (wxPalette *) 0 ;
1662 byte arg2 ;
1663 byte arg3 ;
1664 byte arg4 ;
1665 int result;
1666 PyObject * obj0 = 0 ;
1667 PyObject * obj1 = 0 ;
1668 PyObject * obj2 = 0 ;
1669 PyObject * obj3 = 0 ;
1670 char *kwnames[] = {
1671 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1672 };
1673
1674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1677 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1678 if (PyErr_Occurred()) SWIG_fail;
1679 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1680 if (PyErr_Occurred()) SWIG_fail;
1681 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1682 if (PyErr_Occurred()) SWIG_fail;
1683 {
1684 PyThreadState* __tstate = wxPyBeginAllowThreads();
1685 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1686
1687 wxPyEndAllowThreads(__tstate);
1688 if (PyErr_Occurred()) SWIG_fail;
1689 }
1690 resultobj = SWIG_FromInt((int)result);
1691 return resultobj;
1692 fail:
1693 return NULL;
1694 }
1695
1696
1697 static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1698 PyObject *resultobj;
1699 wxPalette *arg1 = (wxPalette *) 0 ;
1700 int arg2 ;
1701 byte *arg3 = (byte *) 0 ;
1702 byte *arg4 = (byte *) 0 ;
1703 byte *arg5 = (byte *) 0 ;
1704 bool result;
1705 byte temp3 ;
1706 byte temp4 ;
1707 byte temp5 ;
1708 PyObject * obj0 = 0 ;
1709 PyObject * obj1 = 0 ;
1710 char *kwnames[] = {
1711 (char *) "self",(char *) "pixel", NULL
1712 };
1713
1714 arg3 = &temp3;
1715 arg4 = &temp4;
1716 arg5 = &temp5;
1717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1720 arg2 = (int) SWIG_AsInt(obj1);
1721 if (PyErr_Occurred()) SWIG_fail;
1722 {
1723 PyThreadState* __tstate = wxPyBeginAllowThreads();
1724 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1725
1726 wxPyEndAllowThreads(__tstate);
1727 if (PyErr_Occurred()) SWIG_fail;
1728 }
1729 {
1730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1731 }
1732 {
1733 PyObject *o = PyInt_FromLong((long) (*arg3));
1734 resultobj = t_output_helper(resultobj,o);
1735 }
1736 {
1737 PyObject *o = PyInt_FromLong((long) (*arg4));
1738 resultobj = t_output_helper(resultobj,o);
1739 }
1740 {
1741 PyObject *o = PyInt_FromLong((long) (*arg5));
1742 resultobj = t_output_helper(resultobj,o);
1743 }
1744 return resultobj;
1745 fail:
1746 return NULL;
1747 }
1748
1749
1750 static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
1751 PyObject *resultobj;
1752 wxPalette *arg1 = (wxPalette *) 0 ;
1753 bool result;
1754 PyObject * obj0 = 0 ;
1755 char *kwnames[] = {
1756 (char *) "self", NULL
1757 };
1758
1759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1762 {
1763 PyThreadState* __tstate = wxPyBeginAllowThreads();
1764 result = (bool)(arg1)->Ok();
1765
1766 wxPyEndAllowThreads(__tstate);
1767 if (PyErr_Occurred()) SWIG_fail;
1768 }
1769 {
1770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1771 }
1772 return resultobj;
1773 fail:
1774 return NULL;
1775 }
1776
1777
1778 static PyObject * Palette_swigregister(PyObject *, PyObject *args) {
1779 PyObject *obj;
1780 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1781 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1782 Py_INCREF(obj);
1783 return Py_BuildValue((char *)"");
1784 }
1785 static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
1786 PyObject *resultobj;
1787 wxColour *arg1 = 0 ;
1788 int arg2 = (int) 1 ;
1789 int arg3 = (int) wxSOLID ;
1790 wxPen *result;
1791 wxColour temp1 ;
1792 PyObject * obj0 = 0 ;
1793 PyObject * obj1 = 0 ;
1794 PyObject * obj2 = 0 ;
1795 char *kwnames[] = {
1796 (char *) "colour",(char *) "width",(char *) "style", NULL
1797 };
1798
1799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1800 {
1801 arg1 = &temp1;
1802 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1803 }
1804 if (obj1) {
1805 arg2 = (int) SWIG_AsInt(obj1);
1806 if (PyErr_Occurred()) SWIG_fail;
1807 }
1808 if (obj2) {
1809 arg3 = (int) SWIG_AsInt(obj2);
1810 if (PyErr_Occurred()) SWIG_fail;
1811 }
1812 {
1813 PyThreadState* __tstate = wxPyBeginAllowThreads();
1814 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1815
1816 wxPyEndAllowThreads(__tstate);
1817 if (PyErr_Occurred()) SWIG_fail;
1818 }
1819 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1820 return resultobj;
1821 fail:
1822 return NULL;
1823 }
1824
1825
1826 static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
1827 PyObject *resultobj;
1828 wxPen *arg1 = (wxPen *) 0 ;
1829 PyObject * obj0 = 0 ;
1830 char *kwnames[] = {
1831 (char *) "self", NULL
1832 };
1833
1834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1837 {
1838 PyThreadState* __tstate = wxPyBeginAllowThreads();
1839 delete arg1;
1840
1841 wxPyEndAllowThreads(__tstate);
1842 if (PyErr_Occurred()) SWIG_fail;
1843 }
1844 Py_INCREF(Py_None); resultobj = Py_None;
1845 return resultobj;
1846 fail:
1847 return NULL;
1848 }
1849
1850
1851 static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) {
1852 PyObject *resultobj;
1853 wxPen *arg1 = (wxPen *) 0 ;
1854 int result;
1855 PyObject * obj0 = 0 ;
1856 char *kwnames[] = {
1857 (char *) "self", NULL
1858 };
1859
1860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1863 {
1864 PyThreadState* __tstate = wxPyBeginAllowThreads();
1865 result = (int)(arg1)->GetCap();
1866
1867 wxPyEndAllowThreads(__tstate);
1868 if (PyErr_Occurred()) SWIG_fail;
1869 }
1870 resultobj = SWIG_FromInt((int)result);
1871 return resultobj;
1872 fail:
1873 return NULL;
1874 }
1875
1876
1877 static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
1878 PyObject *resultobj;
1879 wxPen *arg1 = (wxPen *) 0 ;
1880 wxColour result;
1881 PyObject * obj0 = 0 ;
1882 char *kwnames[] = {
1883 (char *) "self", NULL
1884 };
1885
1886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1889 {
1890 PyThreadState* __tstate = wxPyBeginAllowThreads();
1891 result = (arg1)->GetColour();
1892
1893 wxPyEndAllowThreads(__tstate);
1894 if (PyErr_Occurred()) SWIG_fail;
1895 }
1896 {
1897 wxColour * resultptr;
1898 resultptr = new wxColour((wxColour &) result);
1899 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1900 }
1901 return resultobj;
1902 fail:
1903 return NULL;
1904 }
1905
1906
1907 static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
1908 PyObject *resultobj;
1909 wxPen *arg1 = (wxPen *) 0 ;
1910 int result;
1911 PyObject * obj0 = 0 ;
1912 char *kwnames[] = {
1913 (char *) "self", NULL
1914 };
1915
1916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1919 {
1920 PyThreadState* __tstate = wxPyBeginAllowThreads();
1921 result = (int)(arg1)->GetJoin();
1922
1923 wxPyEndAllowThreads(__tstate);
1924 if (PyErr_Occurred()) SWIG_fail;
1925 }
1926 resultobj = SWIG_FromInt((int)result);
1927 return resultobj;
1928 fail:
1929 return NULL;
1930 }
1931
1932
1933 static PyObject *_wrap_Pen_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
1934 PyObject *resultobj;
1935 wxPen *arg1 = (wxPen *) 0 ;
1936 int result;
1937 PyObject * obj0 = 0 ;
1938 char *kwnames[] = {
1939 (char *) "self", NULL
1940 };
1941
1942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1945 {
1946 PyThreadState* __tstate = wxPyBeginAllowThreads();
1947 result = (int)(arg1)->GetStyle();
1948
1949 wxPyEndAllowThreads(__tstate);
1950 if (PyErr_Occurred()) SWIG_fail;
1951 }
1952 resultobj = SWIG_FromInt((int)result);
1953 return resultobj;
1954 fail:
1955 return NULL;
1956 }
1957
1958
1959 static PyObject *_wrap_Pen_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
1960 PyObject *resultobj;
1961 wxPen *arg1 = (wxPen *) 0 ;
1962 int result;
1963 PyObject * obj0 = 0 ;
1964 char *kwnames[] = {
1965 (char *) "self", NULL
1966 };
1967
1968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1971 {
1972 PyThreadState* __tstate = wxPyBeginAllowThreads();
1973 result = (int)(arg1)->GetWidth();
1974
1975 wxPyEndAllowThreads(__tstate);
1976 if (PyErr_Occurred()) SWIG_fail;
1977 }
1978 resultobj = SWIG_FromInt((int)result);
1979 return resultobj;
1980 fail:
1981 return NULL;
1982 }
1983
1984
1985 static PyObject *_wrap_Pen_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
1986 PyObject *resultobj;
1987 wxPen *arg1 = (wxPen *) 0 ;
1988 bool result;
1989 PyObject * obj0 = 0 ;
1990 char *kwnames[] = {
1991 (char *) "self", NULL
1992 };
1993
1994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1997 {
1998 PyThreadState* __tstate = wxPyBeginAllowThreads();
1999 result = (bool)(arg1)->Ok();
2000
2001 wxPyEndAllowThreads(__tstate);
2002 if (PyErr_Occurred()) SWIG_fail;
2003 }
2004 {
2005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2006 }
2007 return resultobj;
2008 fail:
2009 return NULL;
2010 }
2011
2012
2013 static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) {
2014 PyObject *resultobj;
2015 wxPen *arg1 = (wxPen *) 0 ;
2016 int arg2 ;
2017 PyObject * obj0 = 0 ;
2018 PyObject * obj1 = 0 ;
2019 char *kwnames[] = {
2020 (char *) "self",(char *) "cap_style", NULL
2021 };
2022
2023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
2024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2026 arg2 = (int) SWIG_AsInt(obj1);
2027 if (PyErr_Occurred()) SWIG_fail;
2028 {
2029 PyThreadState* __tstate = wxPyBeginAllowThreads();
2030 (arg1)->SetCap(arg2);
2031
2032 wxPyEndAllowThreads(__tstate);
2033 if (PyErr_Occurred()) SWIG_fail;
2034 }
2035 Py_INCREF(Py_None); resultobj = Py_None;
2036 return resultobj;
2037 fail:
2038 return NULL;
2039 }
2040
2041
2042 static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
2043 PyObject *resultobj;
2044 wxPen *arg1 = (wxPen *) 0 ;
2045 wxColour *arg2 = 0 ;
2046 wxColour temp2 ;
2047 PyObject * obj0 = 0 ;
2048 PyObject * obj1 = 0 ;
2049 char *kwnames[] = {
2050 (char *) "self",(char *) "colour", NULL
2051 };
2052
2053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
2054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2056 {
2057 arg2 = &temp2;
2058 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2059 }
2060 {
2061 PyThreadState* __tstate = wxPyBeginAllowThreads();
2062 (arg1)->SetColour(*arg2);
2063
2064 wxPyEndAllowThreads(__tstate);
2065 if (PyErr_Occurred()) SWIG_fail;
2066 }
2067 Py_INCREF(Py_None); resultobj = Py_None;
2068 return resultobj;
2069 fail:
2070 return NULL;
2071 }
2072
2073
2074 static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
2075 PyObject *resultobj;
2076 wxPen *arg1 = (wxPen *) 0 ;
2077 int arg2 ;
2078 PyObject * obj0 = 0 ;
2079 PyObject * obj1 = 0 ;
2080 char *kwnames[] = {
2081 (char *) "self",(char *) "join_style", NULL
2082 };
2083
2084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2087 arg2 = (int) SWIG_AsInt(obj1);
2088 if (PyErr_Occurred()) SWIG_fail;
2089 {
2090 PyThreadState* __tstate = wxPyBeginAllowThreads();
2091 (arg1)->SetJoin(arg2);
2092
2093 wxPyEndAllowThreads(__tstate);
2094 if (PyErr_Occurred()) SWIG_fail;
2095 }
2096 Py_INCREF(Py_None); resultobj = Py_None;
2097 return resultobj;
2098 fail:
2099 return NULL;
2100 }
2101
2102
2103 static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2104 PyObject *resultobj;
2105 wxPen *arg1 = (wxPen *) 0 ;
2106 int arg2 ;
2107 PyObject * obj0 = 0 ;
2108 PyObject * obj1 = 0 ;
2109 char *kwnames[] = {
2110 (char *) "self",(char *) "style", NULL
2111 };
2112
2113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2116 arg2 = (int) SWIG_AsInt(obj1);
2117 if (PyErr_Occurred()) SWIG_fail;
2118 {
2119 PyThreadState* __tstate = wxPyBeginAllowThreads();
2120 (arg1)->SetStyle(arg2);
2121
2122 wxPyEndAllowThreads(__tstate);
2123 if (PyErr_Occurred()) SWIG_fail;
2124 }
2125 Py_INCREF(Py_None); resultobj = Py_None;
2126 return resultobj;
2127 fail:
2128 return NULL;
2129 }
2130
2131
2132 static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
2133 PyObject *resultobj;
2134 wxPen *arg1 = (wxPen *) 0 ;
2135 int arg2 ;
2136 PyObject * obj0 = 0 ;
2137 PyObject * obj1 = 0 ;
2138 char *kwnames[] = {
2139 (char *) "self",(char *) "width", NULL
2140 };
2141
2142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2145 arg2 = (int) SWIG_AsInt(obj1);
2146 if (PyErr_Occurred()) SWIG_fail;
2147 {
2148 PyThreadState* __tstate = wxPyBeginAllowThreads();
2149 (arg1)->SetWidth(arg2);
2150
2151 wxPyEndAllowThreads(__tstate);
2152 if (PyErr_Occurred()) SWIG_fail;
2153 }
2154 Py_INCREF(Py_None); resultobj = Py_None;
2155 return resultobj;
2156 fail:
2157 return NULL;
2158 }
2159
2160
2161 static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
2162 PyObject *resultobj;
2163 wxPen *arg1 = (wxPen *) 0 ;
2164 int arg2 ;
2165 wxDash *arg3 = (wxDash *) 0 ;
2166 PyObject * obj0 = 0 ;
2167 PyObject * obj1 = 0 ;
2168 char *kwnames[] = {
2169 (char *) "self",(char *) "dashes", NULL
2170 };
2171
2172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2175 {
2176 arg2 = PyList_Size(obj1);
2177 arg3 = (wxDash*)byte_LIST_helper(obj1);
2178 if (arg3 == NULL) SWIG_fail;
2179 }
2180 {
2181 PyThreadState* __tstate = wxPyBeginAllowThreads();
2182 (arg1)->SetDashes(arg2,arg3);
2183
2184 wxPyEndAllowThreads(__tstate);
2185 if (PyErr_Occurred()) SWIG_fail;
2186 }
2187 Py_INCREF(Py_None); resultobj = Py_None;
2188 {
2189 if (arg3) delete [] arg3;
2190 }
2191 return resultobj;
2192 fail:
2193 {
2194 if (arg3) delete [] arg3;
2195 }
2196 return NULL;
2197 }
2198
2199
2200 static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
2201 PyObject *resultobj;
2202 wxPen *arg1 = (wxPen *) 0 ;
2203 PyObject *result;
2204 PyObject * obj0 = 0 ;
2205 char *kwnames[] = {
2206 (char *) "self", NULL
2207 };
2208
2209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2212 {
2213 PyThreadState* __tstate = wxPyBeginAllowThreads();
2214 result = (PyObject *)wxPen_GetDashes(arg1);
2215
2216 wxPyEndAllowThreads(__tstate);
2217 if (PyErr_Occurred()) SWIG_fail;
2218 }
2219 resultobj = result;
2220 return resultobj;
2221 fail:
2222 return NULL;
2223 }
2224
2225
2226 static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
2227 PyObject *resultobj;
2228 wxPen *arg1 = (wxPen *) 0 ;
2229 wxPen *arg2 = (wxPen *) 0 ;
2230 bool result;
2231 PyObject * obj0 = 0 ;
2232 PyObject * obj1 = 0 ;
2233 char *kwnames[] = {
2234 (char *) "self",(char *) "other", NULL
2235 };
2236
2237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2240 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2242 {
2243 PyThreadState* __tstate = wxPyBeginAllowThreads();
2244 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2245
2246 wxPyEndAllowThreads(__tstate);
2247 if (PyErr_Occurred()) SWIG_fail;
2248 }
2249 {
2250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2251 }
2252 return resultobj;
2253 fail:
2254 return NULL;
2255 }
2256
2257
2258 static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
2259 PyObject *resultobj;
2260 wxPen *arg1 = (wxPen *) 0 ;
2261 wxPen *arg2 = (wxPen *) 0 ;
2262 bool result;
2263 PyObject * obj0 = 0 ;
2264 PyObject * obj1 = 0 ;
2265 char *kwnames[] = {
2266 (char *) "self",(char *) "other", NULL
2267 };
2268
2269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2272 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2274 {
2275 PyThreadState* __tstate = wxPyBeginAllowThreads();
2276 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2277
2278 wxPyEndAllowThreads(__tstate);
2279 if (PyErr_Occurred()) SWIG_fail;
2280 }
2281 {
2282 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2283 }
2284 return resultobj;
2285 fail:
2286 return NULL;
2287 }
2288
2289
2290 static PyObject * Pen_swigregister(PyObject *, PyObject *args) {
2291 PyObject *obj;
2292 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2293 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2294 Py_INCREF(obj);
2295 return Py_BuildValue((char *)"");
2296 }
2297 static PyObject *_wrap_new_PyPen(PyObject *, PyObject *args, PyObject *kwargs) {
2298 PyObject *resultobj;
2299 wxColour *arg1 = 0 ;
2300 int arg2 = (int) 1 ;
2301 int arg3 = (int) wxSOLID ;
2302 wxPyPen *result;
2303 wxColour temp1 ;
2304 PyObject * obj0 = 0 ;
2305 PyObject * obj1 = 0 ;
2306 PyObject * obj2 = 0 ;
2307 char *kwnames[] = {
2308 (char *) "colour",(char *) "width",(char *) "style", NULL
2309 };
2310
2311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail;
2312 {
2313 arg1 = &temp1;
2314 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2315 }
2316 if (obj1) {
2317 arg2 = (int) SWIG_AsInt(obj1);
2318 if (PyErr_Occurred()) SWIG_fail;
2319 }
2320 if (obj2) {
2321 arg3 = (int) SWIG_AsInt(obj2);
2322 if (PyErr_Occurred()) SWIG_fail;
2323 }
2324 {
2325 PyThreadState* __tstate = wxPyBeginAllowThreads();
2326 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
2327
2328 wxPyEndAllowThreads(__tstate);
2329 if (PyErr_Occurred()) SWIG_fail;
2330 }
2331 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPen, 1);
2332 return resultobj;
2333 fail:
2334 return NULL;
2335 }
2336
2337
2338 static PyObject *_wrap_delete_PyPen(PyObject *, PyObject *args, PyObject *kwargs) {
2339 PyObject *resultobj;
2340 wxPyPen *arg1 = (wxPyPen *) 0 ;
2341 PyObject * obj0 = 0 ;
2342 char *kwnames[] = {
2343 (char *) "self", NULL
2344 };
2345
2346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
2347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2349 {
2350 PyThreadState* __tstate = wxPyBeginAllowThreads();
2351 delete arg1;
2352
2353 wxPyEndAllowThreads(__tstate);
2354 if (PyErr_Occurred()) SWIG_fail;
2355 }
2356 Py_INCREF(Py_None); resultobj = Py_None;
2357 return resultobj;
2358 fail:
2359 return NULL;
2360 }
2361
2362
2363 static PyObject *_wrap_PyPen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
2364 PyObject *resultobj;
2365 wxPyPen *arg1 = (wxPyPen *) 0 ;
2366 int arg2 ;
2367 wxDash *arg3 = (wxDash *) 0 ;
2368 PyObject * obj0 = 0 ;
2369 PyObject * obj1 = 0 ;
2370 char *kwnames[] = {
2371 (char *) "self",(char *) "dashes", NULL
2372 };
2373
2374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2377 {
2378 arg2 = PyList_Size(obj1);
2379 arg3 = (wxDash*)byte_LIST_helper(obj1);
2380 if (arg3 == NULL) SWIG_fail;
2381 }
2382 {
2383 PyThreadState* __tstate = wxPyBeginAllowThreads();
2384 (arg1)->SetDashes(arg2,arg3);
2385
2386 wxPyEndAllowThreads(__tstate);
2387 if (PyErr_Occurred()) SWIG_fail;
2388 }
2389 Py_INCREF(Py_None); resultobj = Py_None;
2390 {
2391 if (arg3) delete [] arg3;
2392 }
2393 return resultobj;
2394 fail:
2395 {
2396 if (arg3) delete [] arg3;
2397 }
2398 return NULL;
2399 }
2400
2401
2402 static PyObject * PyPen_swigregister(PyObject *, PyObject *args) {
2403 PyObject *obj;
2404 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2405 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
2406 Py_INCREF(obj);
2407 return Py_BuildValue((char *)"");
2408 }
2409 static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
2410 PyObject *resultobj;
2411 wxColour *arg1 = 0 ;
2412 int arg2 = (int) wxSOLID ;
2413 wxBrush *result;
2414 wxColour temp1 ;
2415 PyObject * obj0 = 0 ;
2416 PyObject * obj1 = 0 ;
2417 char *kwnames[] = {
2418 (char *) "colour",(char *) "style", NULL
2419 };
2420
2421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2422 {
2423 arg1 = &temp1;
2424 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2425 }
2426 if (obj1) {
2427 arg2 = (int) SWIG_AsInt(obj1);
2428 if (PyErr_Occurred()) SWIG_fail;
2429 }
2430 {
2431 PyThreadState* __tstate = wxPyBeginAllowThreads();
2432 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2433
2434 wxPyEndAllowThreads(__tstate);
2435 if (PyErr_Occurred()) SWIG_fail;
2436 }
2437 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2438 return resultobj;
2439 fail:
2440 return NULL;
2441 }
2442
2443
2444 static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
2445 PyObject *resultobj;
2446 wxBrush *arg1 = (wxBrush *) 0 ;
2447 PyObject * obj0 = 0 ;
2448 char *kwnames[] = {
2449 (char *) "self", NULL
2450 };
2451
2452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2455 {
2456 PyThreadState* __tstate = wxPyBeginAllowThreads();
2457 delete arg1;
2458
2459 wxPyEndAllowThreads(__tstate);
2460 if (PyErr_Occurred()) SWIG_fail;
2461 }
2462 Py_INCREF(Py_None); resultobj = Py_None;
2463 return resultobj;
2464 fail:
2465 return NULL;
2466 }
2467
2468
2469 static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
2470 PyObject *resultobj;
2471 wxBrush *arg1 = (wxBrush *) 0 ;
2472 wxColour *arg2 = 0 ;
2473 wxColour temp2 ;
2474 PyObject * obj0 = 0 ;
2475 PyObject * obj1 = 0 ;
2476 char *kwnames[] = {
2477 (char *) "self",(char *) "col", NULL
2478 };
2479
2480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2483 {
2484 arg2 = &temp2;
2485 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2486 }
2487 {
2488 PyThreadState* __tstate = wxPyBeginAllowThreads();
2489 (arg1)->SetColour((wxColour const &)*arg2);
2490
2491 wxPyEndAllowThreads(__tstate);
2492 if (PyErr_Occurred()) SWIG_fail;
2493 }
2494 Py_INCREF(Py_None); resultobj = Py_None;
2495 return resultobj;
2496 fail:
2497 return NULL;
2498 }
2499
2500
2501 static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2502 PyObject *resultobj;
2503 wxBrush *arg1 = (wxBrush *) 0 ;
2504 int arg2 ;
2505 PyObject * obj0 = 0 ;
2506 PyObject * obj1 = 0 ;
2507 char *kwnames[] = {
2508 (char *) "self",(char *) "style", NULL
2509 };
2510
2511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2514 arg2 = (int) SWIG_AsInt(obj1);
2515 if (PyErr_Occurred()) SWIG_fail;
2516 {
2517 PyThreadState* __tstate = wxPyBeginAllowThreads();
2518 (arg1)->SetStyle(arg2);
2519
2520 wxPyEndAllowThreads(__tstate);
2521 if (PyErr_Occurred()) SWIG_fail;
2522 }
2523 Py_INCREF(Py_None); resultobj = Py_None;
2524 return resultobj;
2525 fail:
2526 return NULL;
2527 }
2528
2529
2530 static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
2531 PyObject *resultobj;
2532 wxBrush *arg1 = (wxBrush *) 0 ;
2533 wxBitmap *arg2 = 0 ;
2534 PyObject * obj0 = 0 ;
2535 PyObject * obj1 = 0 ;
2536 char *kwnames[] = {
2537 (char *) "self",(char *) "stipple", NULL
2538 };
2539
2540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2543 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2544 SWIG_POINTER_EXCEPTION | 0)) == -1)
2545 SWIG_fail;
2546 if (arg2 == NULL) {
2547 PyErr_SetString(PyExc_TypeError,"null reference");
2548 SWIG_fail;
2549 }
2550 {
2551 PyThreadState* __tstate = wxPyBeginAllowThreads();
2552 (arg1)->SetStipple((wxBitmap const &)*arg2);
2553
2554 wxPyEndAllowThreads(__tstate);
2555 if (PyErr_Occurred()) SWIG_fail;
2556 }
2557 Py_INCREF(Py_None); resultobj = Py_None;
2558 return resultobj;
2559 fail:
2560 return NULL;
2561 }
2562
2563
2564 static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
2565 PyObject *resultobj;
2566 wxBrush *arg1 = (wxBrush *) 0 ;
2567 wxColour result;
2568 PyObject * obj0 = 0 ;
2569 char *kwnames[] = {
2570 (char *) "self", NULL
2571 };
2572
2573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2576 {
2577 PyThreadState* __tstate = wxPyBeginAllowThreads();
2578 result = ((wxBrush const *)arg1)->GetColour();
2579
2580 wxPyEndAllowThreads(__tstate);
2581 if (PyErr_Occurred()) SWIG_fail;
2582 }
2583 {
2584 wxColour * resultptr;
2585 resultptr = new wxColour((wxColour &) result);
2586 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2587 }
2588 return resultobj;
2589 fail:
2590 return NULL;
2591 }
2592
2593
2594 static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2595 PyObject *resultobj;
2596 wxBrush *arg1 = (wxBrush *) 0 ;
2597 int result;
2598 PyObject * obj0 = 0 ;
2599 char *kwnames[] = {
2600 (char *) "self", NULL
2601 };
2602
2603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2606 {
2607 PyThreadState* __tstate = wxPyBeginAllowThreads();
2608 result = (int)((wxBrush const *)arg1)->GetStyle();
2609
2610 wxPyEndAllowThreads(__tstate);
2611 if (PyErr_Occurred()) SWIG_fail;
2612 }
2613 resultobj = SWIG_FromInt((int)result);
2614 return resultobj;
2615 fail:
2616 return NULL;
2617 }
2618
2619
2620 static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
2621 PyObject *resultobj;
2622 wxBrush *arg1 = (wxBrush *) 0 ;
2623 wxBitmap *result;
2624 PyObject * obj0 = 0 ;
2625 char *kwnames[] = {
2626 (char *) "self", NULL
2627 };
2628
2629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2632 {
2633 PyThreadState* __tstate = wxPyBeginAllowThreads();
2634 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2635
2636 wxPyEndAllowThreads(__tstate);
2637 if (PyErr_Occurred()) SWIG_fail;
2638 }
2639 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2640 return resultobj;
2641 fail:
2642 return NULL;
2643 }
2644
2645
2646 static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
2647 PyObject *resultobj;
2648 wxBrush *arg1 = (wxBrush *) 0 ;
2649 bool result;
2650 PyObject * obj0 = 0 ;
2651 char *kwnames[] = {
2652 (char *) "self", NULL
2653 };
2654
2655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2658 {
2659 PyThreadState* __tstate = wxPyBeginAllowThreads();
2660 result = (bool)(arg1)->Ok();
2661
2662 wxPyEndAllowThreads(__tstate);
2663 if (PyErr_Occurred()) SWIG_fail;
2664 }
2665 {
2666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2667 }
2668 return resultobj;
2669 fail:
2670 return NULL;
2671 }
2672
2673
2674 static PyObject *_wrap_Brush_GetMacTheme(PyObject *, PyObject *args, PyObject *kwargs) {
2675 PyObject *resultobj;
2676 wxBrush *arg1 = (wxBrush *) 0 ;
2677 short result;
2678 PyObject * obj0 = 0 ;
2679 char *kwnames[] = {
2680 (char *) "self", NULL
2681 };
2682
2683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetMacTheme",kwnames,&obj0)) goto fail;
2684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2686 {
2687 PyThreadState* __tstate = wxPyBeginAllowThreads();
2688 result = (short)(arg1)->GetMacTheme();
2689
2690 wxPyEndAllowThreads(__tstate);
2691 if (PyErr_Occurred()) SWIG_fail;
2692 }
2693 resultobj = SWIG_FromShort((short)result);
2694 return resultobj;
2695 fail:
2696 return NULL;
2697 }
2698
2699
2700 static PyObject *_wrap_Brush_SetMacTheme(PyObject *, PyObject *args, PyObject *kwargs) {
2701 PyObject *resultobj;
2702 wxBrush *arg1 = (wxBrush *) 0 ;
2703 short arg2 ;
2704 PyObject * obj0 = 0 ;
2705 PyObject * obj1 = 0 ;
2706 char *kwnames[] = {
2707 (char *) "self",(char *) "macThemeBrush", NULL
2708 };
2709
2710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetMacTheme",kwnames,&obj0,&obj1)) goto fail;
2711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2713 arg2 = (short) SWIG_AsShort(obj1);
2714 if (PyErr_Occurred()) SWIG_fail;
2715 {
2716 PyThreadState* __tstate = wxPyBeginAllowThreads();
2717 (arg1)->SetMacTheme(arg2);
2718
2719 wxPyEndAllowThreads(__tstate);
2720 if (PyErr_Occurred()) SWIG_fail;
2721 }
2722 Py_INCREF(Py_None); resultobj = Py_None;
2723 return resultobj;
2724 fail:
2725 return NULL;
2726 }
2727
2728
2729 static PyObject * Brush_swigregister(PyObject *, PyObject *args) {
2730 PyObject *obj;
2731 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2732 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2733 Py_INCREF(obj);
2734 return Py_BuildValue((char *)"");
2735 }
2736 static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
2737 PyObject *resultobj;
2738 wxString *arg1 = 0 ;
2739 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2740 wxBitmap *result;
2741 bool temp1 = False ;
2742 PyObject * obj0 = 0 ;
2743 PyObject * obj1 = 0 ;
2744 char *kwnames[] = {
2745 (char *) "name",(char *) "type", NULL
2746 };
2747
2748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2749 {
2750 arg1 = wxString_in_helper(obj0);
2751 if (arg1 == NULL) SWIG_fail;
2752 temp1 = True;
2753 }
2754 if (obj1) {
2755 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2756 if (PyErr_Occurred()) SWIG_fail;
2757 }
2758 {
2759 PyThreadState* __tstate = wxPyBeginAllowThreads();
2760 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2761
2762 wxPyEndAllowThreads(__tstate);
2763 if (PyErr_Occurred()) SWIG_fail;
2764 }
2765 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2766 {
2767 if (temp1)
2768 delete arg1;
2769 }
2770 return resultobj;
2771 fail:
2772 {
2773 if (temp1)
2774 delete arg1;
2775 }
2776 return NULL;
2777 }
2778
2779
2780 static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
2781 PyObject *resultobj;
2782 wxBitmap *arg1 = (wxBitmap *) 0 ;
2783 PyObject * obj0 = 0 ;
2784 char *kwnames[] = {
2785 (char *) "self", NULL
2786 };
2787
2788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2791 {
2792 PyThreadState* __tstate = wxPyBeginAllowThreads();
2793 delete arg1;
2794
2795 wxPyEndAllowThreads(__tstate);
2796 if (PyErr_Occurred()) SWIG_fail;
2797 }
2798 Py_INCREF(Py_None); resultobj = Py_None;
2799 return resultobj;
2800 fail:
2801 return NULL;
2802 }
2803
2804
2805 static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
2806 PyObject *resultobj;
2807 int arg1 ;
2808 int arg2 ;
2809 int arg3 = (int) -1 ;
2810 wxBitmap *result;
2811 PyObject * obj0 = 0 ;
2812 PyObject * obj1 = 0 ;
2813 PyObject * obj2 = 0 ;
2814 char *kwnames[] = {
2815 (char *) "width",(char *) "height",(char *) "depth", NULL
2816 };
2817
2818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2819 arg1 = (int) SWIG_AsInt(obj0);
2820 if (PyErr_Occurred()) SWIG_fail;
2821 arg2 = (int) SWIG_AsInt(obj1);
2822 if (PyErr_Occurred()) SWIG_fail;
2823 if (obj2) {
2824 arg3 = (int) SWIG_AsInt(obj2);
2825 if (PyErr_Occurred()) SWIG_fail;
2826 }
2827 {
2828 PyThreadState* __tstate = wxPyBeginAllowThreads();
2829 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2830
2831 wxPyEndAllowThreads(__tstate);
2832 if (PyErr_Occurred()) SWIG_fail;
2833 }
2834 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2835 return resultobj;
2836 fail:
2837 return NULL;
2838 }
2839
2840
2841 static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
2842 PyObject *resultobj;
2843 wxIcon *arg1 = 0 ;
2844 wxBitmap *result;
2845 PyObject * obj0 = 0 ;
2846 char *kwnames[] = {
2847 (char *) "icon", NULL
2848 };
2849
2850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2852 SWIG_POINTER_EXCEPTION | 0)) == -1)
2853 SWIG_fail;
2854 if (arg1 == NULL) {
2855 PyErr_SetString(PyExc_TypeError,"null reference");
2856 SWIG_fail;
2857 }
2858 {
2859 PyThreadState* __tstate = wxPyBeginAllowThreads();
2860 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2861
2862 wxPyEndAllowThreads(__tstate);
2863 if (PyErr_Occurred()) SWIG_fail;
2864 }
2865 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2866 return resultobj;
2867 fail:
2868 return NULL;
2869 }
2870
2871
2872 static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
2873 PyObject *resultobj;
2874 wxImage *arg1 = 0 ;
2875 int arg2 = (int) -1 ;
2876 wxBitmap *result;
2877 PyObject * obj0 = 0 ;
2878 PyObject * obj1 = 0 ;
2879 char *kwnames[] = {
2880 (char *) "image",(char *) "depth", NULL
2881 };
2882
2883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2885 SWIG_POINTER_EXCEPTION | 0)) == -1)
2886 SWIG_fail;
2887 if (arg1 == NULL) {
2888 PyErr_SetString(PyExc_TypeError,"null reference");
2889 SWIG_fail;
2890 }
2891 if (obj1) {
2892 arg2 = (int) SWIG_AsInt(obj1);
2893 if (PyErr_Occurred()) SWIG_fail;
2894 }
2895 {
2896 PyThreadState* __tstate = wxPyBeginAllowThreads();
2897 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2898
2899 wxPyEndAllowThreads(__tstate);
2900 if (PyErr_Occurred()) SWIG_fail;
2901 }
2902 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2903 return resultobj;
2904 fail:
2905 return NULL;
2906 }
2907
2908
2909 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
2910 PyObject *resultobj;
2911 PyObject *arg1 = (PyObject *) 0 ;
2912 wxBitmap *result;
2913 PyObject * obj0 = 0 ;
2914 char *kwnames[] = {
2915 (char *) "listOfStrings", NULL
2916 };
2917
2918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2919 arg1 = obj0;
2920 {
2921 PyThreadState* __tstate = wxPyBeginAllowThreads();
2922 result = (wxBitmap *)new_wxBitmap(arg1);
2923
2924 wxPyEndAllowThreads(__tstate);
2925 if (PyErr_Occurred()) SWIG_fail;
2926 }
2927 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2928 return resultobj;
2929 fail:
2930 return NULL;
2931 }
2932
2933
2934 static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) {
2935 PyObject *resultobj;
2936 PyObject *arg1 = (PyObject *) 0 ;
2937 int arg2 ;
2938 int arg3 ;
2939 int arg4 = (int) 1 ;
2940 wxBitmap *result;
2941 PyObject * obj0 = 0 ;
2942 PyObject * obj1 = 0 ;
2943 PyObject * obj2 = 0 ;
2944 PyObject * obj3 = 0 ;
2945 char *kwnames[] = {
2946 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2947 };
2948
2949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2950 arg1 = obj0;
2951 arg2 = (int) SWIG_AsInt(obj1);
2952 if (PyErr_Occurred()) SWIG_fail;
2953 arg3 = (int) SWIG_AsInt(obj2);
2954 if (PyErr_Occurred()) SWIG_fail;
2955 if (obj3) {
2956 arg4 = (int) SWIG_AsInt(obj3);
2957 if (PyErr_Occurred()) SWIG_fail;
2958 }
2959 {
2960 PyThreadState* __tstate = wxPyBeginAllowThreads();
2961 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2962
2963 wxPyEndAllowThreads(__tstate);
2964 if (PyErr_Occurred()) SWIG_fail;
2965 }
2966 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2967 return resultobj;
2968 fail:
2969 return NULL;
2970 }
2971
2972
2973 static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
2974 PyObject *resultobj;
2975 wxBitmap *arg1 = (wxBitmap *) 0 ;
2976 bool result;
2977 PyObject * obj0 = 0 ;
2978 char *kwnames[] = {
2979 (char *) "self", NULL
2980 };
2981
2982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2985 {
2986 PyThreadState* __tstate = wxPyBeginAllowThreads();
2987 result = (bool)(arg1)->Ok();
2988
2989 wxPyEndAllowThreads(__tstate);
2990 if (PyErr_Occurred()) SWIG_fail;
2991 }
2992 {
2993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2994 }
2995 return resultobj;
2996 fail:
2997 return NULL;
2998 }
2999
3000
3001 static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3002 PyObject *resultobj;
3003 wxBitmap *arg1 = (wxBitmap *) 0 ;
3004 int result;
3005 PyObject * obj0 = 0 ;
3006 char *kwnames[] = {
3007 (char *) "self", NULL
3008 };
3009
3010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
3011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3013 {
3014 PyThreadState* __tstate = wxPyBeginAllowThreads();
3015 result = (int)(arg1)->GetWidth();
3016
3017 wxPyEndAllowThreads(__tstate);
3018 if (PyErr_Occurred()) SWIG_fail;
3019 }
3020 resultobj = SWIG_FromInt((int)result);
3021 return resultobj;
3022 fail:
3023 return NULL;
3024 }
3025
3026
3027 static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3028 PyObject *resultobj;
3029 wxBitmap *arg1 = (wxBitmap *) 0 ;
3030 int result;
3031 PyObject * obj0 = 0 ;
3032 char *kwnames[] = {
3033 (char *) "self", NULL
3034 };
3035
3036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
3037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3039 {
3040 PyThreadState* __tstate = wxPyBeginAllowThreads();
3041 result = (int)(arg1)->GetHeight();
3042
3043 wxPyEndAllowThreads(__tstate);
3044 if (PyErr_Occurred()) SWIG_fail;
3045 }
3046 resultobj = SWIG_FromInt((int)result);
3047 return resultobj;
3048 fail:
3049 return NULL;
3050 }
3051
3052
3053 static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3054 PyObject *resultobj;
3055 wxBitmap *arg1 = (wxBitmap *) 0 ;
3056 int result;
3057 PyObject * obj0 = 0 ;
3058 char *kwnames[] = {
3059 (char *) "self", NULL
3060 };
3061
3062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
3063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3065 {
3066 PyThreadState* __tstate = wxPyBeginAllowThreads();
3067 result = (int)(arg1)->GetDepth();
3068
3069 wxPyEndAllowThreads(__tstate);
3070 if (PyErr_Occurred()) SWIG_fail;
3071 }
3072 resultobj = SWIG_FromInt((int)result);
3073 return resultobj;
3074 fail:
3075 return NULL;
3076 }
3077
3078
3079 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) {
3080 PyObject *resultobj;
3081 wxBitmap *arg1 = (wxBitmap *) 0 ;
3082 SwigValueWrapper< wxImage > result;
3083 PyObject * obj0 = 0 ;
3084 char *kwnames[] = {
3085 (char *) "self", NULL
3086 };
3087
3088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
3089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3091 {
3092 PyThreadState* __tstate = wxPyBeginAllowThreads();
3093 result = ((wxBitmap const *)arg1)->ConvertToImage();
3094
3095 wxPyEndAllowThreads(__tstate);
3096 if (PyErr_Occurred()) SWIG_fail;
3097 }
3098 {
3099 wxImage * resultptr;
3100 resultptr = new wxImage((wxImage &) result);
3101 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3102 }
3103 return resultobj;
3104 fail:
3105 return NULL;
3106 }
3107
3108
3109 static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
3110 PyObject *resultobj;
3111 wxBitmap *arg1 = (wxBitmap *) 0 ;
3112 wxMask *result;
3113 PyObject * obj0 = 0 ;
3114 char *kwnames[] = {
3115 (char *) "self", NULL
3116 };
3117
3118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3121 {
3122 PyThreadState* __tstate = wxPyBeginAllowThreads();
3123 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3124
3125 wxPyEndAllowThreads(__tstate);
3126 if (PyErr_Occurred()) SWIG_fail;
3127 }
3128 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3129 return resultobj;
3130 fail:
3131 return NULL;
3132 }
3133
3134
3135 static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
3136 PyObject *resultobj;
3137 wxBitmap *arg1 = (wxBitmap *) 0 ;
3138 wxMask *arg2 = (wxMask *) 0 ;
3139 PyObject * obj0 = 0 ;
3140 PyObject * obj1 = 0 ;
3141 char *kwnames[] = {
3142 (char *) "self",(char *) "mask", NULL
3143 };
3144
3145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3148 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3150 {
3151 PyThreadState* __tstate = wxPyBeginAllowThreads();
3152 (arg1)->SetMask(arg2);
3153
3154 wxPyEndAllowThreads(__tstate);
3155 if (PyErr_Occurred()) SWIG_fail;
3156 }
3157 Py_INCREF(Py_None); resultobj = Py_None;
3158 return resultobj;
3159 fail:
3160 return NULL;
3161 }
3162
3163
3164 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) {
3165 PyObject *resultobj;
3166 wxBitmap *arg1 = (wxBitmap *) 0 ;
3167 wxColour *arg2 = 0 ;
3168 wxColour temp2 ;
3169 PyObject * obj0 = 0 ;
3170 PyObject * obj1 = 0 ;
3171 char *kwnames[] = {
3172 (char *) "self",(char *) "colour", NULL
3173 };
3174
3175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3178 {
3179 arg2 = &temp2;
3180 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3181 }
3182 {
3183 PyThreadState* __tstate = wxPyBeginAllowThreads();
3184 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3185
3186 wxPyEndAllowThreads(__tstate);
3187 if (PyErr_Occurred()) SWIG_fail;
3188 }
3189 Py_INCREF(Py_None); resultobj = Py_None;
3190 return resultobj;
3191 fail:
3192 return NULL;
3193 }
3194
3195
3196 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
3197 PyObject *resultobj;
3198 wxBitmap *arg1 = (wxBitmap *) 0 ;
3199 wxRect *arg2 = 0 ;
3200 SwigValueWrapper< wxBitmap > result;
3201 wxRect temp2 ;
3202 PyObject * obj0 = 0 ;
3203 PyObject * obj1 = 0 ;
3204 char *kwnames[] = {
3205 (char *) "self",(char *) "rect", NULL
3206 };
3207
3208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3211 {
3212 arg2 = &temp2;
3213 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3214 }
3215 {
3216 PyThreadState* __tstate = wxPyBeginAllowThreads();
3217 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3218
3219 wxPyEndAllowThreads(__tstate);
3220 if (PyErr_Occurred()) SWIG_fail;
3221 }
3222 {
3223 wxBitmap * resultptr;
3224 resultptr = new wxBitmap((wxBitmap &) result);
3225 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3226 }
3227 return resultobj;
3228 fail:
3229 return NULL;
3230 }
3231
3232
3233 static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
3234 PyObject *resultobj;
3235 wxBitmap *arg1 = (wxBitmap *) 0 ;
3236 wxString *arg2 = 0 ;
3237 int arg3 ;
3238 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
3239 bool result;
3240 bool temp2 = False ;
3241 PyObject * obj0 = 0 ;
3242 PyObject * obj1 = 0 ;
3243 PyObject * obj2 = 0 ;
3244 PyObject * obj3 = 0 ;
3245 char *kwnames[] = {
3246 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3247 };
3248
3249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3252 {
3253 arg2 = wxString_in_helper(obj1);
3254 if (arg2 == NULL) SWIG_fail;
3255 temp2 = True;
3256 }
3257 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3258 if (PyErr_Occurred()) SWIG_fail;
3259 if (obj3) {
3260 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3262 }
3263 {
3264 PyThreadState* __tstate = wxPyBeginAllowThreads();
3265 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3266
3267 wxPyEndAllowThreads(__tstate);
3268 if (PyErr_Occurred()) SWIG_fail;
3269 }
3270 {
3271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3272 }
3273 {
3274 if (temp2)
3275 delete arg2;
3276 }
3277 return resultobj;
3278 fail:
3279 {
3280 if (temp2)
3281 delete arg2;
3282 }
3283 return NULL;
3284 }
3285
3286
3287 static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
3288 PyObject *resultobj;
3289 wxBitmap *arg1 = (wxBitmap *) 0 ;
3290 wxString *arg2 = 0 ;
3291 int arg3 ;
3292 bool result;
3293 bool temp2 = False ;
3294 PyObject * obj0 = 0 ;
3295 PyObject * obj1 = 0 ;
3296 PyObject * obj2 = 0 ;
3297 char *kwnames[] = {
3298 (char *) "self",(char *) "name",(char *) "type", NULL
3299 };
3300
3301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3304 {
3305 arg2 = wxString_in_helper(obj1);
3306 if (arg2 == NULL) SWIG_fail;
3307 temp2 = True;
3308 }
3309 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3310 if (PyErr_Occurred()) SWIG_fail;
3311 {
3312 PyThreadState* __tstate = wxPyBeginAllowThreads();
3313 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3314
3315 wxPyEndAllowThreads(__tstate);
3316 if (PyErr_Occurred()) SWIG_fail;
3317 }
3318 {
3319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3320 }
3321 {
3322 if (temp2)
3323 delete arg2;
3324 }
3325 return resultobj;
3326 fail:
3327 {
3328 if (temp2)
3329 delete arg2;
3330 }
3331 return NULL;
3332 }
3333
3334
3335 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
3336 PyObject *resultobj;
3337 wxBitmap *arg1 = (wxBitmap *) 0 ;
3338 wxIcon *arg2 = 0 ;
3339 bool result;
3340 PyObject * obj0 = 0 ;
3341 PyObject * obj1 = 0 ;
3342 char *kwnames[] = {
3343 (char *) "self",(char *) "icon", NULL
3344 };
3345
3346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3349 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3350 SWIG_POINTER_EXCEPTION | 0)) == -1)
3351 SWIG_fail;
3352 if (arg2 == NULL) {
3353 PyErr_SetString(PyExc_TypeError,"null reference");
3354 SWIG_fail;
3355 }
3356 {
3357 PyThreadState* __tstate = wxPyBeginAllowThreads();
3358 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3359
3360 wxPyEndAllowThreads(__tstate);
3361 if (PyErr_Occurred()) SWIG_fail;
3362 }
3363 {
3364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3365 }
3366 return resultobj;
3367 fail:
3368 return NULL;
3369 }
3370
3371
3372 static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3373 PyObject *resultobj;
3374 wxBitmap *arg1 = (wxBitmap *) 0 ;
3375 int arg2 ;
3376 PyObject * obj0 = 0 ;
3377 PyObject * obj1 = 0 ;
3378 char *kwnames[] = {
3379 (char *) "self",(char *) "height", NULL
3380 };
3381
3382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3385 arg2 = (int) SWIG_AsInt(obj1);
3386 if (PyErr_Occurred()) SWIG_fail;
3387 {
3388 PyThreadState* __tstate = wxPyBeginAllowThreads();
3389 (arg1)->SetHeight(arg2);
3390
3391 wxPyEndAllowThreads(__tstate);
3392 if (PyErr_Occurred()) SWIG_fail;
3393 }
3394 Py_INCREF(Py_None); resultobj = Py_None;
3395 return resultobj;
3396 fail:
3397 return NULL;
3398 }
3399
3400
3401 static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3402 PyObject *resultobj;
3403 wxBitmap *arg1 = (wxBitmap *) 0 ;
3404 int arg2 ;
3405 PyObject * obj0 = 0 ;
3406 PyObject * obj1 = 0 ;
3407 char *kwnames[] = {
3408 (char *) "self",(char *) "width", NULL
3409 };
3410
3411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3414 arg2 = (int) SWIG_AsInt(obj1);
3415 if (PyErr_Occurred()) SWIG_fail;
3416 {
3417 PyThreadState* __tstate = wxPyBeginAllowThreads();
3418 (arg1)->SetWidth(arg2);
3419
3420 wxPyEndAllowThreads(__tstate);
3421 if (PyErr_Occurred()) SWIG_fail;
3422 }
3423 Py_INCREF(Py_None); resultobj = Py_None;
3424 return resultobj;
3425 fail:
3426 return NULL;
3427 }
3428
3429
3430 static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3431 PyObject *resultobj;
3432 wxBitmap *arg1 = (wxBitmap *) 0 ;
3433 int arg2 ;
3434 PyObject * obj0 = 0 ;
3435 PyObject * obj1 = 0 ;
3436 char *kwnames[] = {
3437 (char *) "self",(char *) "depth", NULL
3438 };
3439
3440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3443 arg2 = (int) SWIG_AsInt(obj1);
3444 if (PyErr_Occurred()) SWIG_fail;
3445 {
3446 PyThreadState* __tstate = wxPyBeginAllowThreads();
3447 (arg1)->SetDepth(arg2);
3448
3449 wxPyEndAllowThreads(__tstate);
3450 if (PyErr_Occurred()) SWIG_fail;
3451 }
3452 Py_INCREF(Py_None); resultobj = Py_None;
3453 return resultobj;
3454 fail:
3455 return NULL;
3456 }
3457
3458
3459 static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
3460 PyObject *resultobj;
3461 wxBitmap *arg1 = (wxBitmap *) 0 ;
3462 wxBitmap *arg2 = (wxBitmap *) 0 ;
3463 bool result;
3464 PyObject * obj0 = 0 ;
3465 PyObject * obj1 = 0 ;
3466 char *kwnames[] = {
3467 (char *) "self",(char *) "other", NULL
3468 };
3469
3470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3473 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3475 {
3476 PyThreadState* __tstate = wxPyBeginAllowThreads();
3477 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3478
3479 wxPyEndAllowThreads(__tstate);
3480 if (PyErr_Occurred()) SWIG_fail;
3481 }
3482 {
3483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3484 }
3485 return resultobj;
3486 fail:
3487 return NULL;
3488 }
3489
3490
3491 static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
3492 PyObject *resultobj;
3493 wxBitmap *arg1 = (wxBitmap *) 0 ;
3494 wxBitmap *arg2 = (wxBitmap *) 0 ;
3495 bool result;
3496 PyObject * obj0 = 0 ;
3497 PyObject * obj1 = 0 ;
3498 char *kwnames[] = {
3499 (char *) "self",(char *) "other", NULL
3500 };
3501
3502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3505 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3507 {
3508 PyThreadState* __tstate = wxPyBeginAllowThreads();
3509 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3510
3511 wxPyEndAllowThreads(__tstate);
3512 if (PyErr_Occurred()) SWIG_fail;
3513 }
3514 {
3515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3516 }
3517 return resultobj;
3518 fail:
3519 return NULL;
3520 }
3521
3522
3523 static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) {
3524 PyObject *obj;
3525 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3526 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3527 Py_INCREF(obj);
3528 return Py_BuildValue((char *)"");
3529 }
3530 static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) {
3531 PyObject *resultobj;
3532 wxBitmap *arg1 = 0 ;
3533 wxColour const &arg2_defvalue = wxNullColour ;
3534 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3535 wxMask *result;
3536 wxColour temp2 ;
3537 PyObject * obj0 = 0 ;
3538 PyObject * obj1 = 0 ;
3539 char *kwnames[] = {
3540 (char *) "bitmap",(char *) "colour", NULL
3541 };
3542
3543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3545 SWIG_POINTER_EXCEPTION | 0)) == -1)
3546 SWIG_fail;
3547 if (arg1 == NULL) {
3548 PyErr_SetString(PyExc_TypeError,"null reference");
3549 SWIG_fail;
3550 }
3551 if (obj1) {
3552 {
3553 arg2 = &temp2;
3554 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3555 }
3556 }
3557 {
3558 PyThreadState* __tstate = wxPyBeginAllowThreads();
3559 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3560
3561 wxPyEndAllowThreads(__tstate);
3562 if (PyErr_Occurred()) SWIG_fail;
3563 }
3564 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3565 return resultobj;
3566 fail:
3567 return NULL;
3568 }
3569
3570
3571 static PyObject * Mask_swigregister(PyObject *, PyObject *args) {
3572 PyObject *obj;
3573 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3574 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3575 Py_INCREF(obj);
3576 return Py_BuildValue((char *)"");
3577 }
3578 static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
3579 PyObject *resultobj;
3580 wxString *arg1 = 0 ;
3581 int arg2 ;
3582 int arg3 = (int) -1 ;
3583 int arg4 = (int) -1 ;
3584 wxIcon *result;
3585 bool temp1 = False ;
3586 PyObject * obj0 = 0 ;
3587 PyObject * obj1 = 0 ;
3588 PyObject * obj2 = 0 ;
3589 PyObject * obj3 = 0 ;
3590 char *kwnames[] = {
3591 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3592 };
3593
3594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3595 {
3596 arg1 = wxString_in_helper(obj0);
3597 if (arg1 == NULL) SWIG_fail;
3598 temp1 = True;
3599 }
3600 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3601 if (PyErr_Occurred()) SWIG_fail;
3602 if (obj2) {
3603 arg3 = (int) SWIG_AsInt(obj2);
3604 if (PyErr_Occurred()) SWIG_fail;
3605 }
3606 if (obj3) {
3607 arg4 = (int) SWIG_AsInt(obj3);
3608 if (PyErr_Occurred()) SWIG_fail;
3609 }
3610 {
3611 PyThreadState* __tstate = wxPyBeginAllowThreads();
3612 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3613
3614 wxPyEndAllowThreads(__tstate);
3615 if (PyErr_Occurred()) SWIG_fail;
3616 }
3617 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3618 {
3619 if (temp1)
3620 delete arg1;
3621 }
3622 return resultobj;
3623 fail:
3624 {
3625 if (temp1)
3626 delete arg1;
3627 }
3628 return NULL;
3629 }
3630
3631
3632 static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
3633 PyObject *resultobj;
3634 wxIcon *arg1 = (wxIcon *) 0 ;
3635 PyObject * obj0 = 0 ;
3636 char *kwnames[] = {
3637 (char *) "self", NULL
3638 };
3639
3640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3643 {
3644 PyThreadState* __tstate = wxPyBeginAllowThreads();
3645 delete arg1;
3646
3647 wxPyEndAllowThreads(__tstate);
3648 if (PyErr_Occurred()) SWIG_fail;
3649 }
3650 Py_INCREF(Py_None); resultobj = Py_None;
3651 return resultobj;
3652 fail:
3653 return NULL;
3654 }
3655
3656
3657 static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) {
3658 PyObject *resultobj;
3659 wxIcon *result;
3660 char *kwnames[] = {
3661 NULL
3662 };
3663
3664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3665 {
3666 PyThreadState* __tstate = wxPyBeginAllowThreads();
3667 result = (wxIcon *)new wxIcon();
3668
3669 wxPyEndAllowThreads(__tstate);
3670 if (PyErr_Occurred()) SWIG_fail;
3671 }
3672 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3673 return resultobj;
3674 fail:
3675 return NULL;
3676 }
3677
3678
3679 static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) {
3680 PyObject *resultobj;
3681 wxIconLocation *arg1 = 0 ;
3682 wxIcon *result;
3683 PyObject * obj0 = 0 ;
3684 char *kwnames[] = {
3685 (char *) "loc", NULL
3686 };
3687
3688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3690 SWIG_POINTER_EXCEPTION | 0)) == -1)
3691 SWIG_fail;
3692 if (arg1 == NULL) {
3693 PyErr_SetString(PyExc_TypeError,"null reference");
3694 SWIG_fail;
3695 }
3696 {
3697 PyThreadState* __tstate = wxPyBeginAllowThreads();
3698 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3699
3700 wxPyEndAllowThreads(__tstate);
3701 if (PyErr_Occurred()) SWIG_fail;
3702 }
3703 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3704 return resultobj;
3705 fail:
3706 return NULL;
3707 }
3708
3709
3710 static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
3711 PyObject *resultobj;
3712 wxBitmap *arg1 = 0 ;
3713 wxIcon *result;
3714 PyObject * obj0 = 0 ;
3715 char *kwnames[] = {
3716 (char *) "bmp", NULL
3717 };
3718
3719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3721 SWIG_POINTER_EXCEPTION | 0)) == -1)
3722 SWIG_fail;
3723 if (arg1 == NULL) {
3724 PyErr_SetString(PyExc_TypeError,"null reference");
3725 SWIG_fail;
3726 }
3727 {
3728 PyThreadState* __tstate = wxPyBeginAllowThreads();
3729 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3730
3731 wxPyEndAllowThreads(__tstate);
3732 if (PyErr_Occurred()) SWIG_fail;
3733 }
3734 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3735 return resultobj;
3736 fail:
3737 return NULL;
3738 }
3739
3740
3741 static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
3742 PyObject *resultobj;
3743 PyObject *arg1 = (PyObject *) 0 ;
3744 wxIcon *result;
3745 PyObject * obj0 = 0 ;
3746 char *kwnames[] = {
3747 (char *) "listOfStrings", NULL
3748 };
3749
3750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3751 arg1 = obj0;
3752 {
3753 PyThreadState* __tstate = wxPyBeginAllowThreads();
3754 result = (wxIcon *)new_wxIcon(arg1);
3755
3756 wxPyEndAllowThreads(__tstate);
3757 if (PyErr_Occurred()) SWIG_fail;
3758 }
3759 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3760 return resultobj;
3761 fail:
3762 return NULL;
3763 }
3764
3765
3766 static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
3767 PyObject *resultobj;
3768 wxIcon *arg1 = (wxIcon *) 0 ;
3769 bool result;
3770 PyObject * obj0 = 0 ;
3771 char *kwnames[] = {
3772 (char *) "self", NULL
3773 };
3774
3775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3778 {
3779 PyThreadState* __tstate = wxPyBeginAllowThreads();
3780 result = (bool)(arg1)->Ok();
3781
3782 wxPyEndAllowThreads(__tstate);
3783 if (PyErr_Occurred()) SWIG_fail;
3784 }
3785 {
3786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3787 }
3788 return resultobj;
3789 fail:
3790 return NULL;
3791 }
3792
3793
3794 static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3795 PyObject *resultobj;
3796 wxIcon *arg1 = (wxIcon *) 0 ;
3797 int result;
3798 PyObject * obj0 = 0 ;
3799 char *kwnames[] = {
3800 (char *) "self", NULL
3801 };
3802
3803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3806 {
3807 PyThreadState* __tstate = wxPyBeginAllowThreads();
3808 result = (int)(arg1)->GetWidth();
3809
3810 wxPyEndAllowThreads(__tstate);
3811 if (PyErr_Occurred()) SWIG_fail;
3812 }
3813 resultobj = SWIG_FromInt((int)result);
3814 return resultobj;
3815 fail:
3816 return NULL;
3817 }
3818
3819
3820 static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3821 PyObject *resultobj;
3822 wxIcon *arg1 = (wxIcon *) 0 ;
3823 int result;
3824 PyObject * obj0 = 0 ;
3825 char *kwnames[] = {
3826 (char *) "self", NULL
3827 };
3828
3829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3832 {
3833 PyThreadState* __tstate = wxPyBeginAllowThreads();
3834 result = (int)(arg1)->GetHeight();
3835
3836 wxPyEndAllowThreads(__tstate);
3837 if (PyErr_Occurred()) SWIG_fail;
3838 }
3839 resultobj = SWIG_FromInt((int)result);
3840 return resultobj;
3841 fail:
3842 return NULL;
3843 }
3844
3845
3846 static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3847 PyObject *resultobj;
3848 wxIcon *arg1 = (wxIcon *) 0 ;
3849 int result;
3850 PyObject * obj0 = 0 ;
3851 char *kwnames[] = {
3852 (char *) "self", NULL
3853 };
3854
3855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3858 {
3859 PyThreadState* __tstate = wxPyBeginAllowThreads();
3860 result = (int)(arg1)->GetDepth();
3861
3862 wxPyEndAllowThreads(__tstate);
3863 if (PyErr_Occurred()) SWIG_fail;
3864 }
3865 resultobj = SWIG_FromInt((int)result);
3866 return resultobj;
3867 fail:
3868 return NULL;
3869 }
3870
3871
3872 static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3873 PyObject *resultobj;
3874 wxIcon *arg1 = (wxIcon *) 0 ;
3875 int arg2 ;
3876 PyObject * obj0 = 0 ;
3877 PyObject * obj1 = 0 ;
3878 char *kwnames[] = {
3879 (char *) "self",(char *) "w", NULL
3880 };
3881
3882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3885 arg2 = (int) SWIG_AsInt(obj1);
3886 if (PyErr_Occurred()) SWIG_fail;
3887 {
3888 PyThreadState* __tstate = wxPyBeginAllowThreads();
3889 (arg1)->SetWidth(arg2);
3890
3891 wxPyEndAllowThreads(__tstate);
3892 if (PyErr_Occurred()) SWIG_fail;
3893 }
3894 Py_INCREF(Py_None); resultobj = Py_None;
3895 return resultobj;
3896 fail:
3897 return NULL;
3898 }
3899
3900
3901 static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3902 PyObject *resultobj;
3903 wxIcon *arg1 = (wxIcon *) 0 ;
3904 int arg2 ;
3905 PyObject * obj0 = 0 ;
3906 PyObject * obj1 = 0 ;
3907 char *kwnames[] = {
3908 (char *) "self",(char *) "h", NULL
3909 };
3910
3911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3914 arg2 = (int) SWIG_AsInt(obj1);
3915 if (PyErr_Occurred()) SWIG_fail;
3916 {
3917 PyThreadState* __tstate = wxPyBeginAllowThreads();
3918 (arg1)->SetHeight(arg2);
3919
3920 wxPyEndAllowThreads(__tstate);
3921 if (PyErr_Occurred()) SWIG_fail;
3922 }
3923 Py_INCREF(Py_None); resultobj = Py_None;
3924 return resultobj;
3925 fail:
3926 return NULL;
3927 }
3928
3929
3930 static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3931 PyObject *resultobj;
3932 wxIcon *arg1 = (wxIcon *) 0 ;
3933 int arg2 ;
3934 PyObject * obj0 = 0 ;
3935 PyObject * obj1 = 0 ;
3936 char *kwnames[] = {
3937 (char *) "self",(char *) "d", NULL
3938 };
3939
3940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3943 arg2 = (int) SWIG_AsInt(obj1);
3944 if (PyErr_Occurred()) SWIG_fail;
3945 {
3946 PyThreadState* __tstate = wxPyBeginAllowThreads();
3947 (arg1)->SetDepth(arg2);
3948
3949 wxPyEndAllowThreads(__tstate);
3950 if (PyErr_Occurred()) SWIG_fail;
3951 }
3952 Py_INCREF(Py_None); resultobj = Py_None;
3953 return resultobj;
3954 fail:
3955 return NULL;
3956 }
3957
3958
3959 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
3960 PyObject *resultobj;
3961 wxIcon *arg1 = (wxIcon *) 0 ;
3962 wxBitmap *arg2 = 0 ;
3963 PyObject * obj0 = 0 ;
3964 PyObject * obj1 = 0 ;
3965 char *kwnames[] = {
3966 (char *) "self",(char *) "bmp", NULL
3967 };
3968
3969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3972 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3973 SWIG_POINTER_EXCEPTION | 0)) == -1)
3974 SWIG_fail;
3975 if (arg2 == NULL) {
3976 PyErr_SetString(PyExc_TypeError,"null reference");
3977 SWIG_fail;
3978 }
3979 {
3980 PyThreadState* __tstate = wxPyBeginAllowThreads();
3981 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3982
3983 wxPyEndAllowThreads(__tstate);
3984 if (PyErr_Occurred()) SWIG_fail;
3985 }
3986 Py_INCREF(Py_None); resultobj = Py_None;
3987 return resultobj;
3988 fail:
3989 return NULL;
3990 }
3991
3992
3993 static PyObject * Icon_swigregister(PyObject *, PyObject *args) {
3994 PyObject *obj;
3995 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3996 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3997 Py_INCREF(obj);
3998 return Py_BuildValue((char *)"");
3999 }
4000 static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
4001 PyObject *resultobj;
4002 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4003 int arg2 = (int) 0 ;
4004 wxIconLocation *result;
4005 bool temp1 = False ;
4006 PyObject * obj0 = 0 ;
4007 PyObject * obj1 = 0 ;
4008 char *kwnames[] = {
4009 (char *) "filename",(char *) "num", NULL
4010 };
4011
4012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
4013 if (obj0) {
4014 {
4015 arg1 = wxString_in_helper(obj0);
4016 if (arg1 == NULL) SWIG_fail;
4017 temp1 = True;
4018 }
4019 }
4020 if (obj1) {
4021 arg2 = (int) SWIG_AsInt(obj1);
4022 if (PyErr_Occurred()) SWIG_fail;
4023 }
4024 {
4025 PyThreadState* __tstate = wxPyBeginAllowThreads();
4026 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4027
4028 wxPyEndAllowThreads(__tstate);
4029 if (PyErr_Occurred()) SWIG_fail;
4030 }
4031 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
4032 {
4033 if (temp1)
4034 delete arg1;
4035 }
4036 return resultobj;
4037 fail:
4038 {
4039 if (temp1)
4040 delete arg1;
4041 }
4042 return NULL;
4043 }
4044
4045
4046 static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
4047 PyObject *resultobj;
4048 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4049 PyObject * obj0 = 0 ;
4050 char *kwnames[] = {
4051 (char *) "self", NULL
4052 };
4053
4054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
4055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4057 {
4058 PyThreadState* __tstate = wxPyBeginAllowThreads();
4059 delete arg1;
4060
4061 wxPyEndAllowThreads(__tstate);
4062 if (PyErr_Occurred()) SWIG_fail;
4063 }
4064 Py_INCREF(Py_None); resultobj = Py_None;
4065 return resultobj;
4066 fail:
4067 return NULL;
4068 }
4069
4070
4071 static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
4072 PyObject *resultobj;
4073 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4074 bool result;
4075 PyObject * obj0 = 0 ;
4076 char *kwnames[] = {
4077 (char *) "self", NULL
4078 };
4079
4080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4083 {
4084 PyThreadState* __tstate = wxPyBeginAllowThreads();
4085 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4086
4087 wxPyEndAllowThreads(__tstate);
4088 if (PyErr_Occurred()) SWIG_fail;
4089 }
4090 {
4091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4092 }
4093 return resultobj;
4094 fail:
4095 return NULL;
4096 }
4097
4098
4099 static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
4100 PyObject *resultobj;
4101 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4102 wxString *arg2 = 0 ;
4103 bool temp2 = False ;
4104 PyObject * obj0 = 0 ;
4105 PyObject * obj1 = 0 ;
4106 char *kwnames[] = {
4107 (char *) "self",(char *) "filename", NULL
4108 };
4109
4110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4113 {
4114 arg2 = wxString_in_helper(obj1);
4115 if (arg2 == NULL) SWIG_fail;
4116 temp2 = True;
4117 }
4118 {
4119 PyThreadState* __tstate = wxPyBeginAllowThreads();
4120 (arg1)->SetFileName((wxString const &)*arg2);
4121
4122 wxPyEndAllowThreads(__tstate);
4123 if (PyErr_Occurred()) SWIG_fail;
4124 }
4125 Py_INCREF(Py_None); resultobj = Py_None;
4126 {
4127 if (temp2)
4128 delete arg2;
4129 }
4130 return resultobj;
4131 fail:
4132 {
4133 if (temp2)
4134 delete arg2;
4135 }
4136 return NULL;
4137 }
4138
4139
4140 static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
4141 PyObject *resultobj;
4142 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4143 wxString *result;
4144 PyObject * obj0 = 0 ;
4145 char *kwnames[] = {
4146 (char *) "self", NULL
4147 };
4148
4149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4152 {
4153 PyThreadState* __tstate = wxPyBeginAllowThreads();
4154 {
4155 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4156 result = (wxString *) &_result_ref;
4157 }
4158
4159 wxPyEndAllowThreads(__tstate);
4160 if (PyErr_Occurred()) SWIG_fail;
4161 }
4162 {
4163 #if wxUSE_UNICODE
4164 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4165 #else
4166 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4167 #endif
4168 }
4169 return resultobj;
4170 fail:
4171 return NULL;
4172 }
4173
4174
4175 static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
4176 PyObject *resultobj;
4177 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4178 int arg2 ;
4179 PyObject * obj0 = 0 ;
4180 PyObject * obj1 = 0 ;
4181 char *kwnames[] = {
4182 (char *) "self",(char *) "num", NULL
4183 };
4184
4185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4188 arg2 = (int) SWIG_AsInt(obj1);
4189 if (PyErr_Occurred()) SWIG_fail;
4190 {
4191 PyThreadState* __tstate = wxPyBeginAllowThreads();
4192 wxIconLocation_SetIndex(arg1,arg2);
4193
4194 wxPyEndAllowThreads(__tstate);
4195 if (PyErr_Occurred()) SWIG_fail;
4196 }
4197 Py_INCREF(Py_None); resultobj = Py_None;
4198 return resultobj;
4199 fail:
4200 return NULL;
4201 }
4202
4203
4204 static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
4205 PyObject *resultobj;
4206 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4207 int result;
4208 PyObject * obj0 = 0 ;
4209 char *kwnames[] = {
4210 (char *) "self", NULL
4211 };
4212
4213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4216 {
4217 PyThreadState* __tstate = wxPyBeginAllowThreads();
4218 result = (int)wxIconLocation_GetIndex(arg1);
4219
4220 wxPyEndAllowThreads(__tstate);
4221 if (PyErr_Occurred()) SWIG_fail;
4222 }
4223 resultobj = SWIG_FromInt((int)result);
4224 return resultobj;
4225 fail:
4226 return NULL;
4227 }
4228
4229
4230 static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) {
4231 PyObject *obj;
4232 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4233 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4234 Py_INCREF(obj);
4235 return Py_BuildValue((char *)"");
4236 }
4237 static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
4238 PyObject *resultobj;
4239 wxIconBundle *result;
4240 char *kwnames[] = {
4241 NULL
4242 };
4243
4244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4245 {
4246 PyThreadState* __tstate = wxPyBeginAllowThreads();
4247 result = (wxIconBundle *)new wxIconBundle();
4248
4249 wxPyEndAllowThreads(__tstate);
4250 if (PyErr_Occurred()) SWIG_fail;
4251 }
4252 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4253 return resultobj;
4254 fail:
4255 return NULL;
4256 }
4257
4258
4259 static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
4260 PyObject *resultobj;
4261 wxString *arg1 = 0 ;
4262 long arg2 ;
4263 wxIconBundle *result;
4264 bool temp1 = False ;
4265 PyObject * obj0 = 0 ;
4266 PyObject * obj1 = 0 ;
4267 char *kwnames[] = {
4268 (char *) "file",(char *) "type", NULL
4269 };
4270
4271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4272 {
4273 arg1 = wxString_in_helper(obj0);
4274 if (arg1 == NULL) SWIG_fail;
4275 temp1 = True;
4276 }
4277 arg2 = (long) SWIG_AsLong(obj1);
4278 if (PyErr_Occurred()) SWIG_fail;
4279 {
4280 PyThreadState* __tstate = wxPyBeginAllowThreads();
4281 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4282
4283 wxPyEndAllowThreads(__tstate);
4284 if (PyErr_Occurred()) SWIG_fail;
4285 }
4286 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4287 {
4288 if (temp1)
4289 delete arg1;
4290 }
4291 return resultobj;
4292 fail:
4293 {
4294 if (temp1)
4295 delete arg1;
4296 }
4297 return NULL;
4298 }
4299
4300
4301 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4302 PyObject *resultobj;
4303 wxIcon *arg1 = 0 ;
4304 wxIconBundle *result;
4305 PyObject * obj0 = 0 ;
4306 char *kwnames[] = {
4307 (char *) "icon", NULL
4308 };
4309
4310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4312 SWIG_POINTER_EXCEPTION | 0)) == -1)
4313 SWIG_fail;
4314 if (arg1 == NULL) {
4315 PyErr_SetString(PyExc_TypeError,"null reference");
4316 SWIG_fail;
4317 }
4318 {
4319 PyThreadState* __tstate = wxPyBeginAllowThreads();
4320 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4321
4322 wxPyEndAllowThreads(__tstate);
4323 if (PyErr_Occurred()) SWIG_fail;
4324 }
4325 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4326 return resultobj;
4327 fail:
4328 return NULL;
4329 }
4330
4331
4332 static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
4333 PyObject *resultobj;
4334 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4335 PyObject * obj0 = 0 ;
4336 char *kwnames[] = {
4337 (char *) "self", NULL
4338 };
4339
4340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4343 {
4344 PyThreadState* __tstate = wxPyBeginAllowThreads();
4345 delete arg1;
4346
4347 wxPyEndAllowThreads(__tstate);
4348 if (PyErr_Occurred()) SWIG_fail;
4349 }
4350 Py_INCREF(Py_None); resultobj = Py_None;
4351 return resultobj;
4352 fail:
4353 return NULL;
4354 }
4355
4356
4357 static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4358 PyObject *resultobj;
4359 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4360 wxIcon *arg2 = 0 ;
4361 PyObject * obj0 = 0 ;
4362 PyObject * obj1 = 0 ;
4363 char *kwnames[] = {
4364 (char *) "self",(char *) "icon", NULL
4365 };
4366
4367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4370 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4371 SWIG_POINTER_EXCEPTION | 0)) == -1)
4372 SWIG_fail;
4373 if (arg2 == NULL) {
4374 PyErr_SetString(PyExc_TypeError,"null reference");
4375 SWIG_fail;
4376 }
4377 {
4378 PyThreadState* __tstate = wxPyBeginAllowThreads();
4379 (arg1)->AddIcon((wxIcon const &)*arg2);
4380
4381 wxPyEndAllowThreads(__tstate);
4382 if (PyErr_Occurred()) SWIG_fail;
4383 }
4384 Py_INCREF(Py_None); resultobj = Py_None;
4385 return resultobj;
4386 fail:
4387 return NULL;
4388 }
4389
4390
4391 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
4392 PyObject *resultobj;
4393 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4394 wxString *arg2 = 0 ;
4395 long arg3 ;
4396 bool temp2 = False ;
4397 PyObject * obj0 = 0 ;
4398 PyObject * obj1 = 0 ;
4399 PyObject * obj2 = 0 ;
4400 char *kwnames[] = {
4401 (char *) "self",(char *) "file",(char *) "type", NULL
4402 };
4403
4404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4407 {
4408 arg2 = wxString_in_helper(obj1);
4409 if (arg2 == NULL) SWIG_fail;
4410 temp2 = True;
4411 }
4412 arg3 = (long) SWIG_AsLong(obj2);
4413 if (PyErr_Occurred()) SWIG_fail;
4414 {
4415 PyThreadState* __tstate = wxPyBeginAllowThreads();
4416 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4417
4418 wxPyEndAllowThreads(__tstate);
4419 if (PyErr_Occurred()) SWIG_fail;
4420 }
4421 Py_INCREF(Py_None); resultobj = Py_None;
4422 {
4423 if (temp2)
4424 delete arg2;
4425 }
4426 return resultobj;
4427 fail:
4428 {
4429 if (temp2)
4430 delete arg2;
4431 }
4432 return NULL;
4433 }
4434
4435
4436 static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4437 PyObject *resultobj;
4438 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4439 wxSize *arg2 = 0 ;
4440 wxIcon *result;
4441 wxSize temp2 ;
4442 PyObject * obj0 = 0 ;
4443 PyObject * obj1 = 0 ;
4444 char *kwnames[] = {
4445 (char *) "self",(char *) "size", NULL
4446 };
4447
4448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4451 {
4452 arg2 = &temp2;
4453 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4454 }
4455 {
4456 PyThreadState* __tstate = wxPyBeginAllowThreads();
4457 {
4458 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4459 result = (wxIcon *) &_result_ref;
4460 }
4461
4462 wxPyEndAllowThreads(__tstate);
4463 if (PyErr_Occurred()) SWIG_fail;
4464 }
4465 {
4466 wxIcon* resultptr = new wxIcon(*result);
4467 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4468 }
4469 return resultobj;
4470 fail:
4471 return NULL;
4472 }
4473
4474
4475 static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) {
4476 PyObject *obj;
4477 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4478 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4479 Py_INCREF(obj);
4480 return Py_BuildValue((char *)"");
4481 }
4482 static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
4483 PyObject *resultobj;
4484 wxString *arg1 = (wxString *) 0 ;
4485 long arg2 ;
4486 int arg3 = (int) 0 ;
4487 int arg4 = (int) 0 ;
4488 wxCursor *result;
4489 bool temp1 = False ;
4490 PyObject * obj0 = 0 ;
4491 PyObject * obj1 = 0 ;
4492 PyObject * obj2 = 0 ;
4493 PyObject * obj3 = 0 ;
4494 char *kwnames[] = {
4495 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4496 };
4497
4498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4499 {
4500 arg1 = wxString_in_helper(obj0);
4501 if (arg1 == NULL) SWIG_fail;
4502 temp1 = True;
4503 }
4504 arg2 = (long) SWIG_AsLong(obj1);
4505 if (PyErr_Occurred()) SWIG_fail;
4506 if (obj2) {
4507 arg3 = (int) SWIG_AsInt(obj2);
4508 if (PyErr_Occurred()) SWIG_fail;
4509 }
4510 if (obj3) {
4511 arg4 = (int) SWIG_AsInt(obj3);
4512 if (PyErr_Occurred()) SWIG_fail;
4513 }
4514 {
4515 PyThreadState* __tstate = wxPyBeginAllowThreads();
4516 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4517
4518 wxPyEndAllowThreads(__tstate);
4519 if (PyErr_Occurred()) SWIG_fail;
4520 }
4521 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4522 {
4523 if (temp1)
4524 delete arg1;
4525 }
4526 return resultobj;
4527 fail:
4528 {
4529 if (temp1)
4530 delete arg1;
4531 }
4532 return NULL;
4533 }
4534
4535
4536 static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
4537 PyObject *resultobj;
4538 wxCursor *arg1 = (wxCursor *) 0 ;
4539 PyObject * obj0 = 0 ;
4540 char *kwnames[] = {
4541 (char *) "self", NULL
4542 };
4543
4544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4547 {
4548 PyThreadState* __tstate = wxPyBeginAllowThreads();
4549 delete arg1;
4550
4551 wxPyEndAllowThreads(__tstate);
4552 if (PyErr_Occurred()) SWIG_fail;
4553 }
4554 Py_INCREF(Py_None); resultobj = Py_None;
4555 return resultobj;
4556 fail:
4557 return NULL;
4558 }
4559
4560
4561 static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) {
4562 PyObject *resultobj;
4563 int arg1 ;
4564 wxCursor *result;
4565 PyObject * obj0 = 0 ;
4566 char *kwnames[] = {
4567 (char *) "id", NULL
4568 };
4569
4570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4571 arg1 = (int) SWIG_AsInt(obj0);
4572 if (PyErr_Occurred()) SWIG_fail;
4573 {
4574 PyThreadState* __tstate = wxPyBeginAllowThreads();
4575 result = (wxCursor *)new wxCursor(arg1);
4576
4577 wxPyEndAllowThreads(__tstate);
4578 if (PyErr_Occurred()) SWIG_fail;
4579 }
4580 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4581 return resultobj;
4582 fail:
4583 return NULL;
4584 }
4585
4586
4587 static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
4588 PyObject *resultobj;
4589 wxImage *arg1 = 0 ;
4590 wxCursor *result;
4591 PyObject * obj0 = 0 ;
4592 char *kwnames[] = {
4593 (char *) "image", NULL
4594 };
4595
4596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4598 SWIG_POINTER_EXCEPTION | 0)) == -1)
4599 SWIG_fail;
4600 if (arg1 == NULL) {
4601 PyErr_SetString(PyExc_TypeError,"null reference");
4602 SWIG_fail;
4603 }
4604 {
4605 PyThreadState* __tstate = wxPyBeginAllowThreads();
4606 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4607
4608 wxPyEndAllowThreads(__tstate);
4609 if (PyErr_Occurred()) SWIG_fail;
4610 }
4611 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4612 return resultobj;
4613 fail:
4614 return NULL;
4615 }
4616
4617
4618 static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
4619 PyObject *resultobj;
4620 wxCursor *arg1 = (wxCursor *) 0 ;
4621 bool result;
4622 PyObject * obj0 = 0 ;
4623 char *kwnames[] = {
4624 (char *) "self", NULL
4625 };
4626
4627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4630 {
4631 PyThreadState* __tstate = wxPyBeginAllowThreads();
4632 result = (bool)(arg1)->Ok();
4633
4634 wxPyEndAllowThreads(__tstate);
4635 if (PyErr_Occurred()) SWIG_fail;
4636 }
4637 {
4638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4639 }
4640 return resultobj;
4641 fail:
4642 return NULL;
4643 }
4644
4645
4646 static PyObject * Cursor_swigregister(PyObject *, PyObject *args) {
4647 PyObject *obj;
4648 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4649 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4650 Py_INCREF(obj);
4651 return Py_BuildValue((char *)"");
4652 }
4653 static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) {
4654 PyObject *resultobj;
4655 int arg1 = (int) 0 ;
4656 int arg2 = (int) 0 ;
4657 int arg3 = (int) 0 ;
4658 int arg4 = (int) 0 ;
4659 wxRegion *result;
4660 PyObject * obj0 = 0 ;
4661 PyObject * obj1 = 0 ;
4662 PyObject * obj2 = 0 ;
4663 PyObject * obj3 = 0 ;
4664 char *kwnames[] = {
4665 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4666 };
4667
4668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4669 if (obj0) {
4670 arg1 = (int) SWIG_AsInt(obj0);
4671 if (PyErr_Occurred()) SWIG_fail;
4672 }
4673 if (obj1) {
4674 arg2 = (int) SWIG_AsInt(obj1);
4675 if (PyErr_Occurred()) SWIG_fail;
4676 }
4677 if (obj2) {
4678 arg3 = (int) SWIG_AsInt(obj2);
4679 if (PyErr_Occurred()) SWIG_fail;
4680 }
4681 if (obj3) {
4682 arg4 = (int) SWIG_AsInt(obj3);
4683 if (PyErr_Occurred()) SWIG_fail;
4684 }
4685 {
4686 PyThreadState* __tstate = wxPyBeginAllowThreads();
4687 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4688
4689 wxPyEndAllowThreads(__tstate);
4690 if (PyErr_Occurred()) SWIG_fail;
4691 }
4692 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4693 return resultobj;
4694 fail:
4695 return NULL;
4696 }
4697
4698
4699 static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4700 PyObject *resultobj;
4701 wxBitmap *arg1 = 0 ;
4702 wxColour const &arg2_defvalue = wxNullColour ;
4703 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4704 int arg3 = (int) 0 ;
4705 wxRegion *result;
4706 wxColour temp2 ;
4707 PyObject * obj0 = 0 ;
4708 PyObject * obj1 = 0 ;
4709 PyObject * obj2 = 0 ;
4710 char *kwnames[] = {
4711 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4712 };
4713
4714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4716 SWIG_POINTER_EXCEPTION | 0)) == -1)
4717 SWIG_fail;
4718 if (arg1 == NULL) {
4719 PyErr_SetString(PyExc_TypeError,"null reference");
4720 SWIG_fail;
4721 }
4722 if (obj1) {
4723 {
4724 arg2 = &temp2;
4725 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4726 }
4727 }
4728 if (obj2) {
4729 arg3 = (int) SWIG_AsInt(obj2);
4730 if (PyErr_Occurred()) SWIG_fail;
4731 }
4732 {
4733 PyThreadState* __tstate = wxPyBeginAllowThreads();
4734 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4735
4736 wxPyEndAllowThreads(__tstate);
4737 if (PyErr_Occurred()) SWIG_fail;
4738 }
4739 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4740 return resultobj;
4741 fail:
4742 return NULL;
4743 }
4744
4745
4746 static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) {
4747 PyObject *resultobj;
4748 int arg1 ;
4749 wxPoint *arg2 = (wxPoint *) 0 ;
4750 int arg3 = (int) wxWINDING_RULE ;
4751 wxRegion *result;
4752 PyObject * obj0 = 0 ;
4753 PyObject * obj1 = 0 ;
4754 char *kwnames[] = {
4755 (char *) "points",(char *) "fillStyle", NULL
4756 };
4757
4758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4759 {
4760 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4761 if (arg2 == NULL) SWIG_fail;
4762 }
4763 if (obj1) {
4764 arg3 = (int) SWIG_AsInt(obj1);
4765 if (PyErr_Occurred()) SWIG_fail;
4766 }
4767 {
4768 PyThreadState* __tstate = wxPyBeginAllowThreads();
4769 result = (wxRegion *)new_wxRegion(arg1,arg2,arg3);
4770
4771 wxPyEndAllowThreads(__tstate);
4772 if (PyErr_Occurred()) SWIG_fail;
4773 }
4774 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4775 {
4776 if (arg2) delete [] arg2;
4777 }
4778 return resultobj;
4779 fail:
4780 {
4781 if (arg2) delete [] arg2;
4782 }
4783 return NULL;
4784 }
4785
4786
4787 static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) {
4788 PyObject *resultobj;
4789 wxRegion *arg1 = (wxRegion *) 0 ;
4790 PyObject * obj0 = 0 ;
4791 char *kwnames[] = {
4792 (char *) "self", NULL
4793 };
4794
4795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4798 {
4799 PyThreadState* __tstate = wxPyBeginAllowThreads();
4800 delete arg1;
4801
4802 wxPyEndAllowThreads(__tstate);
4803 if (PyErr_Occurred()) SWIG_fail;
4804 }
4805 Py_INCREF(Py_None); resultobj = Py_None;
4806 return resultobj;
4807 fail:
4808 return NULL;
4809 }
4810
4811
4812 static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
4813 PyObject *resultobj;
4814 wxRegion *arg1 = (wxRegion *) 0 ;
4815 PyObject * obj0 = 0 ;
4816 char *kwnames[] = {
4817 (char *) "self", NULL
4818 };
4819
4820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4823 {
4824 PyThreadState* __tstate = wxPyBeginAllowThreads();
4825 (arg1)->Clear();
4826
4827 wxPyEndAllowThreads(__tstate);
4828 if (PyErr_Occurred()) SWIG_fail;
4829 }
4830 Py_INCREF(Py_None); resultobj = Py_None;
4831 return resultobj;
4832 fail:
4833 return NULL;
4834 }
4835
4836
4837 static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) {
4838 PyObject *resultobj;
4839 wxRegion *arg1 = (wxRegion *) 0 ;
4840 int arg2 ;
4841 int arg3 ;
4842 int result;
4843 PyObject * obj0 = 0 ;
4844 PyObject * obj1 = 0 ;
4845 PyObject * obj2 = 0 ;
4846 char *kwnames[] = {
4847 (char *) "self",(char *) "x",(char *) "y", NULL
4848 };
4849
4850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
4851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4853 arg2 = (int) SWIG_AsInt(obj1);
4854 if (PyErr_Occurred()) SWIG_fail;
4855 arg3 = (int) SWIG_AsInt(obj2);
4856 if (PyErr_Occurred()) SWIG_fail;
4857 {
4858 PyThreadState* __tstate = wxPyBeginAllowThreads();
4859 result = (int)(arg1)->Contains(arg2,arg3);
4860
4861 wxPyEndAllowThreads(__tstate);
4862 if (PyErr_Occurred()) SWIG_fail;
4863 }
4864 resultobj = SWIG_FromInt((int)result);
4865 return resultobj;
4866 fail:
4867 return NULL;
4868 }
4869
4870
4871 static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) {
4872 PyObject *resultobj;
4873 wxRegion *arg1 = (wxRegion *) 0 ;
4874 wxPoint *arg2 = 0 ;
4875 int result;
4876 wxPoint temp2 ;
4877 PyObject * obj0 = 0 ;
4878 PyObject * obj1 = 0 ;
4879 char *kwnames[] = {
4880 (char *) "self",(char *) "pt", NULL
4881 };
4882
4883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4886 {
4887 arg2 = &temp2;
4888 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4889 }
4890 {
4891 PyThreadState* __tstate = wxPyBeginAllowThreads();
4892 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4893
4894 wxPyEndAllowThreads(__tstate);
4895 if (PyErr_Occurred()) SWIG_fail;
4896 }
4897 resultobj = SWIG_FromInt((int)result);
4898 return resultobj;
4899 fail:
4900 return NULL;
4901 }
4902
4903
4904 static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) {
4905 PyObject *resultobj;
4906 wxRegion *arg1 = (wxRegion *) 0 ;
4907 wxRect *arg2 = 0 ;
4908 int result;
4909 wxRect temp2 ;
4910 PyObject * obj0 = 0 ;
4911 PyObject * obj1 = 0 ;
4912 char *kwnames[] = {
4913 (char *) "self",(char *) "rect", NULL
4914 };
4915
4916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4919 {
4920 arg2 = &temp2;
4921 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4922 }
4923 {
4924 PyThreadState* __tstate = wxPyBeginAllowThreads();
4925 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4926
4927 wxPyEndAllowThreads(__tstate);
4928 if (PyErr_Occurred()) SWIG_fail;
4929 }
4930 resultobj = SWIG_FromInt((int)result);
4931 return resultobj;
4932 fail:
4933 return NULL;
4934 }
4935
4936
4937 static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) {
4938 PyObject *resultobj;
4939 wxRegion *arg1 = (wxRegion *) 0 ;
4940 int arg2 ;
4941 int arg3 ;
4942 int arg4 ;
4943 int arg5 ;
4944 int result;
4945 PyObject * obj0 = 0 ;
4946 PyObject * obj1 = 0 ;
4947 PyObject * obj2 = 0 ;
4948 PyObject * obj3 = 0 ;
4949 PyObject * obj4 = 0 ;
4950 char *kwnames[] = {
4951 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4952 };
4953
4954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4957 arg2 = (int) SWIG_AsInt(obj1);
4958 if (PyErr_Occurred()) SWIG_fail;
4959 arg3 = (int) SWIG_AsInt(obj2);
4960 if (PyErr_Occurred()) SWIG_fail;
4961 arg4 = (int) SWIG_AsInt(obj3);
4962 if (PyErr_Occurred()) SWIG_fail;
4963 arg5 = (int) SWIG_AsInt(obj4);
4964 if (PyErr_Occurred()) SWIG_fail;
4965 {
4966 PyThreadState* __tstate = wxPyBeginAllowThreads();
4967 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4968
4969 wxPyEndAllowThreads(__tstate);
4970 if (PyErr_Occurred()) SWIG_fail;
4971 }
4972 resultobj = SWIG_FromInt((int)result);
4973 return resultobj;
4974 fail:
4975 return NULL;
4976 }
4977
4978
4979 static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) {
4980 PyObject *resultobj;
4981 wxRegion *arg1 = (wxRegion *) 0 ;
4982 wxRect result;
4983 PyObject * obj0 = 0 ;
4984 char *kwnames[] = {
4985 (char *) "self", NULL
4986 };
4987
4988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4991 {
4992 PyThreadState* __tstate = wxPyBeginAllowThreads();
4993 result = (arg1)->GetBox();
4994
4995 wxPyEndAllowThreads(__tstate);
4996 if (PyErr_Occurred()) SWIG_fail;
4997 }
4998 {
4999 wxRect * resultptr;
5000 resultptr = new wxRect((wxRect &) result);
5001 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5002 }
5003 return resultobj;
5004 fail:
5005 return NULL;
5006 }
5007
5008
5009 static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) {
5010 PyObject *resultobj;
5011 wxRegion *arg1 = (wxRegion *) 0 ;
5012 int arg2 ;
5013 int arg3 ;
5014 int arg4 ;
5015 int arg5 ;
5016 bool result;
5017 PyObject * obj0 = 0 ;
5018 PyObject * obj1 = 0 ;
5019 PyObject * obj2 = 0 ;
5020 PyObject * obj3 = 0 ;
5021 PyObject * obj4 = 0 ;
5022 char *kwnames[] = {
5023 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5024 };
5025
5026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5029 arg2 = (int) SWIG_AsInt(obj1);
5030 if (PyErr_Occurred()) SWIG_fail;
5031 arg3 = (int) SWIG_AsInt(obj2);
5032 if (PyErr_Occurred()) SWIG_fail;
5033 arg4 = (int) SWIG_AsInt(obj3);
5034 if (PyErr_Occurred()) SWIG_fail;
5035 arg5 = (int) SWIG_AsInt(obj4);
5036 if (PyErr_Occurred()) SWIG_fail;
5037 {
5038 PyThreadState* __tstate = wxPyBeginAllowThreads();
5039 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5040
5041 wxPyEndAllowThreads(__tstate);
5042 if (PyErr_Occurred()) SWIG_fail;
5043 }
5044 {
5045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5046 }
5047 return resultobj;
5048 fail:
5049 return NULL;
5050 }
5051
5052
5053 static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) {
5054 PyObject *resultobj;
5055 wxRegion *arg1 = (wxRegion *) 0 ;
5056 wxRect *arg2 = 0 ;
5057 bool result;
5058 wxRect temp2 ;
5059 PyObject * obj0 = 0 ;
5060 PyObject * obj1 = 0 ;
5061 char *kwnames[] = {
5062 (char *) "self",(char *) "rect", NULL
5063 };
5064
5065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5068 {
5069 arg2 = &temp2;
5070 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5071 }
5072 {
5073 PyThreadState* __tstate = wxPyBeginAllowThreads();
5074 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5075
5076 wxPyEndAllowThreads(__tstate);
5077 if (PyErr_Occurred()) SWIG_fail;
5078 }
5079 {
5080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5081 }
5082 return resultobj;
5083 fail:
5084 return NULL;
5085 }
5086
5087
5088 static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5089 PyObject *resultobj;
5090 wxRegion *arg1 = (wxRegion *) 0 ;
5091 wxRegion *arg2 = 0 ;
5092 bool result;
5093 PyObject * obj0 = 0 ;
5094 PyObject * obj1 = 0 ;
5095 char *kwnames[] = {
5096 (char *) "self",(char *) "region", NULL
5097 };
5098
5099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5102 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5103 SWIG_POINTER_EXCEPTION | 0)) == -1)
5104 SWIG_fail;
5105 if (arg2 == NULL) {
5106 PyErr_SetString(PyExc_TypeError,"null reference");
5107 SWIG_fail;
5108 }
5109 {
5110 PyThreadState* __tstate = wxPyBeginAllowThreads();
5111 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5112
5113 wxPyEndAllowThreads(__tstate);
5114 if (PyErr_Occurred()) SWIG_fail;
5115 }
5116 {
5117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5118 }
5119 return resultobj;
5120 fail:
5121 return NULL;
5122 }
5123
5124
5125 static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) {
5126 PyObject *resultobj;
5127 wxRegion *arg1 = (wxRegion *) 0 ;
5128 bool result;
5129 PyObject * obj0 = 0 ;
5130 char *kwnames[] = {
5131 (char *) "self", NULL
5132 };
5133
5134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5137 {
5138 PyThreadState* __tstate = wxPyBeginAllowThreads();
5139 result = (bool)(arg1)->IsEmpty();
5140
5141 wxPyEndAllowThreads(__tstate);
5142 if (PyErr_Occurred()) SWIG_fail;
5143 }
5144 {
5145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5146 }
5147 return resultobj;
5148 fail:
5149 return NULL;
5150 }
5151
5152
5153 static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) {
5154 PyObject *resultobj;
5155 wxRegion *arg1 = (wxRegion *) 0 ;
5156 int arg2 ;
5157 int arg3 ;
5158 int arg4 ;
5159 int arg5 ;
5160 bool result;
5161 PyObject * obj0 = 0 ;
5162 PyObject * obj1 = 0 ;
5163 PyObject * obj2 = 0 ;
5164 PyObject * obj3 = 0 ;
5165 PyObject * obj4 = 0 ;
5166 char *kwnames[] = {
5167 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5168 };
5169
5170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5173 arg2 = (int) SWIG_AsInt(obj1);
5174 if (PyErr_Occurred()) SWIG_fail;
5175 arg3 = (int) SWIG_AsInt(obj2);
5176 if (PyErr_Occurred()) SWIG_fail;
5177 arg4 = (int) SWIG_AsInt(obj3);
5178 if (PyErr_Occurred()) SWIG_fail;
5179 arg5 = (int) SWIG_AsInt(obj4);
5180 if (PyErr_Occurred()) SWIG_fail;
5181 {
5182 PyThreadState* __tstate = wxPyBeginAllowThreads();
5183 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
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_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) {
5198 PyObject *resultobj;
5199 wxRegion *arg1 = (wxRegion *) 0 ;
5200 wxRect *arg2 = 0 ;
5201 bool result;
5202 wxRect temp2 ;
5203 PyObject * obj0 = 0 ;
5204 PyObject * obj1 = 0 ;
5205 char *kwnames[] = {
5206 (char *) "self",(char *) "rect", NULL
5207 };
5208
5209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5212 {
5213 arg2 = &temp2;
5214 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5215 }
5216 {
5217 PyThreadState* __tstate = wxPyBeginAllowThreads();
5218 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5219
5220 wxPyEndAllowThreads(__tstate);
5221 if (PyErr_Occurred()) SWIG_fail;
5222 }
5223 {
5224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5225 }
5226 return resultobj;
5227 fail:
5228 return NULL;
5229 }
5230
5231
5232 static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5233 PyObject *resultobj;
5234 wxRegion *arg1 = (wxRegion *) 0 ;
5235 wxRegion *arg2 = 0 ;
5236 bool result;
5237 PyObject * obj0 = 0 ;
5238 PyObject * obj1 = 0 ;
5239 char *kwnames[] = {
5240 (char *) "self",(char *) "region", NULL
5241 };
5242
5243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5246 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5247 SWIG_POINTER_EXCEPTION | 0)) == -1)
5248 SWIG_fail;
5249 if (arg2 == NULL) {
5250 PyErr_SetString(PyExc_TypeError,"null reference");
5251 SWIG_fail;
5252 }
5253 {
5254 PyThreadState* __tstate = wxPyBeginAllowThreads();
5255 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5256
5257 wxPyEndAllowThreads(__tstate);
5258 if (PyErr_Occurred()) SWIG_fail;
5259 }
5260 {
5261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5262 }
5263 return resultobj;
5264 fail:
5265 return NULL;
5266 }
5267
5268
5269 static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
5270 PyObject *resultobj;
5271 wxRegion *arg1 = (wxRegion *) 0 ;
5272 int arg2 ;
5273 int arg3 ;
5274 int arg4 ;
5275 int arg5 ;
5276 bool result;
5277 PyObject * obj0 = 0 ;
5278 PyObject * obj1 = 0 ;
5279 PyObject * obj2 = 0 ;
5280 PyObject * obj3 = 0 ;
5281 PyObject * obj4 = 0 ;
5282 char *kwnames[] = {
5283 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5284 };
5285
5286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5289 arg2 = (int) SWIG_AsInt(obj1);
5290 if (PyErr_Occurred()) SWIG_fail;
5291 arg3 = (int) SWIG_AsInt(obj2);
5292 if (PyErr_Occurred()) SWIG_fail;
5293 arg4 = (int) SWIG_AsInt(obj3);
5294 if (PyErr_Occurred()) SWIG_fail;
5295 arg5 = (int) SWIG_AsInt(obj4);
5296 if (PyErr_Occurred()) SWIG_fail;
5297 {
5298 PyThreadState* __tstate = wxPyBeginAllowThreads();
5299 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
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_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) {
5314 PyObject *resultobj;
5315 wxRegion *arg1 = (wxRegion *) 0 ;
5316 wxRect *arg2 = 0 ;
5317 bool result;
5318 wxRect temp2 ;
5319 PyObject * obj0 = 0 ;
5320 PyObject * obj1 = 0 ;
5321 char *kwnames[] = {
5322 (char *) "self",(char *) "rect", NULL
5323 };
5324
5325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5328 {
5329 arg2 = &temp2;
5330 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5331 }
5332 {
5333 PyThreadState* __tstate = wxPyBeginAllowThreads();
5334 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5335
5336 wxPyEndAllowThreads(__tstate);
5337 if (PyErr_Occurred()) SWIG_fail;
5338 }
5339 {
5340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5341 }
5342 return resultobj;
5343 fail:
5344 return NULL;
5345 }
5346
5347
5348 static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5349 PyObject *resultobj;
5350 wxRegion *arg1 = (wxRegion *) 0 ;
5351 wxRegion *arg2 = 0 ;
5352 bool result;
5353 PyObject * obj0 = 0 ;
5354 PyObject * obj1 = 0 ;
5355 char *kwnames[] = {
5356 (char *) "self",(char *) "region", NULL
5357 };
5358
5359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5362 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5363 SWIG_POINTER_EXCEPTION | 0)) == -1)
5364 SWIG_fail;
5365 if (arg2 == NULL) {
5366 PyErr_SetString(PyExc_TypeError,"null reference");
5367 SWIG_fail;
5368 }
5369 {
5370 PyThreadState* __tstate = wxPyBeginAllowThreads();
5371 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5372
5373 wxPyEndAllowThreads(__tstate);
5374 if (PyErr_Occurred()) SWIG_fail;
5375 }
5376 {
5377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5378 }
5379 return resultobj;
5380 fail:
5381 return NULL;
5382 }
5383
5384
5385 static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) {
5386 PyObject *resultobj;
5387 wxRegion *arg1 = (wxRegion *) 0 ;
5388 int arg2 ;
5389 int arg3 ;
5390 int arg4 ;
5391 int arg5 ;
5392 bool result;
5393 PyObject * obj0 = 0 ;
5394 PyObject * obj1 = 0 ;
5395 PyObject * obj2 = 0 ;
5396 PyObject * obj3 = 0 ;
5397 PyObject * obj4 = 0 ;
5398 char *kwnames[] = {
5399 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5400 };
5401
5402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5405 arg2 = (int) SWIG_AsInt(obj1);
5406 if (PyErr_Occurred()) SWIG_fail;
5407 arg3 = (int) SWIG_AsInt(obj2);
5408 if (PyErr_Occurred()) SWIG_fail;
5409 arg4 = (int) SWIG_AsInt(obj3);
5410 if (PyErr_Occurred()) SWIG_fail;
5411 arg5 = (int) SWIG_AsInt(obj4);
5412 if (PyErr_Occurred()) SWIG_fail;
5413 {
5414 PyThreadState* __tstate = wxPyBeginAllowThreads();
5415 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
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_XorRect(PyObject *, PyObject *args, PyObject *kwargs) {
5430 PyObject *resultobj;
5431 wxRegion *arg1 = (wxRegion *) 0 ;
5432 wxRect *arg2 = 0 ;
5433 bool result;
5434 wxRect temp2 ;
5435 PyObject * obj0 = 0 ;
5436 PyObject * obj1 = 0 ;
5437 char *kwnames[] = {
5438 (char *) "self",(char *) "rect", NULL
5439 };
5440
5441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5444 {
5445 arg2 = &temp2;
5446 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5447 }
5448 {
5449 PyThreadState* __tstate = wxPyBeginAllowThreads();
5450 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5451
5452 wxPyEndAllowThreads(__tstate);
5453 if (PyErr_Occurred()) SWIG_fail;
5454 }
5455 {
5456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5457 }
5458 return resultobj;
5459 fail:
5460 return NULL;
5461 }
5462
5463
5464 static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5465 PyObject *resultobj;
5466 wxRegion *arg1 = (wxRegion *) 0 ;
5467 wxRegion *arg2 = 0 ;
5468 bool result;
5469 PyObject * obj0 = 0 ;
5470 PyObject * obj1 = 0 ;
5471 char *kwnames[] = {
5472 (char *) "self",(char *) "region", NULL
5473 };
5474
5475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5478 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5479 SWIG_POINTER_EXCEPTION | 0)) == -1)
5480 SWIG_fail;
5481 if (arg2 == NULL) {
5482 PyErr_SetString(PyExc_TypeError,"null reference");
5483 SWIG_fail;
5484 }
5485 {
5486 PyThreadState* __tstate = wxPyBeginAllowThreads();
5487 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5488
5489 wxPyEndAllowThreads(__tstate);
5490 if (PyErr_Occurred()) SWIG_fail;
5491 }
5492 {
5493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5494 }
5495 return resultobj;
5496 fail:
5497 return NULL;
5498 }
5499
5500
5501 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5502 PyObject *resultobj;
5503 wxRegion *arg1 = (wxRegion *) 0 ;
5504 SwigValueWrapper< wxBitmap > result;
5505 PyObject * obj0 = 0 ;
5506 char *kwnames[] = {
5507 (char *) "self", NULL
5508 };
5509
5510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5513 {
5514 PyThreadState* __tstate = wxPyBeginAllowThreads();
5515 result = (arg1)->ConvertToBitmap();
5516
5517 wxPyEndAllowThreads(__tstate);
5518 if (PyErr_Occurred()) SWIG_fail;
5519 }
5520 {
5521 wxBitmap * resultptr;
5522 resultptr = new wxBitmap((wxBitmap &) result);
5523 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5524 }
5525 return resultobj;
5526 fail:
5527 return NULL;
5528 }
5529
5530
5531 static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5532 PyObject *resultobj;
5533 wxRegion *arg1 = (wxRegion *) 0 ;
5534 wxBitmap *arg2 = 0 ;
5535 wxColour const &arg3_defvalue = wxNullColour ;
5536 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
5537 int arg4 = (int) 0 ;
5538 bool result;
5539 wxColour temp3 ;
5540 PyObject * obj0 = 0 ;
5541 PyObject * obj1 = 0 ;
5542 PyObject * obj2 = 0 ;
5543 PyObject * obj3 = 0 ;
5544 char *kwnames[] = {
5545 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5546 };
5547
5548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5551 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5552 SWIG_POINTER_EXCEPTION | 0)) == -1)
5553 SWIG_fail;
5554 if (arg2 == NULL) {
5555 PyErr_SetString(PyExc_TypeError,"null reference");
5556 SWIG_fail;
5557 }
5558 if (obj2) {
5559 {
5560 arg3 = &temp3;
5561 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5562 }
5563 }
5564 if (obj3) {
5565 arg4 = (int) SWIG_AsInt(obj3);
5566 if (PyErr_Occurred()) SWIG_fail;
5567 }
5568 {
5569 PyThreadState* __tstate = wxPyBeginAllowThreads();
5570 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5571
5572 wxPyEndAllowThreads(__tstate);
5573 if (PyErr_Occurred()) SWIG_fail;
5574 }
5575 {
5576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5577 }
5578 return resultobj;
5579 fail:
5580 return NULL;
5581 }
5582
5583
5584 static PyObject * Region_swigregister(PyObject *, PyObject *args) {
5585 PyObject *obj;
5586 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5587 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5588 Py_INCREF(obj);
5589 return Py_BuildValue((char *)"");
5590 }
5591 static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
5592 PyObject *resultobj;
5593 wxRegion *arg1 = 0 ;
5594 wxRegionIterator *result;
5595 PyObject * obj0 = 0 ;
5596 char *kwnames[] = {
5597 (char *) "region", NULL
5598 };
5599
5600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5602 SWIG_POINTER_EXCEPTION | 0)) == -1)
5603 SWIG_fail;
5604 if (arg1 == NULL) {
5605 PyErr_SetString(PyExc_TypeError,"null reference");
5606 SWIG_fail;
5607 }
5608 {
5609 PyThreadState* __tstate = wxPyBeginAllowThreads();
5610 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5611
5612 wxPyEndAllowThreads(__tstate);
5613 if (PyErr_Occurred()) SWIG_fail;
5614 }
5615 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
5616 return resultobj;
5617 fail:
5618 return NULL;
5619 }
5620
5621
5622 static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
5623 PyObject *resultobj;
5624 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5625 PyObject * obj0 = 0 ;
5626 char *kwnames[] = {
5627 (char *) "self", NULL
5628 };
5629
5630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5633 {
5634 PyThreadState* __tstate = wxPyBeginAllowThreads();
5635 delete arg1;
5636
5637 wxPyEndAllowThreads(__tstate);
5638 if (PyErr_Occurred()) SWIG_fail;
5639 }
5640 Py_INCREF(Py_None); resultobj = Py_None;
5641 return resultobj;
5642 fail:
5643 return NULL;
5644 }
5645
5646
5647 static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
5648 PyObject *resultobj;
5649 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5650 int result;
5651 PyObject * obj0 = 0 ;
5652 char *kwnames[] = {
5653 (char *) "self", NULL
5654 };
5655
5656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5659 {
5660 PyThreadState* __tstate = wxPyBeginAllowThreads();
5661 result = (int)(arg1)->GetX();
5662
5663 wxPyEndAllowThreads(__tstate);
5664 if (PyErr_Occurred()) SWIG_fail;
5665 }
5666 resultobj = SWIG_FromInt((int)result);
5667 return resultobj;
5668 fail:
5669 return NULL;
5670 }
5671
5672
5673 static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
5674 PyObject *resultobj;
5675 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5676 int result;
5677 PyObject * obj0 = 0 ;
5678 char *kwnames[] = {
5679 (char *) "self", NULL
5680 };
5681
5682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5685 {
5686 PyThreadState* __tstate = wxPyBeginAllowThreads();
5687 result = (int)(arg1)->GetY();
5688
5689 wxPyEndAllowThreads(__tstate);
5690 if (PyErr_Occurred()) SWIG_fail;
5691 }
5692 resultobj = SWIG_FromInt((int)result);
5693 return resultobj;
5694 fail:
5695 return NULL;
5696 }
5697
5698
5699 static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) {
5700 PyObject *resultobj;
5701 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5702 int result;
5703 PyObject * obj0 = 0 ;
5704 char *kwnames[] = {
5705 (char *) "self", NULL
5706 };
5707
5708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5711 {
5712 PyThreadState* __tstate = wxPyBeginAllowThreads();
5713 result = (int)(arg1)->GetW();
5714
5715 wxPyEndAllowThreads(__tstate);
5716 if (PyErr_Occurred()) SWIG_fail;
5717 }
5718 resultobj = SWIG_FromInt((int)result);
5719 return resultobj;
5720 fail:
5721 return NULL;
5722 }
5723
5724
5725 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
5726 PyObject *resultobj;
5727 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5728 int result;
5729 PyObject * obj0 = 0 ;
5730 char *kwnames[] = {
5731 (char *) "self", NULL
5732 };
5733
5734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5737 {
5738 PyThreadState* __tstate = wxPyBeginAllowThreads();
5739 result = (int)(arg1)->GetWidth();
5740
5741 wxPyEndAllowThreads(__tstate);
5742 if (PyErr_Occurred()) SWIG_fail;
5743 }
5744 resultobj = SWIG_FromInt((int)result);
5745 return resultobj;
5746 fail:
5747 return NULL;
5748 }
5749
5750
5751 static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) {
5752 PyObject *resultobj;
5753 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5754 int result;
5755 PyObject * obj0 = 0 ;
5756 char *kwnames[] = {
5757 (char *) "self", NULL
5758 };
5759
5760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5763 {
5764 PyThreadState* __tstate = wxPyBeginAllowThreads();
5765 result = (int)(arg1)->GetH();
5766
5767 wxPyEndAllowThreads(__tstate);
5768 if (PyErr_Occurred()) SWIG_fail;
5769 }
5770 resultobj = SWIG_FromInt((int)result);
5771 return resultobj;
5772 fail:
5773 return NULL;
5774 }
5775
5776
5777 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
5778 PyObject *resultobj;
5779 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5780 int result;
5781 PyObject * obj0 = 0 ;
5782 char *kwnames[] = {
5783 (char *) "self", NULL
5784 };
5785
5786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5789 {
5790 PyThreadState* __tstate = wxPyBeginAllowThreads();
5791 result = (int)(arg1)->GetHeight();
5792
5793 wxPyEndAllowThreads(__tstate);
5794 if (PyErr_Occurred()) SWIG_fail;
5795 }
5796 resultobj = SWIG_FromInt((int)result);
5797 return resultobj;
5798 fail:
5799 return NULL;
5800 }
5801
5802
5803 static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
5804 PyObject *resultobj;
5805 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5806 wxRect result;
5807 PyObject * obj0 = 0 ;
5808 char *kwnames[] = {
5809 (char *) "self", NULL
5810 };
5811
5812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5815 {
5816 PyThreadState* __tstate = wxPyBeginAllowThreads();
5817 result = (arg1)->GetRect();
5818
5819 wxPyEndAllowThreads(__tstate);
5820 if (PyErr_Occurred()) SWIG_fail;
5821 }
5822 {
5823 wxRect * resultptr;
5824 resultptr = new wxRect((wxRect &) result);
5825 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5826 }
5827 return resultobj;
5828 fail:
5829 return NULL;
5830 }
5831
5832
5833 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) {
5834 PyObject *resultobj;
5835 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5836 bool result;
5837 PyObject * obj0 = 0 ;
5838 char *kwnames[] = {
5839 (char *) "self", NULL
5840 };
5841
5842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
5843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5845 {
5846 PyThreadState* __tstate = wxPyBeginAllowThreads();
5847 result = (bool)(arg1)->HaveRects();
5848
5849 wxPyEndAllowThreads(__tstate);
5850 if (PyErr_Occurred()) SWIG_fail;
5851 }
5852 {
5853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5854 }
5855 return resultobj;
5856 fail:
5857 return NULL;
5858 }
5859
5860
5861 static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) {
5862 PyObject *resultobj;
5863 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5864 PyObject * obj0 = 0 ;
5865 char *kwnames[] = {
5866 (char *) "self", NULL
5867 };
5868
5869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
5870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5872 {
5873 PyThreadState* __tstate = wxPyBeginAllowThreads();
5874 (arg1)->Reset();
5875
5876 wxPyEndAllowThreads(__tstate);
5877 if (PyErr_Occurred()) SWIG_fail;
5878 }
5879 Py_INCREF(Py_None); resultobj = Py_None;
5880 return resultobj;
5881 fail:
5882 return NULL;
5883 }
5884
5885
5886 static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) {
5887 PyObject *resultobj;
5888 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5889 PyObject * obj0 = 0 ;
5890 char *kwnames[] = {
5891 (char *) "self", NULL
5892 };
5893
5894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
5895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5897 {
5898 PyThreadState* __tstate = wxPyBeginAllowThreads();
5899 wxRegionIterator_Next(arg1);
5900
5901 wxPyEndAllowThreads(__tstate);
5902 if (PyErr_Occurred()) SWIG_fail;
5903 }
5904 Py_INCREF(Py_None); resultobj = Py_None;
5905 return resultobj;
5906 fail:
5907 return NULL;
5908 }
5909
5910
5911 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
5912 PyObject *resultobj;
5913 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5914 bool result;
5915 PyObject * obj0 = 0 ;
5916 char *kwnames[] = {
5917 (char *) "self", NULL
5918 };
5919
5920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
5921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5923 {
5924 PyThreadState* __tstate = wxPyBeginAllowThreads();
5925 result = (bool)wxRegionIterator___nonzero__(arg1);
5926
5927 wxPyEndAllowThreads(__tstate);
5928 if (PyErr_Occurred()) SWIG_fail;
5929 }
5930 {
5931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5932 }
5933 return resultobj;
5934 fail:
5935 return NULL;
5936 }
5937
5938
5939 static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) {
5940 PyObject *obj;
5941 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5942 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
5943 Py_INCREF(obj);
5944 return Py_BuildValue((char *)"");
5945 }
5946 static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
5947 PyObject *resultobj;
5948 wxNativeFontInfo *result;
5949 char *kwnames[] = {
5950 NULL
5951 };
5952
5953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
5954 {
5955 PyThreadState* __tstate = wxPyBeginAllowThreads();
5956 result = (wxNativeFontInfo *)new wxNativeFontInfo();
5957
5958 wxPyEndAllowThreads(__tstate);
5959 if (PyErr_Occurred()) SWIG_fail;
5960 }
5961 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
5962 return resultobj;
5963 fail:
5964 return NULL;
5965 }
5966
5967
5968 static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
5969 PyObject *resultobj;
5970 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5971 PyObject * obj0 = 0 ;
5972 char *kwnames[] = {
5973 (char *) "self", NULL
5974 };
5975
5976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
5977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5979 {
5980 PyThreadState* __tstate = wxPyBeginAllowThreads();
5981 delete arg1;
5982
5983 wxPyEndAllowThreads(__tstate);
5984 if (PyErr_Occurred()) SWIG_fail;
5985 }
5986 Py_INCREF(Py_None); resultobj = Py_None;
5987 return resultobj;
5988 fail:
5989 return NULL;
5990 }
5991
5992
5993 static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) {
5994 PyObject *resultobj;
5995 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5996 PyObject * obj0 = 0 ;
5997 char *kwnames[] = {
5998 (char *) "self", NULL
5999 };
6000
6001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6004 {
6005 PyThreadState* __tstate = wxPyBeginAllowThreads();
6006 (arg1)->Init();
6007
6008 wxPyEndAllowThreads(__tstate);
6009 if (PyErr_Occurred()) SWIG_fail;
6010 }
6011 Py_INCREF(Py_None); resultobj = Py_None;
6012 return resultobj;
6013 fail:
6014 return NULL;
6015 }
6016
6017
6018 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) {
6019 PyObject *resultobj;
6020 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6021 wxFont *arg2 = 0 ;
6022 PyObject * obj0 = 0 ;
6023 PyObject * obj1 = 0 ;
6024 char *kwnames[] = {
6025 (char *) "self",(char *) "font", NULL
6026 };
6027
6028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6031 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6032 SWIG_POINTER_EXCEPTION | 0)) == -1)
6033 SWIG_fail;
6034 if (arg2 == NULL) {
6035 PyErr_SetString(PyExc_TypeError,"null reference");
6036 SWIG_fail;
6037 }
6038 {
6039 PyThreadState* __tstate = wxPyBeginAllowThreads();
6040 (arg1)->InitFromFont((wxFont const &)*arg2);
6041
6042 wxPyEndAllowThreads(__tstate);
6043 if (PyErr_Occurred()) SWIG_fail;
6044 }
6045 Py_INCREF(Py_None); resultobj = Py_None;
6046 return resultobj;
6047 fail:
6048 return NULL;
6049 }
6050
6051
6052 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
6053 PyObject *resultobj;
6054 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6055 int result;
6056 PyObject * obj0 = 0 ;
6057 char *kwnames[] = {
6058 (char *) "self", NULL
6059 };
6060
6061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6064 {
6065 PyThreadState* __tstate = wxPyBeginAllowThreads();
6066 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6067
6068 wxPyEndAllowThreads(__tstate);
6069 if (PyErr_Occurred()) SWIG_fail;
6070 }
6071 resultobj = SWIG_FromInt((int)result);
6072 return resultobj;
6073 fail:
6074 return NULL;
6075 }
6076
6077
6078 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
6079 PyObject *resultobj;
6080 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6081 int result;
6082 PyObject * obj0 = 0 ;
6083 char *kwnames[] = {
6084 (char *) "self", NULL
6085 };
6086
6087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6090 {
6091 PyThreadState* __tstate = wxPyBeginAllowThreads();
6092 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6093
6094 wxPyEndAllowThreads(__tstate);
6095 if (PyErr_Occurred()) SWIG_fail;
6096 }
6097 resultobj = SWIG_FromInt((int)result);
6098 return resultobj;
6099 fail:
6100 return NULL;
6101 }
6102
6103
6104 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
6105 PyObject *resultobj;
6106 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6107 int result;
6108 PyObject * obj0 = 0 ;
6109 char *kwnames[] = {
6110 (char *) "self", NULL
6111 };
6112
6113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6116 {
6117 PyThreadState* __tstate = wxPyBeginAllowThreads();
6118 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6119
6120 wxPyEndAllowThreads(__tstate);
6121 if (PyErr_Occurred()) SWIG_fail;
6122 }
6123 resultobj = SWIG_FromInt((int)result);
6124 return resultobj;
6125 fail:
6126 return NULL;
6127 }
6128
6129
6130 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
6131 PyObject *resultobj;
6132 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6133 bool result;
6134 PyObject * obj0 = 0 ;
6135 char *kwnames[] = {
6136 (char *) "self", NULL
6137 };
6138
6139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6142 {
6143 PyThreadState* __tstate = wxPyBeginAllowThreads();
6144 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6145
6146 wxPyEndAllowThreads(__tstate);
6147 if (PyErr_Occurred()) SWIG_fail;
6148 }
6149 {
6150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6151 }
6152 return resultobj;
6153 fail:
6154 return NULL;
6155 }
6156
6157
6158 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
6159 PyObject *resultobj;
6160 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6161 wxString result;
6162 PyObject * obj0 = 0 ;
6163 char *kwnames[] = {
6164 (char *) "self", NULL
6165 };
6166
6167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6170 {
6171 PyThreadState* __tstate = wxPyBeginAllowThreads();
6172 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6173
6174 wxPyEndAllowThreads(__tstate);
6175 if (PyErr_Occurred()) SWIG_fail;
6176 }
6177 {
6178 #if wxUSE_UNICODE
6179 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6180 #else
6181 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6182 #endif
6183 }
6184 return resultobj;
6185 fail:
6186 return NULL;
6187 }
6188
6189
6190 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
6191 PyObject *resultobj;
6192 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6193 int result;
6194 PyObject * obj0 = 0 ;
6195 char *kwnames[] = {
6196 (char *) "self", NULL
6197 };
6198
6199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6202 {
6203 PyThreadState* __tstate = wxPyBeginAllowThreads();
6204 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6205
6206 wxPyEndAllowThreads(__tstate);
6207 if (PyErr_Occurred()) SWIG_fail;
6208 }
6209 resultobj = SWIG_FromInt((int)result);
6210 return resultobj;
6211 fail:
6212 return NULL;
6213 }
6214
6215
6216 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
6217 PyObject *resultobj;
6218 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6219 int result;
6220 PyObject * obj0 = 0 ;
6221 char *kwnames[] = {
6222 (char *) "self", NULL
6223 };
6224
6225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6228 {
6229 PyThreadState* __tstate = wxPyBeginAllowThreads();
6230 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6231
6232 wxPyEndAllowThreads(__tstate);
6233 if (PyErr_Occurred()) SWIG_fail;
6234 }
6235 resultobj = SWIG_FromInt((int)result);
6236 return resultobj;
6237 fail:
6238 return NULL;
6239 }
6240
6241
6242 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
6243 PyObject *resultobj;
6244 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6245 int arg2 ;
6246 PyObject * obj0 = 0 ;
6247 PyObject * obj1 = 0 ;
6248 char *kwnames[] = {
6249 (char *) "self",(char *) "pointsize", NULL
6250 };
6251
6252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6255 arg2 = (int) SWIG_AsInt(obj1);
6256 if (PyErr_Occurred()) SWIG_fail;
6257 {
6258 PyThreadState* __tstate = wxPyBeginAllowThreads();
6259 (arg1)->SetPointSize(arg2);
6260
6261 wxPyEndAllowThreads(__tstate);
6262 if (PyErr_Occurred()) SWIG_fail;
6263 }
6264 Py_INCREF(Py_None); resultobj = Py_None;
6265 return resultobj;
6266 fail:
6267 return NULL;
6268 }
6269
6270
6271 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
6272 PyObject *resultobj;
6273 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6274 int arg2 ;
6275 PyObject * obj0 = 0 ;
6276 PyObject * obj1 = 0 ;
6277 char *kwnames[] = {
6278 (char *) "self",(char *) "style", NULL
6279 };
6280
6281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6284 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6285 if (PyErr_Occurred()) SWIG_fail;
6286 {
6287 PyThreadState* __tstate = wxPyBeginAllowThreads();
6288 (arg1)->SetStyle((wxFontStyle )arg2);
6289
6290 wxPyEndAllowThreads(__tstate);
6291 if (PyErr_Occurred()) SWIG_fail;
6292 }
6293 Py_INCREF(Py_None); resultobj = Py_None;
6294 return resultobj;
6295 fail:
6296 return NULL;
6297 }
6298
6299
6300 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
6301 PyObject *resultobj;
6302 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6303 int arg2 ;
6304 PyObject * obj0 = 0 ;
6305 PyObject * obj1 = 0 ;
6306 char *kwnames[] = {
6307 (char *) "self",(char *) "weight", NULL
6308 };
6309
6310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6313 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6314 if (PyErr_Occurred()) SWIG_fail;
6315 {
6316 PyThreadState* __tstate = wxPyBeginAllowThreads();
6317 (arg1)->SetWeight((wxFontWeight )arg2);
6318
6319 wxPyEndAllowThreads(__tstate);
6320 if (PyErr_Occurred()) SWIG_fail;
6321 }
6322 Py_INCREF(Py_None); resultobj = Py_None;
6323 return resultobj;
6324 fail:
6325 return NULL;
6326 }
6327
6328
6329 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
6330 PyObject *resultobj;
6331 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6332 bool arg2 ;
6333 PyObject * obj0 = 0 ;
6334 PyObject * obj1 = 0 ;
6335 char *kwnames[] = {
6336 (char *) "self",(char *) "underlined", NULL
6337 };
6338
6339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6342 arg2 = (bool) SWIG_AsBool(obj1);
6343 if (PyErr_Occurred()) SWIG_fail;
6344 {
6345 PyThreadState* __tstate = wxPyBeginAllowThreads();
6346 (arg1)->SetUnderlined(arg2);
6347
6348 wxPyEndAllowThreads(__tstate);
6349 if (PyErr_Occurred()) SWIG_fail;
6350 }
6351 Py_INCREF(Py_None); resultobj = Py_None;
6352 return resultobj;
6353 fail:
6354 return NULL;
6355 }
6356
6357
6358 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
6359 PyObject *resultobj;
6360 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6361 wxString arg2 ;
6362 PyObject * obj0 = 0 ;
6363 PyObject * obj1 = 0 ;
6364 char *kwnames[] = {
6365 (char *) "self",(char *) "facename", NULL
6366 };
6367
6368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6371 {
6372 wxString* sptr = wxString_in_helper(obj1);
6373 if (sptr == NULL) SWIG_fail;
6374 arg2 = *sptr;
6375 delete sptr;
6376 }
6377 {
6378 PyThreadState* __tstate = wxPyBeginAllowThreads();
6379 (arg1)->SetFaceName(arg2);
6380
6381 wxPyEndAllowThreads(__tstate);
6382 if (PyErr_Occurred()) SWIG_fail;
6383 }
6384 Py_INCREF(Py_None); resultobj = Py_None;
6385 return resultobj;
6386 fail:
6387 return NULL;
6388 }
6389
6390
6391 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
6392 PyObject *resultobj;
6393 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6394 int arg2 ;
6395 PyObject * obj0 = 0 ;
6396 PyObject * obj1 = 0 ;
6397 char *kwnames[] = {
6398 (char *) "self",(char *) "family", NULL
6399 };
6400
6401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6404 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
6405 if (PyErr_Occurred()) SWIG_fail;
6406 {
6407 PyThreadState* __tstate = wxPyBeginAllowThreads();
6408 (arg1)->SetFamily((wxFontFamily )arg2);
6409
6410 wxPyEndAllowThreads(__tstate);
6411 if (PyErr_Occurred()) SWIG_fail;
6412 }
6413 Py_INCREF(Py_None); resultobj = Py_None;
6414 return resultobj;
6415 fail:
6416 return NULL;
6417 }
6418
6419
6420 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
6421 PyObject *resultobj;
6422 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6423 int arg2 ;
6424 PyObject * obj0 = 0 ;
6425 PyObject * obj1 = 0 ;
6426 char *kwnames[] = {
6427 (char *) "self",(char *) "encoding", NULL
6428 };
6429
6430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6433 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6434 if (PyErr_Occurred()) SWIG_fail;
6435 {
6436 PyThreadState* __tstate = wxPyBeginAllowThreads();
6437 (arg1)->SetEncoding((wxFontEncoding )arg2);
6438
6439 wxPyEndAllowThreads(__tstate);
6440 if (PyErr_Occurred()) SWIG_fail;
6441 }
6442 Py_INCREF(Py_None); resultobj = Py_None;
6443 return resultobj;
6444 fail:
6445 return NULL;
6446 }
6447
6448
6449 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
6450 PyObject *resultobj;
6451 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6452 wxString *arg2 = 0 ;
6453 bool result;
6454 bool temp2 = False ;
6455 PyObject * obj0 = 0 ;
6456 PyObject * obj1 = 0 ;
6457 char *kwnames[] = {
6458 (char *) "self",(char *) "s", NULL
6459 };
6460
6461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6464 {
6465 arg2 = wxString_in_helper(obj1);
6466 if (arg2 == NULL) SWIG_fail;
6467 temp2 = True;
6468 }
6469 {
6470 PyThreadState* __tstate = wxPyBeginAllowThreads();
6471 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6472
6473 wxPyEndAllowThreads(__tstate);
6474 if (PyErr_Occurred()) SWIG_fail;
6475 }
6476 {
6477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6478 }
6479 {
6480 if (temp2)
6481 delete arg2;
6482 }
6483 return resultobj;
6484 fail:
6485 {
6486 if (temp2)
6487 delete arg2;
6488 }
6489 return NULL;
6490 }
6491
6492
6493 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
6494 PyObject *resultobj;
6495 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6496 wxString result;
6497 PyObject * obj0 = 0 ;
6498 char *kwnames[] = {
6499 (char *) "self", NULL
6500 };
6501
6502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6505 {
6506 PyThreadState* __tstate = wxPyBeginAllowThreads();
6507 result = ((wxNativeFontInfo const *)arg1)->ToString();
6508
6509 wxPyEndAllowThreads(__tstate);
6510 if (PyErr_Occurred()) SWIG_fail;
6511 }
6512 {
6513 #if wxUSE_UNICODE
6514 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6515 #else
6516 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6517 #endif
6518 }
6519 return resultobj;
6520 fail:
6521 return NULL;
6522 }
6523
6524
6525 static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) {
6526 PyObject *resultobj;
6527 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6528 wxString result;
6529 PyObject * obj0 = 0 ;
6530 char *kwnames[] = {
6531 (char *) "self", NULL
6532 };
6533
6534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6537 {
6538 PyThreadState* __tstate = wxPyBeginAllowThreads();
6539 result = wxNativeFontInfo___str__(arg1);
6540
6541 wxPyEndAllowThreads(__tstate);
6542 if (PyErr_Occurred()) SWIG_fail;
6543 }
6544 {
6545 #if wxUSE_UNICODE
6546 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6547 #else
6548 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6549 #endif
6550 }
6551 return resultobj;
6552 fail:
6553 return NULL;
6554 }
6555
6556
6557 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) {
6558 PyObject *resultobj;
6559 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6560 wxString *arg2 = 0 ;
6561 bool result;
6562 bool temp2 = False ;
6563 PyObject * obj0 = 0 ;
6564 PyObject * obj1 = 0 ;
6565 char *kwnames[] = {
6566 (char *) "self",(char *) "s", NULL
6567 };
6568
6569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6572 {
6573 arg2 = wxString_in_helper(obj1);
6574 if (arg2 == NULL) SWIG_fail;
6575 temp2 = True;
6576 }
6577 {
6578 PyThreadState* __tstate = wxPyBeginAllowThreads();
6579 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6580
6581 wxPyEndAllowThreads(__tstate);
6582 if (PyErr_Occurred()) SWIG_fail;
6583 }
6584 {
6585 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6586 }
6587 {
6588 if (temp2)
6589 delete arg2;
6590 }
6591 return resultobj;
6592 fail:
6593 {
6594 if (temp2)
6595 delete arg2;
6596 }
6597 return NULL;
6598 }
6599
6600
6601 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) {
6602 PyObject *resultobj;
6603 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6604 wxString result;
6605 PyObject * obj0 = 0 ;
6606 char *kwnames[] = {
6607 (char *) "self", NULL
6608 };
6609
6610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6613 {
6614 PyThreadState* __tstate = wxPyBeginAllowThreads();
6615 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6616
6617 wxPyEndAllowThreads(__tstate);
6618 if (PyErr_Occurred()) SWIG_fail;
6619 }
6620 {
6621 #if wxUSE_UNICODE
6622 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6623 #else
6624 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6625 #endif
6626 }
6627 return resultobj;
6628 fail:
6629 return NULL;
6630 }
6631
6632
6633 static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) {
6634 PyObject *obj;
6635 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6636 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6637 Py_INCREF(obj);
6638 return Py_BuildValue((char *)"");
6639 }
6640 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) {
6641 PyObject *resultobj;
6642 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6643 wxString *arg2 = (wxString *) 0 ;
6644 bool temp2 = False ;
6645 PyObject * obj0 = 0 ;
6646 PyObject * obj1 = 0 ;
6647 char *kwnames[] = {
6648 (char *) "self",(char *) "facename", NULL
6649 };
6650
6651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6654 {
6655 arg2 = wxString_in_helper(obj1);
6656 if (arg2 == NULL) SWIG_fail;
6657 temp2 = True;
6658 }
6659 if (arg1) (arg1)->facename = *arg2;
6660
6661 Py_INCREF(Py_None); resultobj = Py_None;
6662 {
6663 if (temp2)
6664 delete arg2;
6665 }
6666 return resultobj;
6667 fail:
6668 {
6669 if (temp2)
6670 delete arg2;
6671 }
6672 return NULL;
6673 }
6674
6675
6676 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) {
6677 PyObject *resultobj;
6678 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6679 wxString *result;
6680 PyObject * obj0 = 0 ;
6681 char *kwnames[] = {
6682 (char *) "self", NULL
6683 };
6684
6685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6688 result = (wxString *)& ((arg1)->facename);
6689
6690 {
6691 #if wxUSE_UNICODE
6692 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6693 #else
6694 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6695 #endif
6696 }
6697 return resultobj;
6698 fail:
6699 return NULL;
6700 }
6701
6702
6703 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) {
6704 PyObject *resultobj;
6705 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6706 int arg2 ;
6707 PyObject * obj0 = 0 ;
6708 PyObject * obj1 = 0 ;
6709 char *kwnames[] = {
6710 (char *) "self",(char *) "encoding", NULL
6711 };
6712
6713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6716 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6717 if (PyErr_Occurred()) SWIG_fail;
6718 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6719
6720 Py_INCREF(Py_None); resultobj = Py_None;
6721 return resultobj;
6722 fail:
6723 return NULL;
6724 }
6725
6726
6727 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) {
6728 PyObject *resultobj;
6729 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6730 int result;
6731 PyObject * obj0 = 0 ;
6732 char *kwnames[] = {
6733 (char *) "self", NULL
6734 };
6735
6736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6739 result = (int) ((arg1)->encoding);
6740
6741 resultobj = SWIG_FromInt((int)result);
6742 return resultobj;
6743 fail:
6744 return NULL;
6745 }
6746
6747
6748 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6749 PyObject *resultobj;
6750 wxNativeEncodingInfo *result;
6751 char *kwnames[] = {
6752 NULL
6753 };
6754
6755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6756 {
6757 PyThreadState* __tstate = wxPyBeginAllowThreads();
6758 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6759
6760 wxPyEndAllowThreads(__tstate);
6761 if (PyErr_Occurred()) SWIG_fail;
6762 }
6763 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
6764 return resultobj;
6765 fail:
6766 return NULL;
6767 }
6768
6769
6770 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6771 PyObject *resultobj;
6772 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6773 PyObject * obj0 = 0 ;
6774 char *kwnames[] = {
6775 (char *) "self", NULL
6776 };
6777
6778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6781 {
6782 PyThreadState* __tstate = wxPyBeginAllowThreads();
6783 delete arg1;
6784
6785 wxPyEndAllowThreads(__tstate);
6786 if (PyErr_Occurred()) SWIG_fail;
6787 }
6788 Py_INCREF(Py_None); resultobj = Py_None;
6789 return resultobj;
6790 fail:
6791 return NULL;
6792 }
6793
6794
6795 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
6796 PyObject *resultobj;
6797 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6798 wxString *arg2 = 0 ;
6799 bool result;
6800 bool temp2 = False ;
6801 PyObject * obj0 = 0 ;
6802 PyObject * obj1 = 0 ;
6803 char *kwnames[] = {
6804 (char *) "self",(char *) "s", NULL
6805 };
6806
6807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6810 {
6811 arg2 = wxString_in_helper(obj1);
6812 if (arg2 == NULL) SWIG_fail;
6813 temp2 = True;
6814 }
6815 {
6816 PyThreadState* __tstate = wxPyBeginAllowThreads();
6817 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6818
6819 wxPyEndAllowThreads(__tstate);
6820 if (PyErr_Occurred()) SWIG_fail;
6821 }
6822 {
6823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6824 }
6825 {
6826 if (temp2)
6827 delete arg2;
6828 }
6829 return resultobj;
6830 fail:
6831 {
6832 if (temp2)
6833 delete arg2;
6834 }
6835 return NULL;
6836 }
6837
6838
6839 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
6840 PyObject *resultobj;
6841 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6842 wxString result;
6843 PyObject * obj0 = 0 ;
6844 char *kwnames[] = {
6845 (char *) "self", NULL
6846 };
6847
6848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
6849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6851 {
6852 PyThreadState* __tstate = wxPyBeginAllowThreads();
6853 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6854
6855 wxPyEndAllowThreads(__tstate);
6856 if (PyErr_Occurred()) SWIG_fail;
6857 }
6858 {
6859 #if wxUSE_UNICODE
6860 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6861 #else
6862 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6863 #endif
6864 }
6865 return resultobj;
6866 fail:
6867 return NULL;
6868 }
6869
6870
6871 static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) {
6872 PyObject *obj;
6873 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6874 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6875 Py_INCREF(obj);
6876 return Py_BuildValue((char *)"");
6877 }
6878 static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
6879 PyObject *resultobj;
6880 int arg1 ;
6881 wxNativeEncodingInfo *result;
6882 PyObject * obj0 = 0 ;
6883 char *kwnames[] = {
6884 (char *) "encoding", NULL
6885 };
6886
6887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
6888 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
6889 if (PyErr_Occurred()) SWIG_fail;
6890 {
6891 PyThreadState* __tstate = wxPyBeginAllowThreads();
6892 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
6893
6894 wxPyEndAllowThreads(__tstate);
6895 if (PyErr_Occurred()) SWIG_fail;
6896 }
6897 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
6898 return resultobj;
6899 fail:
6900 return NULL;
6901 }
6902
6903
6904 static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
6905 PyObject *resultobj;
6906 wxNativeEncodingInfo *arg1 = 0 ;
6907 bool result;
6908 PyObject * obj0 = 0 ;
6909 char *kwnames[] = {
6910 (char *) "info", NULL
6911 };
6912
6913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
6914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6915 SWIG_POINTER_EXCEPTION | 0)) == -1)
6916 SWIG_fail;
6917 if (arg1 == NULL) {
6918 PyErr_SetString(PyExc_TypeError,"null reference");
6919 SWIG_fail;
6920 }
6921 {
6922 PyThreadState* __tstate = wxPyBeginAllowThreads();
6923 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6924
6925 wxPyEndAllowThreads(__tstate);
6926 if (PyErr_Occurred()) SWIG_fail;
6927 }
6928 {
6929 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6930 }
6931 return resultobj;
6932 fail:
6933 return NULL;
6934 }
6935
6936
6937 static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
6938 PyObject *resultobj;
6939 wxFontMapper *result;
6940 char *kwnames[] = {
6941 NULL
6942 };
6943
6944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
6945 {
6946 PyThreadState* __tstate = wxPyBeginAllowThreads();
6947 result = (wxFontMapper *)new wxFontMapper();
6948
6949 wxPyEndAllowThreads(__tstate);
6950 if (PyErr_Occurred()) SWIG_fail;
6951 }
6952 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
6953 return resultobj;
6954 fail:
6955 return NULL;
6956 }
6957
6958
6959 static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
6960 PyObject *resultobj;
6961 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6962 PyObject * obj0 = 0 ;
6963 char *kwnames[] = {
6964 (char *) "self", NULL
6965 };
6966
6967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
6968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
6969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6970 {
6971 PyThreadState* __tstate = wxPyBeginAllowThreads();
6972 delete arg1;
6973
6974 wxPyEndAllowThreads(__tstate);
6975 if (PyErr_Occurred()) SWIG_fail;
6976 }
6977 Py_INCREF(Py_None); resultobj = Py_None;
6978 return resultobj;
6979 fail:
6980 return NULL;
6981 }
6982
6983
6984 static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) {
6985 PyObject *resultobj;
6986 wxFontMapper *result;
6987 char *kwnames[] = {
6988 NULL
6989 };
6990
6991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
6992 {
6993 PyThreadState* __tstate = wxPyBeginAllowThreads();
6994 result = (wxFontMapper *)wxFontMapper::Get();
6995
6996 wxPyEndAllowThreads(__tstate);
6997 if (PyErr_Occurred()) SWIG_fail;
6998 }
6999 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7000 return resultobj;
7001 fail:
7002 return NULL;
7003 }
7004
7005
7006 static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) {
7007 PyObject *resultobj;
7008 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7009 wxFontMapper *result;
7010 PyObject * obj0 = 0 ;
7011 char *kwnames[] = {
7012 (char *) "mapper", NULL
7013 };
7014
7015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7018 {
7019 PyThreadState* __tstate = wxPyBeginAllowThreads();
7020 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7021
7022 wxPyEndAllowThreads(__tstate);
7023 if (PyErr_Occurred()) SWIG_fail;
7024 }
7025 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7026 return resultobj;
7027 fail:
7028 return NULL;
7029 }
7030
7031
7032 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7033 PyObject *resultobj;
7034 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7035 wxString *arg2 = 0 ;
7036 bool arg3 = (bool) True ;
7037 int result;
7038 bool temp2 = False ;
7039 PyObject * obj0 = 0 ;
7040 PyObject * obj1 = 0 ;
7041 PyObject * obj2 = 0 ;
7042 char *kwnames[] = {
7043 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7044 };
7045
7046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7049 {
7050 arg2 = wxString_in_helper(obj1);
7051 if (arg2 == NULL) SWIG_fail;
7052 temp2 = True;
7053 }
7054 if (obj2) {
7055 arg3 = (bool) SWIG_AsBool(obj2);
7056 if (PyErr_Occurred()) SWIG_fail;
7057 }
7058 {
7059 PyThreadState* __tstate = wxPyBeginAllowThreads();
7060 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7061
7062 wxPyEndAllowThreads(__tstate);
7063 if (PyErr_Occurred()) SWIG_fail;
7064 }
7065 resultobj = SWIG_FromInt((int)result);
7066 {
7067 if (temp2)
7068 delete arg2;
7069 }
7070 return resultobj;
7071 fail:
7072 {
7073 if (temp2)
7074 delete arg2;
7075 }
7076 return NULL;
7077 }
7078
7079
7080 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) {
7081 PyObject *resultobj;
7082 size_t result;
7083 char *kwnames[] = {
7084 NULL
7085 };
7086
7087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7088 {
7089 PyThreadState* __tstate = wxPyBeginAllowThreads();
7090 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7091
7092 wxPyEndAllowThreads(__tstate);
7093 if (PyErr_Occurred()) SWIG_fail;
7094 }
7095 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7096 return resultobj;
7097 fail:
7098 return NULL;
7099 }
7100
7101
7102 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7103 PyObject *resultobj;
7104 size_t arg1 ;
7105 int result;
7106 PyObject * obj0 = 0 ;
7107 char *kwnames[] = {
7108 (char *) "n", NULL
7109 };
7110
7111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7112 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7113 if (PyErr_Occurred()) SWIG_fail;
7114 {
7115 PyThreadState* __tstate = wxPyBeginAllowThreads();
7116 result = (int)wxFontMapper::GetEncoding(arg1);
7117
7118 wxPyEndAllowThreads(__tstate);
7119 if (PyErr_Occurred()) SWIG_fail;
7120 }
7121 resultobj = SWIG_FromInt((int)result);
7122 return resultobj;
7123 fail:
7124 return NULL;
7125 }
7126
7127
7128 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
7129 PyObject *resultobj;
7130 int arg1 ;
7131 wxString result;
7132 PyObject * obj0 = 0 ;
7133 char *kwnames[] = {
7134 (char *) "encoding", NULL
7135 };
7136
7137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7138 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7139 if (PyErr_Occurred()) SWIG_fail;
7140 {
7141 PyThreadState* __tstate = wxPyBeginAllowThreads();
7142 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7143
7144 wxPyEndAllowThreads(__tstate);
7145 if (PyErr_Occurred()) SWIG_fail;
7146 }
7147 {
7148 #if wxUSE_UNICODE
7149 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7150 #else
7151 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7152 #endif
7153 }
7154 return resultobj;
7155 fail:
7156 return NULL;
7157 }
7158
7159
7160 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) {
7161 PyObject *resultobj;
7162 int arg1 ;
7163 wxString result;
7164 PyObject * obj0 = 0 ;
7165 char *kwnames[] = {
7166 (char *) "encoding", NULL
7167 };
7168
7169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7170 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7171 if (PyErr_Occurred()) SWIG_fail;
7172 {
7173 PyThreadState* __tstate = wxPyBeginAllowThreads();
7174 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7175
7176 wxPyEndAllowThreads(__tstate);
7177 if (PyErr_Occurred()) SWIG_fail;
7178 }
7179 {
7180 #if wxUSE_UNICODE
7181 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7182 #else
7183 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7184 #endif
7185 }
7186 return resultobj;
7187 fail:
7188 return NULL;
7189 }
7190
7191
7192 static PyObject *_wrap_FontMapper_SetConfig(PyObject *, PyObject *args, PyObject *kwargs) {
7193 PyObject *resultobj;
7194 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7195 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7196 PyObject * obj0 = 0 ;
7197 PyObject * obj1 = 0 ;
7198 char *kwnames[] = {
7199 (char *) "self",(char *) "config", NULL
7200 };
7201
7202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7205 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7207 {
7208 PyThreadState* __tstate = wxPyBeginAllowThreads();
7209 (arg1)->SetConfig(arg2);
7210
7211 wxPyEndAllowThreads(__tstate);
7212 if (PyErr_Occurred()) SWIG_fail;
7213 }
7214 Py_INCREF(Py_None); resultobj = Py_None;
7215 return resultobj;
7216 fail:
7217 return NULL;
7218 }
7219
7220
7221 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
7222 PyObject *resultobj;
7223 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7224 wxString *arg2 = 0 ;
7225 bool temp2 = False ;
7226 PyObject * obj0 = 0 ;
7227 PyObject * obj1 = 0 ;
7228 char *kwnames[] = {
7229 (char *) "self",(char *) "prefix", NULL
7230 };
7231
7232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7235 {
7236 arg2 = wxString_in_helper(obj1);
7237 if (arg2 == NULL) SWIG_fail;
7238 temp2 = True;
7239 }
7240 {
7241 PyThreadState* __tstate = wxPyBeginAllowThreads();
7242 (arg1)->SetConfigPath((wxString const &)*arg2);
7243
7244 wxPyEndAllowThreads(__tstate);
7245 if (PyErr_Occurred()) SWIG_fail;
7246 }
7247 Py_INCREF(Py_None); resultobj = Py_None;
7248 {
7249 if (temp2)
7250 delete arg2;
7251 }
7252 return resultobj;
7253 fail:
7254 {
7255 if (temp2)
7256 delete arg2;
7257 }
7258 return NULL;
7259 }
7260
7261
7262 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
7263 PyObject *resultobj;
7264 wxString result;
7265 char *kwnames[] = {
7266 NULL
7267 };
7268
7269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7270 {
7271 PyThreadState* __tstate = wxPyBeginAllowThreads();
7272 result = wxFontMapper::GetDefaultConfigPath();
7273
7274 wxPyEndAllowThreads(__tstate);
7275 if (PyErr_Occurred()) SWIG_fail;
7276 }
7277 {
7278 #if wxUSE_UNICODE
7279 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7280 #else
7281 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7282 #endif
7283 }
7284 return resultobj;
7285 fail:
7286 return NULL;
7287 }
7288
7289
7290 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7291 PyObject *resultobj;
7292 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7293 int arg2 ;
7294 wxString const &arg3_defvalue = wxPyEmptyString ;
7295 wxString *arg3 = (wxString *) &arg3_defvalue ;
7296 bool arg4 = (bool) True ;
7297 PyObject *result;
7298 bool temp3 = False ;
7299 PyObject * obj0 = 0 ;
7300 PyObject * obj1 = 0 ;
7301 PyObject * obj2 = 0 ;
7302 PyObject * obj3 = 0 ;
7303 char *kwnames[] = {
7304 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7305 };
7306
7307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7310 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7311 if (PyErr_Occurred()) SWIG_fail;
7312 if (obj2) {
7313 {
7314 arg3 = wxString_in_helper(obj2);
7315 if (arg3 == NULL) SWIG_fail;
7316 temp3 = True;
7317 }
7318 }
7319 if (obj3) {
7320 arg4 = (bool) SWIG_AsBool(obj3);
7321 if (PyErr_Occurred()) SWIG_fail;
7322 }
7323 {
7324 PyThreadState* __tstate = wxPyBeginAllowThreads();
7325 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7326
7327 wxPyEndAllowThreads(__tstate);
7328 if (PyErr_Occurred()) SWIG_fail;
7329 }
7330 resultobj = result;
7331 {
7332 if (temp3)
7333 delete arg3;
7334 }
7335 return resultobj;
7336 fail:
7337 {
7338 if (temp3)
7339 delete arg3;
7340 }
7341 return NULL;
7342 }
7343
7344
7345 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
7346 PyObject *resultobj;
7347 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7348 int arg2 ;
7349 wxString const &arg3_defvalue = wxPyEmptyString ;
7350 wxString *arg3 = (wxString *) &arg3_defvalue ;
7351 bool result;
7352 bool temp3 = False ;
7353 PyObject * obj0 = 0 ;
7354 PyObject * obj1 = 0 ;
7355 PyObject * obj2 = 0 ;
7356 char *kwnames[] = {
7357 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7358 };
7359
7360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7363 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7364 if (PyErr_Occurred()) SWIG_fail;
7365 if (obj2) {
7366 {
7367 arg3 = wxString_in_helper(obj2);
7368 if (arg3 == NULL) SWIG_fail;
7369 temp3 = True;
7370 }
7371 }
7372 {
7373 PyThreadState* __tstate = wxPyBeginAllowThreads();
7374 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7375
7376 wxPyEndAllowThreads(__tstate);
7377 if (PyErr_Occurred()) SWIG_fail;
7378 }
7379 {
7380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7381 }
7382 {
7383 if (temp3)
7384 delete arg3;
7385 }
7386 return resultobj;
7387 fail:
7388 {
7389 if (temp3)
7390 delete arg3;
7391 }
7392 return NULL;
7393 }
7394
7395
7396 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) {
7397 PyObject *resultobj;
7398 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7399 wxWindow *arg2 = (wxWindow *) 0 ;
7400 PyObject * obj0 = 0 ;
7401 PyObject * obj1 = 0 ;
7402 char *kwnames[] = {
7403 (char *) "self",(char *) "parent", NULL
7404 };
7405
7406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7409 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7411 {
7412 PyThreadState* __tstate = wxPyBeginAllowThreads();
7413 (arg1)->SetDialogParent(arg2);
7414
7415 wxPyEndAllowThreads(__tstate);
7416 if (PyErr_Occurred()) SWIG_fail;
7417 }
7418 Py_INCREF(Py_None); resultobj = Py_None;
7419 return resultobj;
7420 fail:
7421 return NULL;
7422 }
7423
7424
7425 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) {
7426 PyObject *resultobj;
7427 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7428 wxString *arg2 = 0 ;
7429 bool temp2 = False ;
7430 PyObject * obj0 = 0 ;
7431 PyObject * obj1 = 0 ;
7432 char *kwnames[] = {
7433 (char *) "self",(char *) "title", NULL
7434 };
7435
7436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7439 {
7440 arg2 = wxString_in_helper(obj1);
7441 if (arg2 == NULL) SWIG_fail;
7442 temp2 = True;
7443 }
7444 {
7445 PyThreadState* __tstate = wxPyBeginAllowThreads();
7446 (arg1)->SetDialogTitle((wxString const &)*arg2);
7447
7448 wxPyEndAllowThreads(__tstate);
7449 if (PyErr_Occurred()) SWIG_fail;
7450 }
7451 Py_INCREF(Py_None); resultobj = Py_None;
7452 {
7453 if (temp2)
7454 delete arg2;
7455 }
7456 return resultobj;
7457 fail:
7458 {
7459 if (temp2)
7460 delete arg2;
7461 }
7462 return NULL;
7463 }
7464
7465
7466 static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) {
7467 PyObject *obj;
7468 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7469 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7470 Py_INCREF(obj);
7471 return Py_BuildValue((char *)"");
7472 }
7473 static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) {
7474 PyObject *resultobj;
7475 int arg1 ;
7476 int arg2 ;
7477 int arg3 ;
7478 int arg4 ;
7479 bool arg5 = (bool) False ;
7480 wxString const &arg6_defvalue = wxPyEmptyString ;
7481 wxString *arg6 = (wxString *) &arg6_defvalue ;
7482 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7483 wxFont *result;
7484 bool temp6 = False ;
7485 PyObject * obj0 = 0 ;
7486 PyObject * obj1 = 0 ;
7487 PyObject * obj2 = 0 ;
7488 PyObject * obj3 = 0 ;
7489 PyObject * obj4 = 0 ;
7490 PyObject * obj5 = 0 ;
7491 PyObject * obj6 = 0 ;
7492 char *kwnames[] = {
7493 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7494 };
7495
7496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7497 arg1 = (int) SWIG_AsInt(obj0);
7498 if (PyErr_Occurred()) SWIG_fail;
7499 arg2 = (int) SWIG_AsInt(obj1);
7500 if (PyErr_Occurred()) SWIG_fail;
7501 arg3 = (int) SWIG_AsInt(obj2);
7502 if (PyErr_Occurred()) SWIG_fail;
7503 arg4 = (int) SWIG_AsInt(obj3);
7504 if (PyErr_Occurred()) SWIG_fail;
7505 if (obj4) {
7506 arg5 = (bool) SWIG_AsBool(obj4);
7507 if (PyErr_Occurred()) SWIG_fail;
7508 }
7509 if (obj5) {
7510 {
7511 arg6 = wxString_in_helper(obj5);
7512 if (arg6 == NULL) SWIG_fail;
7513 temp6 = True;
7514 }
7515 }
7516 if (obj6) {
7517 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
7518 if (PyErr_Occurred()) SWIG_fail;
7519 }
7520 {
7521 PyThreadState* __tstate = wxPyBeginAllowThreads();
7522 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7523
7524 wxPyEndAllowThreads(__tstate);
7525 if (PyErr_Occurred()) SWIG_fail;
7526 }
7527 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7528 {
7529 if (temp6)
7530 delete arg6;
7531 }
7532 return resultobj;
7533 fail:
7534 {
7535 if (temp6)
7536 delete arg6;
7537 }
7538 return NULL;
7539 }
7540
7541
7542 static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) {
7543 PyObject *resultobj;
7544 wxFont *arg1 = (wxFont *) 0 ;
7545 PyObject * obj0 = 0 ;
7546 char *kwnames[] = {
7547 (char *) "self", NULL
7548 };
7549
7550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7553 {
7554 PyThreadState* __tstate = wxPyBeginAllowThreads();
7555 delete arg1;
7556
7557 wxPyEndAllowThreads(__tstate);
7558 if (PyErr_Occurred()) SWIG_fail;
7559 }
7560 Py_INCREF(Py_None); resultobj = Py_None;
7561 return resultobj;
7562 fail:
7563 return NULL;
7564 }
7565
7566
7567 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
7568 PyObject *resultobj;
7569 wxNativeFontInfo *arg1 = 0 ;
7570 wxFont *result;
7571 PyObject * obj0 = 0 ;
7572 char *kwnames[] = {
7573 (char *) "info", NULL
7574 };
7575
7576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7578 SWIG_POINTER_EXCEPTION | 0)) == -1)
7579 SWIG_fail;
7580 if (arg1 == NULL) {
7581 PyErr_SetString(PyExc_TypeError,"null reference");
7582 SWIG_fail;
7583 }
7584 {
7585 PyThreadState* __tstate = wxPyBeginAllowThreads();
7586 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7587
7588 wxPyEndAllowThreads(__tstate);
7589 if (PyErr_Occurred()) SWIG_fail;
7590 }
7591 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7592 return resultobj;
7593 fail:
7594 return NULL;
7595 }
7596
7597
7598 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) {
7599 PyObject *resultobj;
7600 wxString *arg1 = 0 ;
7601 wxFont *result;
7602 bool temp1 = False ;
7603 PyObject * obj0 = 0 ;
7604 char *kwnames[] = {
7605 (char *) "info", NULL
7606 };
7607
7608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7609 {
7610 arg1 = wxString_in_helper(obj0);
7611 if (arg1 == NULL) SWIG_fail;
7612 temp1 = True;
7613 }
7614 {
7615 PyThreadState* __tstate = wxPyBeginAllowThreads();
7616 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7617
7618 wxPyEndAllowThreads(__tstate);
7619 if (PyErr_Occurred()) SWIG_fail;
7620 }
7621 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7622 {
7623 if (temp1)
7624 delete arg1;
7625 }
7626 return resultobj;
7627 fail:
7628 {
7629 if (temp1)
7630 delete arg1;
7631 }
7632 return NULL;
7633 }
7634
7635
7636 static PyObject *_wrap_new_Font2(PyObject *, PyObject *args, PyObject *kwargs) {
7637 PyObject *resultobj;
7638 int arg1 ;
7639 int arg2 ;
7640 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7641 wxString const &arg4_defvalue = wxPyEmptyString ;
7642 wxString *arg4 = (wxString *) &arg4_defvalue ;
7643 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7644 wxFont *result;
7645 bool temp4 = False ;
7646 PyObject * obj0 = 0 ;
7647 PyObject * obj1 = 0 ;
7648 PyObject * obj2 = 0 ;
7649 PyObject * obj3 = 0 ;
7650 PyObject * obj4 = 0 ;
7651 char *kwnames[] = {
7652 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7653 };
7654
7655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7656 arg1 = (int) SWIG_AsInt(obj0);
7657 if (PyErr_Occurred()) SWIG_fail;
7658 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
7659 if (PyErr_Occurred()) SWIG_fail;
7660 if (obj2) {
7661 arg3 = (int) SWIG_AsInt(obj2);
7662 if (PyErr_Occurred()) SWIG_fail;
7663 }
7664 if (obj3) {
7665 {
7666 arg4 = wxString_in_helper(obj3);
7667 if (arg4 == NULL) SWIG_fail;
7668 temp4 = True;
7669 }
7670 }
7671 if (obj4) {
7672 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
7673 if (PyErr_Occurred()) SWIG_fail;
7674 }
7675 {
7676 PyThreadState* __tstate = wxPyBeginAllowThreads();
7677 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7678
7679 wxPyEndAllowThreads(__tstate);
7680 if (PyErr_Occurred()) SWIG_fail;
7681 }
7682 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7683 {
7684 if (temp4)
7685 delete arg4;
7686 }
7687 return resultobj;
7688 fail:
7689 {
7690 if (temp4)
7691 delete arg4;
7692 }
7693 return NULL;
7694 }
7695
7696
7697 static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
7698 PyObject *resultobj;
7699 wxFont *arg1 = (wxFont *) 0 ;
7700 bool result;
7701 PyObject * obj0 = 0 ;
7702 char *kwnames[] = {
7703 (char *) "self", NULL
7704 };
7705
7706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7709 {
7710 PyThreadState* __tstate = wxPyBeginAllowThreads();
7711 result = (bool)((wxFont const *)arg1)->Ok();
7712
7713 wxPyEndAllowThreads(__tstate);
7714 if (PyErr_Occurred()) SWIG_fail;
7715 }
7716 {
7717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7718 }
7719 return resultobj;
7720 fail:
7721 return NULL;
7722 }
7723
7724
7725 static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
7726 PyObject *resultobj;
7727 wxFont *arg1 = (wxFont *) 0 ;
7728 wxFont *arg2 = (wxFont *) 0 ;
7729 bool result;
7730 PyObject * obj0 = 0 ;
7731 PyObject * obj1 = 0 ;
7732 char *kwnames[] = {
7733 (char *) "self",(char *) "other", NULL
7734 };
7735
7736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7739 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7741 {
7742 PyThreadState* __tstate = wxPyBeginAllowThreads();
7743 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
7744
7745 wxPyEndAllowThreads(__tstate);
7746 if (PyErr_Occurred()) SWIG_fail;
7747 }
7748 {
7749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7750 }
7751 return resultobj;
7752 fail:
7753 return NULL;
7754 }
7755
7756
7757 static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
7758 PyObject *resultobj;
7759 wxFont *arg1 = (wxFont *) 0 ;
7760 wxFont *arg2 = (wxFont *) 0 ;
7761 bool result;
7762 PyObject * obj0 = 0 ;
7763 PyObject * obj1 = 0 ;
7764 char *kwnames[] = {
7765 (char *) "self",(char *) "other", NULL
7766 };
7767
7768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7771 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7773 {
7774 PyThreadState* __tstate = wxPyBeginAllowThreads();
7775 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
7776
7777 wxPyEndAllowThreads(__tstate);
7778 if (PyErr_Occurred()) SWIG_fail;
7779 }
7780 {
7781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7782 }
7783 return resultobj;
7784 fail:
7785 return NULL;
7786 }
7787
7788
7789 static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
7790 PyObject *resultobj;
7791 wxFont *arg1 = (wxFont *) 0 ;
7792 int result;
7793 PyObject * obj0 = 0 ;
7794 char *kwnames[] = {
7795 (char *) "self", NULL
7796 };
7797
7798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7801 {
7802 PyThreadState* __tstate = wxPyBeginAllowThreads();
7803 result = (int)((wxFont const *)arg1)->GetPointSize();
7804
7805 wxPyEndAllowThreads(__tstate);
7806 if (PyErr_Occurred()) SWIG_fail;
7807 }
7808 resultobj = SWIG_FromInt((int)result);
7809 return resultobj;
7810 fail:
7811 return NULL;
7812 }
7813
7814
7815 static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
7816 PyObject *resultobj;
7817 wxFont *arg1 = (wxFont *) 0 ;
7818 int result;
7819 PyObject * obj0 = 0 ;
7820 char *kwnames[] = {
7821 (char *) "self", NULL
7822 };
7823
7824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
7825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7827 {
7828 PyThreadState* __tstate = wxPyBeginAllowThreads();
7829 result = (int)((wxFont const *)arg1)->GetFamily();
7830
7831 wxPyEndAllowThreads(__tstate);
7832 if (PyErr_Occurred()) SWIG_fail;
7833 }
7834 resultobj = SWIG_FromInt((int)result);
7835 return resultobj;
7836 fail:
7837 return NULL;
7838 }
7839
7840
7841 static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
7842 PyObject *resultobj;
7843 wxFont *arg1 = (wxFont *) 0 ;
7844 int result;
7845 PyObject * obj0 = 0 ;
7846 char *kwnames[] = {
7847 (char *) "self", NULL
7848 };
7849
7850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
7851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7853 {
7854 PyThreadState* __tstate = wxPyBeginAllowThreads();
7855 result = (int)((wxFont const *)arg1)->GetStyle();
7856
7857 wxPyEndAllowThreads(__tstate);
7858 if (PyErr_Occurred()) SWIG_fail;
7859 }
7860 resultobj = SWIG_FromInt((int)result);
7861 return resultobj;
7862 fail:
7863 return NULL;
7864 }
7865
7866
7867 static PyObject *_wrap_Font_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
7868 PyObject *resultobj;
7869 wxFont *arg1 = (wxFont *) 0 ;
7870 int result;
7871 PyObject * obj0 = 0 ;
7872 char *kwnames[] = {
7873 (char *) "self", NULL
7874 };
7875
7876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
7877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7879 {
7880 PyThreadState* __tstate = wxPyBeginAllowThreads();
7881 result = (int)((wxFont const *)arg1)->GetWeight();
7882
7883 wxPyEndAllowThreads(__tstate);
7884 if (PyErr_Occurred()) SWIG_fail;
7885 }
7886 resultobj = SWIG_FromInt((int)result);
7887 return resultobj;
7888 fail:
7889 return NULL;
7890 }
7891
7892
7893 static PyObject *_wrap_Font_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
7894 PyObject *resultobj;
7895 wxFont *arg1 = (wxFont *) 0 ;
7896 bool result;
7897 PyObject * obj0 = 0 ;
7898 char *kwnames[] = {
7899 (char *) "self", NULL
7900 };
7901
7902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
7903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7905 {
7906 PyThreadState* __tstate = wxPyBeginAllowThreads();
7907 result = (bool)((wxFont const *)arg1)->GetUnderlined();
7908
7909 wxPyEndAllowThreads(__tstate);
7910 if (PyErr_Occurred()) SWIG_fail;
7911 }
7912 {
7913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7914 }
7915 return resultobj;
7916 fail:
7917 return NULL;
7918 }
7919
7920
7921 static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
7922 PyObject *resultobj;
7923 wxFont *arg1 = (wxFont *) 0 ;
7924 wxString result;
7925 PyObject * obj0 = 0 ;
7926 char *kwnames[] = {
7927 (char *) "self", NULL
7928 };
7929
7930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
7931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7933 {
7934 PyThreadState* __tstate = wxPyBeginAllowThreads();
7935 result = ((wxFont const *)arg1)->GetFaceName();
7936
7937 wxPyEndAllowThreads(__tstate);
7938 if (PyErr_Occurred()) SWIG_fail;
7939 }
7940 {
7941 #if wxUSE_UNICODE
7942 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7943 #else
7944 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7945 #endif
7946 }
7947 return resultobj;
7948 fail:
7949 return NULL;
7950 }
7951
7952
7953 static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7954 PyObject *resultobj;
7955 wxFont *arg1 = (wxFont *) 0 ;
7956 int result;
7957 PyObject * obj0 = 0 ;
7958 char *kwnames[] = {
7959 (char *) "self", NULL
7960 };
7961
7962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
7963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7965 {
7966 PyThreadState* __tstate = wxPyBeginAllowThreads();
7967 result = (int)((wxFont const *)arg1)->GetEncoding();
7968
7969 wxPyEndAllowThreads(__tstate);
7970 if (PyErr_Occurred()) SWIG_fail;
7971 }
7972 resultobj = SWIG_FromInt((int)result);
7973 return resultobj;
7974 fail:
7975 return NULL;
7976 }
7977
7978
7979 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
7980 PyObject *resultobj;
7981 wxFont *arg1 = (wxFont *) 0 ;
7982 wxNativeFontInfo *result;
7983 PyObject * obj0 = 0 ;
7984 char *kwnames[] = {
7985 (char *) "self", NULL
7986 };
7987
7988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
7989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7991 {
7992 PyThreadState* __tstate = wxPyBeginAllowThreads();
7993 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
7994
7995 wxPyEndAllowThreads(__tstate);
7996 if (PyErr_Occurred()) SWIG_fail;
7997 }
7998 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
7999 return resultobj;
8000 fail:
8001 return NULL;
8002 }
8003
8004
8005 static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) {
8006 PyObject *resultobj;
8007 wxFont *arg1 = (wxFont *) 0 ;
8008 bool result;
8009 PyObject * obj0 = 0 ;
8010 char *kwnames[] = {
8011 (char *) "self", NULL
8012 };
8013
8014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8017 {
8018 PyThreadState* __tstate = wxPyBeginAllowThreads();
8019 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8020
8021 wxPyEndAllowThreads(__tstate);
8022 if (PyErr_Occurred()) SWIG_fail;
8023 }
8024 {
8025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8026 }
8027 return resultobj;
8028 fail:
8029 return NULL;
8030 }
8031
8032
8033 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) {
8034 PyObject *resultobj;
8035 wxFont *arg1 = (wxFont *) 0 ;
8036 wxString result;
8037 PyObject * obj0 = 0 ;
8038 char *kwnames[] = {
8039 (char *) "self", NULL
8040 };
8041
8042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8045 {
8046 PyThreadState* __tstate = wxPyBeginAllowThreads();
8047 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8048
8049 wxPyEndAllowThreads(__tstate);
8050 if (PyErr_Occurred()) SWIG_fail;
8051 }
8052 {
8053 #if wxUSE_UNICODE
8054 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8055 #else
8056 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8057 #endif
8058 }
8059 return resultobj;
8060 fail:
8061 return NULL;
8062 }
8063
8064
8065 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
8066 PyObject *resultobj;
8067 wxFont *arg1 = (wxFont *) 0 ;
8068 wxString result;
8069 PyObject * obj0 = 0 ;
8070 char *kwnames[] = {
8071 (char *) "self", NULL
8072 };
8073
8074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8077 {
8078 PyThreadState* __tstate = wxPyBeginAllowThreads();
8079 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8080
8081 wxPyEndAllowThreads(__tstate);
8082 if (PyErr_Occurred()) SWIG_fail;
8083 }
8084 {
8085 #if wxUSE_UNICODE
8086 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8087 #else
8088 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8089 #endif
8090 }
8091 return resultobj;
8092 fail:
8093 return NULL;
8094 }
8095
8096
8097 static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
8098 PyObject *resultobj;
8099 wxFont *arg1 = (wxFont *) 0 ;
8100 int arg2 ;
8101 PyObject * obj0 = 0 ;
8102 PyObject * obj1 = 0 ;
8103 char *kwnames[] = {
8104 (char *) "self",(char *) "pointSize", NULL
8105 };
8106
8107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8110 arg2 = (int) SWIG_AsInt(obj1);
8111 if (PyErr_Occurred()) SWIG_fail;
8112 {
8113 PyThreadState* __tstate = wxPyBeginAllowThreads();
8114 (arg1)->SetPointSize(arg2);
8115
8116 wxPyEndAllowThreads(__tstate);
8117 if (PyErr_Occurred()) SWIG_fail;
8118 }
8119 Py_INCREF(Py_None); resultobj = Py_None;
8120 return resultobj;
8121 fail:
8122 return NULL;
8123 }
8124
8125
8126 static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
8127 PyObject *resultobj;
8128 wxFont *arg1 = (wxFont *) 0 ;
8129 int arg2 ;
8130 PyObject * obj0 = 0 ;
8131 PyObject * obj1 = 0 ;
8132 char *kwnames[] = {
8133 (char *) "self",(char *) "family", NULL
8134 };
8135
8136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8139 arg2 = (int) SWIG_AsInt(obj1);
8140 if (PyErr_Occurred()) SWIG_fail;
8141 {
8142 PyThreadState* __tstate = wxPyBeginAllowThreads();
8143 (arg1)->SetFamily(arg2);
8144
8145 wxPyEndAllowThreads(__tstate);
8146 if (PyErr_Occurred()) SWIG_fail;
8147 }
8148 Py_INCREF(Py_None); resultobj = Py_None;
8149 return resultobj;
8150 fail:
8151 return NULL;
8152 }
8153
8154
8155 static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
8156 PyObject *resultobj;
8157 wxFont *arg1 = (wxFont *) 0 ;
8158 int arg2 ;
8159 PyObject * obj0 = 0 ;
8160 PyObject * obj1 = 0 ;
8161 char *kwnames[] = {
8162 (char *) "self",(char *) "style", NULL
8163 };
8164
8165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8168 arg2 = (int) SWIG_AsInt(obj1);
8169 if (PyErr_Occurred()) SWIG_fail;
8170 {
8171 PyThreadState* __tstate = wxPyBeginAllowThreads();
8172 (arg1)->SetStyle(arg2);
8173
8174 wxPyEndAllowThreads(__tstate);
8175 if (PyErr_Occurred()) SWIG_fail;
8176 }
8177 Py_INCREF(Py_None); resultobj = Py_None;
8178 return resultobj;
8179 fail:
8180 return NULL;
8181 }
8182
8183
8184 static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
8185 PyObject *resultobj;
8186 wxFont *arg1 = (wxFont *) 0 ;
8187 int arg2 ;
8188 PyObject * obj0 = 0 ;
8189 PyObject * obj1 = 0 ;
8190 char *kwnames[] = {
8191 (char *) "self",(char *) "weight", NULL
8192 };
8193
8194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8197 arg2 = (int) SWIG_AsInt(obj1);
8198 if (PyErr_Occurred()) SWIG_fail;
8199 {
8200 PyThreadState* __tstate = wxPyBeginAllowThreads();
8201 (arg1)->SetWeight(arg2);
8202
8203 wxPyEndAllowThreads(__tstate);
8204 if (PyErr_Occurred()) SWIG_fail;
8205 }
8206 Py_INCREF(Py_None); resultobj = Py_None;
8207 return resultobj;
8208 fail:
8209 return NULL;
8210 }
8211
8212
8213 static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
8214 PyObject *resultobj;
8215 wxFont *arg1 = (wxFont *) 0 ;
8216 wxString *arg2 = 0 ;
8217 bool temp2 = False ;
8218 PyObject * obj0 = 0 ;
8219 PyObject * obj1 = 0 ;
8220 char *kwnames[] = {
8221 (char *) "self",(char *) "faceName", NULL
8222 };
8223
8224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8227 {
8228 arg2 = wxString_in_helper(obj1);
8229 if (arg2 == NULL) SWIG_fail;
8230 temp2 = True;
8231 }
8232 {
8233 PyThreadState* __tstate = wxPyBeginAllowThreads();
8234 (arg1)->SetFaceName((wxString const &)*arg2);
8235
8236 wxPyEndAllowThreads(__tstate);
8237 if (PyErr_Occurred()) SWIG_fail;
8238 }
8239 Py_INCREF(Py_None); resultobj = Py_None;
8240 {
8241 if (temp2)
8242 delete arg2;
8243 }
8244 return resultobj;
8245 fail:
8246 {
8247 if (temp2)
8248 delete arg2;
8249 }
8250 return NULL;
8251 }
8252
8253
8254 static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
8255 PyObject *resultobj;
8256 wxFont *arg1 = (wxFont *) 0 ;
8257 bool arg2 ;
8258 PyObject * obj0 = 0 ;
8259 PyObject * obj1 = 0 ;
8260 char *kwnames[] = {
8261 (char *) "self",(char *) "underlined", NULL
8262 };
8263
8264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8267 arg2 = (bool) SWIG_AsBool(obj1);
8268 if (PyErr_Occurred()) SWIG_fail;
8269 {
8270 PyThreadState* __tstate = wxPyBeginAllowThreads();
8271 (arg1)->SetUnderlined(arg2);
8272
8273 wxPyEndAllowThreads(__tstate);
8274 if (PyErr_Occurred()) SWIG_fail;
8275 }
8276 Py_INCREF(Py_None); resultobj = Py_None;
8277 return resultobj;
8278 fail:
8279 return NULL;
8280 }
8281
8282
8283 static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8284 PyObject *resultobj;
8285 wxFont *arg1 = (wxFont *) 0 ;
8286 int arg2 ;
8287 PyObject * obj0 = 0 ;
8288 PyObject * obj1 = 0 ;
8289 char *kwnames[] = {
8290 (char *) "self",(char *) "encoding", NULL
8291 };
8292
8293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8296 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8297 if (PyErr_Occurred()) SWIG_fail;
8298 {
8299 PyThreadState* __tstate = wxPyBeginAllowThreads();
8300 (arg1)->SetEncoding((wxFontEncoding )arg2);
8301
8302 wxPyEndAllowThreads(__tstate);
8303 if (PyErr_Occurred()) SWIG_fail;
8304 }
8305 Py_INCREF(Py_None); resultobj = Py_None;
8306 return resultobj;
8307 fail:
8308 return NULL;
8309 }
8310
8311
8312 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8313 PyObject *resultobj;
8314 wxFont *arg1 = (wxFont *) 0 ;
8315 wxNativeFontInfo *arg2 = 0 ;
8316 PyObject * obj0 = 0 ;
8317 PyObject * obj1 = 0 ;
8318 char *kwnames[] = {
8319 (char *) "self",(char *) "info", NULL
8320 };
8321
8322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8325 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8326 SWIG_POINTER_EXCEPTION | 0)) == -1)
8327 SWIG_fail;
8328 if (arg2 == NULL) {
8329 PyErr_SetString(PyExc_TypeError,"null reference");
8330 SWIG_fail;
8331 }
8332 {
8333 PyThreadState* __tstate = wxPyBeginAllowThreads();
8334 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8335
8336 wxPyEndAllowThreads(__tstate);
8337 if (PyErr_Occurred()) SWIG_fail;
8338 }
8339 Py_INCREF(Py_None); resultobj = Py_None;
8340 return resultobj;
8341 fail:
8342 return NULL;
8343 }
8344
8345
8346 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) {
8347 PyObject *resultobj;
8348 wxFont *arg1 = (wxFont *) 0 ;
8349 wxString *arg2 = 0 ;
8350 bool temp2 = False ;
8351 PyObject * obj0 = 0 ;
8352 PyObject * obj1 = 0 ;
8353 char *kwnames[] = {
8354 (char *) "self",(char *) "info", NULL
8355 };
8356
8357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8360 {
8361 arg2 = wxString_in_helper(obj1);
8362 if (arg2 == NULL) SWIG_fail;
8363 temp2 = True;
8364 }
8365 {
8366 PyThreadState* __tstate = wxPyBeginAllowThreads();
8367 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8368
8369 wxPyEndAllowThreads(__tstate);
8370 if (PyErr_Occurred()) SWIG_fail;
8371 }
8372 Py_INCREF(Py_None); resultobj = Py_None;
8373 {
8374 if (temp2)
8375 delete arg2;
8376 }
8377 return resultobj;
8378 fail:
8379 {
8380 if (temp2)
8381 delete arg2;
8382 }
8383 return NULL;
8384 }
8385
8386
8387 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
8388 PyObject *resultobj;
8389 wxFont *arg1 = (wxFont *) 0 ;
8390 wxString *arg2 = 0 ;
8391 bool temp2 = False ;
8392 PyObject * obj0 = 0 ;
8393 PyObject * obj1 = 0 ;
8394 char *kwnames[] = {
8395 (char *) "self",(char *) "info", NULL
8396 };
8397
8398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8401 {
8402 arg2 = wxString_in_helper(obj1);
8403 if (arg2 == NULL) SWIG_fail;
8404 temp2 = True;
8405 }
8406 {
8407 PyThreadState* __tstate = wxPyBeginAllowThreads();
8408 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8409
8410 wxPyEndAllowThreads(__tstate);
8411 if (PyErr_Occurred()) SWIG_fail;
8412 }
8413 Py_INCREF(Py_None); resultobj = Py_None;
8414 {
8415 if (temp2)
8416 delete arg2;
8417 }
8418 return resultobj;
8419 fail:
8420 {
8421 if (temp2)
8422 delete arg2;
8423 }
8424 return NULL;
8425 }
8426
8427
8428 static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) {
8429 PyObject *resultobj;
8430 wxFont *arg1 = (wxFont *) 0 ;
8431 wxString result;
8432 PyObject * obj0 = 0 ;
8433 char *kwnames[] = {
8434 (char *) "self", NULL
8435 };
8436
8437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8440 {
8441 PyThreadState* __tstate = wxPyBeginAllowThreads();
8442 result = ((wxFont const *)arg1)->GetFamilyString();
8443
8444 wxPyEndAllowThreads(__tstate);
8445 if (PyErr_Occurred()) SWIG_fail;
8446 }
8447 {
8448 #if wxUSE_UNICODE
8449 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8450 #else
8451 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8452 #endif
8453 }
8454 return resultobj;
8455 fail:
8456 return NULL;
8457 }
8458
8459
8460 static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) {
8461 PyObject *resultobj;
8462 wxFont *arg1 = (wxFont *) 0 ;
8463 wxString result;
8464 PyObject * obj0 = 0 ;
8465 char *kwnames[] = {
8466 (char *) "self", NULL
8467 };
8468
8469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8472 {
8473 PyThreadState* __tstate = wxPyBeginAllowThreads();
8474 result = ((wxFont const *)arg1)->GetStyleString();
8475
8476 wxPyEndAllowThreads(__tstate);
8477 if (PyErr_Occurred()) SWIG_fail;
8478 }
8479 {
8480 #if wxUSE_UNICODE
8481 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8482 #else
8483 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8484 #endif
8485 }
8486 return resultobj;
8487 fail:
8488 return NULL;
8489 }
8490
8491
8492 static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) {
8493 PyObject *resultobj;
8494 wxFont *arg1 = (wxFont *) 0 ;
8495 wxString result;
8496 PyObject * obj0 = 0 ;
8497 char *kwnames[] = {
8498 (char *) "self", NULL
8499 };
8500
8501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8504 {
8505 PyThreadState* __tstate = wxPyBeginAllowThreads();
8506 result = ((wxFont const *)arg1)->GetWeightString();
8507
8508 wxPyEndAllowThreads(__tstate);
8509 if (PyErr_Occurred()) SWIG_fail;
8510 }
8511 {
8512 #if wxUSE_UNICODE
8513 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8514 #else
8515 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8516 #endif
8517 }
8518 return resultobj;
8519 fail:
8520 return NULL;
8521 }
8522
8523
8524 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
8525 PyObject *resultobj;
8526 wxFont *arg1 = (wxFont *) 0 ;
8527 bool arg2 = (bool) True ;
8528 PyObject * obj0 = 0 ;
8529 PyObject * obj1 = 0 ;
8530 char *kwnames[] = {
8531 (char *) "self",(char *) "no", NULL
8532 };
8533
8534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8537 if (obj1) {
8538 arg2 = (bool) SWIG_AsBool(obj1);
8539 if (PyErr_Occurred()) SWIG_fail;
8540 }
8541 {
8542 PyThreadState* __tstate = wxPyBeginAllowThreads();
8543 (arg1)->SetNoAntiAliasing(arg2);
8544
8545 wxPyEndAllowThreads(__tstate);
8546 if (PyErr_Occurred()) SWIG_fail;
8547 }
8548 Py_INCREF(Py_None); resultobj = Py_None;
8549 return resultobj;
8550 fail:
8551 return NULL;
8552 }
8553
8554
8555 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
8556 PyObject *resultobj;
8557 wxFont *arg1 = (wxFont *) 0 ;
8558 bool result;
8559 PyObject * obj0 = 0 ;
8560 char *kwnames[] = {
8561 (char *) "self", NULL
8562 };
8563
8564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8567 {
8568 PyThreadState* __tstate = wxPyBeginAllowThreads();
8569 result = (bool)(arg1)->GetNoAntiAliasing();
8570
8571 wxPyEndAllowThreads(__tstate);
8572 if (PyErr_Occurred()) SWIG_fail;
8573 }
8574 {
8575 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8576 }
8577 return resultobj;
8578 fail:
8579 return NULL;
8580 }
8581
8582
8583 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8584 PyObject *resultobj;
8585 int result;
8586 char *kwnames[] = {
8587 NULL
8588 };
8589
8590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8591 {
8592 PyThreadState* __tstate = wxPyBeginAllowThreads();
8593 result = (int)wxFont::GetDefaultEncoding();
8594
8595 wxPyEndAllowThreads(__tstate);
8596 if (PyErr_Occurred()) SWIG_fail;
8597 }
8598 resultobj = SWIG_FromInt((int)result);
8599 return resultobj;
8600 fail:
8601 return NULL;
8602 }
8603
8604
8605 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8606 PyObject *resultobj;
8607 int arg1 ;
8608 PyObject * obj0 = 0 ;
8609 char *kwnames[] = {
8610 (char *) "encoding", NULL
8611 };
8612
8613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8614 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
8615 if (PyErr_Occurred()) SWIG_fail;
8616 {
8617 PyThreadState* __tstate = wxPyBeginAllowThreads();
8618 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8619
8620 wxPyEndAllowThreads(__tstate);
8621 if (PyErr_Occurred()) SWIG_fail;
8622 }
8623 Py_INCREF(Py_None); resultobj = Py_None;
8624 return resultobj;
8625 fail:
8626 return NULL;
8627 }
8628
8629
8630 static PyObject * Font_swigregister(PyObject *, PyObject *args) {
8631 PyObject *obj;
8632 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8633 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8634 Py_INCREF(obj);
8635 return Py_BuildValue((char *)"");
8636 }
8637 static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
8638 PyObject *resultobj;
8639 wxPyFontEnumerator *result;
8640 char *kwnames[] = {
8641 NULL
8642 };
8643
8644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8645 {
8646 PyThreadState* __tstate = wxPyBeginAllowThreads();
8647 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8648
8649 wxPyEndAllowThreads(__tstate);
8650 if (PyErr_Occurred()) SWIG_fail;
8651 }
8652 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
8653 return resultobj;
8654 fail:
8655 return NULL;
8656 }
8657
8658
8659 static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
8660 PyObject *resultobj;
8661 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8662 PyObject * obj0 = 0 ;
8663 char *kwnames[] = {
8664 (char *) "self", NULL
8665 };
8666
8667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8670 {
8671 PyThreadState* __tstate = wxPyBeginAllowThreads();
8672 delete arg1;
8673
8674 wxPyEndAllowThreads(__tstate);
8675 if (PyErr_Occurred()) SWIG_fail;
8676 }
8677 Py_INCREF(Py_None); resultobj = Py_None;
8678 return resultobj;
8679 fail:
8680 return NULL;
8681 }
8682
8683
8684 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8685 PyObject *resultobj;
8686 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8687 PyObject *arg2 = (PyObject *) 0 ;
8688 PyObject *arg3 = (PyObject *) 0 ;
8689 bool arg4 ;
8690 PyObject * obj0 = 0 ;
8691 PyObject * obj1 = 0 ;
8692 PyObject * obj2 = 0 ;
8693 PyObject * obj3 = 0 ;
8694 char *kwnames[] = {
8695 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8696 };
8697
8698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8701 arg2 = obj1;
8702 arg3 = obj2;
8703 arg4 = (bool) SWIG_AsBool(obj3);
8704 if (PyErr_Occurred()) SWIG_fail;
8705 {
8706 PyThreadState* __tstate = wxPyBeginAllowThreads();
8707 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8708
8709 wxPyEndAllowThreads(__tstate);
8710 if (PyErr_Occurred()) SWIG_fail;
8711 }
8712 Py_INCREF(Py_None); resultobj = Py_None;
8713 return resultobj;
8714 fail:
8715 return NULL;
8716 }
8717
8718
8719 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
8720 PyObject *resultobj;
8721 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8722 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8723 bool arg3 = (bool) False ;
8724 bool result;
8725 PyObject * obj0 = 0 ;
8726 PyObject * obj1 = 0 ;
8727 PyObject * obj2 = 0 ;
8728 char *kwnames[] = {
8729 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8730 };
8731
8732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8735 if (obj1) {
8736 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8737 if (PyErr_Occurred()) SWIG_fail;
8738 }
8739 if (obj2) {
8740 arg3 = (bool) SWIG_AsBool(obj2);
8741 if (PyErr_Occurred()) SWIG_fail;
8742 }
8743 {
8744 PyThreadState* __tstate = wxPyBeginAllowThreads();
8745 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8746
8747 wxPyEndAllowThreads(__tstate);
8748 if (PyErr_Occurred()) SWIG_fail;
8749 }
8750 {
8751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8752 }
8753 return resultobj;
8754 fail:
8755 return NULL;
8756 }
8757
8758
8759 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
8760 PyObject *resultobj;
8761 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8762 wxString const &arg2_defvalue = wxPyEmptyString ;
8763 wxString *arg2 = (wxString *) &arg2_defvalue ;
8764 bool result;
8765 bool temp2 = False ;
8766 PyObject * obj0 = 0 ;
8767 PyObject * obj1 = 0 ;
8768 char *kwnames[] = {
8769 (char *) "self",(char *) "facename", NULL
8770 };
8771
8772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8775 if (obj1) {
8776 {
8777 arg2 = wxString_in_helper(obj1);
8778 if (arg2 == NULL) SWIG_fail;
8779 temp2 = True;
8780 }
8781 }
8782 {
8783 PyThreadState* __tstate = wxPyBeginAllowThreads();
8784 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8785
8786 wxPyEndAllowThreads(__tstate);
8787 if (PyErr_Occurred()) SWIG_fail;
8788 }
8789 {
8790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8791 }
8792 {
8793 if (temp2)
8794 delete arg2;
8795 }
8796 return resultobj;
8797 fail:
8798 {
8799 if (temp2)
8800 delete arg2;
8801 }
8802 return NULL;
8803 }
8804
8805
8806 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
8807 PyObject *resultobj;
8808 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8809 PyObject *result;
8810 PyObject * obj0 = 0 ;
8811 char *kwnames[] = {
8812 (char *) "self", NULL
8813 };
8814
8815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
8816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8818 {
8819 PyThreadState* __tstate = wxPyBeginAllowThreads();
8820 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8821
8822 wxPyEndAllowThreads(__tstate);
8823 if (PyErr_Occurred()) SWIG_fail;
8824 }
8825 resultobj = result;
8826 return resultobj;
8827 fail:
8828 return NULL;
8829 }
8830
8831
8832 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
8833 PyObject *resultobj;
8834 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8835 PyObject *result;
8836 PyObject * obj0 = 0 ;
8837 char *kwnames[] = {
8838 (char *) "self", NULL
8839 };
8840
8841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
8842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8844 {
8845 PyThreadState* __tstate = wxPyBeginAllowThreads();
8846 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
8847
8848 wxPyEndAllowThreads(__tstate);
8849 if (PyErr_Occurred()) SWIG_fail;
8850 }
8851 resultobj = result;
8852 return resultobj;
8853 fail:
8854 return NULL;
8855 }
8856
8857
8858 static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) {
8859 PyObject *obj;
8860 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8861 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
8862 Py_INCREF(obj);
8863 return Py_BuildValue((char *)"");
8864 }
8865 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) {
8866 PyObject *resultobj;
8867 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8868 int arg2 ;
8869 PyObject * obj0 = 0 ;
8870 PyObject * obj1 = 0 ;
8871 char *kwnames[] = {
8872 (char *) "self",(char *) "Language", NULL
8873 };
8874
8875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
8876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8878 arg2 = (int) SWIG_AsInt(obj1);
8879 if (PyErr_Occurred()) SWIG_fail;
8880 if (arg1) (arg1)->Language = arg2;
8881
8882 Py_INCREF(Py_None); resultobj = Py_None;
8883 return resultobj;
8884 fail:
8885 return NULL;
8886 }
8887
8888
8889 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) {
8890 PyObject *resultobj;
8891 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8892 int result;
8893 PyObject * obj0 = 0 ;
8894 char *kwnames[] = {
8895 (char *) "self", NULL
8896 };
8897
8898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
8899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8901 result = (int) ((arg1)->Language);
8902
8903 resultobj = SWIG_FromInt((int)result);
8904 return resultobj;
8905 fail:
8906 return NULL;
8907 }
8908
8909
8910 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) {
8911 PyObject *resultobj;
8912 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8913 wxString *arg2 = (wxString *) 0 ;
8914 bool temp2 = False ;
8915 PyObject * obj0 = 0 ;
8916 PyObject * obj1 = 0 ;
8917 char *kwnames[] = {
8918 (char *) "self",(char *) "CanonicalName", NULL
8919 };
8920
8921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
8922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8924 {
8925 arg2 = wxString_in_helper(obj1);
8926 if (arg2 == NULL) SWIG_fail;
8927 temp2 = True;
8928 }
8929 if (arg1) (arg1)->CanonicalName = *arg2;
8930
8931 Py_INCREF(Py_None); resultobj = Py_None;
8932 {
8933 if (temp2)
8934 delete arg2;
8935 }
8936 return resultobj;
8937 fail:
8938 {
8939 if (temp2)
8940 delete arg2;
8941 }
8942 return NULL;
8943 }
8944
8945
8946 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) {
8947 PyObject *resultobj;
8948 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8949 wxString *result;
8950 PyObject * obj0 = 0 ;
8951 char *kwnames[] = {
8952 (char *) "self", NULL
8953 };
8954
8955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
8956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8958 result = (wxString *)& ((arg1)->CanonicalName);
8959
8960 {
8961 #if wxUSE_UNICODE
8962 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8963 #else
8964 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8965 #endif
8966 }
8967 return resultobj;
8968 fail:
8969 return NULL;
8970 }
8971
8972
8973 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) {
8974 PyObject *resultobj;
8975 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8976 wxString *arg2 = (wxString *) 0 ;
8977 bool temp2 = False ;
8978 PyObject * obj0 = 0 ;
8979 PyObject * obj1 = 0 ;
8980 char *kwnames[] = {
8981 (char *) "self",(char *) "Description", NULL
8982 };
8983
8984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
8985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8987 {
8988 arg2 = wxString_in_helper(obj1);
8989 if (arg2 == NULL) SWIG_fail;
8990 temp2 = True;
8991 }
8992 if (arg1) (arg1)->Description = *arg2;
8993
8994 Py_INCREF(Py_None); resultobj = Py_None;
8995 {
8996 if (temp2)
8997 delete arg2;
8998 }
8999 return resultobj;
9000 fail:
9001 {
9002 if (temp2)
9003 delete arg2;
9004 }
9005 return NULL;
9006 }
9007
9008
9009 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) {
9010 PyObject *resultobj;
9011 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9012 wxString *result;
9013 PyObject * obj0 = 0 ;
9014 char *kwnames[] = {
9015 (char *) "self", NULL
9016 };
9017
9018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9021 result = (wxString *)& ((arg1)->Description);
9022
9023 {
9024 #if wxUSE_UNICODE
9025 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9026 #else
9027 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9028 #endif
9029 }
9030 return resultobj;
9031 fail:
9032 return NULL;
9033 }
9034
9035
9036 static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) {
9037 PyObject *obj;
9038 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9039 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9040 Py_INCREF(obj);
9041 return Py_BuildValue((char *)"");
9042 }
9043 static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
9044 PyObject *resultobj;
9045 int arg1 = (int) wxLANGUAGE_DEFAULT ;
9046 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9047 wxLocale *result;
9048 PyObject * obj0 = 0 ;
9049 PyObject * obj1 = 0 ;
9050 char *kwnames[] = {
9051 (char *) "language",(char *) "flags", NULL
9052 };
9053
9054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9055 if (obj0) {
9056 arg1 = (int) SWIG_AsInt(obj0);
9057 if (PyErr_Occurred()) SWIG_fail;
9058 }
9059 if (obj1) {
9060 arg2 = (int) SWIG_AsInt(obj1);
9061 if (PyErr_Occurred()) SWIG_fail;
9062 }
9063 {
9064 PyThreadState* __tstate = wxPyBeginAllowThreads();
9065 result = (wxLocale *)new wxLocale(arg1,arg2);
9066
9067 wxPyEndAllowThreads(__tstate);
9068 if (PyErr_Occurred()) SWIG_fail;
9069 }
9070 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9071 return resultobj;
9072 fail:
9073 return NULL;
9074 }
9075
9076
9077 static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
9078 PyObject *resultobj;
9079 wxLocale *arg1 = (wxLocale *) 0 ;
9080 PyObject * obj0 = 0 ;
9081 char *kwnames[] = {
9082 (char *) "self", NULL
9083 };
9084
9085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9088 {
9089 PyThreadState* __tstate = wxPyBeginAllowThreads();
9090 delete arg1;
9091
9092 wxPyEndAllowThreads(__tstate);
9093 if (PyErr_Occurred()) SWIG_fail;
9094 }
9095 Py_INCREF(Py_None); resultobj = Py_None;
9096 return resultobj;
9097 fail:
9098 return NULL;
9099 }
9100
9101
9102 static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) {
9103 PyObject *resultobj;
9104 wxLocale *arg1 = (wxLocale *) 0 ;
9105 wxString *arg2 = 0 ;
9106 wxString const &arg3_defvalue = wxPyEmptyString ;
9107 wxString *arg3 = (wxString *) &arg3_defvalue ;
9108 wxString const &arg4_defvalue = wxPyEmptyString ;
9109 wxString *arg4 = (wxString *) &arg4_defvalue ;
9110 bool arg5 = (bool) True ;
9111 bool arg6 = (bool) False ;
9112 bool result;
9113 bool temp2 = False ;
9114 bool temp3 = False ;
9115 bool temp4 = False ;
9116 PyObject * obj0 = 0 ;
9117 PyObject * obj1 = 0 ;
9118 PyObject * obj2 = 0 ;
9119 PyObject * obj3 = 0 ;
9120 PyObject * obj4 = 0 ;
9121 PyObject * obj5 = 0 ;
9122 char *kwnames[] = {
9123 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9124 };
9125
9126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9129 {
9130 arg2 = wxString_in_helper(obj1);
9131 if (arg2 == NULL) SWIG_fail;
9132 temp2 = True;
9133 }
9134 if (obj2) {
9135 {
9136 arg3 = wxString_in_helper(obj2);
9137 if (arg3 == NULL) SWIG_fail;
9138 temp3 = True;
9139 }
9140 }
9141 if (obj3) {
9142 {
9143 arg4 = wxString_in_helper(obj3);
9144 if (arg4 == NULL) SWIG_fail;
9145 temp4 = True;
9146 }
9147 }
9148 if (obj4) {
9149 arg5 = (bool) SWIG_AsBool(obj4);
9150 if (PyErr_Occurred()) SWIG_fail;
9151 }
9152 if (obj5) {
9153 arg6 = (bool) SWIG_AsBool(obj5);
9154 if (PyErr_Occurred()) SWIG_fail;
9155 }
9156 {
9157 PyThreadState* __tstate = wxPyBeginAllowThreads();
9158 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9159
9160 wxPyEndAllowThreads(__tstate);
9161 if (PyErr_Occurred()) SWIG_fail;
9162 }
9163 {
9164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9165 }
9166 {
9167 if (temp2)
9168 delete arg2;
9169 }
9170 {
9171 if (temp3)
9172 delete arg3;
9173 }
9174 {
9175 if (temp4)
9176 delete arg4;
9177 }
9178 return resultobj;
9179 fail:
9180 {
9181 if (temp2)
9182 delete arg2;
9183 }
9184 {
9185 if (temp3)
9186 delete arg3;
9187 }
9188 {
9189 if (temp4)
9190 delete arg4;
9191 }
9192 return NULL;
9193 }
9194
9195
9196 static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) {
9197 PyObject *resultobj;
9198 wxLocale *arg1 = (wxLocale *) 0 ;
9199 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9200 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9201 bool result;
9202 PyObject * obj0 = 0 ;
9203 PyObject * obj1 = 0 ;
9204 PyObject * obj2 = 0 ;
9205 char *kwnames[] = {
9206 (char *) "self",(char *) "language",(char *) "flags", NULL
9207 };
9208
9209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9212 if (obj1) {
9213 arg2 = (int) SWIG_AsInt(obj1);
9214 if (PyErr_Occurred()) SWIG_fail;
9215 }
9216 if (obj2) {
9217 arg3 = (int) SWIG_AsInt(obj2);
9218 if (PyErr_Occurred()) SWIG_fail;
9219 }
9220 {
9221 PyThreadState* __tstate = wxPyBeginAllowThreads();
9222 result = (bool)(arg1)->Init(arg2,arg3);
9223
9224 wxPyEndAllowThreads(__tstate);
9225 if (PyErr_Occurred()) SWIG_fail;
9226 }
9227 {
9228 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9229 }
9230 return resultobj;
9231 fail:
9232 return NULL;
9233 }
9234
9235
9236 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
9237 PyObject *resultobj;
9238 int result;
9239 char *kwnames[] = {
9240 NULL
9241 };
9242
9243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9244 {
9245 PyThreadState* __tstate = wxPyBeginAllowThreads();
9246 result = (int)wxLocale::GetSystemLanguage();
9247
9248 wxPyEndAllowThreads(__tstate);
9249 if (PyErr_Occurred()) SWIG_fail;
9250 }
9251 resultobj = SWIG_FromInt((int)result);
9252 return resultobj;
9253 fail:
9254 return NULL;
9255 }
9256
9257
9258 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
9259 PyObject *resultobj;
9260 int result;
9261 char *kwnames[] = {
9262 NULL
9263 };
9264
9265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9266 {
9267 PyThreadState* __tstate = wxPyBeginAllowThreads();
9268 result = (int)wxLocale::GetSystemEncoding();
9269
9270 wxPyEndAllowThreads(__tstate);
9271 if (PyErr_Occurred()) SWIG_fail;
9272 }
9273 resultobj = SWIG_FromInt((int)result);
9274 return resultobj;
9275 fail:
9276 return NULL;
9277 }
9278
9279
9280 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
9281 PyObject *resultobj;
9282 wxString result;
9283 char *kwnames[] = {
9284 NULL
9285 };
9286
9287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9288 {
9289 PyThreadState* __tstate = wxPyBeginAllowThreads();
9290 result = wxLocale::GetSystemEncodingName();
9291
9292 wxPyEndAllowThreads(__tstate);
9293 if (PyErr_Occurred()) SWIG_fail;
9294 }
9295 {
9296 #if wxUSE_UNICODE
9297 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9298 #else
9299 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9300 #endif
9301 }
9302 return resultobj;
9303 fail:
9304 return NULL;
9305 }
9306
9307
9308 static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
9309 PyObject *resultobj;
9310 wxLocale *arg1 = (wxLocale *) 0 ;
9311 bool result;
9312 PyObject * obj0 = 0 ;
9313 char *kwnames[] = {
9314 (char *) "self", NULL
9315 };
9316
9317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9320 {
9321 PyThreadState* __tstate = wxPyBeginAllowThreads();
9322 result = (bool)((wxLocale const *)arg1)->IsOk();
9323
9324 wxPyEndAllowThreads(__tstate);
9325 if (PyErr_Occurred()) SWIG_fail;
9326 }
9327 {
9328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9329 }
9330 return resultobj;
9331 fail:
9332 return NULL;
9333 }
9334
9335
9336 static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
9337 PyObject *resultobj;
9338 wxLocale *arg1 = (wxLocale *) 0 ;
9339 wxString result;
9340 PyObject * obj0 = 0 ;
9341 char *kwnames[] = {
9342 (char *) "self", NULL
9343 };
9344
9345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9348 {
9349 PyThreadState* __tstate = wxPyBeginAllowThreads();
9350 result = ((wxLocale const *)arg1)->GetLocale();
9351
9352 wxPyEndAllowThreads(__tstate);
9353 if (PyErr_Occurred()) SWIG_fail;
9354 }
9355 {
9356 #if wxUSE_UNICODE
9357 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9358 #else
9359 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9360 #endif
9361 }
9362 return resultobj;
9363 fail:
9364 return NULL;
9365 }
9366
9367
9368 static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
9369 PyObject *resultobj;
9370 wxLocale *arg1 = (wxLocale *) 0 ;
9371 int result;
9372 PyObject * obj0 = 0 ;
9373 char *kwnames[] = {
9374 (char *) "self", NULL
9375 };
9376
9377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9380 {
9381 PyThreadState* __tstate = wxPyBeginAllowThreads();
9382 result = (int)((wxLocale const *)arg1)->GetLanguage();
9383
9384 wxPyEndAllowThreads(__tstate);
9385 if (PyErr_Occurred()) SWIG_fail;
9386 }
9387 resultobj = SWIG_FromInt((int)result);
9388 return resultobj;
9389 fail:
9390 return NULL;
9391 }
9392
9393
9394 static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) {
9395 PyObject *resultobj;
9396 wxLocale *arg1 = (wxLocale *) 0 ;
9397 wxString result;
9398 PyObject * obj0 = 0 ;
9399 char *kwnames[] = {
9400 (char *) "self", NULL
9401 };
9402
9403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9406 {
9407 PyThreadState* __tstate = wxPyBeginAllowThreads();
9408 result = ((wxLocale const *)arg1)->GetSysName();
9409
9410 wxPyEndAllowThreads(__tstate);
9411 if (PyErr_Occurred()) SWIG_fail;
9412 }
9413 {
9414 #if wxUSE_UNICODE
9415 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9416 #else
9417 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9418 #endif
9419 }
9420 return resultobj;
9421 fail:
9422 return NULL;
9423 }
9424
9425
9426 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) {
9427 PyObject *resultobj;
9428 wxLocale *arg1 = (wxLocale *) 0 ;
9429 wxString result;
9430 PyObject * obj0 = 0 ;
9431 char *kwnames[] = {
9432 (char *) "self", NULL
9433 };
9434
9435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9438 {
9439 PyThreadState* __tstate = wxPyBeginAllowThreads();
9440 result = ((wxLocale const *)arg1)->GetCanonicalName();
9441
9442 wxPyEndAllowThreads(__tstate);
9443 if (PyErr_Occurred()) SWIG_fail;
9444 }
9445 {
9446 #if wxUSE_UNICODE
9447 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9448 #else
9449 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9450 #endif
9451 }
9452 return resultobj;
9453 fail:
9454 return NULL;
9455 }
9456
9457
9458 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
9459 PyObject *resultobj;
9460 wxString *arg1 = 0 ;
9461 bool temp1 = False ;
9462 PyObject * obj0 = 0 ;
9463 char *kwnames[] = {
9464 (char *) "prefix", NULL
9465 };
9466
9467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9468 {
9469 arg1 = wxString_in_helper(obj0);
9470 if (arg1 == NULL) SWIG_fail;
9471 temp1 = True;
9472 }
9473 {
9474 PyThreadState* __tstate = wxPyBeginAllowThreads();
9475 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9476
9477 wxPyEndAllowThreads(__tstate);
9478 if (PyErr_Occurred()) SWIG_fail;
9479 }
9480 Py_INCREF(Py_None); resultobj = Py_None;
9481 {
9482 if (temp1)
9483 delete arg1;
9484 }
9485 return resultobj;
9486 fail:
9487 {
9488 if (temp1)
9489 delete arg1;
9490 }
9491 return NULL;
9492 }
9493
9494
9495 static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) {
9496 PyObject *resultobj;
9497 wxLocale *arg1 = (wxLocale *) 0 ;
9498 wxString *arg2 = 0 ;
9499 bool result;
9500 bool temp2 = False ;
9501 PyObject * obj0 = 0 ;
9502 PyObject * obj1 = 0 ;
9503 char *kwnames[] = {
9504 (char *) "self",(char *) "szDomain", NULL
9505 };
9506
9507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9510 {
9511 arg2 = wxString_in_helper(obj1);
9512 if (arg2 == NULL) SWIG_fail;
9513 temp2 = True;
9514 }
9515 {
9516 PyThreadState* __tstate = wxPyBeginAllowThreads();
9517 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9518
9519 wxPyEndAllowThreads(__tstate);
9520 if (PyErr_Occurred()) SWIG_fail;
9521 }
9522 {
9523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9524 }
9525 {
9526 if (temp2)
9527 delete arg2;
9528 }
9529 return resultobj;
9530 fail:
9531 {
9532 if (temp2)
9533 delete arg2;
9534 }
9535 return NULL;
9536 }
9537
9538
9539 static PyObject *_wrap_Locale_IsLoaded(PyObject *, 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_IsLoaded",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)((wxLocale const *)arg1)->IsLoaded((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_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9584 PyObject *resultobj;
9585 int arg1 ;
9586 wxLanguageInfo *result;
9587 PyObject * obj0 = 0 ;
9588 char *kwnames[] = {
9589 (char *) "lang", NULL
9590 };
9591
9592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9593 arg1 = (int) SWIG_AsInt(obj0);
9594 if (PyErr_Occurred()) SWIG_fail;
9595 {
9596 PyThreadState* __tstate = wxPyBeginAllowThreads();
9597 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9598
9599 wxPyEndAllowThreads(__tstate);
9600 if (PyErr_Occurred()) SWIG_fail;
9601 }
9602 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9603 return resultobj;
9604 fail:
9605 return NULL;
9606 }
9607
9608
9609 static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) {
9610 PyObject *resultobj;
9611 int arg1 ;
9612 wxString result;
9613 PyObject * obj0 = 0 ;
9614 char *kwnames[] = {
9615 (char *) "lang", NULL
9616 };
9617
9618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9619 arg1 = (int) SWIG_AsInt(obj0);
9620 if (PyErr_Occurred()) SWIG_fail;
9621 {
9622 PyThreadState* __tstate = wxPyBeginAllowThreads();
9623 result = wxLocale::GetLanguageName(arg1);
9624
9625 wxPyEndAllowThreads(__tstate);
9626 if (PyErr_Occurred()) SWIG_fail;
9627 }
9628 {
9629 #if wxUSE_UNICODE
9630 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9631 #else
9632 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9633 #endif
9634 }
9635 return resultobj;
9636 fail:
9637 return NULL;
9638 }
9639
9640
9641 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9642 PyObject *resultobj;
9643 wxString *arg1 = 0 ;
9644 wxLanguageInfo *result;
9645 bool temp1 = False ;
9646 PyObject * obj0 = 0 ;
9647 char *kwnames[] = {
9648 (char *) "locale", NULL
9649 };
9650
9651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9652 {
9653 arg1 = wxString_in_helper(obj0);
9654 if (arg1 == NULL) SWIG_fail;
9655 temp1 = True;
9656 }
9657 {
9658 PyThreadState* __tstate = wxPyBeginAllowThreads();
9659 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9660
9661 wxPyEndAllowThreads(__tstate);
9662 if (PyErr_Occurred()) SWIG_fail;
9663 }
9664 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9665 {
9666 if (temp1)
9667 delete arg1;
9668 }
9669 return resultobj;
9670 fail:
9671 {
9672 if (temp1)
9673 delete arg1;
9674 }
9675 return NULL;
9676 }
9677
9678
9679 static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
9680 PyObject *resultobj;
9681 wxLanguageInfo *arg1 = 0 ;
9682 PyObject * obj0 = 0 ;
9683 char *kwnames[] = {
9684 (char *) "info", NULL
9685 };
9686
9687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9689 SWIG_POINTER_EXCEPTION | 0)) == -1)
9690 SWIG_fail;
9691 if (arg1 == NULL) {
9692 PyErr_SetString(PyExc_TypeError,"null reference");
9693 SWIG_fail;
9694 }
9695 {
9696 PyThreadState* __tstate = wxPyBeginAllowThreads();
9697 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9698
9699 wxPyEndAllowThreads(__tstate);
9700 if (PyErr_Occurred()) SWIG_fail;
9701 }
9702 Py_INCREF(Py_None); resultobj = Py_None;
9703 return resultobj;
9704 fail:
9705 return NULL;
9706 }
9707
9708
9709 static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
9710 PyObject *resultobj;
9711 wxLocale *arg1 = (wxLocale *) 0 ;
9712 wxString *arg2 = 0 ;
9713 wxString const &arg3_defvalue = wxPyEmptyString ;
9714 wxString *arg3 = (wxString *) &arg3_defvalue ;
9715 wxString result;
9716 bool temp2 = False ;
9717 bool temp3 = False ;
9718 PyObject * obj0 = 0 ;
9719 PyObject * obj1 = 0 ;
9720 PyObject * obj2 = 0 ;
9721 char *kwnames[] = {
9722 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9723 };
9724
9725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9728 {
9729 arg2 = wxString_in_helper(obj1);
9730 if (arg2 == NULL) SWIG_fail;
9731 temp2 = True;
9732 }
9733 if (obj2) {
9734 {
9735 arg3 = wxString_in_helper(obj2);
9736 if (arg3 == NULL) SWIG_fail;
9737 temp3 = True;
9738 }
9739 }
9740 {
9741 PyThreadState* __tstate = wxPyBeginAllowThreads();
9742 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9743
9744 wxPyEndAllowThreads(__tstate);
9745 if (PyErr_Occurred()) SWIG_fail;
9746 }
9747 {
9748 #if wxUSE_UNICODE
9749 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9750 #else
9751 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9752 #endif
9753 }
9754 {
9755 if (temp2)
9756 delete arg2;
9757 }
9758 {
9759 if (temp3)
9760 delete arg3;
9761 }
9762 return resultobj;
9763 fail:
9764 {
9765 if (temp2)
9766 delete arg2;
9767 }
9768 {
9769 if (temp3)
9770 delete arg3;
9771 }
9772 return NULL;
9773 }
9774
9775
9776 static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
9777 PyObject *resultobj;
9778 wxLocale *arg1 = (wxLocale *) 0 ;
9779 wxString *result;
9780 PyObject * obj0 = 0 ;
9781 char *kwnames[] = {
9782 (char *) "self", NULL
9783 };
9784
9785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9788 {
9789 PyThreadState* __tstate = wxPyBeginAllowThreads();
9790 {
9791 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9792 result = (wxString *) &_result_ref;
9793 }
9794
9795 wxPyEndAllowThreads(__tstate);
9796 if (PyErr_Occurred()) SWIG_fail;
9797 }
9798 {
9799 #if wxUSE_UNICODE
9800 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9801 #else
9802 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9803 #endif
9804 }
9805 return resultobj;
9806 fail:
9807 return NULL;
9808 }
9809
9810
9811 static PyObject * Locale_swigregister(PyObject *, PyObject *args) {
9812 PyObject *obj;
9813 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9814 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9815 Py_INCREF(obj);
9816 return Py_BuildValue((char *)"");
9817 }
9818 static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
9819 PyObject *resultobj;
9820 wxLocale *result;
9821 char *kwnames[] = {
9822 NULL
9823 };
9824
9825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9826 {
9827 PyThreadState* __tstate = wxPyBeginAllowThreads();
9828 result = (wxLocale *)wxGetLocale();
9829
9830 wxPyEndAllowThreads(__tstate);
9831 if (PyErr_Occurred()) SWIG_fail;
9832 }
9833 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
9834 return resultobj;
9835 fail:
9836 return NULL;
9837 }
9838
9839
9840 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) {
9841 PyObject *resultobj;
9842 wxString *arg1 = 0 ;
9843 wxString result;
9844 bool temp1 = False ;
9845 PyObject * obj0 = 0 ;
9846
9847 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9848 {
9849 arg1 = wxString_in_helper(obj0);
9850 if (arg1 == NULL) SWIG_fail;
9851 temp1 = True;
9852 }
9853 {
9854 PyThreadState* __tstate = wxPyBeginAllowThreads();
9855 result = wxGetTranslation((wxString const &)*arg1);
9856
9857 wxPyEndAllowThreads(__tstate);
9858 if (PyErr_Occurred()) SWIG_fail;
9859 }
9860 {
9861 #if wxUSE_UNICODE
9862 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9863 #else
9864 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9865 #endif
9866 }
9867 {
9868 if (temp1)
9869 delete arg1;
9870 }
9871 return resultobj;
9872 fail:
9873 {
9874 if (temp1)
9875 delete arg1;
9876 }
9877 return NULL;
9878 }
9879
9880
9881 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) {
9882 PyObject *resultobj;
9883 wxString *arg1 = 0 ;
9884 wxString *arg2 = 0 ;
9885 size_t arg3 ;
9886 wxString result;
9887 bool temp1 = False ;
9888 bool temp2 = False ;
9889 PyObject * obj0 = 0 ;
9890 PyObject * obj1 = 0 ;
9891 PyObject * obj2 = 0 ;
9892
9893 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
9894 {
9895 arg1 = wxString_in_helper(obj0);
9896 if (arg1 == NULL) SWIG_fail;
9897 temp1 = True;
9898 }
9899 {
9900 arg2 = wxString_in_helper(obj1);
9901 if (arg2 == NULL) SWIG_fail;
9902 temp2 = True;
9903 }
9904 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
9905 if (PyErr_Occurred()) SWIG_fail;
9906 {
9907 PyThreadState* __tstate = wxPyBeginAllowThreads();
9908 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
9909
9910 wxPyEndAllowThreads(__tstate);
9911 if (PyErr_Occurred()) SWIG_fail;
9912 }
9913 {
9914 #if wxUSE_UNICODE
9915 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9916 #else
9917 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9918 #endif
9919 }
9920 {
9921 if (temp1)
9922 delete arg1;
9923 }
9924 {
9925 if (temp2)
9926 delete arg2;
9927 }
9928 return resultobj;
9929 fail:
9930 {
9931 if (temp1)
9932 delete arg1;
9933 }
9934 {
9935 if (temp2)
9936 delete arg2;
9937 }
9938 return NULL;
9939 }
9940
9941
9942 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
9943 int argc;
9944 PyObject *argv[4];
9945 int ii;
9946
9947 argc = PyObject_Length(args);
9948 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
9949 argv[ii] = PyTuple_GetItem(args,ii);
9950 }
9951 if (argc == 1) {
9952 int _v;
9953 {
9954 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9955 }
9956 if (_v) {
9957 return _wrap_GetTranslation__SWIG_0(self,args);
9958 }
9959 }
9960 if (argc == 3) {
9961 int _v;
9962 {
9963 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9964 }
9965 if (_v) {
9966 {
9967 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
9968 }
9969 if (_v) {
9970 _v = SWIG_CheckUnsignedLong(argv[2]);
9971 if (_v) {
9972 return _wrap_GetTranslation__SWIG_1(self,args);
9973 }
9974 }
9975 }
9976 }
9977
9978 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
9979 return NULL;
9980 }
9981
9982
9983 static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
9984 PyObject *resultobj;
9985 wxEncodingConverter *result;
9986 char *kwnames[] = {
9987 NULL
9988 };
9989
9990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
9991 {
9992 PyThreadState* __tstate = wxPyBeginAllowThreads();
9993 result = (wxEncodingConverter *)new wxEncodingConverter();
9994
9995 wxPyEndAllowThreads(__tstate);
9996 if (PyErr_Occurred()) SWIG_fail;
9997 }
9998 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
9999 return resultobj;
10000 fail:
10001 return NULL;
10002 }
10003
10004
10005 static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
10006 PyObject *resultobj;
10007 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10008 PyObject * obj0 = 0 ;
10009 char *kwnames[] = {
10010 (char *) "self", NULL
10011 };
10012
10013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10016 {
10017 PyThreadState* __tstate = wxPyBeginAllowThreads();
10018 delete arg1;
10019
10020 wxPyEndAllowThreads(__tstate);
10021 if (PyErr_Occurred()) SWIG_fail;
10022 }
10023 Py_INCREF(Py_None); resultobj = Py_None;
10024 return resultobj;
10025 fail:
10026 return NULL;
10027 }
10028
10029
10030 static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) {
10031 PyObject *resultobj;
10032 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10033 int arg2 ;
10034 int arg3 ;
10035 int arg4 = (int) wxCONVERT_STRICT ;
10036 bool result;
10037 PyObject * obj0 = 0 ;
10038 PyObject * obj1 = 0 ;
10039 PyObject * obj2 = 0 ;
10040 PyObject * obj3 = 0 ;
10041 char *kwnames[] = {
10042 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10043 };
10044
10045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10048 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10049 if (PyErr_Occurred()) SWIG_fail;
10050 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10051 if (PyErr_Occurred()) SWIG_fail;
10052 if (obj3) {
10053 arg4 = (int) SWIG_AsInt(obj3);
10054 if (PyErr_Occurred()) SWIG_fail;
10055 }
10056 {
10057 PyThreadState* __tstate = wxPyBeginAllowThreads();
10058 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10059
10060 wxPyEndAllowThreads(__tstate);
10061 if (PyErr_Occurred()) SWIG_fail;
10062 }
10063 {
10064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10065 }
10066 return resultobj;
10067 fail:
10068 return NULL;
10069 }
10070
10071
10072 static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) {
10073 PyObject *resultobj;
10074 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10075 wxString *arg2 = 0 ;
10076 wxString result;
10077 bool temp2 = False ;
10078 PyObject * obj0 = 0 ;
10079 PyObject * obj1 = 0 ;
10080 char *kwnames[] = {
10081 (char *) "self",(char *) "input", NULL
10082 };
10083
10084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10087 {
10088 arg2 = wxString_in_helper(obj1);
10089 if (arg2 == NULL) SWIG_fail;
10090 temp2 = True;
10091 }
10092 {
10093 PyThreadState* __tstate = wxPyBeginAllowThreads();
10094 result = (arg1)->Convert((wxString const &)*arg2);
10095
10096 wxPyEndAllowThreads(__tstate);
10097 if (PyErr_Occurred()) SWIG_fail;
10098 }
10099 {
10100 #if wxUSE_UNICODE
10101 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10102 #else
10103 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10104 #endif
10105 }
10106 {
10107 if (temp2)
10108 delete arg2;
10109 }
10110 return resultobj;
10111 fail:
10112 {
10113 if (temp2)
10114 delete arg2;
10115 }
10116 return NULL;
10117 }
10118
10119
10120 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
10121 PyObject *resultobj;
10122 int arg1 ;
10123 int arg2 = (int) wxPLATFORM_CURRENT ;
10124 wxFontEncodingArray result;
10125 PyObject * obj0 = 0 ;
10126 PyObject * obj1 = 0 ;
10127 char *kwnames[] = {
10128 (char *) "enc",(char *) "platform", NULL
10129 };
10130
10131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10132 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10133 if (PyErr_Occurred()) SWIG_fail;
10134 if (obj1) {
10135 arg2 = (int) SWIG_AsInt(obj1);
10136 if (PyErr_Occurred()) SWIG_fail;
10137 }
10138 {
10139 PyThreadState* __tstate = wxPyBeginAllowThreads();
10140 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10141
10142 wxPyEndAllowThreads(__tstate);
10143 if (PyErr_Occurred()) SWIG_fail;
10144 }
10145 {
10146 resultobj = PyList_New(0);
10147 for (size_t i=0; i < (&result)->GetCount(); i++) {
10148 PyObject* number = PyInt_FromLong((&result)->Item(i));
10149 PyList_Append(resultobj, number);
10150 Py_DECREF(number);
10151 }
10152 }
10153 return resultobj;
10154 fail:
10155 return NULL;
10156 }
10157
10158
10159 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
10160 PyObject *resultobj;
10161 int arg1 ;
10162 wxFontEncodingArray result;
10163 PyObject * obj0 = 0 ;
10164 char *kwnames[] = {
10165 (char *) "enc", NULL
10166 };
10167
10168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10169 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10170 if (PyErr_Occurred()) SWIG_fail;
10171 {
10172 PyThreadState* __tstate = wxPyBeginAllowThreads();
10173 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10174
10175 wxPyEndAllowThreads(__tstate);
10176 if (PyErr_Occurred()) SWIG_fail;
10177 }
10178 {
10179 resultobj = PyList_New(0);
10180 for (size_t i=0; i < (&result)->GetCount(); i++) {
10181 PyObject* number = PyInt_FromLong((&result)->Item(i));
10182 PyList_Append(resultobj, number);
10183 Py_DECREF(number);
10184 }
10185 }
10186 return resultobj;
10187 fail:
10188 return NULL;
10189 }
10190
10191
10192 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) {
10193 PyObject *resultobj;
10194 int arg1 ;
10195 int arg2 ;
10196 bool result;
10197 PyObject * obj0 = 0 ;
10198 PyObject * obj1 = 0 ;
10199 char *kwnames[] = {
10200 (char *) "encIn",(char *) "encOut", NULL
10201 };
10202
10203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10204 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10205 if (PyErr_Occurred()) SWIG_fail;
10206 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10207 if (PyErr_Occurred()) SWIG_fail;
10208 {
10209 PyThreadState* __tstate = wxPyBeginAllowThreads();
10210 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10211
10212 wxPyEndAllowThreads(__tstate);
10213 if (PyErr_Occurred()) SWIG_fail;
10214 }
10215 {
10216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10217 }
10218 return resultobj;
10219 fail:
10220 return NULL;
10221 }
10222
10223
10224 static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) {
10225 PyObject *obj;
10226 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10227 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10228 Py_INCREF(obj);
10229 return Py_BuildValue((char *)"");
10230 }
10231 static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) {
10232 PyObject *resultobj;
10233 wxDC *arg1 = (wxDC *) 0 ;
10234 PyObject * obj0 = 0 ;
10235 char *kwnames[] = {
10236 (char *) "self", NULL
10237 };
10238
10239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10242 {
10243 PyThreadState* __tstate = wxPyBeginAllowThreads();
10244 delete arg1;
10245
10246 wxPyEndAllowThreads(__tstate);
10247 if (PyErr_Occurred()) SWIG_fail;
10248 }
10249 Py_INCREF(Py_None); resultobj = Py_None;
10250 return resultobj;
10251 fail:
10252 return NULL;
10253 }
10254
10255
10256 static PyObject *_wrap_DC_BeginDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
10257 PyObject *resultobj;
10258 wxDC *arg1 = (wxDC *) 0 ;
10259 PyObject * obj0 = 0 ;
10260 char *kwnames[] = {
10261 (char *) "self", NULL
10262 };
10263
10264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10267 {
10268 PyThreadState* __tstate = wxPyBeginAllowThreads();
10269 (arg1)->BeginDrawing();
10270
10271 wxPyEndAllowThreads(__tstate);
10272 if (PyErr_Occurred()) SWIG_fail;
10273 }
10274 Py_INCREF(Py_None); resultobj = Py_None;
10275 return resultobj;
10276 fail:
10277 return NULL;
10278 }
10279
10280
10281 static PyObject *_wrap_DC_EndDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
10282 PyObject *resultobj;
10283 wxDC *arg1 = (wxDC *) 0 ;
10284 PyObject * obj0 = 0 ;
10285 char *kwnames[] = {
10286 (char *) "self", NULL
10287 };
10288
10289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10292 {
10293 PyThreadState* __tstate = wxPyBeginAllowThreads();
10294 (arg1)->EndDrawing();
10295
10296 wxPyEndAllowThreads(__tstate);
10297 if (PyErr_Occurred()) SWIG_fail;
10298 }
10299 Py_INCREF(Py_None); resultobj = Py_None;
10300 return resultobj;
10301 fail:
10302 return NULL;
10303 }
10304
10305
10306 static PyObject *_wrap_DC_FloodFillXY(PyObject *, PyObject *args, PyObject *kwargs) {
10307 PyObject *resultobj;
10308 wxDC *arg1 = (wxDC *) 0 ;
10309 int arg2 ;
10310 int arg3 ;
10311 wxColour *arg4 = 0 ;
10312 int arg5 = (int) wxFLOOD_SURFACE ;
10313 bool result;
10314 wxColour temp4 ;
10315 PyObject * obj0 = 0 ;
10316 PyObject * obj1 = 0 ;
10317 PyObject * obj2 = 0 ;
10318 PyObject * obj3 = 0 ;
10319 PyObject * obj4 = 0 ;
10320 char *kwnames[] = {
10321 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10322 };
10323
10324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10327 arg2 = (int) SWIG_AsInt(obj1);
10328 if (PyErr_Occurred()) SWIG_fail;
10329 arg3 = (int) SWIG_AsInt(obj2);
10330 if (PyErr_Occurred()) SWIG_fail;
10331 {
10332 arg4 = &temp4;
10333 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10334 }
10335 if (obj4) {
10336 arg5 = (int) SWIG_AsInt(obj4);
10337 if (PyErr_Occurred()) SWIG_fail;
10338 }
10339 {
10340 PyThreadState* __tstate = wxPyBeginAllowThreads();
10341 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10342
10343 wxPyEndAllowThreads(__tstate);
10344 if (PyErr_Occurred()) SWIG_fail;
10345 }
10346 {
10347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10348 }
10349 return resultobj;
10350 fail:
10351 return NULL;
10352 }
10353
10354
10355 static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) {
10356 PyObject *resultobj;
10357 wxDC *arg1 = (wxDC *) 0 ;
10358 wxPoint *arg2 = 0 ;
10359 wxColour *arg3 = 0 ;
10360 int arg4 = (int) wxFLOOD_SURFACE ;
10361 bool result;
10362 wxPoint temp2 ;
10363 wxColour temp3 ;
10364 PyObject * obj0 = 0 ;
10365 PyObject * obj1 = 0 ;
10366 PyObject * obj2 = 0 ;
10367 PyObject * obj3 = 0 ;
10368 char *kwnames[] = {
10369 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10370 };
10371
10372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10375 {
10376 arg2 = &temp2;
10377 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10378 }
10379 {
10380 arg3 = &temp3;
10381 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10382 }
10383 if (obj3) {
10384 arg4 = (int) SWIG_AsInt(obj3);
10385 if (PyErr_Occurred()) SWIG_fail;
10386 }
10387 {
10388 PyThreadState* __tstate = wxPyBeginAllowThreads();
10389 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10390
10391 wxPyEndAllowThreads(__tstate);
10392 if (PyErr_Occurred()) SWIG_fail;
10393 }
10394 {
10395 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10396 }
10397 return resultobj;
10398 fail:
10399 return NULL;
10400 }
10401
10402
10403 static PyObject *_wrap_DC_GetPixelXY(PyObject *, PyObject *args, PyObject *kwargs) {
10404 PyObject *resultobj;
10405 wxDC *arg1 = (wxDC *) 0 ;
10406 int arg2 ;
10407 int arg3 ;
10408 wxColour result;
10409 PyObject * obj0 = 0 ;
10410 PyObject * obj1 = 0 ;
10411 PyObject * obj2 = 0 ;
10412 char *kwnames[] = {
10413 (char *) "self",(char *) "x",(char *) "y", NULL
10414 };
10415
10416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10419 arg2 = (int) SWIG_AsInt(obj1);
10420 if (PyErr_Occurred()) SWIG_fail;
10421 arg3 = (int) SWIG_AsInt(obj2);
10422 if (PyErr_Occurred()) SWIG_fail;
10423 {
10424 PyThreadState* __tstate = wxPyBeginAllowThreads();
10425 result = wxDC_GetPixelXY(arg1,arg2,arg3);
10426
10427 wxPyEndAllowThreads(__tstate);
10428 if (PyErr_Occurred()) SWIG_fail;
10429 }
10430 {
10431 wxColour * resultptr;
10432 resultptr = new wxColour((wxColour &) result);
10433 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10434 }
10435 return resultobj;
10436 fail:
10437 return NULL;
10438 }
10439
10440
10441 static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
10442 PyObject *resultobj;
10443 wxDC *arg1 = (wxDC *) 0 ;
10444 wxPoint *arg2 = 0 ;
10445 wxColour result;
10446 wxPoint temp2 ;
10447 PyObject * obj0 = 0 ;
10448 PyObject * obj1 = 0 ;
10449 char *kwnames[] = {
10450 (char *) "self",(char *) "pt", NULL
10451 };
10452
10453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
10454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10456 {
10457 arg2 = &temp2;
10458 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10459 }
10460 {
10461 PyThreadState* __tstate = wxPyBeginAllowThreads();
10462 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
10463
10464 wxPyEndAllowThreads(__tstate);
10465 if (PyErr_Occurred()) SWIG_fail;
10466 }
10467 {
10468 wxColour * resultptr;
10469 resultptr = new wxColour((wxColour &) result);
10470 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10471 }
10472 return resultobj;
10473 fail:
10474 return NULL;
10475 }
10476
10477
10478 static PyObject *_wrap_DC_DrawLineXY(PyObject *, PyObject *args, PyObject *kwargs) {
10479 PyObject *resultobj;
10480 wxDC *arg1 = (wxDC *) 0 ;
10481 int arg2 ;
10482 int arg3 ;
10483 int arg4 ;
10484 int arg5 ;
10485 PyObject * obj0 = 0 ;
10486 PyObject * obj1 = 0 ;
10487 PyObject * obj2 = 0 ;
10488 PyObject * obj3 = 0 ;
10489 PyObject * obj4 = 0 ;
10490 char *kwnames[] = {
10491 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10492 };
10493
10494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10497 arg2 = (int) SWIG_AsInt(obj1);
10498 if (PyErr_Occurred()) SWIG_fail;
10499 arg3 = (int) SWIG_AsInt(obj2);
10500 if (PyErr_Occurred()) SWIG_fail;
10501 arg4 = (int) SWIG_AsInt(obj3);
10502 if (PyErr_Occurred()) SWIG_fail;
10503 arg5 = (int) SWIG_AsInt(obj4);
10504 if (PyErr_Occurred()) SWIG_fail;
10505 {
10506 PyThreadState* __tstate = wxPyBeginAllowThreads();
10507 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10508
10509 wxPyEndAllowThreads(__tstate);
10510 if (PyErr_Occurred()) SWIG_fail;
10511 }
10512 Py_INCREF(Py_None); resultobj = Py_None;
10513 return resultobj;
10514 fail:
10515 return NULL;
10516 }
10517
10518
10519 static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) {
10520 PyObject *resultobj;
10521 wxDC *arg1 = (wxDC *) 0 ;
10522 wxPoint *arg2 = 0 ;
10523 wxPoint *arg3 = 0 ;
10524 wxPoint temp2 ;
10525 wxPoint temp3 ;
10526 PyObject * obj0 = 0 ;
10527 PyObject * obj1 = 0 ;
10528 PyObject * obj2 = 0 ;
10529 char *kwnames[] = {
10530 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10531 };
10532
10533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
10534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10536 {
10537 arg2 = &temp2;
10538 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10539 }
10540 {
10541 arg3 = &temp3;
10542 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10543 }
10544 {
10545 PyThreadState* __tstate = wxPyBeginAllowThreads();
10546 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10547
10548 wxPyEndAllowThreads(__tstate);
10549 if (PyErr_Occurred()) SWIG_fail;
10550 }
10551 Py_INCREF(Py_None); resultobj = Py_None;
10552 return resultobj;
10553 fail:
10554 return NULL;
10555 }
10556
10557
10558 static PyObject *_wrap_DC_CrossHairXY(PyObject *, PyObject *args, PyObject *kwargs) {
10559 PyObject *resultobj;
10560 wxDC *arg1 = (wxDC *) 0 ;
10561 int arg2 ;
10562 int arg3 ;
10563 PyObject * obj0 = 0 ;
10564 PyObject * obj1 = 0 ;
10565 PyObject * obj2 = 0 ;
10566 char *kwnames[] = {
10567 (char *) "self",(char *) "x",(char *) "y", NULL
10568 };
10569
10570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10573 arg2 = (int) SWIG_AsInt(obj1);
10574 if (PyErr_Occurred()) SWIG_fail;
10575 arg3 = (int) SWIG_AsInt(obj2);
10576 if (PyErr_Occurred()) SWIG_fail;
10577 {
10578 PyThreadState* __tstate = wxPyBeginAllowThreads();
10579 (arg1)->CrossHair(arg2,arg3);
10580
10581 wxPyEndAllowThreads(__tstate);
10582 if (PyErr_Occurred()) SWIG_fail;
10583 }
10584 Py_INCREF(Py_None); resultobj = Py_None;
10585 return resultobj;
10586 fail:
10587 return NULL;
10588 }
10589
10590
10591 static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) {
10592 PyObject *resultobj;
10593 wxDC *arg1 = (wxDC *) 0 ;
10594 wxPoint *arg2 = 0 ;
10595 wxPoint temp2 ;
10596 PyObject * obj0 = 0 ;
10597 PyObject * obj1 = 0 ;
10598 char *kwnames[] = {
10599 (char *) "self",(char *) "pt", NULL
10600 };
10601
10602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
10603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10605 {
10606 arg2 = &temp2;
10607 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10608 }
10609 {
10610 PyThreadState* __tstate = wxPyBeginAllowThreads();
10611 (arg1)->CrossHair((wxPoint const &)*arg2);
10612
10613 wxPyEndAllowThreads(__tstate);
10614 if (PyErr_Occurred()) SWIG_fail;
10615 }
10616 Py_INCREF(Py_None); resultobj = Py_None;
10617 return resultobj;
10618 fail:
10619 return NULL;
10620 }
10621
10622
10623 static PyObject *_wrap_DC_DrawArcXY(PyObject *, PyObject *args, PyObject *kwargs) {
10624 PyObject *resultobj;
10625 wxDC *arg1 = (wxDC *) 0 ;
10626 int arg2 ;
10627 int arg3 ;
10628 int arg4 ;
10629 int arg5 ;
10630 int arg6 ;
10631 int arg7 ;
10632 PyObject * obj0 = 0 ;
10633 PyObject * obj1 = 0 ;
10634 PyObject * obj2 = 0 ;
10635 PyObject * obj3 = 0 ;
10636 PyObject * obj4 = 0 ;
10637 PyObject * obj5 = 0 ;
10638 PyObject * obj6 = 0 ;
10639 char *kwnames[] = {
10640 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10641 };
10642
10643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10646 arg2 = (int) SWIG_AsInt(obj1);
10647 if (PyErr_Occurred()) SWIG_fail;
10648 arg3 = (int) SWIG_AsInt(obj2);
10649 if (PyErr_Occurred()) SWIG_fail;
10650 arg4 = (int) SWIG_AsInt(obj3);
10651 if (PyErr_Occurred()) SWIG_fail;
10652 arg5 = (int) SWIG_AsInt(obj4);
10653 if (PyErr_Occurred()) SWIG_fail;
10654 arg6 = (int) SWIG_AsInt(obj5);
10655 if (PyErr_Occurred()) SWIG_fail;
10656 arg7 = (int) SWIG_AsInt(obj6);
10657 if (PyErr_Occurred()) SWIG_fail;
10658 {
10659 PyThreadState* __tstate = wxPyBeginAllowThreads();
10660 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10661
10662 wxPyEndAllowThreads(__tstate);
10663 if (PyErr_Occurred()) SWIG_fail;
10664 }
10665 Py_INCREF(Py_None); resultobj = Py_None;
10666 return resultobj;
10667 fail:
10668 return NULL;
10669 }
10670
10671
10672 static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) {
10673 PyObject *resultobj;
10674 wxDC *arg1 = (wxDC *) 0 ;
10675 wxPoint *arg2 = 0 ;
10676 wxPoint *arg3 = 0 ;
10677 wxPoint *arg4 = 0 ;
10678 wxPoint temp2 ;
10679 wxPoint temp3 ;
10680 wxPoint temp4 ;
10681 PyObject * obj0 = 0 ;
10682 PyObject * obj1 = 0 ;
10683 PyObject * obj2 = 0 ;
10684 PyObject * obj3 = 0 ;
10685 char *kwnames[] = {
10686 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10687 };
10688
10689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10692 {
10693 arg2 = &temp2;
10694 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10695 }
10696 {
10697 arg3 = &temp3;
10698 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10699 }
10700 {
10701 arg4 = &temp4;
10702 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10703 }
10704 {
10705 PyThreadState* __tstate = wxPyBeginAllowThreads();
10706 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10707
10708 wxPyEndAllowThreads(__tstate);
10709 if (PyErr_Occurred()) SWIG_fail;
10710 }
10711 Py_INCREF(Py_None); resultobj = Py_None;
10712 return resultobj;
10713 fail:
10714 return NULL;
10715 }
10716
10717
10718 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *, PyObject *args, PyObject *kwargs) {
10719 PyObject *resultobj;
10720 wxDC *arg1 = (wxDC *) 0 ;
10721 int arg2 ;
10722 int arg3 ;
10723 int arg4 ;
10724 int arg5 ;
10725 PyObject * obj0 = 0 ;
10726 PyObject * obj1 = 0 ;
10727 PyObject * obj2 = 0 ;
10728 PyObject * obj3 = 0 ;
10729 PyObject * obj4 = 0 ;
10730 char *kwnames[] = {
10731 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10732 };
10733
10734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10737 arg2 = (int) SWIG_AsInt(obj1);
10738 if (PyErr_Occurred()) SWIG_fail;
10739 arg3 = (int) SWIG_AsInt(obj2);
10740 if (PyErr_Occurred()) SWIG_fail;
10741 arg4 = (int) SWIG_AsInt(obj3);
10742 if (PyErr_Occurred()) SWIG_fail;
10743 arg5 = (int) SWIG_AsInt(obj4);
10744 if (PyErr_Occurred()) SWIG_fail;
10745 {
10746 PyThreadState* __tstate = wxPyBeginAllowThreads();
10747 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10748
10749 wxPyEndAllowThreads(__tstate);
10750 if (PyErr_Occurred()) SWIG_fail;
10751 }
10752 Py_INCREF(Py_None); resultobj = Py_None;
10753 return resultobj;
10754 fail:
10755 return NULL;
10756 }
10757
10758
10759 static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) {
10760 PyObject *resultobj;
10761 wxDC *arg1 = (wxDC *) 0 ;
10762 wxRect *arg2 = 0 ;
10763 wxRect temp2 ;
10764 PyObject * obj0 = 0 ;
10765 PyObject * obj1 = 0 ;
10766 char *kwnames[] = {
10767 (char *) "self",(char *) "rect", NULL
10768 };
10769
10770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
10771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10773 {
10774 arg2 = &temp2;
10775 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10776 }
10777 {
10778 PyThreadState* __tstate = wxPyBeginAllowThreads();
10779 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10780
10781 wxPyEndAllowThreads(__tstate);
10782 if (PyErr_Occurred()) SWIG_fail;
10783 }
10784 Py_INCREF(Py_None); resultobj = Py_None;
10785 return resultobj;
10786 fail:
10787 return NULL;
10788 }
10789
10790
10791 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *, PyObject *args, PyObject *kwargs) {
10792 PyObject *resultobj;
10793 wxDC *arg1 = (wxDC *) 0 ;
10794 int arg2 ;
10795 int arg3 ;
10796 int arg4 ;
10797 int arg5 ;
10798 double arg6 ;
10799 double arg7 ;
10800 PyObject * obj0 = 0 ;
10801 PyObject * obj1 = 0 ;
10802 PyObject * obj2 = 0 ;
10803 PyObject * obj3 = 0 ;
10804 PyObject * obj4 = 0 ;
10805 PyObject * obj5 = 0 ;
10806 PyObject * obj6 = 0 ;
10807 char *kwnames[] = {
10808 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
10809 };
10810
10811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10814 arg2 = (int) SWIG_AsInt(obj1);
10815 if (PyErr_Occurred()) SWIG_fail;
10816 arg3 = (int) SWIG_AsInt(obj2);
10817 if (PyErr_Occurred()) SWIG_fail;
10818 arg4 = (int) SWIG_AsInt(obj3);
10819 if (PyErr_Occurred()) SWIG_fail;
10820 arg5 = (int) SWIG_AsInt(obj4);
10821 if (PyErr_Occurred()) SWIG_fail;
10822 arg6 = (double) SWIG_AsDouble(obj5);
10823 if (PyErr_Occurred()) SWIG_fail;
10824 arg7 = (double) SWIG_AsDouble(obj6);
10825 if (PyErr_Occurred()) SWIG_fail;
10826 {
10827 PyThreadState* __tstate = wxPyBeginAllowThreads();
10828 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
10829
10830 wxPyEndAllowThreads(__tstate);
10831 if (PyErr_Occurred()) SWIG_fail;
10832 }
10833 Py_INCREF(Py_None); resultobj = Py_None;
10834 return resultobj;
10835 fail:
10836 return NULL;
10837 }
10838
10839
10840 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) {
10841 PyObject *resultobj;
10842 wxDC *arg1 = (wxDC *) 0 ;
10843 wxPoint *arg2 = 0 ;
10844 wxSize *arg3 = 0 ;
10845 double arg4 ;
10846 double arg5 ;
10847 wxPoint temp2 ;
10848 wxSize temp3 ;
10849 PyObject * obj0 = 0 ;
10850 PyObject * obj1 = 0 ;
10851 PyObject * obj2 = 0 ;
10852 PyObject * obj3 = 0 ;
10853 PyObject * obj4 = 0 ;
10854 char *kwnames[] = {
10855 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
10856 };
10857
10858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10861 {
10862 arg2 = &temp2;
10863 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10864 }
10865 {
10866 arg3 = &temp3;
10867 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10868 }
10869 arg4 = (double) SWIG_AsDouble(obj3);
10870 if (PyErr_Occurred()) SWIG_fail;
10871 arg5 = (double) SWIG_AsDouble(obj4);
10872 if (PyErr_Occurred()) SWIG_fail;
10873 {
10874 PyThreadState* __tstate = wxPyBeginAllowThreads();
10875 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
10876
10877 wxPyEndAllowThreads(__tstate);
10878 if (PyErr_Occurred()) SWIG_fail;
10879 }
10880 Py_INCREF(Py_None); resultobj = Py_None;
10881 return resultobj;
10882 fail:
10883 return NULL;
10884 }
10885
10886
10887 static PyObject *_wrap_DC_DrawPointXY(PyObject *, PyObject *args, PyObject *kwargs) {
10888 PyObject *resultobj;
10889 wxDC *arg1 = (wxDC *) 0 ;
10890 int arg2 ;
10891 int arg3 ;
10892 PyObject * obj0 = 0 ;
10893 PyObject * obj1 = 0 ;
10894 PyObject * obj2 = 0 ;
10895 char *kwnames[] = {
10896 (char *) "self",(char *) "x",(char *) "y", NULL
10897 };
10898
10899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10902 arg2 = (int) SWIG_AsInt(obj1);
10903 if (PyErr_Occurred()) SWIG_fail;
10904 arg3 = (int) SWIG_AsInt(obj2);
10905 if (PyErr_Occurred()) SWIG_fail;
10906 {
10907 PyThreadState* __tstate = wxPyBeginAllowThreads();
10908 (arg1)->DrawPoint(arg2,arg3);
10909
10910 wxPyEndAllowThreads(__tstate);
10911 if (PyErr_Occurred()) SWIG_fail;
10912 }
10913 Py_INCREF(Py_None); resultobj = Py_None;
10914 return resultobj;
10915 fail:
10916 return NULL;
10917 }
10918
10919
10920 static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) {
10921 PyObject *resultobj;
10922 wxDC *arg1 = (wxDC *) 0 ;
10923 wxPoint *arg2 = 0 ;
10924 wxPoint temp2 ;
10925 PyObject * obj0 = 0 ;
10926 PyObject * obj1 = 0 ;
10927 char *kwnames[] = {
10928 (char *) "self",(char *) "pt", NULL
10929 };
10930
10931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
10932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10934 {
10935 arg2 = &temp2;
10936 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10937 }
10938 {
10939 PyThreadState* __tstate = wxPyBeginAllowThreads();
10940 (arg1)->DrawPoint((wxPoint const &)*arg2);
10941
10942 wxPyEndAllowThreads(__tstate);
10943 if (PyErr_Occurred()) SWIG_fail;
10944 }
10945 Py_INCREF(Py_None); resultobj = Py_None;
10946 return resultobj;
10947 fail:
10948 return NULL;
10949 }
10950
10951
10952 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *, PyObject *args, PyObject *kwargs) {
10953 PyObject *resultobj;
10954 wxDC *arg1 = (wxDC *) 0 ;
10955 int arg2 ;
10956 int arg3 ;
10957 int arg4 ;
10958 int arg5 ;
10959 PyObject * obj0 = 0 ;
10960 PyObject * obj1 = 0 ;
10961 PyObject * obj2 = 0 ;
10962 PyObject * obj3 = 0 ;
10963 PyObject * obj4 = 0 ;
10964 char *kwnames[] = {
10965 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10966 };
10967
10968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10971 arg2 = (int) SWIG_AsInt(obj1);
10972 if (PyErr_Occurred()) SWIG_fail;
10973 arg3 = (int) SWIG_AsInt(obj2);
10974 if (PyErr_Occurred()) SWIG_fail;
10975 arg4 = (int) SWIG_AsInt(obj3);
10976 if (PyErr_Occurred()) SWIG_fail;
10977 arg5 = (int) SWIG_AsInt(obj4);
10978 if (PyErr_Occurred()) SWIG_fail;
10979 {
10980 PyThreadState* __tstate = wxPyBeginAllowThreads();
10981 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
10982
10983 wxPyEndAllowThreads(__tstate);
10984 if (PyErr_Occurred()) SWIG_fail;
10985 }
10986 Py_INCREF(Py_None); resultobj = Py_None;
10987 return resultobj;
10988 fail:
10989 return NULL;
10990 }
10991
10992
10993 static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
10994 PyObject *resultobj;
10995 wxDC *arg1 = (wxDC *) 0 ;
10996 wxPoint *arg2 = 0 ;
10997 wxSize *arg3 = 0 ;
10998 wxPoint temp2 ;
10999 wxSize temp3 ;
11000 PyObject * obj0 = 0 ;
11001 PyObject * obj1 = 0 ;
11002 PyObject * obj2 = 0 ;
11003 char *kwnames[] = {
11004 (char *) "self",(char *) "pt",(char *) "sz", NULL
11005 };
11006
11007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11010 {
11011 arg2 = &temp2;
11012 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11013 }
11014 {
11015 arg3 = &temp3;
11016 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11017 }
11018 {
11019 PyThreadState* __tstate = wxPyBeginAllowThreads();
11020 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11021
11022 wxPyEndAllowThreads(__tstate);
11023 if (PyErr_Occurred()) SWIG_fail;
11024 }
11025 Py_INCREF(Py_None); resultobj = Py_None;
11026 return resultobj;
11027 fail:
11028 return NULL;
11029 }
11030
11031
11032 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
11033 PyObject *resultobj;
11034 wxDC *arg1 = (wxDC *) 0 ;
11035 wxRect *arg2 = 0 ;
11036 wxRect temp2 ;
11037 PyObject * obj0 = 0 ;
11038 PyObject * obj1 = 0 ;
11039 char *kwnames[] = {
11040 (char *) "self",(char *) "rect", NULL
11041 };
11042
11043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11046 {
11047 arg2 = &temp2;
11048 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11049 }
11050 {
11051 PyThreadState* __tstate = wxPyBeginAllowThreads();
11052 (arg1)->DrawRectangle((wxRect const &)*arg2);
11053
11054 wxPyEndAllowThreads(__tstate);
11055 if (PyErr_Occurred()) SWIG_fail;
11056 }
11057 Py_INCREF(Py_None); resultobj = Py_None;
11058 return resultobj;
11059 fail:
11060 return NULL;
11061 }
11062
11063
11064 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *, PyObject *args, PyObject *kwargs) {
11065 PyObject *resultobj;
11066 wxDC *arg1 = (wxDC *) 0 ;
11067 int arg2 ;
11068 int arg3 ;
11069 int arg4 ;
11070 int arg5 ;
11071 double arg6 ;
11072 PyObject * obj0 = 0 ;
11073 PyObject * obj1 = 0 ;
11074 PyObject * obj2 = 0 ;
11075 PyObject * obj3 = 0 ;
11076 PyObject * obj4 = 0 ;
11077 PyObject * obj5 = 0 ;
11078 char *kwnames[] = {
11079 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11080 };
11081
11082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11085 arg2 = (int) SWIG_AsInt(obj1);
11086 if (PyErr_Occurred()) SWIG_fail;
11087 arg3 = (int) SWIG_AsInt(obj2);
11088 if (PyErr_Occurred()) SWIG_fail;
11089 arg4 = (int) SWIG_AsInt(obj3);
11090 if (PyErr_Occurred()) SWIG_fail;
11091 arg5 = (int) SWIG_AsInt(obj4);
11092 if (PyErr_Occurred()) SWIG_fail;
11093 arg6 = (double) SWIG_AsDouble(obj5);
11094 if (PyErr_Occurred()) SWIG_fail;
11095 {
11096 PyThreadState* __tstate = wxPyBeginAllowThreads();
11097 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11098
11099 wxPyEndAllowThreads(__tstate);
11100 if (PyErr_Occurred()) SWIG_fail;
11101 }
11102 Py_INCREF(Py_None); resultobj = Py_None;
11103 return resultobj;
11104 fail:
11105 return NULL;
11106 }
11107
11108
11109 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
11110 PyObject *resultobj;
11111 wxDC *arg1 = (wxDC *) 0 ;
11112 wxPoint *arg2 = 0 ;
11113 wxSize *arg3 = 0 ;
11114 double arg4 ;
11115 wxPoint temp2 ;
11116 wxSize temp3 ;
11117 PyObject * obj0 = 0 ;
11118 PyObject * obj1 = 0 ;
11119 PyObject * obj2 = 0 ;
11120 PyObject * obj3 = 0 ;
11121 char *kwnames[] = {
11122 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11123 };
11124
11125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11128 {
11129 arg2 = &temp2;
11130 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11131 }
11132 {
11133 arg3 = &temp3;
11134 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11135 }
11136 arg4 = (double) SWIG_AsDouble(obj3);
11137 if (PyErr_Occurred()) SWIG_fail;
11138 {
11139 PyThreadState* __tstate = wxPyBeginAllowThreads();
11140 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11141
11142 wxPyEndAllowThreads(__tstate);
11143 if (PyErr_Occurred()) SWIG_fail;
11144 }
11145 Py_INCREF(Py_None); resultobj = Py_None;
11146 return resultobj;
11147 fail:
11148 return NULL;
11149 }
11150
11151
11152 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
11153 PyObject *resultobj;
11154 wxDC *arg1 = (wxDC *) 0 ;
11155 wxRect *arg2 = 0 ;
11156 double arg3 ;
11157 wxRect temp2 ;
11158 PyObject * obj0 = 0 ;
11159 PyObject * obj1 = 0 ;
11160 PyObject * obj2 = 0 ;
11161 char *kwnames[] = {
11162 (char *) "self",(char *) "r",(char *) "radius", NULL
11163 };
11164
11165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11168 {
11169 arg2 = &temp2;
11170 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11171 }
11172 arg3 = (double) SWIG_AsDouble(obj2);
11173 if (PyErr_Occurred()) SWIG_fail;
11174 {
11175 PyThreadState* __tstate = wxPyBeginAllowThreads();
11176 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11177
11178 wxPyEndAllowThreads(__tstate);
11179 if (PyErr_Occurred()) SWIG_fail;
11180 }
11181 Py_INCREF(Py_None); resultobj = Py_None;
11182 return resultobj;
11183 fail:
11184 return NULL;
11185 }
11186
11187
11188 static PyObject *_wrap_DC_DrawCircleXY(PyObject *, PyObject *args, PyObject *kwargs) {
11189 PyObject *resultobj;
11190 wxDC *arg1 = (wxDC *) 0 ;
11191 int arg2 ;
11192 int arg3 ;
11193 int arg4 ;
11194 PyObject * obj0 = 0 ;
11195 PyObject * obj1 = 0 ;
11196 PyObject * obj2 = 0 ;
11197 PyObject * obj3 = 0 ;
11198 char *kwnames[] = {
11199 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11200 };
11201
11202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11205 arg2 = (int) SWIG_AsInt(obj1);
11206 if (PyErr_Occurred()) SWIG_fail;
11207 arg3 = (int) SWIG_AsInt(obj2);
11208 if (PyErr_Occurred()) SWIG_fail;
11209 arg4 = (int) SWIG_AsInt(obj3);
11210 if (PyErr_Occurred()) SWIG_fail;
11211 {
11212 PyThreadState* __tstate = wxPyBeginAllowThreads();
11213 (arg1)->DrawCircle(arg2,arg3,arg4);
11214
11215 wxPyEndAllowThreads(__tstate);
11216 if (PyErr_Occurred()) SWIG_fail;
11217 }
11218 Py_INCREF(Py_None); resultobj = Py_None;
11219 return resultobj;
11220 fail:
11221 return NULL;
11222 }
11223
11224
11225 static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) {
11226 PyObject *resultobj;
11227 wxDC *arg1 = (wxDC *) 0 ;
11228 wxPoint *arg2 = 0 ;
11229 int arg3 ;
11230 wxPoint temp2 ;
11231 PyObject * obj0 = 0 ;
11232 PyObject * obj1 = 0 ;
11233 PyObject * obj2 = 0 ;
11234 char *kwnames[] = {
11235 (char *) "self",(char *) "pt",(char *) "radius", NULL
11236 };
11237
11238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11241 {
11242 arg2 = &temp2;
11243 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11244 }
11245 arg3 = (int) SWIG_AsInt(obj2);
11246 if (PyErr_Occurred()) SWIG_fail;
11247 {
11248 PyThreadState* __tstate = wxPyBeginAllowThreads();
11249 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11250
11251 wxPyEndAllowThreads(__tstate);
11252 if (PyErr_Occurred()) SWIG_fail;
11253 }
11254 Py_INCREF(Py_None); resultobj = Py_None;
11255 return resultobj;
11256 fail:
11257 return NULL;
11258 }
11259
11260
11261 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *, PyObject *args, PyObject *kwargs) {
11262 PyObject *resultobj;
11263 wxDC *arg1 = (wxDC *) 0 ;
11264 int arg2 ;
11265 int arg3 ;
11266 int arg4 ;
11267 int arg5 ;
11268 PyObject * obj0 = 0 ;
11269 PyObject * obj1 = 0 ;
11270 PyObject * obj2 = 0 ;
11271 PyObject * obj3 = 0 ;
11272 PyObject * obj4 = 0 ;
11273 char *kwnames[] = {
11274 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11275 };
11276
11277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11280 arg2 = (int) SWIG_AsInt(obj1);
11281 if (PyErr_Occurred()) SWIG_fail;
11282 arg3 = (int) SWIG_AsInt(obj2);
11283 if (PyErr_Occurred()) SWIG_fail;
11284 arg4 = (int) SWIG_AsInt(obj3);
11285 if (PyErr_Occurred()) SWIG_fail;
11286 arg5 = (int) SWIG_AsInt(obj4);
11287 if (PyErr_Occurred()) SWIG_fail;
11288 {
11289 PyThreadState* __tstate = wxPyBeginAllowThreads();
11290 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11291
11292 wxPyEndAllowThreads(__tstate);
11293 if (PyErr_Occurred()) SWIG_fail;
11294 }
11295 Py_INCREF(Py_None); resultobj = Py_None;
11296 return resultobj;
11297 fail:
11298 return NULL;
11299 }
11300
11301
11302 static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) {
11303 PyObject *resultobj;
11304 wxDC *arg1 = (wxDC *) 0 ;
11305 wxPoint *arg2 = 0 ;
11306 wxSize *arg3 = 0 ;
11307 wxPoint temp2 ;
11308 wxSize temp3 ;
11309 PyObject * obj0 = 0 ;
11310 PyObject * obj1 = 0 ;
11311 PyObject * obj2 = 0 ;
11312 char *kwnames[] = {
11313 (char *) "self",(char *) "pt",(char *) "sz", NULL
11314 };
11315
11316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
11317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11319 {
11320 arg2 = &temp2;
11321 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11322 }
11323 {
11324 arg3 = &temp3;
11325 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11326 }
11327 {
11328 PyThreadState* __tstate = wxPyBeginAllowThreads();
11329 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11330
11331 wxPyEndAllowThreads(__tstate);
11332 if (PyErr_Occurred()) SWIG_fail;
11333 }
11334 Py_INCREF(Py_None); resultobj = Py_None;
11335 return resultobj;
11336 fail:
11337 return NULL;
11338 }
11339
11340
11341 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) {
11342 PyObject *resultobj;
11343 wxDC *arg1 = (wxDC *) 0 ;
11344 wxRect *arg2 = 0 ;
11345 wxRect temp2 ;
11346 PyObject * obj0 = 0 ;
11347 PyObject * obj1 = 0 ;
11348 char *kwnames[] = {
11349 (char *) "self",(char *) "rect", NULL
11350 };
11351
11352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11355 {
11356 arg2 = &temp2;
11357 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11358 }
11359 {
11360 PyThreadState* __tstate = wxPyBeginAllowThreads();
11361 (arg1)->DrawEllipse((wxRect const &)*arg2);
11362
11363 wxPyEndAllowThreads(__tstate);
11364 if (PyErr_Occurred()) SWIG_fail;
11365 }
11366 Py_INCREF(Py_None); resultobj = Py_None;
11367 return resultobj;
11368 fail:
11369 return NULL;
11370 }
11371
11372
11373 static PyObject *_wrap_DC_DrawIconXY(PyObject *, PyObject *args, PyObject *kwargs) {
11374 PyObject *resultobj;
11375 wxDC *arg1 = (wxDC *) 0 ;
11376 wxIcon *arg2 = 0 ;
11377 int arg3 ;
11378 int arg4 ;
11379 PyObject * obj0 = 0 ;
11380 PyObject * obj1 = 0 ;
11381 PyObject * obj2 = 0 ;
11382 PyObject * obj3 = 0 ;
11383 char *kwnames[] = {
11384 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11385 };
11386
11387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11390 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11391 SWIG_POINTER_EXCEPTION | 0)) == -1)
11392 SWIG_fail;
11393 if (arg2 == NULL) {
11394 PyErr_SetString(PyExc_TypeError,"null reference");
11395 SWIG_fail;
11396 }
11397 arg3 = (int) SWIG_AsInt(obj2);
11398 if (PyErr_Occurred()) SWIG_fail;
11399 arg4 = (int) SWIG_AsInt(obj3);
11400 if (PyErr_Occurred()) SWIG_fail;
11401 {
11402 PyThreadState* __tstate = wxPyBeginAllowThreads();
11403 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11404
11405 wxPyEndAllowThreads(__tstate);
11406 if (PyErr_Occurred()) SWIG_fail;
11407 }
11408 Py_INCREF(Py_None); resultobj = Py_None;
11409 return resultobj;
11410 fail:
11411 return NULL;
11412 }
11413
11414
11415 static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) {
11416 PyObject *resultobj;
11417 wxDC *arg1 = (wxDC *) 0 ;
11418 wxIcon *arg2 = 0 ;
11419 wxPoint *arg3 = 0 ;
11420 wxPoint temp3 ;
11421 PyObject * obj0 = 0 ;
11422 PyObject * obj1 = 0 ;
11423 PyObject * obj2 = 0 ;
11424 char *kwnames[] = {
11425 (char *) "self",(char *) "icon",(char *) "pt", NULL
11426 };
11427
11428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
11429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11431 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11432 SWIG_POINTER_EXCEPTION | 0)) == -1)
11433 SWIG_fail;
11434 if (arg2 == NULL) {
11435 PyErr_SetString(PyExc_TypeError,"null reference");
11436 SWIG_fail;
11437 }
11438 {
11439 arg3 = &temp3;
11440 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11441 }
11442 {
11443 PyThreadState* __tstate = wxPyBeginAllowThreads();
11444 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11445
11446 wxPyEndAllowThreads(__tstate);
11447 if (PyErr_Occurred()) SWIG_fail;
11448 }
11449 Py_INCREF(Py_None); resultobj = Py_None;
11450 return resultobj;
11451 fail:
11452 return NULL;
11453 }
11454
11455
11456 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *, PyObject *args, PyObject *kwargs) {
11457 PyObject *resultobj;
11458 wxDC *arg1 = (wxDC *) 0 ;
11459 wxBitmap *arg2 = 0 ;
11460 int arg3 ;
11461 int arg4 ;
11462 bool arg5 = (bool) False ;
11463 PyObject * obj0 = 0 ;
11464 PyObject * obj1 = 0 ;
11465 PyObject * obj2 = 0 ;
11466 PyObject * obj3 = 0 ;
11467 PyObject * obj4 = 0 ;
11468 char *kwnames[] = {
11469 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11470 };
11471
11472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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_wxBitmap,
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 arg3 = (int) SWIG_AsInt(obj2);
11483 if (PyErr_Occurred()) SWIG_fail;
11484 arg4 = (int) SWIG_AsInt(obj3);
11485 if (PyErr_Occurred()) SWIG_fail;
11486 if (obj4) {
11487 arg5 = (bool) SWIG_AsBool(obj4);
11488 if (PyErr_Occurred()) SWIG_fail;
11489 }
11490 {
11491 PyThreadState* __tstate = wxPyBeginAllowThreads();
11492 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11493
11494 wxPyEndAllowThreads(__tstate);
11495 if (PyErr_Occurred()) SWIG_fail;
11496 }
11497 Py_INCREF(Py_None); resultobj = Py_None;
11498 return resultobj;
11499 fail:
11500 return NULL;
11501 }
11502
11503
11504 static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
11505 PyObject *resultobj;
11506 wxDC *arg1 = (wxDC *) 0 ;
11507 wxBitmap *arg2 = 0 ;
11508 wxPoint *arg3 = 0 ;
11509 bool arg4 = (bool) False ;
11510 wxPoint temp3 ;
11511 PyObject * obj0 = 0 ;
11512 PyObject * obj1 = 0 ;
11513 PyObject * obj2 = 0 ;
11514 PyObject * obj3 = 0 ;
11515 char *kwnames[] = {
11516 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11517 };
11518
11519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11522 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11523 SWIG_POINTER_EXCEPTION | 0)) == -1)
11524 SWIG_fail;
11525 if (arg2 == NULL) {
11526 PyErr_SetString(PyExc_TypeError,"null reference");
11527 SWIG_fail;
11528 }
11529 {
11530 arg3 = &temp3;
11531 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11532 }
11533 if (obj3) {
11534 arg4 = (bool) SWIG_AsBool(obj3);
11535 if (PyErr_Occurred()) SWIG_fail;
11536 }
11537 {
11538 PyThreadState* __tstate = wxPyBeginAllowThreads();
11539 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11540
11541 wxPyEndAllowThreads(__tstate);
11542 if (PyErr_Occurred()) SWIG_fail;
11543 }
11544 Py_INCREF(Py_None); resultobj = Py_None;
11545 return resultobj;
11546 fail:
11547 return NULL;
11548 }
11549
11550
11551 static PyObject *_wrap_DC_DrawTextXY(PyObject *, PyObject *args, PyObject *kwargs) {
11552 PyObject *resultobj;
11553 wxDC *arg1 = (wxDC *) 0 ;
11554 wxString *arg2 = 0 ;
11555 int arg3 ;
11556 int arg4 ;
11557 bool temp2 = False ;
11558 PyObject * obj0 = 0 ;
11559 PyObject * obj1 = 0 ;
11560 PyObject * obj2 = 0 ;
11561 PyObject * obj3 = 0 ;
11562 char *kwnames[] = {
11563 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11564 };
11565
11566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11569 {
11570 arg2 = wxString_in_helper(obj1);
11571 if (arg2 == NULL) SWIG_fail;
11572 temp2 = True;
11573 }
11574 arg3 = (int) SWIG_AsInt(obj2);
11575 if (PyErr_Occurred()) SWIG_fail;
11576 arg4 = (int) SWIG_AsInt(obj3);
11577 if (PyErr_Occurred()) SWIG_fail;
11578 {
11579 PyThreadState* __tstate = wxPyBeginAllowThreads();
11580 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11581
11582 wxPyEndAllowThreads(__tstate);
11583 if (PyErr_Occurred()) SWIG_fail;
11584 }
11585 Py_INCREF(Py_None); resultobj = Py_None;
11586 {
11587 if (temp2)
11588 delete arg2;
11589 }
11590 return resultobj;
11591 fail:
11592 {
11593 if (temp2)
11594 delete arg2;
11595 }
11596 return NULL;
11597 }
11598
11599
11600 static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) {
11601 PyObject *resultobj;
11602 wxDC *arg1 = (wxDC *) 0 ;
11603 wxString *arg2 = 0 ;
11604 wxPoint *arg3 = 0 ;
11605 bool temp2 = False ;
11606 wxPoint temp3 ;
11607 PyObject * obj0 = 0 ;
11608 PyObject * obj1 = 0 ;
11609 PyObject * obj2 = 0 ;
11610 char *kwnames[] = {
11611 (char *) "self",(char *) "text",(char *) "pt", NULL
11612 };
11613
11614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
11615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11617 {
11618 arg2 = wxString_in_helper(obj1);
11619 if (arg2 == NULL) SWIG_fail;
11620 temp2 = True;
11621 }
11622 {
11623 arg3 = &temp3;
11624 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11625 }
11626 {
11627 PyThreadState* __tstate = wxPyBeginAllowThreads();
11628 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11629
11630 wxPyEndAllowThreads(__tstate);
11631 if (PyErr_Occurred()) SWIG_fail;
11632 }
11633 Py_INCREF(Py_None); resultobj = Py_None;
11634 {
11635 if (temp2)
11636 delete arg2;
11637 }
11638 return resultobj;
11639 fail:
11640 {
11641 if (temp2)
11642 delete arg2;
11643 }
11644 return NULL;
11645 }
11646
11647
11648 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *, PyObject *args, PyObject *kwargs) {
11649 PyObject *resultobj;
11650 wxDC *arg1 = (wxDC *) 0 ;
11651 wxString *arg2 = 0 ;
11652 int arg3 ;
11653 int arg4 ;
11654 double arg5 ;
11655 bool temp2 = False ;
11656 PyObject * obj0 = 0 ;
11657 PyObject * obj1 = 0 ;
11658 PyObject * obj2 = 0 ;
11659 PyObject * obj3 = 0 ;
11660 PyObject * obj4 = 0 ;
11661 char *kwnames[] = {
11662 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11663 };
11664
11665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11668 {
11669 arg2 = wxString_in_helper(obj1);
11670 if (arg2 == NULL) SWIG_fail;
11671 temp2 = True;
11672 }
11673 arg3 = (int) SWIG_AsInt(obj2);
11674 if (PyErr_Occurred()) SWIG_fail;
11675 arg4 = (int) SWIG_AsInt(obj3);
11676 if (PyErr_Occurred()) SWIG_fail;
11677 arg5 = (double) SWIG_AsDouble(obj4);
11678 if (PyErr_Occurred()) SWIG_fail;
11679 {
11680 PyThreadState* __tstate = wxPyBeginAllowThreads();
11681 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11682
11683 wxPyEndAllowThreads(__tstate);
11684 if (PyErr_Occurred()) SWIG_fail;
11685 }
11686 Py_INCREF(Py_None); resultobj = Py_None;
11687 {
11688 if (temp2)
11689 delete arg2;
11690 }
11691 return resultobj;
11692 fail:
11693 {
11694 if (temp2)
11695 delete arg2;
11696 }
11697 return NULL;
11698 }
11699
11700
11701 static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) {
11702 PyObject *resultobj;
11703 wxDC *arg1 = (wxDC *) 0 ;
11704 wxString *arg2 = 0 ;
11705 wxPoint *arg3 = 0 ;
11706 double arg4 ;
11707 bool temp2 = False ;
11708 wxPoint temp3 ;
11709 PyObject * obj0 = 0 ;
11710 PyObject * obj1 = 0 ;
11711 PyObject * obj2 = 0 ;
11712 PyObject * obj3 = 0 ;
11713 char *kwnames[] = {
11714 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11715 };
11716
11717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11720 {
11721 arg2 = wxString_in_helper(obj1);
11722 if (arg2 == NULL) SWIG_fail;
11723 temp2 = True;
11724 }
11725 {
11726 arg3 = &temp3;
11727 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11728 }
11729 arg4 = (double) SWIG_AsDouble(obj3);
11730 if (PyErr_Occurred()) SWIG_fail;
11731 {
11732 PyThreadState* __tstate = wxPyBeginAllowThreads();
11733 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11734
11735 wxPyEndAllowThreads(__tstate);
11736 if (PyErr_Occurred()) SWIG_fail;
11737 }
11738 Py_INCREF(Py_None); resultobj = Py_None;
11739 {
11740 if (temp2)
11741 delete arg2;
11742 }
11743 return resultobj;
11744 fail:
11745 {
11746 if (temp2)
11747 delete arg2;
11748 }
11749 return NULL;
11750 }
11751
11752
11753 static PyObject *_wrap_DC_BlitXY(PyObject *, PyObject *args, PyObject *kwargs) {
11754 PyObject *resultobj;
11755 wxDC *arg1 = (wxDC *) 0 ;
11756 int arg2 ;
11757 int arg3 ;
11758 int arg4 ;
11759 int arg5 ;
11760 wxDC *arg6 = (wxDC *) 0 ;
11761 int arg7 ;
11762 int arg8 ;
11763 int arg9 = (int) wxCOPY ;
11764 bool arg10 = (bool) False ;
11765 int arg11 = (int) -1 ;
11766 int arg12 = (int) -1 ;
11767 bool result;
11768 PyObject * obj0 = 0 ;
11769 PyObject * obj1 = 0 ;
11770 PyObject * obj2 = 0 ;
11771 PyObject * obj3 = 0 ;
11772 PyObject * obj4 = 0 ;
11773 PyObject * obj5 = 0 ;
11774 PyObject * obj6 = 0 ;
11775 PyObject * obj7 = 0 ;
11776 PyObject * obj8 = 0 ;
11777 PyObject * obj9 = 0 ;
11778 PyObject * obj10 = 0 ;
11779 PyObject * obj11 = 0 ;
11780 char *kwnames[] = {
11781 (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
11782 };
11783
11784 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;
11785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11787 arg2 = (int) SWIG_AsInt(obj1);
11788 if (PyErr_Occurred()) SWIG_fail;
11789 arg3 = (int) SWIG_AsInt(obj2);
11790 if (PyErr_Occurred()) SWIG_fail;
11791 arg4 = (int) SWIG_AsInt(obj3);
11792 if (PyErr_Occurred()) SWIG_fail;
11793 arg5 = (int) SWIG_AsInt(obj4);
11794 if (PyErr_Occurred()) SWIG_fail;
11795 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
11796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11797 arg7 = (int) SWIG_AsInt(obj6);
11798 if (PyErr_Occurred()) SWIG_fail;
11799 arg8 = (int) SWIG_AsInt(obj7);
11800 if (PyErr_Occurred()) SWIG_fail;
11801 if (obj8) {
11802 arg9 = (int) SWIG_AsInt(obj8);
11803 if (PyErr_Occurred()) SWIG_fail;
11804 }
11805 if (obj9) {
11806 arg10 = (bool) SWIG_AsBool(obj9);
11807 if (PyErr_Occurred()) SWIG_fail;
11808 }
11809 if (obj10) {
11810 arg11 = (int) SWIG_AsInt(obj10);
11811 if (PyErr_Occurred()) SWIG_fail;
11812 }
11813 if (obj11) {
11814 arg12 = (int) SWIG_AsInt(obj11);
11815 if (PyErr_Occurred()) SWIG_fail;
11816 }
11817 {
11818 PyThreadState* __tstate = wxPyBeginAllowThreads();
11819 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
11820
11821 wxPyEndAllowThreads(__tstate);
11822 if (PyErr_Occurred()) SWIG_fail;
11823 }
11824 {
11825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11826 }
11827 return resultobj;
11828 fail:
11829 return NULL;
11830 }
11831
11832
11833 static PyObject *_wrap_DC_Blit(PyObject *, PyObject *args, PyObject *kwargs) {
11834 PyObject *resultobj;
11835 wxDC *arg1 = (wxDC *) 0 ;
11836 wxPoint *arg2 = 0 ;
11837 wxSize *arg3 = 0 ;
11838 wxDC *arg4 = (wxDC *) 0 ;
11839 wxPoint *arg5 = 0 ;
11840 int arg6 = (int) wxCOPY ;
11841 bool arg7 = (bool) False ;
11842 wxPoint const &arg8_defvalue = wxDefaultPosition ;
11843 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
11844 bool result;
11845 wxPoint temp2 ;
11846 wxSize temp3 ;
11847 wxPoint temp5 ;
11848 wxPoint temp8 ;
11849 PyObject * obj0 = 0 ;
11850 PyObject * obj1 = 0 ;
11851 PyObject * obj2 = 0 ;
11852 PyObject * obj3 = 0 ;
11853 PyObject * obj4 = 0 ;
11854 PyObject * obj5 = 0 ;
11855 PyObject * obj6 = 0 ;
11856 PyObject * obj7 = 0 ;
11857 char *kwnames[] = {
11858 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
11859 };
11860
11861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
11862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11864 {
11865 arg2 = &temp2;
11866 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11867 }
11868 {
11869 arg3 = &temp3;
11870 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11871 }
11872 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
11873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11874 {
11875 arg5 = &temp5;
11876 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11877 }
11878 if (obj5) {
11879 arg6 = (int) SWIG_AsInt(obj5);
11880 if (PyErr_Occurred()) SWIG_fail;
11881 }
11882 if (obj6) {
11883 arg7 = (bool) SWIG_AsBool(obj6);
11884 if (PyErr_Occurred()) SWIG_fail;
11885 }
11886 if (obj7) {
11887 {
11888 arg8 = &temp8;
11889 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
11890 }
11891 }
11892 {
11893 PyThreadState* __tstate = wxPyBeginAllowThreads();
11894 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
11895
11896 wxPyEndAllowThreads(__tstate);
11897 if (PyErr_Occurred()) SWIG_fail;
11898 }
11899 {
11900 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11901 }
11902 return resultobj;
11903 fail:
11904 return NULL;
11905 }
11906
11907
11908 static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) {
11909 PyObject *resultobj;
11910 wxDC *arg1 = (wxDC *) 0 ;
11911 int arg2 ;
11912 wxPoint *arg3 = (wxPoint *) 0 ;
11913 int arg4 = (int) 0 ;
11914 int arg5 = (int) 0 ;
11915 PyObject * obj0 = 0 ;
11916 PyObject * obj1 = 0 ;
11917 PyObject * obj2 = 0 ;
11918 PyObject * obj3 = 0 ;
11919 char *kwnames[] = {
11920 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
11921 };
11922
11923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11926 {
11927 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11928 if (arg3 == NULL) SWIG_fail;
11929 }
11930 if (obj2) {
11931 arg4 = (int) SWIG_AsInt(obj2);
11932 if (PyErr_Occurred()) SWIG_fail;
11933 }
11934 if (obj3) {
11935 arg5 = (int) SWIG_AsInt(obj3);
11936 if (PyErr_Occurred()) SWIG_fail;
11937 }
11938 {
11939 PyThreadState* __tstate = wxPyBeginAllowThreads();
11940 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
11941
11942 wxPyEndAllowThreads(__tstate);
11943 if (PyErr_Occurred()) SWIG_fail;
11944 }
11945 Py_INCREF(Py_None); resultobj = Py_None;
11946 {
11947 if (arg3) delete [] arg3;
11948 }
11949 return resultobj;
11950 fail:
11951 {
11952 if (arg3) delete [] arg3;
11953 }
11954 return NULL;
11955 }
11956
11957
11958 static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) {
11959 PyObject *resultobj;
11960 wxDC *arg1 = (wxDC *) 0 ;
11961 int arg2 ;
11962 wxPoint *arg3 = (wxPoint *) 0 ;
11963 int arg4 = (int) 0 ;
11964 int arg5 = (int) 0 ;
11965 int arg6 = (int) wxODDEVEN_RULE ;
11966 PyObject * obj0 = 0 ;
11967 PyObject * obj1 = 0 ;
11968 PyObject * obj2 = 0 ;
11969 PyObject * obj3 = 0 ;
11970 PyObject * obj4 = 0 ;
11971 char *kwnames[] = {
11972 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
11973 };
11974
11975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11978 {
11979 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11980 if (arg3 == NULL) SWIG_fail;
11981 }
11982 if (obj2) {
11983 arg4 = (int) SWIG_AsInt(obj2);
11984 if (PyErr_Occurred()) SWIG_fail;
11985 }
11986 if (obj3) {
11987 arg5 = (int) SWIG_AsInt(obj3);
11988 if (PyErr_Occurred()) SWIG_fail;
11989 }
11990 if (obj4) {
11991 arg6 = (int) SWIG_AsInt(obj4);
11992 if (PyErr_Occurred()) SWIG_fail;
11993 }
11994 {
11995 PyThreadState* __tstate = wxPyBeginAllowThreads();
11996 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
11997
11998 wxPyEndAllowThreads(__tstate);
11999 if (PyErr_Occurred()) SWIG_fail;
12000 }
12001 Py_INCREF(Py_None); resultobj = Py_None;
12002 {
12003 if (arg3) delete [] arg3;
12004 }
12005 return resultobj;
12006 fail:
12007 {
12008 if (arg3) delete [] arg3;
12009 }
12010 return NULL;
12011 }
12012
12013
12014 static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) {
12015 PyObject *resultobj;
12016 wxDC *arg1 = (wxDC *) 0 ;
12017 wxString *arg2 = 0 ;
12018 wxRect *arg3 = 0 ;
12019 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12020 int arg5 = (int) -1 ;
12021 bool temp2 = False ;
12022 wxRect temp3 ;
12023 PyObject * obj0 = 0 ;
12024 PyObject * obj1 = 0 ;
12025 PyObject * obj2 = 0 ;
12026 PyObject * obj3 = 0 ;
12027 PyObject * obj4 = 0 ;
12028 char *kwnames[] = {
12029 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12030 };
12031
12032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12035 {
12036 arg2 = wxString_in_helper(obj1);
12037 if (arg2 == NULL) SWIG_fail;
12038 temp2 = True;
12039 }
12040 {
12041 arg3 = &temp3;
12042 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12043 }
12044 if (obj3) {
12045 arg4 = (int) SWIG_AsInt(obj3);
12046 if (PyErr_Occurred()) SWIG_fail;
12047 }
12048 if (obj4) {
12049 arg5 = (int) SWIG_AsInt(obj4);
12050 if (PyErr_Occurred()) SWIG_fail;
12051 }
12052 {
12053 PyThreadState* __tstate = wxPyBeginAllowThreads();
12054 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12055
12056 wxPyEndAllowThreads(__tstate);
12057 if (PyErr_Occurred()) SWIG_fail;
12058 }
12059 Py_INCREF(Py_None); resultobj = Py_None;
12060 {
12061 if (temp2)
12062 delete arg2;
12063 }
12064 return resultobj;
12065 fail:
12066 {
12067 if (temp2)
12068 delete arg2;
12069 }
12070 return NULL;
12071 }
12072
12073
12074 static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) {
12075 PyObject *resultobj;
12076 wxDC *arg1 = (wxDC *) 0 ;
12077 wxString *arg2 = 0 ;
12078 wxBitmap *arg3 = 0 ;
12079 wxRect *arg4 = 0 ;
12080 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12081 int arg6 = (int) -1 ;
12082 wxRect result;
12083 bool temp2 = False ;
12084 wxRect temp4 ;
12085 PyObject * obj0 = 0 ;
12086 PyObject * obj1 = 0 ;
12087 PyObject * obj2 = 0 ;
12088 PyObject * obj3 = 0 ;
12089 PyObject * obj4 = 0 ;
12090 PyObject * obj5 = 0 ;
12091 char *kwnames[] = {
12092 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12093 };
12094
12095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12098 {
12099 arg2 = wxString_in_helper(obj1);
12100 if (arg2 == NULL) SWIG_fail;
12101 temp2 = True;
12102 }
12103 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12104 SWIG_POINTER_EXCEPTION | 0)) == -1)
12105 SWIG_fail;
12106 if (arg3 == NULL) {
12107 PyErr_SetString(PyExc_TypeError,"null reference");
12108 SWIG_fail;
12109 }
12110 {
12111 arg4 = &temp4;
12112 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12113 }
12114 if (obj4) {
12115 arg5 = (int) SWIG_AsInt(obj4);
12116 if (PyErr_Occurred()) SWIG_fail;
12117 }
12118 if (obj5) {
12119 arg6 = (int) SWIG_AsInt(obj5);
12120 if (PyErr_Occurred()) SWIG_fail;
12121 }
12122 {
12123 PyThreadState* __tstate = wxPyBeginAllowThreads();
12124 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12125
12126 wxPyEndAllowThreads(__tstate);
12127 if (PyErr_Occurred()) SWIG_fail;
12128 }
12129 {
12130 wxRect * resultptr;
12131 resultptr = new wxRect((wxRect &) result);
12132 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12133 }
12134 {
12135 if (temp2)
12136 delete arg2;
12137 }
12138 return resultobj;
12139 fail:
12140 {
12141 if (temp2)
12142 delete arg2;
12143 }
12144 return NULL;
12145 }
12146
12147
12148 static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) {
12149 PyObject *resultobj;
12150 wxDC *arg1 = (wxDC *) 0 ;
12151 int arg2 ;
12152 wxPoint *arg3 = (wxPoint *) 0 ;
12153 PyObject * obj0 = 0 ;
12154 PyObject * obj1 = 0 ;
12155 char *kwnames[] = {
12156 (char *) "self",(char *) "points", NULL
12157 };
12158
12159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12162 {
12163 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12164 if (arg3 == NULL) SWIG_fail;
12165 }
12166 {
12167 PyThreadState* __tstate = wxPyBeginAllowThreads();
12168 (arg1)->DrawSpline(arg2,arg3);
12169
12170 wxPyEndAllowThreads(__tstate);
12171 if (PyErr_Occurred()) SWIG_fail;
12172 }
12173 Py_INCREF(Py_None); resultobj = Py_None;
12174 {
12175 if (arg3) delete [] arg3;
12176 }
12177 return resultobj;
12178 fail:
12179 {
12180 if (arg3) delete [] arg3;
12181 }
12182 return NULL;
12183 }
12184
12185
12186 static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
12187 PyObject *resultobj;
12188 wxDC *arg1 = (wxDC *) 0 ;
12189 PyObject * obj0 = 0 ;
12190 char *kwnames[] = {
12191 (char *) "self", NULL
12192 };
12193
12194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12197 {
12198 PyThreadState* __tstate = wxPyBeginAllowThreads();
12199 (arg1)->Clear();
12200
12201 wxPyEndAllowThreads(__tstate);
12202 if (PyErr_Occurred()) SWIG_fail;
12203 }
12204 Py_INCREF(Py_None); resultobj = Py_None;
12205 return resultobj;
12206 fail:
12207 return NULL;
12208 }
12209
12210
12211 static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) {
12212 PyObject *resultobj;
12213 wxDC *arg1 = (wxDC *) 0 ;
12214 wxString *arg2 = 0 ;
12215 bool result;
12216 bool temp2 = False ;
12217 PyObject * obj0 = 0 ;
12218 PyObject * obj1 = 0 ;
12219 char *kwnames[] = {
12220 (char *) "self",(char *) "message", NULL
12221 };
12222
12223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12226 {
12227 arg2 = wxString_in_helper(obj1);
12228 if (arg2 == NULL) SWIG_fail;
12229 temp2 = True;
12230 }
12231 {
12232 PyThreadState* __tstate = wxPyBeginAllowThreads();
12233 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12234
12235 wxPyEndAllowThreads(__tstate);
12236 if (PyErr_Occurred()) SWIG_fail;
12237 }
12238 {
12239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12240 }
12241 {
12242 if (temp2)
12243 delete arg2;
12244 }
12245 return resultobj;
12246 fail:
12247 {
12248 if (temp2)
12249 delete arg2;
12250 }
12251 return NULL;
12252 }
12253
12254
12255 static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) {
12256 PyObject *resultobj;
12257 wxDC *arg1 = (wxDC *) 0 ;
12258 PyObject * obj0 = 0 ;
12259 char *kwnames[] = {
12260 (char *) "self", NULL
12261 };
12262
12263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12266 {
12267 PyThreadState* __tstate = wxPyBeginAllowThreads();
12268 (arg1)->EndDoc();
12269
12270 wxPyEndAllowThreads(__tstate);
12271 if (PyErr_Occurred()) SWIG_fail;
12272 }
12273 Py_INCREF(Py_None); resultobj = Py_None;
12274 return resultobj;
12275 fail:
12276 return NULL;
12277 }
12278
12279
12280 static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) {
12281 PyObject *resultobj;
12282 wxDC *arg1 = (wxDC *) 0 ;
12283 PyObject * obj0 = 0 ;
12284 char *kwnames[] = {
12285 (char *) "self", NULL
12286 };
12287
12288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12291 {
12292 PyThreadState* __tstate = wxPyBeginAllowThreads();
12293 (arg1)->StartPage();
12294
12295 wxPyEndAllowThreads(__tstate);
12296 if (PyErr_Occurred()) SWIG_fail;
12297 }
12298 Py_INCREF(Py_None); resultobj = Py_None;
12299 return resultobj;
12300 fail:
12301 return NULL;
12302 }
12303
12304
12305 static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) {
12306 PyObject *resultobj;
12307 wxDC *arg1 = (wxDC *) 0 ;
12308 PyObject * obj0 = 0 ;
12309 char *kwnames[] = {
12310 (char *) "self", NULL
12311 };
12312
12313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12316 {
12317 PyThreadState* __tstate = wxPyBeginAllowThreads();
12318 (arg1)->EndPage();
12319
12320 wxPyEndAllowThreads(__tstate);
12321 if (PyErr_Occurred()) SWIG_fail;
12322 }
12323 Py_INCREF(Py_None); resultobj = Py_None;
12324 return resultobj;
12325 fail:
12326 return NULL;
12327 }
12328
12329
12330 static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
12331 PyObject *resultobj;
12332 wxDC *arg1 = (wxDC *) 0 ;
12333 wxFont *arg2 = 0 ;
12334 PyObject * obj0 = 0 ;
12335 PyObject * obj1 = 0 ;
12336 char *kwnames[] = {
12337 (char *) "self",(char *) "font", NULL
12338 };
12339
12340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12343 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12344 SWIG_POINTER_EXCEPTION | 0)) == -1)
12345 SWIG_fail;
12346 if (arg2 == NULL) {
12347 PyErr_SetString(PyExc_TypeError,"null reference");
12348 SWIG_fail;
12349 }
12350 {
12351 PyThreadState* __tstate = wxPyBeginAllowThreads();
12352 (arg1)->SetFont((wxFont const &)*arg2);
12353
12354 wxPyEndAllowThreads(__tstate);
12355 if (PyErr_Occurred()) SWIG_fail;
12356 }
12357 Py_INCREF(Py_None); resultobj = Py_None;
12358 return resultobj;
12359 fail:
12360 return NULL;
12361 }
12362
12363
12364 static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) {
12365 PyObject *resultobj;
12366 wxDC *arg1 = (wxDC *) 0 ;
12367 wxPen *arg2 = 0 ;
12368 PyObject * obj0 = 0 ;
12369 PyObject * obj1 = 0 ;
12370 char *kwnames[] = {
12371 (char *) "self",(char *) "pen", NULL
12372 };
12373
12374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12377 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12378 SWIG_POINTER_EXCEPTION | 0)) == -1)
12379 SWIG_fail;
12380 if (arg2 == NULL) {
12381 PyErr_SetString(PyExc_TypeError,"null reference");
12382 SWIG_fail;
12383 }
12384 {
12385 PyThreadState* __tstate = wxPyBeginAllowThreads();
12386 (arg1)->SetPen((wxPen const &)*arg2);
12387
12388 wxPyEndAllowThreads(__tstate);
12389 if (PyErr_Occurred()) SWIG_fail;
12390 }
12391 Py_INCREF(Py_None); resultobj = Py_None;
12392 return resultobj;
12393 fail:
12394 return NULL;
12395 }
12396
12397
12398 static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
12399 PyObject *resultobj;
12400 wxDC *arg1 = (wxDC *) 0 ;
12401 wxBrush *arg2 = 0 ;
12402 PyObject * obj0 = 0 ;
12403 PyObject * obj1 = 0 ;
12404 char *kwnames[] = {
12405 (char *) "self",(char *) "brush", NULL
12406 };
12407
12408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12411 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12412 SWIG_POINTER_EXCEPTION | 0)) == -1)
12413 SWIG_fail;
12414 if (arg2 == NULL) {
12415 PyErr_SetString(PyExc_TypeError,"null reference");
12416 SWIG_fail;
12417 }
12418 {
12419 PyThreadState* __tstate = wxPyBeginAllowThreads();
12420 (arg1)->SetBrush((wxBrush const &)*arg2);
12421
12422 wxPyEndAllowThreads(__tstate);
12423 if (PyErr_Occurred()) SWIG_fail;
12424 }
12425 Py_INCREF(Py_None); resultobj = Py_None;
12426 return resultobj;
12427 fail:
12428 return NULL;
12429 }
12430
12431
12432 static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
12433 PyObject *resultobj;
12434 wxDC *arg1 = (wxDC *) 0 ;
12435 wxBrush *arg2 = 0 ;
12436 PyObject * obj0 = 0 ;
12437 PyObject * obj1 = 0 ;
12438 char *kwnames[] = {
12439 (char *) "self",(char *) "brush", NULL
12440 };
12441
12442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12445 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12446 SWIG_POINTER_EXCEPTION | 0)) == -1)
12447 SWIG_fail;
12448 if (arg2 == NULL) {
12449 PyErr_SetString(PyExc_TypeError,"null reference");
12450 SWIG_fail;
12451 }
12452 {
12453 PyThreadState* __tstate = wxPyBeginAllowThreads();
12454 (arg1)->SetBackground((wxBrush const &)*arg2);
12455
12456 wxPyEndAllowThreads(__tstate);
12457 if (PyErr_Occurred()) SWIG_fail;
12458 }
12459 Py_INCREF(Py_None); resultobj = Py_None;
12460 return resultobj;
12461 fail:
12462 return NULL;
12463 }
12464
12465
12466 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
12467 PyObject *resultobj;
12468 wxDC *arg1 = (wxDC *) 0 ;
12469 int arg2 ;
12470 PyObject * obj0 = 0 ;
12471 PyObject * obj1 = 0 ;
12472 char *kwnames[] = {
12473 (char *) "self",(char *) "mode", NULL
12474 };
12475
12476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12479 arg2 = (int) SWIG_AsInt(obj1);
12480 if (PyErr_Occurred()) SWIG_fail;
12481 {
12482 PyThreadState* __tstate = wxPyBeginAllowThreads();
12483 (arg1)->SetBackgroundMode(arg2);
12484
12485 wxPyEndAllowThreads(__tstate);
12486 if (PyErr_Occurred()) SWIG_fail;
12487 }
12488 Py_INCREF(Py_None); resultobj = Py_None;
12489 return resultobj;
12490 fail:
12491 return NULL;
12492 }
12493
12494
12495 static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
12496 PyObject *resultobj;
12497 wxDC *arg1 = (wxDC *) 0 ;
12498 wxPalette *arg2 = 0 ;
12499 PyObject * obj0 = 0 ;
12500 PyObject * obj1 = 0 ;
12501 char *kwnames[] = {
12502 (char *) "self",(char *) "palette", NULL
12503 };
12504
12505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12508 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
12509 SWIG_POINTER_EXCEPTION | 0)) == -1)
12510 SWIG_fail;
12511 if (arg2 == NULL) {
12512 PyErr_SetString(PyExc_TypeError,"null reference");
12513 SWIG_fail;
12514 }
12515 {
12516 PyThreadState* __tstate = wxPyBeginAllowThreads();
12517 (arg1)->SetPalette((wxPalette const &)*arg2);
12518
12519 wxPyEndAllowThreads(__tstate);
12520 if (PyErr_Occurred()) SWIG_fail;
12521 }
12522 Py_INCREF(Py_None); resultobj = Py_None;
12523 return resultobj;
12524 fail:
12525 return NULL;
12526 }
12527
12528
12529 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *, PyObject *args, PyObject *kwargs) {
12530 PyObject *resultobj;
12531 wxDC *arg1 = (wxDC *) 0 ;
12532 int arg2 ;
12533 int arg3 ;
12534 int arg4 ;
12535 int arg5 ;
12536 PyObject * obj0 = 0 ;
12537 PyObject * obj1 = 0 ;
12538 PyObject * obj2 = 0 ;
12539 PyObject * obj3 = 0 ;
12540 PyObject * obj4 = 0 ;
12541 char *kwnames[] = {
12542 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12543 };
12544
12545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12548 arg2 = (int) SWIG_AsInt(obj1);
12549 if (PyErr_Occurred()) SWIG_fail;
12550 arg3 = (int) SWIG_AsInt(obj2);
12551 if (PyErr_Occurred()) SWIG_fail;
12552 arg4 = (int) SWIG_AsInt(obj3);
12553 if (PyErr_Occurred()) SWIG_fail;
12554 arg5 = (int) SWIG_AsInt(obj4);
12555 if (PyErr_Occurred()) SWIG_fail;
12556 {
12557 PyThreadState* __tstate = wxPyBeginAllowThreads();
12558 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12559
12560 wxPyEndAllowThreads(__tstate);
12561 if (PyErr_Occurred()) SWIG_fail;
12562 }
12563 Py_INCREF(Py_None); resultobj = Py_None;
12564 return resultobj;
12565 fail:
12566 return NULL;
12567 }
12568
12569
12570 static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
12571 PyObject *resultobj;
12572 wxDC *arg1 = (wxDC *) 0 ;
12573 wxPoint *arg2 = 0 ;
12574 wxSize *arg3 = 0 ;
12575 wxPoint temp2 ;
12576 wxSize temp3 ;
12577 PyObject * obj0 = 0 ;
12578 PyObject * obj1 = 0 ;
12579 PyObject * obj2 = 0 ;
12580 char *kwnames[] = {
12581 (char *) "self",(char *) "pt",(char *) "sz", NULL
12582 };
12583
12584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
12585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12587 {
12588 arg2 = &temp2;
12589 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12590 }
12591 {
12592 arg3 = &temp3;
12593 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12594 }
12595 {
12596 PyThreadState* __tstate = wxPyBeginAllowThreads();
12597 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12598
12599 wxPyEndAllowThreads(__tstate);
12600 if (PyErr_Occurred()) SWIG_fail;
12601 }
12602 Py_INCREF(Py_None); resultobj = Py_None;
12603 return resultobj;
12604 fail:
12605 return NULL;
12606 }
12607
12608
12609 static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
12610 PyObject *resultobj;
12611 wxDC *arg1 = (wxDC *) 0 ;
12612 wxRect *arg2 = 0 ;
12613 wxRect temp2 ;
12614 PyObject * obj0 = 0 ;
12615 PyObject * obj1 = 0 ;
12616 char *kwnames[] = {
12617 (char *) "self",(char *) "rect", NULL
12618 };
12619
12620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12623 {
12624 arg2 = &temp2;
12625 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12626 }
12627 {
12628 PyThreadState* __tstate = wxPyBeginAllowThreads();
12629 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12630
12631 wxPyEndAllowThreads(__tstate);
12632 if (PyErr_Occurred()) SWIG_fail;
12633 }
12634 Py_INCREF(Py_None); resultobj = Py_None;
12635 return resultobj;
12636 fail:
12637 return NULL;
12638 }
12639
12640
12641 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) {
12642 PyObject *resultobj;
12643 wxDC *arg1 = (wxDC *) 0 ;
12644 wxRegion *arg2 = 0 ;
12645 PyObject * obj0 = 0 ;
12646 PyObject * obj1 = 0 ;
12647 char *kwnames[] = {
12648 (char *) "self",(char *) "region", NULL
12649 };
12650
12651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12654 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12655 SWIG_POINTER_EXCEPTION | 0)) == -1)
12656 SWIG_fail;
12657 if (arg2 == NULL) {
12658 PyErr_SetString(PyExc_TypeError,"null reference");
12659 SWIG_fail;
12660 }
12661 {
12662 PyThreadState* __tstate = wxPyBeginAllowThreads();
12663 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12664
12665 wxPyEndAllowThreads(__tstate);
12666 if (PyErr_Occurred()) SWIG_fail;
12667 }
12668 Py_INCREF(Py_None); resultobj = Py_None;
12669 return resultobj;
12670 fail:
12671 return NULL;
12672 }
12673
12674
12675 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
12676 PyObject *resultobj;
12677 wxDC *arg1 = (wxDC *) 0 ;
12678 PyObject * obj0 = 0 ;
12679 char *kwnames[] = {
12680 (char *) "self", NULL
12681 };
12682
12683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12686 {
12687 PyThreadState* __tstate = wxPyBeginAllowThreads();
12688 (arg1)->DestroyClippingRegion();
12689
12690 wxPyEndAllowThreads(__tstate);
12691 if (PyErr_Occurred()) SWIG_fail;
12692 }
12693 Py_INCREF(Py_None); resultobj = Py_None;
12694 return resultobj;
12695 fail:
12696 return NULL;
12697 }
12698
12699
12700 static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) {
12701 PyObject *resultobj;
12702 wxDC *arg1 = (wxDC *) 0 ;
12703 int *arg2 = (int *) 0 ;
12704 int *arg3 = (int *) 0 ;
12705 int *arg4 = (int *) 0 ;
12706 int *arg5 = (int *) 0 ;
12707 int temp2 ;
12708 int temp3 ;
12709 int temp4 ;
12710 int temp5 ;
12711 PyObject * obj0 = 0 ;
12712 char *kwnames[] = {
12713 (char *) "self", NULL
12714 };
12715
12716 arg2 = &temp2;
12717 arg3 = &temp3;
12718 arg4 = &temp4;
12719 arg5 = &temp5;
12720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12723 {
12724 PyThreadState* __tstate = wxPyBeginAllowThreads();
12725 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12726
12727 wxPyEndAllowThreads(__tstate);
12728 if (PyErr_Occurred()) SWIG_fail;
12729 }
12730 Py_INCREF(Py_None); resultobj = Py_None;
12731 {
12732 PyObject *o = PyInt_FromLong((long) (*arg2));
12733 resultobj = t_output_helper(resultobj,o);
12734 }
12735 {
12736 PyObject *o = PyInt_FromLong((long) (*arg3));
12737 resultobj = t_output_helper(resultobj,o);
12738 }
12739 {
12740 PyObject *o = PyInt_FromLong((long) (*arg4));
12741 resultobj = t_output_helper(resultobj,o);
12742 }
12743 {
12744 PyObject *o = PyInt_FromLong((long) (*arg5));
12745 resultobj = t_output_helper(resultobj,o);
12746 }
12747 return resultobj;
12748 fail:
12749 return NULL;
12750 }
12751
12752
12753 static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
12754 PyObject *resultobj;
12755 wxDC *arg1 = (wxDC *) 0 ;
12756 wxRect result;
12757 PyObject * obj0 = 0 ;
12758 char *kwnames[] = {
12759 (char *) "self", NULL
12760 };
12761
12762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
12763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12765 {
12766 PyThreadState* __tstate = wxPyBeginAllowThreads();
12767 result = wxDC_GetClippingRect(arg1);
12768
12769 wxPyEndAllowThreads(__tstate);
12770 if (PyErr_Occurred()) SWIG_fail;
12771 }
12772 {
12773 wxRect * resultptr;
12774 resultptr = new wxRect((wxRect &) result);
12775 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12776 }
12777 return resultobj;
12778 fail:
12779 return NULL;
12780 }
12781
12782
12783 static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) {
12784 PyObject *resultobj;
12785 wxDC *arg1 = (wxDC *) 0 ;
12786 int result;
12787 PyObject * obj0 = 0 ;
12788 char *kwnames[] = {
12789 (char *) "self", NULL
12790 };
12791
12792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
12793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12795 {
12796 PyThreadState* __tstate = wxPyBeginAllowThreads();
12797 result = (int)((wxDC const *)arg1)->GetCharHeight();
12798
12799 wxPyEndAllowThreads(__tstate);
12800 if (PyErr_Occurred()) SWIG_fail;
12801 }
12802 resultobj = SWIG_FromInt((int)result);
12803 return resultobj;
12804 fail:
12805 return NULL;
12806 }
12807
12808
12809 static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) {
12810 PyObject *resultobj;
12811 wxDC *arg1 = (wxDC *) 0 ;
12812 int result;
12813 PyObject * obj0 = 0 ;
12814 char *kwnames[] = {
12815 (char *) "self", NULL
12816 };
12817
12818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
12819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12821 {
12822 PyThreadState* __tstate = wxPyBeginAllowThreads();
12823 result = (int)((wxDC const *)arg1)->GetCharWidth();
12824
12825 wxPyEndAllowThreads(__tstate);
12826 if (PyErr_Occurred()) SWIG_fail;
12827 }
12828 resultobj = SWIG_FromInt((int)result);
12829 return resultobj;
12830 fail:
12831 return NULL;
12832 }
12833
12834
12835 static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
12836 PyObject *resultobj;
12837 wxDC *arg1 = (wxDC *) 0 ;
12838 wxString *arg2 = 0 ;
12839 int *arg3 = (int *) 0 ;
12840 int *arg4 = (int *) 0 ;
12841 bool temp2 = False ;
12842 int temp3 ;
12843 int temp4 ;
12844 PyObject * obj0 = 0 ;
12845 PyObject * obj1 = 0 ;
12846 char *kwnames[] = {
12847 (char *) "self",(char *) "string", NULL
12848 };
12849
12850 arg3 = &temp3;
12851 arg4 = &temp4;
12852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
12853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12855 {
12856 arg2 = wxString_in_helper(obj1);
12857 if (arg2 == NULL) SWIG_fail;
12858 temp2 = True;
12859 }
12860 {
12861 PyThreadState* __tstate = wxPyBeginAllowThreads();
12862 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
12863
12864 wxPyEndAllowThreads(__tstate);
12865 if (PyErr_Occurred()) SWIG_fail;
12866 }
12867 Py_INCREF(Py_None); resultobj = Py_None;
12868 {
12869 PyObject *o = PyInt_FromLong((long) (*arg3));
12870 resultobj = t_output_helper(resultobj,o);
12871 }
12872 {
12873 PyObject *o = PyInt_FromLong((long) (*arg4));
12874 resultobj = t_output_helper(resultobj,o);
12875 }
12876 {
12877 if (temp2)
12878 delete arg2;
12879 }
12880 return resultobj;
12881 fail:
12882 {
12883 if (temp2)
12884 delete arg2;
12885 }
12886 return NULL;
12887 }
12888
12889
12890 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
12891 PyObject *resultobj;
12892 wxDC *arg1 = (wxDC *) 0 ;
12893 wxString *arg2 = 0 ;
12894 int *arg3 = (int *) 0 ;
12895 int *arg4 = (int *) 0 ;
12896 int *arg5 = (int *) 0 ;
12897 int *arg6 = (int *) 0 ;
12898 wxFont *arg7 = (wxFont *) NULL ;
12899 bool temp2 = False ;
12900 int temp3 ;
12901 int temp4 ;
12902 int temp5 ;
12903 int temp6 ;
12904 PyObject * obj0 = 0 ;
12905 PyObject * obj1 = 0 ;
12906 PyObject * obj2 = 0 ;
12907 char *kwnames[] = {
12908 (char *) "self",(char *) "string",(char *) "font", NULL
12909 };
12910
12911 arg3 = &temp3;
12912 arg4 = &temp4;
12913 arg5 = &temp5;
12914 arg6 = &temp6;
12915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12918 {
12919 arg2 = wxString_in_helper(obj1);
12920 if (arg2 == NULL) SWIG_fail;
12921 temp2 = True;
12922 }
12923 if (obj2) {
12924 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
12925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12926 }
12927 {
12928 PyThreadState* __tstate = wxPyBeginAllowThreads();
12929 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
12930
12931 wxPyEndAllowThreads(__tstate);
12932 if (PyErr_Occurred()) SWIG_fail;
12933 }
12934 Py_INCREF(Py_None); resultobj = Py_None;
12935 {
12936 PyObject *o = PyInt_FromLong((long) (*arg3));
12937 resultobj = t_output_helper(resultobj,o);
12938 }
12939 {
12940 PyObject *o = PyInt_FromLong((long) (*arg4));
12941 resultobj = t_output_helper(resultobj,o);
12942 }
12943 {
12944 PyObject *o = PyInt_FromLong((long) (*arg5));
12945 resultobj = t_output_helper(resultobj,o);
12946 }
12947 {
12948 PyObject *o = PyInt_FromLong((long) (*arg6));
12949 resultobj = t_output_helper(resultobj,o);
12950 }
12951 {
12952 if (temp2)
12953 delete arg2;
12954 }
12955 return resultobj;
12956 fail:
12957 {
12958 if (temp2)
12959 delete arg2;
12960 }
12961 return NULL;
12962 }
12963
12964
12965 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
12966 PyObject *resultobj;
12967 wxDC *arg1 = (wxDC *) 0 ;
12968 wxString *arg2 = 0 ;
12969 int *arg3 = (int *) 0 ;
12970 int *arg4 = (int *) 0 ;
12971 int *arg5 = (int *) 0 ;
12972 wxFont *arg6 = (wxFont *) NULL ;
12973 bool temp2 = False ;
12974 int temp3 ;
12975 int temp4 ;
12976 int temp5 ;
12977 PyObject * obj0 = 0 ;
12978 PyObject * obj1 = 0 ;
12979 PyObject * obj2 = 0 ;
12980 char *kwnames[] = {
12981 (char *) "self",(char *) "text",(char *) "font", NULL
12982 };
12983
12984 arg3 = &temp3;
12985 arg4 = &temp4;
12986 arg5 = &temp5;
12987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12990 {
12991 arg2 = wxString_in_helper(obj1);
12992 if (arg2 == NULL) SWIG_fail;
12993 temp2 = True;
12994 }
12995 if (obj2) {
12996 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
12997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12998 }
12999 {
13000 PyThreadState* __tstate = wxPyBeginAllowThreads();
13001 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13002
13003 wxPyEndAllowThreads(__tstate);
13004 if (PyErr_Occurred()) SWIG_fail;
13005 }
13006 Py_INCREF(Py_None); resultobj = Py_None;
13007 {
13008 PyObject *o = PyInt_FromLong((long) (*arg3));
13009 resultobj = t_output_helper(resultobj,o);
13010 }
13011 {
13012 PyObject *o = PyInt_FromLong((long) (*arg4));
13013 resultobj = t_output_helper(resultobj,o);
13014 }
13015 {
13016 PyObject *o = PyInt_FromLong((long) (*arg5));
13017 resultobj = t_output_helper(resultobj,o);
13018 }
13019 {
13020 if (temp2)
13021 delete arg2;
13022 }
13023 return resultobj;
13024 fail:
13025 {
13026 if (temp2)
13027 delete arg2;
13028 }
13029 return NULL;
13030 }
13031
13032
13033 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) {
13034 PyObject *resultobj;
13035 wxDC *arg1 = (wxDC *) 0 ;
13036 wxString *arg2 = 0 ;
13037 wxArrayInt result;
13038 bool temp2 = False ;
13039 PyObject * obj0 = 0 ;
13040 PyObject * obj1 = 0 ;
13041 char *kwnames[] = {
13042 (char *) "self",(char *) "text", NULL
13043 };
13044
13045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13048 {
13049 arg2 = wxString_in_helper(obj1);
13050 if (arg2 == NULL) SWIG_fail;
13051 temp2 = True;
13052 }
13053 {
13054 PyThreadState* __tstate = wxPyBeginAllowThreads();
13055 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13056
13057 wxPyEndAllowThreads(__tstate);
13058 if (PyErr_Occurred()) SWIG_fail;
13059 }
13060 {
13061 resultobj = PyList_New(0);
13062 size_t idx;
13063 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13064 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13065 PyList_Append(resultobj, val);
13066 Py_DECREF(val);
13067 }
13068 }
13069 {
13070 if (temp2)
13071 delete arg2;
13072 }
13073 return resultobj;
13074 fail:
13075 {
13076 if (temp2)
13077 delete arg2;
13078 }
13079 return NULL;
13080 }
13081
13082
13083 static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
13084 PyObject *resultobj;
13085 wxDC *arg1 = (wxDC *) 0 ;
13086 wxSize result;
13087 PyObject * obj0 = 0 ;
13088 char *kwnames[] = {
13089 (char *) "self", NULL
13090 };
13091
13092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13095 {
13096 PyThreadState* __tstate = wxPyBeginAllowThreads();
13097 result = (arg1)->GetSize();
13098
13099 wxPyEndAllowThreads(__tstate);
13100 if (PyErr_Occurred()) SWIG_fail;
13101 }
13102 {
13103 wxSize * resultptr;
13104 resultptr = new wxSize((wxSize &) result);
13105 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13106 }
13107 return resultobj;
13108 fail:
13109 return NULL;
13110 }
13111
13112
13113 static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
13114 PyObject *resultobj;
13115 wxDC *arg1 = (wxDC *) 0 ;
13116 int *arg2 = (int *) 0 ;
13117 int *arg3 = (int *) 0 ;
13118 int temp2 ;
13119 int temp3 ;
13120 PyObject * obj0 = 0 ;
13121 char *kwnames[] = {
13122 (char *) "self", NULL
13123 };
13124
13125 arg2 = &temp2;
13126 arg3 = &temp3;
13127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13130 {
13131 PyThreadState* __tstate = wxPyBeginAllowThreads();
13132 (arg1)->GetSize(arg2,arg3);
13133
13134 wxPyEndAllowThreads(__tstate);
13135 if (PyErr_Occurred()) SWIG_fail;
13136 }
13137 Py_INCREF(Py_None); resultobj = Py_None;
13138 {
13139 PyObject *o = PyInt_FromLong((long) (*arg2));
13140 resultobj = t_output_helper(resultobj,o);
13141 }
13142 {
13143 PyObject *o = PyInt_FromLong((long) (*arg3));
13144 resultobj = t_output_helper(resultobj,o);
13145 }
13146 return resultobj;
13147 fail:
13148 return NULL;
13149 }
13150
13151
13152 static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
13153 PyObject *resultobj;
13154 wxDC *arg1 = (wxDC *) 0 ;
13155 wxSize result;
13156 PyObject * obj0 = 0 ;
13157 char *kwnames[] = {
13158 (char *) "self", NULL
13159 };
13160
13161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13164 {
13165 PyThreadState* __tstate = wxPyBeginAllowThreads();
13166 result = ((wxDC const *)arg1)->GetSizeMM();
13167
13168 wxPyEndAllowThreads(__tstate);
13169 if (PyErr_Occurred()) SWIG_fail;
13170 }
13171 {
13172 wxSize * resultptr;
13173 resultptr = new wxSize((wxSize &) result);
13174 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13175 }
13176 return resultobj;
13177 fail:
13178 return NULL;
13179 }
13180
13181
13182 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) {
13183 PyObject *resultobj;
13184 wxDC *arg1 = (wxDC *) 0 ;
13185 int *arg2 = (int *) 0 ;
13186 int *arg3 = (int *) 0 ;
13187 int temp2 ;
13188 int temp3 ;
13189 PyObject * obj0 = 0 ;
13190 char *kwnames[] = {
13191 (char *) "self", NULL
13192 };
13193
13194 arg2 = &temp2;
13195 arg3 = &temp3;
13196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13199 {
13200 PyThreadState* __tstate = wxPyBeginAllowThreads();
13201 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13202
13203 wxPyEndAllowThreads(__tstate);
13204 if (PyErr_Occurred()) SWIG_fail;
13205 }
13206 Py_INCREF(Py_None); resultobj = Py_None;
13207 {
13208 PyObject *o = PyInt_FromLong((long) (*arg2));
13209 resultobj = t_output_helper(resultobj,o);
13210 }
13211 {
13212 PyObject *o = PyInt_FromLong((long) (*arg3));
13213 resultobj = t_output_helper(resultobj,o);
13214 }
13215 return resultobj;
13216 fail:
13217 return NULL;
13218 }
13219
13220
13221 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) {
13222 PyObject *resultobj;
13223 wxDC *arg1 = (wxDC *) 0 ;
13224 int arg2 ;
13225 int result;
13226 PyObject * obj0 = 0 ;
13227 PyObject * obj1 = 0 ;
13228 char *kwnames[] = {
13229 (char *) "self",(char *) "x", NULL
13230 };
13231
13232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13235 arg2 = (int) SWIG_AsInt(obj1);
13236 if (PyErr_Occurred()) SWIG_fail;
13237 {
13238 PyThreadState* __tstate = wxPyBeginAllowThreads();
13239 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13240
13241 wxPyEndAllowThreads(__tstate);
13242 if (PyErr_Occurred()) SWIG_fail;
13243 }
13244 resultobj = SWIG_FromInt((int)result);
13245 return resultobj;
13246 fail:
13247 return NULL;
13248 }
13249
13250
13251 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) {
13252 PyObject *resultobj;
13253 wxDC *arg1 = (wxDC *) 0 ;
13254 int arg2 ;
13255 int result;
13256 PyObject * obj0 = 0 ;
13257 PyObject * obj1 = 0 ;
13258 char *kwnames[] = {
13259 (char *) "self",(char *) "y", NULL
13260 };
13261
13262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13265 arg2 = (int) SWIG_AsInt(obj1);
13266 if (PyErr_Occurred()) SWIG_fail;
13267 {
13268 PyThreadState* __tstate = wxPyBeginAllowThreads();
13269 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13270
13271 wxPyEndAllowThreads(__tstate);
13272 if (PyErr_Occurred()) SWIG_fail;
13273 }
13274 resultobj = SWIG_FromInt((int)result);
13275 return resultobj;
13276 fail:
13277 return NULL;
13278 }
13279
13280
13281 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) {
13282 PyObject *resultobj;
13283 wxDC *arg1 = (wxDC *) 0 ;
13284 int arg2 ;
13285 int result;
13286 PyObject * obj0 = 0 ;
13287 PyObject * obj1 = 0 ;
13288 char *kwnames[] = {
13289 (char *) "self",(char *) "x", NULL
13290 };
13291
13292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13295 arg2 = (int) SWIG_AsInt(obj1);
13296 if (PyErr_Occurred()) SWIG_fail;
13297 {
13298 PyThreadState* __tstate = wxPyBeginAllowThreads();
13299 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13300
13301 wxPyEndAllowThreads(__tstate);
13302 if (PyErr_Occurred()) SWIG_fail;
13303 }
13304 resultobj = SWIG_FromInt((int)result);
13305 return resultobj;
13306 fail:
13307 return NULL;
13308 }
13309
13310
13311 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) {
13312 PyObject *resultobj;
13313 wxDC *arg1 = (wxDC *) 0 ;
13314 int arg2 ;
13315 int result;
13316 PyObject * obj0 = 0 ;
13317 PyObject * obj1 = 0 ;
13318 char *kwnames[] = {
13319 (char *) "self",(char *) "y", NULL
13320 };
13321
13322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13325 arg2 = (int) SWIG_AsInt(obj1);
13326 if (PyErr_Occurred()) SWIG_fail;
13327 {
13328 PyThreadState* __tstate = wxPyBeginAllowThreads();
13329 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13330
13331 wxPyEndAllowThreads(__tstate);
13332 if (PyErr_Occurred()) SWIG_fail;
13333 }
13334 resultobj = SWIG_FromInt((int)result);
13335 return resultobj;
13336 fail:
13337 return NULL;
13338 }
13339
13340
13341 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) {
13342 PyObject *resultobj;
13343 wxDC *arg1 = (wxDC *) 0 ;
13344 int arg2 ;
13345 int result;
13346 PyObject * obj0 = 0 ;
13347 PyObject * obj1 = 0 ;
13348 char *kwnames[] = {
13349 (char *) "self",(char *) "x", NULL
13350 };
13351
13352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13355 arg2 = (int) SWIG_AsInt(obj1);
13356 if (PyErr_Occurred()) SWIG_fail;
13357 {
13358 PyThreadState* __tstate = wxPyBeginAllowThreads();
13359 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13360
13361 wxPyEndAllowThreads(__tstate);
13362 if (PyErr_Occurred()) SWIG_fail;
13363 }
13364 resultobj = SWIG_FromInt((int)result);
13365 return resultobj;
13366 fail:
13367 return NULL;
13368 }
13369
13370
13371 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) {
13372 PyObject *resultobj;
13373 wxDC *arg1 = (wxDC *) 0 ;
13374 int arg2 ;
13375 int result;
13376 PyObject * obj0 = 0 ;
13377 PyObject * obj1 = 0 ;
13378 char *kwnames[] = {
13379 (char *) "self",(char *) "y", NULL
13380 };
13381
13382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13385 arg2 = (int) SWIG_AsInt(obj1);
13386 if (PyErr_Occurred()) SWIG_fail;
13387 {
13388 PyThreadState* __tstate = wxPyBeginAllowThreads();
13389 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13390
13391 wxPyEndAllowThreads(__tstate);
13392 if (PyErr_Occurred()) SWIG_fail;
13393 }
13394 resultobj = SWIG_FromInt((int)result);
13395 return resultobj;
13396 fail:
13397 return NULL;
13398 }
13399
13400
13401 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) {
13402 PyObject *resultobj;
13403 wxDC *arg1 = (wxDC *) 0 ;
13404 int arg2 ;
13405 int result;
13406 PyObject * obj0 = 0 ;
13407 PyObject * obj1 = 0 ;
13408 char *kwnames[] = {
13409 (char *) "self",(char *) "x", NULL
13410 };
13411
13412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13415 arg2 = (int) SWIG_AsInt(obj1);
13416 if (PyErr_Occurred()) SWIG_fail;
13417 {
13418 PyThreadState* __tstate = wxPyBeginAllowThreads();
13419 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13420
13421 wxPyEndAllowThreads(__tstate);
13422 if (PyErr_Occurred()) SWIG_fail;
13423 }
13424 resultobj = SWIG_FromInt((int)result);
13425 return resultobj;
13426 fail:
13427 return NULL;
13428 }
13429
13430
13431 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) {
13432 PyObject *resultobj;
13433 wxDC *arg1 = (wxDC *) 0 ;
13434 int arg2 ;
13435 int result;
13436 PyObject * obj0 = 0 ;
13437 PyObject * obj1 = 0 ;
13438 char *kwnames[] = {
13439 (char *) "self",(char *) "y", NULL
13440 };
13441
13442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13445 arg2 = (int) SWIG_AsInt(obj1);
13446 if (PyErr_Occurred()) SWIG_fail;
13447 {
13448 PyThreadState* __tstate = wxPyBeginAllowThreads();
13449 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13450
13451 wxPyEndAllowThreads(__tstate);
13452 if (PyErr_Occurred()) SWIG_fail;
13453 }
13454 resultobj = SWIG_FromInt((int)result);
13455 return resultobj;
13456 fail:
13457 return NULL;
13458 }
13459
13460
13461 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
13462 PyObject *resultobj;
13463 wxDC *arg1 = (wxDC *) 0 ;
13464 bool result;
13465 PyObject * obj0 = 0 ;
13466 char *kwnames[] = {
13467 (char *) "self", NULL
13468 };
13469
13470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13473 {
13474 PyThreadState* __tstate = wxPyBeginAllowThreads();
13475 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13476
13477 wxPyEndAllowThreads(__tstate);
13478 if (PyErr_Occurred()) SWIG_fail;
13479 }
13480 {
13481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13482 }
13483 return resultobj;
13484 fail:
13485 return NULL;
13486 }
13487
13488
13489 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
13490 PyObject *resultobj;
13491 wxDC *arg1 = (wxDC *) 0 ;
13492 bool result;
13493 PyObject * obj0 = 0 ;
13494 char *kwnames[] = {
13495 (char *) "self", NULL
13496 };
13497
13498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13501 {
13502 PyThreadState* __tstate = wxPyBeginAllowThreads();
13503 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13504
13505 wxPyEndAllowThreads(__tstate);
13506 if (PyErr_Occurred()) SWIG_fail;
13507 }
13508 {
13509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13510 }
13511 return resultobj;
13512 fail:
13513 return NULL;
13514 }
13515
13516
13517 static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
13518 PyObject *resultobj;
13519 wxDC *arg1 = (wxDC *) 0 ;
13520 int result;
13521 PyObject * obj0 = 0 ;
13522 char *kwnames[] = {
13523 (char *) "self", NULL
13524 };
13525
13526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13529 {
13530 PyThreadState* __tstate = wxPyBeginAllowThreads();
13531 result = (int)((wxDC const *)arg1)->GetDepth();
13532
13533 wxPyEndAllowThreads(__tstate);
13534 if (PyErr_Occurred()) SWIG_fail;
13535 }
13536 resultobj = SWIG_FromInt((int)result);
13537 return resultobj;
13538 fail:
13539 return NULL;
13540 }
13541
13542
13543 static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) {
13544 PyObject *resultobj;
13545 wxDC *arg1 = (wxDC *) 0 ;
13546 wxSize result;
13547 PyObject * obj0 = 0 ;
13548 char *kwnames[] = {
13549 (char *) "self", NULL
13550 };
13551
13552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13555 {
13556 PyThreadState* __tstate = wxPyBeginAllowThreads();
13557 result = ((wxDC const *)arg1)->GetPPI();
13558
13559 wxPyEndAllowThreads(__tstate);
13560 if (PyErr_Occurred()) SWIG_fail;
13561 }
13562 {
13563 wxSize * resultptr;
13564 resultptr = new wxSize((wxSize &) result);
13565 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13566 }
13567 return resultobj;
13568 fail:
13569 return NULL;
13570 }
13571
13572
13573 static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
13574 PyObject *resultobj;
13575 wxDC *arg1 = (wxDC *) 0 ;
13576 bool result;
13577 PyObject * obj0 = 0 ;
13578 char *kwnames[] = {
13579 (char *) "self", NULL
13580 };
13581
13582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13585 {
13586 PyThreadState* __tstate = wxPyBeginAllowThreads();
13587 result = (bool)((wxDC const *)arg1)->Ok();
13588
13589 wxPyEndAllowThreads(__tstate);
13590 if (PyErr_Occurred()) SWIG_fail;
13591 }
13592 {
13593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13594 }
13595 return resultobj;
13596 fail:
13597 return NULL;
13598 }
13599
13600
13601 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
13602 PyObject *resultobj;
13603 wxDC *arg1 = (wxDC *) 0 ;
13604 int result;
13605 PyObject * obj0 = 0 ;
13606 char *kwnames[] = {
13607 (char *) "self", NULL
13608 };
13609
13610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13613 {
13614 PyThreadState* __tstate = wxPyBeginAllowThreads();
13615 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13616
13617 wxPyEndAllowThreads(__tstate);
13618 if (PyErr_Occurred()) SWIG_fail;
13619 }
13620 resultobj = SWIG_FromInt((int)result);
13621 return resultobj;
13622 fail:
13623 return NULL;
13624 }
13625
13626
13627 static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
13628 PyObject *resultobj;
13629 wxDC *arg1 = (wxDC *) 0 ;
13630 wxBrush *result;
13631 PyObject * obj0 = 0 ;
13632 char *kwnames[] = {
13633 (char *) "self", NULL
13634 };
13635
13636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13639 {
13640 PyThreadState* __tstate = wxPyBeginAllowThreads();
13641 {
13642 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13643 result = (wxBrush *) &_result_ref;
13644 }
13645
13646 wxPyEndAllowThreads(__tstate);
13647 if (PyErr_Occurred()) SWIG_fail;
13648 }
13649 {
13650 wxBrush* resultptr = new wxBrush(*result);
13651 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13652 }
13653 return resultobj;
13654 fail:
13655 return NULL;
13656 }
13657
13658
13659 static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
13660 PyObject *resultobj;
13661 wxDC *arg1 = (wxDC *) 0 ;
13662 wxBrush *result;
13663 PyObject * obj0 = 0 ;
13664 char *kwnames[] = {
13665 (char *) "self", NULL
13666 };
13667
13668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13671 {
13672 PyThreadState* __tstate = wxPyBeginAllowThreads();
13673 {
13674 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13675 result = (wxBrush *) &_result_ref;
13676 }
13677
13678 wxPyEndAllowThreads(__tstate);
13679 if (PyErr_Occurred()) SWIG_fail;
13680 }
13681 {
13682 wxBrush* resultptr = new wxBrush(*result);
13683 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13684 }
13685 return resultobj;
13686 fail:
13687 return NULL;
13688 }
13689
13690
13691 static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
13692 PyObject *resultobj;
13693 wxDC *arg1 = (wxDC *) 0 ;
13694 wxFont *result;
13695 PyObject * obj0 = 0 ;
13696 char *kwnames[] = {
13697 (char *) "self", NULL
13698 };
13699
13700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13703 {
13704 PyThreadState* __tstate = wxPyBeginAllowThreads();
13705 {
13706 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13707 result = (wxFont *) &_result_ref;
13708 }
13709
13710 wxPyEndAllowThreads(__tstate);
13711 if (PyErr_Occurred()) SWIG_fail;
13712 }
13713 {
13714 wxFont* resultptr = new wxFont(*result);
13715 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
13716 }
13717 return resultobj;
13718 fail:
13719 return NULL;
13720 }
13721
13722
13723 static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) {
13724 PyObject *resultobj;
13725 wxDC *arg1 = (wxDC *) 0 ;
13726 wxPen *result;
13727 PyObject * obj0 = 0 ;
13728 char *kwnames[] = {
13729 (char *) "self", NULL
13730 };
13731
13732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13735 {
13736 PyThreadState* __tstate = wxPyBeginAllowThreads();
13737 {
13738 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13739 result = (wxPen *) &_result_ref;
13740 }
13741
13742 wxPyEndAllowThreads(__tstate);
13743 if (PyErr_Occurred()) SWIG_fail;
13744 }
13745 {
13746 wxPen* resultptr = new wxPen(*result);
13747 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
13748 }
13749 return resultobj;
13750 fail:
13751 return NULL;
13752 }
13753
13754
13755 static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
13756 PyObject *resultobj;
13757 wxDC *arg1 = (wxDC *) 0 ;
13758 wxColour *result;
13759 PyObject * obj0 = 0 ;
13760 char *kwnames[] = {
13761 (char *) "self", NULL
13762 };
13763
13764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13767 {
13768 PyThreadState* __tstate = wxPyBeginAllowThreads();
13769 {
13770 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13771 result = (wxColour *) &_result_ref;
13772 }
13773
13774 wxPyEndAllowThreads(__tstate);
13775 if (PyErr_Occurred()) SWIG_fail;
13776 }
13777 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13778 return resultobj;
13779 fail:
13780 return NULL;
13781 }
13782
13783
13784 static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
13785 PyObject *resultobj;
13786 wxDC *arg1 = (wxDC *) 0 ;
13787 wxColour *result;
13788 PyObject * obj0 = 0 ;
13789 char *kwnames[] = {
13790 (char *) "self", NULL
13791 };
13792
13793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
13794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13796 {
13797 PyThreadState* __tstate = wxPyBeginAllowThreads();
13798 {
13799 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13800 result = (wxColour *) &_result_ref;
13801 }
13802
13803 wxPyEndAllowThreads(__tstate);
13804 if (PyErr_Occurred()) SWIG_fail;
13805 }
13806 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13807 return resultobj;
13808 fail:
13809 return NULL;
13810 }
13811
13812
13813 static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
13814 PyObject *resultobj;
13815 wxDC *arg1 = (wxDC *) 0 ;
13816 wxColour *arg2 = 0 ;
13817 wxColour temp2 ;
13818 PyObject * obj0 = 0 ;
13819 PyObject * obj1 = 0 ;
13820 char *kwnames[] = {
13821 (char *) "self",(char *) "colour", NULL
13822 };
13823
13824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
13825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13827 {
13828 arg2 = &temp2;
13829 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13830 }
13831 {
13832 PyThreadState* __tstate = wxPyBeginAllowThreads();
13833 (arg1)->SetTextForeground((wxColour const &)*arg2);
13834
13835 wxPyEndAllowThreads(__tstate);
13836 if (PyErr_Occurred()) SWIG_fail;
13837 }
13838 Py_INCREF(Py_None); resultobj = Py_None;
13839 return resultobj;
13840 fail:
13841 return NULL;
13842 }
13843
13844
13845 static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
13846 PyObject *resultobj;
13847 wxDC *arg1 = (wxDC *) 0 ;
13848 wxColour *arg2 = 0 ;
13849 wxColour temp2 ;
13850 PyObject * obj0 = 0 ;
13851 PyObject * obj1 = 0 ;
13852 char *kwnames[] = {
13853 (char *) "self",(char *) "colour", NULL
13854 };
13855
13856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
13857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13859 {
13860 arg2 = &temp2;
13861 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13862 }
13863 {
13864 PyThreadState* __tstate = wxPyBeginAllowThreads();
13865 (arg1)->SetTextBackground((wxColour const &)*arg2);
13866
13867 wxPyEndAllowThreads(__tstate);
13868 if (PyErr_Occurred()) SWIG_fail;
13869 }
13870 Py_INCREF(Py_None); resultobj = Py_None;
13871 return resultobj;
13872 fail:
13873 return NULL;
13874 }
13875
13876
13877 static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
13878 PyObject *resultobj;
13879 wxDC *arg1 = (wxDC *) 0 ;
13880 int result;
13881 PyObject * obj0 = 0 ;
13882 char *kwnames[] = {
13883 (char *) "self", NULL
13884 };
13885
13886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
13887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13889 {
13890 PyThreadState* __tstate = wxPyBeginAllowThreads();
13891 result = (int)((wxDC const *)arg1)->GetMapMode();
13892
13893 wxPyEndAllowThreads(__tstate);
13894 if (PyErr_Occurred()) SWIG_fail;
13895 }
13896 resultobj = SWIG_FromInt((int)result);
13897 return resultobj;
13898 fail:
13899 return NULL;
13900 }
13901
13902
13903 static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
13904 PyObject *resultobj;
13905 wxDC *arg1 = (wxDC *) 0 ;
13906 int arg2 ;
13907 PyObject * obj0 = 0 ;
13908 PyObject * obj1 = 0 ;
13909 char *kwnames[] = {
13910 (char *) "self",(char *) "mode", NULL
13911 };
13912
13913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
13914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13916 arg2 = (int) SWIG_AsInt(obj1);
13917 if (PyErr_Occurred()) SWIG_fail;
13918 {
13919 PyThreadState* __tstate = wxPyBeginAllowThreads();
13920 (arg1)->SetMapMode(arg2);
13921
13922 wxPyEndAllowThreads(__tstate);
13923 if (PyErr_Occurred()) SWIG_fail;
13924 }
13925 Py_INCREF(Py_None); resultobj = Py_None;
13926 return resultobj;
13927 fail:
13928 return NULL;
13929 }
13930
13931
13932 static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
13933 PyObject *resultobj;
13934 wxDC *arg1 = (wxDC *) 0 ;
13935 double *arg2 = (double *) 0 ;
13936 double *arg3 = (double *) 0 ;
13937 double temp2 ;
13938 double temp3 ;
13939 PyObject * obj0 = 0 ;
13940 char *kwnames[] = {
13941 (char *) "self", NULL
13942 };
13943
13944 arg2 = &temp2;
13945 arg3 = &temp3;
13946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
13947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13949 {
13950 PyThreadState* __tstate = wxPyBeginAllowThreads();
13951 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
13952
13953 wxPyEndAllowThreads(__tstate);
13954 if (PyErr_Occurred()) SWIG_fail;
13955 }
13956 Py_INCREF(Py_None); resultobj = Py_None;
13957 {
13958 PyObject *o = PyFloat_FromDouble((double) (*arg2));
13959 resultobj = t_output_helper(resultobj,o);
13960 }
13961 {
13962 PyObject *o = PyFloat_FromDouble((double) (*arg3));
13963 resultobj = t_output_helper(resultobj,o);
13964 }
13965 return resultobj;
13966 fail:
13967 return NULL;
13968 }
13969
13970
13971 static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
13972 PyObject *resultobj;
13973 wxDC *arg1 = (wxDC *) 0 ;
13974 double arg2 ;
13975 double arg3 ;
13976 PyObject * obj0 = 0 ;
13977 PyObject * obj1 = 0 ;
13978 PyObject * obj2 = 0 ;
13979 char *kwnames[] = {
13980 (char *) "self",(char *) "x",(char *) "y", NULL
13981 };
13982
13983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
13984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13986 arg2 = (double) SWIG_AsDouble(obj1);
13987 if (PyErr_Occurred()) SWIG_fail;
13988 arg3 = (double) SWIG_AsDouble(obj2);
13989 if (PyErr_Occurred()) SWIG_fail;
13990 {
13991 PyThreadState* __tstate = wxPyBeginAllowThreads();
13992 (arg1)->SetUserScale(arg2,arg3);
13993
13994 wxPyEndAllowThreads(__tstate);
13995 if (PyErr_Occurred()) SWIG_fail;
13996 }
13997 Py_INCREF(Py_None); resultobj = Py_None;
13998 return resultobj;
13999 fail:
14000 return NULL;
14001 }
14002
14003
14004 static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
14005 PyObject *resultobj;
14006 wxDC *arg1 = (wxDC *) 0 ;
14007 double *arg2 = (double *) 0 ;
14008 double *arg3 = (double *) 0 ;
14009 double temp2 ;
14010 double temp3 ;
14011 PyObject * obj0 = 0 ;
14012 char *kwnames[] = {
14013 (char *) "self", NULL
14014 };
14015
14016 arg2 = &temp2;
14017 arg3 = &temp3;
14018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14021 {
14022 PyThreadState* __tstate = wxPyBeginAllowThreads();
14023 (arg1)->GetLogicalScale(arg2,arg3);
14024
14025 wxPyEndAllowThreads(__tstate);
14026 if (PyErr_Occurred()) SWIG_fail;
14027 }
14028 Py_INCREF(Py_None); resultobj = Py_None;
14029 {
14030 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14031 resultobj = t_output_helper(resultobj,o);
14032 }
14033 {
14034 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14035 resultobj = t_output_helper(resultobj,o);
14036 }
14037 return resultobj;
14038 fail:
14039 return NULL;
14040 }
14041
14042
14043 static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
14044 PyObject *resultobj;
14045 wxDC *arg1 = (wxDC *) 0 ;
14046 double arg2 ;
14047 double arg3 ;
14048 PyObject * obj0 = 0 ;
14049 PyObject * obj1 = 0 ;
14050 PyObject * obj2 = 0 ;
14051 char *kwnames[] = {
14052 (char *) "self",(char *) "x",(char *) "y", NULL
14053 };
14054
14055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14058 arg2 = (double) SWIG_AsDouble(obj1);
14059 if (PyErr_Occurred()) SWIG_fail;
14060 arg3 = (double) SWIG_AsDouble(obj2);
14061 if (PyErr_Occurred()) SWIG_fail;
14062 {
14063 PyThreadState* __tstate = wxPyBeginAllowThreads();
14064 (arg1)->SetLogicalScale(arg2,arg3);
14065
14066 wxPyEndAllowThreads(__tstate);
14067 if (PyErr_Occurred()) SWIG_fail;
14068 }
14069 Py_INCREF(Py_None); resultobj = Py_None;
14070 return resultobj;
14071 fail:
14072 return NULL;
14073 }
14074
14075
14076 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14077 PyObject *resultobj;
14078 wxDC *arg1 = (wxDC *) 0 ;
14079 wxPoint result;
14080 PyObject * obj0 = 0 ;
14081 char *kwnames[] = {
14082 (char *) "self", NULL
14083 };
14084
14085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14088 {
14089 PyThreadState* __tstate = wxPyBeginAllowThreads();
14090 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14091
14092 wxPyEndAllowThreads(__tstate);
14093 if (PyErr_Occurred()) SWIG_fail;
14094 }
14095 {
14096 wxPoint * resultptr;
14097 resultptr = new wxPoint((wxPoint &) result);
14098 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14099 }
14100 return resultobj;
14101 fail:
14102 return NULL;
14103 }
14104
14105
14106 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
14107 PyObject *resultobj;
14108 wxDC *arg1 = (wxDC *) 0 ;
14109 int *arg2 = (int *) 0 ;
14110 int *arg3 = (int *) 0 ;
14111 int temp2 ;
14112 int temp3 ;
14113 PyObject * obj0 = 0 ;
14114 char *kwnames[] = {
14115 (char *) "self", NULL
14116 };
14117
14118 arg2 = &temp2;
14119 arg3 = &temp3;
14120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14123 {
14124 PyThreadState* __tstate = wxPyBeginAllowThreads();
14125 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14126
14127 wxPyEndAllowThreads(__tstate);
14128 if (PyErr_Occurred()) SWIG_fail;
14129 }
14130 Py_INCREF(Py_None); resultobj = Py_None;
14131 {
14132 PyObject *o = PyInt_FromLong((long) (*arg2));
14133 resultobj = t_output_helper(resultobj,o);
14134 }
14135 {
14136 PyObject *o = PyInt_FromLong((long) (*arg3));
14137 resultobj = t_output_helper(resultobj,o);
14138 }
14139 return resultobj;
14140 fail:
14141 return NULL;
14142 }
14143
14144
14145 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14146 PyObject *resultobj;
14147 wxDC *arg1 = (wxDC *) 0 ;
14148 int arg2 ;
14149 int arg3 ;
14150 PyObject * obj0 = 0 ;
14151 PyObject * obj1 = 0 ;
14152 PyObject * obj2 = 0 ;
14153 char *kwnames[] = {
14154 (char *) "self",(char *) "x",(char *) "y", NULL
14155 };
14156
14157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14160 arg2 = (int) SWIG_AsInt(obj1);
14161 if (PyErr_Occurred()) SWIG_fail;
14162 arg3 = (int) SWIG_AsInt(obj2);
14163 if (PyErr_Occurred()) SWIG_fail;
14164 {
14165 PyThreadState* __tstate = wxPyBeginAllowThreads();
14166 (arg1)->SetLogicalOrigin(arg2,arg3);
14167
14168 wxPyEndAllowThreads(__tstate);
14169 if (PyErr_Occurred()) SWIG_fail;
14170 }
14171 Py_INCREF(Py_None); resultobj = Py_None;
14172 return resultobj;
14173 fail:
14174 return NULL;
14175 }
14176
14177
14178 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14179 PyObject *resultobj;
14180 wxDC *arg1 = (wxDC *) 0 ;
14181 wxPoint result;
14182 PyObject * obj0 = 0 ;
14183 char *kwnames[] = {
14184 (char *) "self", NULL
14185 };
14186
14187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14190 {
14191 PyThreadState* __tstate = wxPyBeginAllowThreads();
14192 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14193
14194 wxPyEndAllowThreads(__tstate);
14195 if (PyErr_Occurred()) SWIG_fail;
14196 }
14197 {
14198 wxPoint * resultptr;
14199 resultptr = new wxPoint((wxPoint &) result);
14200 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14201 }
14202 return resultobj;
14203 fail:
14204 return NULL;
14205 }
14206
14207
14208 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
14209 PyObject *resultobj;
14210 wxDC *arg1 = (wxDC *) 0 ;
14211 int *arg2 = (int *) 0 ;
14212 int *arg3 = (int *) 0 ;
14213 int temp2 ;
14214 int temp3 ;
14215 PyObject * obj0 = 0 ;
14216 char *kwnames[] = {
14217 (char *) "self", NULL
14218 };
14219
14220 arg2 = &temp2;
14221 arg3 = &temp3;
14222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14225 {
14226 PyThreadState* __tstate = wxPyBeginAllowThreads();
14227 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14228
14229 wxPyEndAllowThreads(__tstate);
14230 if (PyErr_Occurred()) SWIG_fail;
14231 }
14232 Py_INCREF(Py_None); resultobj = Py_None;
14233 {
14234 PyObject *o = PyInt_FromLong((long) (*arg2));
14235 resultobj = t_output_helper(resultobj,o);
14236 }
14237 {
14238 PyObject *o = PyInt_FromLong((long) (*arg3));
14239 resultobj = t_output_helper(resultobj,o);
14240 }
14241 return resultobj;
14242 fail:
14243 return NULL;
14244 }
14245
14246
14247 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14248 PyObject *resultobj;
14249 wxDC *arg1 = (wxDC *) 0 ;
14250 int arg2 ;
14251 int arg3 ;
14252 PyObject * obj0 = 0 ;
14253 PyObject * obj1 = 0 ;
14254 PyObject * obj2 = 0 ;
14255 char *kwnames[] = {
14256 (char *) "self",(char *) "x",(char *) "y", NULL
14257 };
14258
14259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14262 arg2 = (int) SWIG_AsInt(obj1);
14263 if (PyErr_Occurred()) SWIG_fail;
14264 arg3 = (int) SWIG_AsInt(obj2);
14265 if (PyErr_Occurred()) SWIG_fail;
14266 {
14267 PyThreadState* __tstate = wxPyBeginAllowThreads();
14268 (arg1)->SetDeviceOrigin(arg2,arg3);
14269
14270 wxPyEndAllowThreads(__tstate);
14271 if (PyErr_Occurred()) SWIG_fail;
14272 }
14273 Py_INCREF(Py_None); resultobj = Py_None;
14274 return resultobj;
14275 fail:
14276 return NULL;
14277 }
14278
14279
14280 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
14281 PyObject *resultobj;
14282 wxDC *arg1 = (wxDC *) 0 ;
14283 bool arg2 ;
14284 bool arg3 ;
14285 PyObject * obj0 = 0 ;
14286 PyObject * obj1 = 0 ;
14287 PyObject * obj2 = 0 ;
14288 char *kwnames[] = {
14289 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14290 };
14291
14292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14295 arg2 = (bool) SWIG_AsBool(obj1);
14296 if (PyErr_Occurred()) SWIG_fail;
14297 arg3 = (bool) SWIG_AsBool(obj2);
14298 if (PyErr_Occurred()) SWIG_fail;
14299 {
14300 PyThreadState* __tstate = wxPyBeginAllowThreads();
14301 (arg1)->SetAxisOrientation(arg2,arg3);
14302
14303 wxPyEndAllowThreads(__tstate);
14304 if (PyErr_Occurred()) SWIG_fail;
14305 }
14306 Py_INCREF(Py_None); resultobj = Py_None;
14307 return resultobj;
14308 fail:
14309 return NULL;
14310 }
14311
14312
14313 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
14314 PyObject *resultobj;
14315 wxDC *arg1 = (wxDC *) 0 ;
14316 int result;
14317 PyObject * obj0 = 0 ;
14318 char *kwnames[] = {
14319 (char *) "self", NULL
14320 };
14321
14322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14325 {
14326 PyThreadState* __tstate = wxPyBeginAllowThreads();
14327 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14328
14329 wxPyEndAllowThreads(__tstate);
14330 if (PyErr_Occurred()) SWIG_fail;
14331 }
14332 resultobj = SWIG_FromInt((int)result);
14333 return resultobj;
14334 fail:
14335 return NULL;
14336 }
14337
14338
14339 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
14340 PyObject *resultobj;
14341 wxDC *arg1 = (wxDC *) 0 ;
14342 int arg2 ;
14343 PyObject * obj0 = 0 ;
14344 PyObject * obj1 = 0 ;
14345 char *kwnames[] = {
14346 (char *) "self",(char *) "function", NULL
14347 };
14348
14349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14352 arg2 = (int) SWIG_AsInt(obj1);
14353 if (PyErr_Occurred()) SWIG_fail;
14354 {
14355 PyThreadState* __tstate = wxPyBeginAllowThreads();
14356 (arg1)->SetLogicalFunction(arg2);
14357
14358 wxPyEndAllowThreads(__tstate);
14359 if (PyErr_Occurred()) SWIG_fail;
14360 }
14361 Py_INCREF(Py_None); resultobj = Py_None;
14362 return resultobj;
14363 fail:
14364 return NULL;
14365 }
14366
14367
14368 static PyObject *_wrap_DC_SetOptimization(PyObject *, PyObject *args, PyObject *kwargs) {
14369 PyObject *resultobj;
14370 wxDC *arg1 = (wxDC *) 0 ;
14371 bool arg2 ;
14372 PyObject * obj0 = 0 ;
14373 PyObject * obj1 = 0 ;
14374 char *kwnames[] = {
14375 (char *) "self",(char *) "opt", NULL
14376 };
14377
14378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14381 arg2 = (bool) SWIG_AsBool(obj1);
14382 if (PyErr_Occurred()) SWIG_fail;
14383 {
14384 PyThreadState* __tstate = wxPyBeginAllowThreads();
14385 (arg1)->SetOptimization(arg2);
14386
14387 wxPyEndAllowThreads(__tstate);
14388 if (PyErr_Occurred()) SWIG_fail;
14389 }
14390 Py_INCREF(Py_None); resultobj = Py_None;
14391 return resultobj;
14392 fail:
14393 return NULL;
14394 }
14395
14396
14397 static PyObject *_wrap_DC_GetOptimization(PyObject *, PyObject *args, PyObject *kwargs) {
14398 PyObject *resultobj;
14399 wxDC *arg1 = (wxDC *) 0 ;
14400 bool result;
14401 PyObject * obj0 = 0 ;
14402 char *kwnames[] = {
14403 (char *) "self", NULL
14404 };
14405
14406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14409 {
14410 PyThreadState* __tstate = wxPyBeginAllowThreads();
14411 result = (bool)(arg1)->GetOptimization();
14412
14413 wxPyEndAllowThreads(__tstate);
14414 if (PyErr_Occurred()) SWIG_fail;
14415 }
14416 {
14417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14418 }
14419 return resultobj;
14420 fail:
14421 return NULL;
14422 }
14423
14424
14425 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
14426 PyObject *resultobj;
14427 wxDC *arg1 = (wxDC *) 0 ;
14428 int arg2 ;
14429 int arg3 ;
14430 PyObject * obj0 = 0 ;
14431 PyObject * obj1 = 0 ;
14432 PyObject * obj2 = 0 ;
14433 char *kwnames[] = {
14434 (char *) "self",(char *) "x",(char *) "y", NULL
14435 };
14436
14437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14440 arg2 = (int) SWIG_AsInt(obj1);
14441 if (PyErr_Occurred()) SWIG_fail;
14442 arg3 = (int) SWIG_AsInt(obj2);
14443 if (PyErr_Occurred()) SWIG_fail;
14444 {
14445 PyThreadState* __tstate = wxPyBeginAllowThreads();
14446 (arg1)->CalcBoundingBox(arg2,arg3);
14447
14448 wxPyEndAllowThreads(__tstate);
14449 if (PyErr_Occurred()) SWIG_fail;
14450 }
14451 Py_INCREF(Py_None); resultobj = Py_None;
14452 return resultobj;
14453 fail:
14454 return NULL;
14455 }
14456
14457
14458 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
14459 PyObject *resultobj;
14460 wxDC *arg1 = (wxDC *) 0 ;
14461 PyObject * obj0 = 0 ;
14462 char *kwnames[] = {
14463 (char *) "self", NULL
14464 };
14465
14466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14469 {
14470 PyThreadState* __tstate = wxPyBeginAllowThreads();
14471 (arg1)->ResetBoundingBox();
14472
14473 wxPyEndAllowThreads(__tstate);
14474 if (PyErr_Occurred()) SWIG_fail;
14475 }
14476 Py_INCREF(Py_None); resultobj = Py_None;
14477 return resultobj;
14478 fail:
14479 return NULL;
14480 }
14481
14482
14483 static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) {
14484 PyObject *resultobj;
14485 wxDC *arg1 = (wxDC *) 0 ;
14486 int result;
14487 PyObject * obj0 = 0 ;
14488 char *kwnames[] = {
14489 (char *) "self", NULL
14490 };
14491
14492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14495 {
14496 PyThreadState* __tstate = wxPyBeginAllowThreads();
14497 result = (int)((wxDC const *)arg1)->MinX();
14498
14499 wxPyEndAllowThreads(__tstate);
14500 if (PyErr_Occurred()) SWIG_fail;
14501 }
14502 resultobj = SWIG_FromInt((int)result);
14503 return resultobj;
14504 fail:
14505 return NULL;
14506 }
14507
14508
14509 static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) {
14510 PyObject *resultobj;
14511 wxDC *arg1 = (wxDC *) 0 ;
14512 int result;
14513 PyObject * obj0 = 0 ;
14514 char *kwnames[] = {
14515 (char *) "self", NULL
14516 };
14517
14518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14521 {
14522 PyThreadState* __tstate = wxPyBeginAllowThreads();
14523 result = (int)((wxDC const *)arg1)->MaxX();
14524
14525 wxPyEndAllowThreads(__tstate);
14526 if (PyErr_Occurred()) SWIG_fail;
14527 }
14528 resultobj = SWIG_FromInt((int)result);
14529 return resultobj;
14530 fail:
14531 return NULL;
14532 }
14533
14534
14535 static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) {
14536 PyObject *resultobj;
14537 wxDC *arg1 = (wxDC *) 0 ;
14538 int result;
14539 PyObject * obj0 = 0 ;
14540 char *kwnames[] = {
14541 (char *) "self", NULL
14542 };
14543
14544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14547 {
14548 PyThreadState* __tstate = wxPyBeginAllowThreads();
14549 result = (int)((wxDC const *)arg1)->MinY();
14550
14551 wxPyEndAllowThreads(__tstate);
14552 if (PyErr_Occurred()) SWIG_fail;
14553 }
14554 resultobj = SWIG_FromInt((int)result);
14555 return resultobj;
14556 fail:
14557 return NULL;
14558 }
14559
14560
14561 static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) {
14562 PyObject *resultobj;
14563 wxDC *arg1 = (wxDC *) 0 ;
14564 int result;
14565 PyObject * obj0 = 0 ;
14566 char *kwnames[] = {
14567 (char *) "self", NULL
14568 };
14569
14570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14573 {
14574 PyThreadState* __tstate = wxPyBeginAllowThreads();
14575 result = (int)((wxDC const *)arg1)->MaxY();
14576
14577 wxPyEndAllowThreads(__tstate);
14578 if (PyErr_Occurred()) SWIG_fail;
14579 }
14580 resultobj = SWIG_FromInt((int)result);
14581 return resultobj;
14582 fail:
14583 return NULL;
14584 }
14585
14586
14587 static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
14588 PyObject *resultobj;
14589 wxDC *arg1 = (wxDC *) 0 ;
14590 int *arg2 = (int *) 0 ;
14591 int *arg3 = (int *) 0 ;
14592 int *arg4 = (int *) 0 ;
14593 int *arg5 = (int *) 0 ;
14594 int temp2 ;
14595 int temp3 ;
14596 int temp4 ;
14597 int temp5 ;
14598 PyObject * obj0 = 0 ;
14599 char *kwnames[] = {
14600 (char *) "self", NULL
14601 };
14602
14603 arg2 = &temp2;
14604 arg3 = &temp3;
14605 arg4 = &temp4;
14606 arg5 = &temp5;
14607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14610 {
14611 PyThreadState* __tstate = wxPyBeginAllowThreads();
14612 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14613
14614 wxPyEndAllowThreads(__tstate);
14615 if (PyErr_Occurred()) SWIG_fail;
14616 }
14617 Py_INCREF(Py_None); resultobj = Py_None;
14618 {
14619 PyObject *o = PyInt_FromLong((long) (*arg2));
14620 resultobj = t_output_helper(resultobj,o);
14621 }
14622 {
14623 PyObject *o = PyInt_FromLong((long) (*arg3));
14624 resultobj = t_output_helper(resultobj,o);
14625 }
14626 {
14627 PyObject *o = PyInt_FromLong((long) (*arg4));
14628 resultobj = t_output_helper(resultobj,o);
14629 }
14630 {
14631 PyObject *o = PyInt_FromLong((long) (*arg5));
14632 resultobj = t_output_helper(resultobj,o);
14633 }
14634 return resultobj;
14635 fail:
14636 return NULL;
14637 }
14638
14639
14640 static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) {
14641 PyObject *resultobj;
14642 wxDC *arg1 = (wxDC *) 0 ;
14643 PyObject *arg2 = (PyObject *) 0 ;
14644 PyObject *arg3 = (PyObject *) 0 ;
14645 PyObject *arg4 = (PyObject *) 0 ;
14646 PyObject *result;
14647 PyObject * obj0 = 0 ;
14648 PyObject * obj1 = 0 ;
14649 PyObject * obj2 = 0 ;
14650 PyObject * obj3 = 0 ;
14651 char *kwnames[] = {
14652 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14653 };
14654
14655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14658 arg2 = obj1;
14659 arg3 = obj2;
14660 arg4 = obj3;
14661 {
14662 PyThreadState* __tstate = wxPyBeginAllowThreads();
14663 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14664
14665 wxPyEndAllowThreads(__tstate);
14666 if (PyErr_Occurred()) SWIG_fail;
14667 }
14668 resultobj = result;
14669 return resultobj;
14670 fail:
14671 return NULL;
14672 }
14673
14674
14675 static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) {
14676 PyObject *resultobj;
14677 wxDC *arg1 = (wxDC *) 0 ;
14678 PyObject *arg2 = (PyObject *) 0 ;
14679 PyObject *arg3 = (PyObject *) 0 ;
14680 PyObject *arg4 = (PyObject *) 0 ;
14681 PyObject *result;
14682 PyObject * obj0 = 0 ;
14683 PyObject * obj1 = 0 ;
14684 PyObject * obj2 = 0 ;
14685 PyObject * obj3 = 0 ;
14686 char *kwnames[] = {
14687 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14688 };
14689
14690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14693 arg2 = obj1;
14694 arg3 = obj2;
14695 arg4 = obj3;
14696 {
14697 PyThreadState* __tstate = wxPyBeginAllowThreads();
14698 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14699
14700 wxPyEndAllowThreads(__tstate);
14701 if (PyErr_Occurred()) SWIG_fail;
14702 }
14703 resultobj = result;
14704 return resultobj;
14705 fail:
14706 return NULL;
14707 }
14708
14709
14710 static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) {
14711 PyObject *resultobj;
14712 wxDC *arg1 = (wxDC *) 0 ;
14713 PyObject *arg2 = (PyObject *) 0 ;
14714 PyObject *arg3 = (PyObject *) 0 ;
14715 PyObject *arg4 = (PyObject *) 0 ;
14716 PyObject *result;
14717 PyObject * obj0 = 0 ;
14718 PyObject * obj1 = 0 ;
14719 PyObject * obj2 = 0 ;
14720 PyObject * obj3 = 0 ;
14721 char *kwnames[] = {
14722 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14723 };
14724
14725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14728 arg2 = obj1;
14729 arg3 = obj2;
14730 arg4 = obj3;
14731 {
14732 PyThreadState* __tstate = wxPyBeginAllowThreads();
14733 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14734
14735 wxPyEndAllowThreads(__tstate);
14736 if (PyErr_Occurred()) SWIG_fail;
14737 }
14738 resultobj = result;
14739 return resultobj;
14740 fail:
14741 return NULL;
14742 }
14743
14744
14745 static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) {
14746 PyObject *resultobj;
14747 wxDC *arg1 = (wxDC *) 0 ;
14748 PyObject *arg2 = (PyObject *) 0 ;
14749 PyObject *arg3 = (PyObject *) 0 ;
14750 PyObject *arg4 = (PyObject *) 0 ;
14751 PyObject *result;
14752 PyObject * obj0 = 0 ;
14753 PyObject * obj1 = 0 ;
14754 PyObject * obj2 = 0 ;
14755 PyObject * obj3 = 0 ;
14756 char *kwnames[] = {
14757 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14758 };
14759
14760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14763 arg2 = obj1;
14764 arg3 = obj2;
14765 arg4 = obj3;
14766 {
14767 PyThreadState* __tstate = wxPyBeginAllowThreads();
14768 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14769
14770 wxPyEndAllowThreads(__tstate);
14771 if (PyErr_Occurred()) SWIG_fail;
14772 }
14773 resultobj = result;
14774 return resultobj;
14775 fail:
14776 return NULL;
14777 }
14778
14779
14780 static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) {
14781 PyObject *resultobj;
14782 wxDC *arg1 = (wxDC *) 0 ;
14783 PyObject *arg2 = (PyObject *) 0 ;
14784 PyObject *arg3 = (PyObject *) 0 ;
14785 PyObject *arg4 = (PyObject *) 0 ;
14786 PyObject *result;
14787 PyObject * obj0 = 0 ;
14788 PyObject * obj1 = 0 ;
14789 PyObject * obj2 = 0 ;
14790 PyObject * obj3 = 0 ;
14791 char *kwnames[] = {
14792 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14793 };
14794
14795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14798 arg2 = obj1;
14799 arg3 = obj2;
14800 arg4 = obj3;
14801 {
14802 PyThreadState* __tstate = wxPyBeginAllowThreads();
14803 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
14804
14805 wxPyEndAllowThreads(__tstate);
14806 if (PyErr_Occurred()) SWIG_fail;
14807 }
14808 resultobj = result;
14809 return resultobj;
14810 fail:
14811 return NULL;
14812 }
14813
14814
14815 static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) {
14816 PyObject *resultobj;
14817 wxDC *arg1 = (wxDC *) 0 ;
14818 PyObject *arg2 = (PyObject *) 0 ;
14819 PyObject *arg3 = (PyObject *) 0 ;
14820 PyObject *arg4 = (PyObject *) 0 ;
14821 PyObject *arg5 = (PyObject *) 0 ;
14822 PyObject *result;
14823 PyObject * obj0 = 0 ;
14824 PyObject * obj1 = 0 ;
14825 PyObject * obj2 = 0 ;
14826 PyObject * obj3 = 0 ;
14827 PyObject * obj4 = 0 ;
14828 char *kwnames[] = {
14829 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
14830 };
14831
14832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14835 arg2 = obj1;
14836 arg3 = obj2;
14837 arg4 = obj3;
14838 arg5 = obj4;
14839 {
14840 PyThreadState* __tstate = wxPyBeginAllowThreads();
14841 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
14842
14843 wxPyEndAllowThreads(__tstate);
14844 if (PyErr_Occurred()) SWIG_fail;
14845 }
14846 resultobj = result;
14847 return resultobj;
14848 fail:
14849 return NULL;
14850 }
14851
14852
14853 static PyObject * DC_swigregister(PyObject *, PyObject *args) {
14854 PyObject *obj;
14855 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14856 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
14857 Py_INCREF(obj);
14858 return Py_BuildValue((char *)"");
14859 }
14860 static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) {
14861 PyObject *resultobj;
14862 wxMemoryDC *result;
14863 char *kwnames[] = {
14864 NULL
14865 };
14866
14867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
14868 {
14869 PyThreadState* __tstate = wxPyBeginAllowThreads();
14870 result = (wxMemoryDC *)new wxMemoryDC();
14871
14872 wxPyEndAllowThreads(__tstate);
14873 if (PyErr_Occurred()) SWIG_fail;
14874 }
14875 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
14876 return resultobj;
14877 fail:
14878 return NULL;
14879 }
14880
14881
14882 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) {
14883 PyObject *resultobj;
14884 wxDC *arg1 = (wxDC *) 0 ;
14885 wxMemoryDC *result;
14886 PyObject * obj0 = 0 ;
14887 char *kwnames[] = {
14888 (char *) "oldDC", NULL
14889 };
14890
14891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
14892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14894 {
14895 PyThreadState* __tstate = wxPyBeginAllowThreads();
14896 result = (wxMemoryDC *)new wxMemoryDC(arg1);
14897
14898 wxPyEndAllowThreads(__tstate);
14899 if (PyErr_Occurred()) SWIG_fail;
14900 }
14901 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
14902 return resultobj;
14903 fail:
14904 return NULL;
14905 }
14906
14907
14908 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) {
14909 PyObject *resultobj;
14910 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
14911 wxBitmap *arg2 = 0 ;
14912 PyObject * obj0 = 0 ;
14913 PyObject * obj1 = 0 ;
14914 char *kwnames[] = {
14915 (char *) "self",(char *) "bitmap", NULL
14916 };
14917
14918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
14919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
14920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14921 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
14922 SWIG_POINTER_EXCEPTION | 0)) == -1)
14923 SWIG_fail;
14924 if (arg2 == NULL) {
14925 PyErr_SetString(PyExc_TypeError,"null reference");
14926 SWIG_fail;
14927 }
14928 {
14929 PyThreadState* __tstate = wxPyBeginAllowThreads();
14930 (arg1)->SelectObject((wxBitmap const &)*arg2);
14931
14932 wxPyEndAllowThreads(__tstate);
14933 if (PyErr_Occurred()) SWIG_fail;
14934 }
14935 Py_INCREF(Py_None); resultobj = Py_None;
14936 return resultobj;
14937 fail:
14938 return NULL;
14939 }
14940
14941
14942 static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) {
14943 PyObject *obj;
14944 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14945 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
14946 Py_INCREF(obj);
14947 return Py_BuildValue((char *)"");
14948 }
14949 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) {
14950 PyObject *resultobj;
14951 wxDC *arg1 = (wxDC *) 0 ;
14952 wxBitmap *arg2 = 0 ;
14953 wxBufferedDC *result;
14954 PyObject * obj0 = 0 ;
14955 PyObject * obj1 = 0 ;
14956
14957 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
14958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14960 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
14961 SWIG_POINTER_EXCEPTION | 0)) == -1)
14962 SWIG_fail;
14963 if (arg2 == NULL) {
14964 PyErr_SetString(PyExc_TypeError,"null reference");
14965 SWIG_fail;
14966 }
14967 {
14968 PyThreadState* __tstate = wxPyBeginAllowThreads();
14969 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
14970
14971 wxPyEndAllowThreads(__tstate);
14972 if (PyErr_Occurred()) SWIG_fail;
14973 }
14974 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
14975 return resultobj;
14976 fail:
14977 return NULL;
14978 }
14979
14980
14981 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) {
14982 PyObject *resultobj;
14983 wxDC *arg1 = (wxDC *) 0 ;
14984 wxSize *arg2 = 0 ;
14985 wxBufferedDC *result;
14986 wxSize temp2 ;
14987 PyObject * obj0 = 0 ;
14988 PyObject * obj1 = 0 ;
14989
14990 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
14991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14993 {
14994 arg2 = &temp2;
14995 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14996 }
14997 {
14998 PyThreadState* __tstate = wxPyBeginAllowThreads();
14999 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15000
15001 wxPyEndAllowThreads(__tstate);
15002 if (PyErr_Occurred()) SWIG_fail;
15003 }
15004 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15005 return resultobj;
15006 fail:
15007 return NULL;
15008 }
15009
15010
15011 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15012 int argc;
15013 PyObject *argv[3];
15014 int ii;
15015
15016 argc = PyObject_Length(args);
15017 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15018 argv[ii] = PyTuple_GetItem(args,ii);
15019 }
15020 if (argc == 2) {
15021 int _v;
15022 {
15023 void *ptr;
15024 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15025 _v = 0;
15026 PyErr_Clear();
15027 } else {
15028 _v = 1;
15029 }
15030 }
15031 if (_v) {
15032 {
15033 void *ptr;
15034 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15035 _v = 0;
15036 PyErr_Clear();
15037 } else {
15038 _v = 1;
15039 }
15040 }
15041 if (_v) {
15042 return _wrap_new_BufferedDC__SWIG_0(self,args);
15043 }
15044 }
15045 }
15046 if (argc == 2) {
15047 int _v;
15048 {
15049 void *ptr;
15050 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15051 _v = 0;
15052 PyErr_Clear();
15053 } else {
15054 _v = 1;
15055 }
15056 }
15057 if (_v) {
15058 {
15059 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15060 }
15061 if (_v) {
15062 return _wrap_new_BufferedDC__SWIG_1(self,args);
15063 }
15064 }
15065 }
15066
15067 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15068 return NULL;
15069 }
15070
15071
15072 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *, PyObject *args) {
15073 PyObject *resultobj;
15074 wxDC *arg1 = (wxDC *) 0 ;
15075 wxSize *arg2 = 0 ;
15076 wxBufferedDC *result;
15077 wxSize temp2 ;
15078 PyObject * obj0 = 0 ;
15079 PyObject * obj1 = 0 ;
15080
15081 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
15082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15084 {
15085 arg2 = &temp2;
15086 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15087 }
15088 {
15089 PyThreadState* __tstate = wxPyBeginAllowThreads();
15090 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15091
15092 wxPyEndAllowThreads(__tstate);
15093 if (PyErr_Occurred()) SWIG_fail;
15094 }
15095 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15096 return resultobj;
15097 fail:
15098 return NULL;
15099 }
15100
15101
15102 static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) {
15103 PyObject *resultobj;
15104 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15105 PyObject * obj0 = 0 ;
15106 char *kwnames[] = {
15107 (char *) "self", NULL
15108 };
15109
15110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15113 {
15114 PyThreadState* __tstate = wxPyBeginAllowThreads();
15115 delete arg1;
15116
15117 wxPyEndAllowThreads(__tstate);
15118 if (PyErr_Occurred()) SWIG_fail;
15119 }
15120 Py_INCREF(Py_None); resultobj = Py_None;
15121 return resultobj;
15122 fail:
15123 return NULL;
15124 }
15125
15126
15127 static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) {
15128 PyObject *resultobj;
15129 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15130 PyObject * obj0 = 0 ;
15131 char *kwnames[] = {
15132 (char *) "self", NULL
15133 };
15134
15135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15138 {
15139 PyThreadState* __tstate = wxPyBeginAllowThreads();
15140 (arg1)->UnMask();
15141
15142 wxPyEndAllowThreads(__tstate);
15143 if (PyErr_Occurred()) SWIG_fail;
15144 }
15145 Py_INCREF(Py_None); resultobj = Py_None;
15146 return resultobj;
15147 fail:
15148 return NULL;
15149 }
15150
15151
15152 static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) {
15153 PyObject *obj;
15154 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15155 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15156 Py_INCREF(obj);
15157 return Py_BuildValue((char *)"");
15158 }
15159 static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
15160 PyObject *resultobj;
15161 wxWindow *arg1 = (wxWindow *) 0 ;
15162 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15163 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15164 wxBufferedPaintDC *result;
15165 PyObject * obj0 = 0 ;
15166 PyObject * obj1 = 0 ;
15167 char *kwnames[] = {
15168 (char *) "window",(char *) "buffer", NULL
15169 };
15170
15171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15174 if (obj1) {
15175 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15176 SWIG_POINTER_EXCEPTION | 0)) == -1)
15177 SWIG_fail;
15178 if (arg2 == NULL) {
15179 PyErr_SetString(PyExc_TypeError,"null reference");
15180 SWIG_fail;
15181 }
15182 }
15183 {
15184 PyThreadState* __tstate = wxPyBeginAllowThreads();
15185 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15186
15187 wxPyEndAllowThreads(__tstate);
15188 if (PyErr_Occurred()) SWIG_fail;
15189 }
15190 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15191 return resultobj;
15192 fail:
15193 return NULL;
15194 }
15195
15196
15197 static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) {
15198 PyObject *obj;
15199 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15200 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15201 Py_INCREF(obj);
15202 return Py_BuildValue((char *)"");
15203 }
15204 static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) {
15205 PyObject *resultobj;
15206 wxScreenDC *result;
15207 char *kwnames[] = {
15208 NULL
15209 };
15210
15211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15212 {
15213 PyThreadState* __tstate = wxPyBeginAllowThreads();
15214 result = (wxScreenDC *)new wxScreenDC();
15215
15216 wxPyEndAllowThreads(__tstate);
15217 if (PyErr_Occurred()) SWIG_fail;
15218 }
15219 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15220 return resultobj;
15221 fail:
15222 return NULL;
15223 }
15224
15225
15226 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) {
15227 PyObject *resultobj;
15228 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15229 wxWindow *arg2 = (wxWindow *) 0 ;
15230 bool result;
15231 PyObject * obj0 = 0 ;
15232 PyObject * obj1 = 0 ;
15233 char *kwnames[] = {
15234 (char *) "self",(char *) "window", NULL
15235 };
15236
15237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15240 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15242 {
15243 PyThreadState* __tstate = wxPyBeginAllowThreads();
15244 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15245
15246 wxPyEndAllowThreads(__tstate);
15247 if (PyErr_Occurred()) SWIG_fail;
15248 }
15249 {
15250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15251 }
15252 return resultobj;
15253 fail:
15254 return NULL;
15255 }
15256
15257
15258 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
15259 PyObject *resultobj;
15260 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15261 wxRect *arg2 = (wxRect *) NULL ;
15262 bool result;
15263 PyObject * obj0 = 0 ;
15264 PyObject * obj1 = 0 ;
15265 char *kwnames[] = {
15266 (char *) "self",(char *) "rect", NULL
15267 };
15268
15269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15272 if (obj1) {
15273 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15275 }
15276 {
15277 PyThreadState* __tstate = wxPyBeginAllowThreads();
15278 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15279
15280 wxPyEndAllowThreads(__tstate);
15281 if (PyErr_Occurred()) SWIG_fail;
15282 }
15283 {
15284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15285 }
15286 return resultobj;
15287 fail:
15288 return NULL;
15289 }
15290
15291
15292 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
15293 PyObject *resultobj;
15294 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15295 bool result;
15296 PyObject * obj0 = 0 ;
15297 char *kwnames[] = {
15298 (char *) "self", NULL
15299 };
15300
15301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15304 {
15305 PyThreadState* __tstate = wxPyBeginAllowThreads();
15306 result = (bool)(arg1)->EndDrawingOnTop();
15307
15308 wxPyEndAllowThreads(__tstate);
15309 if (PyErr_Occurred()) SWIG_fail;
15310 }
15311 {
15312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15313 }
15314 return resultobj;
15315 fail:
15316 return NULL;
15317 }
15318
15319
15320 static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) {
15321 PyObject *obj;
15322 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15323 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15324 Py_INCREF(obj);
15325 return Py_BuildValue((char *)"");
15326 }
15327 static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) {
15328 PyObject *resultobj;
15329 wxWindow *arg1 = (wxWindow *) 0 ;
15330 wxClientDC *result;
15331 PyObject * obj0 = 0 ;
15332 char *kwnames[] = {
15333 (char *) "win", NULL
15334 };
15335
15336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15339 {
15340 PyThreadState* __tstate = wxPyBeginAllowThreads();
15341 result = (wxClientDC *)new wxClientDC(arg1);
15342
15343 wxPyEndAllowThreads(__tstate);
15344 if (PyErr_Occurred()) SWIG_fail;
15345 }
15346 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
15347 return resultobj;
15348 fail:
15349 return NULL;
15350 }
15351
15352
15353 static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) {
15354 PyObject *obj;
15355 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15356 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15357 Py_INCREF(obj);
15358 return Py_BuildValue((char *)"");
15359 }
15360 static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
15361 PyObject *resultobj;
15362 wxWindow *arg1 = (wxWindow *) 0 ;
15363 wxPaintDC *result;
15364 PyObject * obj0 = 0 ;
15365 char *kwnames[] = {
15366 (char *) "win", NULL
15367 };
15368
15369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15372 {
15373 PyThreadState* __tstate = wxPyBeginAllowThreads();
15374 result = (wxPaintDC *)new wxPaintDC(arg1);
15375
15376 wxPyEndAllowThreads(__tstate);
15377 if (PyErr_Occurred()) SWIG_fail;
15378 }
15379 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
15380 return resultobj;
15381 fail:
15382 return NULL;
15383 }
15384
15385
15386 static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) {
15387 PyObject *obj;
15388 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15389 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15390 Py_INCREF(obj);
15391 return Py_BuildValue((char *)"");
15392 }
15393 static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) {
15394 PyObject *resultobj;
15395 wxWindow *arg1 = (wxWindow *) 0 ;
15396 wxWindowDC *result;
15397 PyObject * obj0 = 0 ;
15398 char *kwnames[] = {
15399 (char *) "win", NULL
15400 };
15401
15402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15405 {
15406 PyThreadState* __tstate = wxPyBeginAllowThreads();
15407 result = (wxWindowDC *)new wxWindowDC(arg1);
15408
15409 wxPyEndAllowThreads(__tstate);
15410 if (PyErr_Occurred()) SWIG_fail;
15411 }
15412 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
15413 return resultobj;
15414 fail:
15415 return NULL;
15416 }
15417
15418
15419 static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) {
15420 PyObject *obj;
15421 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15422 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15423 Py_INCREF(obj);
15424 return Py_BuildValue((char *)"");
15425 }
15426 static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) {
15427 PyObject *resultobj;
15428 wxDC *arg1 = 0 ;
15429 bool arg2 ;
15430 wxMirrorDC *result;
15431 PyObject * obj0 = 0 ;
15432 PyObject * obj1 = 0 ;
15433 char *kwnames[] = {
15434 (char *) "dc",(char *) "mirror", NULL
15435 };
15436
15437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15439 SWIG_POINTER_EXCEPTION | 0)) == -1)
15440 SWIG_fail;
15441 if (arg1 == NULL) {
15442 PyErr_SetString(PyExc_TypeError,"null reference");
15443 SWIG_fail;
15444 }
15445 arg2 = (bool) SWIG_AsBool(obj1);
15446 if (PyErr_Occurred()) SWIG_fail;
15447 {
15448 PyThreadState* __tstate = wxPyBeginAllowThreads();
15449 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15450
15451 wxPyEndAllowThreads(__tstate);
15452 if (PyErr_Occurred()) SWIG_fail;
15453 }
15454 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
15455 return resultobj;
15456 fail:
15457 return NULL;
15458 }
15459
15460
15461 static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) {
15462 PyObject *obj;
15463 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15464 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15465 Py_INCREF(obj);
15466 return Py_BuildValue((char *)"");
15467 }
15468 static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) {
15469 PyObject *resultobj;
15470 wxPrintData *arg1 = 0 ;
15471 wxPostScriptDC *result;
15472 PyObject * obj0 = 0 ;
15473 char *kwnames[] = {
15474 (char *) "printData", NULL
15475 };
15476
15477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15479 SWIG_POINTER_EXCEPTION | 0)) == -1)
15480 SWIG_fail;
15481 if (arg1 == NULL) {
15482 PyErr_SetString(PyExc_TypeError,"null reference");
15483 SWIG_fail;
15484 }
15485 {
15486 PyThreadState* __tstate = wxPyBeginAllowThreads();
15487 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15488
15489 wxPyEndAllowThreads(__tstate);
15490 if (PyErr_Occurred()) SWIG_fail;
15491 }
15492 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
15493 return resultobj;
15494 fail:
15495 return NULL;
15496 }
15497
15498
15499 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
15500 PyObject *resultobj;
15501 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15502 wxPrintData *result;
15503 PyObject * obj0 = 0 ;
15504 char *kwnames[] = {
15505 (char *) "self", NULL
15506 };
15507
15508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15511 {
15512 PyThreadState* __tstate = wxPyBeginAllowThreads();
15513 {
15514 wxPrintData &_result_ref = (arg1)->GetPrintData();
15515 result = (wxPrintData *) &_result_ref;
15516 }
15517
15518 wxPyEndAllowThreads(__tstate);
15519 if (PyErr_Occurred()) SWIG_fail;
15520 }
15521 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
15522 return resultobj;
15523 fail:
15524 return NULL;
15525 }
15526
15527
15528 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
15529 PyObject *resultobj;
15530 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15531 wxPrintData *arg2 = 0 ;
15532 PyObject * obj0 = 0 ;
15533 PyObject * obj1 = 0 ;
15534 char *kwnames[] = {
15535 (char *) "self",(char *) "data", NULL
15536 };
15537
15538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15541 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
15542 SWIG_POINTER_EXCEPTION | 0)) == -1)
15543 SWIG_fail;
15544 if (arg2 == NULL) {
15545 PyErr_SetString(PyExc_TypeError,"null reference");
15546 SWIG_fail;
15547 }
15548 {
15549 PyThreadState* __tstate = wxPyBeginAllowThreads();
15550 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15551
15552 wxPyEndAllowThreads(__tstate);
15553 if (PyErr_Occurred()) SWIG_fail;
15554 }
15555 Py_INCREF(Py_None); resultobj = Py_None;
15556 return resultobj;
15557 fail:
15558 return NULL;
15559 }
15560
15561
15562 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
15563 PyObject *resultobj;
15564 int arg1 ;
15565 PyObject * obj0 = 0 ;
15566 char *kwnames[] = {
15567 (char *) "ppi", NULL
15568 };
15569
15570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15571 arg1 = (int) SWIG_AsInt(obj0);
15572 if (PyErr_Occurred()) SWIG_fail;
15573 {
15574 PyThreadState* __tstate = wxPyBeginAllowThreads();
15575 wxPostScriptDC::SetResolution(arg1);
15576
15577 wxPyEndAllowThreads(__tstate);
15578 if (PyErr_Occurred()) SWIG_fail;
15579 }
15580 Py_INCREF(Py_None); resultobj = Py_None;
15581 return resultobj;
15582 fail:
15583 return NULL;
15584 }
15585
15586
15587 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
15588 PyObject *resultobj;
15589 int result;
15590 char *kwnames[] = {
15591 NULL
15592 };
15593
15594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15595 {
15596 PyThreadState* __tstate = wxPyBeginAllowThreads();
15597 result = (int)wxPostScriptDC::GetResolution();
15598
15599 wxPyEndAllowThreads(__tstate);
15600 if (PyErr_Occurred()) SWIG_fail;
15601 }
15602 resultobj = SWIG_FromInt((int)result);
15603 return resultobj;
15604 fail:
15605 return NULL;
15606 }
15607
15608
15609 static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) {
15610 PyObject *obj;
15611 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15612 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15613 Py_INCREF(obj);
15614 return Py_BuildValue((char *)"");
15615 }
15616 static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
15617 PyObject *resultobj;
15618 wxString const &arg1_defvalue = wxPyEmptyString ;
15619 wxString *arg1 = (wxString *) &arg1_defvalue ;
15620 wxMetaFile *result;
15621 bool temp1 = False ;
15622 PyObject * obj0 = 0 ;
15623 char *kwnames[] = {
15624 (char *) "filename", NULL
15625 };
15626
15627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15628 if (obj0) {
15629 {
15630 arg1 = wxString_in_helper(obj0);
15631 if (arg1 == NULL) SWIG_fail;
15632 temp1 = True;
15633 }
15634 }
15635 {
15636 PyThreadState* __tstate = wxPyBeginAllowThreads();
15637 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15638
15639 wxPyEndAllowThreads(__tstate);
15640 if (PyErr_Occurred()) SWIG_fail;
15641 }
15642 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
15643 {
15644 if (temp1)
15645 delete arg1;
15646 }
15647 return resultobj;
15648 fail:
15649 {
15650 if (temp1)
15651 delete arg1;
15652 }
15653 return NULL;
15654 }
15655
15656
15657 static PyObject *_wrap_delete_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
15658 PyObject *resultobj;
15659 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15660 PyObject * obj0 = 0 ;
15661 char *kwnames[] = {
15662 (char *) "self", NULL
15663 };
15664
15665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
15666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15668 {
15669 PyThreadState* __tstate = wxPyBeginAllowThreads();
15670 delete arg1;
15671
15672 wxPyEndAllowThreads(__tstate);
15673 if (PyErr_Occurred()) SWIG_fail;
15674 }
15675 Py_INCREF(Py_None); resultobj = Py_None;
15676 return resultobj;
15677 fail:
15678 return NULL;
15679 }
15680
15681
15682 static PyObject *_wrap_MetaFile_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
15683 PyObject *resultobj;
15684 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15685 bool result;
15686 PyObject * obj0 = 0 ;
15687 char *kwnames[] = {
15688 (char *) "self", NULL
15689 };
15690
15691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
15692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15694 {
15695 PyThreadState* __tstate = wxPyBeginAllowThreads();
15696 result = (bool)(arg1)->Ok();
15697
15698 wxPyEndAllowThreads(__tstate);
15699 if (PyErr_Occurred()) SWIG_fail;
15700 }
15701 {
15702 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15703 }
15704 return resultobj;
15705 fail:
15706 return NULL;
15707 }
15708
15709
15710 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *, PyObject *args, PyObject *kwargs) {
15711 PyObject *resultobj;
15712 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15713 int arg2 = (int) 0 ;
15714 int arg3 = (int) 0 ;
15715 bool result;
15716 PyObject * obj0 = 0 ;
15717 PyObject * obj1 = 0 ;
15718 PyObject * obj2 = 0 ;
15719 char *kwnames[] = {
15720 (char *) "self",(char *) "width",(char *) "height", NULL
15721 };
15722
15723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
15724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15726 if (obj1) {
15727 arg2 = (int) SWIG_AsInt(obj1);
15728 if (PyErr_Occurred()) SWIG_fail;
15729 }
15730 if (obj2) {
15731 arg3 = (int) SWIG_AsInt(obj2);
15732 if (PyErr_Occurred()) SWIG_fail;
15733 }
15734 {
15735 PyThreadState* __tstate = wxPyBeginAllowThreads();
15736 result = (bool)(arg1)->SetClipboard(arg2,arg3);
15737
15738 wxPyEndAllowThreads(__tstate);
15739 if (PyErr_Occurred()) SWIG_fail;
15740 }
15741 {
15742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15743 }
15744 return resultobj;
15745 fail:
15746 return NULL;
15747 }
15748
15749
15750 static PyObject *_wrap_MetaFile_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
15751 PyObject *resultobj;
15752 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15753 wxSize result;
15754 PyObject * obj0 = 0 ;
15755 char *kwnames[] = {
15756 (char *) "self", NULL
15757 };
15758
15759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
15760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15762 {
15763 PyThreadState* __tstate = wxPyBeginAllowThreads();
15764 result = (arg1)->GetSize();
15765
15766 wxPyEndAllowThreads(__tstate);
15767 if (PyErr_Occurred()) SWIG_fail;
15768 }
15769 {
15770 wxSize * resultptr;
15771 resultptr = new wxSize((wxSize &) result);
15772 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15773 }
15774 return resultobj;
15775 fail:
15776 return NULL;
15777 }
15778
15779
15780 static PyObject *_wrap_MetaFile_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
15781 PyObject *resultobj;
15782 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15783 int result;
15784 PyObject * obj0 = 0 ;
15785 char *kwnames[] = {
15786 (char *) "self", NULL
15787 };
15788
15789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
15790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15792 {
15793 PyThreadState* __tstate = wxPyBeginAllowThreads();
15794 result = (int)(arg1)->GetWidth();
15795
15796 wxPyEndAllowThreads(__tstate);
15797 if (PyErr_Occurred()) SWIG_fail;
15798 }
15799 resultobj = SWIG_FromInt((int)result);
15800 return resultobj;
15801 fail:
15802 return NULL;
15803 }
15804
15805
15806 static PyObject *_wrap_MetaFile_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
15807 PyObject *resultobj;
15808 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15809 int result;
15810 PyObject * obj0 = 0 ;
15811 char *kwnames[] = {
15812 (char *) "self", NULL
15813 };
15814
15815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
15816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15818 {
15819 PyThreadState* __tstate = wxPyBeginAllowThreads();
15820 result = (int)(arg1)->GetHeight();
15821
15822 wxPyEndAllowThreads(__tstate);
15823 if (PyErr_Occurred()) SWIG_fail;
15824 }
15825 resultobj = SWIG_FromInt((int)result);
15826 return resultobj;
15827 fail:
15828 return NULL;
15829 }
15830
15831
15832 static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) {
15833 PyObject *obj;
15834 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15835 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15836 Py_INCREF(obj);
15837 return Py_BuildValue((char *)"");
15838 }
15839 static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) {
15840 PyObject *resultobj;
15841 wxString const &arg1_defvalue = wxPyEmptyString ;
15842 wxString *arg1 = (wxString *) &arg1_defvalue ;
15843 int arg2 = (int) 0 ;
15844 int arg3 = (int) 0 ;
15845 wxString const &arg4_defvalue = wxPyEmptyString ;
15846 wxString *arg4 = (wxString *) &arg4_defvalue ;
15847 wxMetaFileDC *result;
15848 bool temp1 = False ;
15849 bool temp4 = False ;
15850 PyObject * obj0 = 0 ;
15851 PyObject * obj1 = 0 ;
15852 PyObject * obj2 = 0 ;
15853 PyObject * obj3 = 0 ;
15854 char *kwnames[] = {
15855 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
15856 };
15857
15858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15859 if (obj0) {
15860 {
15861 arg1 = wxString_in_helper(obj0);
15862 if (arg1 == NULL) SWIG_fail;
15863 temp1 = True;
15864 }
15865 }
15866 if (obj1) {
15867 arg2 = (int) SWIG_AsInt(obj1);
15868 if (PyErr_Occurred()) SWIG_fail;
15869 }
15870 if (obj2) {
15871 arg3 = (int) SWIG_AsInt(obj2);
15872 if (PyErr_Occurred()) SWIG_fail;
15873 }
15874 if (obj3) {
15875 {
15876 arg4 = wxString_in_helper(obj3);
15877 if (arg4 == NULL) SWIG_fail;
15878 temp4 = True;
15879 }
15880 }
15881 {
15882 PyThreadState* __tstate = wxPyBeginAllowThreads();
15883 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
15884
15885 wxPyEndAllowThreads(__tstate);
15886 if (PyErr_Occurred()) SWIG_fail;
15887 }
15888 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
15889 {
15890 if (temp1)
15891 delete arg1;
15892 }
15893 {
15894 if (temp4)
15895 delete arg4;
15896 }
15897 return resultobj;
15898 fail:
15899 {
15900 if (temp1)
15901 delete arg1;
15902 }
15903 {
15904 if (temp4)
15905 delete arg4;
15906 }
15907 return NULL;
15908 }
15909
15910
15911 static PyObject *_wrap_MetaFileDC_Close(PyObject *, PyObject *args, PyObject *kwargs) {
15912 PyObject *resultobj;
15913 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
15914 wxMetaFile *result;
15915 PyObject * obj0 = 0 ;
15916 char *kwnames[] = {
15917 (char *) "self", NULL
15918 };
15919
15920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
15921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
15922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15923 {
15924 PyThreadState* __tstate = wxPyBeginAllowThreads();
15925 result = (wxMetaFile *)(arg1)->Close();
15926
15927 wxPyEndAllowThreads(__tstate);
15928 if (PyErr_Occurred()) SWIG_fail;
15929 }
15930 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
15931 return resultobj;
15932 fail:
15933 return NULL;
15934 }
15935
15936
15937 static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) {
15938 PyObject *obj;
15939 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15940 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
15941 Py_INCREF(obj);
15942 return Py_BuildValue((char *)"");
15943 }
15944 static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) {
15945 PyObject *resultobj;
15946 wxPrintData *arg1 = 0 ;
15947 wxPrinterDC *result;
15948 PyObject * obj0 = 0 ;
15949 char *kwnames[] = {
15950 (char *) "printData", NULL
15951 };
15952
15953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
15954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15955 SWIG_POINTER_EXCEPTION | 0)) == -1)
15956 SWIG_fail;
15957 if (arg1 == NULL) {
15958 PyErr_SetString(PyExc_TypeError,"null reference");
15959 SWIG_fail;
15960 }
15961 {
15962 PyThreadState* __tstate = wxPyBeginAllowThreads();
15963 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
15964
15965 wxPyEndAllowThreads(__tstate);
15966 if (PyErr_Occurred()) SWIG_fail;
15967 }
15968 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
15969 return resultobj;
15970 fail:
15971 return NULL;
15972 }
15973
15974
15975 static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) {
15976 PyObject *obj;
15977 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15978 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
15979 Py_INCREF(obj);
15980 return Py_BuildValue((char *)"");
15981 }
15982 static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
15983 PyObject *resultobj;
15984 int arg1 ;
15985 int arg2 ;
15986 int arg3 = (int) True ;
15987 int arg4 = (int) 1 ;
15988 wxImageList *result;
15989 PyObject * obj0 = 0 ;
15990 PyObject * obj1 = 0 ;
15991 PyObject * obj2 = 0 ;
15992 PyObject * obj3 = 0 ;
15993 char *kwnames[] = {
15994 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
15995 };
15996
15997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15998 arg1 = (int) SWIG_AsInt(obj0);
15999 if (PyErr_Occurred()) SWIG_fail;
16000 arg2 = (int) SWIG_AsInt(obj1);
16001 if (PyErr_Occurred()) SWIG_fail;
16002 if (obj2) {
16003 arg3 = (int) SWIG_AsInt(obj2);
16004 if (PyErr_Occurred()) SWIG_fail;
16005 }
16006 if (obj3) {
16007 arg4 = (int) SWIG_AsInt(obj3);
16008 if (PyErr_Occurred()) SWIG_fail;
16009 }
16010 {
16011 PyThreadState* __tstate = wxPyBeginAllowThreads();
16012 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16013
16014 wxPyEndAllowThreads(__tstate);
16015 if (PyErr_Occurred()) SWIG_fail;
16016 }
16017 {
16018 resultobj = wxPyMake_wxObject(result);
16019 }
16020 return resultobj;
16021 fail:
16022 return NULL;
16023 }
16024
16025
16026 static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
16027 PyObject *resultobj;
16028 wxImageList *arg1 = (wxImageList *) 0 ;
16029 PyObject * obj0 = 0 ;
16030 char *kwnames[] = {
16031 (char *) "self", NULL
16032 };
16033
16034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16037 {
16038 PyThreadState* __tstate = wxPyBeginAllowThreads();
16039 delete arg1;
16040
16041 wxPyEndAllowThreads(__tstate);
16042 if (PyErr_Occurred()) SWIG_fail;
16043 }
16044 Py_INCREF(Py_None); resultobj = Py_None;
16045 return resultobj;
16046 fail:
16047 return NULL;
16048 }
16049
16050
16051 static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) {
16052 PyObject *resultobj;
16053 wxImageList *arg1 = (wxImageList *) 0 ;
16054 wxBitmap *arg2 = 0 ;
16055 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16056 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16057 int result;
16058 PyObject * obj0 = 0 ;
16059 PyObject * obj1 = 0 ;
16060 PyObject * obj2 = 0 ;
16061 char *kwnames[] = {
16062 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16063 };
16064
16065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16068 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16069 SWIG_POINTER_EXCEPTION | 0)) == -1)
16070 SWIG_fail;
16071 if (arg2 == NULL) {
16072 PyErr_SetString(PyExc_TypeError,"null reference");
16073 SWIG_fail;
16074 }
16075 if (obj2) {
16076 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16077 SWIG_POINTER_EXCEPTION | 0)) == -1)
16078 SWIG_fail;
16079 if (arg3 == NULL) {
16080 PyErr_SetString(PyExc_TypeError,"null reference");
16081 SWIG_fail;
16082 }
16083 }
16084 {
16085 PyThreadState* __tstate = wxPyBeginAllowThreads();
16086 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16087
16088 wxPyEndAllowThreads(__tstate);
16089 if (PyErr_Occurred()) SWIG_fail;
16090 }
16091 resultobj = SWIG_FromInt((int)result);
16092 return resultobj;
16093 fail:
16094 return NULL;
16095 }
16096
16097
16098 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) {
16099 PyObject *resultobj;
16100 wxImageList *arg1 = (wxImageList *) 0 ;
16101 wxBitmap *arg2 = 0 ;
16102 wxColour *arg3 = 0 ;
16103 int result;
16104 wxColour temp3 ;
16105 PyObject * obj0 = 0 ;
16106 PyObject * obj1 = 0 ;
16107 PyObject * obj2 = 0 ;
16108 char *kwnames[] = {
16109 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16110 };
16111
16112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16115 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16116 SWIG_POINTER_EXCEPTION | 0)) == -1)
16117 SWIG_fail;
16118 if (arg2 == NULL) {
16119 PyErr_SetString(PyExc_TypeError,"null reference");
16120 SWIG_fail;
16121 }
16122 {
16123 arg3 = &temp3;
16124 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16125 }
16126 {
16127 PyThreadState* __tstate = wxPyBeginAllowThreads();
16128 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16129
16130 wxPyEndAllowThreads(__tstate);
16131 if (PyErr_Occurred()) SWIG_fail;
16132 }
16133 resultobj = SWIG_FromInt((int)result);
16134 return resultobj;
16135 fail:
16136 return NULL;
16137 }
16138
16139
16140 static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
16141 PyObject *resultobj;
16142 wxImageList *arg1 = (wxImageList *) 0 ;
16143 wxIcon *arg2 = 0 ;
16144 int result;
16145 PyObject * obj0 = 0 ;
16146 PyObject * obj1 = 0 ;
16147 char *kwnames[] = {
16148 (char *) "self",(char *) "icon", NULL
16149 };
16150
16151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16154 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16155 SWIG_POINTER_EXCEPTION | 0)) == -1)
16156 SWIG_fail;
16157 if (arg2 == NULL) {
16158 PyErr_SetString(PyExc_TypeError,"null reference");
16159 SWIG_fail;
16160 }
16161 {
16162 PyThreadState* __tstate = wxPyBeginAllowThreads();
16163 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16164
16165 wxPyEndAllowThreads(__tstate);
16166 if (PyErr_Occurred()) SWIG_fail;
16167 }
16168 resultobj = SWIG_FromInt((int)result);
16169 return resultobj;
16170 fail:
16171 return NULL;
16172 }
16173
16174
16175 static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
16176 PyObject *resultobj;
16177 wxImageList *arg1 = (wxImageList *) 0 ;
16178 int arg2 ;
16179 wxBitmap *arg3 = 0 ;
16180 bool result;
16181 PyObject * obj0 = 0 ;
16182 PyObject * obj1 = 0 ;
16183 PyObject * obj2 = 0 ;
16184 char *kwnames[] = {
16185 (char *) "self",(char *) "index",(char *) "bitmap", NULL
16186 };
16187
16188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
16189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16191 arg2 = (int) SWIG_AsInt(obj1);
16192 if (PyErr_Occurred()) SWIG_fail;
16193 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16194 SWIG_POINTER_EXCEPTION | 0)) == -1)
16195 SWIG_fail;
16196 if (arg3 == NULL) {
16197 PyErr_SetString(PyExc_TypeError,"null reference");
16198 SWIG_fail;
16199 }
16200 {
16201 PyThreadState* __tstate = wxPyBeginAllowThreads();
16202 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
16203
16204 wxPyEndAllowThreads(__tstate);
16205 if (PyErr_Occurred()) SWIG_fail;
16206 }
16207 {
16208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16209 }
16210 return resultobj;
16211 fail:
16212 return NULL;
16213 }
16214
16215
16216 static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) {
16217 PyObject *resultobj;
16218 wxImageList *arg1 = (wxImageList *) 0 ;
16219 int arg2 ;
16220 wxDC *arg3 = 0 ;
16221 int arg4 ;
16222 int arg5 ;
16223 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16224 bool arg7 = (bool) (bool)False ;
16225 bool result;
16226 PyObject * obj0 = 0 ;
16227 PyObject * obj1 = 0 ;
16228 PyObject * obj2 = 0 ;
16229 PyObject * obj3 = 0 ;
16230 PyObject * obj4 = 0 ;
16231 PyObject * obj5 = 0 ;
16232 PyObject * obj6 = 0 ;
16233 char *kwnames[] = {
16234 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16235 };
16236
16237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16240 arg2 = (int) SWIG_AsInt(obj1);
16241 if (PyErr_Occurred()) SWIG_fail;
16242 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16243 SWIG_POINTER_EXCEPTION | 0)) == -1)
16244 SWIG_fail;
16245 if (arg3 == NULL) {
16246 PyErr_SetString(PyExc_TypeError,"null reference");
16247 SWIG_fail;
16248 }
16249 arg4 = (int) SWIG_AsInt(obj3);
16250 if (PyErr_Occurred()) SWIG_fail;
16251 arg5 = (int) SWIG_AsInt(obj4);
16252 if (PyErr_Occurred()) SWIG_fail;
16253 if (obj5) {
16254 arg6 = (int) SWIG_AsInt(obj5);
16255 if (PyErr_Occurred()) SWIG_fail;
16256 }
16257 if (obj6) {
16258 arg7 = (bool const) SWIG_AsBool(obj6);
16259 if (PyErr_Occurred()) SWIG_fail;
16260 }
16261 {
16262 PyThreadState* __tstate = wxPyBeginAllowThreads();
16263 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16264
16265 wxPyEndAllowThreads(__tstate);
16266 if (PyErr_Occurred()) SWIG_fail;
16267 }
16268 {
16269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16270 }
16271 return resultobj;
16272 fail:
16273 return NULL;
16274 }
16275
16276
16277 static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) {
16278 PyObject *resultobj;
16279 wxImageList *arg1 = (wxImageList *) 0 ;
16280 int result;
16281 PyObject * obj0 = 0 ;
16282 char *kwnames[] = {
16283 (char *) "self", NULL
16284 };
16285
16286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16289 {
16290 PyThreadState* __tstate = wxPyBeginAllowThreads();
16291 result = (int)(arg1)->GetImageCount();
16292
16293 wxPyEndAllowThreads(__tstate);
16294 if (PyErr_Occurred()) SWIG_fail;
16295 }
16296 resultobj = SWIG_FromInt((int)result);
16297 return resultobj;
16298 fail:
16299 return NULL;
16300 }
16301
16302
16303 static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
16304 PyObject *resultobj;
16305 wxImageList *arg1 = (wxImageList *) 0 ;
16306 int arg2 ;
16307 bool result;
16308 PyObject * obj0 = 0 ;
16309 PyObject * obj1 = 0 ;
16310 char *kwnames[] = {
16311 (char *) "self",(char *) "index", NULL
16312 };
16313
16314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16317 arg2 = (int) SWIG_AsInt(obj1);
16318 if (PyErr_Occurred()) SWIG_fail;
16319 {
16320 PyThreadState* __tstate = wxPyBeginAllowThreads();
16321 result = (bool)(arg1)->Remove(arg2);
16322
16323 wxPyEndAllowThreads(__tstate);
16324 if (PyErr_Occurred()) SWIG_fail;
16325 }
16326 {
16327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16328 }
16329 return resultobj;
16330 fail:
16331 return NULL;
16332 }
16333
16334
16335 static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) {
16336 PyObject *resultobj;
16337 wxImageList *arg1 = (wxImageList *) 0 ;
16338 bool result;
16339 PyObject * obj0 = 0 ;
16340 char *kwnames[] = {
16341 (char *) "self", NULL
16342 };
16343
16344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16347 {
16348 PyThreadState* __tstate = wxPyBeginAllowThreads();
16349 result = (bool)(arg1)->RemoveAll();
16350
16351 wxPyEndAllowThreads(__tstate);
16352 if (PyErr_Occurred()) SWIG_fail;
16353 }
16354 {
16355 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16356 }
16357 return resultobj;
16358 fail:
16359 return NULL;
16360 }
16361
16362
16363 static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
16364 PyObject *resultobj;
16365 wxImageList *arg1 = (wxImageList *) 0 ;
16366 int arg2 ;
16367 int *arg3 = 0 ;
16368 int *arg4 = 0 ;
16369 int temp3 ;
16370 int temp4 ;
16371 PyObject * obj0 = 0 ;
16372 PyObject * obj1 = 0 ;
16373 char *kwnames[] = {
16374 (char *) "self",(char *) "index", NULL
16375 };
16376
16377 arg3 = &temp3;
16378 arg4 = &temp4;
16379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16382 arg2 = (int) SWIG_AsInt(obj1);
16383 if (PyErr_Occurred()) SWIG_fail;
16384 {
16385 PyThreadState* __tstate = wxPyBeginAllowThreads();
16386 (arg1)->GetSize(arg2,*arg3,*arg4);
16387
16388 wxPyEndAllowThreads(__tstate);
16389 if (PyErr_Occurred()) SWIG_fail;
16390 }
16391 Py_INCREF(Py_None); resultobj = Py_None;
16392 {
16393 PyObject *o = PyInt_FromLong((long) (*arg3));
16394 resultobj = t_output_helper(resultobj,o);
16395 }
16396 {
16397 PyObject *o = PyInt_FromLong((long) (*arg4));
16398 resultobj = t_output_helper(resultobj,o);
16399 }
16400 return resultobj;
16401 fail:
16402 return NULL;
16403 }
16404
16405
16406 static PyObject * ImageList_swigregister(PyObject *, PyObject *args) {
16407 PyObject *obj;
16408 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16409 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16410 Py_INCREF(obj);
16411 return Py_BuildValue((char *)"");
16412 }
16413 static int _wrap_NORMAL_FONT_set(PyObject *) {
16414 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16415 return 1;
16416 }
16417
16418
16419 static PyObject *_wrap_NORMAL_FONT_get() {
16420 PyObject *pyobj;
16421
16422 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
16423 return pyobj;
16424 }
16425
16426
16427 static int _wrap_SMALL_FONT_set(PyObject *) {
16428 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16429 return 1;
16430 }
16431
16432
16433 static PyObject *_wrap_SMALL_FONT_get() {
16434 PyObject *pyobj;
16435
16436 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
16437 return pyobj;
16438 }
16439
16440
16441 static int _wrap_ITALIC_FONT_set(PyObject *) {
16442 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16443 return 1;
16444 }
16445
16446
16447 static PyObject *_wrap_ITALIC_FONT_get() {
16448 PyObject *pyobj;
16449
16450 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
16451 return pyobj;
16452 }
16453
16454
16455 static int _wrap_SWISS_FONT_set(PyObject *) {
16456 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16457 return 1;
16458 }
16459
16460
16461 static PyObject *_wrap_SWISS_FONT_get() {
16462 PyObject *pyobj;
16463
16464 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
16465 return pyobj;
16466 }
16467
16468
16469 static int _wrap_RED_PEN_set(PyObject *) {
16470 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16471 return 1;
16472 }
16473
16474
16475 static PyObject *_wrap_RED_PEN_get() {
16476 PyObject *pyobj;
16477
16478 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
16479 return pyobj;
16480 }
16481
16482
16483 static int _wrap_CYAN_PEN_set(PyObject *) {
16484 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16485 return 1;
16486 }
16487
16488
16489 static PyObject *_wrap_CYAN_PEN_get() {
16490 PyObject *pyobj;
16491
16492 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
16493 return pyobj;
16494 }
16495
16496
16497 static int _wrap_GREEN_PEN_set(PyObject *) {
16498 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16499 return 1;
16500 }
16501
16502
16503 static PyObject *_wrap_GREEN_PEN_get() {
16504 PyObject *pyobj;
16505
16506 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
16507 return pyobj;
16508 }
16509
16510
16511 static int _wrap_BLACK_PEN_set(PyObject *) {
16512 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16513 return 1;
16514 }
16515
16516
16517 static PyObject *_wrap_BLACK_PEN_get() {
16518 PyObject *pyobj;
16519
16520 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
16521 return pyobj;
16522 }
16523
16524
16525 static int _wrap_WHITE_PEN_set(PyObject *) {
16526 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16527 return 1;
16528 }
16529
16530
16531 static PyObject *_wrap_WHITE_PEN_get() {
16532 PyObject *pyobj;
16533
16534 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
16535 return pyobj;
16536 }
16537
16538
16539 static int _wrap_TRANSPARENT_PEN_set(PyObject *) {
16540 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16541 return 1;
16542 }
16543
16544
16545 static PyObject *_wrap_TRANSPARENT_PEN_get() {
16546 PyObject *pyobj;
16547
16548 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
16549 return pyobj;
16550 }
16551
16552
16553 static int _wrap_BLACK_DASHED_PEN_set(PyObject *) {
16554 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16555 return 1;
16556 }
16557
16558
16559 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16560 PyObject *pyobj;
16561
16562 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
16563 return pyobj;
16564 }
16565
16566
16567 static int _wrap_GREY_PEN_set(PyObject *) {
16568 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16569 return 1;
16570 }
16571
16572
16573 static PyObject *_wrap_GREY_PEN_get() {
16574 PyObject *pyobj;
16575
16576 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
16577 return pyobj;
16578 }
16579
16580
16581 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) {
16582 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16583 return 1;
16584 }
16585
16586
16587 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16588 PyObject *pyobj;
16589
16590 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16591 return pyobj;
16592 }
16593
16594
16595 static int _wrap_LIGHT_GREY_PEN_set(PyObject *) {
16596 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16597 return 1;
16598 }
16599
16600
16601 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16602 PyObject *pyobj;
16603
16604 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16605 return pyobj;
16606 }
16607
16608
16609 static int _wrap_BLUE_BRUSH_set(PyObject *) {
16610 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16611 return 1;
16612 }
16613
16614
16615 static PyObject *_wrap_BLUE_BRUSH_get() {
16616 PyObject *pyobj;
16617
16618 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16619 return pyobj;
16620 }
16621
16622
16623 static int _wrap_GREEN_BRUSH_set(PyObject *) {
16624 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16625 return 1;
16626 }
16627
16628
16629 static PyObject *_wrap_GREEN_BRUSH_get() {
16630 PyObject *pyobj;
16631
16632 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16633 return pyobj;
16634 }
16635
16636
16637 static int _wrap_WHITE_BRUSH_set(PyObject *) {
16638 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16639 return 1;
16640 }
16641
16642
16643 static PyObject *_wrap_WHITE_BRUSH_get() {
16644 PyObject *pyobj;
16645
16646 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16647 return pyobj;
16648 }
16649
16650
16651 static int _wrap_BLACK_BRUSH_set(PyObject *) {
16652 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16653 return 1;
16654 }
16655
16656
16657 static PyObject *_wrap_BLACK_BRUSH_get() {
16658 PyObject *pyobj;
16659
16660 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
16661 return pyobj;
16662 }
16663
16664
16665 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) {
16666 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16667 return 1;
16668 }
16669
16670
16671 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16672 PyObject *pyobj;
16673
16674 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
16675 return pyobj;
16676 }
16677
16678
16679 static int _wrap_CYAN_BRUSH_set(PyObject *) {
16680 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16681 return 1;
16682 }
16683
16684
16685 static PyObject *_wrap_CYAN_BRUSH_get() {
16686 PyObject *pyobj;
16687
16688 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16689 return pyobj;
16690 }
16691
16692
16693 static int _wrap_RED_BRUSH_set(PyObject *) {
16694 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16695 return 1;
16696 }
16697
16698
16699 static PyObject *_wrap_RED_BRUSH_get() {
16700 PyObject *pyobj;
16701
16702 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
16703 return pyobj;
16704 }
16705
16706
16707 static int _wrap_GREY_BRUSH_set(PyObject *) {
16708 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
16709 return 1;
16710 }
16711
16712
16713 static PyObject *_wrap_GREY_BRUSH_get() {
16714 PyObject *pyobj;
16715
16716 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16717 return pyobj;
16718 }
16719
16720
16721 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) {
16722 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
16723 return 1;
16724 }
16725
16726
16727 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
16728 PyObject *pyobj;
16729
16730 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16731 return pyobj;
16732 }
16733
16734
16735 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) {
16736 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
16737 return 1;
16738 }
16739
16740
16741 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
16742 PyObject *pyobj;
16743
16744 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16745 return pyobj;
16746 }
16747
16748
16749 static int _wrap_BLACK_set(PyObject *) {
16750 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
16751 return 1;
16752 }
16753
16754
16755 static PyObject *_wrap_BLACK_get() {
16756 PyObject *pyobj;
16757
16758 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
16759 return pyobj;
16760 }
16761
16762
16763 static int _wrap_WHITE_set(PyObject *) {
16764 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
16765 return 1;
16766 }
16767
16768
16769 static PyObject *_wrap_WHITE_get() {
16770 PyObject *pyobj;
16771
16772 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
16773 return pyobj;
16774 }
16775
16776
16777 static int _wrap_RED_set(PyObject *) {
16778 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
16779 return 1;
16780 }
16781
16782
16783 static PyObject *_wrap_RED_get() {
16784 PyObject *pyobj;
16785
16786 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
16787 return pyobj;
16788 }
16789
16790
16791 static int _wrap_BLUE_set(PyObject *) {
16792 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
16793 return 1;
16794 }
16795
16796
16797 static PyObject *_wrap_BLUE_get() {
16798 PyObject *pyobj;
16799
16800 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
16801 return pyobj;
16802 }
16803
16804
16805 static int _wrap_GREEN_set(PyObject *) {
16806 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
16807 return 1;
16808 }
16809
16810
16811 static PyObject *_wrap_GREEN_get() {
16812 PyObject *pyobj;
16813
16814 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
16815 return pyobj;
16816 }
16817
16818
16819 static int _wrap_CYAN_set(PyObject *) {
16820 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
16821 return 1;
16822 }
16823
16824
16825 static PyObject *_wrap_CYAN_get() {
16826 PyObject *pyobj;
16827
16828 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
16829 return pyobj;
16830 }
16831
16832
16833 static int _wrap_LIGHT_GREY_set(PyObject *) {
16834 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
16835 return 1;
16836 }
16837
16838
16839 static PyObject *_wrap_LIGHT_GREY_get() {
16840 PyObject *pyobj;
16841
16842 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
16843 return pyobj;
16844 }
16845
16846
16847 static int _wrap_STANDARD_CURSOR_set(PyObject *) {
16848 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
16849 return 1;
16850 }
16851
16852
16853 static PyObject *_wrap_STANDARD_CURSOR_get() {
16854 PyObject *pyobj;
16855
16856 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
16857 return pyobj;
16858 }
16859
16860
16861 static int _wrap_HOURGLASS_CURSOR_set(PyObject *) {
16862 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
16863 return 1;
16864 }
16865
16866
16867 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
16868 PyObject *pyobj;
16869
16870 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16871 return pyobj;
16872 }
16873
16874
16875 static int _wrap_CROSS_CURSOR_set(PyObject *) {
16876 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
16877 return 1;
16878 }
16879
16880
16881 static PyObject *_wrap_CROSS_CURSOR_get() {
16882 PyObject *pyobj;
16883
16884 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16885 return pyobj;
16886 }
16887
16888
16889 static int _wrap_NullBitmap_set(PyObject *) {
16890 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
16891 return 1;
16892 }
16893
16894
16895 static PyObject *_wrap_NullBitmap_get() {
16896 PyObject *pyobj;
16897
16898 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
16899 return pyobj;
16900 }
16901
16902
16903 static int _wrap_NullIcon_set(PyObject *) {
16904 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
16905 return 1;
16906 }
16907
16908
16909 static PyObject *_wrap_NullIcon_get() {
16910 PyObject *pyobj;
16911
16912 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
16913 return pyobj;
16914 }
16915
16916
16917 static int _wrap_NullCursor_set(PyObject *) {
16918 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
16919 return 1;
16920 }
16921
16922
16923 static PyObject *_wrap_NullCursor_get() {
16924 PyObject *pyobj;
16925
16926 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
16927 return pyobj;
16928 }
16929
16930
16931 static int _wrap_NullPen_set(PyObject *) {
16932 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
16933 return 1;
16934 }
16935
16936
16937 static PyObject *_wrap_NullPen_get() {
16938 PyObject *pyobj;
16939
16940 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
16941 return pyobj;
16942 }
16943
16944
16945 static int _wrap_NullBrush_set(PyObject *) {
16946 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
16947 return 1;
16948 }
16949
16950
16951 static PyObject *_wrap_NullBrush_get() {
16952 PyObject *pyobj;
16953
16954 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
16955 return pyobj;
16956 }
16957
16958
16959 static int _wrap_NullPalette_set(PyObject *) {
16960 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
16961 return 1;
16962 }
16963
16964
16965 static PyObject *_wrap_NullPalette_get() {
16966 PyObject *pyobj;
16967
16968 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
16969 return pyobj;
16970 }
16971
16972
16973 static int _wrap_NullFont_set(PyObject *) {
16974 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
16975 return 1;
16976 }
16977
16978
16979 static PyObject *_wrap_NullFont_get() {
16980 PyObject *pyobj;
16981
16982 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
16983 return pyobj;
16984 }
16985
16986
16987 static int _wrap_NullColour_set(PyObject *) {
16988 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
16989 return 1;
16990 }
16991
16992
16993 static PyObject *_wrap_NullColour_get() {
16994 PyObject *pyobj;
16995
16996 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
16997 return pyobj;
16998 }
16999
17000
17001 static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) {
17002 PyObject *resultobj;
17003 wxPenList *arg1 = (wxPenList *) 0 ;
17004 wxPen *arg2 = (wxPen *) 0 ;
17005 PyObject * obj0 = 0 ;
17006 PyObject * obj1 = 0 ;
17007 char *kwnames[] = {
17008 (char *) "self",(char *) "pen", NULL
17009 };
17010
17011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17014 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17016 {
17017 PyThreadState* __tstate = wxPyBeginAllowThreads();
17018 (arg1)->AddPen(arg2);
17019
17020 wxPyEndAllowThreads(__tstate);
17021 if (PyErr_Occurred()) SWIG_fail;
17022 }
17023 Py_INCREF(Py_None); resultobj = Py_None;
17024 return resultobj;
17025 fail:
17026 return NULL;
17027 }
17028
17029
17030 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) {
17031 PyObject *resultobj;
17032 wxPenList *arg1 = (wxPenList *) 0 ;
17033 wxColour *arg2 = 0 ;
17034 int arg3 ;
17035 int arg4 ;
17036 wxPen *result;
17037 wxColour temp2 ;
17038 PyObject * obj0 = 0 ;
17039 PyObject * obj1 = 0 ;
17040 PyObject * obj2 = 0 ;
17041 PyObject * obj3 = 0 ;
17042 char *kwnames[] = {
17043 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17044 };
17045
17046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17049 {
17050 arg2 = &temp2;
17051 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17052 }
17053 arg3 = (int) SWIG_AsInt(obj2);
17054 if (PyErr_Occurred()) SWIG_fail;
17055 arg4 = (int) SWIG_AsInt(obj3);
17056 if (PyErr_Occurred()) SWIG_fail;
17057 {
17058 PyThreadState* __tstate = wxPyBeginAllowThreads();
17059 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17060
17061 wxPyEndAllowThreads(__tstate);
17062 if (PyErr_Occurred()) SWIG_fail;
17063 }
17064 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17065 return resultobj;
17066 fail:
17067 return NULL;
17068 }
17069
17070
17071 static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) {
17072 PyObject *resultobj;
17073 wxPenList *arg1 = (wxPenList *) 0 ;
17074 wxPen *arg2 = (wxPen *) 0 ;
17075 PyObject * obj0 = 0 ;
17076 PyObject * obj1 = 0 ;
17077 char *kwnames[] = {
17078 (char *) "self",(char *) "pen", NULL
17079 };
17080
17081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17084 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17086 {
17087 PyThreadState* __tstate = wxPyBeginAllowThreads();
17088 (arg1)->RemovePen(arg2);
17089
17090 wxPyEndAllowThreads(__tstate);
17091 if (PyErr_Occurred()) SWIG_fail;
17092 }
17093 Py_INCREF(Py_None); resultobj = Py_None;
17094 return resultobj;
17095 fail:
17096 return NULL;
17097 }
17098
17099
17100 static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
17101 PyObject *resultobj;
17102 wxPenList *arg1 = (wxPenList *) 0 ;
17103 int result;
17104 PyObject * obj0 = 0 ;
17105 char *kwnames[] = {
17106 (char *) "self", NULL
17107 };
17108
17109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17112 {
17113 PyThreadState* __tstate = wxPyBeginAllowThreads();
17114 result = (int)(arg1)->GetCount();
17115
17116 wxPyEndAllowThreads(__tstate);
17117 if (PyErr_Occurred()) SWIG_fail;
17118 }
17119 resultobj = SWIG_FromInt((int)result);
17120 return resultobj;
17121 fail:
17122 return NULL;
17123 }
17124
17125
17126 static PyObject * PenList_swigregister(PyObject *, PyObject *args) {
17127 PyObject *obj;
17128 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17129 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17130 Py_INCREF(obj);
17131 return Py_BuildValue((char *)"");
17132 }
17133 static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) {
17134 PyObject *resultobj;
17135 wxBrushList *arg1 = (wxBrushList *) 0 ;
17136 wxBrush *arg2 = (wxBrush *) 0 ;
17137 PyObject * obj0 = 0 ;
17138 PyObject * obj1 = 0 ;
17139 char *kwnames[] = {
17140 (char *) "self",(char *) "brush", NULL
17141 };
17142
17143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17146 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17148 {
17149 PyThreadState* __tstate = wxPyBeginAllowThreads();
17150 (arg1)->AddBrush(arg2);
17151
17152 wxPyEndAllowThreads(__tstate);
17153 if (PyErr_Occurred()) SWIG_fail;
17154 }
17155 Py_INCREF(Py_None); resultobj = Py_None;
17156 return resultobj;
17157 fail:
17158 return NULL;
17159 }
17160
17161
17162 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) {
17163 PyObject *resultobj;
17164 wxBrushList *arg1 = (wxBrushList *) 0 ;
17165 wxColour *arg2 = 0 ;
17166 int arg3 ;
17167 wxBrush *result;
17168 wxColour temp2 ;
17169 PyObject * obj0 = 0 ;
17170 PyObject * obj1 = 0 ;
17171 PyObject * obj2 = 0 ;
17172 char *kwnames[] = {
17173 (char *) "self",(char *) "colour",(char *) "style", NULL
17174 };
17175
17176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17179 {
17180 arg2 = &temp2;
17181 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17182 }
17183 arg3 = (int) SWIG_AsInt(obj2);
17184 if (PyErr_Occurred()) SWIG_fail;
17185 {
17186 PyThreadState* __tstate = wxPyBeginAllowThreads();
17187 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17188
17189 wxPyEndAllowThreads(__tstate);
17190 if (PyErr_Occurred()) SWIG_fail;
17191 }
17192 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17193 return resultobj;
17194 fail:
17195 return NULL;
17196 }
17197
17198
17199 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) {
17200 PyObject *resultobj;
17201 wxBrushList *arg1 = (wxBrushList *) 0 ;
17202 wxBrush *arg2 = (wxBrush *) 0 ;
17203 PyObject * obj0 = 0 ;
17204 PyObject * obj1 = 0 ;
17205 char *kwnames[] = {
17206 (char *) "self",(char *) "brush", NULL
17207 };
17208
17209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17212 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17214 {
17215 PyThreadState* __tstate = wxPyBeginAllowThreads();
17216 (arg1)->RemoveBrush(arg2);
17217
17218 wxPyEndAllowThreads(__tstate);
17219 if (PyErr_Occurred()) SWIG_fail;
17220 }
17221 Py_INCREF(Py_None); resultobj = Py_None;
17222 return resultobj;
17223 fail:
17224 return NULL;
17225 }
17226
17227
17228 static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
17229 PyObject *resultobj;
17230 wxBrushList *arg1 = (wxBrushList *) 0 ;
17231 int result;
17232 PyObject * obj0 = 0 ;
17233 char *kwnames[] = {
17234 (char *) "self", NULL
17235 };
17236
17237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17240 {
17241 PyThreadState* __tstate = wxPyBeginAllowThreads();
17242 result = (int)(arg1)->GetCount();
17243
17244 wxPyEndAllowThreads(__tstate);
17245 if (PyErr_Occurred()) SWIG_fail;
17246 }
17247 resultobj = SWIG_FromInt((int)result);
17248 return resultobj;
17249 fail:
17250 return NULL;
17251 }
17252
17253
17254 static PyObject * BrushList_swigregister(PyObject *, PyObject *args) {
17255 PyObject *obj;
17256 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17257 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17258 Py_INCREF(obj);
17259 return Py_BuildValue((char *)"");
17260 }
17261 static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
17262 PyObject *resultobj;
17263 wxColourDatabase *result;
17264 char *kwnames[] = {
17265 NULL
17266 };
17267
17268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17269 {
17270 PyThreadState* __tstate = wxPyBeginAllowThreads();
17271 result = (wxColourDatabase *)new wxColourDatabase();
17272
17273 wxPyEndAllowThreads(__tstate);
17274 if (PyErr_Occurred()) SWIG_fail;
17275 }
17276 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17277 return resultobj;
17278 fail:
17279 return NULL;
17280 }
17281
17282
17283 static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
17284 PyObject *resultobj;
17285 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17286 PyObject * obj0 = 0 ;
17287 char *kwnames[] = {
17288 (char *) "self", NULL
17289 };
17290
17291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17294 {
17295 PyThreadState* __tstate = wxPyBeginAllowThreads();
17296 delete arg1;
17297
17298 wxPyEndAllowThreads(__tstate);
17299 if (PyErr_Occurred()) SWIG_fail;
17300 }
17301 Py_INCREF(Py_None); resultobj = Py_None;
17302 return resultobj;
17303 fail:
17304 return NULL;
17305 }
17306
17307
17308 static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) {
17309 PyObject *resultobj;
17310 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17311 wxString *arg2 = 0 ;
17312 wxColour result;
17313 bool temp2 = False ;
17314 PyObject * obj0 = 0 ;
17315 PyObject * obj1 = 0 ;
17316 char *kwnames[] = {
17317 (char *) "self",(char *) "name", NULL
17318 };
17319
17320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17323 {
17324 arg2 = wxString_in_helper(obj1);
17325 if (arg2 == NULL) SWIG_fail;
17326 temp2 = True;
17327 }
17328 {
17329 PyThreadState* __tstate = wxPyBeginAllowThreads();
17330 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17331
17332 wxPyEndAllowThreads(__tstate);
17333 if (PyErr_Occurred()) SWIG_fail;
17334 }
17335 {
17336 wxColour * resultptr;
17337 resultptr = new wxColour((wxColour &) result);
17338 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17339 }
17340 {
17341 if (temp2)
17342 delete arg2;
17343 }
17344 return resultobj;
17345 fail:
17346 {
17347 if (temp2)
17348 delete arg2;
17349 }
17350 return NULL;
17351 }
17352
17353
17354 static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) {
17355 PyObject *resultobj;
17356 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17357 wxColour *arg2 = 0 ;
17358 wxString result;
17359 wxColour temp2 ;
17360 PyObject * obj0 = 0 ;
17361 PyObject * obj1 = 0 ;
17362 char *kwnames[] = {
17363 (char *) "self",(char *) "colour", NULL
17364 };
17365
17366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17369 {
17370 arg2 = &temp2;
17371 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17372 }
17373 {
17374 PyThreadState* __tstate = wxPyBeginAllowThreads();
17375 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17376
17377 wxPyEndAllowThreads(__tstate);
17378 if (PyErr_Occurred()) SWIG_fail;
17379 }
17380 {
17381 #if wxUSE_UNICODE
17382 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17383 #else
17384 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17385 #endif
17386 }
17387 return resultobj;
17388 fail:
17389 return NULL;
17390 }
17391
17392
17393 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) {
17394 PyObject *resultobj;
17395 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17396 wxString *arg2 = 0 ;
17397 wxColour *arg3 = 0 ;
17398 bool temp2 = False ;
17399 wxColour temp3 ;
17400 PyObject * obj0 = 0 ;
17401 PyObject * obj1 = 0 ;
17402 PyObject * obj2 = 0 ;
17403 char *kwnames[] = {
17404 (char *) "self",(char *) "name",(char *) "colour", NULL
17405 };
17406
17407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17410 {
17411 arg2 = wxString_in_helper(obj1);
17412 if (arg2 == NULL) SWIG_fail;
17413 temp2 = True;
17414 }
17415 {
17416 arg3 = &temp3;
17417 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17418 }
17419 {
17420 PyThreadState* __tstate = wxPyBeginAllowThreads();
17421 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17422
17423 wxPyEndAllowThreads(__tstate);
17424 if (PyErr_Occurred()) SWIG_fail;
17425 }
17426 Py_INCREF(Py_None); resultobj = Py_None;
17427 {
17428 if (temp2)
17429 delete arg2;
17430 }
17431 return resultobj;
17432 fail:
17433 {
17434 if (temp2)
17435 delete arg2;
17436 }
17437 return NULL;
17438 }
17439
17440
17441 static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) {
17442 PyObject *resultobj;
17443 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17444 wxString *arg2 = 0 ;
17445 int arg3 ;
17446 int arg4 ;
17447 int arg5 ;
17448 bool temp2 = False ;
17449 PyObject * obj0 = 0 ;
17450 PyObject * obj1 = 0 ;
17451 PyObject * obj2 = 0 ;
17452 PyObject * obj3 = 0 ;
17453 PyObject * obj4 = 0 ;
17454 char *kwnames[] = {
17455 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17456 };
17457
17458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17461 {
17462 arg2 = wxString_in_helper(obj1);
17463 if (arg2 == NULL) SWIG_fail;
17464 temp2 = True;
17465 }
17466 arg3 = (int) SWIG_AsInt(obj2);
17467 if (PyErr_Occurred()) SWIG_fail;
17468 arg4 = (int) SWIG_AsInt(obj3);
17469 if (PyErr_Occurred()) SWIG_fail;
17470 arg5 = (int) SWIG_AsInt(obj4);
17471 if (PyErr_Occurred()) SWIG_fail;
17472 {
17473 PyThreadState* __tstate = wxPyBeginAllowThreads();
17474 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17475
17476 wxPyEndAllowThreads(__tstate);
17477 if (PyErr_Occurred()) SWIG_fail;
17478 }
17479 Py_INCREF(Py_None); resultobj = Py_None;
17480 {
17481 if (temp2)
17482 delete arg2;
17483 }
17484 return resultobj;
17485 fail:
17486 {
17487 if (temp2)
17488 delete arg2;
17489 }
17490 return NULL;
17491 }
17492
17493
17494 static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) {
17495 PyObject *obj;
17496 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17497 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17498 Py_INCREF(obj);
17499 return Py_BuildValue((char *)"");
17500 }
17501 static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) {
17502 PyObject *resultobj;
17503 wxFontList *arg1 = (wxFontList *) 0 ;
17504 wxFont *arg2 = (wxFont *) 0 ;
17505 PyObject * obj0 = 0 ;
17506 PyObject * obj1 = 0 ;
17507 char *kwnames[] = {
17508 (char *) "self",(char *) "font", NULL
17509 };
17510
17511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17514 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17516 {
17517 PyThreadState* __tstate = wxPyBeginAllowThreads();
17518 (arg1)->AddFont(arg2);
17519
17520 wxPyEndAllowThreads(__tstate);
17521 if (PyErr_Occurred()) SWIG_fail;
17522 }
17523 Py_INCREF(Py_None); resultobj = Py_None;
17524 return resultobj;
17525 fail:
17526 return NULL;
17527 }
17528
17529
17530 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) {
17531 PyObject *resultobj;
17532 wxFontList *arg1 = (wxFontList *) 0 ;
17533 int arg2 ;
17534 int arg3 ;
17535 int arg4 ;
17536 int arg5 ;
17537 bool arg6 = (bool) False ;
17538 wxString const &arg7_defvalue = wxPyEmptyString ;
17539 wxString *arg7 = (wxString *) &arg7_defvalue ;
17540 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17541 wxFont *result;
17542 bool temp7 = False ;
17543 PyObject * obj0 = 0 ;
17544 PyObject * obj1 = 0 ;
17545 PyObject * obj2 = 0 ;
17546 PyObject * obj3 = 0 ;
17547 PyObject * obj4 = 0 ;
17548 PyObject * obj5 = 0 ;
17549 PyObject * obj6 = 0 ;
17550 PyObject * obj7 = 0 ;
17551 char *kwnames[] = {
17552 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17553 };
17554
17555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17558 arg2 = (int) SWIG_AsInt(obj1);
17559 if (PyErr_Occurred()) SWIG_fail;
17560 arg3 = (int) SWIG_AsInt(obj2);
17561 if (PyErr_Occurred()) SWIG_fail;
17562 arg4 = (int) SWIG_AsInt(obj3);
17563 if (PyErr_Occurred()) SWIG_fail;
17564 arg5 = (int) SWIG_AsInt(obj4);
17565 if (PyErr_Occurred()) SWIG_fail;
17566 if (obj5) {
17567 arg6 = (bool) SWIG_AsBool(obj5);
17568 if (PyErr_Occurred()) SWIG_fail;
17569 }
17570 if (obj6) {
17571 {
17572 arg7 = wxString_in_helper(obj6);
17573 if (arg7 == NULL) SWIG_fail;
17574 temp7 = True;
17575 }
17576 }
17577 if (obj7) {
17578 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
17579 if (PyErr_Occurred()) SWIG_fail;
17580 }
17581 {
17582 PyThreadState* __tstate = wxPyBeginAllowThreads();
17583 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17584
17585 wxPyEndAllowThreads(__tstate);
17586 if (PyErr_Occurred()) SWIG_fail;
17587 }
17588 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
17589 {
17590 if (temp7)
17591 delete arg7;
17592 }
17593 return resultobj;
17594 fail:
17595 {
17596 if (temp7)
17597 delete arg7;
17598 }
17599 return NULL;
17600 }
17601
17602
17603 static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) {
17604 PyObject *resultobj;
17605 wxFontList *arg1 = (wxFontList *) 0 ;
17606 wxFont *arg2 = (wxFont *) 0 ;
17607 PyObject * obj0 = 0 ;
17608 PyObject * obj1 = 0 ;
17609 char *kwnames[] = {
17610 (char *) "self",(char *) "font", NULL
17611 };
17612
17613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17616 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17618 {
17619 PyThreadState* __tstate = wxPyBeginAllowThreads();
17620 (arg1)->RemoveFont(arg2);
17621
17622 wxPyEndAllowThreads(__tstate);
17623 if (PyErr_Occurred()) SWIG_fail;
17624 }
17625 Py_INCREF(Py_None); resultobj = Py_None;
17626 return resultobj;
17627 fail:
17628 return NULL;
17629 }
17630
17631
17632 static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
17633 PyObject *resultobj;
17634 wxFontList *arg1 = (wxFontList *) 0 ;
17635 int result;
17636 PyObject * obj0 = 0 ;
17637 char *kwnames[] = {
17638 (char *) "self", NULL
17639 };
17640
17641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17644 {
17645 PyThreadState* __tstate = wxPyBeginAllowThreads();
17646 result = (int)(arg1)->GetCount();
17647
17648 wxPyEndAllowThreads(__tstate);
17649 if (PyErr_Occurred()) SWIG_fail;
17650 }
17651 resultobj = SWIG_FromInt((int)result);
17652 return resultobj;
17653 fail:
17654 return NULL;
17655 }
17656
17657
17658 static PyObject * FontList_swigregister(PyObject *, PyObject *args) {
17659 PyObject *obj;
17660 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17661 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17662 Py_INCREF(obj);
17663 return Py_BuildValue((char *)"");
17664 }
17665 static int _wrap_TheFontList_set(PyObject *) {
17666 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17667 return 1;
17668 }
17669
17670
17671 static PyObject *_wrap_TheFontList_get() {
17672 PyObject *pyobj;
17673
17674 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
17675 return pyobj;
17676 }
17677
17678
17679 static int _wrap_ThePenList_set(PyObject *) {
17680 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17681 return 1;
17682 }
17683
17684
17685 static PyObject *_wrap_ThePenList_get() {
17686 PyObject *pyobj;
17687
17688 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
17689 return pyobj;
17690 }
17691
17692
17693 static int _wrap_TheBrushList_set(PyObject *) {
17694 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17695 return 1;
17696 }
17697
17698
17699 static PyObject *_wrap_TheBrushList_get() {
17700 PyObject *pyobj;
17701
17702 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
17703 return pyobj;
17704 }
17705
17706
17707 static int _wrap_TheColourDatabase_set(PyObject *) {
17708 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17709 return 1;
17710 }
17711
17712
17713 static PyObject *_wrap_TheColourDatabase_get() {
17714 PyObject *pyobj;
17715
17716 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
17717 return pyobj;
17718 }
17719
17720
17721 static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) {
17722 PyObject *resultobj;
17723 wxEffects *result;
17724 char *kwnames[] = {
17725 NULL
17726 };
17727
17728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
17729 {
17730 PyThreadState* __tstate = wxPyBeginAllowThreads();
17731 result = (wxEffects *)new wxEffects();
17732
17733 wxPyEndAllowThreads(__tstate);
17734 if (PyErr_Occurred()) SWIG_fail;
17735 }
17736 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
17737 return resultobj;
17738 fail:
17739 return NULL;
17740 }
17741
17742
17743 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
17744 PyObject *resultobj;
17745 wxEffects *arg1 = (wxEffects *) 0 ;
17746 wxColour result;
17747 PyObject * obj0 = 0 ;
17748 char *kwnames[] = {
17749 (char *) "self", NULL
17750 };
17751
17752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
17753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17755 {
17756 PyThreadState* __tstate = wxPyBeginAllowThreads();
17757 result = ((wxEffects const *)arg1)->GetHighlightColour();
17758
17759 wxPyEndAllowThreads(__tstate);
17760 if (PyErr_Occurred()) SWIG_fail;
17761 }
17762 {
17763 wxColour * resultptr;
17764 resultptr = new wxColour((wxColour &) result);
17765 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17766 }
17767 return resultobj;
17768 fail:
17769 return NULL;
17770 }
17771
17772
17773 static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
17774 PyObject *resultobj;
17775 wxEffects *arg1 = (wxEffects *) 0 ;
17776 wxColour result;
17777 PyObject * obj0 = 0 ;
17778 char *kwnames[] = {
17779 (char *) "self", NULL
17780 };
17781
17782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
17783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17785 {
17786 PyThreadState* __tstate = wxPyBeginAllowThreads();
17787 result = ((wxEffects const *)arg1)->GetLightShadow();
17788
17789 wxPyEndAllowThreads(__tstate);
17790 if (PyErr_Occurred()) SWIG_fail;
17791 }
17792 {
17793 wxColour * resultptr;
17794 resultptr = new wxColour((wxColour &) result);
17795 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17796 }
17797 return resultobj;
17798 fail:
17799 return NULL;
17800 }
17801
17802
17803 static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
17804 PyObject *resultobj;
17805 wxEffects *arg1 = (wxEffects *) 0 ;
17806 wxColour result;
17807 PyObject * obj0 = 0 ;
17808 char *kwnames[] = {
17809 (char *) "self", NULL
17810 };
17811
17812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
17813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17815 {
17816 PyThreadState* __tstate = wxPyBeginAllowThreads();
17817 result = ((wxEffects const *)arg1)->GetFaceColour();
17818
17819 wxPyEndAllowThreads(__tstate);
17820 if (PyErr_Occurred()) SWIG_fail;
17821 }
17822 {
17823 wxColour * resultptr;
17824 resultptr = new wxColour((wxColour &) result);
17825 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17826 }
17827 return resultobj;
17828 fail:
17829 return NULL;
17830 }
17831
17832
17833 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
17834 PyObject *resultobj;
17835 wxEffects *arg1 = (wxEffects *) 0 ;
17836 wxColour result;
17837 PyObject * obj0 = 0 ;
17838 char *kwnames[] = {
17839 (char *) "self", NULL
17840 };
17841
17842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
17843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17845 {
17846 PyThreadState* __tstate = wxPyBeginAllowThreads();
17847 result = ((wxEffects const *)arg1)->GetMediumShadow();
17848
17849 wxPyEndAllowThreads(__tstate);
17850 if (PyErr_Occurred()) SWIG_fail;
17851 }
17852 {
17853 wxColour * resultptr;
17854 resultptr = new wxColour((wxColour &) result);
17855 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17856 }
17857 return resultobj;
17858 fail:
17859 return NULL;
17860 }
17861
17862
17863 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
17864 PyObject *resultobj;
17865 wxEffects *arg1 = (wxEffects *) 0 ;
17866 wxColour result;
17867 PyObject * obj0 = 0 ;
17868 char *kwnames[] = {
17869 (char *) "self", NULL
17870 };
17871
17872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
17873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17875 {
17876 PyThreadState* __tstate = wxPyBeginAllowThreads();
17877 result = ((wxEffects const *)arg1)->GetDarkShadow();
17878
17879 wxPyEndAllowThreads(__tstate);
17880 if (PyErr_Occurred()) SWIG_fail;
17881 }
17882 {
17883 wxColour * resultptr;
17884 resultptr = new wxColour((wxColour &) result);
17885 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17886 }
17887 return resultobj;
17888 fail:
17889 return NULL;
17890 }
17891
17892
17893 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
17894 PyObject *resultobj;
17895 wxEffects *arg1 = (wxEffects *) 0 ;
17896 wxColour *arg2 = 0 ;
17897 wxColour temp2 ;
17898 PyObject * obj0 = 0 ;
17899 PyObject * obj1 = 0 ;
17900 char *kwnames[] = {
17901 (char *) "self",(char *) "c", NULL
17902 };
17903
17904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
17905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17907 {
17908 arg2 = &temp2;
17909 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17910 }
17911 {
17912 PyThreadState* __tstate = wxPyBeginAllowThreads();
17913 (arg1)->SetHighlightColour((wxColour const &)*arg2);
17914
17915 wxPyEndAllowThreads(__tstate);
17916 if (PyErr_Occurred()) SWIG_fail;
17917 }
17918 Py_INCREF(Py_None); resultobj = Py_None;
17919 return resultobj;
17920 fail:
17921 return NULL;
17922 }
17923
17924
17925 static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
17926 PyObject *resultobj;
17927 wxEffects *arg1 = (wxEffects *) 0 ;
17928 wxColour *arg2 = 0 ;
17929 wxColour temp2 ;
17930 PyObject * obj0 = 0 ;
17931 PyObject * obj1 = 0 ;
17932 char *kwnames[] = {
17933 (char *) "self",(char *) "c", NULL
17934 };
17935
17936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
17937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17939 {
17940 arg2 = &temp2;
17941 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17942 }
17943 {
17944 PyThreadState* __tstate = wxPyBeginAllowThreads();
17945 (arg1)->SetLightShadow((wxColour const &)*arg2);
17946
17947 wxPyEndAllowThreads(__tstate);
17948 if (PyErr_Occurred()) SWIG_fail;
17949 }
17950 Py_INCREF(Py_None); resultobj = Py_None;
17951 return resultobj;
17952 fail:
17953 return NULL;
17954 }
17955
17956
17957 static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
17958 PyObject *resultobj;
17959 wxEffects *arg1 = (wxEffects *) 0 ;
17960 wxColour *arg2 = 0 ;
17961 wxColour temp2 ;
17962 PyObject * obj0 = 0 ;
17963 PyObject * obj1 = 0 ;
17964 char *kwnames[] = {
17965 (char *) "self",(char *) "c", NULL
17966 };
17967
17968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
17969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17971 {
17972 arg2 = &temp2;
17973 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17974 }
17975 {
17976 PyThreadState* __tstate = wxPyBeginAllowThreads();
17977 (arg1)->SetFaceColour((wxColour const &)*arg2);
17978
17979 wxPyEndAllowThreads(__tstate);
17980 if (PyErr_Occurred()) SWIG_fail;
17981 }
17982 Py_INCREF(Py_None); resultobj = Py_None;
17983 return resultobj;
17984 fail:
17985 return NULL;
17986 }
17987
17988
17989 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
17990 PyObject *resultobj;
17991 wxEffects *arg1 = (wxEffects *) 0 ;
17992 wxColour *arg2 = 0 ;
17993 wxColour temp2 ;
17994 PyObject * obj0 = 0 ;
17995 PyObject * obj1 = 0 ;
17996 char *kwnames[] = {
17997 (char *) "self",(char *) "c", NULL
17998 };
17999
18000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18003 {
18004 arg2 = &temp2;
18005 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18006 }
18007 {
18008 PyThreadState* __tstate = wxPyBeginAllowThreads();
18009 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18010
18011 wxPyEndAllowThreads(__tstate);
18012 if (PyErr_Occurred()) SWIG_fail;
18013 }
18014 Py_INCREF(Py_None); resultobj = Py_None;
18015 return resultobj;
18016 fail:
18017 return NULL;
18018 }
18019
18020
18021 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18022 PyObject *resultobj;
18023 wxEffects *arg1 = (wxEffects *) 0 ;
18024 wxColour *arg2 = 0 ;
18025 wxColour temp2 ;
18026 PyObject * obj0 = 0 ;
18027 PyObject * obj1 = 0 ;
18028 char *kwnames[] = {
18029 (char *) "self",(char *) "c", NULL
18030 };
18031
18032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18035 {
18036 arg2 = &temp2;
18037 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18038 }
18039 {
18040 PyThreadState* __tstate = wxPyBeginAllowThreads();
18041 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18042
18043 wxPyEndAllowThreads(__tstate);
18044 if (PyErr_Occurred()) SWIG_fail;
18045 }
18046 Py_INCREF(Py_None); resultobj = Py_None;
18047 return resultobj;
18048 fail:
18049 return NULL;
18050 }
18051
18052
18053 static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) {
18054 PyObject *resultobj;
18055 wxEffects *arg1 = (wxEffects *) 0 ;
18056 wxColour *arg2 = 0 ;
18057 wxColour *arg3 = 0 ;
18058 wxColour *arg4 = 0 ;
18059 wxColour *arg5 = 0 ;
18060 wxColour *arg6 = 0 ;
18061 wxColour temp2 ;
18062 wxColour temp3 ;
18063 wxColour temp4 ;
18064 wxColour temp5 ;
18065 wxColour temp6 ;
18066 PyObject * obj0 = 0 ;
18067 PyObject * obj1 = 0 ;
18068 PyObject * obj2 = 0 ;
18069 PyObject * obj3 = 0 ;
18070 PyObject * obj4 = 0 ;
18071 PyObject * obj5 = 0 ;
18072 char *kwnames[] = {
18073 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18074 };
18075
18076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18079 {
18080 arg2 = &temp2;
18081 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18082 }
18083 {
18084 arg3 = &temp3;
18085 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18086 }
18087 {
18088 arg4 = &temp4;
18089 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18090 }
18091 {
18092 arg5 = &temp5;
18093 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18094 }
18095 {
18096 arg6 = &temp6;
18097 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18098 }
18099 {
18100 PyThreadState* __tstate = wxPyBeginAllowThreads();
18101 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18102
18103 wxPyEndAllowThreads(__tstate);
18104 if (PyErr_Occurred()) SWIG_fail;
18105 }
18106 Py_INCREF(Py_None); resultobj = Py_None;
18107 return resultobj;
18108 fail:
18109 return NULL;
18110 }
18111
18112
18113 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) {
18114 PyObject *resultobj;
18115 wxEffects *arg1 = (wxEffects *) 0 ;
18116 wxDC *arg2 = 0 ;
18117 wxRect *arg3 = 0 ;
18118 int arg4 = (int) 1 ;
18119 wxRect temp3 ;
18120 PyObject * obj0 = 0 ;
18121 PyObject * obj1 = 0 ;
18122 PyObject * obj2 = 0 ;
18123 PyObject * obj3 = 0 ;
18124 char *kwnames[] = {
18125 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18126 };
18127
18128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18131 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18132 SWIG_POINTER_EXCEPTION | 0)) == -1)
18133 SWIG_fail;
18134 if (arg2 == NULL) {
18135 PyErr_SetString(PyExc_TypeError,"null reference");
18136 SWIG_fail;
18137 }
18138 {
18139 arg3 = &temp3;
18140 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18141 }
18142 if (obj3) {
18143 arg4 = (int) SWIG_AsInt(obj3);
18144 if (PyErr_Occurred()) SWIG_fail;
18145 }
18146 {
18147 PyThreadState* __tstate = wxPyBeginAllowThreads();
18148 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18149
18150 wxPyEndAllowThreads(__tstate);
18151 if (PyErr_Occurred()) SWIG_fail;
18152 }
18153 Py_INCREF(Py_None); resultobj = Py_None;
18154 return resultobj;
18155 fail:
18156 return NULL;
18157 }
18158
18159
18160 static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
18161 PyObject *resultobj;
18162 wxEffects *arg1 = (wxEffects *) 0 ;
18163 wxRect *arg2 = 0 ;
18164 wxDC *arg3 = 0 ;
18165 wxBitmap *arg4 = 0 ;
18166 bool result;
18167 wxRect temp2 ;
18168 PyObject * obj0 = 0 ;
18169 PyObject * obj1 = 0 ;
18170 PyObject * obj2 = 0 ;
18171 PyObject * obj3 = 0 ;
18172 char *kwnames[] = {
18173 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18174 };
18175
18176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18179 {
18180 arg2 = &temp2;
18181 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18182 }
18183 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18184 SWIG_POINTER_EXCEPTION | 0)) == -1)
18185 SWIG_fail;
18186 if (arg3 == NULL) {
18187 PyErr_SetString(PyExc_TypeError,"null reference");
18188 SWIG_fail;
18189 }
18190 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18191 SWIG_POINTER_EXCEPTION | 0)) == -1)
18192 SWIG_fail;
18193 if (arg4 == NULL) {
18194 PyErr_SetString(PyExc_TypeError,"null reference");
18195 SWIG_fail;
18196 }
18197 {
18198 PyThreadState* __tstate = wxPyBeginAllowThreads();
18199 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18200
18201 wxPyEndAllowThreads(__tstate);
18202 if (PyErr_Occurred()) SWIG_fail;
18203 }
18204 {
18205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18206 }
18207 return resultobj;
18208 fail:
18209 return NULL;
18210 }
18211
18212
18213 static PyObject * Effects_swigregister(PyObject *, PyObject *args) {
18214 PyObject *obj;
18215 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18216 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18217 Py_INCREF(obj);
18218 return Py_BuildValue((char *)"");
18219 }
18220 static PyMethodDef SwigMethods[] = {
18221 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL },
18222 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL },
18223 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL },
18224 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL },
18225 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL },
18226 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL },
18227 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL },
18228 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL },
18229 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18230 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL },
18231 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL },
18232 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL },
18233 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL },
18234 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18235 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL },
18236 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18237 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL },
18238 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18239 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18240 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18241 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL },
18242 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18243 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL },
18244 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL },
18245 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL },
18246 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18247 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18248 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18249 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL },
18250 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL },
18251 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL },
18252 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL },
18253 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18254 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL },
18255 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18256 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18257 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18258 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL },
18259 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18260 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL },
18261 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18262 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18263 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18264 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18265 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18266 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18267 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL },
18268 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS, NULL },
18269 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS, NULL },
18270 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18271 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS, NULL },
18272 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL },
18273 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL },
18274 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18275 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18276 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
18277 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18278 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18279 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
18280 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18281 { (char *)"Brush_GetMacTheme", (PyCFunction) _wrap_Brush_GetMacTheme, METH_VARARGS | METH_KEYWORDS, NULL },
18282 { (char *)"Brush_SetMacTheme", (PyCFunction) _wrap_Brush_SetMacTheme, METH_VARARGS | METH_KEYWORDS, NULL },
18283 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL },
18284 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18285 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18286 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18287 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18288 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
18289 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL },
18290 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL },
18291 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18292 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18293 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18294 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18295 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL },
18296 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
18297 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL },
18298 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL },
18299 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18300 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL },
18301 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
18302 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18303 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18304 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18305 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18306 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18307 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18308 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL },
18309 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL },
18310 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL },
18311 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL },
18312 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL },
18313 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18314 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18315 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18316 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL },
18317 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18318 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18319 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18320 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18321 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18322 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18323 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18324 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18325 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL },
18326 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18327 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18328 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
18329 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
18330 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
18331 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
18332 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
18333 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL },
18334 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL },
18335 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL },
18336 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18337 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL },
18338 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18339 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL },
18340 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18341 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL },
18342 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL },
18343 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL },
18344 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL },
18345 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
18346 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18347 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL },
18348 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL },
18349 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18350 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL },
18351 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL },
18352 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
18353 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL },
18354 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18355 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL },
18356 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL },
18357 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL },
18358 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL },
18359 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL },
18360 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18361 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL },
18362 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL },
18363 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL },
18364 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18365 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
18366 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL },
18367 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18368 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL },
18369 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL },
18370 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18371 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18372 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18373 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL },
18374 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL },
18375 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL },
18376 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL },
18377 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL },
18378 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL },
18379 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18380 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL },
18381 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18382 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL },
18383 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL },
18384 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL },
18385 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL },
18386 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL },
18387 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL },
18388 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18389 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18390 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL },
18391 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL },
18392 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18393 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18394 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18395 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18396 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18397 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18398 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18399 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18400 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18401 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18402 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18403 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18404 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18405 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18406 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL },
18407 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL },
18408 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL },
18409 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL },
18410 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL },
18411 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL },
18412 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL },
18413 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL },
18414 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL },
18415 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL },
18416 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18417 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18418 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL },
18419 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL },
18420 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL },
18421 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18422 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18423 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL },
18424 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL },
18425 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL },
18426 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL },
18427 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18428 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL },
18429 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18430 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL },
18431 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL },
18432 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS, NULL },
18433 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL },
18434 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL },
18435 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18436 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
18437 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL },
18438 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL },
18439 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL },
18440 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL },
18441 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL },
18442 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18443 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL },
18444 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS, NULL },
18445 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18446 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18447 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18448 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18449 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18450 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18451 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18452 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18453 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18454 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18455 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18456 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18457 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL },
18458 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL },
18459 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18460 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18461 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18462 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18463 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18464 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18465 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18466 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18467 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL },
18468 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL },
18469 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL },
18470 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL },
18471 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL },
18472 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL },
18473 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL },
18474 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18475 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18476 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL },
18477 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL },
18478 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL },
18479 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18480 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL },
18481 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL },
18482 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL },
18483 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL },
18484 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL },
18485 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL },
18486 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL },
18487 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL },
18488 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL },
18489 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL },
18490 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL },
18491 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL },
18492 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL },
18493 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL },
18494 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL },
18495 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL },
18496 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
18497 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18498 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL },
18499 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
18500 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL },
18501 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
18502 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL },
18503 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL },
18504 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL },
18505 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL },
18506 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL },
18507 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18508 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL },
18509 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18510 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
18511 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
18512 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL },
18513 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL },
18514 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL },
18515 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL },
18516 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL },
18517 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL },
18518 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL },
18519 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL },
18520 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL },
18521 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL },
18522 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL },
18523 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL },
18524 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL },
18525 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS, NULL },
18526 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS, NULL },
18527 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS, NULL },
18528 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL },
18529 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS, NULL },
18530 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18531 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS, NULL },
18532 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL },
18533 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS, NULL },
18534 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL },
18535 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS, NULL },
18536 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL },
18537 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS, NULL },
18538 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL },
18539 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS, NULL },
18540 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL },
18541 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS, NULL },
18542 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18543 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS, NULL },
18544 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL },
18545 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL },
18546 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS, NULL },
18547 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL },
18548 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL },
18549 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS, NULL },
18550 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL },
18551 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS, NULL },
18552 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL },
18553 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL },
18554 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS, NULL },
18555 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18556 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS, NULL },
18557 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18558 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS, NULL },
18559 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL },
18560 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS, NULL },
18561 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL },
18562 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS, NULL },
18563 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL },
18564 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL },
18565 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL },
18566 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL },
18567 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL },
18568 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL },
18569 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
18570 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL },
18571 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL },
18572 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL },
18573 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL },
18574 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
18575 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL },
18576 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18577 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18578 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL },
18579 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL },
18580 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS, NULL },
18581 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18582 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL },
18583 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18584 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18585 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18586 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL },
18587 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18588 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18589 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18590 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18591 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18592 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL },
18593 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18594 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18595 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
18596 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18597 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL },
18598 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL },
18599 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL },
18600 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL },
18601 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL },
18602 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL },
18603 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL },
18604 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL },
18605 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18606 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18607 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18608 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL },
18609 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18610 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL },
18611 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18612 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18613 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
18614 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL },
18615 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18616 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL },
18617 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL },
18618 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18619 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL },
18620 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL },
18621 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL },
18622 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL },
18623 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL },
18624 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL },
18625 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18626 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18627 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18628 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18629 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18630 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18631 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL },
18632 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL },
18633 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL },
18634 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS, NULL },
18635 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS, NULL },
18636 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18637 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18638 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL },
18639 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL },
18640 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL },
18641 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL },
18642 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18643 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL },
18644 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL },
18645 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL },
18646 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL },
18647 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL },
18648 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL },
18649 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL },
18650 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL },
18651 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL },
18652 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL },
18653 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL },
18654 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL },
18655 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS, NULL },
18656 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL },
18657 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL },
18658 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL },
18659 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL },
18660 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL },
18661 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL },
18662 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL },
18663 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL },
18664 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL },
18665 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL },
18666 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL },
18667 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL },
18668 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL },
18669 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL },
18670 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL },
18671 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL },
18672 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL },
18673 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL },
18674 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL },
18675 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL },
18676 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL },
18677 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL },
18678 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL },
18679 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL },
18680 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL },
18681 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL },
18682 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18683 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL },
18684 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18685 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18686 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18687 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL },
18688 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL },
18689 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS, NULL },
18690 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL },
18691 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL },
18692 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL },
18693 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL },
18694 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL },
18695 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL },
18696 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL },
18697 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18698 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
18699 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL },
18700 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL },
18701 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
18702 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL },
18703 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18704 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL },
18705 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL },
18706 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL },
18707 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL },
18708 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
18709 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL },
18710 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18711 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18712 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18713 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
18714 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL },
18715 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL },
18716 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL },
18717 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL },
18718 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL },
18719 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL },
18720 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL },
18721 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL },
18722 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL },
18723 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL },
18724 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL },
18725 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
18726 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL },
18727 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL },
18728 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL },
18729 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18730 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL },
18731 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18732 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18733 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL },
18734 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18735 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL },
18736 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18737 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18738 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL },
18739 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL },
18740 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18741 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL },
18742 { NULL, NULL, 0, NULL }
18743 };
18744
18745
18746 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
18747
18748 static void *_p_wxControlTo_p_wxWindow(void *x) {
18749 return (void *)((wxWindow *) ((wxControl *) x));
18750 }
18751 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
18752 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
18753 }
18754 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
18755 return (void *)((wxWindow *) ((wxMenuBar *) x));
18756 }
18757 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
18758 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
18759 }
18760 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
18761 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
18762 }
18763 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
18764 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
18765 }
18766 static void *_p_wxPenTo_p_wxObject(void *x) {
18767 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
18768 }
18769 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
18770 return (void *)((wxObject *) ((wxRegionIterator *) x));
18771 }
18772 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
18773 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
18774 }
18775 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
18776 return (void *)((wxObject *) ((wxSizerItem *) x));
18777 }
18778 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
18779 return (void *)((wxObject *) ((wxColourDatabase *) x));
18780 }
18781 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
18782 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
18783 }
18784 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
18785 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
18786 }
18787 static void *_p_wxIconTo_p_wxObject(void *x) {
18788 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
18789 }
18790 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
18791 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
18792 }
18793 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
18794 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
18795 }
18796 static void *_p_wxSizerTo_p_wxObject(void *x) {
18797 return (void *)((wxObject *) ((wxSizer *) x));
18798 }
18799 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
18800 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
18801 }
18802 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18803 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18804 }
18805 static void *_p_wxPenListTo_p_wxObject(void *x) {
18806 return (void *)((wxObject *) ((wxPenList *) x));
18807 }
18808 static void *_p_wxEventTo_p_wxObject(void *x) {
18809 return (void *)((wxObject *) ((wxEvent *) x));
18810 }
18811 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
18812 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
18813 }
18814 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
18815 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
18816 }
18817 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
18818 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
18819 }
18820 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
18821 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
18822 }
18823 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
18824 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
18825 }
18826 static void *_p_wxDCTo_p_wxObject(void *x) {
18827 return (void *)((wxObject *) ((wxDC *) x));
18828 }
18829 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
18830 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
18831 }
18832 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
18833 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
18834 }
18835 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
18836 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
18837 }
18838 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
18839 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
18840 }
18841 static void *_p_wxControlTo_p_wxObject(void *x) {
18842 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
18843 }
18844 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
18845 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
18846 }
18847 static void *_p_wxClientDCTo_p_wxObject(void *x) {
18848 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
18849 }
18850 static void *_p_wxFSFileTo_p_wxObject(void *x) {
18851 return (void *)((wxObject *) ((wxFSFile *) x));
18852 }
18853 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
18854 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
18855 }
18856 static void *_p_wxRegionTo_p_wxObject(void *x) {
18857 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
18858 }
18859 static void *_p_wxPySizerTo_p_wxObject(void *x) {
18860 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
18861 }
18862 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
18863 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
18864 }
18865 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
18866 return (void *)((wxObject *) ((wxGDIObject *) x));
18867 }
18868 static void *_p_wxEffectsTo_p_wxObject(void *x) {
18869 return (void *)((wxObject *) ((wxEffects *) x));
18870 }
18871 static void *_p_wxPyEventTo_p_wxObject(void *x) {
18872 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
18873 }
18874 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
18875 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
18876 }
18877 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
18878 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
18879 }
18880 static void *_p_wxShowEventTo_p_wxObject(void *x) {
18881 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
18882 }
18883 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
18884 return (void *)((wxObject *) ((wxMenuItem *) x));
18885 }
18886 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
18887 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
18888 }
18889 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
18890 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
18891 }
18892 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
18893 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
18894 }
18895 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
18896 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
18897 }
18898 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
18899 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
18900 }
18901 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
18902 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
18903 }
18904 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
18905 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
18906 }
18907 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
18908 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
18909 }
18910 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
18911 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
18912 }
18913 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
18914 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
18915 }
18916 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
18917 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
18918 }
18919 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
18920 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
18921 }
18922 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
18923 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
18924 }
18925 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
18926 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
18927 }
18928 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
18929 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
18930 }
18931 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
18932 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
18933 }
18934 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
18935 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
18936 }
18937 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
18938 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
18939 }
18940 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
18941 return (void *)((wxObject *) ((wxImageHandler *) x));
18942 }
18943 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
18944 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
18945 }
18946 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
18947 return (void *)((wxObject *) ((wxEvtHandler *) x));
18948 }
18949 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
18950 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18951 }
18952 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
18953 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
18954 }
18955 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
18956 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
18957 }
18958 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
18959 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
18960 }
18961 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
18962 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
18963 }
18964 static void *_p_wxImageTo_p_wxObject(void *x) {
18965 return (void *)((wxObject *) ((wxImage *) x));
18966 }
18967 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
18968 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
18969 }
18970 static void *_p_wxPaletteTo_p_wxObject(void *x) {
18971 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
18972 }
18973 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
18974 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
18975 }
18976 static void *_p_wxImageListTo_p_wxObject(void *x) {
18977 return (void *)((wxObject *) ((wxImageList *) x));
18978 }
18979 static void *_p_wxCursorTo_p_wxObject(void *x) {
18980 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
18981 }
18982 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
18983 return (void *)((wxObject *) ((wxEncodingConverter *) x));
18984 }
18985 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
18986 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
18987 }
18988 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
18989 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
18990 }
18991 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
18992 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
18993 }
18994 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
18995 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
18996 }
18997 static void *_p_wxWindowTo_p_wxObject(void *x) {
18998 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
18999 }
19000 static void *_p_wxMenuTo_p_wxObject(void *x) {
19001 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19002 }
19003 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19004 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19005 }
19006 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19007 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19008 }
19009 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19010 return (void *)((wxObject *) ((wxBrushList *) x));
19011 }
19012 static void *_p_wxPyPenTo_p_wxObject(void *x) {
19013 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
19014 }
19015 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19016 return (void *)((wxObject *) ((wxFileSystem *) x));
19017 }
19018 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19019 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19020 }
19021 static void *_p_wxMaskTo_p_wxObject(void *x) {
19022 return (void *)((wxObject *) ((wxMask *) x));
19023 }
19024 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19025 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19026 }
19027 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19028 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19029 }
19030 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19031 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19032 }
19033 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19034 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19035 }
19036 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19037 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19038 }
19039 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19040 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19041 }
19042 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19043 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19044 }
19045 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19046 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19047 }
19048 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19049 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19050 }
19051 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19052 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19053 }
19054 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19055 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19056 }
19057 static void *_p_wxFontTo_p_wxObject(void *x) {
19058 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19059 }
19060 static void *_p_wxBrushTo_p_wxObject(void *x) {
19061 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19062 }
19063 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19064 return (void *)((wxObject *) ((wxMetaFile *) x));
19065 }
19066 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19067 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19068 }
19069 static void *_p_wxColourTo_p_wxObject(void *x) {
19070 return (void *)((wxObject *) ((wxColour *) x));
19071 }
19072 static void *_p_wxFontListTo_p_wxObject(void *x) {
19073 return (void *)((wxObject *) ((wxFontList *) x));
19074 }
19075 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19076 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19077 }
19078 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19079 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19080 }
19081 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19082 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19083 }
19084 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19085 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19086 }
19087 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19088 return (void *)((wxDC *) ((wxScreenDC *) x));
19089 }
19090 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19091 return (void *)((wxDC *) ((wxMirrorDC *) x));
19092 }
19093 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19094 return (void *)((wxDC *) ((wxMemoryDC *) x));
19095 }
19096 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19097 return (void *)((wxDC *) ((wxWindowDC *) x));
19098 }
19099 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19100 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19101 }
19102 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19103 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19104 }
19105 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19106 return (void *)((wxDC *) ((wxClientDC *) x));
19107 }
19108 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19109 return (void *)((wxDC *) ((wxPaintDC *) x));
19110 }
19111 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19112 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19113 }
19114 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19115 return (void *)((wxDC *) ((wxPrinterDC *) x));
19116 }
19117 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
19118 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
19119 }
19120 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19121 return (void *)((wxGDIObject *) ((wxIcon *) x));
19122 }
19123 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19124 return (void *)((wxGDIObject *) ((wxPalette *) x));
19125 }
19126 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19127 return (void *)((wxGDIObject *) ((wxPen *) x));
19128 }
19129 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19130 return (void *)((wxGDIObject *) ((wxFont *) x));
19131 }
19132 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19133 return (void *)((wxGDIObject *) ((wxCursor *) x));
19134 }
19135 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19136 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19137 }
19138 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19139 return (void *)((wxGDIObject *) ((wxRegion *) x));
19140 }
19141 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19142 return (void *)((wxGDIObject *) ((wxBrush *) x));
19143 }
19144 static void *_p_wxPyPenTo_p_wxPen(void *x) {
19145 return (void *)((wxPen *) ((wxPyPen *) x));
19146 }
19147 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}};
19148 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}};
19149 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}};
19150 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}};
19151 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}};
19152 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}};
19153 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}};
19154 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}};
19155 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}};
19156 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}};
19157 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}};
19158 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}};
19159 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}};
19160 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}};
19161 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}};
19162 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}};
19163 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}};
19164 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}};
19165 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}};
19166 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}};
19167 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}};
19168 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}};
19169 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}};
19170 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}};
19171 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}};
19172 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}};
19173 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}};
19174 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}};
19175 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}};
19176 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}};
19177 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}};
19178 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}};
19179 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}};
19180 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}};
19181 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}};
19182 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}};
19183 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}};
19184 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}};
19185 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}};
19186 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}};
19187 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}};
19188 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}};
19189 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}};
19190 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}};
19191 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}};
19192 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}};
19193 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}};
19194 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}};
19195 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}};
19196 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}};
19197 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}};
19198 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}};
19199 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}};
19200 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}};
19201 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}};
19202 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}};
19203
19204 static swig_type_info *swig_types_initial[] = {
19205 _swigt__p_wxPostScriptDC,
19206 _swigt__p_wxBrush,
19207 _swigt__p_wxColour,
19208 _swigt__p_wxDC,
19209 _swigt__p_wxMirrorDC,
19210 _swigt__p_byte,
19211 _swigt__p_wxPyFontEnumerator,
19212 _swigt__p_char,
19213 _swigt__p_wxIconLocation,
19214 _swigt__p_wxImage,
19215 _swigt__p_wxMetaFileDC,
19216 _swigt__p_wxMask,
19217 _swigt__p_wxFont,
19218 _swigt__p_wxWindow,
19219 _swigt__p_wxSize,
19220 _swigt__p_double,
19221 _swigt__p_wxMemoryDC,
19222 _swigt__p_wxFontMapper,
19223 _swigt__p_wxEffects,
19224 _swigt__p_wxNativeEncodingInfo,
19225 _swigt__p_wxPalette,
19226 _swigt__p_wxBitmap,
19227 _swigt__p_wxObject,
19228 _swigt__p_wxRegionIterator,
19229 _swigt__p_wxRect,
19230 _swigt__p_wxString,
19231 _swigt__p_wxPrinterDC,
19232 _swigt__p_wxIconBundle,
19233 _swigt__p_wxPoint,
19234 _swigt__p_wxDash,
19235 _swigt__p_wxScreenDC,
19236 _swigt__p_wxCursor,
19237 _swigt__p_wxClientDC,
19238 _swigt__p_wxBufferedDC,
19239 _swigt__p_wxImageList,
19240 _swigt__p_unsigned_char,
19241 _swigt__p_wxGDIObject,
19242 _swigt__p_wxIcon,
19243 _swigt__p_wxLocale,
19244 _swigt__p_wxRegion,
19245 _swigt__p_wxLanguageInfo,
19246 _swigt__p_wxConfigBase,
19247 _swigt__p_wxWindowDC,
19248 _swigt__p_wxPrintData,
19249 _swigt__p_wxBrushList,
19250 _swigt__p_wxFontList,
19251 _swigt__p_wxPen,
19252 _swigt__p_wxBufferedPaintDC,
19253 _swigt__p_wxPaintDC,
19254 _swigt__p_wxPenList,
19255 _swigt__p_wxPyPen,
19256 _swigt__p_int,
19257 _swigt__p_wxMetaFile,
19258 _swigt__p_wxNativeFontInfo,
19259 _swigt__p_wxEncodingConverter,
19260 _swigt__p_wxColourDatabase,
19261 0
19262 };
19263
19264
19265 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19266
19267 static swig_const_info swig_const_table[] = {
19268 {0, 0, 0, 0.0, 0, 0}};
19269
19270 #ifdef __cplusplus
19271 }
19272 #endif
19273
19274 #ifdef __cplusplus
19275 extern "C"
19276 #endif
19277 SWIGEXPORT(void) SWIG_init(void) {
19278 static PyObject *SWIG_globals = 0;
19279 static int typeinit = 0;
19280 PyObject *m, *d;
19281 int i;
19282 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19283 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19284 d = PyModule_GetDict(m);
19285
19286 if (!typeinit) {
19287 for (i = 0; swig_types_initial[i]; i++) {
19288 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19289 }
19290 typeinit = 1;
19291 }
19292 SWIG_InstallConstants(d,swig_const_table);
19293
19294 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
19295 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
19296 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
19297 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
19298 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
19299 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
19300 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
19301 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
19302 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
19303 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
19304 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
19305 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
19306 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
19307 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
19308 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
19309 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
19310 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
19311 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
19312 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
19313 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
19314 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
19315 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
19316 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
19317 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
19318 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
19319 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
19320 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
19321 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
19322 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
19323 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
19324 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
19325 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
19326 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
19327 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
19328 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
19329 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
19330 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
19331 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
19332 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
19333 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
19334 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
19335 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
19336 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
19337 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
19338 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
19339 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
19340 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
19341 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
19342 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
19343 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
19344 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
19345 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
19346 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
19347 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
19348 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
19349 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
19350 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
19351 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
19352 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
19353 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
19354 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
19355 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
19356 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
19357 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
19358 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
19359 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
19360 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
19361 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
19362 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
19363 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
19364 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
19365 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
19366 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
19367 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
19368 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
19369 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
19370 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
19371 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
19372 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
19373 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
19374 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
19375 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
19376 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
19377 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
19378 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
19379 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
19380 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
19381 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
19382 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
19383 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
19384 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
19385 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
19386 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
19387 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
19388 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
19389 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
19390 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
19391 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
19392 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
19393 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
19394 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
19395 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
19396 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
19397 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
19398 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
19399 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
19400 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
19401 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
19402 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
19403 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
19404 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
19405 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
19406 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
19407 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
19408 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
19409 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
19410 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
19411 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
19412 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
19413 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
19414 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
19415 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
19416 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
19417 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
19418 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
19419 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
19420
19421 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19422
19423 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
19424 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
19425 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
19426 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
19427 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
19428 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
19429 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
19430 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
19431 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
19432 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
19433 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
19434 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
19435 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
19436 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
19437 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
19438 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
19439 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
19440 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
19441 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
19442 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19443 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
19444 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
19445 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
19446 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
19447 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
19448 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
19449 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
19450 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
19451 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
19452 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
19453 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
19454 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
19455 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
19456 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
19457 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
19458 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
19459 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
19460 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
19461 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
19462 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
19463 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
19464 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
19465 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
19466 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
19467 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19468 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19469 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
19470 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
19471 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
19472 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
19473 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
19474 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
19475 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
19476 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
19477 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
19478 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
19479 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
19480 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
19481 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
19482 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19483 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
19484 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19485 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
19486 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19487 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
19488 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
19489 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
19490 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19491 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19492 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19493 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19494 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19495 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
19496 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
19497 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
19498 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
19499 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
19500 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
19501 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
19502 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
19503 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
19504 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19505 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
19506 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
19507 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
19508 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
19509 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
19510 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
19511 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19512 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
19513 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19514 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19515 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
19516 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
19517 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
19518 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
19519 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
19520 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
19521 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
19522 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
19523 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
19524 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
19525 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
19526 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
19527 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
19528 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
19529 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
19530 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
19531 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
19532 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19533 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
19534 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
19535 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
19536 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
19537 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19538 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
19539 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
19540 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
19541 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
19542 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
19543 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
19544 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
19545 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
19546 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
19547 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
19548 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
19549 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
19550 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
19551 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
19552 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
19553 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
19554 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
19555 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19556 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19557 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
19558 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
19559 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
19560 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
19561 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19562 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
19563 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
19564 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
19565 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
19566 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19567 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19568 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
19569 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
19570 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
19571 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
19572 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
19573 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
19574 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19575 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
19576 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
19577 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
19578 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
19579 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
19580 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19581 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
19582 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
19583 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
19584 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19585 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
19586 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19587 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19588 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19589 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
19590 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
19591 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
19592 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
19593 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
19594 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
19595 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
19596 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
19597 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
19598 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
19599 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19600 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19601 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19602 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19603 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19604 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19605 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19606 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19607 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19608 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19609 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19610 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19611 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19612 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19613 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19614 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19615 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19616 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19617 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
19618 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19619 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
19620 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
19621 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
19622 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19623 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
19624 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
19625 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
19626 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
19627 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
19628 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
19629 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
19630 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
19631 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
19632 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
19633 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
19634 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
19635 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
19636 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
19637 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
19638 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
19639 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
19640 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19641 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
19642 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19643 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19644 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
19645 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
19646 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
19647 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
19648 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
19649 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
19650 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
19651 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
19652 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
19653 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
19654 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
19655 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
19656 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
19657 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
19658 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19659 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
19660 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19661 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
19662 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
19663 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
19664 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
19665 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
19666 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
19667 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
19668 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
19669 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19670 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19671 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19672 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19673 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
19674 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
19675 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
19676 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19677 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19678 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19679 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19680 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19681 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19682 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19683 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19684 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19685 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19686 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19687 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19688 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19689 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19690 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19691 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19692 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19693 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19694 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19695 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19696 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19697 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19698 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19699 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19700 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19701 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19702 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19703 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19704 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19705 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19706 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19707 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19708 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19709 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19710 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19711 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19712 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19713 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19714 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19715 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19716 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19717 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19718 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19719 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19720 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19721 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19722 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
19723
19724 // Work around a chicken/egg problem in drawlist.cpp
19725 wxPyDrawList_SetAPIPtr();
19726
19727 }
19728