]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/gdi_wrap.cpp
Fixed the readme
[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(unsigned long)
367 SWIG_AsUnsignedLong(PyObject * obj)
368 {
369 if (PyLong_Check(obj)) {
370 return PyLong_AsUnsignedLong(obj);
371 } else {
372 long i = PyInt_AsLong(obj);
373 if ( !PyErr_Occurred() && (i < 0)) {
374 PyErr_SetString(PyExc_TypeError, "negative value for unsigned type");
375 }
376 return i;
377 }
378 }
379
380
381 SWIGSTATICINLINE(unsigned char)
382 SWIG_AsUnsignedChar(PyObject *obj)
383 {
384 return swig_numeric_cast(unsigned char,
385 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
386 "unsigned char", UCHAR_MAX));
387 }
388
389
390 SWIGSTATICINLINE(int)
391 SWIG_CheckUnsignedChar(PyObject* obj)
392 {
393 SWIG_AsUnsignedChar(obj);
394 if (PyErr_Occurred()) {
395 PyErr_Clear();
396 return 0;
397 } else {
398 return 1;
399 }
400 }
401
402
403 SWIGSTATICINLINE(int)
404 SWIG_CheckUnsignedLong(PyObject* obj)
405 {
406 SWIG_AsUnsignedLong(obj);
407 if (PyErr_Occurred()) {
408 PyErr_Clear();
409 return 0;
410 } else {
411 return 1;
412 }
413 }
414
415 PyObject *wxColour_Get(wxColour *self){
416 PyObject* rv = PyTuple_New(3);
417 int red = -1;
418 int green = -1;
419 int blue = -1;
420 if (self->Ok()) {
421 red = self->Red();
422 green = self->Green();
423 blue = self->Blue();
424 }
425 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
426 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
427 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
428 return rv;
429 }
430 unsigned long wxColour_GetRGB(wxColour *self){
431 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
432 }
433
434 SWIGSTATICINLINE(PyObject* )
435 SWIG_FromUnsignedLong(unsigned long value)
436 {
437 return (value > LONG_MAX) ?
438 PyLong_FromUnsignedLong(value)
439 : PyInt_FromLong(swig_numeric_cast(long,value));
440 }
441
442
443 SWIGSTATICINLINE(long)
444 SWIG_CheckLongInRange(long value, const char* type,
445 long min_value, long max_value)
446 {
447 if (!PyErr_Occurred()) {
448 if (value < min_value) {
449 PyObject *err =
450 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
451 value, type, min_value);
452
453 PyErr_SetObject(PyExc_OverflowError, err);
454 Py_DECREF(err);
455 } else if (value > max_value) {
456 PyObject *err =
457 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
458 value, type, max_value);
459 PyErr_SetObject(PyExc_OverflowError, err);
460 Py_DECREF(err);
461 }
462 }
463 return value;
464 }
465
466
467 SWIGSTATICINLINE(long)
468 SWIG_AsLong(PyObject * obj)
469 {
470 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
471 }
472
473
474 #if INT_MAX != LONG_MAX
475 SWIGSTATICINLINE(int)
476 SWIG_AsInt(PyObject *obj)
477 {
478 return swig_numeric_cast(int,
479 SWIG_CheckLongInRange(SWIG_AsLong(obj),
480 "int", INT_MIN, INT_MAX));
481 }
482 #else
483 #define SWIG_AsInt SWIG_AsLong
484 #endif
485
486
487 SWIGSTATICINLINE(int)
488 SWIG_CheckInt(PyObject* obj)
489 {
490 SWIG_AsInt(obj);
491 if (PyErr_Occurred()) {
492 PyErr_Clear();
493 return 0;
494 } else {
495 return 1;
496 }
497 }
498
499
500 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
501 PyObject* o2;
502 PyObject* o3;
503
504 if (!target) {
505 target = o;
506 } else if (target == Py_None) {
507 Py_DECREF(Py_None);
508 target = o;
509 } else {
510 if (!PyTuple_Check(target)) {
511 o2 = target;
512 target = PyTuple_New(1);
513 PyTuple_SetItem(target, 0, o2);
514 }
515 o3 = PyTuple_New(1);
516 PyTuple_SetItem(o3, 0, o);
517
518 o2 = target;
519 target = PySequence_Concat(o2, o3);
520 Py_DECREF(o2);
521 Py_DECREF(o3);
522 }
523 return target;
524 }
525
526 PyObject *wxPen_GetDashes(wxPen *self){
527 wxDash* dashes;
528 int count = self->GetDashes(&dashes);
529 bool blocked = wxPyBeginBlockThreads();
530 PyObject* retval = PyList_New(0);
531 for (int x=0; x<count; x++)
532 PyList_Append(retval, PyInt_FromLong(dashes[x]));
533 wxPyEndBlockThreads(blocked);
534 return retval;
535 }
536 bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; }
537 bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; }
538
539 wxPyPen::~wxPyPen()
540 {
541 if (m_dash)
542 delete [] m_dash;
543 }
544
545 void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash)
546 {
547 if (m_dash)
548 delete [] m_dash;
549 m_dash = new wxDash[nb_dashes];
550 for (int i=0; i<nb_dashes; i++) {
551 m_dash[i] = dash[i];
552 }
553 wxPen::SetDashes(nb_dashes, m_dash);
554 }
555
556
557 SWIGSTATICINLINE(short)
558 SWIG_AsShort(PyObject *obj)
559 {
560 return swig_numeric_cast(short,
561 SWIG_CheckLongInRange(SWIG_AsLong(obj),
562 "short", SHRT_MIN, SHRT_MAX));
563 }
564
565
566 SWIGSTATICINLINE(int)
567 SWIG_CheckShort(PyObject* obj)
568 {
569 SWIG_AsShort(obj);
570 if (PyErr_Occurred()) {
571 PyErr_Clear();
572 return 0;
573 } else {
574 return 1;
575 }
576 }
577
578
579 #include <wx/image.h>
580
581 static char** ConvertListOfStrings(PyObject* listOfStrings) {
582 char** cArray = NULL;
583 int count;
584
585 if (!PyList_Check(listOfStrings)) {
586 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
587 return NULL;
588 }
589 count = PyList_Size(listOfStrings);
590 cArray = new char*[count];
591
592 for(int x=0; x<count; x++) {
593 // TODO: Need some validation and error checking here
594 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
595 }
596 return cArray;
597 }
598
599
600 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
601 char** cArray = NULL;
602 wxBitmap* bmp;
603
604 cArray = ConvertListOfStrings(listOfStrings);
605 if (! cArray)
606 return NULL;
607 bmp = new wxBitmap(cArray);
608 delete [] cArray;
609 return bmp;
610 }
611 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
612 char* buf;
613 int length;
614 PyString_AsStringAndSize(bits, &buf, &length);
615 return new wxBitmap(buf, width, height, depth);
616 }
617 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
618 wxMask *mask = new wxMask(*self, colour);
619 self->SetMask(mask);
620 }
621 bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; }
622 bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; }
623 wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
624 if ( !colour.Ok() )
625 return new wxMask(bitmap, *wxBLACK);
626 else
627 return new wxMask(bitmap, colour);
628 }
629
630 #include <wx/iconbndl.h>
631
632 wxIcon *new_wxIcon(wxBitmap const &bmp){
633 wxIcon* icon = new wxIcon();
634 icon->CopyFromBitmap(bmp);
635 return icon;
636 }
637 wxIcon *new_wxIcon(PyObject *listOfStrings){
638 char** cArray = NULL;
639 wxIcon* icon;
640
641 cArray = ConvertListOfStrings(listOfStrings);
642 if (! cArray)
643 return NULL;
644 icon = new wxIcon(cArray);
645 delete [] cArray;
646 return icon;
647 }
648 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
649
650
651
652 return new wxIconLocation(*filename);
653
654 }
655 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
656
657
658
659 // do nothing
660
661 }
662 int wxIconLocation_GetIndex(wxIconLocation *self){
663
664
665
666 return -1;
667
668 }
669
670 SWIGSTATICINLINE(int)
671 SWIG_CheckLong(PyObject* obj)
672 {
673 SWIG_AsLong(obj);
674 if (PyErr_Occurred()) {
675 PyErr_Clear();
676 return 0;
677 } else {
678 return 1;
679 }
680 }
681
682 wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
683 #ifdef __WXGTK__
684 wxCHECK_MSG(False, NULL,
685 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
686 #else
687 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
688 #endif
689 }
690
691
692 wxRegion *new_wxRegion(int points,wxPoint *points_array,int fillStyle){
693 wxPyRaiseNotImplemented();
694 return NULL;
695 }
696 void wxRegionIterator_Next(wxRegionIterator *self){
697 (*self) ++;
698 }
699 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
700 return self->operator bool();
701 }
702
703 #include <wx/fontutil.h>
704 #include <wx/fontmap.h>
705 #include <wx/fontenum.h>
706
707 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
708 return self->ToString();
709 }
710
711 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
712 static wxNativeEncodingInfo info;
713 if ( wxGetNativeFontEncoding(encoding, &info) )
714 return &info;
715 else
716 return NULL;
717 }
718
719 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
720 wxFontEncoding alt_enc;
721 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
722 return PyInt_FromLong(alt_enc);
723 else {
724 Py_INCREF(Py_None);
725 return Py_None;
726 }
727 }
728 wxFont *new_wxFont(wxString const &info){
729 wxNativeFontInfo nfi;
730 nfi.FromString(info);
731 return new wxFont(nfi);
732 }
733 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
734 return wxFont::New(pointSize, family, flags, face, encoding);
735 }
736 bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
737 bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
738
739 class wxPyFontEnumerator : public wxFontEnumerator {
740 public:
741 wxPyFontEnumerator() {}
742 ~wxPyFontEnumerator() {}
743
744 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
745 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
746
747 PYPRIVATE;
748 };
749
750 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
751 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
752
753
754 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
755 wxArrayString* arr = self->GetEncodings();
756 return wxArrayString2PyList_helper(*arr);
757 }
758 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
759 wxArrayString* arr = self->GetFacenames();
760 return wxArrayString2PyList_helper(*arr);
761 }
762
763
764
765 #include "wx/wxPython/pydrawxxx.h"
766
767 wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
768 wxColour col;
769 self->GetPixel(x, y, &col);
770 return col;
771 }
772 wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
773 wxColour col;
774 self->GetPixel(pt, &col);
775 return col;
776 }
777
778 SWIGSTATICINLINE(double)
779 SWIG_AsDouble(PyObject *obj)
780 {
781 double val = (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
782 #if HAVE_LONG_LONG
783 ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
784 #else
785 ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj));
786 #endif
787 if (PyErr_Occurred()) {
788 PyErr_Clear();
789 PyErr_SetString(PyExc_TypeError, "a double is expected");
790 }
791 return val;
792 }
793
794
795 SWIGSTATICINLINE(int)
796 SWIG_CheckDouble(PyObject* obj)
797 {
798 SWIG_AsDouble(obj);
799 if (PyErr_Occurred()) {
800 PyErr_Clear();
801 return 0;
802 } else {
803 return 1;
804 }
805 }
806
807 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
808 wxRect rv;
809 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
810 return rv;
811 }
812 wxRect wxDC_GetClippingRect(wxDC *self){
813 wxRect rect;
814 self->GetClippingBox(rect);
815 return rect;
816 }
817 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
818 wxArrayInt widths;
819 self->GetPartialTextExtents(text, widths);
820 return widths;
821 }
822 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
823 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
824 }
825 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
826 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
827 }
828 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
829 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
830 }
831 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
832 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
833 }
834 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
835 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
836 }
837 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
838 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
839 }
840
841 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
842 *x1 = dc->MinX();
843 *y1 = dc->MinY();
844 *x2 = dc->MaxX();
845 *y2 = dc->MaxY();
846 }
847
848
849 //-=-=-=-=-=-=-=-=-=-=-
850
851 #if 1
852 // Use the standard wxBufferedDC
853 #include <wx/dcbuffer.h>
854
855 #else
856
857 // Or, temporarily put a set of classes here similar to the old buffered DC
858 // classes until the real ones can be fixed to work "correctly" again.
859
860 class wxBufferedDC : public wxMemoryDC
861 {
862 private:
863 wxDC *m_dc;
864 wxBitmap m_buffer;
865
866 public:
867
868 wxBufferedDC() : m_dc( 0 ) {}
869
870 wxBufferedDC( wxDC *dc, const wxBitmap &buffer )
871 : m_dc( dc ), m_buffer( buffer )
872 {
873 SelectObject( m_buffer );
874 }
875
876 wxBufferedDC( wxDC *dc, const wxSize &area )
877 : m_dc( dc ), m_buffer( area.GetWidth(), area.GetHeight() )
878 {
879 SelectObject( m_buffer );
880 }
881
882 ~wxBufferedDC() {
883 if( m_dc != 0 )
884 UnMask();
885 }
886
887
888 void Init( wxDC *dc, const wxBitmap &buffer ) {
889 wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap,
890 _T("wxBufferedDC already initialised") );
891 m_dc = dc;
892 m_buffer = buffer;
893 SelectObject( m_buffer );
894 }
895
896 void Init( wxDC *dc, const wxSize &area ) {
897 wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap,
898 _T("wxBufferedDC already initialised") );
899 m_dc = dc;
900 m_buffer = wxBitmap( area.GetWidth(), area.GetHeight() );
901 SelectObject( m_buffer );
902 }
903
904 void UnMask() {
905 wxASSERT_MSG( m_dc != 0, _T("No low level DC associated with buffer (anymore)") );
906 m_dc->Blit( 0, 0, m_buffer.GetWidth(), m_buffer.GetHeight(), this, 0, 0 );
907 m_dc = 0;
908 }
909 };
910
911
912 class wxBufferedPaintDC : public wxBufferedDC
913 {
914 private:
915 wxPaintDC m_paintdc;
916
917 public:
918 wxBufferedPaintDC( wxWindow *window, const wxBitmap &buffer = wxNullBitmap )
919 : m_paintdc( window )
920 {
921 window->PrepareDC( m_paintdc );
922
923 if( buffer != wxNullBitmap )
924 Init( &m_paintdc, buffer );
925 else
926 Init( &m_paintdc, window->GetClientSize() );
927 }
928
929 ~wxBufferedPaintDC() {
930 UnMask();
931 }
932 };
933
934 #endif
935 //-=-=-=-=-=-=-=-=-=-=-
936
937
938 #include <wx/dcps.h>
939
940
941 #include <wx/metafile.h>
942
943
944
945 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
946 self->AddColour(name, wxColour(red, green, blue));
947 }
948
949 #include <wx/effects.h>
950
951 #ifdef __cplusplus
952 extern "C" {
953 #endif
954 static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
955 PyObject *resultobj;
956 wxGDIObject *result;
957 char *kwnames[] = {
958 NULL
959 };
960
961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
962 {
963 PyThreadState* __tstate = wxPyBeginAllowThreads();
964 result = (wxGDIObject *)new wxGDIObject();
965
966 wxPyEndAllowThreads(__tstate);
967 if (PyErr_Occurred()) SWIG_fail;
968 }
969 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
970 return resultobj;
971 fail:
972 return NULL;
973 }
974
975
976 static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
977 PyObject *resultobj;
978 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
979 PyObject * obj0 = 0 ;
980 char *kwnames[] = {
981 (char *) "self", NULL
982 };
983
984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
987 {
988 PyThreadState* __tstate = wxPyBeginAllowThreads();
989 delete arg1;
990
991 wxPyEndAllowThreads(__tstate);
992 if (PyErr_Occurred()) SWIG_fail;
993 }
994 Py_INCREF(Py_None); resultobj = Py_None;
995 return resultobj;
996 fail:
997 return NULL;
998 }
999
1000
1001 static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
1002 PyObject *resultobj;
1003 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1004 bool result;
1005 PyObject * obj0 = 0 ;
1006 char *kwnames[] = {
1007 (char *) "self", NULL
1008 };
1009
1010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
1011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1013 {
1014 PyThreadState* __tstate = wxPyBeginAllowThreads();
1015 result = (bool)(arg1)->GetVisible();
1016
1017 wxPyEndAllowThreads(__tstate);
1018 if (PyErr_Occurred()) SWIG_fail;
1019 }
1020 {
1021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1022 }
1023 return resultobj;
1024 fail:
1025 return NULL;
1026 }
1027
1028
1029 static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
1030 PyObject *resultobj;
1031 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1032 bool arg2 ;
1033 PyObject * obj0 = 0 ;
1034 PyObject * obj1 = 0 ;
1035 char *kwnames[] = {
1036 (char *) "self",(char *) "visible", NULL
1037 };
1038
1039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
1040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1042 arg2 = (bool) SWIG_AsBool(obj1);
1043 if (PyErr_Occurred()) SWIG_fail;
1044 {
1045 PyThreadState* __tstate = wxPyBeginAllowThreads();
1046 (arg1)->SetVisible(arg2);
1047
1048 wxPyEndAllowThreads(__tstate);
1049 if (PyErr_Occurred()) SWIG_fail;
1050 }
1051 Py_INCREF(Py_None); resultobj = Py_None;
1052 return resultobj;
1053 fail:
1054 return NULL;
1055 }
1056
1057
1058 static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
1059 PyObject *resultobj;
1060 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1061 bool result;
1062 PyObject * obj0 = 0 ;
1063 char *kwnames[] = {
1064 (char *) "self", NULL
1065 };
1066
1067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
1068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1070 {
1071 PyThreadState* __tstate = wxPyBeginAllowThreads();
1072 result = (bool)(arg1)->IsNull();
1073
1074 wxPyEndAllowThreads(__tstate);
1075 if (PyErr_Occurred()) SWIG_fail;
1076 }
1077 {
1078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1079 }
1080 return resultobj;
1081 fail:
1082 return NULL;
1083 }
1084
1085
1086 static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) {
1087 PyObject *obj;
1088 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1089 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1090 Py_INCREF(obj);
1091 return Py_BuildValue((char *)"");
1092 }
1093 static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
1094 PyObject *resultobj;
1095 unsigned char arg1 = (unsigned char) 0 ;
1096 unsigned char arg2 = (unsigned char) 0 ;
1097 unsigned char arg3 = (unsigned char) 0 ;
1098 wxColour *result;
1099 PyObject * obj0 = 0 ;
1100 PyObject * obj1 = 0 ;
1101 PyObject * obj2 = 0 ;
1102 char *kwnames[] = {
1103 (char *) "red",(char *) "green",(char *) "blue", NULL
1104 };
1105
1106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1107 if (obj0) {
1108 arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0);
1109 if (PyErr_Occurred()) SWIG_fail;
1110 }
1111 if (obj1) {
1112 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1113 if (PyErr_Occurred()) SWIG_fail;
1114 }
1115 if (obj2) {
1116 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1117 if (PyErr_Occurred()) SWIG_fail;
1118 }
1119 {
1120 PyThreadState* __tstate = wxPyBeginAllowThreads();
1121 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1122
1123 wxPyEndAllowThreads(__tstate);
1124 if (PyErr_Occurred()) SWIG_fail;
1125 }
1126 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1127 return resultobj;
1128 fail:
1129 return NULL;
1130 }
1131
1132
1133 static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) {
1134 PyObject *resultobj;
1135 wxString *arg1 = 0 ;
1136 wxColour *result;
1137 bool temp1 = False ;
1138 PyObject * obj0 = 0 ;
1139 char *kwnames[] = {
1140 (char *) "colorName", NULL
1141 };
1142
1143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1144 {
1145 arg1 = wxString_in_helper(obj0);
1146 if (arg1 == NULL) SWIG_fail;
1147 temp1 = True;
1148 }
1149 {
1150 PyThreadState* __tstate = wxPyBeginAllowThreads();
1151 result = (wxColour *)new wxColour((wxString const &)*arg1);
1152
1153 wxPyEndAllowThreads(__tstate);
1154 if (PyErr_Occurred()) SWIG_fail;
1155 }
1156 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1157 {
1158 if (temp1)
1159 delete arg1;
1160 }
1161 return resultobj;
1162 fail:
1163 {
1164 if (temp1)
1165 delete arg1;
1166 }
1167 return NULL;
1168 }
1169
1170
1171 static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1172 PyObject *resultobj;
1173 unsigned long arg1 ;
1174 wxColour *result;
1175 PyObject * obj0 = 0 ;
1176 char *kwnames[] = {
1177 (char *) "colRGB", NULL
1178 };
1179
1180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1181 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1182 if (PyErr_Occurred()) SWIG_fail;
1183 {
1184 PyThreadState* __tstate = wxPyBeginAllowThreads();
1185 result = (wxColour *)new wxColour(arg1);
1186
1187 wxPyEndAllowThreads(__tstate);
1188 if (PyErr_Occurred()) SWIG_fail;
1189 }
1190 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1191 return resultobj;
1192 fail:
1193 return NULL;
1194 }
1195
1196
1197 static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
1198 PyObject *resultobj;
1199 wxColour *arg1 = (wxColour *) 0 ;
1200 PyObject * obj0 = 0 ;
1201 char *kwnames[] = {
1202 (char *) "self", NULL
1203 };
1204
1205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1208 {
1209 PyThreadState* __tstate = wxPyBeginAllowThreads();
1210 delete arg1;
1211
1212 wxPyEndAllowThreads(__tstate);
1213 if (PyErr_Occurred()) SWIG_fail;
1214 }
1215 Py_INCREF(Py_None); resultobj = Py_None;
1216 return resultobj;
1217 fail:
1218 return NULL;
1219 }
1220
1221
1222 static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) {
1223 PyObject *resultobj;
1224 wxColour *arg1 = (wxColour *) 0 ;
1225 unsigned char result;
1226 PyObject * obj0 = 0 ;
1227 char *kwnames[] = {
1228 (char *) "self", NULL
1229 };
1230
1231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1234 {
1235 PyThreadState* __tstate = wxPyBeginAllowThreads();
1236 result = (unsigned char)(arg1)->Red();
1237
1238 wxPyEndAllowThreads(__tstate);
1239 if (PyErr_Occurred()) SWIG_fail;
1240 }
1241 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1242 return resultobj;
1243 fail:
1244 return NULL;
1245 }
1246
1247
1248 static PyObject *_wrap_Colour_Green(PyObject *, PyObject *args, PyObject *kwargs) {
1249 PyObject *resultobj;
1250 wxColour *arg1 = (wxColour *) 0 ;
1251 unsigned char result;
1252 PyObject * obj0 = 0 ;
1253 char *kwnames[] = {
1254 (char *) "self", NULL
1255 };
1256
1257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1260 {
1261 PyThreadState* __tstate = wxPyBeginAllowThreads();
1262 result = (unsigned char)(arg1)->Green();
1263
1264 wxPyEndAllowThreads(__tstate);
1265 if (PyErr_Occurred()) SWIG_fail;
1266 }
1267 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1268 return resultobj;
1269 fail:
1270 return NULL;
1271 }
1272
1273
1274 static PyObject *_wrap_Colour_Blue(PyObject *, PyObject *args, PyObject *kwargs) {
1275 PyObject *resultobj;
1276 wxColour *arg1 = (wxColour *) 0 ;
1277 unsigned char result;
1278 PyObject * obj0 = 0 ;
1279 char *kwnames[] = {
1280 (char *) "self", NULL
1281 };
1282
1283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1286 {
1287 PyThreadState* __tstate = wxPyBeginAllowThreads();
1288 result = (unsigned char)(arg1)->Blue();
1289
1290 wxPyEndAllowThreads(__tstate);
1291 if (PyErr_Occurred()) SWIG_fail;
1292 }
1293 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1294 return resultobj;
1295 fail:
1296 return NULL;
1297 }
1298
1299
1300 static PyObject *_wrap_Colour_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
1301 PyObject *resultobj;
1302 wxColour *arg1 = (wxColour *) 0 ;
1303 bool result;
1304 PyObject * obj0 = 0 ;
1305 char *kwnames[] = {
1306 (char *) "self", NULL
1307 };
1308
1309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1312 {
1313 PyThreadState* __tstate = wxPyBeginAllowThreads();
1314 result = (bool)(arg1)->Ok();
1315
1316 wxPyEndAllowThreads(__tstate);
1317 if (PyErr_Occurred()) SWIG_fail;
1318 }
1319 {
1320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1321 }
1322 return resultobj;
1323 fail:
1324 return NULL;
1325 }
1326
1327
1328 static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) {
1329 PyObject *resultobj;
1330 wxColour *arg1 = (wxColour *) 0 ;
1331 unsigned char arg2 ;
1332 unsigned char arg3 ;
1333 unsigned char arg4 ;
1334 PyObject * obj0 = 0 ;
1335 PyObject * obj1 = 0 ;
1336 PyObject * obj2 = 0 ;
1337 PyObject * obj3 = 0 ;
1338 char *kwnames[] = {
1339 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1340 };
1341
1342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1345 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1346 if (PyErr_Occurred()) SWIG_fail;
1347 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1348 if (PyErr_Occurred()) SWIG_fail;
1349 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
1350 if (PyErr_Occurred()) SWIG_fail;
1351 {
1352 PyThreadState* __tstate = wxPyBeginAllowThreads();
1353 (arg1)->Set(arg2,arg3,arg4);
1354
1355 wxPyEndAllowThreads(__tstate);
1356 if (PyErr_Occurred()) SWIG_fail;
1357 }
1358 Py_INCREF(Py_None); resultobj = Py_None;
1359 return resultobj;
1360 fail:
1361 return NULL;
1362 }
1363
1364
1365 static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1366 PyObject *resultobj;
1367 wxColour *arg1 = (wxColour *) 0 ;
1368 unsigned long arg2 ;
1369 PyObject * obj0 = 0 ;
1370 PyObject * obj1 = 0 ;
1371 char *kwnames[] = {
1372 (char *) "self",(char *) "colRGB", NULL
1373 };
1374
1375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1378 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1379 if (PyErr_Occurred()) SWIG_fail;
1380 {
1381 PyThreadState* __tstate = wxPyBeginAllowThreads();
1382 (arg1)->Set(arg2);
1383
1384 wxPyEndAllowThreads(__tstate);
1385 if (PyErr_Occurred()) SWIG_fail;
1386 }
1387 Py_INCREF(Py_None); resultobj = Py_None;
1388 return resultobj;
1389 fail:
1390 return NULL;
1391 }
1392
1393
1394 static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) {
1395 PyObject *resultobj;
1396 wxColour *arg1 = (wxColour *) 0 ;
1397 wxString *arg2 = 0 ;
1398 bool temp2 = False ;
1399 PyObject * obj0 = 0 ;
1400 PyObject * obj1 = 0 ;
1401 char *kwnames[] = {
1402 (char *) "self",(char *) "colourName", NULL
1403 };
1404
1405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1408 {
1409 arg2 = wxString_in_helper(obj1);
1410 if (arg2 == NULL) SWIG_fail;
1411 temp2 = True;
1412 }
1413 {
1414 PyThreadState* __tstate = wxPyBeginAllowThreads();
1415 (arg1)->InitFromName((wxString const &)*arg2);
1416
1417 wxPyEndAllowThreads(__tstate);
1418 if (PyErr_Occurred()) SWIG_fail;
1419 }
1420 Py_INCREF(Py_None); resultobj = Py_None;
1421 {
1422 if (temp2)
1423 delete arg2;
1424 }
1425 return resultobj;
1426 fail:
1427 {
1428 if (temp2)
1429 delete arg2;
1430 }
1431 return NULL;
1432 }
1433
1434
1435 static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
1436 PyObject *resultobj;
1437 wxColour *arg1 = (wxColour *) 0 ;
1438 long result;
1439 PyObject * obj0 = 0 ;
1440 char *kwnames[] = {
1441 (char *) "self", NULL
1442 };
1443
1444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1447 {
1448 PyThreadState* __tstate = wxPyBeginAllowThreads();
1449 result = (long)((wxColour const *)arg1)->GetPixel();
1450
1451 wxPyEndAllowThreads(__tstate);
1452 if (PyErr_Occurred()) SWIG_fail;
1453 }
1454 resultobj = SWIG_FromLong((long)result);
1455 return resultobj;
1456 fail:
1457 return NULL;
1458 }
1459
1460
1461 static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
1462 PyObject *resultobj;
1463 wxColour *arg1 = (wxColour *) 0 ;
1464 wxColour *arg2 = 0 ;
1465 bool result;
1466 wxColour temp2 ;
1467 PyObject * obj0 = 0 ;
1468 PyObject * obj1 = 0 ;
1469 char *kwnames[] = {
1470 (char *) "self",(char *) "colour", NULL
1471 };
1472
1473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1476 {
1477 arg2 = &temp2;
1478 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1479 }
1480 {
1481 PyThreadState* __tstate = wxPyBeginAllowThreads();
1482 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1483
1484 wxPyEndAllowThreads(__tstate);
1485 if (PyErr_Occurred()) SWIG_fail;
1486 }
1487 {
1488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1489 }
1490 return resultobj;
1491 fail:
1492 return NULL;
1493 }
1494
1495
1496 static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
1497 PyObject *resultobj;
1498 wxColour *arg1 = (wxColour *) 0 ;
1499 wxColour *arg2 = 0 ;
1500 bool result;
1501 wxColour temp2 ;
1502 PyObject * obj0 = 0 ;
1503 PyObject * obj1 = 0 ;
1504 char *kwnames[] = {
1505 (char *) "self",(char *) "colour", NULL
1506 };
1507
1508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1511 {
1512 arg2 = &temp2;
1513 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1514 }
1515 {
1516 PyThreadState* __tstate = wxPyBeginAllowThreads();
1517 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1518
1519 wxPyEndAllowThreads(__tstate);
1520 if (PyErr_Occurred()) SWIG_fail;
1521 }
1522 {
1523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1524 }
1525 return resultobj;
1526 fail:
1527 return NULL;
1528 }
1529
1530
1531 static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) {
1532 PyObject *resultobj;
1533 wxColour *arg1 = (wxColour *) 0 ;
1534 PyObject *result;
1535 PyObject * obj0 = 0 ;
1536 char *kwnames[] = {
1537 (char *) "self", NULL
1538 };
1539
1540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1543 {
1544 PyThreadState* __tstate = wxPyBeginAllowThreads();
1545 result = (PyObject *)wxColour_Get(arg1);
1546
1547 wxPyEndAllowThreads(__tstate);
1548 if (PyErr_Occurred()) SWIG_fail;
1549 }
1550 resultobj = result;
1551 return resultobj;
1552 fail:
1553 return NULL;
1554 }
1555
1556
1557 static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1558 PyObject *resultobj;
1559 wxColour *arg1 = (wxColour *) 0 ;
1560 unsigned long result;
1561 PyObject * obj0 = 0 ;
1562 char *kwnames[] = {
1563 (char *) "self", NULL
1564 };
1565
1566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1569 {
1570 PyThreadState* __tstate = wxPyBeginAllowThreads();
1571 result = (unsigned long)wxColour_GetRGB(arg1);
1572
1573 wxPyEndAllowThreads(__tstate);
1574 if (PyErr_Occurred()) SWIG_fail;
1575 }
1576 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
1577 return resultobj;
1578 fail:
1579 return NULL;
1580 }
1581
1582
1583 static PyObject * Colour_swigregister(PyObject *, PyObject *args) {
1584 PyObject *obj;
1585 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1586 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1587 Py_INCREF(obj);
1588 return Py_BuildValue((char *)"");
1589 }
1590 static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
1591 PyObject *resultobj;
1592 int arg1 ;
1593 unsigned char *arg2 = (unsigned char *) 0 ;
1594 unsigned char *arg3 = (unsigned char *) 0 ;
1595 unsigned char *arg4 = (unsigned char *) 0 ;
1596 wxPalette *result;
1597 PyObject * obj0 = 0 ;
1598 PyObject * obj1 = 0 ;
1599 PyObject * obj2 = 0 ;
1600 PyObject * obj3 = 0 ;
1601 char *kwnames[] = {
1602 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1603 };
1604
1605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1606 arg1 = (int) SWIG_AsInt(obj0);
1607 if (PyErr_Occurred()) SWIG_fail;
1608 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1610 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1612 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1614 {
1615 PyThreadState* __tstate = wxPyBeginAllowThreads();
1616 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1617
1618 wxPyEndAllowThreads(__tstate);
1619 if (PyErr_Occurred()) SWIG_fail;
1620 }
1621 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1622 return resultobj;
1623 fail:
1624 return NULL;
1625 }
1626
1627
1628 static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
1629 PyObject *resultobj;
1630 wxPalette *arg1 = (wxPalette *) 0 ;
1631 PyObject * obj0 = 0 ;
1632 char *kwnames[] = {
1633 (char *) "self", NULL
1634 };
1635
1636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1639 {
1640 PyThreadState* __tstate = wxPyBeginAllowThreads();
1641 delete arg1;
1642
1643 wxPyEndAllowThreads(__tstate);
1644 if (PyErr_Occurred()) SWIG_fail;
1645 }
1646 Py_INCREF(Py_None); resultobj = Py_None;
1647 return resultobj;
1648 fail:
1649 return NULL;
1650 }
1651
1652
1653 static PyObject *_wrap_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
1654 PyObject *resultobj;
1655 wxPalette *arg1 = (wxPalette *) 0 ;
1656 byte arg2 ;
1657 byte arg3 ;
1658 byte arg4 ;
1659 int result;
1660 PyObject * obj0 = 0 ;
1661 PyObject * obj1 = 0 ;
1662 PyObject * obj2 = 0 ;
1663 PyObject * obj3 = 0 ;
1664 char *kwnames[] = {
1665 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1666 };
1667
1668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1671 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1672 if (PyErr_Occurred()) SWIG_fail;
1673 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1674 if (PyErr_Occurred()) SWIG_fail;
1675 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1676 if (PyErr_Occurred()) SWIG_fail;
1677 {
1678 PyThreadState* __tstate = wxPyBeginAllowThreads();
1679 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1680
1681 wxPyEndAllowThreads(__tstate);
1682 if (PyErr_Occurred()) SWIG_fail;
1683 }
1684 resultobj = SWIG_FromInt((int)result);
1685 return resultobj;
1686 fail:
1687 return NULL;
1688 }
1689
1690
1691 static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
1692 PyObject *resultobj;
1693 wxPalette *arg1 = (wxPalette *) 0 ;
1694 int arg2 ;
1695 byte *arg3 = (byte *) 0 ;
1696 byte *arg4 = (byte *) 0 ;
1697 byte *arg5 = (byte *) 0 ;
1698 bool result;
1699 byte temp3 ;
1700 byte temp4 ;
1701 byte temp5 ;
1702 PyObject * obj0 = 0 ;
1703 PyObject * obj1 = 0 ;
1704 char *kwnames[] = {
1705 (char *) "self",(char *) "pixel", NULL
1706 };
1707
1708 arg3 = &temp3;
1709 arg4 = &temp4;
1710 arg5 = &temp5;
1711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1714 arg2 = (int) SWIG_AsInt(obj1);
1715 if (PyErr_Occurred()) SWIG_fail;
1716 {
1717 PyThreadState* __tstate = wxPyBeginAllowThreads();
1718 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1719
1720 wxPyEndAllowThreads(__tstate);
1721 if (PyErr_Occurred()) SWIG_fail;
1722 }
1723 {
1724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1725 }
1726 {
1727 PyObject *o = PyInt_FromLong((long) (*arg3));
1728 resultobj = t_output_helper(resultobj,o);
1729 }
1730 {
1731 PyObject *o = PyInt_FromLong((long) (*arg4));
1732 resultobj = t_output_helper(resultobj,o);
1733 }
1734 {
1735 PyObject *o = PyInt_FromLong((long) (*arg5));
1736 resultobj = t_output_helper(resultobj,o);
1737 }
1738 return resultobj;
1739 fail:
1740 return NULL;
1741 }
1742
1743
1744 static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
1745 PyObject *resultobj;
1746 wxPalette *arg1 = (wxPalette *) 0 ;
1747 bool result;
1748 PyObject * obj0 = 0 ;
1749 char *kwnames[] = {
1750 (char *) "self", NULL
1751 };
1752
1753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1756 {
1757 PyThreadState* __tstate = wxPyBeginAllowThreads();
1758 result = (bool)(arg1)->Ok();
1759
1760 wxPyEndAllowThreads(__tstate);
1761 if (PyErr_Occurred()) SWIG_fail;
1762 }
1763 {
1764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1765 }
1766 return resultobj;
1767 fail:
1768 return NULL;
1769 }
1770
1771
1772 static PyObject * Palette_swigregister(PyObject *, PyObject *args) {
1773 PyObject *obj;
1774 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1775 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1776 Py_INCREF(obj);
1777 return Py_BuildValue((char *)"");
1778 }
1779 static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
1780 PyObject *resultobj;
1781 wxColour *arg1 = 0 ;
1782 int arg2 = (int) 1 ;
1783 int arg3 = (int) wxSOLID ;
1784 wxPen *result;
1785 wxColour temp1 ;
1786 PyObject * obj0 = 0 ;
1787 PyObject * obj1 = 0 ;
1788 PyObject * obj2 = 0 ;
1789 char *kwnames[] = {
1790 (char *) "colour",(char *) "width",(char *) "style", NULL
1791 };
1792
1793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1794 {
1795 arg1 = &temp1;
1796 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1797 }
1798 if (obj1) {
1799 arg2 = (int) SWIG_AsInt(obj1);
1800 if (PyErr_Occurred()) SWIG_fail;
1801 }
1802 if (obj2) {
1803 arg3 = (int) SWIG_AsInt(obj2);
1804 if (PyErr_Occurred()) SWIG_fail;
1805 }
1806 {
1807 PyThreadState* __tstate = wxPyBeginAllowThreads();
1808 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1809
1810 wxPyEndAllowThreads(__tstate);
1811 if (PyErr_Occurred()) SWIG_fail;
1812 }
1813 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1814 return resultobj;
1815 fail:
1816 return NULL;
1817 }
1818
1819
1820 static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
1821 PyObject *resultobj;
1822 wxPen *arg1 = (wxPen *) 0 ;
1823 PyObject * obj0 = 0 ;
1824 char *kwnames[] = {
1825 (char *) "self", NULL
1826 };
1827
1828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1831 {
1832 PyThreadState* __tstate = wxPyBeginAllowThreads();
1833 delete arg1;
1834
1835 wxPyEndAllowThreads(__tstate);
1836 if (PyErr_Occurred()) SWIG_fail;
1837 }
1838 Py_INCREF(Py_None); resultobj = Py_None;
1839 return resultobj;
1840 fail:
1841 return NULL;
1842 }
1843
1844
1845 static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) {
1846 PyObject *resultobj;
1847 wxPen *arg1 = (wxPen *) 0 ;
1848 int result;
1849 PyObject * obj0 = 0 ;
1850 char *kwnames[] = {
1851 (char *) "self", NULL
1852 };
1853
1854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1857 {
1858 PyThreadState* __tstate = wxPyBeginAllowThreads();
1859 result = (int)(arg1)->GetCap();
1860
1861 wxPyEndAllowThreads(__tstate);
1862 if (PyErr_Occurred()) SWIG_fail;
1863 }
1864 resultobj = SWIG_FromInt((int)result);
1865 return resultobj;
1866 fail:
1867 return NULL;
1868 }
1869
1870
1871 static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
1872 PyObject *resultobj;
1873 wxPen *arg1 = (wxPen *) 0 ;
1874 wxColour result;
1875 PyObject * obj0 = 0 ;
1876 char *kwnames[] = {
1877 (char *) "self", NULL
1878 };
1879
1880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1883 {
1884 PyThreadState* __tstate = wxPyBeginAllowThreads();
1885 result = (arg1)->GetColour();
1886
1887 wxPyEndAllowThreads(__tstate);
1888 if (PyErr_Occurred()) SWIG_fail;
1889 }
1890 {
1891 wxColour * resultptr;
1892 resultptr = new wxColour((wxColour &) result);
1893 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1894 }
1895 return resultobj;
1896 fail:
1897 return NULL;
1898 }
1899
1900
1901 static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
1902 PyObject *resultobj;
1903 wxPen *arg1 = (wxPen *) 0 ;
1904 int result;
1905 PyObject * obj0 = 0 ;
1906 char *kwnames[] = {
1907 (char *) "self", NULL
1908 };
1909
1910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1913 {
1914 PyThreadState* __tstate = wxPyBeginAllowThreads();
1915 result = (int)(arg1)->GetJoin();
1916
1917 wxPyEndAllowThreads(__tstate);
1918 if (PyErr_Occurred()) SWIG_fail;
1919 }
1920 resultobj = SWIG_FromInt((int)result);
1921 return resultobj;
1922 fail:
1923 return NULL;
1924 }
1925
1926
1927 static PyObject *_wrap_Pen_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
1928 PyObject *resultobj;
1929 wxPen *arg1 = (wxPen *) 0 ;
1930 int result;
1931 PyObject * obj0 = 0 ;
1932 char *kwnames[] = {
1933 (char *) "self", NULL
1934 };
1935
1936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1939 {
1940 PyThreadState* __tstate = wxPyBeginAllowThreads();
1941 result = (int)(arg1)->GetStyle();
1942
1943 wxPyEndAllowThreads(__tstate);
1944 if (PyErr_Occurred()) SWIG_fail;
1945 }
1946 resultobj = SWIG_FromInt((int)result);
1947 return resultobj;
1948 fail:
1949 return NULL;
1950 }
1951
1952
1953 static PyObject *_wrap_Pen_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
1954 PyObject *resultobj;
1955 wxPen *arg1 = (wxPen *) 0 ;
1956 int result;
1957 PyObject * obj0 = 0 ;
1958 char *kwnames[] = {
1959 (char *) "self", NULL
1960 };
1961
1962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1965 {
1966 PyThreadState* __tstate = wxPyBeginAllowThreads();
1967 result = (int)(arg1)->GetWidth();
1968
1969 wxPyEndAllowThreads(__tstate);
1970 if (PyErr_Occurred()) SWIG_fail;
1971 }
1972 resultobj = SWIG_FromInt((int)result);
1973 return resultobj;
1974 fail:
1975 return NULL;
1976 }
1977
1978
1979 static PyObject *_wrap_Pen_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
1980 PyObject *resultobj;
1981 wxPen *arg1 = (wxPen *) 0 ;
1982 bool result;
1983 PyObject * obj0 = 0 ;
1984 char *kwnames[] = {
1985 (char *) "self", NULL
1986 };
1987
1988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1991 {
1992 PyThreadState* __tstate = wxPyBeginAllowThreads();
1993 result = (bool)(arg1)->Ok();
1994
1995 wxPyEndAllowThreads(__tstate);
1996 if (PyErr_Occurred()) SWIG_fail;
1997 }
1998 {
1999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2000 }
2001 return resultobj;
2002 fail:
2003 return NULL;
2004 }
2005
2006
2007 static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) {
2008 PyObject *resultobj;
2009 wxPen *arg1 = (wxPen *) 0 ;
2010 int arg2 ;
2011 PyObject * obj0 = 0 ;
2012 PyObject * obj1 = 0 ;
2013 char *kwnames[] = {
2014 (char *) "self",(char *) "cap_style", NULL
2015 };
2016
2017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
2018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2020 arg2 = (int) SWIG_AsInt(obj1);
2021 if (PyErr_Occurred()) SWIG_fail;
2022 {
2023 PyThreadState* __tstate = wxPyBeginAllowThreads();
2024 (arg1)->SetCap(arg2);
2025
2026 wxPyEndAllowThreads(__tstate);
2027 if (PyErr_Occurred()) SWIG_fail;
2028 }
2029 Py_INCREF(Py_None); resultobj = Py_None;
2030 return resultobj;
2031 fail:
2032 return NULL;
2033 }
2034
2035
2036 static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
2037 PyObject *resultobj;
2038 wxPen *arg1 = (wxPen *) 0 ;
2039 wxColour *arg2 = 0 ;
2040 wxColour temp2 ;
2041 PyObject * obj0 = 0 ;
2042 PyObject * obj1 = 0 ;
2043 char *kwnames[] = {
2044 (char *) "self",(char *) "colour", NULL
2045 };
2046
2047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
2048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2050 {
2051 arg2 = &temp2;
2052 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2053 }
2054 {
2055 PyThreadState* __tstate = wxPyBeginAllowThreads();
2056 (arg1)->SetColour(*arg2);
2057
2058 wxPyEndAllowThreads(__tstate);
2059 if (PyErr_Occurred()) SWIG_fail;
2060 }
2061 Py_INCREF(Py_None); resultobj = Py_None;
2062 return resultobj;
2063 fail:
2064 return NULL;
2065 }
2066
2067
2068 static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
2069 PyObject *resultobj;
2070 wxPen *arg1 = (wxPen *) 0 ;
2071 int arg2 ;
2072 PyObject * obj0 = 0 ;
2073 PyObject * obj1 = 0 ;
2074 char *kwnames[] = {
2075 (char *) "self",(char *) "join_style", NULL
2076 };
2077
2078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2081 arg2 = (int) SWIG_AsInt(obj1);
2082 if (PyErr_Occurred()) SWIG_fail;
2083 {
2084 PyThreadState* __tstate = wxPyBeginAllowThreads();
2085 (arg1)->SetJoin(arg2);
2086
2087 wxPyEndAllowThreads(__tstate);
2088 if (PyErr_Occurred()) SWIG_fail;
2089 }
2090 Py_INCREF(Py_None); resultobj = Py_None;
2091 return resultobj;
2092 fail:
2093 return NULL;
2094 }
2095
2096
2097 static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2098 PyObject *resultobj;
2099 wxPen *arg1 = (wxPen *) 0 ;
2100 int arg2 ;
2101 PyObject * obj0 = 0 ;
2102 PyObject * obj1 = 0 ;
2103 char *kwnames[] = {
2104 (char *) "self",(char *) "style", NULL
2105 };
2106
2107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2110 arg2 = (int) SWIG_AsInt(obj1);
2111 if (PyErr_Occurred()) SWIG_fail;
2112 {
2113 PyThreadState* __tstate = wxPyBeginAllowThreads();
2114 (arg1)->SetStyle(arg2);
2115
2116 wxPyEndAllowThreads(__tstate);
2117 if (PyErr_Occurred()) SWIG_fail;
2118 }
2119 Py_INCREF(Py_None); resultobj = Py_None;
2120 return resultobj;
2121 fail:
2122 return NULL;
2123 }
2124
2125
2126 static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
2127 PyObject *resultobj;
2128 wxPen *arg1 = (wxPen *) 0 ;
2129 int arg2 ;
2130 PyObject * obj0 = 0 ;
2131 PyObject * obj1 = 0 ;
2132 char *kwnames[] = {
2133 (char *) "self",(char *) "width", NULL
2134 };
2135
2136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2139 arg2 = (int) SWIG_AsInt(obj1);
2140 if (PyErr_Occurred()) SWIG_fail;
2141 {
2142 PyThreadState* __tstate = wxPyBeginAllowThreads();
2143 (arg1)->SetWidth(arg2);
2144
2145 wxPyEndAllowThreads(__tstate);
2146 if (PyErr_Occurred()) SWIG_fail;
2147 }
2148 Py_INCREF(Py_None); resultobj = Py_None;
2149 return resultobj;
2150 fail:
2151 return NULL;
2152 }
2153
2154
2155 static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
2156 PyObject *resultobj;
2157 wxPen *arg1 = (wxPen *) 0 ;
2158 int arg2 ;
2159 wxDash *arg3 = (wxDash *) 0 ;
2160 PyObject * obj0 = 0 ;
2161 PyObject * obj1 = 0 ;
2162 char *kwnames[] = {
2163 (char *) "self",(char *) "dashes", NULL
2164 };
2165
2166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2169 {
2170 arg2 = PyList_Size(obj1);
2171 arg3 = (wxDash*)byte_LIST_helper(obj1);
2172 if (arg3 == NULL) SWIG_fail;
2173 }
2174 {
2175 PyThreadState* __tstate = wxPyBeginAllowThreads();
2176 (arg1)->SetDashes(arg2,arg3);
2177
2178 wxPyEndAllowThreads(__tstate);
2179 if (PyErr_Occurred()) SWIG_fail;
2180 }
2181 Py_INCREF(Py_None); resultobj = Py_None;
2182 {
2183 if (arg3) delete [] arg3;
2184 }
2185 return resultobj;
2186 fail:
2187 {
2188 if (arg3) delete [] arg3;
2189 }
2190 return NULL;
2191 }
2192
2193
2194 static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
2195 PyObject *resultobj;
2196 wxPen *arg1 = (wxPen *) 0 ;
2197 PyObject *result;
2198 PyObject * obj0 = 0 ;
2199 char *kwnames[] = {
2200 (char *) "self", NULL
2201 };
2202
2203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2206 {
2207 PyThreadState* __tstate = wxPyBeginAllowThreads();
2208 result = (PyObject *)wxPen_GetDashes(arg1);
2209
2210 wxPyEndAllowThreads(__tstate);
2211 if (PyErr_Occurred()) SWIG_fail;
2212 }
2213 resultobj = result;
2214 return resultobj;
2215 fail:
2216 return NULL;
2217 }
2218
2219
2220 static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
2221 PyObject *resultobj;
2222 wxPen *arg1 = (wxPen *) 0 ;
2223 wxPen *arg2 = (wxPen *) 0 ;
2224 bool result;
2225 PyObject * obj0 = 0 ;
2226 PyObject * obj1 = 0 ;
2227 char *kwnames[] = {
2228 (char *) "self",(char *) "other", NULL
2229 };
2230
2231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2234 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2236 {
2237 PyThreadState* __tstate = wxPyBeginAllowThreads();
2238 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2239
2240 wxPyEndAllowThreads(__tstate);
2241 if (PyErr_Occurred()) SWIG_fail;
2242 }
2243 {
2244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2245 }
2246 return resultobj;
2247 fail:
2248 return NULL;
2249 }
2250
2251
2252 static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
2253 PyObject *resultobj;
2254 wxPen *arg1 = (wxPen *) 0 ;
2255 wxPen *arg2 = (wxPen *) 0 ;
2256 bool result;
2257 PyObject * obj0 = 0 ;
2258 PyObject * obj1 = 0 ;
2259 char *kwnames[] = {
2260 (char *) "self",(char *) "other", NULL
2261 };
2262
2263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2266 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2268 {
2269 PyThreadState* __tstate = wxPyBeginAllowThreads();
2270 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2271
2272 wxPyEndAllowThreads(__tstate);
2273 if (PyErr_Occurred()) SWIG_fail;
2274 }
2275 {
2276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2277 }
2278 return resultobj;
2279 fail:
2280 return NULL;
2281 }
2282
2283
2284 static PyObject * Pen_swigregister(PyObject *, PyObject *args) {
2285 PyObject *obj;
2286 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2287 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2288 Py_INCREF(obj);
2289 return Py_BuildValue((char *)"");
2290 }
2291 static PyObject *_wrap_new_PyPen(PyObject *, PyObject *args, PyObject *kwargs) {
2292 PyObject *resultobj;
2293 wxColour *arg1 = 0 ;
2294 int arg2 = (int) 1 ;
2295 int arg3 = (int) wxSOLID ;
2296 wxPyPen *result;
2297 wxColour temp1 ;
2298 PyObject * obj0 = 0 ;
2299 PyObject * obj1 = 0 ;
2300 PyObject * obj2 = 0 ;
2301 char *kwnames[] = {
2302 (char *) "colour",(char *) "width",(char *) "style", NULL
2303 };
2304
2305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail;
2306 {
2307 arg1 = &temp1;
2308 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2309 }
2310 if (obj1) {
2311 arg2 = (int) SWIG_AsInt(obj1);
2312 if (PyErr_Occurred()) SWIG_fail;
2313 }
2314 if (obj2) {
2315 arg3 = (int) SWIG_AsInt(obj2);
2316 if (PyErr_Occurred()) SWIG_fail;
2317 }
2318 {
2319 PyThreadState* __tstate = wxPyBeginAllowThreads();
2320 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
2321
2322 wxPyEndAllowThreads(__tstate);
2323 if (PyErr_Occurred()) SWIG_fail;
2324 }
2325 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPen, 1);
2326 return resultobj;
2327 fail:
2328 return NULL;
2329 }
2330
2331
2332 static PyObject *_wrap_delete_PyPen(PyObject *, PyObject *args, PyObject *kwargs) {
2333 PyObject *resultobj;
2334 wxPyPen *arg1 = (wxPyPen *) 0 ;
2335 PyObject * obj0 = 0 ;
2336 char *kwnames[] = {
2337 (char *) "self", NULL
2338 };
2339
2340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
2341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2343 {
2344 PyThreadState* __tstate = wxPyBeginAllowThreads();
2345 delete arg1;
2346
2347 wxPyEndAllowThreads(__tstate);
2348 if (PyErr_Occurred()) SWIG_fail;
2349 }
2350 Py_INCREF(Py_None); resultobj = Py_None;
2351 return resultobj;
2352 fail:
2353 return NULL;
2354 }
2355
2356
2357 static PyObject *_wrap_PyPen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
2358 PyObject *resultobj;
2359 wxPyPen *arg1 = (wxPyPen *) 0 ;
2360 int arg2 ;
2361 wxDash *arg3 = (wxDash *) 0 ;
2362 PyObject * obj0 = 0 ;
2363 PyObject * obj1 = 0 ;
2364 char *kwnames[] = {
2365 (char *) "self",(char *) "dashes", NULL
2366 };
2367
2368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2371 {
2372 arg2 = PyList_Size(obj1);
2373 arg3 = (wxDash*)byte_LIST_helper(obj1);
2374 if (arg3 == NULL) SWIG_fail;
2375 }
2376 {
2377 PyThreadState* __tstate = wxPyBeginAllowThreads();
2378 (arg1)->SetDashes(arg2,arg3);
2379
2380 wxPyEndAllowThreads(__tstate);
2381 if (PyErr_Occurred()) SWIG_fail;
2382 }
2383 Py_INCREF(Py_None); resultobj = Py_None;
2384 {
2385 if (arg3) delete [] arg3;
2386 }
2387 return resultobj;
2388 fail:
2389 {
2390 if (arg3) delete [] arg3;
2391 }
2392 return NULL;
2393 }
2394
2395
2396 static PyObject * PyPen_swigregister(PyObject *, PyObject *args) {
2397 PyObject *obj;
2398 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2399 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
2400 Py_INCREF(obj);
2401 return Py_BuildValue((char *)"");
2402 }
2403 static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
2404 PyObject *resultobj;
2405 wxColour *arg1 = 0 ;
2406 int arg2 = (int) wxSOLID ;
2407 wxBrush *result;
2408 wxColour temp1 ;
2409 PyObject * obj0 = 0 ;
2410 PyObject * obj1 = 0 ;
2411 char *kwnames[] = {
2412 (char *) "colour",(char *) "style", NULL
2413 };
2414
2415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2416 {
2417 arg1 = &temp1;
2418 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2419 }
2420 if (obj1) {
2421 arg2 = (int) SWIG_AsInt(obj1);
2422 if (PyErr_Occurred()) SWIG_fail;
2423 }
2424 {
2425 PyThreadState* __tstate = wxPyBeginAllowThreads();
2426 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2427
2428 wxPyEndAllowThreads(__tstate);
2429 if (PyErr_Occurred()) SWIG_fail;
2430 }
2431 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2432 return resultobj;
2433 fail:
2434 return NULL;
2435 }
2436
2437
2438 static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
2439 PyObject *resultobj;
2440 wxBrush *arg1 = (wxBrush *) 0 ;
2441 PyObject * obj0 = 0 ;
2442 char *kwnames[] = {
2443 (char *) "self", NULL
2444 };
2445
2446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2449 {
2450 PyThreadState* __tstate = wxPyBeginAllowThreads();
2451 delete arg1;
2452
2453 wxPyEndAllowThreads(__tstate);
2454 if (PyErr_Occurred()) SWIG_fail;
2455 }
2456 Py_INCREF(Py_None); resultobj = Py_None;
2457 return resultobj;
2458 fail:
2459 return NULL;
2460 }
2461
2462
2463 static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
2464 PyObject *resultobj;
2465 wxBrush *arg1 = (wxBrush *) 0 ;
2466 wxColour *arg2 = 0 ;
2467 wxColour temp2 ;
2468 PyObject * obj0 = 0 ;
2469 PyObject * obj1 = 0 ;
2470 char *kwnames[] = {
2471 (char *) "self",(char *) "col", NULL
2472 };
2473
2474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2477 {
2478 arg2 = &temp2;
2479 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2480 }
2481 {
2482 PyThreadState* __tstate = wxPyBeginAllowThreads();
2483 (arg1)->SetColour((wxColour const &)*arg2);
2484
2485 wxPyEndAllowThreads(__tstate);
2486 if (PyErr_Occurred()) SWIG_fail;
2487 }
2488 Py_INCREF(Py_None); resultobj = Py_None;
2489 return resultobj;
2490 fail:
2491 return NULL;
2492 }
2493
2494
2495 static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2496 PyObject *resultobj;
2497 wxBrush *arg1 = (wxBrush *) 0 ;
2498 int arg2 ;
2499 PyObject * obj0 = 0 ;
2500 PyObject * obj1 = 0 ;
2501 char *kwnames[] = {
2502 (char *) "self",(char *) "style", NULL
2503 };
2504
2505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2508 arg2 = (int) SWIG_AsInt(obj1);
2509 if (PyErr_Occurred()) SWIG_fail;
2510 {
2511 PyThreadState* __tstate = wxPyBeginAllowThreads();
2512 (arg1)->SetStyle(arg2);
2513
2514 wxPyEndAllowThreads(__tstate);
2515 if (PyErr_Occurred()) SWIG_fail;
2516 }
2517 Py_INCREF(Py_None); resultobj = Py_None;
2518 return resultobj;
2519 fail:
2520 return NULL;
2521 }
2522
2523
2524 static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
2525 PyObject *resultobj;
2526 wxBrush *arg1 = (wxBrush *) 0 ;
2527 wxBitmap *arg2 = 0 ;
2528 PyObject * obj0 = 0 ;
2529 PyObject * obj1 = 0 ;
2530 char *kwnames[] = {
2531 (char *) "self",(char *) "stipple", NULL
2532 };
2533
2534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2537 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2538 SWIG_POINTER_EXCEPTION | 0)) == -1)
2539 SWIG_fail;
2540 if (arg2 == NULL) {
2541 PyErr_SetString(PyExc_TypeError,"null reference");
2542 SWIG_fail;
2543 }
2544 {
2545 PyThreadState* __tstate = wxPyBeginAllowThreads();
2546 (arg1)->SetStipple((wxBitmap const &)*arg2);
2547
2548 wxPyEndAllowThreads(__tstate);
2549 if (PyErr_Occurred()) SWIG_fail;
2550 }
2551 Py_INCREF(Py_None); resultobj = Py_None;
2552 return resultobj;
2553 fail:
2554 return NULL;
2555 }
2556
2557
2558 static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
2559 PyObject *resultobj;
2560 wxBrush *arg1 = (wxBrush *) 0 ;
2561 wxColour result;
2562 PyObject * obj0 = 0 ;
2563 char *kwnames[] = {
2564 (char *) "self", NULL
2565 };
2566
2567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2570 {
2571 PyThreadState* __tstate = wxPyBeginAllowThreads();
2572 result = ((wxBrush const *)arg1)->GetColour();
2573
2574 wxPyEndAllowThreads(__tstate);
2575 if (PyErr_Occurred()) SWIG_fail;
2576 }
2577 {
2578 wxColour * resultptr;
2579 resultptr = new wxColour((wxColour &) result);
2580 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2581 }
2582 return resultobj;
2583 fail:
2584 return NULL;
2585 }
2586
2587
2588 static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
2589 PyObject *resultobj;
2590 wxBrush *arg1 = (wxBrush *) 0 ;
2591 int result;
2592 PyObject * obj0 = 0 ;
2593 char *kwnames[] = {
2594 (char *) "self", NULL
2595 };
2596
2597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2600 {
2601 PyThreadState* __tstate = wxPyBeginAllowThreads();
2602 result = (int)((wxBrush const *)arg1)->GetStyle();
2603
2604 wxPyEndAllowThreads(__tstate);
2605 if (PyErr_Occurred()) SWIG_fail;
2606 }
2607 resultobj = SWIG_FromInt((int)result);
2608 return resultobj;
2609 fail:
2610 return NULL;
2611 }
2612
2613
2614 static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
2615 PyObject *resultobj;
2616 wxBrush *arg1 = (wxBrush *) 0 ;
2617 wxBitmap *result;
2618 PyObject * obj0 = 0 ;
2619 char *kwnames[] = {
2620 (char *) "self", NULL
2621 };
2622
2623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2626 {
2627 PyThreadState* __tstate = wxPyBeginAllowThreads();
2628 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2629
2630 wxPyEndAllowThreads(__tstate);
2631 if (PyErr_Occurred()) SWIG_fail;
2632 }
2633 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2634 return resultobj;
2635 fail:
2636 return NULL;
2637 }
2638
2639
2640 static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
2641 PyObject *resultobj;
2642 wxBrush *arg1 = (wxBrush *) 0 ;
2643 bool result;
2644 PyObject * obj0 = 0 ;
2645 char *kwnames[] = {
2646 (char *) "self", NULL
2647 };
2648
2649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2652 {
2653 PyThreadState* __tstate = wxPyBeginAllowThreads();
2654 result = (bool)(arg1)->Ok();
2655
2656 wxPyEndAllowThreads(__tstate);
2657 if (PyErr_Occurred()) SWIG_fail;
2658 }
2659 {
2660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2661 }
2662 return resultobj;
2663 fail:
2664 return NULL;
2665 }
2666
2667
2668 static PyObject *_wrap_Brush_GetMacTheme(PyObject *, PyObject *args, PyObject *kwargs) {
2669 PyObject *resultobj;
2670 wxBrush *arg1 = (wxBrush *) 0 ;
2671 short result;
2672 PyObject * obj0 = 0 ;
2673 char *kwnames[] = {
2674 (char *) "self", NULL
2675 };
2676
2677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetMacTheme",kwnames,&obj0)) goto fail;
2678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2680 {
2681 PyThreadState* __tstate = wxPyBeginAllowThreads();
2682 result = (short)(arg1)->GetMacTheme();
2683
2684 wxPyEndAllowThreads(__tstate);
2685 if (PyErr_Occurred()) SWIG_fail;
2686 }
2687 resultobj = SWIG_FromShort((short)result);
2688 return resultobj;
2689 fail:
2690 return NULL;
2691 }
2692
2693
2694 static PyObject *_wrap_Brush_SetMacTheme(PyObject *, PyObject *args, PyObject *kwargs) {
2695 PyObject *resultobj;
2696 wxBrush *arg1 = (wxBrush *) 0 ;
2697 short arg2 ;
2698 PyObject * obj0 = 0 ;
2699 PyObject * obj1 = 0 ;
2700 char *kwnames[] = {
2701 (char *) "self",(char *) "macThemeBrush", NULL
2702 };
2703
2704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetMacTheme",kwnames,&obj0,&obj1)) goto fail;
2705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2707 arg2 = (short) SWIG_AsShort(obj1);
2708 if (PyErr_Occurred()) SWIG_fail;
2709 {
2710 PyThreadState* __tstate = wxPyBeginAllowThreads();
2711 (arg1)->SetMacTheme(arg2);
2712
2713 wxPyEndAllowThreads(__tstate);
2714 if (PyErr_Occurred()) SWIG_fail;
2715 }
2716 Py_INCREF(Py_None); resultobj = Py_None;
2717 return resultobj;
2718 fail:
2719 return NULL;
2720 }
2721
2722
2723 static PyObject * Brush_swigregister(PyObject *, PyObject *args) {
2724 PyObject *obj;
2725 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2726 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2727 Py_INCREF(obj);
2728 return Py_BuildValue((char *)"");
2729 }
2730 static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
2731 PyObject *resultobj;
2732 wxString *arg1 = 0 ;
2733 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2734 wxBitmap *result;
2735 bool temp1 = False ;
2736 PyObject * obj0 = 0 ;
2737 PyObject * obj1 = 0 ;
2738 char *kwnames[] = {
2739 (char *) "name",(char *) "type", NULL
2740 };
2741
2742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2743 {
2744 arg1 = wxString_in_helper(obj0);
2745 if (arg1 == NULL) SWIG_fail;
2746 temp1 = True;
2747 }
2748 if (obj1) {
2749 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2750 if (PyErr_Occurred()) SWIG_fail;
2751 }
2752 {
2753 PyThreadState* __tstate = wxPyBeginAllowThreads();
2754 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2755
2756 wxPyEndAllowThreads(__tstate);
2757 if (PyErr_Occurred()) SWIG_fail;
2758 }
2759 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2760 {
2761 if (temp1)
2762 delete arg1;
2763 }
2764 return resultobj;
2765 fail:
2766 {
2767 if (temp1)
2768 delete arg1;
2769 }
2770 return NULL;
2771 }
2772
2773
2774 static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
2775 PyObject *resultobj;
2776 wxBitmap *arg1 = (wxBitmap *) 0 ;
2777 PyObject * obj0 = 0 ;
2778 char *kwnames[] = {
2779 (char *) "self", NULL
2780 };
2781
2782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2785 {
2786 PyThreadState* __tstate = wxPyBeginAllowThreads();
2787 delete arg1;
2788
2789 wxPyEndAllowThreads(__tstate);
2790 if (PyErr_Occurred()) SWIG_fail;
2791 }
2792 Py_INCREF(Py_None); resultobj = Py_None;
2793 return resultobj;
2794 fail:
2795 return NULL;
2796 }
2797
2798
2799 static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
2800 PyObject *resultobj;
2801 int arg1 ;
2802 int arg2 ;
2803 int arg3 = (int) -1 ;
2804 wxBitmap *result;
2805 PyObject * obj0 = 0 ;
2806 PyObject * obj1 = 0 ;
2807 PyObject * obj2 = 0 ;
2808 char *kwnames[] = {
2809 (char *) "width",(char *) "height",(char *) "depth", NULL
2810 };
2811
2812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2813 arg1 = (int) SWIG_AsInt(obj0);
2814 if (PyErr_Occurred()) SWIG_fail;
2815 arg2 = (int) SWIG_AsInt(obj1);
2816 if (PyErr_Occurred()) SWIG_fail;
2817 if (obj2) {
2818 arg3 = (int) SWIG_AsInt(obj2);
2819 if (PyErr_Occurred()) SWIG_fail;
2820 }
2821 {
2822 PyThreadState* __tstate = wxPyBeginAllowThreads();
2823 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2824
2825 wxPyEndAllowThreads(__tstate);
2826 if (PyErr_Occurred()) SWIG_fail;
2827 }
2828 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2829 return resultobj;
2830 fail:
2831 return NULL;
2832 }
2833
2834
2835 static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
2836 PyObject *resultobj;
2837 wxIcon *arg1 = 0 ;
2838 wxBitmap *result;
2839 PyObject * obj0 = 0 ;
2840 char *kwnames[] = {
2841 (char *) "icon", NULL
2842 };
2843
2844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2846 SWIG_POINTER_EXCEPTION | 0)) == -1)
2847 SWIG_fail;
2848 if (arg1 == NULL) {
2849 PyErr_SetString(PyExc_TypeError,"null reference");
2850 SWIG_fail;
2851 }
2852 {
2853 PyThreadState* __tstate = wxPyBeginAllowThreads();
2854 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2855
2856 wxPyEndAllowThreads(__tstate);
2857 if (PyErr_Occurred()) SWIG_fail;
2858 }
2859 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2860 return resultobj;
2861 fail:
2862 return NULL;
2863 }
2864
2865
2866 static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
2867 PyObject *resultobj;
2868 wxImage *arg1 = 0 ;
2869 int arg2 = (int) -1 ;
2870 wxBitmap *result;
2871 PyObject * obj0 = 0 ;
2872 PyObject * obj1 = 0 ;
2873 char *kwnames[] = {
2874 (char *) "image",(char *) "depth", NULL
2875 };
2876
2877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2879 SWIG_POINTER_EXCEPTION | 0)) == -1)
2880 SWIG_fail;
2881 if (arg1 == NULL) {
2882 PyErr_SetString(PyExc_TypeError,"null reference");
2883 SWIG_fail;
2884 }
2885 if (obj1) {
2886 arg2 = (int) SWIG_AsInt(obj1);
2887 if (PyErr_Occurred()) SWIG_fail;
2888 }
2889 {
2890 PyThreadState* __tstate = wxPyBeginAllowThreads();
2891 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2892
2893 wxPyEndAllowThreads(__tstate);
2894 if (PyErr_Occurred()) SWIG_fail;
2895 }
2896 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2897 return resultobj;
2898 fail:
2899 return NULL;
2900 }
2901
2902
2903 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
2904 PyObject *resultobj;
2905 PyObject *arg1 = (PyObject *) 0 ;
2906 wxBitmap *result;
2907 PyObject * obj0 = 0 ;
2908 char *kwnames[] = {
2909 (char *) "listOfStrings", NULL
2910 };
2911
2912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2913 arg1 = obj0;
2914 {
2915 PyThreadState* __tstate = wxPyBeginAllowThreads();
2916 result = (wxBitmap *)new_wxBitmap(arg1);
2917
2918 wxPyEndAllowThreads(__tstate);
2919 if (PyErr_Occurred()) SWIG_fail;
2920 }
2921 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2922 return resultobj;
2923 fail:
2924 return NULL;
2925 }
2926
2927
2928 static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) {
2929 PyObject *resultobj;
2930 PyObject *arg1 = (PyObject *) 0 ;
2931 int arg2 ;
2932 int arg3 ;
2933 int arg4 = (int) 1 ;
2934 wxBitmap *result;
2935 PyObject * obj0 = 0 ;
2936 PyObject * obj1 = 0 ;
2937 PyObject * obj2 = 0 ;
2938 PyObject * obj3 = 0 ;
2939 char *kwnames[] = {
2940 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2941 };
2942
2943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2944 arg1 = obj0;
2945 arg2 = (int) SWIG_AsInt(obj1);
2946 if (PyErr_Occurred()) SWIG_fail;
2947 arg3 = (int) SWIG_AsInt(obj2);
2948 if (PyErr_Occurred()) SWIG_fail;
2949 if (obj3) {
2950 arg4 = (int) SWIG_AsInt(obj3);
2951 if (PyErr_Occurred()) SWIG_fail;
2952 }
2953 {
2954 PyThreadState* __tstate = wxPyBeginAllowThreads();
2955 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2956
2957 wxPyEndAllowThreads(__tstate);
2958 if (PyErr_Occurred()) SWIG_fail;
2959 }
2960 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2961 return resultobj;
2962 fail:
2963 return NULL;
2964 }
2965
2966
2967 static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
2968 PyObject *resultobj;
2969 wxBitmap *arg1 = (wxBitmap *) 0 ;
2970 bool result;
2971 PyObject * obj0 = 0 ;
2972 char *kwnames[] = {
2973 (char *) "self", NULL
2974 };
2975
2976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2979 {
2980 PyThreadState* __tstate = wxPyBeginAllowThreads();
2981 result = (bool)(arg1)->Ok();
2982
2983 wxPyEndAllowThreads(__tstate);
2984 if (PyErr_Occurred()) SWIG_fail;
2985 }
2986 {
2987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2988 }
2989 return resultobj;
2990 fail:
2991 return NULL;
2992 }
2993
2994
2995 static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
2996 PyObject *resultobj;
2997 wxBitmap *arg1 = (wxBitmap *) 0 ;
2998 int result;
2999 PyObject * obj0 = 0 ;
3000 char *kwnames[] = {
3001 (char *) "self", NULL
3002 };
3003
3004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
3005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3007 {
3008 PyThreadState* __tstate = wxPyBeginAllowThreads();
3009 result = (int)(arg1)->GetWidth();
3010
3011 wxPyEndAllowThreads(__tstate);
3012 if (PyErr_Occurred()) SWIG_fail;
3013 }
3014 resultobj = SWIG_FromInt((int)result);
3015 return resultobj;
3016 fail:
3017 return NULL;
3018 }
3019
3020
3021 static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3022 PyObject *resultobj;
3023 wxBitmap *arg1 = (wxBitmap *) 0 ;
3024 int result;
3025 PyObject * obj0 = 0 ;
3026 char *kwnames[] = {
3027 (char *) "self", NULL
3028 };
3029
3030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
3031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3033 {
3034 PyThreadState* __tstate = wxPyBeginAllowThreads();
3035 result = (int)(arg1)->GetHeight();
3036
3037 wxPyEndAllowThreads(__tstate);
3038 if (PyErr_Occurred()) SWIG_fail;
3039 }
3040 resultobj = SWIG_FromInt((int)result);
3041 return resultobj;
3042 fail:
3043 return NULL;
3044 }
3045
3046
3047 static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3048 PyObject *resultobj;
3049 wxBitmap *arg1 = (wxBitmap *) 0 ;
3050 int result;
3051 PyObject * obj0 = 0 ;
3052 char *kwnames[] = {
3053 (char *) "self", NULL
3054 };
3055
3056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
3057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3059 {
3060 PyThreadState* __tstate = wxPyBeginAllowThreads();
3061 result = (int)(arg1)->GetDepth();
3062
3063 wxPyEndAllowThreads(__tstate);
3064 if (PyErr_Occurred()) SWIG_fail;
3065 }
3066 resultobj = SWIG_FromInt((int)result);
3067 return resultobj;
3068 fail:
3069 return NULL;
3070 }
3071
3072
3073 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) {
3074 PyObject *resultobj;
3075 wxBitmap *arg1 = (wxBitmap *) 0 ;
3076 SwigValueWrapper< wxImage > result;
3077 PyObject * obj0 = 0 ;
3078 char *kwnames[] = {
3079 (char *) "self", NULL
3080 };
3081
3082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
3083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3085 {
3086 PyThreadState* __tstate = wxPyBeginAllowThreads();
3087 result = ((wxBitmap const *)arg1)->ConvertToImage();
3088
3089 wxPyEndAllowThreads(__tstate);
3090 if (PyErr_Occurred()) SWIG_fail;
3091 }
3092 {
3093 wxImage * resultptr;
3094 resultptr = new wxImage((wxImage &) result);
3095 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3096 }
3097 return resultobj;
3098 fail:
3099 return NULL;
3100 }
3101
3102
3103 static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
3104 PyObject *resultobj;
3105 wxBitmap *arg1 = (wxBitmap *) 0 ;
3106 wxMask *result;
3107 PyObject * obj0 = 0 ;
3108 char *kwnames[] = {
3109 (char *) "self", NULL
3110 };
3111
3112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3115 {
3116 PyThreadState* __tstate = wxPyBeginAllowThreads();
3117 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3118
3119 wxPyEndAllowThreads(__tstate);
3120 if (PyErr_Occurred()) SWIG_fail;
3121 }
3122 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3123 return resultobj;
3124 fail:
3125 return NULL;
3126 }
3127
3128
3129 static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
3130 PyObject *resultobj;
3131 wxBitmap *arg1 = (wxBitmap *) 0 ;
3132 wxMask *arg2 = (wxMask *) 0 ;
3133 PyObject * obj0 = 0 ;
3134 PyObject * obj1 = 0 ;
3135 char *kwnames[] = {
3136 (char *) "self",(char *) "mask", NULL
3137 };
3138
3139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3142 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3144 {
3145 PyThreadState* __tstate = wxPyBeginAllowThreads();
3146 (arg1)->SetMask(arg2);
3147
3148 wxPyEndAllowThreads(__tstate);
3149 if (PyErr_Occurred()) SWIG_fail;
3150 }
3151 Py_INCREF(Py_None); resultobj = Py_None;
3152 return resultobj;
3153 fail:
3154 return NULL;
3155 }
3156
3157
3158 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) {
3159 PyObject *resultobj;
3160 wxBitmap *arg1 = (wxBitmap *) 0 ;
3161 wxColour *arg2 = 0 ;
3162 wxColour temp2 ;
3163 PyObject * obj0 = 0 ;
3164 PyObject * obj1 = 0 ;
3165 char *kwnames[] = {
3166 (char *) "self",(char *) "colour", NULL
3167 };
3168
3169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3172 {
3173 arg2 = &temp2;
3174 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3175 }
3176 {
3177 PyThreadState* __tstate = wxPyBeginAllowThreads();
3178 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3179
3180 wxPyEndAllowThreads(__tstate);
3181 if (PyErr_Occurred()) SWIG_fail;
3182 }
3183 Py_INCREF(Py_None); resultobj = Py_None;
3184 return resultobj;
3185 fail:
3186 return NULL;
3187 }
3188
3189
3190 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
3191 PyObject *resultobj;
3192 wxBitmap *arg1 = (wxBitmap *) 0 ;
3193 wxRect *arg2 = 0 ;
3194 SwigValueWrapper< wxBitmap > result;
3195 wxRect temp2 ;
3196 PyObject * obj0 = 0 ;
3197 PyObject * obj1 = 0 ;
3198 char *kwnames[] = {
3199 (char *) "self",(char *) "rect", NULL
3200 };
3201
3202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3205 {
3206 arg2 = &temp2;
3207 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3208 }
3209 {
3210 PyThreadState* __tstate = wxPyBeginAllowThreads();
3211 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3212
3213 wxPyEndAllowThreads(__tstate);
3214 if (PyErr_Occurred()) SWIG_fail;
3215 }
3216 {
3217 wxBitmap * resultptr;
3218 resultptr = new wxBitmap((wxBitmap &) result);
3219 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3220 }
3221 return resultobj;
3222 fail:
3223 return NULL;
3224 }
3225
3226
3227 static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
3228 PyObject *resultobj;
3229 wxBitmap *arg1 = (wxBitmap *) 0 ;
3230 wxString *arg2 = 0 ;
3231 int arg3 ;
3232 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
3233 bool result;
3234 bool temp2 = False ;
3235 PyObject * obj0 = 0 ;
3236 PyObject * obj1 = 0 ;
3237 PyObject * obj2 = 0 ;
3238 PyObject * obj3 = 0 ;
3239 char *kwnames[] = {
3240 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3241 };
3242
3243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3246 {
3247 arg2 = wxString_in_helper(obj1);
3248 if (arg2 == NULL) SWIG_fail;
3249 temp2 = True;
3250 }
3251 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3252 if (PyErr_Occurred()) SWIG_fail;
3253 if (obj3) {
3254 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3256 }
3257 {
3258 PyThreadState* __tstate = wxPyBeginAllowThreads();
3259 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3260
3261 wxPyEndAllowThreads(__tstate);
3262 if (PyErr_Occurred()) SWIG_fail;
3263 }
3264 {
3265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3266 }
3267 {
3268 if (temp2)
3269 delete arg2;
3270 }
3271 return resultobj;
3272 fail:
3273 {
3274 if (temp2)
3275 delete arg2;
3276 }
3277 return NULL;
3278 }
3279
3280
3281 static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
3282 PyObject *resultobj;
3283 wxBitmap *arg1 = (wxBitmap *) 0 ;
3284 wxString *arg2 = 0 ;
3285 int arg3 ;
3286 bool result;
3287 bool temp2 = False ;
3288 PyObject * obj0 = 0 ;
3289 PyObject * obj1 = 0 ;
3290 PyObject * obj2 = 0 ;
3291 char *kwnames[] = {
3292 (char *) "self",(char *) "name",(char *) "type", NULL
3293 };
3294
3295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3298 {
3299 arg2 = wxString_in_helper(obj1);
3300 if (arg2 == NULL) SWIG_fail;
3301 temp2 = True;
3302 }
3303 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3304 if (PyErr_Occurred()) SWIG_fail;
3305 {
3306 PyThreadState* __tstate = wxPyBeginAllowThreads();
3307 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3308
3309 wxPyEndAllowThreads(__tstate);
3310 if (PyErr_Occurred()) SWIG_fail;
3311 }
3312 {
3313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3314 }
3315 {
3316 if (temp2)
3317 delete arg2;
3318 }
3319 return resultobj;
3320 fail:
3321 {
3322 if (temp2)
3323 delete arg2;
3324 }
3325 return NULL;
3326 }
3327
3328
3329 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
3330 PyObject *resultobj;
3331 wxBitmap *arg1 = (wxBitmap *) 0 ;
3332 wxIcon *arg2 = 0 ;
3333 bool result;
3334 PyObject * obj0 = 0 ;
3335 PyObject * obj1 = 0 ;
3336 char *kwnames[] = {
3337 (char *) "self",(char *) "icon", NULL
3338 };
3339
3340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3343 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3344 SWIG_POINTER_EXCEPTION | 0)) == -1)
3345 SWIG_fail;
3346 if (arg2 == NULL) {
3347 PyErr_SetString(PyExc_TypeError,"null reference");
3348 SWIG_fail;
3349 }
3350 {
3351 PyThreadState* __tstate = wxPyBeginAllowThreads();
3352 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3353
3354 wxPyEndAllowThreads(__tstate);
3355 if (PyErr_Occurred()) SWIG_fail;
3356 }
3357 {
3358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3359 }
3360 return resultobj;
3361 fail:
3362 return NULL;
3363 }
3364
3365
3366 static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3367 PyObject *resultobj;
3368 wxBitmap *arg1 = (wxBitmap *) 0 ;
3369 int arg2 ;
3370 PyObject * obj0 = 0 ;
3371 PyObject * obj1 = 0 ;
3372 char *kwnames[] = {
3373 (char *) "self",(char *) "height", NULL
3374 };
3375
3376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3379 arg2 = (int) SWIG_AsInt(obj1);
3380 if (PyErr_Occurred()) SWIG_fail;
3381 {
3382 PyThreadState* __tstate = wxPyBeginAllowThreads();
3383 (arg1)->SetHeight(arg2);
3384
3385 wxPyEndAllowThreads(__tstate);
3386 if (PyErr_Occurred()) SWIG_fail;
3387 }
3388 Py_INCREF(Py_None); resultobj = Py_None;
3389 return resultobj;
3390 fail:
3391 return NULL;
3392 }
3393
3394
3395 static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3396 PyObject *resultobj;
3397 wxBitmap *arg1 = (wxBitmap *) 0 ;
3398 int arg2 ;
3399 PyObject * obj0 = 0 ;
3400 PyObject * obj1 = 0 ;
3401 char *kwnames[] = {
3402 (char *) "self",(char *) "width", NULL
3403 };
3404
3405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3408 arg2 = (int) SWIG_AsInt(obj1);
3409 if (PyErr_Occurred()) SWIG_fail;
3410 {
3411 PyThreadState* __tstate = wxPyBeginAllowThreads();
3412 (arg1)->SetWidth(arg2);
3413
3414 wxPyEndAllowThreads(__tstate);
3415 if (PyErr_Occurred()) SWIG_fail;
3416 }
3417 Py_INCREF(Py_None); resultobj = Py_None;
3418 return resultobj;
3419 fail:
3420 return NULL;
3421 }
3422
3423
3424 static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3425 PyObject *resultobj;
3426 wxBitmap *arg1 = (wxBitmap *) 0 ;
3427 int arg2 ;
3428 PyObject * obj0 = 0 ;
3429 PyObject * obj1 = 0 ;
3430 char *kwnames[] = {
3431 (char *) "self",(char *) "depth", NULL
3432 };
3433
3434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3437 arg2 = (int) SWIG_AsInt(obj1);
3438 if (PyErr_Occurred()) SWIG_fail;
3439 {
3440 PyThreadState* __tstate = wxPyBeginAllowThreads();
3441 (arg1)->SetDepth(arg2);
3442
3443 wxPyEndAllowThreads(__tstate);
3444 if (PyErr_Occurred()) SWIG_fail;
3445 }
3446 Py_INCREF(Py_None); resultobj = Py_None;
3447 return resultobj;
3448 fail:
3449 return NULL;
3450 }
3451
3452
3453 static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
3454 PyObject *resultobj;
3455 wxBitmap *arg1 = (wxBitmap *) 0 ;
3456 wxBitmap *arg2 = (wxBitmap *) 0 ;
3457 bool result;
3458 PyObject * obj0 = 0 ;
3459 PyObject * obj1 = 0 ;
3460 char *kwnames[] = {
3461 (char *) "self",(char *) "other", NULL
3462 };
3463
3464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3467 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3469 {
3470 PyThreadState* __tstate = wxPyBeginAllowThreads();
3471 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3472
3473 wxPyEndAllowThreads(__tstate);
3474 if (PyErr_Occurred()) SWIG_fail;
3475 }
3476 {
3477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3478 }
3479 return resultobj;
3480 fail:
3481 return NULL;
3482 }
3483
3484
3485 static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
3486 PyObject *resultobj;
3487 wxBitmap *arg1 = (wxBitmap *) 0 ;
3488 wxBitmap *arg2 = (wxBitmap *) 0 ;
3489 bool result;
3490 PyObject * obj0 = 0 ;
3491 PyObject * obj1 = 0 ;
3492 char *kwnames[] = {
3493 (char *) "self",(char *) "other", NULL
3494 };
3495
3496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3499 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3501 {
3502 PyThreadState* __tstate = wxPyBeginAllowThreads();
3503 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3504
3505 wxPyEndAllowThreads(__tstate);
3506 if (PyErr_Occurred()) SWIG_fail;
3507 }
3508 {
3509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3510 }
3511 return resultobj;
3512 fail:
3513 return NULL;
3514 }
3515
3516
3517 static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) {
3518 PyObject *obj;
3519 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3520 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3521 Py_INCREF(obj);
3522 return Py_BuildValue((char *)"");
3523 }
3524 static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) {
3525 PyObject *resultobj;
3526 wxBitmap *arg1 = 0 ;
3527 wxColour const &arg2_defvalue = wxNullColour ;
3528 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3529 wxMask *result;
3530 wxColour temp2 ;
3531 PyObject * obj0 = 0 ;
3532 PyObject * obj1 = 0 ;
3533 char *kwnames[] = {
3534 (char *) "bitmap",(char *) "colour", NULL
3535 };
3536
3537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3539 SWIG_POINTER_EXCEPTION | 0)) == -1)
3540 SWIG_fail;
3541 if (arg1 == NULL) {
3542 PyErr_SetString(PyExc_TypeError,"null reference");
3543 SWIG_fail;
3544 }
3545 if (obj1) {
3546 {
3547 arg2 = &temp2;
3548 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3549 }
3550 }
3551 {
3552 PyThreadState* __tstate = wxPyBeginAllowThreads();
3553 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3554
3555 wxPyEndAllowThreads(__tstate);
3556 if (PyErr_Occurred()) SWIG_fail;
3557 }
3558 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3559 return resultobj;
3560 fail:
3561 return NULL;
3562 }
3563
3564
3565 static PyObject * Mask_swigregister(PyObject *, PyObject *args) {
3566 PyObject *obj;
3567 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3568 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3569 Py_INCREF(obj);
3570 return Py_BuildValue((char *)"");
3571 }
3572 static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
3573 PyObject *resultobj;
3574 wxString *arg1 = 0 ;
3575 int arg2 ;
3576 int arg3 = (int) -1 ;
3577 int arg4 = (int) -1 ;
3578 wxIcon *result;
3579 bool temp1 = False ;
3580 PyObject * obj0 = 0 ;
3581 PyObject * obj1 = 0 ;
3582 PyObject * obj2 = 0 ;
3583 PyObject * obj3 = 0 ;
3584 char *kwnames[] = {
3585 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3586 };
3587
3588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3589 {
3590 arg1 = wxString_in_helper(obj0);
3591 if (arg1 == NULL) SWIG_fail;
3592 temp1 = True;
3593 }
3594 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3595 if (PyErr_Occurred()) SWIG_fail;
3596 if (obj2) {
3597 arg3 = (int) SWIG_AsInt(obj2);
3598 if (PyErr_Occurred()) SWIG_fail;
3599 }
3600 if (obj3) {
3601 arg4 = (int) SWIG_AsInt(obj3);
3602 if (PyErr_Occurred()) SWIG_fail;
3603 }
3604 {
3605 PyThreadState* __tstate = wxPyBeginAllowThreads();
3606 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3607
3608 wxPyEndAllowThreads(__tstate);
3609 if (PyErr_Occurred()) SWIG_fail;
3610 }
3611 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3612 {
3613 if (temp1)
3614 delete arg1;
3615 }
3616 return resultobj;
3617 fail:
3618 {
3619 if (temp1)
3620 delete arg1;
3621 }
3622 return NULL;
3623 }
3624
3625
3626 static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
3627 PyObject *resultobj;
3628 wxIcon *arg1 = (wxIcon *) 0 ;
3629 PyObject * obj0 = 0 ;
3630 char *kwnames[] = {
3631 (char *) "self", NULL
3632 };
3633
3634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3637 {
3638 PyThreadState* __tstate = wxPyBeginAllowThreads();
3639 delete arg1;
3640
3641 wxPyEndAllowThreads(__tstate);
3642 if (PyErr_Occurred()) SWIG_fail;
3643 }
3644 Py_INCREF(Py_None); resultobj = Py_None;
3645 return resultobj;
3646 fail:
3647 return NULL;
3648 }
3649
3650
3651 static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) {
3652 PyObject *resultobj;
3653 wxIcon *result;
3654 char *kwnames[] = {
3655 NULL
3656 };
3657
3658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3659 {
3660 PyThreadState* __tstate = wxPyBeginAllowThreads();
3661 result = (wxIcon *)new wxIcon();
3662
3663 wxPyEndAllowThreads(__tstate);
3664 if (PyErr_Occurred()) SWIG_fail;
3665 }
3666 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3667 return resultobj;
3668 fail:
3669 return NULL;
3670 }
3671
3672
3673 static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) {
3674 PyObject *resultobj;
3675 wxIconLocation *arg1 = 0 ;
3676 wxIcon *result;
3677 PyObject * obj0 = 0 ;
3678 char *kwnames[] = {
3679 (char *) "loc", NULL
3680 };
3681
3682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3684 SWIG_POINTER_EXCEPTION | 0)) == -1)
3685 SWIG_fail;
3686 if (arg1 == NULL) {
3687 PyErr_SetString(PyExc_TypeError,"null reference");
3688 SWIG_fail;
3689 }
3690 {
3691 PyThreadState* __tstate = wxPyBeginAllowThreads();
3692 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3693
3694 wxPyEndAllowThreads(__tstate);
3695 if (PyErr_Occurred()) SWIG_fail;
3696 }
3697 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3698 return resultobj;
3699 fail:
3700 return NULL;
3701 }
3702
3703
3704 static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
3705 PyObject *resultobj;
3706 wxBitmap *arg1 = 0 ;
3707 wxIcon *result;
3708 PyObject * obj0 = 0 ;
3709 char *kwnames[] = {
3710 (char *) "bmp", NULL
3711 };
3712
3713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3715 SWIG_POINTER_EXCEPTION | 0)) == -1)
3716 SWIG_fail;
3717 if (arg1 == NULL) {
3718 PyErr_SetString(PyExc_TypeError,"null reference");
3719 SWIG_fail;
3720 }
3721 {
3722 PyThreadState* __tstate = wxPyBeginAllowThreads();
3723 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3724
3725 wxPyEndAllowThreads(__tstate);
3726 if (PyErr_Occurred()) SWIG_fail;
3727 }
3728 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3729 return resultobj;
3730 fail:
3731 return NULL;
3732 }
3733
3734
3735 static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
3736 PyObject *resultobj;
3737 PyObject *arg1 = (PyObject *) 0 ;
3738 wxIcon *result;
3739 PyObject * obj0 = 0 ;
3740 char *kwnames[] = {
3741 (char *) "listOfStrings", NULL
3742 };
3743
3744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3745 arg1 = obj0;
3746 {
3747 PyThreadState* __tstate = wxPyBeginAllowThreads();
3748 result = (wxIcon *)new_wxIcon(arg1);
3749
3750 wxPyEndAllowThreads(__tstate);
3751 if (PyErr_Occurred()) SWIG_fail;
3752 }
3753 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3754 return resultobj;
3755 fail:
3756 return NULL;
3757 }
3758
3759
3760 static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
3761 PyObject *resultobj;
3762 wxIcon *arg1 = (wxIcon *) 0 ;
3763 bool result;
3764 PyObject * obj0 = 0 ;
3765 char *kwnames[] = {
3766 (char *) "self", NULL
3767 };
3768
3769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3772 {
3773 PyThreadState* __tstate = wxPyBeginAllowThreads();
3774 result = (bool)(arg1)->Ok();
3775
3776 wxPyEndAllowThreads(__tstate);
3777 if (PyErr_Occurred()) SWIG_fail;
3778 }
3779 {
3780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3781 }
3782 return resultobj;
3783 fail:
3784 return NULL;
3785 }
3786
3787
3788 static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3789 PyObject *resultobj;
3790 wxIcon *arg1 = (wxIcon *) 0 ;
3791 int result;
3792 PyObject * obj0 = 0 ;
3793 char *kwnames[] = {
3794 (char *) "self", NULL
3795 };
3796
3797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3800 {
3801 PyThreadState* __tstate = wxPyBeginAllowThreads();
3802 result = (int)(arg1)->GetWidth();
3803
3804 wxPyEndAllowThreads(__tstate);
3805 if (PyErr_Occurred()) SWIG_fail;
3806 }
3807 resultobj = SWIG_FromInt((int)result);
3808 return resultobj;
3809 fail:
3810 return NULL;
3811 }
3812
3813
3814 static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3815 PyObject *resultobj;
3816 wxIcon *arg1 = (wxIcon *) 0 ;
3817 int result;
3818 PyObject * obj0 = 0 ;
3819 char *kwnames[] = {
3820 (char *) "self", NULL
3821 };
3822
3823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3826 {
3827 PyThreadState* __tstate = wxPyBeginAllowThreads();
3828 result = (int)(arg1)->GetHeight();
3829
3830 wxPyEndAllowThreads(__tstate);
3831 if (PyErr_Occurred()) SWIG_fail;
3832 }
3833 resultobj = SWIG_FromInt((int)result);
3834 return resultobj;
3835 fail:
3836 return NULL;
3837 }
3838
3839
3840 static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3841 PyObject *resultobj;
3842 wxIcon *arg1 = (wxIcon *) 0 ;
3843 int result;
3844 PyObject * obj0 = 0 ;
3845 char *kwnames[] = {
3846 (char *) "self", NULL
3847 };
3848
3849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3852 {
3853 PyThreadState* __tstate = wxPyBeginAllowThreads();
3854 result = (int)(arg1)->GetDepth();
3855
3856 wxPyEndAllowThreads(__tstate);
3857 if (PyErr_Occurred()) SWIG_fail;
3858 }
3859 resultobj = SWIG_FromInt((int)result);
3860 return resultobj;
3861 fail:
3862 return NULL;
3863 }
3864
3865
3866 static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3867 PyObject *resultobj;
3868 wxIcon *arg1 = (wxIcon *) 0 ;
3869 int arg2 ;
3870 PyObject * obj0 = 0 ;
3871 PyObject * obj1 = 0 ;
3872 char *kwnames[] = {
3873 (char *) "self",(char *) "w", NULL
3874 };
3875
3876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3879 arg2 = (int) SWIG_AsInt(obj1);
3880 if (PyErr_Occurred()) SWIG_fail;
3881 {
3882 PyThreadState* __tstate = wxPyBeginAllowThreads();
3883 (arg1)->SetWidth(arg2);
3884
3885 wxPyEndAllowThreads(__tstate);
3886 if (PyErr_Occurred()) SWIG_fail;
3887 }
3888 Py_INCREF(Py_None); resultobj = Py_None;
3889 return resultobj;
3890 fail:
3891 return NULL;
3892 }
3893
3894
3895 static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3896 PyObject *resultobj;
3897 wxIcon *arg1 = (wxIcon *) 0 ;
3898 int arg2 ;
3899 PyObject * obj0 = 0 ;
3900 PyObject * obj1 = 0 ;
3901 char *kwnames[] = {
3902 (char *) "self",(char *) "h", NULL
3903 };
3904
3905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3908 arg2 = (int) SWIG_AsInt(obj1);
3909 if (PyErr_Occurred()) SWIG_fail;
3910 {
3911 PyThreadState* __tstate = wxPyBeginAllowThreads();
3912 (arg1)->SetHeight(arg2);
3913
3914 wxPyEndAllowThreads(__tstate);
3915 if (PyErr_Occurred()) SWIG_fail;
3916 }
3917 Py_INCREF(Py_None); resultobj = Py_None;
3918 return resultobj;
3919 fail:
3920 return NULL;
3921 }
3922
3923
3924 static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3925 PyObject *resultobj;
3926 wxIcon *arg1 = (wxIcon *) 0 ;
3927 int arg2 ;
3928 PyObject * obj0 = 0 ;
3929 PyObject * obj1 = 0 ;
3930 char *kwnames[] = {
3931 (char *) "self",(char *) "d", NULL
3932 };
3933
3934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3937 arg2 = (int) SWIG_AsInt(obj1);
3938 if (PyErr_Occurred()) SWIG_fail;
3939 {
3940 PyThreadState* __tstate = wxPyBeginAllowThreads();
3941 (arg1)->SetDepth(arg2);
3942
3943 wxPyEndAllowThreads(__tstate);
3944 if (PyErr_Occurred()) SWIG_fail;
3945 }
3946 Py_INCREF(Py_None); resultobj = Py_None;
3947 return resultobj;
3948 fail:
3949 return NULL;
3950 }
3951
3952
3953 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
3954 PyObject *resultobj;
3955 wxIcon *arg1 = (wxIcon *) 0 ;
3956 wxBitmap *arg2 = 0 ;
3957 PyObject * obj0 = 0 ;
3958 PyObject * obj1 = 0 ;
3959 char *kwnames[] = {
3960 (char *) "self",(char *) "bmp", NULL
3961 };
3962
3963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3966 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3967 SWIG_POINTER_EXCEPTION | 0)) == -1)
3968 SWIG_fail;
3969 if (arg2 == NULL) {
3970 PyErr_SetString(PyExc_TypeError,"null reference");
3971 SWIG_fail;
3972 }
3973 {
3974 PyThreadState* __tstate = wxPyBeginAllowThreads();
3975 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3976
3977 wxPyEndAllowThreads(__tstate);
3978 if (PyErr_Occurred()) SWIG_fail;
3979 }
3980 Py_INCREF(Py_None); resultobj = Py_None;
3981 return resultobj;
3982 fail:
3983 return NULL;
3984 }
3985
3986
3987 static PyObject * Icon_swigregister(PyObject *, PyObject *args) {
3988 PyObject *obj;
3989 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3990 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3991 Py_INCREF(obj);
3992 return Py_BuildValue((char *)"");
3993 }
3994 static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
3995 PyObject *resultobj;
3996 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3997 int arg2 = (int) 0 ;
3998 wxIconLocation *result;
3999 bool temp1 = False ;
4000 PyObject * obj0 = 0 ;
4001 PyObject * obj1 = 0 ;
4002 char *kwnames[] = {
4003 (char *) "filename",(char *) "num", NULL
4004 };
4005
4006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
4007 if (obj0) {
4008 {
4009 arg1 = wxString_in_helper(obj0);
4010 if (arg1 == NULL) SWIG_fail;
4011 temp1 = True;
4012 }
4013 }
4014 if (obj1) {
4015 arg2 = (int) SWIG_AsInt(obj1);
4016 if (PyErr_Occurred()) SWIG_fail;
4017 }
4018 {
4019 PyThreadState* __tstate = wxPyBeginAllowThreads();
4020 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4021
4022 wxPyEndAllowThreads(__tstate);
4023 if (PyErr_Occurred()) SWIG_fail;
4024 }
4025 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
4026 {
4027 if (temp1)
4028 delete arg1;
4029 }
4030 return resultobj;
4031 fail:
4032 {
4033 if (temp1)
4034 delete arg1;
4035 }
4036 return NULL;
4037 }
4038
4039
4040 static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
4041 PyObject *resultobj;
4042 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4043 PyObject * obj0 = 0 ;
4044 char *kwnames[] = {
4045 (char *) "self", NULL
4046 };
4047
4048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
4049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4051 {
4052 PyThreadState* __tstate = wxPyBeginAllowThreads();
4053 delete arg1;
4054
4055 wxPyEndAllowThreads(__tstate);
4056 if (PyErr_Occurred()) SWIG_fail;
4057 }
4058 Py_INCREF(Py_None); resultobj = Py_None;
4059 return resultobj;
4060 fail:
4061 return NULL;
4062 }
4063
4064
4065 static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
4066 PyObject *resultobj;
4067 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4068 bool result;
4069 PyObject * obj0 = 0 ;
4070 char *kwnames[] = {
4071 (char *) "self", NULL
4072 };
4073
4074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4077 {
4078 PyThreadState* __tstate = wxPyBeginAllowThreads();
4079 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4080
4081 wxPyEndAllowThreads(__tstate);
4082 if (PyErr_Occurred()) SWIG_fail;
4083 }
4084 {
4085 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4086 }
4087 return resultobj;
4088 fail:
4089 return NULL;
4090 }
4091
4092
4093 static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
4094 PyObject *resultobj;
4095 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4096 wxString *arg2 = 0 ;
4097 bool temp2 = False ;
4098 PyObject * obj0 = 0 ;
4099 PyObject * obj1 = 0 ;
4100 char *kwnames[] = {
4101 (char *) "self",(char *) "filename", NULL
4102 };
4103
4104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4107 {
4108 arg2 = wxString_in_helper(obj1);
4109 if (arg2 == NULL) SWIG_fail;
4110 temp2 = True;
4111 }
4112 {
4113 PyThreadState* __tstate = wxPyBeginAllowThreads();
4114 (arg1)->SetFileName((wxString const &)*arg2);
4115
4116 wxPyEndAllowThreads(__tstate);
4117 if (PyErr_Occurred()) SWIG_fail;
4118 }
4119 Py_INCREF(Py_None); resultobj = Py_None;
4120 {
4121 if (temp2)
4122 delete arg2;
4123 }
4124 return resultobj;
4125 fail:
4126 {
4127 if (temp2)
4128 delete arg2;
4129 }
4130 return NULL;
4131 }
4132
4133
4134 static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
4135 PyObject *resultobj;
4136 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4137 wxString *result;
4138 PyObject * obj0 = 0 ;
4139 char *kwnames[] = {
4140 (char *) "self", NULL
4141 };
4142
4143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4146 {
4147 PyThreadState* __tstate = wxPyBeginAllowThreads();
4148 {
4149 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4150 result = (wxString *) &_result_ref;
4151 }
4152
4153 wxPyEndAllowThreads(__tstate);
4154 if (PyErr_Occurred()) SWIG_fail;
4155 }
4156 {
4157 #if wxUSE_UNICODE
4158 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4159 #else
4160 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4161 #endif
4162 }
4163 return resultobj;
4164 fail:
4165 return NULL;
4166 }
4167
4168
4169 static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
4170 PyObject *resultobj;
4171 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4172 int arg2 ;
4173 PyObject * obj0 = 0 ;
4174 PyObject * obj1 = 0 ;
4175 char *kwnames[] = {
4176 (char *) "self",(char *) "num", NULL
4177 };
4178
4179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4182 arg2 = (int) SWIG_AsInt(obj1);
4183 if (PyErr_Occurred()) SWIG_fail;
4184 {
4185 PyThreadState* __tstate = wxPyBeginAllowThreads();
4186 wxIconLocation_SetIndex(arg1,arg2);
4187
4188 wxPyEndAllowThreads(__tstate);
4189 if (PyErr_Occurred()) SWIG_fail;
4190 }
4191 Py_INCREF(Py_None); resultobj = Py_None;
4192 return resultobj;
4193 fail:
4194 return NULL;
4195 }
4196
4197
4198 static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
4199 PyObject *resultobj;
4200 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4201 int result;
4202 PyObject * obj0 = 0 ;
4203 char *kwnames[] = {
4204 (char *) "self", NULL
4205 };
4206
4207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4210 {
4211 PyThreadState* __tstate = wxPyBeginAllowThreads();
4212 result = (int)wxIconLocation_GetIndex(arg1);
4213
4214 wxPyEndAllowThreads(__tstate);
4215 if (PyErr_Occurred()) SWIG_fail;
4216 }
4217 resultobj = SWIG_FromInt((int)result);
4218 return resultobj;
4219 fail:
4220 return NULL;
4221 }
4222
4223
4224 static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) {
4225 PyObject *obj;
4226 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4227 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4228 Py_INCREF(obj);
4229 return Py_BuildValue((char *)"");
4230 }
4231 static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
4232 PyObject *resultobj;
4233 wxIconBundle *result;
4234 char *kwnames[] = {
4235 NULL
4236 };
4237
4238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4239 {
4240 PyThreadState* __tstate = wxPyBeginAllowThreads();
4241 result = (wxIconBundle *)new wxIconBundle();
4242
4243 wxPyEndAllowThreads(__tstate);
4244 if (PyErr_Occurred()) SWIG_fail;
4245 }
4246 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4247 return resultobj;
4248 fail:
4249 return NULL;
4250 }
4251
4252
4253 static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
4254 PyObject *resultobj;
4255 wxString *arg1 = 0 ;
4256 long arg2 ;
4257 wxIconBundle *result;
4258 bool temp1 = False ;
4259 PyObject * obj0 = 0 ;
4260 PyObject * obj1 = 0 ;
4261 char *kwnames[] = {
4262 (char *) "file",(char *) "type", NULL
4263 };
4264
4265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4266 {
4267 arg1 = wxString_in_helper(obj0);
4268 if (arg1 == NULL) SWIG_fail;
4269 temp1 = True;
4270 }
4271 arg2 = (long) SWIG_AsLong(obj1);
4272 if (PyErr_Occurred()) SWIG_fail;
4273 {
4274 PyThreadState* __tstate = wxPyBeginAllowThreads();
4275 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4276
4277 wxPyEndAllowThreads(__tstate);
4278 if (PyErr_Occurred()) SWIG_fail;
4279 }
4280 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4281 {
4282 if (temp1)
4283 delete arg1;
4284 }
4285 return resultobj;
4286 fail:
4287 {
4288 if (temp1)
4289 delete arg1;
4290 }
4291 return NULL;
4292 }
4293
4294
4295 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4296 PyObject *resultobj;
4297 wxIcon *arg1 = 0 ;
4298 wxIconBundle *result;
4299 PyObject * obj0 = 0 ;
4300 char *kwnames[] = {
4301 (char *) "icon", NULL
4302 };
4303
4304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4306 SWIG_POINTER_EXCEPTION | 0)) == -1)
4307 SWIG_fail;
4308 if (arg1 == NULL) {
4309 PyErr_SetString(PyExc_TypeError,"null reference");
4310 SWIG_fail;
4311 }
4312 {
4313 PyThreadState* __tstate = wxPyBeginAllowThreads();
4314 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4315
4316 wxPyEndAllowThreads(__tstate);
4317 if (PyErr_Occurred()) SWIG_fail;
4318 }
4319 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4320 return resultobj;
4321 fail:
4322 return NULL;
4323 }
4324
4325
4326 static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
4327 PyObject *resultobj;
4328 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4329 PyObject * obj0 = 0 ;
4330 char *kwnames[] = {
4331 (char *) "self", NULL
4332 };
4333
4334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4337 {
4338 PyThreadState* __tstate = wxPyBeginAllowThreads();
4339 delete arg1;
4340
4341 wxPyEndAllowThreads(__tstate);
4342 if (PyErr_Occurred()) SWIG_fail;
4343 }
4344 Py_INCREF(Py_None); resultobj = Py_None;
4345 return resultobj;
4346 fail:
4347 return NULL;
4348 }
4349
4350
4351 static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4352 PyObject *resultobj;
4353 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4354 wxIcon *arg2 = 0 ;
4355 PyObject * obj0 = 0 ;
4356 PyObject * obj1 = 0 ;
4357 char *kwnames[] = {
4358 (char *) "self",(char *) "icon", NULL
4359 };
4360
4361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4364 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4365 SWIG_POINTER_EXCEPTION | 0)) == -1)
4366 SWIG_fail;
4367 if (arg2 == NULL) {
4368 PyErr_SetString(PyExc_TypeError,"null reference");
4369 SWIG_fail;
4370 }
4371 {
4372 PyThreadState* __tstate = wxPyBeginAllowThreads();
4373 (arg1)->AddIcon((wxIcon const &)*arg2);
4374
4375 wxPyEndAllowThreads(__tstate);
4376 if (PyErr_Occurred()) SWIG_fail;
4377 }
4378 Py_INCREF(Py_None); resultobj = Py_None;
4379 return resultobj;
4380 fail:
4381 return NULL;
4382 }
4383
4384
4385 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
4386 PyObject *resultobj;
4387 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4388 wxString *arg2 = 0 ;
4389 long arg3 ;
4390 bool temp2 = False ;
4391 PyObject * obj0 = 0 ;
4392 PyObject * obj1 = 0 ;
4393 PyObject * obj2 = 0 ;
4394 char *kwnames[] = {
4395 (char *) "self",(char *) "file",(char *) "type", NULL
4396 };
4397
4398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4401 {
4402 arg2 = wxString_in_helper(obj1);
4403 if (arg2 == NULL) SWIG_fail;
4404 temp2 = True;
4405 }
4406 arg3 = (long) SWIG_AsLong(obj2);
4407 if (PyErr_Occurred()) SWIG_fail;
4408 {
4409 PyThreadState* __tstate = wxPyBeginAllowThreads();
4410 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4411
4412 wxPyEndAllowThreads(__tstate);
4413 if (PyErr_Occurred()) SWIG_fail;
4414 }
4415 Py_INCREF(Py_None); resultobj = Py_None;
4416 {
4417 if (temp2)
4418 delete arg2;
4419 }
4420 return resultobj;
4421 fail:
4422 {
4423 if (temp2)
4424 delete arg2;
4425 }
4426 return NULL;
4427 }
4428
4429
4430 static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4431 PyObject *resultobj;
4432 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4433 wxSize *arg2 = 0 ;
4434 wxIcon *result;
4435 wxSize temp2 ;
4436 PyObject * obj0 = 0 ;
4437 PyObject * obj1 = 0 ;
4438 char *kwnames[] = {
4439 (char *) "self",(char *) "size", NULL
4440 };
4441
4442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4445 {
4446 arg2 = &temp2;
4447 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4448 }
4449 {
4450 PyThreadState* __tstate = wxPyBeginAllowThreads();
4451 {
4452 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4453 result = (wxIcon *) &_result_ref;
4454 }
4455
4456 wxPyEndAllowThreads(__tstate);
4457 if (PyErr_Occurred()) SWIG_fail;
4458 }
4459 {
4460 wxIcon* resultptr = new wxIcon(*result);
4461 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4462 }
4463 return resultobj;
4464 fail:
4465 return NULL;
4466 }
4467
4468
4469 static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) {
4470 PyObject *obj;
4471 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4472 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4473 Py_INCREF(obj);
4474 return Py_BuildValue((char *)"");
4475 }
4476 static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
4477 PyObject *resultobj;
4478 wxString *arg1 = (wxString *) 0 ;
4479 long arg2 ;
4480 int arg3 = (int) 0 ;
4481 int arg4 = (int) 0 ;
4482 wxCursor *result;
4483 bool temp1 = False ;
4484 PyObject * obj0 = 0 ;
4485 PyObject * obj1 = 0 ;
4486 PyObject * obj2 = 0 ;
4487 PyObject * obj3 = 0 ;
4488 char *kwnames[] = {
4489 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4490 };
4491
4492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4493 {
4494 arg1 = wxString_in_helper(obj0);
4495 if (arg1 == NULL) SWIG_fail;
4496 temp1 = True;
4497 }
4498 arg2 = (long) SWIG_AsLong(obj1);
4499 if (PyErr_Occurred()) SWIG_fail;
4500 if (obj2) {
4501 arg3 = (int) SWIG_AsInt(obj2);
4502 if (PyErr_Occurred()) SWIG_fail;
4503 }
4504 if (obj3) {
4505 arg4 = (int) SWIG_AsInt(obj3);
4506 if (PyErr_Occurred()) SWIG_fail;
4507 }
4508 {
4509 PyThreadState* __tstate = wxPyBeginAllowThreads();
4510 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4511
4512 wxPyEndAllowThreads(__tstate);
4513 if (PyErr_Occurred()) SWIG_fail;
4514 }
4515 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4516 {
4517 if (temp1)
4518 delete arg1;
4519 }
4520 return resultobj;
4521 fail:
4522 {
4523 if (temp1)
4524 delete arg1;
4525 }
4526 return NULL;
4527 }
4528
4529
4530 static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
4531 PyObject *resultobj;
4532 wxCursor *arg1 = (wxCursor *) 0 ;
4533 PyObject * obj0 = 0 ;
4534 char *kwnames[] = {
4535 (char *) "self", NULL
4536 };
4537
4538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4541 {
4542 PyThreadState* __tstate = wxPyBeginAllowThreads();
4543 delete arg1;
4544
4545 wxPyEndAllowThreads(__tstate);
4546 if (PyErr_Occurred()) SWIG_fail;
4547 }
4548 Py_INCREF(Py_None); resultobj = Py_None;
4549 return resultobj;
4550 fail:
4551 return NULL;
4552 }
4553
4554
4555 static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) {
4556 PyObject *resultobj;
4557 int arg1 ;
4558 wxCursor *result;
4559 PyObject * obj0 = 0 ;
4560 char *kwnames[] = {
4561 (char *) "id", NULL
4562 };
4563
4564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4565 arg1 = (int) SWIG_AsInt(obj0);
4566 if (PyErr_Occurred()) SWIG_fail;
4567 {
4568 PyThreadState* __tstate = wxPyBeginAllowThreads();
4569 result = (wxCursor *)new wxCursor(arg1);
4570
4571 wxPyEndAllowThreads(__tstate);
4572 if (PyErr_Occurred()) SWIG_fail;
4573 }
4574 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4575 return resultobj;
4576 fail:
4577 return NULL;
4578 }
4579
4580
4581 static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
4582 PyObject *resultobj;
4583 wxImage *arg1 = 0 ;
4584 wxCursor *result;
4585 PyObject * obj0 = 0 ;
4586 char *kwnames[] = {
4587 (char *) "image", NULL
4588 };
4589
4590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4592 SWIG_POINTER_EXCEPTION | 0)) == -1)
4593 SWIG_fail;
4594 if (arg1 == NULL) {
4595 PyErr_SetString(PyExc_TypeError,"null reference");
4596 SWIG_fail;
4597 }
4598 {
4599 PyThreadState* __tstate = wxPyBeginAllowThreads();
4600 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4601
4602 wxPyEndAllowThreads(__tstate);
4603 if (PyErr_Occurred()) SWIG_fail;
4604 }
4605 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4606 return resultobj;
4607 fail:
4608 return NULL;
4609 }
4610
4611
4612 static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
4613 PyObject *resultobj;
4614 wxCursor *arg1 = (wxCursor *) 0 ;
4615 bool result;
4616 PyObject * obj0 = 0 ;
4617 char *kwnames[] = {
4618 (char *) "self", NULL
4619 };
4620
4621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4624 {
4625 PyThreadState* __tstate = wxPyBeginAllowThreads();
4626 result = (bool)(arg1)->Ok();
4627
4628 wxPyEndAllowThreads(__tstate);
4629 if (PyErr_Occurred()) SWIG_fail;
4630 }
4631 {
4632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4633 }
4634 return resultobj;
4635 fail:
4636 return NULL;
4637 }
4638
4639
4640 static PyObject * Cursor_swigregister(PyObject *, PyObject *args) {
4641 PyObject *obj;
4642 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4643 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4644 Py_INCREF(obj);
4645 return Py_BuildValue((char *)"");
4646 }
4647 static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) {
4648 PyObject *resultobj;
4649 int arg1 = (int) 0 ;
4650 int arg2 = (int) 0 ;
4651 int arg3 = (int) 0 ;
4652 int arg4 = (int) 0 ;
4653 wxRegion *result;
4654 PyObject * obj0 = 0 ;
4655 PyObject * obj1 = 0 ;
4656 PyObject * obj2 = 0 ;
4657 PyObject * obj3 = 0 ;
4658 char *kwnames[] = {
4659 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4660 };
4661
4662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4663 if (obj0) {
4664 arg1 = (int) SWIG_AsInt(obj0);
4665 if (PyErr_Occurred()) SWIG_fail;
4666 }
4667 if (obj1) {
4668 arg2 = (int) SWIG_AsInt(obj1);
4669 if (PyErr_Occurred()) SWIG_fail;
4670 }
4671 if (obj2) {
4672 arg3 = (int) SWIG_AsInt(obj2);
4673 if (PyErr_Occurred()) SWIG_fail;
4674 }
4675 if (obj3) {
4676 arg4 = (int) SWIG_AsInt(obj3);
4677 if (PyErr_Occurred()) SWIG_fail;
4678 }
4679 {
4680 PyThreadState* __tstate = wxPyBeginAllowThreads();
4681 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4682
4683 wxPyEndAllowThreads(__tstate);
4684 if (PyErr_Occurred()) SWIG_fail;
4685 }
4686 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4687 return resultobj;
4688 fail:
4689 return NULL;
4690 }
4691
4692
4693 static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4694 PyObject *resultobj;
4695 wxBitmap *arg1 = 0 ;
4696 wxColour const &arg2_defvalue = wxNullColour ;
4697 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4698 int arg3 = (int) 0 ;
4699 wxRegion *result;
4700 wxColour temp2 ;
4701 PyObject * obj0 = 0 ;
4702 PyObject * obj1 = 0 ;
4703 PyObject * obj2 = 0 ;
4704 char *kwnames[] = {
4705 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4706 };
4707
4708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4710 SWIG_POINTER_EXCEPTION | 0)) == -1)
4711 SWIG_fail;
4712 if (arg1 == NULL) {
4713 PyErr_SetString(PyExc_TypeError,"null reference");
4714 SWIG_fail;
4715 }
4716 if (obj1) {
4717 {
4718 arg2 = &temp2;
4719 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4720 }
4721 }
4722 if (obj2) {
4723 arg3 = (int) SWIG_AsInt(obj2);
4724 if (PyErr_Occurred()) SWIG_fail;
4725 }
4726 {
4727 PyThreadState* __tstate = wxPyBeginAllowThreads();
4728 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4729
4730 wxPyEndAllowThreads(__tstate);
4731 if (PyErr_Occurred()) SWIG_fail;
4732 }
4733 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4734 return resultobj;
4735 fail:
4736 return NULL;
4737 }
4738
4739
4740 static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) {
4741 PyObject *resultobj;
4742 int arg1 ;
4743 wxPoint *arg2 = (wxPoint *) 0 ;
4744 int arg3 = (int) wxWINDING_RULE ;
4745 wxRegion *result;
4746 PyObject * obj0 = 0 ;
4747 PyObject * obj1 = 0 ;
4748 char *kwnames[] = {
4749 (char *) "points",(char *) "fillStyle", NULL
4750 };
4751
4752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4753 {
4754 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4755 if (arg2 == NULL) SWIG_fail;
4756 }
4757 if (obj1) {
4758 arg3 = (int) SWIG_AsInt(obj1);
4759 if (PyErr_Occurred()) SWIG_fail;
4760 }
4761 {
4762 PyThreadState* __tstate = wxPyBeginAllowThreads();
4763 result = (wxRegion *)new_wxRegion(arg1,arg2,arg3);
4764
4765 wxPyEndAllowThreads(__tstate);
4766 if (PyErr_Occurred()) SWIG_fail;
4767 }
4768 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4769 {
4770 if (arg2) delete [] arg2;
4771 }
4772 return resultobj;
4773 fail:
4774 {
4775 if (arg2) delete [] arg2;
4776 }
4777 return NULL;
4778 }
4779
4780
4781 static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) {
4782 PyObject *resultobj;
4783 wxRegion *arg1 = (wxRegion *) 0 ;
4784 PyObject * obj0 = 0 ;
4785 char *kwnames[] = {
4786 (char *) "self", NULL
4787 };
4788
4789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4792 {
4793 PyThreadState* __tstate = wxPyBeginAllowThreads();
4794 delete arg1;
4795
4796 wxPyEndAllowThreads(__tstate);
4797 if (PyErr_Occurred()) SWIG_fail;
4798 }
4799 Py_INCREF(Py_None); resultobj = Py_None;
4800 return resultobj;
4801 fail:
4802 return NULL;
4803 }
4804
4805
4806 static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
4807 PyObject *resultobj;
4808 wxRegion *arg1 = (wxRegion *) 0 ;
4809 PyObject * obj0 = 0 ;
4810 char *kwnames[] = {
4811 (char *) "self", NULL
4812 };
4813
4814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4817 {
4818 PyThreadState* __tstate = wxPyBeginAllowThreads();
4819 (arg1)->Clear();
4820
4821 wxPyEndAllowThreads(__tstate);
4822 if (PyErr_Occurred()) SWIG_fail;
4823 }
4824 Py_INCREF(Py_None); resultobj = Py_None;
4825 return resultobj;
4826 fail:
4827 return NULL;
4828 }
4829
4830
4831 static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) {
4832 PyObject *resultobj;
4833 wxRegion *arg1 = (wxRegion *) 0 ;
4834 int arg2 ;
4835 int arg3 ;
4836 int result;
4837 PyObject * obj0 = 0 ;
4838 PyObject * obj1 = 0 ;
4839 PyObject * obj2 = 0 ;
4840 char *kwnames[] = {
4841 (char *) "self",(char *) "x",(char *) "y", NULL
4842 };
4843
4844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
4845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4847 arg2 = (int) SWIG_AsInt(obj1);
4848 if (PyErr_Occurred()) SWIG_fail;
4849 arg3 = (int) SWIG_AsInt(obj2);
4850 if (PyErr_Occurred()) SWIG_fail;
4851 {
4852 PyThreadState* __tstate = wxPyBeginAllowThreads();
4853 result = (int)(arg1)->Contains(arg2,arg3);
4854
4855 wxPyEndAllowThreads(__tstate);
4856 if (PyErr_Occurred()) SWIG_fail;
4857 }
4858 resultobj = SWIG_FromInt((int)result);
4859 return resultobj;
4860 fail:
4861 return NULL;
4862 }
4863
4864
4865 static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) {
4866 PyObject *resultobj;
4867 wxRegion *arg1 = (wxRegion *) 0 ;
4868 wxPoint *arg2 = 0 ;
4869 int result;
4870 wxPoint temp2 ;
4871 PyObject * obj0 = 0 ;
4872 PyObject * obj1 = 0 ;
4873 char *kwnames[] = {
4874 (char *) "self",(char *) "pt", NULL
4875 };
4876
4877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4880 {
4881 arg2 = &temp2;
4882 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4883 }
4884 {
4885 PyThreadState* __tstate = wxPyBeginAllowThreads();
4886 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4887
4888 wxPyEndAllowThreads(__tstate);
4889 if (PyErr_Occurred()) SWIG_fail;
4890 }
4891 resultobj = SWIG_FromInt((int)result);
4892 return resultobj;
4893 fail:
4894 return NULL;
4895 }
4896
4897
4898 static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) {
4899 PyObject *resultobj;
4900 wxRegion *arg1 = (wxRegion *) 0 ;
4901 wxRect *arg2 = 0 ;
4902 int result;
4903 wxRect temp2 ;
4904 PyObject * obj0 = 0 ;
4905 PyObject * obj1 = 0 ;
4906 char *kwnames[] = {
4907 (char *) "self",(char *) "rect", NULL
4908 };
4909
4910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4913 {
4914 arg2 = &temp2;
4915 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4916 }
4917 {
4918 PyThreadState* __tstate = wxPyBeginAllowThreads();
4919 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4920
4921 wxPyEndAllowThreads(__tstate);
4922 if (PyErr_Occurred()) SWIG_fail;
4923 }
4924 resultobj = SWIG_FromInt((int)result);
4925 return resultobj;
4926 fail:
4927 return NULL;
4928 }
4929
4930
4931 static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) {
4932 PyObject *resultobj;
4933 wxRegion *arg1 = (wxRegion *) 0 ;
4934 int arg2 ;
4935 int arg3 ;
4936 int arg4 ;
4937 int arg5 ;
4938 int result;
4939 PyObject * obj0 = 0 ;
4940 PyObject * obj1 = 0 ;
4941 PyObject * obj2 = 0 ;
4942 PyObject * obj3 = 0 ;
4943 PyObject * obj4 = 0 ;
4944 char *kwnames[] = {
4945 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4946 };
4947
4948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4951 arg2 = (int) SWIG_AsInt(obj1);
4952 if (PyErr_Occurred()) SWIG_fail;
4953 arg3 = (int) SWIG_AsInt(obj2);
4954 if (PyErr_Occurred()) SWIG_fail;
4955 arg4 = (int) SWIG_AsInt(obj3);
4956 if (PyErr_Occurred()) SWIG_fail;
4957 arg5 = (int) SWIG_AsInt(obj4);
4958 if (PyErr_Occurred()) SWIG_fail;
4959 {
4960 PyThreadState* __tstate = wxPyBeginAllowThreads();
4961 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4962
4963 wxPyEndAllowThreads(__tstate);
4964 if (PyErr_Occurred()) SWIG_fail;
4965 }
4966 resultobj = SWIG_FromInt((int)result);
4967 return resultobj;
4968 fail:
4969 return NULL;
4970 }
4971
4972
4973 static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) {
4974 PyObject *resultobj;
4975 wxRegion *arg1 = (wxRegion *) 0 ;
4976 wxRect result;
4977 PyObject * obj0 = 0 ;
4978 char *kwnames[] = {
4979 (char *) "self", NULL
4980 };
4981
4982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4985 {
4986 PyThreadState* __tstate = wxPyBeginAllowThreads();
4987 result = (arg1)->GetBox();
4988
4989 wxPyEndAllowThreads(__tstate);
4990 if (PyErr_Occurred()) SWIG_fail;
4991 }
4992 {
4993 wxRect * resultptr;
4994 resultptr = new wxRect((wxRect &) result);
4995 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4996 }
4997 return resultobj;
4998 fail:
4999 return NULL;
5000 }
5001
5002
5003 static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) {
5004 PyObject *resultobj;
5005 wxRegion *arg1 = (wxRegion *) 0 ;
5006 int arg2 ;
5007 int arg3 ;
5008 int arg4 ;
5009 int arg5 ;
5010 bool result;
5011 PyObject * obj0 = 0 ;
5012 PyObject * obj1 = 0 ;
5013 PyObject * obj2 = 0 ;
5014 PyObject * obj3 = 0 ;
5015 PyObject * obj4 = 0 ;
5016 char *kwnames[] = {
5017 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5018 };
5019
5020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5023 arg2 = (int) SWIG_AsInt(obj1);
5024 if (PyErr_Occurred()) SWIG_fail;
5025 arg3 = (int) SWIG_AsInt(obj2);
5026 if (PyErr_Occurred()) SWIG_fail;
5027 arg4 = (int) SWIG_AsInt(obj3);
5028 if (PyErr_Occurred()) SWIG_fail;
5029 arg5 = (int) SWIG_AsInt(obj4);
5030 if (PyErr_Occurred()) SWIG_fail;
5031 {
5032 PyThreadState* __tstate = wxPyBeginAllowThreads();
5033 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5034
5035 wxPyEndAllowThreads(__tstate);
5036 if (PyErr_Occurred()) SWIG_fail;
5037 }
5038 {
5039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5040 }
5041 return resultobj;
5042 fail:
5043 return NULL;
5044 }
5045
5046
5047 static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) {
5048 PyObject *resultobj;
5049 wxRegion *arg1 = (wxRegion *) 0 ;
5050 wxRect *arg2 = 0 ;
5051 bool result;
5052 wxRect temp2 ;
5053 PyObject * obj0 = 0 ;
5054 PyObject * obj1 = 0 ;
5055 char *kwnames[] = {
5056 (char *) "self",(char *) "rect", NULL
5057 };
5058
5059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5062 {
5063 arg2 = &temp2;
5064 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5065 }
5066 {
5067 PyThreadState* __tstate = wxPyBeginAllowThreads();
5068 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5069
5070 wxPyEndAllowThreads(__tstate);
5071 if (PyErr_Occurred()) SWIG_fail;
5072 }
5073 {
5074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5075 }
5076 return resultobj;
5077 fail:
5078 return NULL;
5079 }
5080
5081
5082 static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5083 PyObject *resultobj;
5084 wxRegion *arg1 = (wxRegion *) 0 ;
5085 wxRegion *arg2 = 0 ;
5086 bool result;
5087 PyObject * obj0 = 0 ;
5088 PyObject * obj1 = 0 ;
5089 char *kwnames[] = {
5090 (char *) "self",(char *) "region", NULL
5091 };
5092
5093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5096 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5097 SWIG_POINTER_EXCEPTION | 0)) == -1)
5098 SWIG_fail;
5099 if (arg2 == NULL) {
5100 PyErr_SetString(PyExc_TypeError,"null reference");
5101 SWIG_fail;
5102 }
5103 {
5104 PyThreadState* __tstate = wxPyBeginAllowThreads();
5105 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5106
5107 wxPyEndAllowThreads(__tstate);
5108 if (PyErr_Occurred()) SWIG_fail;
5109 }
5110 {
5111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5112 }
5113 return resultobj;
5114 fail:
5115 return NULL;
5116 }
5117
5118
5119 static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) {
5120 PyObject *resultobj;
5121 wxRegion *arg1 = (wxRegion *) 0 ;
5122 bool result;
5123 PyObject * obj0 = 0 ;
5124 char *kwnames[] = {
5125 (char *) "self", NULL
5126 };
5127
5128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5131 {
5132 PyThreadState* __tstate = wxPyBeginAllowThreads();
5133 result = (bool)(arg1)->IsEmpty();
5134
5135 wxPyEndAllowThreads(__tstate);
5136 if (PyErr_Occurred()) SWIG_fail;
5137 }
5138 {
5139 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5140 }
5141 return resultobj;
5142 fail:
5143 return NULL;
5144 }
5145
5146
5147 static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) {
5148 PyObject *resultobj;
5149 wxRegion *arg1 = (wxRegion *) 0 ;
5150 int arg2 ;
5151 int arg3 ;
5152 int arg4 ;
5153 int arg5 ;
5154 bool result;
5155 PyObject * obj0 = 0 ;
5156 PyObject * obj1 = 0 ;
5157 PyObject * obj2 = 0 ;
5158 PyObject * obj3 = 0 ;
5159 PyObject * obj4 = 0 ;
5160 char *kwnames[] = {
5161 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5162 };
5163
5164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5167 arg2 = (int) SWIG_AsInt(obj1);
5168 if (PyErr_Occurred()) SWIG_fail;
5169 arg3 = (int) SWIG_AsInt(obj2);
5170 if (PyErr_Occurred()) SWIG_fail;
5171 arg4 = (int) SWIG_AsInt(obj3);
5172 if (PyErr_Occurred()) SWIG_fail;
5173 arg5 = (int) SWIG_AsInt(obj4);
5174 if (PyErr_Occurred()) SWIG_fail;
5175 {
5176 PyThreadState* __tstate = wxPyBeginAllowThreads();
5177 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5178
5179 wxPyEndAllowThreads(__tstate);
5180 if (PyErr_Occurred()) SWIG_fail;
5181 }
5182 {
5183 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5184 }
5185 return resultobj;
5186 fail:
5187 return NULL;
5188 }
5189
5190
5191 static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) {
5192 PyObject *resultobj;
5193 wxRegion *arg1 = (wxRegion *) 0 ;
5194 wxRect *arg2 = 0 ;
5195 bool result;
5196 wxRect temp2 ;
5197 PyObject * obj0 = 0 ;
5198 PyObject * obj1 = 0 ;
5199 char *kwnames[] = {
5200 (char *) "self",(char *) "rect", NULL
5201 };
5202
5203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5206 {
5207 arg2 = &temp2;
5208 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5209 }
5210 {
5211 PyThreadState* __tstate = wxPyBeginAllowThreads();
5212 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5213
5214 wxPyEndAllowThreads(__tstate);
5215 if (PyErr_Occurred()) SWIG_fail;
5216 }
5217 {
5218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5219 }
5220 return resultobj;
5221 fail:
5222 return NULL;
5223 }
5224
5225
5226 static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5227 PyObject *resultobj;
5228 wxRegion *arg1 = (wxRegion *) 0 ;
5229 wxRegion *arg2 = 0 ;
5230 bool result;
5231 PyObject * obj0 = 0 ;
5232 PyObject * obj1 = 0 ;
5233 char *kwnames[] = {
5234 (char *) "self",(char *) "region", NULL
5235 };
5236
5237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5240 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5241 SWIG_POINTER_EXCEPTION | 0)) == -1)
5242 SWIG_fail;
5243 if (arg2 == NULL) {
5244 PyErr_SetString(PyExc_TypeError,"null reference");
5245 SWIG_fail;
5246 }
5247 {
5248 PyThreadState* __tstate = wxPyBeginAllowThreads();
5249 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5250
5251 wxPyEndAllowThreads(__tstate);
5252 if (PyErr_Occurred()) SWIG_fail;
5253 }
5254 {
5255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5256 }
5257 return resultobj;
5258 fail:
5259 return NULL;
5260 }
5261
5262
5263 static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
5264 PyObject *resultobj;
5265 wxRegion *arg1 = (wxRegion *) 0 ;
5266 int arg2 ;
5267 int arg3 ;
5268 int arg4 ;
5269 int arg5 ;
5270 bool result;
5271 PyObject * obj0 = 0 ;
5272 PyObject * obj1 = 0 ;
5273 PyObject * obj2 = 0 ;
5274 PyObject * obj3 = 0 ;
5275 PyObject * obj4 = 0 ;
5276 char *kwnames[] = {
5277 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5278 };
5279
5280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5283 arg2 = (int) SWIG_AsInt(obj1);
5284 if (PyErr_Occurred()) SWIG_fail;
5285 arg3 = (int) SWIG_AsInt(obj2);
5286 if (PyErr_Occurred()) SWIG_fail;
5287 arg4 = (int) SWIG_AsInt(obj3);
5288 if (PyErr_Occurred()) SWIG_fail;
5289 arg5 = (int) SWIG_AsInt(obj4);
5290 if (PyErr_Occurred()) SWIG_fail;
5291 {
5292 PyThreadState* __tstate = wxPyBeginAllowThreads();
5293 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5294
5295 wxPyEndAllowThreads(__tstate);
5296 if (PyErr_Occurred()) SWIG_fail;
5297 }
5298 {
5299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5300 }
5301 return resultobj;
5302 fail:
5303 return NULL;
5304 }
5305
5306
5307 static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) {
5308 PyObject *resultobj;
5309 wxRegion *arg1 = (wxRegion *) 0 ;
5310 wxRect *arg2 = 0 ;
5311 bool result;
5312 wxRect temp2 ;
5313 PyObject * obj0 = 0 ;
5314 PyObject * obj1 = 0 ;
5315 char *kwnames[] = {
5316 (char *) "self",(char *) "rect", NULL
5317 };
5318
5319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5322 {
5323 arg2 = &temp2;
5324 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5325 }
5326 {
5327 PyThreadState* __tstate = wxPyBeginAllowThreads();
5328 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5329
5330 wxPyEndAllowThreads(__tstate);
5331 if (PyErr_Occurred()) SWIG_fail;
5332 }
5333 {
5334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5335 }
5336 return resultobj;
5337 fail:
5338 return NULL;
5339 }
5340
5341
5342 static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5343 PyObject *resultobj;
5344 wxRegion *arg1 = (wxRegion *) 0 ;
5345 wxRegion *arg2 = 0 ;
5346 bool result;
5347 PyObject * obj0 = 0 ;
5348 PyObject * obj1 = 0 ;
5349 char *kwnames[] = {
5350 (char *) "self",(char *) "region", NULL
5351 };
5352
5353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5356 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5357 SWIG_POINTER_EXCEPTION | 0)) == -1)
5358 SWIG_fail;
5359 if (arg2 == NULL) {
5360 PyErr_SetString(PyExc_TypeError,"null reference");
5361 SWIG_fail;
5362 }
5363 {
5364 PyThreadState* __tstate = wxPyBeginAllowThreads();
5365 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5366
5367 wxPyEndAllowThreads(__tstate);
5368 if (PyErr_Occurred()) SWIG_fail;
5369 }
5370 {
5371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5372 }
5373 return resultobj;
5374 fail:
5375 return NULL;
5376 }
5377
5378
5379 static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) {
5380 PyObject *resultobj;
5381 wxRegion *arg1 = (wxRegion *) 0 ;
5382 int arg2 ;
5383 int arg3 ;
5384 int arg4 ;
5385 int arg5 ;
5386 bool result;
5387 PyObject * obj0 = 0 ;
5388 PyObject * obj1 = 0 ;
5389 PyObject * obj2 = 0 ;
5390 PyObject * obj3 = 0 ;
5391 PyObject * obj4 = 0 ;
5392 char *kwnames[] = {
5393 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5394 };
5395
5396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5399 arg2 = (int) SWIG_AsInt(obj1);
5400 if (PyErr_Occurred()) SWIG_fail;
5401 arg3 = (int) SWIG_AsInt(obj2);
5402 if (PyErr_Occurred()) SWIG_fail;
5403 arg4 = (int) SWIG_AsInt(obj3);
5404 if (PyErr_Occurred()) SWIG_fail;
5405 arg5 = (int) SWIG_AsInt(obj4);
5406 if (PyErr_Occurred()) SWIG_fail;
5407 {
5408 PyThreadState* __tstate = wxPyBeginAllowThreads();
5409 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5410
5411 wxPyEndAllowThreads(__tstate);
5412 if (PyErr_Occurred()) SWIG_fail;
5413 }
5414 {
5415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5416 }
5417 return resultobj;
5418 fail:
5419 return NULL;
5420 }
5421
5422
5423 static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) {
5424 PyObject *resultobj;
5425 wxRegion *arg1 = (wxRegion *) 0 ;
5426 wxRect *arg2 = 0 ;
5427 bool result;
5428 wxRect temp2 ;
5429 PyObject * obj0 = 0 ;
5430 PyObject * obj1 = 0 ;
5431 char *kwnames[] = {
5432 (char *) "self",(char *) "rect", NULL
5433 };
5434
5435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5438 {
5439 arg2 = &temp2;
5440 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5441 }
5442 {
5443 PyThreadState* __tstate = wxPyBeginAllowThreads();
5444 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5445
5446 wxPyEndAllowThreads(__tstate);
5447 if (PyErr_Occurred()) SWIG_fail;
5448 }
5449 {
5450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5451 }
5452 return resultobj;
5453 fail:
5454 return NULL;
5455 }
5456
5457
5458 static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) {
5459 PyObject *resultobj;
5460 wxRegion *arg1 = (wxRegion *) 0 ;
5461 wxRegion *arg2 = 0 ;
5462 bool result;
5463 PyObject * obj0 = 0 ;
5464 PyObject * obj1 = 0 ;
5465 char *kwnames[] = {
5466 (char *) "self",(char *) "region", NULL
5467 };
5468
5469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5472 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5473 SWIG_POINTER_EXCEPTION | 0)) == -1)
5474 SWIG_fail;
5475 if (arg2 == NULL) {
5476 PyErr_SetString(PyExc_TypeError,"null reference");
5477 SWIG_fail;
5478 }
5479 {
5480 PyThreadState* __tstate = wxPyBeginAllowThreads();
5481 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5482
5483 wxPyEndAllowThreads(__tstate);
5484 if (PyErr_Occurred()) SWIG_fail;
5485 }
5486 {
5487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5488 }
5489 return resultobj;
5490 fail:
5491 return NULL;
5492 }
5493
5494
5495 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5496 PyObject *resultobj;
5497 wxRegion *arg1 = (wxRegion *) 0 ;
5498 SwigValueWrapper< wxBitmap > result;
5499 PyObject * obj0 = 0 ;
5500 char *kwnames[] = {
5501 (char *) "self", NULL
5502 };
5503
5504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5507 {
5508 PyThreadState* __tstate = wxPyBeginAllowThreads();
5509 result = (arg1)->ConvertToBitmap();
5510
5511 wxPyEndAllowThreads(__tstate);
5512 if (PyErr_Occurred()) SWIG_fail;
5513 }
5514 {
5515 wxBitmap * resultptr;
5516 resultptr = new wxBitmap((wxBitmap &) result);
5517 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5518 }
5519 return resultobj;
5520 fail:
5521 return NULL;
5522 }
5523
5524
5525 static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5526 PyObject *resultobj;
5527 wxRegion *arg1 = (wxRegion *) 0 ;
5528 wxBitmap *arg2 = 0 ;
5529 wxColour const &arg3_defvalue = wxNullColour ;
5530 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
5531 int arg4 = (int) 0 ;
5532 bool result;
5533 wxColour temp3 ;
5534 PyObject * obj0 = 0 ;
5535 PyObject * obj1 = 0 ;
5536 PyObject * obj2 = 0 ;
5537 PyObject * obj3 = 0 ;
5538 char *kwnames[] = {
5539 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5540 };
5541
5542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5545 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5546 SWIG_POINTER_EXCEPTION | 0)) == -1)
5547 SWIG_fail;
5548 if (arg2 == NULL) {
5549 PyErr_SetString(PyExc_TypeError,"null reference");
5550 SWIG_fail;
5551 }
5552 if (obj2) {
5553 {
5554 arg3 = &temp3;
5555 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5556 }
5557 }
5558 if (obj3) {
5559 arg4 = (int) SWIG_AsInt(obj3);
5560 if (PyErr_Occurred()) SWIG_fail;
5561 }
5562 {
5563 PyThreadState* __tstate = wxPyBeginAllowThreads();
5564 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5565
5566 wxPyEndAllowThreads(__tstate);
5567 if (PyErr_Occurred()) SWIG_fail;
5568 }
5569 {
5570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5571 }
5572 return resultobj;
5573 fail:
5574 return NULL;
5575 }
5576
5577
5578 static PyObject * Region_swigregister(PyObject *, PyObject *args) {
5579 PyObject *obj;
5580 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5581 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5582 Py_INCREF(obj);
5583 return Py_BuildValue((char *)"");
5584 }
5585 static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
5586 PyObject *resultobj;
5587 wxRegion *arg1 = 0 ;
5588 wxRegionIterator *result;
5589 PyObject * obj0 = 0 ;
5590 char *kwnames[] = {
5591 (char *) "region", NULL
5592 };
5593
5594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5596 SWIG_POINTER_EXCEPTION | 0)) == -1)
5597 SWIG_fail;
5598 if (arg1 == NULL) {
5599 PyErr_SetString(PyExc_TypeError,"null reference");
5600 SWIG_fail;
5601 }
5602 {
5603 PyThreadState* __tstate = wxPyBeginAllowThreads();
5604 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5605
5606 wxPyEndAllowThreads(__tstate);
5607 if (PyErr_Occurred()) SWIG_fail;
5608 }
5609 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
5610 return resultobj;
5611 fail:
5612 return NULL;
5613 }
5614
5615
5616 static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
5617 PyObject *resultobj;
5618 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5619 PyObject * obj0 = 0 ;
5620 char *kwnames[] = {
5621 (char *) "self", NULL
5622 };
5623
5624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5627 {
5628 PyThreadState* __tstate = wxPyBeginAllowThreads();
5629 delete arg1;
5630
5631 wxPyEndAllowThreads(__tstate);
5632 if (PyErr_Occurred()) SWIG_fail;
5633 }
5634 Py_INCREF(Py_None); resultobj = Py_None;
5635 return resultobj;
5636 fail:
5637 return NULL;
5638 }
5639
5640
5641 static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
5642 PyObject *resultobj;
5643 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5644 int result;
5645 PyObject * obj0 = 0 ;
5646 char *kwnames[] = {
5647 (char *) "self", NULL
5648 };
5649
5650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5653 {
5654 PyThreadState* __tstate = wxPyBeginAllowThreads();
5655 result = (int)(arg1)->GetX();
5656
5657 wxPyEndAllowThreads(__tstate);
5658 if (PyErr_Occurred()) SWIG_fail;
5659 }
5660 resultobj = SWIG_FromInt((int)result);
5661 return resultobj;
5662 fail:
5663 return NULL;
5664 }
5665
5666
5667 static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
5668 PyObject *resultobj;
5669 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5670 int result;
5671 PyObject * obj0 = 0 ;
5672 char *kwnames[] = {
5673 (char *) "self", NULL
5674 };
5675
5676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5679 {
5680 PyThreadState* __tstate = wxPyBeginAllowThreads();
5681 result = (int)(arg1)->GetY();
5682
5683 wxPyEndAllowThreads(__tstate);
5684 if (PyErr_Occurred()) SWIG_fail;
5685 }
5686 resultobj = SWIG_FromInt((int)result);
5687 return resultobj;
5688 fail:
5689 return NULL;
5690 }
5691
5692
5693 static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) {
5694 PyObject *resultobj;
5695 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5696 int result;
5697 PyObject * obj0 = 0 ;
5698 char *kwnames[] = {
5699 (char *) "self", NULL
5700 };
5701
5702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5705 {
5706 PyThreadState* __tstate = wxPyBeginAllowThreads();
5707 result = (int)(arg1)->GetW();
5708
5709 wxPyEndAllowThreads(__tstate);
5710 if (PyErr_Occurred()) SWIG_fail;
5711 }
5712 resultobj = SWIG_FromInt((int)result);
5713 return resultobj;
5714 fail:
5715 return NULL;
5716 }
5717
5718
5719 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
5720 PyObject *resultobj;
5721 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5722 int result;
5723 PyObject * obj0 = 0 ;
5724 char *kwnames[] = {
5725 (char *) "self", NULL
5726 };
5727
5728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5731 {
5732 PyThreadState* __tstate = wxPyBeginAllowThreads();
5733 result = (int)(arg1)->GetWidth();
5734
5735 wxPyEndAllowThreads(__tstate);
5736 if (PyErr_Occurred()) SWIG_fail;
5737 }
5738 resultobj = SWIG_FromInt((int)result);
5739 return resultobj;
5740 fail:
5741 return NULL;
5742 }
5743
5744
5745 static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) {
5746 PyObject *resultobj;
5747 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5748 int result;
5749 PyObject * obj0 = 0 ;
5750 char *kwnames[] = {
5751 (char *) "self", NULL
5752 };
5753
5754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5757 {
5758 PyThreadState* __tstate = wxPyBeginAllowThreads();
5759 result = (int)(arg1)->GetH();
5760
5761 wxPyEndAllowThreads(__tstate);
5762 if (PyErr_Occurred()) SWIG_fail;
5763 }
5764 resultobj = SWIG_FromInt((int)result);
5765 return resultobj;
5766 fail:
5767 return NULL;
5768 }
5769
5770
5771 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
5772 PyObject *resultobj;
5773 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5774 int result;
5775 PyObject * obj0 = 0 ;
5776 char *kwnames[] = {
5777 (char *) "self", NULL
5778 };
5779
5780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5783 {
5784 PyThreadState* __tstate = wxPyBeginAllowThreads();
5785 result = (int)(arg1)->GetHeight();
5786
5787 wxPyEndAllowThreads(__tstate);
5788 if (PyErr_Occurred()) SWIG_fail;
5789 }
5790 resultobj = SWIG_FromInt((int)result);
5791 return resultobj;
5792 fail:
5793 return NULL;
5794 }
5795
5796
5797 static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
5798 PyObject *resultobj;
5799 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5800 wxRect result;
5801 PyObject * obj0 = 0 ;
5802 char *kwnames[] = {
5803 (char *) "self", NULL
5804 };
5805
5806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5809 {
5810 PyThreadState* __tstate = wxPyBeginAllowThreads();
5811 result = (arg1)->GetRect();
5812
5813 wxPyEndAllowThreads(__tstate);
5814 if (PyErr_Occurred()) SWIG_fail;
5815 }
5816 {
5817 wxRect * resultptr;
5818 resultptr = new wxRect((wxRect &) result);
5819 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5820 }
5821 return resultobj;
5822 fail:
5823 return NULL;
5824 }
5825
5826
5827 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) {
5828 PyObject *resultobj;
5829 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5830 bool result;
5831 PyObject * obj0 = 0 ;
5832 char *kwnames[] = {
5833 (char *) "self", NULL
5834 };
5835
5836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
5837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5839 {
5840 PyThreadState* __tstate = wxPyBeginAllowThreads();
5841 result = (bool)(arg1)->HaveRects();
5842
5843 wxPyEndAllowThreads(__tstate);
5844 if (PyErr_Occurred()) SWIG_fail;
5845 }
5846 {
5847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5848 }
5849 return resultobj;
5850 fail:
5851 return NULL;
5852 }
5853
5854
5855 static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) {
5856 PyObject *resultobj;
5857 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5858 PyObject * obj0 = 0 ;
5859 char *kwnames[] = {
5860 (char *) "self", NULL
5861 };
5862
5863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
5864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5866 {
5867 PyThreadState* __tstate = wxPyBeginAllowThreads();
5868 (arg1)->Reset();
5869
5870 wxPyEndAllowThreads(__tstate);
5871 if (PyErr_Occurred()) SWIG_fail;
5872 }
5873 Py_INCREF(Py_None); resultobj = Py_None;
5874 return resultobj;
5875 fail:
5876 return NULL;
5877 }
5878
5879
5880 static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) {
5881 PyObject *resultobj;
5882 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5883 PyObject * obj0 = 0 ;
5884 char *kwnames[] = {
5885 (char *) "self", NULL
5886 };
5887
5888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
5889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5891 {
5892 PyThreadState* __tstate = wxPyBeginAllowThreads();
5893 wxRegionIterator_Next(arg1);
5894
5895 wxPyEndAllowThreads(__tstate);
5896 if (PyErr_Occurred()) SWIG_fail;
5897 }
5898 Py_INCREF(Py_None); resultobj = Py_None;
5899 return resultobj;
5900 fail:
5901 return NULL;
5902 }
5903
5904
5905 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
5906 PyObject *resultobj;
5907 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5908 bool result;
5909 PyObject * obj0 = 0 ;
5910 char *kwnames[] = {
5911 (char *) "self", NULL
5912 };
5913
5914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
5915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5917 {
5918 PyThreadState* __tstate = wxPyBeginAllowThreads();
5919 result = (bool)wxRegionIterator___nonzero__(arg1);
5920
5921 wxPyEndAllowThreads(__tstate);
5922 if (PyErr_Occurred()) SWIG_fail;
5923 }
5924 {
5925 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5926 }
5927 return resultobj;
5928 fail:
5929 return NULL;
5930 }
5931
5932
5933 static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) {
5934 PyObject *obj;
5935 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5936 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
5937 Py_INCREF(obj);
5938 return Py_BuildValue((char *)"");
5939 }
5940 static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
5941 PyObject *resultobj;
5942 wxNativeFontInfo *result;
5943 char *kwnames[] = {
5944 NULL
5945 };
5946
5947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
5948 {
5949 PyThreadState* __tstate = wxPyBeginAllowThreads();
5950 result = (wxNativeFontInfo *)new wxNativeFontInfo();
5951
5952 wxPyEndAllowThreads(__tstate);
5953 if (PyErr_Occurred()) SWIG_fail;
5954 }
5955 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
5956 return resultobj;
5957 fail:
5958 return NULL;
5959 }
5960
5961
5962 static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
5963 PyObject *resultobj;
5964 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5965 PyObject * obj0 = 0 ;
5966 char *kwnames[] = {
5967 (char *) "self", NULL
5968 };
5969
5970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
5971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5973 {
5974 PyThreadState* __tstate = wxPyBeginAllowThreads();
5975 delete arg1;
5976
5977 wxPyEndAllowThreads(__tstate);
5978 if (PyErr_Occurred()) SWIG_fail;
5979 }
5980 Py_INCREF(Py_None); resultobj = Py_None;
5981 return resultobj;
5982 fail:
5983 return NULL;
5984 }
5985
5986
5987 static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) {
5988 PyObject *resultobj;
5989 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5990 PyObject * obj0 = 0 ;
5991 char *kwnames[] = {
5992 (char *) "self", NULL
5993 };
5994
5995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
5996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5998 {
5999 PyThreadState* __tstate = wxPyBeginAllowThreads();
6000 (arg1)->Init();
6001
6002 wxPyEndAllowThreads(__tstate);
6003 if (PyErr_Occurred()) SWIG_fail;
6004 }
6005 Py_INCREF(Py_None); resultobj = Py_None;
6006 return resultobj;
6007 fail:
6008 return NULL;
6009 }
6010
6011
6012 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) {
6013 PyObject *resultobj;
6014 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6015 wxFont *arg2 = 0 ;
6016 PyObject * obj0 = 0 ;
6017 PyObject * obj1 = 0 ;
6018 char *kwnames[] = {
6019 (char *) "self",(char *) "font", NULL
6020 };
6021
6022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6025 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6026 SWIG_POINTER_EXCEPTION | 0)) == -1)
6027 SWIG_fail;
6028 if (arg2 == NULL) {
6029 PyErr_SetString(PyExc_TypeError,"null reference");
6030 SWIG_fail;
6031 }
6032 {
6033 PyThreadState* __tstate = wxPyBeginAllowThreads();
6034 (arg1)->InitFromFont((wxFont const &)*arg2);
6035
6036 wxPyEndAllowThreads(__tstate);
6037 if (PyErr_Occurred()) SWIG_fail;
6038 }
6039 Py_INCREF(Py_None); resultobj = Py_None;
6040 return resultobj;
6041 fail:
6042 return NULL;
6043 }
6044
6045
6046 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
6047 PyObject *resultobj;
6048 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6049 int result;
6050 PyObject * obj0 = 0 ;
6051 char *kwnames[] = {
6052 (char *) "self", NULL
6053 };
6054
6055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6058 {
6059 PyThreadState* __tstate = wxPyBeginAllowThreads();
6060 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6061
6062 wxPyEndAllowThreads(__tstate);
6063 if (PyErr_Occurred()) SWIG_fail;
6064 }
6065 resultobj = SWIG_FromInt((int)result);
6066 return resultobj;
6067 fail:
6068 return NULL;
6069 }
6070
6071
6072 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
6073 PyObject *resultobj;
6074 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6075 int result;
6076 PyObject * obj0 = 0 ;
6077 char *kwnames[] = {
6078 (char *) "self", NULL
6079 };
6080
6081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6084 {
6085 PyThreadState* __tstate = wxPyBeginAllowThreads();
6086 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6087
6088 wxPyEndAllowThreads(__tstate);
6089 if (PyErr_Occurred()) SWIG_fail;
6090 }
6091 resultobj = SWIG_FromInt((int)result);
6092 return resultobj;
6093 fail:
6094 return NULL;
6095 }
6096
6097
6098 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
6099 PyObject *resultobj;
6100 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6101 int result;
6102 PyObject * obj0 = 0 ;
6103 char *kwnames[] = {
6104 (char *) "self", NULL
6105 };
6106
6107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6110 {
6111 PyThreadState* __tstate = wxPyBeginAllowThreads();
6112 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6113
6114 wxPyEndAllowThreads(__tstate);
6115 if (PyErr_Occurred()) SWIG_fail;
6116 }
6117 resultobj = SWIG_FromInt((int)result);
6118 return resultobj;
6119 fail:
6120 return NULL;
6121 }
6122
6123
6124 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
6125 PyObject *resultobj;
6126 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6127 bool result;
6128 PyObject * obj0 = 0 ;
6129 char *kwnames[] = {
6130 (char *) "self", NULL
6131 };
6132
6133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6136 {
6137 PyThreadState* __tstate = wxPyBeginAllowThreads();
6138 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6139
6140 wxPyEndAllowThreads(__tstate);
6141 if (PyErr_Occurred()) SWIG_fail;
6142 }
6143 {
6144 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6145 }
6146 return resultobj;
6147 fail:
6148 return NULL;
6149 }
6150
6151
6152 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
6153 PyObject *resultobj;
6154 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6155 wxString result;
6156 PyObject * obj0 = 0 ;
6157 char *kwnames[] = {
6158 (char *) "self", NULL
6159 };
6160
6161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6164 {
6165 PyThreadState* __tstate = wxPyBeginAllowThreads();
6166 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6167
6168 wxPyEndAllowThreads(__tstate);
6169 if (PyErr_Occurred()) SWIG_fail;
6170 }
6171 {
6172 #if wxUSE_UNICODE
6173 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6174 #else
6175 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6176 #endif
6177 }
6178 return resultobj;
6179 fail:
6180 return NULL;
6181 }
6182
6183
6184 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
6185 PyObject *resultobj;
6186 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6187 int result;
6188 PyObject * obj0 = 0 ;
6189 char *kwnames[] = {
6190 (char *) "self", NULL
6191 };
6192
6193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6196 {
6197 PyThreadState* __tstate = wxPyBeginAllowThreads();
6198 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6199
6200 wxPyEndAllowThreads(__tstate);
6201 if (PyErr_Occurred()) SWIG_fail;
6202 }
6203 resultobj = SWIG_FromInt((int)result);
6204 return resultobj;
6205 fail:
6206 return NULL;
6207 }
6208
6209
6210 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
6211 PyObject *resultobj;
6212 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6213 int result;
6214 PyObject * obj0 = 0 ;
6215 char *kwnames[] = {
6216 (char *) "self", NULL
6217 };
6218
6219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6222 {
6223 PyThreadState* __tstate = wxPyBeginAllowThreads();
6224 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6225
6226 wxPyEndAllowThreads(__tstate);
6227 if (PyErr_Occurred()) SWIG_fail;
6228 }
6229 resultobj = SWIG_FromInt((int)result);
6230 return resultobj;
6231 fail:
6232 return NULL;
6233 }
6234
6235
6236 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
6237 PyObject *resultobj;
6238 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6239 int arg2 ;
6240 PyObject * obj0 = 0 ;
6241 PyObject * obj1 = 0 ;
6242 char *kwnames[] = {
6243 (char *) "self",(char *) "pointsize", NULL
6244 };
6245
6246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6249 arg2 = (int) SWIG_AsInt(obj1);
6250 if (PyErr_Occurred()) SWIG_fail;
6251 {
6252 PyThreadState* __tstate = wxPyBeginAllowThreads();
6253 (arg1)->SetPointSize(arg2);
6254
6255 wxPyEndAllowThreads(__tstate);
6256 if (PyErr_Occurred()) SWIG_fail;
6257 }
6258 Py_INCREF(Py_None); resultobj = Py_None;
6259 return resultobj;
6260 fail:
6261 return NULL;
6262 }
6263
6264
6265 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
6266 PyObject *resultobj;
6267 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6268 int arg2 ;
6269 PyObject * obj0 = 0 ;
6270 PyObject * obj1 = 0 ;
6271 char *kwnames[] = {
6272 (char *) "self",(char *) "style", NULL
6273 };
6274
6275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6278 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6279 if (PyErr_Occurred()) SWIG_fail;
6280 {
6281 PyThreadState* __tstate = wxPyBeginAllowThreads();
6282 (arg1)->SetStyle((wxFontStyle )arg2);
6283
6284 wxPyEndAllowThreads(__tstate);
6285 if (PyErr_Occurred()) SWIG_fail;
6286 }
6287 Py_INCREF(Py_None); resultobj = Py_None;
6288 return resultobj;
6289 fail:
6290 return NULL;
6291 }
6292
6293
6294 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
6295 PyObject *resultobj;
6296 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6297 int arg2 ;
6298 PyObject * obj0 = 0 ;
6299 PyObject * obj1 = 0 ;
6300 char *kwnames[] = {
6301 (char *) "self",(char *) "weight", NULL
6302 };
6303
6304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6307 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6308 if (PyErr_Occurred()) SWIG_fail;
6309 {
6310 PyThreadState* __tstate = wxPyBeginAllowThreads();
6311 (arg1)->SetWeight((wxFontWeight )arg2);
6312
6313 wxPyEndAllowThreads(__tstate);
6314 if (PyErr_Occurred()) SWIG_fail;
6315 }
6316 Py_INCREF(Py_None); resultobj = Py_None;
6317 return resultobj;
6318 fail:
6319 return NULL;
6320 }
6321
6322
6323 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
6324 PyObject *resultobj;
6325 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6326 bool arg2 ;
6327 PyObject * obj0 = 0 ;
6328 PyObject * obj1 = 0 ;
6329 char *kwnames[] = {
6330 (char *) "self",(char *) "underlined", NULL
6331 };
6332
6333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6336 arg2 = (bool) SWIG_AsBool(obj1);
6337 if (PyErr_Occurred()) SWIG_fail;
6338 {
6339 PyThreadState* __tstate = wxPyBeginAllowThreads();
6340 (arg1)->SetUnderlined(arg2);
6341
6342 wxPyEndAllowThreads(__tstate);
6343 if (PyErr_Occurred()) SWIG_fail;
6344 }
6345 Py_INCREF(Py_None); resultobj = Py_None;
6346 return resultobj;
6347 fail:
6348 return NULL;
6349 }
6350
6351
6352 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
6353 PyObject *resultobj;
6354 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6355 wxString arg2 ;
6356 PyObject * obj0 = 0 ;
6357 PyObject * obj1 = 0 ;
6358 char *kwnames[] = {
6359 (char *) "self",(char *) "facename", NULL
6360 };
6361
6362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6365 {
6366 wxString* sptr = wxString_in_helper(obj1);
6367 if (sptr == NULL) SWIG_fail;
6368 arg2 = *sptr;
6369 delete sptr;
6370 }
6371 {
6372 PyThreadState* __tstate = wxPyBeginAllowThreads();
6373 (arg1)->SetFaceName(arg2);
6374
6375 wxPyEndAllowThreads(__tstate);
6376 if (PyErr_Occurred()) SWIG_fail;
6377 }
6378 Py_INCREF(Py_None); resultobj = Py_None;
6379 return resultobj;
6380 fail:
6381 return NULL;
6382 }
6383
6384
6385 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
6386 PyObject *resultobj;
6387 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6388 int arg2 ;
6389 PyObject * obj0 = 0 ;
6390 PyObject * obj1 = 0 ;
6391 char *kwnames[] = {
6392 (char *) "self",(char *) "family", NULL
6393 };
6394
6395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6398 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
6399 if (PyErr_Occurred()) SWIG_fail;
6400 {
6401 PyThreadState* __tstate = wxPyBeginAllowThreads();
6402 (arg1)->SetFamily((wxFontFamily )arg2);
6403
6404 wxPyEndAllowThreads(__tstate);
6405 if (PyErr_Occurred()) SWIG_fail;
6406 }
6407 Py_INCREF(Py_None); resultobj = Py_None;
6408 return resultobj;
6409 fail:
6410 return NULL;
6411 }
6412
6413
6414 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
6415 PyObject *resultobj;
6416 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6417 int arg2 ;
6418 PyObject * obj0 = 0 ;
6419 PyObject * obj1 = 0 ;
6420 char *kwnames[] = {
6421 (char *) "self",(char *) "encoding", NULL
6422 };
6423
6424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6427 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6428 if (PyErr_Occurred()) SWIG_fail;
6429 {
6430 PyThreadState* __tstate = wxPyBeginAllowThreads();
6431 (arg1)->SetEncoding((wxFontEncoding )arg2);
6432
6433 wxPyEndAllowThreads(__tstate);
6434 if (PyErr_Occurred()) SWIG_fail;
6435 }
6436 Py_INCREF(Py_None); resultobj = Py_None;
6437 return resultobj;
6438 fail:
6439 return NULL;
6440 }
6441
6442
6443 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
6444 PyObject *resultobj;
6445 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6446 wxString *arg2 = 0 ;
6447 bool result;
6448 bool temp2 = False ;
6449 PyObject * obj0 = 0 ;
6450 PyObject * obj1 = 0 ;
6451 char *kwnames[] = {
6452 (char *) "self",(char *) "s", NULL
6453 };
6454
6455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6458 {
6459 arg2 = wxString_in_helper(obj1);
6460 if (arg2 == NULL) SWIG_fail;
6461 temp2 = True;
6462 }
6463 {
6464 PyThreadState* __tstate = wxPyBeginAllowThreads();
6465 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6466
6467 wxPyEndAllowThreads(__tstate);
6468 if (PyErr_Occurred()) SWIG_fail;
6469 }
6470 {
6471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6472 }
6473 {
6474 if (temp2)
6475 delete arg2;
6476 }
6477 return resultobj;
6478 fail:
6479 {
6480 if (temp2)
6481 delete arg2;
6482 }
6483 return NULL;
6484 }
6485
6486
6487 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
6488 PyObject *resultobj;
6489 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6490 wxString result;
6491 PyObject * obj0 = 0 ;
6492 char *kwnames[] = {
6493 (char *) "self", NULL
6494 };
6495
6496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6499 {
6500 PyThreadState* __tstate = wxPyBeginAllowThreads();
6501 result = ((wxNativeFontInfo const *)arg1)->ToString();
6502
6503 wxPyEndAllowThreads(__tstate);
6504 if (PyErr_Occurred()) SWIG_fail;
6505 }
6506 {
6507 #if wxUSE_UNICODE
6508 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6509 #else
6510 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6511 #endif
6512 }
6513 return resultobj;
6514 fail:
6515 return NULL;
6516 }
6517
6518
6519 static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) {
6520 PyObject *resultobj;
6521 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6522 wxString result;
6523 PyObject * obj0 = 0 ;
6524 char *kwnames[] = {
6525 (char *) "self", NULL
6526 };
6527
6528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6531 {
6532 PyThreadState* __tstate = wxPyBeginAllowThreads();
6533 result = wxNativeFontInfo___str__(arg1);
6534
6535 wxPyEndAllowThreads(__tstate);
6536 if (PyErr_Occurred()) SWIG_fail;
6537 }
6538 {
6539 #if wxUSE_UNICODE
6540 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6541 #else
6542 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6543 #endif
6544 }
6545 return resultobj;
6546 fail:
6547 return NULL;
6548 }
6549
6550
6551 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) {
6552 PyObject *resultobj;
6553 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6554 wxString *arg2 = 0 ;
6555 bool result;
6556 bool temp2 = False ;
6557 PyObject * obj0 = 0 ;
6558 PyObject * obj1 = 0 ;
6559 char *kwnames[] = {
6560 (char *) "self",(char *) "s", NULL
6561 };
6562
6563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6566 {
6567 arg2 = wxString_in_helper(obj1);
6568 if (arg2 == NULL) SWIG_fail;
6569 temp2 = True;
6570 }
6571 {
6572 PyThreadState* __tstate = wxPyBeginAllowThreads();
6573 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6574
6575 wxPyEndAllowThreads(__tstate);
6576 if (PyErr_Occurred()) SWIG_fail;
6577 }
6578 {
6579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6580 }
6581 {
6582 if (temp2)
6583 delete arg2;
6584 }
6585 return resultobj;
6586 fail:
6587 {
6588 if (temp2)
6589 delete arg2;
6590 }
6591 return NULL;
6592 }
6593
6594
6595 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) {
6596 PyObject *resultobj;
6597 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6598 wxString result;
6599 PyObject * obj0 = 0 ;
6600 char *kwnames[] = {
6601 (char *) "self", NULL
6602 };
6603
6604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6607 {
6608 PyThreadState* __tstate = wxPyBeginAllowThreads();
6609 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6610
6611 wxPyEndAllowThreads(__tstate);
6612 if (PyErr_Occurred()) SWIG_fail;
6613 }
6614 {
6615 #if wxUSE_UNICODE
6616 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6617 #else
6618 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6619 #endif
6620 }
6621 return resultobj;
6622 fail:
6623 return NULL;
6624 }
6625
6626
6627 static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) {
6628 PyObject *obj;
6629 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6630 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6631 Py_INCREF(obj);
6632 return Py_BuildValue((char *)"");
6633 }
6634 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) {
6635 PyObject *resultobj;
6636 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6637 wxString *arg2 = (wxString *) 0 ;
6638 bool temp2 = False ;
6639 PyObject * obj0 = 0 ;
6640 PyObject * obj1 = 0 ;
6641 char *kwnames[] = {
6642 (char *) "self",(char *) "facename", NULL
6643 };
6644
6645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6648 {
6649 arg2 = wxString_in_helper(obj1);
6650 if (arg2 == NULL) SWIG_fail;
6651 temp2 = True;
6652 }
6653 if (arg1) (arg1)->facename = *arg2;
6654
6655 Py_INCREF(Py_None); resultobj = Py_None;
6656 {
6657 if (temp2)
6658 delete arg2;
6659 }
6660 return resultobj;
6661 fail:
6662 {
6663 if (temp2)
6664 delete arg2;
6665 }
6666 return NULL;
6667 }
6668
6669
6670 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) {
6671 PyObject *resultobj;
6672 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6673 wxString *result;
6674 PyObject * obj0 = 0 ;
6675 char *kwnames[] = {
6676 (char *) "self", NULL
6677 };
6678
6679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6682 result = (wxString *)& ((arg1)->facename);
6683
6684 {
6685 #if wxUSE_UNICODE
6686 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6687 #else
6688 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6689 #endif
6690 }
6691 return resultobj;
6692 fail:
6693 return NULL;
6694 }
6695
6696
6697 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) {
6698 PyObject *resultobj;
6699 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6700 int arg2 ;
6701 PyObject * obj0 = 0 ;
6702 PyObject * obj1 = 0 ;
6703 char *kwnames[] = {
6704 (char *) "self",(char *) "encoding", NULL
6705 };
6706
6707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6710 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6711 if (PyErr_Occurred()) SWIG_fail;
6712 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6713
6714 Py_INCREF(Py_None); resultobj = Py_None;
6715 return resultobj;
6716 fail:
6717 return NULL;
6718 }
6719
6720
6721 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) {
6722 PyObject *resultobj;
6723 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6724 int result;
6725 PyObject * obj0 = 0 ;
6726 char *kwnames[] = {
6727 (char *) "self", NULL
6728 };
6729
6730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6733 result = (int) ((arg1)->encoding);
6734
6735 resultobj = SWIG_FromInt((int)result);
6736 return resultobj;
6737 fail:
6738 return NULL;
6739 }
6740
6741
6742 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6743 PyObject *resultobj;
6744 wxNativeEncodingInfo *result;
6745 char *kwnames[] = {
6746 NULL
6747 };
6748
6749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6750 {
6751 PyThreadState* __tstate = wxPyBeginAllowThreads();
6752 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6753
6754 wxPyEndAllowThreads(__tstate);
6755 if (PyErr_Occurred()) SWIG_fail;
6756 }
6757 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
6758 return resultobj;
6759 fail:
6760 return NULL;
6761 }
6762
6763
6764 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6765 PyObject *resultobj;
6766 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6767 PyObject * obj0 = 0 ;
6768 char *kwnames[] = {
6769 (char *) "self", NULL
6770 };
6771
6772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6775 {
6776 PyThreadState* __tstate = wxPyBeginAllowThreads();
6777 delete arg1;
6778
6779 wxPyEndAllowThreads(__tstate);
6780 if (PyErr_Occurred()) SWIG_fail;
6781 }
6782 Py_INCREF(Py_None); resultobj = Py_None;
6783 return resultobj;
6784 fail:
6785 return NULL;
6786 }
6787
6788
6789 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
6790 PyObject *resultobj;
6791 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6792 wxString *arg2 = 0 ;
6793 bool result;
6794 bool temp2 = False ;
6795 PyObject * obj0 = 0 ;
6796 PyObject * obj1 = 0 ;
6797 char *kwnames[] = {
6798 (char *) "self",(char *) "s", NULL
6799 };
6800
6801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6804 {
6805 arg2 = wxString_in_helper(obj1);
6806 if (arg2 == NULL) SWIG_fail;
6807 temp2 = True;
6808 }
6809 {
6810 PyThreadState* __tstate = wxPyBeginAllowThreads();
6811 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6812
6813 wxPyEndAllowThreads(__tstate);
6814 if (PyErr_Occurred()) SWIG_fail;
6815 }
6816 {
6817 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6818 }
6819 {
6820 if (temp2)
6821 delete arg2;
6822 }
6823 return resultobj;
6824 fail:
6825 {
6826 if (temp2)
6827 delete arg2;
6828 }
6829 return NULL;
6830 }
6831
6832
6833 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
6834 PyObject *resultobj;
6835 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6836 wxString result;
6837 PyObject * obj0 = 0 ;
6838 char *kwnames[] = {
6839 (char *) "self", NULL
6840 };
6841
6842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
6843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6845 {
6846 PyThreadState* __tstate = wxPyBeginAllowThreads();
6847 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6848
6849 wxPyEndAllowThreads(__tstate);
6850 if (PyErr_Occurred()) SWIG_fail;
6851 }
6852 {
6853 #if wxUSE_UNICODE
6854 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6855 #else
6856 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6857 #endif
6858 }
6859 return resultobj;
6860 fail:
6861 return NULL;
6862 }
6863
6864
6865 static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) {
6866 PyObject *obj;
6867 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6868 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6869 Py_INCREF(obj);
6870 return Py_BuildValue((char *)"");
6871 }
6872 static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
6873 PyObject *resultobj;
6874 int arg1 ;
6875 wxNativeEncodingInfo *result;
6876 PyObject * obj0 = 0 ;
6877 char *kwnames[] = {
6878 (char *) "encoding", NULL
6879 };
6880
6881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
6882 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
6883 if (PyErr_Occurred()) SWIG_fail;
6884 {
6885 PyThreadState* __tstate = wxPyBeginAllowThreads();
6886 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
6887
6888 wxPyEndAllowThreads(__tstate);
6889 if (PyErr_Occurred()) SWIG_fail;
6890 }
6891 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
6892 return resultobj;
6893 fail:
6894 return NULL;
6895 }
6896
6897
6898 static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
6899 PyObject *resultobj;
6900 wxNativeEncodingInfo *arg1 = 0 ;
6901 bool result;
6902 PyObject * obj0 = 0 ;
6903 char *kwnames[] = {
6904 (char *) "info", NULL
6905 };
6906
6907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
6908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6909 SWIG_POINTER_EXCEPTION | 0)) == -1)
6910 SWIG_fail;
6911 if (arg1 == NULL) {
6912 PyErr_SetString(PyExc_TypeError,"null reference");
6913 SWIG_fail;
6914 }
6915 {
6916 PyThreadState* __tstate = wxPyBeginAllowThreads();
6917 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6918
6919 wxPyEndAllowThreads(__tstate);
6920 if (PyErr_Occurred()) SWIG_fail;
6921 }
6922 {
6923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6924 }
6925 return resultobj;
6926 fail:
6927 return NULL;
6928 }
6929
6930
6931 static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
6932 PyObject *resultobj;
6933 wxFontMapper *result;
6934 char *kwnames[] = {
6935 NULL
6936 };
6937
6938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
6939 {
6940 PyThreadState* __tstate = wxPyBeginAllowThreads();
6941 result = (wxFontMapper *)new wxFontMapper();
6942
6943 wxPyEndAllowThreads(__tstate);
6944 if (PyErr_Occurred()) SWIG_fail;
6945 }
6946 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
6947 return resultobj;
6948 fail:
6949 return NULL;
6950 }
6951
6952
6953 static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
6954 PyObject *resultobj;
6955 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6956 PyObject * obj0 = 0 ;
6957 char *kwnames[] = {
6958 (char *) "self", NULL
6959 };
6960
6961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
6962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
6963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6964 {
6965 PyThreadState* __tstate = wxPyBeginAllowThreads();
6966 delete arg1;
6967
6968 wxPyEndAllowThreads(__tstate);
6969 if (PyErr_Occurred()) SWIG_fail;
6970 }
6971 Py_INCREF(Py_None); resultobj = Py_None;
6972 return resultobj;
6973 fail:
6974 return NULL;
6975 }
6976
6977
6978 static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) {
6979 PyObject *resultobj;
6980 wxFontMapper *result;
6981 char *kwnames[] = {
6982 NULL
6983 };
6984
6985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
6986 {
6987 PyThreadState* __tstate = wxPyBeginAllowThreads();
6988 result = (wxFontMapper *)wxFontMapper::Get();
6989
6990 wxPyEndAllowThreads(__tstate);
6991 if (PyErr_Occurred()) SWIG_fail;
6992 }
6993 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
6994 return resultobj;
6995 fail:
6996 return NULL;
6997 }
6998
6999
7000 static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) {
7001 PyObject *resultobj;
7002 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7003 wxFontMapper *result;
7004 PyObject * obj0 = 0 ;
7005 char *kwnames[] = {
7006 (char *) "mapper", NULL
7007 };
7008
7009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7012 {
7013 PyThreadState* __tstate = wxPyBeginAllowThreads();
7014 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7015
7016 wxPyEndAllowThreads(__tstate);
7017 if (PyErr_Occurred()) SWIG_fail;
7018 }
7019 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7020 return resultobj;
7021 fail:
7022 return NULL;
7023 }
7024
7025
7026 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7027 PyObject *resultobj;
7028 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7029 wxString *arg2 = 0 ;
7030 bool arg3 = (bool) True ;
7031 int result;
7032 bool temp2 = False ;
7033 PyObject * obj0 = 0 ;
7034 PyObject * obj1 = 0 ;
7035 PyObject * obj2 = 0 ;
7036 char *kwnames[] = {
7037 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7038 };
7039
7040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7043 {
7044 arg2 = wxString_in_helper(obj1);
7045 if (arg2 == NULL) SWIG_fail;
7046 temp2 = True;
7047 }
7048 if (obj2) {
7049 arg3 = (bool) SWIG_AsBool(obj2);
7050 if (PyErr_Occurred()) SWIG_fail;
7051 }
7052 {
7053 PyThreadState* __tstate = wxPyBeginAllowThreads();
7054 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7055
7056 wxPyEndAllowThreads(__tstate);
7057 if (PyErr_Occurred()) SWIG_fail;
7058 }
7059 resultobj = SWIG_FromInt((int)result);
7060 {
7061 if (temp2)
7062 delete arg2;
7063 }
7064 return resultobj;
7065 fail:
7066 {
7067 if (temp2)
7068 delete arg2;
7069 }
7070 return NULL;
7071 }
7072
7073
7074 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) {
7075 PyObject *resultobj;
7076 size_t result;
7077 char *kwnames[] = {
7078 NULL
7079 };
7080
7081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7082 {
7083 PyThreadState* __tstate = wxPyBeginAllowThreads();
7084 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7085
7086 wxPyEndAllowThreads(__tstate);
7087 if (PyErr_Occurred()) SWIG_fail;
7088 }
7089 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7090 return resultobj;
7091 fail:
7092 return NULL;
7093 }
7094
7095
7096 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7097 PyObject *resultobj;
7098 size_t arg1 ;
7099 int result;
7100 PyObject * obj0 = 0 ;
7101 char *kwnames[] = {
7102 (char *) "n", NULL
7103 };
7104
7105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7106 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7107 if (PyErr_Occurred()) SWIG_fail;
7108 {
7109 PyThreadState* __tstate = wxPyBeginAllowThreads();
7110 result = (int)wxFontMapper::GetEncoding(arg1);
7111
7112 wxPyEndAllowThreads(__tstate);
7113 if (PyErr_Occurred()) SWIG_fail;
7114 }
7115 resultobj = SWIG_FromInt((int)result);
7116 return resultobj;
7117 fail:
7118 return NULL;
7119 }
7120
7121
7122 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
7123 PyObject *resultobj;
7124 int arg1 ;
7125 wxString result;
7126 PyObject * obj0 = 0 ;
7127 char *kwnames[] = {
7128 (char *) "encoding", NULL
7129 };
7130
7131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7132 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7133 if (PyErr_Occurred()) SWIG_fail;
7134 {
7135 PyThreadState* __tstate = wxPyBeginAllowThreads();
7136 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7137
7138 wxPyEndAllowThreads(__tstate);
7139 if (PyErr_Occurred()) SWIG_fail;
7140 }
7141 {
7142 #if wxUSE_UNICODE
7143 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7144 #else
7145 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7146 #endif
7147 }
7148 return resultobj;
7149 fail:
7150 return NULL;
7151 }
7152
7153
7154 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) {
7155 PyObject *resultobj;
7156 int arg1 ;
7157 wxString result;
7158 PyObject * obj0 = 0 ;
7159 char *kwnames[] = {
7160 (char *) "encoding", NULL
7161 };
7162
7163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7164 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7165 if (PyErr_Occurred()) SWIG_fail;
7166 {
7167 PyThreadState* __tstate = wxPyBeginAllowThreads();
7168 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7169
7170 wxPyEndAllowThreads(__tstate);
7171 if (PyErr_Occurred()) SWIG_fail;
7172 }
7173 {
7174 #if wxUSE_UNICODE
7175 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7176 #else
7177 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7178 #endif
7179 }
7180 return resultobj;
7181 fail:
7182 return NULL;
7183 }
7184
7185
7186 static PyObject *_wrap_FontMapper_SetConfig(PyObject *, PyObject *args, PyObject *kwargs) {
7187 PyObject *resultobj;
7188 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7189 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7190 PyObject * obj0 = 0 ;
7191 PyObject * obj1 = 0 ;
7192 char *kwnames[] = {
7193 (char *) "self",(char *) "config", NULL
7194 };
7195
7196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7199 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7201 {
7202 PyThreadState* __tstate = wxPyBeginAllowThreads();
7203 (arg1)->SetConfig(arg2);
7204
7205 wxPyEndAllowThreads(__tstate);
7206 if (PyErr_Occurred()) SWIG_fail;
7207 }
7208 Py_INCREF(Py_None); resultobj = Py_None;
7209 return resultobj;
7210 fail:
7211 return NULL;
7212 }
7213
7214
7215 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
7216 PyObject *resultobj;
7217 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7218 wxString *arg2 = 0 ;
7219 bool temp2 = False ;
7220 PyObject * obj0 = 0 ;
7221 PyObject * obj1 = 0 ;
7222 char *kwnames[] = {
7223 (char *) "self",(char *) "prefix", NULL
7224 };
7225
7226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7229 {
7230 arg2 = wxString_in_helper(obj1);
7231 if (arg2 == NULL) SWIG_fail;
7232 temp2 = True;
7233 }
7234 {
7235 PyThreadState* __tstate = wxPyBeginAllowThreads();
7236 (arg1)->SetConfigPath((wxString const &)*arg2);
7237
7238 wxPyEndAllowThreads(__tstate);
7239 if (PyErr_Occurred()) SWIG_fail;
7240 }
7241 Py_INCREF(Py_None); resultobj = Py_None;
7242 {
7243 if (temp2)
7244 delete arg2;
7245 }
7246 return resultobj;
7247 fail:
7248 {
7249 if (temp2)
7250 delete arg2;
7251 }
7252 return NULL;
7253 }
7254
7255
7256 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
7257 PyObject *resultobj;
7258 wxString result;
7259 char *kwnames[] = {
7260 NULL
7261 };
7262
7263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7264 {
7265 PyThreadState* __tstate = wxPyBeginAllowThreads();
7266 result = wxFontMapper::GetDefaultConfigPath();
7267
7268 wxPyEndAllowThreads(__tstate);
7269 if (PyErr_Occurred()) SWIG_fail;
7270 }
7271 {
7272 #if wxUSE_UNICODE
7273 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7274 #else
7275 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7276 #endif
7277 }
7278 return resultobj;
7279 fail:
7280 return NULL;
7281 }
7282
7283
7284 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7285 PyObject *resultobj;
7286 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7287 int arg2 ;
7288 wxString const &arg3_defvalue = wxPyEmptyString ;
7289 wxString *arg3 = (wxString *) &arg3_defvalue ;
7290 bool arg4 = (bool) True ;
7291 PyObject *result;
7292 bool temp3 = False ;
7293 PyObject * obj0 = 0 ;
7294 PyObject * obj1 = 0 ;
7295 PyObject * obj2 = 0 ;
7296 PyObject * obj3 = 0 ;
7297 char *kwnames[] = {
7298 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7299 };
7300
7301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7304 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7305 if (PyErr_Occurred()) SWIG_fail;
7306 if (obj2) {
7307 {
7308 arg3 = wxString_in_helper(obj2);
7309 if (arg3 == NULL) SWIG_fail;
7310 temp3 = True;
7311 }
7312 }
7313 if (obj3) {
7314 arg4 = (bool) SWIG_AsBool(obj3);
7315 if (PyErr_Occurred()) SWIG_fail;
7316 }
7317 {
7318 PyThreadState* __tstate = wxPyBeginAllowThreads();
7319 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7320
7321 wxPyEndAllowThreads(__tstate);
7322 if (PyErr_Occurred()) SWIG_fail;
7323 }
7324 resultobj = result;
7325 {
7326 if (temp3)
7327 delete arg3;
7328 }
7329 return resultobj;
7330 fail:
7331 {
7332 if (temp3)
7333 delete arg3;
7334 }
7335 return NULL;
7336 }
7337
7338
7339 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
7340 PyObject *resultobj;
7341 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7342 int arg2 ;
7343 wxString const &arg3_defvalue = wxPyEmptyString ;
7344 wxString *arg3 = (wxString *) &arg3_defvalue ;
7345 bool result;
7346 bool temp3 = False ;
7347 PyObject * obj0 = 0 ;
7348 PyObject * obj1 = 0 ;
7349 PyObject * obj2 = 0 ;
7350 char *kwnames[] = {
7351 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7352 };
7353
7354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7357 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7358 if (PyErr_Occurred()) SWIG_fail;
7359 if (obj2) {
7360 {
7361 arg3 = wxString_in_helper(obj2);
7362 if (arg3 == NULL) SWIG_fail;
7363 temp3 = True;
7364 }
7365 }
7366 {
7367 PyThreadState* __tstate = wxPyBeginAllowThreads();
7368 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7369
7370 wxPyEndAllowThreads(__tstate);
7371 if (PyErr_Occurred()) SWIG_fail;
7372 }
7373 {
7374 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7375 }
7376 {
7377 if (temp3)
7378 delete arg3;
7379 }
7380 return resultobj;
7381 fail:
7382 {
7383 if (temp3)
7384 delete arg3;
7385 }
7386 return NULL;
7387 }
7388
7389
7390 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) {
7391 PyObject *resultobj;
7392 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7393 wxWindow *arg2 = (wxWindow *) 0 ;
7394 PyObject * obj0 = 0 ;
7395 PyObject * obj1 = 0 ;
7396 char *kwnames[] = {
7397 (char *) "self",(char *) "parent", NULL
7398 };
7399
7400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7403 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7405 {
7406 PyThreadState* __tstate = wxPyBeginAllowThreads();
7407 (arg1)->SetDialogParent(arg2);
7408
7409 wxPyEndAllowThreads(__tstate);
7410 if (PyErr_Occurred()) SWIG_fail;
7411 }
7412 Py_INCREF(Py_None); resultobj = Py_None;
7413 return resultobj;
7414 fail:
7415 return NULL;
7416 }
7417
7418
7419 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) {
7420 PyObject *resultobj;
7421 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7422 wxString *arg2 = 0 ;
7423 bool temp2 = False ;
7424 PyObject * obj0 = 0 ;
7425 PyObject * obj1 = 0 ;
7426 char *kwnames[] = {
7427 (char *) "self",(char *) "title", NULL
7428 };
7429
7430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7433 {
7434 arg2 = wxString_in_helper(obj1);
7435 if (arg2 == NULL) SWIG_fail;
7436 temp2 = True;
7437 }
7438 {
7439 PyThreadState* __tstate = wxPyBeginAllowThreads();
7440 (arg1)->SetDialogTitle((wxString const &)*arg2);
7441
7442 wxPyEndAllowThreads(__tstate);
7443 if (PyErr_Occurred()) SWIG_fail;
7444 }
7445 Py_INCREF(Py_None); resultobj = Py_None;
7446 {
7447 if (temp2)
7448 delete arg2;
7449 }
7450 return resultobj;
7451 fail:
7452 {
7453 if (temp2)
7454 delete arg2;
7455 }
7456 return NULL;
7457 }
7458
7459
7460 static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) {
7461 PyObject *obj;
7462 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7463 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7464 Py_INCREF(obj);
7465 return Py_BuildValue((char *)"");
7466 }
7467 static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) {
7468 PyObject *resultobj;
7469 int arg1 ;
7470 int arg2 ;
7471 int arg3 ;
7472 int arg4 ;
7473 bool arg5 = (bool) False ;
7474 wxString const &arg6_defvalue = wxPyEmptyString ;
7475 wxString *arg6 = (wxString *) &arg6_defvalue ;
7476 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7477 wxFont *result;
7478 bool temp6 = False ;
7479 PyObject * obj0 = 0 ;
7480 PyObject * obj1 = 0 ;
7481 PyObject * obj2 = 0 ;
7482 PyObject * obj3 = 0 ;
7483 PyObject * obj4 = 0 ;
7484 PyObject * obj5 = 0 ;
7485 PyObject * obj6 = 0 ;
7486 char *kwnames[] = {
7487 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7488 };
7489
7490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7491 arg1 = (int) SWIG_AsInt(obj0);
7492 if (PyErr_Occurred()) SWIG_fail;
7493 arg2 = (int) SWIG_AsInt(obj1);
7494 if (PyErr_Occurred()) SWIG_fail;
7495 arg3 = (int) SWIG_AsInt(obj2);
7496 if (PyErr_Occurred()) SWIG_fail;
7497 arg4 = (int) SWIG_AsInt(obj3);
7498 if (PyErr_Occurred()) SWIG_fail;
7499 if (obj4) {
7500 arg5 = (bool) SWIG_AsBool(obj4);
7501 if (PyErr_Occurred()) SWIG_fail;
7502 }
7503 if (obj5) {
7504 {
7505 arg6 = wxString_in_helper(obj5);
7506 if (arg6 == NULL) SWIG_fail;
7507 temp6 = True;
7508 }
7509 }
7510 if (obj6) {
7511 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
7512 if (PyErr_Occurred()) SWIG_fail;
7513 }
7514 {
7515 PyThreadState* __tstate = wxPyBeginAllowThreads();
7516 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7517
7518 wxPyEndAllowThreads(__tstate);
7519 if (PyErr_Occurred()) SWIG_fail;
7520 }
7521 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7522 {
7523 if (temp6)
7524 delete arg6;
7525 }
7526 return resultobj;
7527 fail:
7528 {
7529 if (temp6)
7530 delete arg6;
7531 }
7532 return NULL;
7533 }
7534
7535
7536 static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) {
7537 PyObject *resultobj;
7538 wxFont *arg1 = (wxFont *) 0 ;
7539 PyObject * obj0 = 0 ;
7540 char *kwnames[] = {
7541 (char *) "self", NULL
7542 };
7543
7544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7547 {
7548 PyThreadState* __tstate = wxPyBeginAllowThreads();
7549 delete arg1;
7550
7551 wxPyEndAllowThreads(__tstate);
7552 if (PyErr_Occurred()) SWIG_fail;
7553 }
7554 Py_INCREF(Py_None); resultobj = Py_None;
7555 return resultobj;
7556 fail:
7557 return NULL;
7558 }
7559
7560
7561 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
7562 PyObject *resultobj;
7563 wxNativeFontInfo *arg1 = 0 ;
7564 wxFont *result;
7565 PyObject * obj0 = 0 ;
7566 char *kwnames[] = {
7567 (char *) "info", NULL
7568 };
7569
7570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7572 SWIG_POINTER_EXCEPTION | 0)) == -1)
7573 SWIG_fail;
7574 if (arg1 == NULL) {
7575 PyErr_SetString(PyExc_TypeError,"null reference");
7576 SWIG_fail;
7577 }
7578 {
7579 PyThreadState* __tstate = wxPyBeginAllowThreads();
7580 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7581
7582 wxPyEndAllowThreads(__tstate);
7583 if (PyErr_Occurred()) SWIG_fail;
7584 }
7585 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7586 return resultobj;
7587 fail:
7588 return NULL;
7589 }
7590
7591
7592 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) {
7593 PyObject *resultobj;
7594 wxString *arg1 = 0 ;
7595 wxFont *result;
7596 bool temp1 = False ;
7597 PyObject * obj0 = 0 ;
7598 char *kwnames[] = {
7599 (char *) "info", NULL
7600 };
7601
7602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7603 {
7604 arg1 = wxString_in_helper(obj0);
7605 if (arg1 == NULL) SWIG_fail;
7606 temp1 = True;
7607 }
7608 {
7609 PyThreadState* __tstate = wxPyBeginAllowThreads();
7610 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7611
7612 wxPyEndAllowThreads(__tstate);
7613 if (PyErr_Occurred()) SWIG_fail;
7614 }
7615 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7616 {
7617 if (temp1)
7618 delete arg1;
7619 }
7620 return resultobj;
7621 fail:
7622 {
7623 if (temp1)
7624 delete arg1;
7625 }
7626 return NULL;
7627 }
7628
7629
7630 static PyObject *_wrap_new_Font2(PyObject *, PyObject *args, PyObject *kwargs) {
7631 PyObject *resultobj;
7632 int arg1 ;
7633 int arg2 ;
7634 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7635 wxString const &arg4_defvalue = wxPyEmptyString ;
7636 wxString *arg4 = (wxString *) &arg4_defvalue ;
7637 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7638 wxFont *result;
7639 bool temp4 = False ;
7640 PyObject * obj0 = 0 ;
7641 PyObject * obj1 = 0 ;
7642 PyObject * obj2 = 0 ;
7643 PyObject * obj3 = 0 ;
7644 PyObject * obj4 = 0 ;
7645 char *kwnames[] = {
7646 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7647 };
7648
7649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7650 arg1 = (int) SWIG_AsInt(obj0);
7651 if (PyErr_Occurred()) SWIG_fail;
7652 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
7653 if (PyErr_Occurred()) SWIG_fail;
7654 if (obj2) {
7655 arg3 = (int) SWIG_AsInt(obj2);
7656 if (PyErr_Occurred()) SWIG_fail;
7657 }
7658 if (obj3) {
7659 {
7660 arg4 = wxString_in_helper(obj3);
7661 if (arg4 == NULL) SWIG_fail;
7662 temp4 = True;
7663 }
7664 }
7665 if (obj4) {
7666 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
7667 if (PyErr_Occurred()) SWIG_fail;
7668 }
7669 {
7670 PyThreadState* __tstate = wxPyBeginAllowThreads();
7671 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7672
7673 wxPyEndAllowThreads(__tstate);
7674 if (PyErr_Occurred()) SWIG_fail;
7675 }
7676 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7677 {
7678 if (temp4)
7679 delete arg4;
7680 }
7681 return resultobj;
7682 fail:
7683 {
7684 if (temp4)
7685 delete arg4;
7686 }
7687 return NULL;
7688 }
7689
7690
7691 static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
7692 PyObject *resultobj;
7693 wxFont *arg1 = (wxFont *) 0 ;
7694 bool result;
7695 PyObject * obj0 = 0 ;
7696 char *kwnames[] = {
7697 (char *) "self", NULL
7698 };
7699
7700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7703 {
7704 PyThreadState* __tstate = wxPyBeginAllowThreads();
7705 result = (bool)((wxFont const *)arg1)->Ok();
7706
7707 wxPyEndAllowThreads(__tstate);
7708 if (PyErr_Occurred()) SWIG_fail;
7709 }
7710 {
7711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7712 }
7713 return resultobj;
7714 fail:
7715 return NULL;
7716 }
7717
7718
7719 static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
7720 PyObject *resultobj;
7721 wxFont *arg1 = (wxFont *) 0 ;
7722 wxFont *arg2 = (wxFont *) 0 ;
7723 bool result;
7724 PyObject * obj0 = 0 ;
7725 PyObject * obj1 = 0 ;
7726 char *kwnames[] = {
7727 (char *) "self",(char *) "other", NULL
7728 };
7729
7730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7733 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7735 {
7736 PyThreadState* __tstate = wxPyBeginAllowThreads();
7737 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
7738
7739 wxPyEndAllowThreads(__tstate);
7740 if (PyErr_Occurred()) SWIG_fail;
7741 }
7742 {
7743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7744 }
7745 return resultobj;
7746 fail:
7747 return NULL;
7748 }
7749
7750
7751 static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
7752 PyObject *resultobj;
7753 wxFont *arg1 = (wxFont *) 0 ;
7754 wxFont *arg2 = (wxFont *) 0 ;
7755 bool result;
7756 PyObject * obj0 = 0 ;
7757 PyObject * obj1 = 0 ;
7758 char *kwnames[] = {
7759 (char *) "self",(char *) "other", NULL
7760 };
7761
7762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7765 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7767 {
7768 PyThreadState* __tstate = wxPyBeginAllowThreads();
7769 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
7770
7771 wxPyEndAllowThreads(__tstate);
7772 if (PyErr_Occurred()) SWIG_fail;
7773 }
7774 {
7775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7776 }
7777 return resultobj;
7778 fail:
7779 return NULL;
7780 }
7781
7782
7783 static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
7784 PyObject *resultobj;
7785 wxFont *arg1 = (wxFont *) 0 ;
7786 int result;
7787 PyObject * obj0 = 0 ;
7788 char *kwnames[] = {
7789 (char *) "self", NULL
7790 };
7791
7792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7795 {
7796 PyThreadState* __tstate = wxPyBeginAllowThreads();
7797 result = (int)((wxFont const *)arg1)->GetPointSize();
7798
7799 wxPyEndAllowThreads(__tstate);
7800 if (PyErr_Occurred()) SWIG_fail;
7801 }
7802 resultobj = SWIG_FromInt((int)result);
7803 return resultobj;
7804 fail:
7805 return NULL;
7806 }
7807
7808
7809 static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
7810 PyObject *resultobj;
7811 wxFont *arg1 = (wxFont *) 0 ;
7812 int result;
7813 PyObject * obj0 = 0 ;
7814 char *kwnames[] = {
7815 (char *) "self", NULL
7816 };
7817
7818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
7819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7821 {
7822 PyThreadState* __tstate = wxPyBeginAllowThreads();
7823 result = (int)((wxFont const *)arg1)->GetFamily();
7824
7825 wxPyEndAllowThreads(__tstate);
7826 if (PyErr_Occurred()) SWIG_fail;
7827 }
7828 resultobj = SWIG_FromInt((int)result);
7829 return resultobj;
7830 fail:
7831 return NULL;
7832 }
7833
7834
7835 static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
7836 PyObject *resultobj;
7837 wxFont *arg1 = (wxFont *) 0 ;
7838 int result;
7839 PyObject * obj0 = 0 ;
7840 char *kwnames[] = {
7841 (char *) "self", NULL
7842 };
7843
7844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
7845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7847 {
7848 PyThreadState* __tstate = wxPyBeginAllowThreads();
7849 result = (int)((wxFont const *)arg1)->GetStyle();
7850
7851 wxPyEndAllowThreads(__tstate);
7852 if (PyErr_Occurred()) SWIG_fail;
7853 }
7854 resultobj = SWIG_FromInt((int)result);
7855 return resultobj;
7856 fail:
7857 return NULL;
7858 }
7859
7860
7861 static PyObject *_wrap_Font_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
7862 PyObject *resultobj;
7863 wxFont *arg1 = (wxFont *) 0 ;
7864 int result;
7865 PyObject * obj0 = 0 ;
7866 char *kwnames[] = {
7867 (char *) "self", NULL
7868 };
7869
7870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
7871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7873 {
7874 PyThreadState* __tstate = wxPyBeginAllowThreads();
7875 result = (int)((wxFont const *)arg1)->GetWeight();
7876
7877 wxPyEndAllowThreads(__tstate);
7878 if (PyErr_Occurred()) SWIG_fail;
7879 }
7880 resultobj = SWIG_FromInt((int)result);
7881 return resultobj;
7882 fail:
7883 return NULL;
7884 }
7885
7886
7887 static PyObject *_wrap_Font_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
7888 PyObject *resultobj;
7889 wxFont *arg1 = (wxFont *) 0 ;
7890 bool result;
7891 PyObject * obj0 = 0 ;
7892 char *kwnames[] = {
7893 (char *) "self", NULL
7894 };
7895
7896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
7897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7899 {
7900 PyThreadState* __tstate = wxPyBeginAllowThreads();
7901 result = (bool)((wxFont const *)arg1)->GetUnderlined();
7902
7903 wxPyEndAllowThreads(__tstate);
7904 if (PyErr_Occurred()) SWIG_fail;
7905 }
7906 {
7907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7908 }
7909 return resultobj;
7910 fail:
7911 return NULL;
7912 }
7913
7914
7915 static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
7916 PyObject *resultobj;
7917 wxFont *arg1 = (wxFont *) 0 ;
7918 wxString result;
7919 PyObject * obj0 = 0 ;
7920 char *kwnames[] = {
7921 (char *) "self", NULL
7922 };
7923
7924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
7925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7927 {
7928 PyThreadState* __tstate = wxPyBeginAllowThreads();
7929 result = ((wxFont const *)arg1)->GetFaceName();
7930
7931 wxPyEndAllowThreads(__tstate);
7932 if (PyErr_Occurred()) SWIG_fail;
7933 }
7934 {
7935 #if wxUSE_UNICODE
7936 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7937 #else
7938 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7939 #endif
7940 }
7941 return resultobj;
7942 fail:
7943 return NULL;
7944 }
7945
7946
7947 static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
7948 PyObject *resultobj;
7949 wxFont *arg1 = (wxFont *) 0 ;
7950 int result;
7951 PyObject * obj0 = 0 ;
7952 char *kwnames[] = {
7953 (char *) "self", NULL
7954 };
7955
7956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
7957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7959 {
7960 PyThreadState* __tstate = wxPyBeginAllowThreads();
7961 result = (int)((wxFont const *)arg1)->GetEncoding();
7962
7963 wxPyEndAllowThreads(__tstate);
7964 if (PyErr_Occurred()) SWIG_fail;
7965 }
7966 resultobj = SWIG_FromInt((int)result);
7967 return resultobj;
7968 fail:
7969 return NULL;
7970 }
7971
7972
7973 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
7974 PyObject *resultobj;
7975 wxFont *arg1 = (wxFont *) 0 ;
7976 wxNativeFontInfo *result;
7977 PyObject * obj0 = 0 ;
7978 char *kwnames[] = {
7979 (char *) "self", NULL
7980 };
7981
7982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
7983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7985 {
7986 PyThreadState* __tstate = wxPyBeginAllowThreads();
7987 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
7988
7989 wxPyEndAllowThreads(__tstate);
7990 if (PyErr_Occurred()) SWIG_fail;
7991 }
7992 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
7993 return resultobj;
7994 fail:
7995 return NULL;
7996 }
7997
7998
7999 static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) {
8000 PyObject *resultobj;
8001 wxFont *arg1 = (wxFont *) 0 ;
8002 bool result;
8003 PyObject * obj0 = 0 ;
8004 char *kwnames[] = {
8005 (char *) "self", NULL
8006 };
8007
8008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8011 {
8012 PyThreadState* __tstate = wxPyBeginAllowThreads();
8013 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8014
8015 wxPyEndAllowThreads(__tstate);
8016 if (PyErr_Occurred()) SWIG_fail;
8017 }
8018 {
8019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8020 }
8021 return resultobj;
8022 fail:
8023 return NULL;
8024 }
8025
8026
8027 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) {
8028 PyObject *resultobj;
8029 wxFont *arg1 = (wxFont *) 0 ;
8030 wxString result;
8031 PyObject * obj0 = 0 ;
8032 char *kwnames[] = {
8033 (char *) "self", NULL
8034 };
8035
8036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8039 {
8040 PyThreadState* __tstate = wxPyBeginAllowThreads();
8041 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8042
8043 wxPyEndAllowThreads(__tstate);
8044 if (PyErr_Occurred()) SWIG_fail;
8045 }
8046 {
8047 #if wxUSE_UNICODE
8048 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8049 #else
8050 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8051 #endif
8052 }
8053 return resultobj;
8054 fail:
8055 return NULL;
8056 }
8057
8058
8059 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
8060 PyObject *resultobj;
8061 wxFont *arg1 = (wxFont *) 0 ;
8062 wxString result;
8063 PyObject * obj0 = 0 ;
8064 char *kwnames[] = {
8065 (char *) "self", NULL
8066 };
8067
8068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8071 {
8072 PyThreadState* __tstate = wxPyBeginAllowThreads();
8073 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8074
8075 wxPyEndAllowThreads(__tstate);
8076 if (PyErr_Occurred()) SWIG_fail;
8077 }
8078 {
8079 #if wxUSE_UNICODE
8080 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8081 #else
8082 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8083 #endif
8084 }
8085 return resultobj;
8086 fail:
8087 return NULL;
8088 }
8089
8090
8091 static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
8092 PyObject *resultobj;
8093 wxFont *arg1 = (wxFont *) 0 ;
8094 int arg2 ;
8095 PyObject * obj0 = 0 ;
8096 PyObject * obj1 = 0 ;
8097 char *kwnames[] = {
8098 (char *) "self",(char *) "pointSize", NULL
8099 };
8100
8101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8104 arg2 = (int) SWIG_AsInt(obj1);
8105 if (PyErr_Occurred()) SWIG_fail;
8106 {
8107 PyThreadState* __tstate = wxPyBeginAllowThreads();
8108 (arg1)->SetPointSize(arg2);
8109
8110 wxPyEndAllowThreads(__tstate);
8111 if (PyErr_Occurred()) SWIG_fail;
8112 }
8113 Py_INCREF(Py_None); resultobj = Py_None;
8114 return resultobj;
8115 fail:
8116 return NULL;
8117 }
8118
8119
8120 static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
8121 PyObject *resultobj;
8122 wxFont *arg1 = (wxFont *) 0 ;
8123 int arg2 ;
8124 PyObject * obj0 = 0 ;
8125 PyObject * obj1 = 0 ;
8126 char *kwnames[] = {
8127 (char *) "self",(char *) "family", NULL
8128 };
8129
8130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8133 arg2 = (int) SWIG_AsInt(obj1);
8134 if (PyErr_Occurred()) SWIG_fail;
8135 {
8136 PyThreadState* __tstate = wxPyBeginAllowThreads();
8137 (arg1)->SetFamily(arg2);
8138
8139 wxPyEndAllowThreads(__tstate);
8140 if (PyErr_Occurred()) SWIG_fail;
8141 }
8142 Py_INCREF(Py_None); resultobj = Py_None;
8143 return resultobj;
8144 fail:
8145 return NULL;
8146 }
8147
8148
8149 static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
8150 PyObject *resultobj;
8151 wxFont *arg1 = (wxFont *) 0 ;
8152 int arg2 ;
8153 PyObject * obj0 = 0 ;
8154 PyObject * obj1 = 0 ;
8155 char *kwnames[] = {
8156 (char *) "self",(char *) "style", NULL
8157 };
8158
8159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8162 arg2 = (int) SWIG_AsInt(obj1);
8163 if (PyErr_Occurred()) SWIG_fail;
8164 {
8165 PyThreadState* __tstate = wxPyBeginAllowThreads();
8166 (arg1)->SetStyle(arg2);
8167
8168 wxPyEndAllowThreads(__tstate);
8169 if (PyErr_Occurred()) SWIG_fail;
8170 }
8171 Py_INCREF(Py_None); resultobj = Py_None;
8172 return resultobj;
8173 fail:
8174 return NULL;
8175 }
8176
8177
8178 static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
8179 PyObject *resultobj;
8180 wxFont *arg1 = (wxFont *) 0 ;
8181 int arg2 ;
8182 PyObject * obj0 = 0 ;
8183 PyObject * obj1 = 0 ;
8184 char *kwnames[] = {
8185 (char *) "self",(char *) "weight", NULL
8186 };
8187
8188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8191 arg2 = (int) SWIG_AsInt(obj1);
8192 if (PyErr_Occurred()) SWIG_fail;
8193 {
8194 PyThreadState* __tstate = wxPyBeginAllowThreads();
8195 (arg1)->SetWeight(arg2);
8196
8197 wxPyEndAllowThreads(__tstate);
8198 if (PyErr_Occurred()) SWIG_fail;
8199 }
8200 Py_INCREF(Py_None); resultobj = Py_None;
8201 return resultobj;
8202 fail:
8203 return NULL;
8204 }
8205
8206
8207 static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
8208 PyObject *resultobj;
8209 wxFont *arg1 = (wxFont *) 0 ;
8210 wxString *arg2 = 0 ;
8211 bool temp2 = False ;
8212 PyObject * obj0 = 0 ;
8213 PyObject * obj1 = 0 ;
8214 char *kwnames[] = {
8215 (char *) "self",(char *) "faceName", NULL
8216 };
8217
8218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8221 {
8222 arg2 = wxString_in_helper(obj1);
8223 if (arg2 == NULL) SWIG_fail;
8224 temp2 = True;
8225 }
8226 {
8227 PyThreadState* __tstate = wxPyBeginAllowThreads();
8228 (arg1)->SetFaceName((wxString const &)*arg2);
8229
8230 wxPyEndAllowThreads(__tstate);
8231 if (PyErr_Occurred()) SWIG_fail;
8232 }
8233 Py_INCREF(Py_None); resultobj = Py_None;
8234 {
8235 if (temp2)
8236 delete arg2;
8237 }
8238 return resultobj;
8239 fail:
8240 {
8241 if (temp2)
8242 delete arg2;
8243 }
8244 return NULL;
8245 }
8246
8247
8248 static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
8249 PyObject *resultobj;
8250 wxFont *arg1 = (wxFont *) 0 ;
8251 bool arg2 ;
8252 PyObject * obj0 = 0 ;
8253 PyObject * obj1 = 0 ;
8254 char *kwnames[] = {
8255 (char *) "self",(char *) "underlined", NULL
8256 };
8257
8258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8261 arg2 = (bool) SWIG_AsBool(obj1);
8262 if (PyErr_Occurred()) SWIG_fail;
8263 {
8264 PyThreadState* __tstate = wxPyBeginAllowThreads();
8265 (arg1)->SetUnderlined(arg2);
8266
8267 wxPyEndAllowThreads(__tstate);
8268 if (PyErr_Occurred()) SWIG_fail;
8269 }
8270 Py_INCREF(Py_None); resultobj = Py_None;
8271 return resultobj;
8272 fail:
8273 return NULL;
8274 }
8275
8276
8277 static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8278 PyObject *resultobj;
8279 wxFont *arg1 = (wxFont *) 0 ;
8280 int arg2 ;
8281 PyObject * obj0 = 0 ;
8282 PyObject * obj1 = 0 ;
8283 char *kwnames[] = {
8284 (char *) "self",(char *) "encoding", NULL
8285 };
8286
8287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8290 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8291 if (PyErr_Occurred()) SWIG_fail;
8292 {
8293 PyThreadState* __tstate = wxPyBeginAllowThreads();
8294 (arg1)->SetEncoding((wxFontEncoding )arg2);
8295
8296 wxPyEndAllowThreads(__tstate);
8297 if (PyErr_Occurred()) SWIG_fail;
8298 }
8299 Py_INCREF(Py_None); resultobj = Py_None;
8300 return resultobj;
8301 fail:
8302 return NULL;
8303 }
8304
8305
8306 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8307 PyObject *resultobj;
8308 wxFont *arg1 = (wxFont *) 0 ;
8309 wxNativeFontInfo *arg2 = 0 ;
8310 PyObject * obj0 = 0 ;
8311 PyObject * obj1 = 0 ;
8312 char *kwnames[] = {
8313 (char *) "self",(char *) "info", NULL
8314 };
8315
8316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8319 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8320 SWIG_POINTER_EXCEPTION | 0)) == -1)
8321 SWIG_fail;
8322 if (arg2 == NULL) {
8323 PyErr_SetString(PyExc_TypeError,"null reference");
8324 SWIG_fail;
8325 }
8326 {
8327 PyThreadState* __tstate = wxPyBeginAllowThreads();
8328 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8329
8330 wxPyEndAllowThreads(__tstate);
8331 if (PyErr_Occurred()) SWIG_fail;
8332 }
8333 Py_INCREF(Py_None); resultobj = Py_None;
8334 return resultobj;
8335 fail:
8336 return NULL;
8337 }
8338
8339
8340 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) {
8341 PyObject *resultobj;
8342 wxFont *arg1 = (wxFont *) 0 ;
8343 wxString *arg2 = 0 ;
8344 bool temp2 = False ;
8345 PyObject * obj0 = 0 ;
8346 PyObject * obj1 = 0 ;
8347 char *kwnames[] = {
8348 (char *) "self",(char *) "info", NULL
8349 };
8350
8351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8354 {
8355 arg2 = wxString_in_helper(obj1);
8356 if (arg2 == NULL) SWIG_fail;
8357 temp2 = True;
8358 }
8359 {
8360 PyThreadState* __tstate = wxPyBeginAllowThreads();
8361 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8362
8363 wxPyEndAllowThreads(__tstate);
8364 if (PyErr_Occurred()) SWIG_fail;
8365 }
8366 Py_INCREF(Py_None); resultobj = Py_None;
8367 {
8368 if (temp2)
8369 delete arg2;
8370 }
8371 return resultobj;
8372 fail:
8373 {
8374 if (temp2)
8375 delete arg2;
8376 }
8377 return NULL;
8378 }
8379
8380
8381 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
8382 PyObject *resultobj;
8383 wxFont *arg1 = (wxFont *) 0 ;
8384 wxString *arg2 = 0 ;
8385 bool temp2 = False ;
8386 PyObject * obj0 = 0 ;
8387 PyObject * obj1 = 0 ;
8388 char *kwnames[] = {
8389 (char *) "self",(char *) "info", NULL
8390 };
8391
8392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8395 {
8396 arg2 = wxString_in_helper(obj1);
8397 if (arg2 == NULL) SWIG_fail;
8398 temp2 = True;
8399 }
8400 {
8401 PyThreadState* __tstate = wxPyBeginAllowThreads();
8402 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8403
8404 wxPyEndAllowThreads(__tstate);
8405 if (PyErr_Occurred()) SWIG_fail;
8406 }
8407 Py_INCREF(Py_None); resultobj = Py_None;
8408 {
8409 if (temp2)
8410 delete arg2;
8411 }
8412 return resultobj;
8413 fail:
8414 {
8415 if (temp2)
8416 delete arg2;
8417 }
8418 return NULL;
8419 }
8420
8421
8422 static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) {
8423 PyObject *resultobj;
8424 wxFont *arg1 = (wxFont *) 0 ;
8425 wxString result;
8426 PyObject * obj0 = 0 ;
8427 char *kwnames[] = {
8428 (char *) "self", NULL
8429 };
8430
8431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8434 {
8435 PyThreadState* __tstate = wxPyBeginAllowThreads();
8436 result = ((wxFont const *)arg1)->GetFamilyString();
8437
8438 wxPyEndAllowThreads(__tstate);
8439 if (PyErr_Occurred()) SWIG_fail;
8440 }
8441 {
8442 #if wxUSE_UNICODE
8443 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8444 #else
8445 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8446 #endif
8447 }
8448 return resultobj;
8449 fail:
8450 return NULL;
8451 }
8452
8453
8454 static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) {
8455 PyObject *resultobj;
8456 wxFont *arg1 = (wxFont *) 0 ;
8457 wxString result;
8458 PyObject * obj0 = 0 ;
8459 char *kwnames[] = {
8460 (char *) "self", NULL
8461 };
8462
8463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8466 {
8467 PyThreadState* __tstate = wxPyBeginAllowThreads();
8468 result = ((wxFont const *)arg1)->GetStyleString();
8469
8470 wxPyEndAllowThreads(__tstate);
8471 if (PyErr_Occurred()) SWIG_fail;
8472 }
8473 {
8474 #if wxUSE_UNICODE
8475 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8476 #else
8477 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8478 #endif
8479 }
8480 return resultobj;
8481 fail:
8482 return NULL;
8483 }
8484
8485
8486 static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) {
8487 PyObject *resultobj;
8488 wxFont *arg1 = (wxFont *) 0 ;
8489 wxString result;
8490 PyObject * obj0 = 0 ;
8491 char *kwnames[] = {
8492 (char *) "self", NULL
8493 };
8494
8495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8498 {
8499 PyThreadState* __tstate = wxPyBeginAllowThreads();
8500 result = ((wxFont const *)arg1)->GetWeightString();
8501
8502 wxPyEndAllowThreads(__tstate);
8503 if (PyErr_Occurred()) SWIG_fail;
8504 }
8505 {
8506 #if wxUSE_UNICODE
8507 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8508 #else
8509 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8510 #endif
8511 }
8512 return resultobj;
8513 fail:
8514 return NULL;
8515 }
8516
8517
8518 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
8519 PyObject *resultobj;
8520 wxFont *arg1 = (wxFont *) 0 ;
8521 bool arg2 = (bool) True ;
8522 PyObject * obj0 = 0 ;
8523 PyObject * obj1 = 0 ;
8524 char *kwnames[] = {
8525 (char *) "self",(char *) "no", NULL
8526 };
8527
8528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8531 if (obj1) {
8532 arg2 = (bool) SWIG_AsBool(obj1);
8533 if (PyErr_Occurred()) SWIG_fail;
8534 }
8535 {
8536 PyThreadState* __tstate = wxPyBeginAllowThreads();
8537 (arg1)->SetNoAntiAliasing(arg2);
8538
8539 wxPyEndAllowThreads(__tstate);
8540 if (PyErr_Occurred()) SWIG_fail;
8541 }
8542 Py_INCREF(Py_None); resultobj = Py_None;
8543 return resultobj;
8544 fail:
8545 return NULL;
8546 }
8547
8548
8549 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
8550 PyObject *resultobj;
8551 wxFont *arg1 = (wxFont *) 0 ;
8552 bool result;
8553 PyObject * obj0 = 0 ;
8554 char *kwnames[] = {
8555 (char *) "self", NULL
8556 };
8557
8558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8561 {
8562 PyThreadState* __tstate = wxPyBeginAllowThreads();
8563 result = (bool)(arg1)->GetNoAntiAliasing();
8564
8565 wxPyEndAllowThreads(__tstate);
8566 if (PyErr_Occurred()) SWIG_fail;
8567 }
8568 {
8569 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8570 }
8571 return resultobj;
8572 fail:
8573 return NULL;
8574 }
8575
8576
8577 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8578 PyObject *resultobj;
8579 int result;
8580 char *kwnames[] = {
8581 NULL
8582 };
8583
8584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8585 {
8586 PyThreadState* __tstate = wxPyBeginAllowThreads();
8587 result = (int)wxFont::GetDefaultEncoding();
8588
8589 wxPyEndAllowThreads(__tstate);
8590 if (PyErr_Occurred()) SWIG_fail;
8591 }
8592 resultobj = SWIG_FromInt((int)result);
8593 return resultobj;
8594 fail:
8595 return NULL;
8596 }
8597
8598
8599 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8600 PyObject *resultobj;
8601 int arg1 ;
8602 PyObject * obj0 = 0 ;
8603 char *kwnames[] = {
8604 (char *) "encoding", NULL
8605 };
8606
8607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8608 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
8609 if (PyErr_Occurred()) SWIG_fail;
8610 {
8611 PyThreadState* __tstate = wxPyBeginAllowThreads();
8612 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8613
8614 wxPyEndAllowThreads(__tstate);
8615 if (PyErr_Occurred()) SWIG_fail;
8616 }
8617 Py_INCREF(Py_None); resultobj = Py_None;
8618 return resultobj;
8619 fail:
8620 return NULL;
8621 }
8622
8623
8624 static PyObject * Font_swigregister(PyObject *, PyObject *args) {
8625 PyObject *obj;
8626 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8627 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8628 Py_INCREF(obj);
8629 return Py_BuildValue((char *)"");
8630 }
8631 static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
8632 PyObject *resultobj;
8633 wxPyFontEnumerator *result;
8634 char *kwnames[] = {
8635 NULL
8636 };
8637
8638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8639 {
8640 PyThreadState* __tstate = wxPyBeginAllowThreads();
8641 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8642
8643 wxPyEndAllowThreads(__tstate);
8644 if (PyErr_Occurred()) SWIG_fail;
8645 }
8646 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
8647 return resultobj;
8648 fail:
8649 return NULL;
8650 }
8651
8652
8653 static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
8654 PyObject *resultobj;
8655 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8656 PyObject * obj0 = 0 ;
8657 char *kwnames[] = {
8658 (char *) "self", NULL
8659 };
8660
8661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8664 {
8665 PyThreadState* __tstate = wxPyBeginAllowThreads();
8666 delete arg1;
8667
8668 wxPyEndAllowThreads(__tstate);
8669 if (PyErr_Occurred()) SWIG_fail;
8670 }
8671 Py_INCREF(Py_None); resultobj = Py_None;
8672 return resultobj;
8673 fail:
8674 return NULL;
8675 }
8676
8677
8678 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8679 PyObject *resultobj;
8680 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8681 PyObject *arg2 = (PyObject *) 0 ;
8682 PyObject *arg3 = (PyObject *) 0 ;
8683 bool arg4 ;
8684 PyObject * obj0 = 0 ;
8685 PyObject * obj1 = 0 ;
8686 PyObject * obj2 = 0 ;
8687 PyObject * obj3 = 0 ;
8688 char *kwnames[] = {
8689 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8690 };
8691
8692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8695 arg2 = obj1;
8696 arg3 = obj2;
8697 arg4 = (bool) SWIG_AsBool(obj3);
8698 if (PyErr_Occurred()) SWIG_fail;
8699 {
8700 PyThreadState* __tstate = wxPyBeginAllowThreads();
8701 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8702
8703 wxPyEndAllowThreads(__tstate);
8704 if (PyErr_Occurred()) SWIG_fail;
8705 }
8706 Py_INCREF(Py_None); resultobj = Py_None;
8707 return resultobj;
8708 fail:
8709 return NULL;
8710 }
8711
8712
8713 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
8714 PyObject *resultobj;
8715 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8716 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8717 bool arg3 = (bool) False ;
8718 bool result;
8719 PyObject * obj0 = 0 ;
8720 PyObject * obj1 = 0 ;
8721 PyObject * obj2 = 0 ;
8722 char *kwnames[] = {
8723 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8724 };
8725
8726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8729 if (obj1) {
8730 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8731 if (PyErr_Occurred()) SWIG_fail;
8732 }
8733 if (obj2) {
8734 arg3 = (bool) SWIG_AsBool(obj2);
8735 if (PyErr_Occurred()) SWIG_fail;
8736 }
8737 {
8738 PyThreadState* __tstate = wxPyBeginAllowThreads();
8739 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8740
8741 wxPyEndAllowThreads(__tstate);
8742 if (PyErr_Occurred()) SWIG_fail;
8743 }
8744 {
8745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8746 }
8747 return resultobj;
8748 fail:
8749 return NULL;
8750 }
8751
8752
8753 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
8754 PyObject *resultobj;
8755 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8756 wxString const &arg2_defvalue = wxPyEmptyString ;
8757 wxString *arg2 = (wxString *) &arg2_defvalue ;
8758 bool result;
8759 bool temp2 = False ;
8760 PyObject * obj0 = 0 ;
8761 PyObject * obj1 = 0 ;
8762 char *kwnames[] = {
8763 (char *) "self",(char *) "facename", NULL
8764 };
8765
8766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8769 if (obj1) {
8770 {
8771 arg2 = wxString_in_helper(obj1);
8772 if (arg2 == NULL) SWIG_fail;
8773 temp2 = True;
8774 }
8775 }
8776 {
8777 PyThreadState* __tstate = wxPyBeginAllowThreads();
8778 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8779
8780 wxPyEndAllowThreads(__tstate);
8781 if (PyErr_Occurred()) SWIG_fail;
8782 }
8783 {
8784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8785 }
8786 {
8787 if (temp2)
8788 delete arg2;
8789 }
8790 return resultobj;
8791 fail:
8792 {
8793 if (temp2)
8794 delete arg2;
8795 }
8796 return NULL;
8797 }
8798
8799
8800 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
8801 PyObject *resultobj;
8802 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8803 PyObject *result;
8804 PyObject * obj0 = 0 ;
8805 char *kwnames[] = {
8806 (char *) "self", NULL
8807 };
8808
8809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
8810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8812 {
8813 PyThreadState* __tstate = wxPyBeginAllowThreads();
8814 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8815
8816 wxPyEndAllowThreads(__tstate);
8817 if (PyErr_Occurred()) SWIG_fail;
8818 }
8819 resultobj = result;
8820 return resultobj;
8821 fail:
8822 return NULL;
8823 }
8824
8825
8826 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
8827 PyObject *resultobj;
8828 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8829 PyObject *result;
8830 PyObject * obj0 = 0 ;
8831 char *kwnames[] = {
8832 (char *) "self", NULL
8833 };
8834
8835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
8836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8838 {
8839 PyThreadState* __tstate = wxPyBeginAllowThreads();
8840 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
8841
8842 wxPyEndAllowThreads(__tstate);
8843 if (PyErr_Occurred()) SWIG_fail;
8844 }
8845 resultobj = result;
8846 return resultobj;
8847 fail:
8848 return NULL;
8849 }
8850
8851
8852 static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) {
8853 PyObject *obj;
8854 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8855 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
8856 Py_INCREF(obj);
8857 return Py_BuildValue((char *)"");
8858 }
8859 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) {
8860 PyObject *resultobj;
8861 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8862 int arg2 ;
8863 PyObject * obj0 = 0 ;
8864 PyObject * obj1 = 0 ;
8865 char *kwnames[] = {
8866 (char *) "self",(char *) "Language", NULL
8867 };
8868
8869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
8870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8872 arg2 = (int) SWIG_AsInt(obj1);
8873 if (PyErr_Occurred()) SWIG_fail;
8874 if (arg1) (arg1)->Language = arg2;
8875
8876 Py_INCREF(Py_None); resultobj = Py_None;
8877 return resultobj;
8878 fail:
8879 return NULL;
8880 }
8881
8882
8883 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) {
8884 PyObject *resultobj;
8885 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8886 int result;
8887 PyObject * obj0 = 0 ;
8888 char *kwnames[] = {
8889 (char *) "self", NULL
8890 };
8891
8892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
8893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8895 result = (int) ((arg1)->Language);
8896
8897 resultobj = SWIG_FromInt((int)result);
8898 return resultobj;
8899 fail:
8900 return NULL;
8901 }
8902
8903
8904 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) {
8905 PyObject *resultobj;
8906 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8907 wxString *arg2 = (wxString *) 0 ;
8908 bool temp2 = False ;
8909 PyObject * obj0 = 0 ;
8910 PyObject * obj1 = 0 ;
8911 char *kwnames[] = {
8912 (char *) "self",(char *) "CanonicalName", NULL
8913 };
8914
8915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
8916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8918 {
8919 arg2 = wxString_in_helper(obj1);
8920 if (arg2 == NULL) SWIG_fail;
8921 temp2 = True;
8922 }
8923 if (arg1) (arg1)->CanonicalName = *arg2;
8924
8925 Py_INCREF(Py_None); resultobj = Py_None;
8926 {
8927 if (temp2)
8928 delete arg2;
8929 }
8930 return resultobj;
8931 fail:
8932 {
8933 if (temp2)
8934 delete arg2;
8935 }
8936 return NULL;
8937 }
8938
8939
8940 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) {
8941 PyObject *resultobj;
8942 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8943 wxString *result;
8944 PyObject * obj0 = 0 ;
8945 char *kwnames[] = {
8946 (char *) "self", NULL
8947 };
8948
8949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
8950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8952 result = (wxString *)& ((arg1)->CanonicalName);
8953
8954 {
8955 #if wxUSE_UNICODE
8956 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8957 #else
8958 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8959 #endif
8960 }
8961 return resultobj;
8962 fail:
8963 return NULL;
8964 }
8965
8966
8967 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) {
8968 PyObject *resultobj;
8969 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8970 wxString *arg2 = (wxString *) 0 ;
8971 bool temp2 = False ;
8972 PyObject * obj0 = 0 ;
8973 PyObject * obj1 = 0 ;
8974 char *kwnames[] = {
8975 (char *) "self",(char *) "Description", NULL
8976 };
8977
8978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
8979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8981 {
8982 arg2 = wxString_in_helper(obj1);
8983 if (arg2 == NULL) SWIG_fail;
8984 temp2 = True;
8985 }
8986 if (arg1) (arg1)->Description = *arg2;
8987
8988 Py_INCREF(Py_None); resultobj = Py_None;
8989 {
8990 if (temp2)
8991 delete arg2;
8992 }
8993 return resultobj;
8994 fail:
8995 {
8996 if (temp2)
8997 delete arg2;
8998 }
8999 return NULL;
9000 }
9001
9002
9003 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) {
9004 PyObject *resultobj;
9005 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9006 wxString *result;
9007 PyObject * obj0 = 0 ;
9008 char *kwnames[] = {
9009 (char *) "self", NULL
9010 };
9011
9012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9015 result = (wxString *)& ((arg1)->Description);
9016
9017 {
9018 #if wxUSE_UNICODE
9019 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9020 #else
9021 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9022 #endif
9023 }
9024 return resultobj;
9025 fail:
9026 return NULL;
9027 }
9028
9029
9030 static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) {
9031 PyObject *obj;
9032 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9033 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9034 Py_INCREF(obj);
9035 return Py_BuildValue((char *)"");
9036 }
9037 static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
9038 PyObject *resultobj;
9039 int arg1 = (int) wxLANGUAGE_DEFAULT ;
9040 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9041 wxLocale *result;
9042 PyObject * obj0 = 0 ;
9043 PyObject * obj1 = 0 ;
9044 char *kwnames[] = {
9045 (char *) "language",(char *) "flags", NULL
9046 };
9047
9048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9049 if (obj0) {
9050 arg1 = (int) SWIG_AsInt(obj0);
9051 if (PyErr_Occurred()) SWIG_fail;
9052 }
9053 if (obj1) {
9054 arg2 = (int) SWIG_AsInt(obj1);
9055 if (PyErr_Occurred()) SWIG_fail;
9056 }
9057 {
9058 PyThreadState* __tstate = wxPyBeginAllowThreads();
9059 result = (wxLocale *)new wxLocale(arg1,arg2);
9060
9061 wxPyEndAllowThreads(__tstate);
9062 if (PyErr_Occurred()) SWIG_fail;
9063 }
9064 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9065 return resultobj;
9066 fail:
9067 return NULL;
9068 }
9069
9070
9071 static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
9072 PyObject *resultobj;
9073 wxLocale *arg1 = (wxLocale *) 0 ;
9074 PyObject * obj0 = 0 ;
9075 char *kwnames[] = {
9076 (char *) "self", NULL
9077 };
9078
9079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9082 {
9083 PyThreadState* __tstate = wxPyBeginAllowThreads();
9084 delete arg1;
9085
9086 wxPyEndAllowThreads(__tstate);
9087 if (PyErr_Occurred()) SWIG_fail;
9088 }
9089 Py_INCREF(Py_None); resultobj = Py_None;
9090 return resultobj;
9091 fail:
9092 return NULL;
9093 }
9094
9095
9096 static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) {
9097 PyObject *resultobj;
9098 wxLocale *arg1 = (wxLocale *) 0 ;
9099 wxString *arg2 = 0 ;
9100 wxString const &arg3_defvalue = wxPyEmptyString ;
9101 wxString *arg3 = (wxString *) &arg3_defvalue ;
9102 wxString const &arg4_defvalue = wxPyEmptyString ;
9103 wxString *arg4 = (wxString *) &arg4_defvalue ;
9104 bool arg5 = (bool) True ;
9105 bool arg6 = (bool) False ;
9106 bool result;
9107 bool temp2 = False ;
9108 bool temp3 = False ;
9109 bool temp4 = False ;
9110 PyObject * obj0 = 0 ;
9111 PyObject * obj1 = 0 ;
9112 PyObject * obj2 = 0 ;
9113 PyObject * obj3 = 0 ;
9114 PyObject * obj4 = 0 ;
9115 PyObject * obj5 = 0 ;
9116 char *kwnames[] = {
9117 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9118 };
9119
9120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9123 {
9124 arg2 = wxString_in_helper(obj1);
9125 if (arg2 == NULL) SWIG_fail;
9126 temp2 = True;
9127 }
9128 if (obj2) {
9129 {
9130 arg3 = wxString_in_helper(obj2);
9131 if (arg3 == NULL) SWIG_fail;
9132 temp3 = True;
9133 }
9134 }
9135 if (obj3) {
9136 {
9137 arg4 = wxString_in_helper(obj3);
9138 if (arg4 == NULL) SWIG_fail;
9139 temp4 = True;
9140 }
9141 }
9142 if (obj4) {
9143 arg5 = (bool) SWIG_AsBool(obj4);
9144 if (PyErr_Occurred()) SWIG_fail;
9145 }
9146 if (obj5) {
9147 arg6 = (bool) SWIG_AsBool(obj5);
9148 if (PyErr_Occurred()) SWIG_fail;
9149 }
9150 {
9151 PyThreadState* __tstate = wxPyBeginAllowThreads();
9152 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9153
9154 wxPyEndAllowThreads(__tstate);
9155 if (PyErr_Occurred()) SWIG_fail;
9156 }
9157 {
9158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9159 }
9160 {
9161 if (temp2)
9162 delete arg2;
9163 }
9164 {
9165 if (temp3)
9166 delete arg3;
9167 }
9168 {
9169 if (temp4)
9170 delete arg4;
9171 }
9172 return resultobj;
9173 fail:
9174 {
9175 if (temp2)
9176 delete arg2;
9177 }
9178 {
9179 if (temp3)
9180 delete arg3;
9181 }
9182 {
9183 if (temp4)
9184 delete arg4;
9185 }
9186 return NULL;
9187 }
9188
9189
9190 static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) {
9191 PyObject *resultobj;
9192 wxLocale *arg1 = (wxLocale *) 0 ;
9193 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9194 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9195 bool result;
9196 PyObject * obj0 = 0 ;
9197 PyObject * obj1 = 0 ;
9198 PyObject * obj2 = 0 ;
9199 char *kwnames[] = {
9200 (char *) "self",(char *) "language",(char *) "flags", NULL
9201 };
9202
9203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9206 if (obj1) {
9207 arg2 = (int) SWIG_AsInt(obj1);
9208 if (PyErr_Occurred()) SWIG_fail;
9209 }
9210 if (obj2) {
9211 arg3 = (int) SWIG_AsInt(obj2);
9212 if (PyErr_Occurred()) SWIG_fail;
9213 }
9214 {
9215 PyThreadState* __tstate = wxPyBeginAllowThreads();
9216 result = (bool)(arg1)->Init(arg2,arg3);
9217
9218 wxPyEndAllowThreads(__tstate);
9219 if (PyErr_Occurred()) SWIG_fail;
9220 }
9221 {
9222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9223 }
9224 return resultobj;
9225 fail:
9226 return NULL;
9227 }
9228
9229
9230 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
9231 PyObject *resultobj;
9232 int result;
9233 char *kwnames[] = {
9234 NULL
9235 };
9236
9237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9238 {
9239 PyThreadState* __tstate = wxPyBeginAllowThreads();
9240 result = (int)wxLocale::GetSystemLanguage();
9241
9242 wxPyEndAllowThreads(__tstate);
9243 if (PyErr_Occurred()) SWIG_fail;
9244 }
9245 resultobj = SWIG_FromInt((int)result);
9246 return resultobj;
9247 fail:
9248 return NULL;
9249 }
9250
9251
9252 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
9253 PyObject *resultobj;
9254 int result;
9255 char *kwnames[] = {
9256 NULL
9257 };
9258
9259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9260 {
9261 PyThreadState* __tstate = wxPyBeginAllowThreads();
9262 result = (int)wxLocale::GetSystemEncoding();
9263
9264 wxPyEndAllowThreads(__tstate);
9265 if (PyErr_Occurred()) SWIG_fail;
9266 }
9267 resultobj = SWIG_FromInt((int)result);
9268 return resultobj;
9269 fail:
9270 return NULL;
9271 }
9272
9273
9274 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
9275 PyObject *resultobj;
9276 wxString result;
9277 char *kwnames[] = {
9278 NULL
9279 };
9280
9281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9282 {
9283 PyThreadState* __tstate = wxPyBeginAllowThreads();
9284 result = wxLocale::GetSystemEncodingName();
9285
9286 wxPyEndAllowThreads(__tstate);
9287 if (PyErr_Occurred()) SWIG_fail;
9288 }
9289 {
9290 #if wxUSE_UNICODE
9291 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9292 #else
9293 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9294 #endif
9295 }
9296 return resultobj;
9297 fail:
9298 return NULL;
9299 }
9300
9301
9302 static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
9303 PyObject *resultobj;
9304 wxLocale *arg1 = (wxLocale *) 0 ;
9305 bool result;
9306 PyObject * obj0 = 0 ;
9307 char *kwnames[] = {
9308 (char *) "self", NULL
9309 };
9310
9311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9314 {
9315 PyThreadState* __tstate = wxPyBeginAllowThreads();
9316 result = (bool)((wxLocale const *)arg1)->IsOk();
9317
9318 wxPyEndAllowThreads(__tstate);
9319 if (PyErr_Occurred()) SWIG_fail;
9320 }
9321 {
9322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9323 }
9324 return resultobj;
9325 fail:
9326 return NULL;
9327 }
9328
9329
9330 static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
9331 PyObject *resultobj;
9332 wxLocale *arg1 = (wxLocale *) 0 ;
9333 wxString result;
9334 PyObject * obj0 = 0 ;
9335 char *kwnames[] = {
9336 (char *) "self", NULL
9337 };
9338
9339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9342 {
9343 PyThreadState* __tstate = wxPyBeginAllowThreads();
9344 result = ((wxLocale const *)arg1)->GetLocale();
9345
9346 wxPyEndAllowThreads(__tstate);
9347 if (PyErr_Occurred()) SWIG_fail;
9348 }
9349 {
9350 #if wxUSE_UNICODE
9351 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9352 #else
9353 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9354 #endif
9355 }
9356 return resultobj;
9357 fail:
9358 return NULL;
9359 }
9360
9361
9362 static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
9363 PyObject *resultobj;
9364 wxLocale *arg1 = (wxLocale *) 0 ;
9365 int result;
9366 PyObject * obj0 = 0 ;
9367 char *kwnames[] = {
9368 (char *) "self", NULL
9369 };
9370
9371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9374 {
9375 PyThreadState* __tstate = wxPyBeginAllowThreads();
9376 result = (int)((wxLocale const *)arg1)->GetLanguage();
9377
9378 wxPyEndAllowThreads(__tstate);
9379 if (PyErr_Occurred()) SWIG_fail;
9380 }
9381 resultobj = SWIG_FromInt((int)result);
9382 return resultobj;
9383 fail:
9384 return NULL;
9385 }
9386
9387
9388 static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) {
9389 PyObject *resultobj;
9390 wxLocale *arg1 = (wxLocale *) 0 ;
9391 wxString result;
9392 PyObject * obj0 = 0 ;
9393 char *kwnames[] = {
9394 (char *) "self", NULL
9395 };
9396
9397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9400 {
9401 PyThreadState* __tstate = wxPyBeginAllowThreads();
9402 result = ((wxLocale const *)arg1)->GetSysName();
9403
9404 wxPyEndAllowThreads(__tstate);
9405 if (PyErr_Occurred()) SWIG_fail;
9406 }
9407 {
9408 #if wxUSE_UNICODE
9409 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9410 #else
9411 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9412 #endif
9413 }
9414 return resultobj;
9415 fail:
9416 return NULL;
9417 }
9418
9419
9420 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) {
9421 PyObject *resultobj;
9422 wxLocale *arg1 = (wxLocale *) 0 ;
9423 wxString result;
9424 PyObject * obj0 = 0 ;
9425 char *kwnames[] = {
9426 (char *) "self", NULL
9427 };
9428
9429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9432 {
9433 PyThreadState* __tstate = wxPyBeginAllowThreads();
9434 result = ((wxLocale const *)arg1)->GetCanonicalName();
9435
9436 wxPyEndAllowThreads(__tstate);
9437 if (PyErr_Occurred()) SWIG_fail;
9438 }
9439 {
9440 #if wxUSE_UNICODE
9441 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9442 #else
9443 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9444 #endif
9445 }
9446 return resultobj;
9447 fail:
9448 return NULL;
9449 }
9450
9451
9452 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
9453 PyObject *resultobj;
9454 wxString *arg1 = 0 ;
9455 bool temp1 = False ;
9456 PyObject * obj0 = 0 ;
9457 char *kwnames[] = {
9458 (char *) "prefix", NULL
9459 };
9460
9461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9462 {
9463 arg1 = wxString_in_helper(obj0);
9464 if (arg1 == NULL) SWIG_fail;
9465 temp1 = True;
9466 }
9467 {
9468 PyThreadState* __tstate = wxPyBeginAllowThreads();
9469 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9470
9471 wxPyEndAllowThreads(__tstate);
9472 if (PyErr_Occurred()) SWIG_fail;
9473 }
9474 Py_INCREF(Py_None); resultobj = Py_None;
9475 {
9476 if (temp1)
9477 delete arg1;
9478 }
9479 return resultobj;
9480 fail:
9481 {
9482 if (temp1)
9483 delete arg1;
9484 }
9485 return NULL;
9486 }
9487
9488
9489 static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) {
9490 PyObject *resultobj;
9491 wxLocale *arg1 = (wxLocale *) 0 ;
9492 wxString *arg2 = 0 ;
9493 bool result;
9494 bool temp2 = False ;
9495 PyObject * obj0 = 0 ;
9496 PyObject * obj1 = 0 ;
9497 char *kwnames[] = {
9498 (char *) "self",(char *) "szDomain", NULL
9499 };
9500
9501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9504 {
9505 arg2 = wxString_in_helper(obj1);
9506 if (arg2 == NULL) SWIG_fail;
9507 temp2 = True;
9508 }
9509 {
9510 PyThreadState* __tstate = wxPyBeginAllowThreads();
9511 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9512
9513 wxPyEndAllowThreads(__tstate);
9514 if (PyErr_Occurred()) SWIG_fail;
9515 }
9516 {
9517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9518 }
9519 {
9520 if (temp2)
9521 delete arg2;
9522 }
9523 return resultobj;
9524 fail:
9525 {
9526 if (temp2)
9527 delete arg2;
9528 }
9529 return NULL;
9530 }
9531
9532
9533 static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) {
9534 PyObject *resultobj;
9535 wxLocale *arg1 = (wxLocale *) 0 ;
9536 wxString *arg2 = 0 ;
9537 bool result;
9538 bool temp2 = False ;
9539 PyObject * obj0 = 0 ;
9540 PyObject * obj1 = 0 ;
9541 char *kwnames[] = {
9542 (char *) "self",(char *) "szDomain", NULL
9543 };
9544
9545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9548 {
9549 arg2 = wxString_in_helper(obj1);
9550 if (arg2 == NULL) SWIG_fail;
9551 temp2 = True;
9552 }
9553 {
9554 PyThreadState* __tstate = wxPyBeginAllowThreads();
9555 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9556
9557 wxPyEndAllowThreads(__tstate);
9558 if (PyErr_Occurred()) SWIG_fail;
9559 }
9560 {
9561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9562 }
9563 {
9564 if (temp2)
9565 delete arg2;
9566 }
9567 return resultobj;
9568 fail:
9569 {
9570 if (temp2)
9571 delete arg2;
9572 }
9573 return NULL;
9574 }
9575
9576
9577 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9578 PyObject *resultobj;
9579 int arg1 ;
9580 wxLanguageInfo *result;
9581 PyObject * obj0 = 0 ;
9582 char *kwnames[] = {
9583 (char *) "lang", NULL
9584 };
9585
9586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9587 arg1 = (int) SWIG_AsInt(obj0);
9588 if (PyErr_Occurred()) SWIG_fail;
9589 {
9590 PyThreadState* __tstate = wxPyBeginAllowThreads();
9591 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9592
9593 wxPyEndAllowThreads(__tstate);
9594 if (PyErr_Occurred()) SWIG_fail;
9595 }
9596 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9597 return resultobj;
9598 fail:
9599 return NULL;
9600 }
9601
9602
9603 static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) {
9604 PyObject *resultobj;
9605 int arg1 ;
9606 wxString result;
9607 PyObject * obj0 = 0 ;
9608 char *kwnames[] = {
9609 (char *) "lang", NULL
9610 };
9611
9612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9613 arg1 = (int) SWIG_AsInt(obj0);
9614 if (PyErr_Occurred()) SWIG_fail;
9615 {
9616 PyThreadState* __tstate = wxPyBeginAllowThreads();
9617 result = wxLocale::GetLanguageName(arg1);
9618
9619 wxPyEndAllowThreads(__tstate);
9620 if (PyErr_Occurred()) SWIG_fail;
9621 }
9622 {
9623 #if wxUSE_UNICODE
9624 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9625 #else
9626 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9627 #endif
9628 }
9629 return resultobj;
9630 fail:
9631 return NULL;
9632 }
9633
9634
9635 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9636 PyObject *resultobj;
9637 wxString *arg1 = 0 ;
9638 wxLanguageInfo *result;
9639 bool temp1 = False ;
9640 PyObject * obj0 = 0 ;
9641 char *kwnames[] = {
9642 (char *) "locale", NULL
9643 };
9644
9645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9646 {
9647 arg1 = wxString_in_helper(obj0);
9648 if (arg1 == NULL) SWIG_fail;
9649 temp1 = True;
9650 }
9651 {
9652 PyThreadState* __tstate = wxPyBeginAllowThreads();
9653 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9654
9655 wxPyEndAllowThreads(__tstate);
9656 if (PyErr_Occurred()) SWIG_fail;
9657 }
9658 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9659 {
9660 if (temp1)
9661 delete arg1;
9662 }
9663 return resultobj;
9664 fail:
9665 {
9666 if (temp1)
9667 delete arg1;
9668 }
9669 return NULL;
9670 }
9671
9672
9673 static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
9674 PyObject *resultobj;
9675 wxLanguageInfo *arg1 = 0 ;
9676 PyObject * obj0 = 0 ;
9677 char *kwnames[] = {
9678 (char *) "info", NULL
9679 };
9680
9681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9683 SWIG_POINTER_EXCEPTION | 0)) == -1)
9684 SWIG_fail;
9685 if (arg1 == NULL) {
9686 PyErr_SetString(PyExc_TypeError,"null reference");
9687 SWIG_fail;
9688 }
9689 {
9690 PyThreadState* __tstate = wxPyBeginAllowThreads();
9691 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9692
9693 wxPyEndAllowThreads(__tstate);
9694 if (PyErr_Occurred()) SWIG_fail;
9695 }
9696 Py_INCREF(Py_None); resultobj = Py_None;
9697 return resultobj;
9698 fail:
9699 return NULL;
9700 }
9701
9702
9703 static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
9704 PyObject *resultobj;
9705 wxLocale *arg1 = (wxLocale *) 0 ;
9706 wxString *arg2 = 0 ;
9707 wxString const &arg3_defvalue = wxPyEmptyString ;
9708 wxString *arg3 = (wxString *) &arg3_defvalue ;
9709 wxString result;
9710 bool temp2 = False ;
9711 bool temp3 = False ;
9712 PyObject * obj0 = 0 ;
9713 PyObject * obj1 = 0 ;
9714 PyObject * obj2 = 0 ;
9715 char *kwnames[] = {
9716 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9717 };
9718
9719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9722 {
9723 arg2 = wxString_in_helper(obj1);
9724 if (arg2 == NULL) SWIG_fail;
9725 temp2 = True;
9726 }
9727 if (obj2) {
9728 {
9729 arg3 = wxString_in_helper(obj2);
9730 if (arg3 == NULL) SWIG_fail;
9731 temp3 = True;
9732 }
9733 }
9734 {
9735 PyThreadState* __tstate = wxPyBeginAllowThreads();
9736 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9737
9738 wxPyEndAllowThreads(__tstate);
9739 if (PyErr_Occurred()) SWIG_fail;
9740 }
9741 {
9742 #if wxUSE_UNICODE
9743 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9744 #else
9745 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9746 #endif
9747 }
9748 {
9749 if (temp2)
9750 delete arg2;
9751 }
9752 {
9753 if (temp3)
9754 delete arg3;
9755 }
9756 return resultobj;
9757 fail:
9758 {
9759 if (temp2)
9760 delete arg2;
9761 }
9762 {
9763 if (temp3)
9764 delete arg3;
9765 }
9766 return NULL;
9767 }
9768
9769
9770 static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
9771 PyObject *resultobj;
9772 wxLocale *arg1 = (wxLocale *) 0 ;
9773 wxString *result;
9774 PyObject * obj0 = 0 ;
9775 char *kwnames[] = {
9776 (char *) "self", NULL
9777 };
9778
9779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9782 {
9783 PyThreadState* __tstate = wxPyBeginAllowThreads();
9784 {
9785 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9786 result = (wxString *) &_result_ref;
9787 }
9788
9789 wxPyEndAllowThreads(__tstate);
9790 if (PyErr_Occurred()) SWIG_fail;
9791 }
9792 {
9793 #if wxUSE_UNICODE
9794 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9795 #else
9796 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9797 #endif
9798 }
9799 return resultobj;
9800 fail:
9801 return NULL;
9802 }
9803
9804
9805 static PyObject * Locale_swigregister(PyObject *, PyObject *args) {
9806 PyObject *obj;
9807 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9808 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9809 Py_INCREF(obj);
9810 return Py_BuildValue((char *)"");
9811 }
9812 static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
9813 PyObject *resultobj;
9814 wxLocale *result;
9815 char *kwnames[] = {
9816 NULL
9817 };
9818
9819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9820 {
9821 PyThreadState* __tstate = wxPyBeginAllowThreads();
9822 result = (wxLocale *)wxGetLocale();
9823
9824 wxPyEndAllowThreads(__tstate);
9825 if (PyErr_Occurred()) SWIG_fail;
9826 }
9827 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
9828 return resultobj;
9829 fail:
9830 return NULL;
9831 }
9832
9833
9834 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) {
9835 PyObject *resultobj;
9836 wxString *arg1 = 0 ;
9837 wxString result;
9838 bool temp1 = False ;
9839 PyObject * obj0 = 0 ;
9840
9841 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9842 {
9843 arg1 = wxString_in_helper(obj0);
9844 if (arg1 == NULL) SWIG_fail;
9845 temp1 = True;
9846 }
9847 {
9848 PyThreadState* __tstate = wxPyBeginAllowThreads();
9849 result = wxGetTranslation((wxString const &)*arg1);
9850
9851 wxPyEndAllowThreads(__tstate);
9852 if (PyErr_Occurred()) SWIG_fail;
9853 }
9854 {
9855 #if wxUSE_UNICODE
9856 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9857 #else
9858 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9859 #endif
9860 }
9861 {
9862 if (temp1)
9863 delete arg1;
9864 }
9865 return resultobj;
9866 fail:
9867 {
9868 if (temp1)
9869 delete arg1;
9870 }
9871 return NULL;
9872 }
9873
9874
9875 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) {
9876 PyObject *resultobj;
9877 wxString *arg1 = 0 ;
9878 wxString *arg2 = 0 ;
9879 size_t arg3 ;
9880 wxString result;
9881 bool temp1 = False ;
9882 bool temp2 = False ;
9883 PyObject * obj0 = 0 ;
9884 PyObject * obj1 = 0 ;
9885 PyObject * obj2 = 0 ;
9886
9887 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
9888 {
9889 arg1 = wxString_in_helper(obj0);
9890 if (arg1 == NULL) SWIG_fail;
9891 temp1 = True;
9892 }
9893 {
9894 arg2 = wxString_in_helper(obj1);
9895 if (arg2 == NULL) SWIG_fail;
9896 temp2 = True;
9897 }
9898 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
9899 if (PyErr_Occurred()) SWIG_fail;
9900 {
9901 PyThreadState* __tstate = wxPyBeginAllowThreads();
9902 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
9903
9904 wxPyEndAllowThreads(__tstate);
9905 if (PyErr_Occurred()) SWIG_fail;
9906 }
9907 {
9908 #if wxUSE_UNICODE
9909 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9910 #else
9911 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9912 #endif
9913 }
9914 {
9915 if (temp1)
9916 delete arg1;
9917 }
9918 {
9919 if (temp2)
9920 delete arg2;
9921 }
9922 return resultobj;
9923 fail:
9924 {
9925 if (temp1)
9926 delete arg1;
9927 }
9928 {
9929 if (temp2)
9930 delete arg2;
9931 }
9932 return NULL;
9933 }
9934
9935
9936 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
9937 int argc;
9938 PyObject *argv[4];
9939 int ii;
9940
9941 argc = PyObject_Length(args);
9942 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
9943 argv[ii] = PyTuple_GetItem(args,ii);
9944 }
9945 if (argc == 1) {
9946 int _v;
9947 {
9948 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9949 }
9950 if (_v) {
9951 return _wrap_GetTranslation__SWIG_0(self,args);
9952 }
9953 }
9954 if (argc == 3) {
9955 int _v;
9956 {
9957 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9958 }
9959 if (_v) {
9960 {
9961 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
9962 }
9963 if (_v) {
9964 _v = SWIG_CheckUnsignedLong(argv[2]);
9965 if (_v) {
9966 return _wrap_GetTranslation__SWIG_1(self,args);
9967 }
9968 }
9969 }
9970 }
9971
9972 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
9973 return NULL;
9974 }
9975
9976
9977 static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
9978 PyObject *resultobj;
9979 wxEncodingConverter *result;
9980 char *kwnames[] = {
9981 NULL
9982 };
9983
9984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
9985 {
9986 PyThreadState* __tstate = wxPyBeginAllowThreads();
9987 result = (wxEncodingConverter *)new wxEncodingConverter();
9988
9989 wxPyEndAllowThreads(__tstate);
9990 if (PyErr_Occurred()) SWIG_fail;
9991 }
9992 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
9993 return resultobj;
9994 fail:
9995 return NULL;
9996 }
9997
9998
9999 static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
10000 PyObject *resultobj;
10001 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10002 PyObject * obj0 = 0 ;
10003 char *kwnames[] = {
10004 (char *) "self", NULL
10005 };
10006
10007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10010 {
10011 PyThreadState* __tstate = wxPyBeginAllowThreads();
10012 delete arg1;
10013
10014 wxPyEndAllowThreads(__tstate);
10015 if (PyErr_Occurred()) SWIG_fail;
10016 }
10017 Py_INCREF(Py_None); resultobj = Py_None;
10018 return resultobj;
10019 fail:
10020 return NULL;
10021 }
10022
10023
10024 static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) {
10025 PyObject *resultobj;
10026 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10027 int arg2 ;
10028 int arg3 ;
10029 int arg4 = (int) wxCONVERT_STRICT ;
10030 bool result;
10031 PyObject * obj0 = 0 ;
10032 PyObject * obj1 = 0 ;
10033 PyObject * obj2 = 0 ;
10034 PyObject * obj3 = 0 ;
10035 char *kwnames[] = {
10036 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10037 };
10038
10039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10042 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10043 if (PyErr_Occurred()) SWIG_fail;
10044 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10045 if (PyErr_Occurred()) SWIG_fail;
10046 if (obj3) {
10047 arg4 = (int) SWIG_AsInt(obj3);
10048 if (PyErr_Occurred()) SWIG_fail;
10049 }
10050 {
10051 PyThreadState* __tstate = wxPyBeginAllowThreads();
10052 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10053
10054 wxPyEndAllowThreads(__tstate);
10055 if (PyErr_Occurred()) SWIG_fail;
10056 }
10057 {
10058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10059 }
10060 return resultobj;
10061 fail:
10062 return NULL;
10063 }
10064
10065
10066 static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) {
10067 PyObject *resultobj;
10068 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10069 wxString *arg2 = 0 ;
10070 wxString result;
10071 bool temp2 = False ;
10072 PyObject * obj0 = 0 ;
10073 PyObject * obj1 = 0 ;
10074 char *kwnames[] = {
10075 (char *) "self",(char *) "input", NULL
10076 };
10077
10078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10081 {
10082 arg2 = wxString_in_helper(obj1);
10083 if (arg2 == NULL) SWIG_fail;
10084 temp2 = True;
10085 }
10086 {
10087 PyThreadState* __tstate = wxPyBeginAllowThreads();
10088 result = (arg1)->Convert((wxString const &)*arg2);
10089
10090 wxPyEndAllowThreads(__tstate);
10091 if (PyErr_Occurred()) SWIG_fail;
10092 }
10093 {
10094 #if wxUSE_UNICODE
10095 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10096 #else
10097 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10098 #endif
10099 }
10100 {
10101 if (temp2)
10102 delete arg2;
10103 }
10104 return resultobj;
10105 fail:
10106 {
10107 if (temp2)
10108 delete arg2;
10109 }
10110 return NULL;
10111 }
10112
10113
10114 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
10115 PyObject *resultobj;
10116 int arg1 ;
10117 int arg2 = (int) wxPLATFORM_CURRENT ;
10118 wxFontEncodingArray result;
10119 PyObject * obj0 = 0 ;
10120 PyObject * obj1 = 0 ;
10121 char *kwnames[] = {
10122 (char *) "enc",(char *) "platform", NULL
10123 };
10124
10125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10126 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10127 if (PyErr_Occurred()) SWIG_fail;
10128 if (obj1) {
10129 arg2 = (int) SWIG_AsInt(obj1);
10130 if (PyErr_Occurred()) SWIG_fail;
10131 }
10132 {
10133 PyThreadState* __tstate = wxPyBeginAllowThreads();
10134 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10135
10136 wxPyEndAllowThreads(__tstate);
10137 if (PyErr_Occurred()) SWIG_fail;
10138 }
10139 {
10140 resultobj = PyList_New(0);
10141 for (size_t i=0; i < (&result)->GetCount(); i++) {
10142 PyObject* number = PyInt_FromLong((&result)->Item(i));
10143 PyList_Append(resultobj, number);
10144 Py_DECREF(number);
10145 }
10146 }
10147 return resultobj;
10148 fail:
10149 return NULL;
10150 }
10151
10152
10153 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
10154 PyObject *resultobj;
10155 int arg1 ;
10156 wxFontEncodingArray result;
10157 PyObject * obj0 = 0 ;
10158 char *kwnames[] = {
10159 (char *) "enc", NULL
10160 };
10161
10162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10163 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10164 if (PyErr_Occurred()) SWIG_fail;
10165 {
10166 PyThreadState* __tstate = wxPyBeginAllowThreads();
10167 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10168
10169 wxPyEndAllowThreads(__tstate);
10170 if (PyErr_Occurred()) SWIG_fail;
10171 }
10172 {
10173 resultobj = PyList_New(0);
10174 for (size_t i=0; i < (&result)->GetCount(); i++) {
10175 PyObject* number = PyInt_FromLong((&result)->Item(i));
10176 PyList_Append(resultobj, number);
10177 Py_DECREF(number);
10178 }
10179 }
10180 return resultobj;
10181 fail:
10182 return NULL;
10183 }
10184
10185
10186 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) {
10187 PyObject *resultobj;
10188 int arg1 ;
10189 int arg2 ;
10190 bool result;
10191 PyObject * obj0 = 0 ;
10192 PyObject * obj1 = 0 ;
10193 char *kwnames[] = {
10194 (char *) "encIn",(char *) "encOut", NULL
10195 };
10196
10197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10198 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10199 if (PyErr_Occurred()) SWIG_fail;
10200 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10201 if (PyErr_Occurred()) SWIG_fail;
10202 {
10203 PyThreadState* __tstate = wxPyBeginAllowThreads();
10204 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10205
10206 wxPyEndAllowThreads(__tstate);
10207 if (PyErr_Occurred()) SWIG_fail;
10208 }
10209 {
10210 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10211 }
10212 return resultobj;
10213 fail:
10214 return NULL;
10215 }
10216
10217
10218 static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) {
10219 PyObject *obj;
10220 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10221 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10222 Py_INCREF(obj);
10223 return Py_BuildValue((char *)"");
10224 }
10225 static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) {
10226 PyObject *resultobj;
10227 wxDC *arg1 = (wxDC *) 0 ;
10228 PyObject * obj0 = 0 ;
10229 char *kwnames[] = {
10230 (char *) "self", NULL
10231 };
10232
10233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10236 {
10237 PyThreadState* __tstate = wxPyBeginAllowThreads();
10238 delete arg1;
10239
10240 wxPyEndAllowThreads(__tstate);
10241 if (PyErr_Occurred()) SWIG_fail;
10242 }
10243 Py_INCREF(Py_None); resultobj = Py_None;
10244 return resultobj;
10245 fail:
10246 return NULL;
10247 }
10248
10249
10250 static PyObject *_wrap_DC_BeginDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
10251 PyObject *resultobj;
10252 wxDC *arg1 = (wxDC *) 0 ;
10253 PyObject * obj0 = 0 ;
10254 char *kwnames[] = {
10255 (char *) "self", NULL
10256 };
10257
10258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10261 {
10262 PyThreadState* __tstate = wxPyBeginAllowThreads();
10263 (arg1)->BeginDrawing();
10264
10265 wxPyEndAllowThreads(__tstate);
10266 if (PyErr_Occurred()) SWIG_fail;
10267 }
10268 Py_INCREF(Py_None); resultobj = Py_None;
10269 return resultobj;
10270 fail:
10271 return NULL;
10272 }
10273
10274
10275 static PyObject *_wrap_DC_EndDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
10276 PyObject *resultobj;
10277 wxDC *arg1 = (wxDC *) 0 ;
10278 PyObject * obj0 = 0 ;
10279 char *kwnames[] = {
10280 (char *) "self", NULL
10281 };
10282
10283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10286 {
10287 PyThreadState* __tstate = wxPyBeginAllowThreads();
10288 (arg1)->EndDrawing();
10289
10290 wxPyEndAllowThreads(__tstate);
10291 if (PyErr_Occurred()) SWIG_fail;
10292 }
10293 Py_INCREF(Py_None); resultobj = Py_None;
10294 return resultobj;
10295 fail:
10296 return NULL;
10297 }
10298
10299
10300 static PyObject *_wrap_DC_FloodFillXY(PyObject *, PyObject *args, PyObject *kwargs) {
10301 PyObject *resultobj;
10302 wxDC *arg1 = (wxDC *) 0 ;
10303 int arg2 ;
10304 int arg3 ;
10305 wxColour *arg4 = 0 ;
10306 int arg5 = (int) wxFLOOD_SURFACE ;
10307 bool result;
10308 wxColour temp4 ;
10309 PyObject * obj0 = 0 ;
10310 PyObject * obj1 = 0 ;
10311 PyObject * obj2 = 0 ;
10312 PyObject * obj3 = 0 ;
10313 PyObject * obj4 = 0 ;
10314 char *kwnames[] = {
10315 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10316 };
10317
10318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10321 arg2 = (int) SWIG_AsInt(obj1);
10322 if (PyErr_Occurred()) SWIG_fail;
10323 arg3 = (int) SWIG_AsInt(obj2);
10324 if (PyErr_Occurred()) SWIG_fail;
10325 {
10326 arg4 = &temp4;
10327 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10328 }
10329 if (obj4) {
10330 arg5 = (int) SWIG_AsInt(obj4);
10331 if (PyErr_Occurred()) SWIG_fail;
10332 }
10333 {
10334 PyThreadState* __tstate = wxPyBeginAllowThreads();
10335 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10336
10337 wxPyEndAllowThreads(__tstate);
10338 if (PyErr_Occurred()) SWIG_fail;
10339 }
10340 {
10341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10342 }
10343 return resultobj;
10344 fail:
10345 return NULL;
10346 }
10347
10348
10349 static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) {
10350 PyObject *resultobj;
10351 wxDC *arg1 = (wxDC *) 0 ;
10352 wxPoint *arg2 = 0 ;
10353 wxColour *arg3 = 0 ;
10354 int arg4 = (int) wxFLOOD_SURFACE ;
10355 bool result;
10356 wxPoint temp2 ;
10357 wxColour temp3 ;
10358 PyObject * obj0 = 0 ;
10359 PyObject * obj1 = 0 ;
10360 PyObject * obj2 = 0 ;
10361 PyObject * obj3 = 0 ;
10362 char *kwnames[] = {
10363 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10364 };
10365
10366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10369 {
10370 arg2 = &temp2;
10371 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10372 }
10373 {
10374 arg3 = &temp3;
10375 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10376 }
10377 if (obj3) {
10378 arg4 = (int) SWIG_AsInt(obj3);
10379 if (PyErr_Occurred()) SWIG_fail;
10380 }
10381 {
10382 PyThreadState* __tstate = wxPyBeginAllowThreads();
10383 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10384
10385 wxPyEndAllowThreads(__tstate);
10386 if (PyErr_Occurred()) SWIG_fail;
10387 }
10388 {
10389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10390 }
10391 return resultobj;
10392 fail:
10393 return NULL;
10394 }
10395
10396
10397 static PyObject *_wrap_DC_GetPixelXY(PyObject *, PyObject *args, PyObject *kwargs) {
10398 PyObject *resultobj;
10399 wxDC *arg1 = (wxDC *) 0 ;
10400 int arg2 ;
10401 int arg3 ;
10402 wxColour result;
10403 PyObject * obj0 = 0 ;
10404 PyObject * obj1 = 0 ;
10405 PyObject * obj2 = 0 ;
10406 char *kwnames[] = {
10407 (char *) "self",(char *) "x",(char *) "y", NULL
10408 };
10409
10410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10413 arg2 = (int) SWIG_AsInt(obj1);
10414 if (PyErr_Occurred()) SWIG_fail;
10415 arg3 = (int) SWIG_AsInt(obj2);
10416 if (PyErr_Occurred()) SWIG_fail;
10417 {
10418 PyThreadState* __tstate = wxPyBeginAllowThreads();
10419 result = wxDC_GetPixelXY(arg1,arg2,arg3);
10420
10421 wxPyEndAllowThreads(__tstate);
10422 if (PyErr_Occurred()) SWIG_fail;
10423 }
10424 {
10425 wxColour * resultptr;
10426 resultptr = new wxColour((wxColour &) result);
10427 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10428 }
10429 return resultobj;
10430 fail:
10431 return NULL;
10432 }
10433
10434
10435 static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
10436 PyObject *resultobj;
10437 wxDC *arg1 = (wxDC *) 0 ;
10438 wxPoint *arg2 = 0 ;
10439 wxColour result;
10440 wxPoint temp2 ;
10441 PyObject * obj0 = 0 ;
10442 PyObject * obj1 = 0 ;
10443 char *kwnames[] = {
10444 (char *) "self",(char *) "pt", NULL
10445 };
10446
10447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
10448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10450 {
10451 arg2 = &temp2;
10452 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10453 }
10454 {
10455 PyThreadState* __tstate = wxPyBeginAllowThreads();
10456 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
10457
10458 wxPyEndAllowThreads(__tstate);
10459 if (PyErr_Occurred()) SWIG_fail;
10460 }
10461 {
10462 wxColour * resultptr;
10463 resultptr = new wxColour((wxColour &) result);
10464 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10465 }
10466 return resultobj;
10467 fail:
10468 return NULL;
10469 }
10470
10471
10472 static PyObject *_wrap_DC_DrawLineXY(PyObject *, PyObject *args, PyObject *kwargs) {
10473 PyObject *resultobj;
10474 wxDC *arg1 = (wxDC *) 0 ;
10475 int arg2 ;
10476 int arg3 ;
10477 int arg4 ;
10478 int arg5 ;
10479 PyObject * obj0 = 0 ;
10480 PyObject * obj1 = 0 ;
10481 PyObject * obj2 = 0 ;
10482 PyObject * obj3 = 0 ;
10483 PyObject * obj4 = 0 ;
10484 char *kwnames[] = {
10485 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10486 };
10487
10488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10491 arg2 = (int) SWIG_AsInt(obj1);
10492 if (PyErr_Occurred()) SWIG_fail;
10493 arg3 = (int) SWIG_AsInt(obj2);
10494 if (PyErr_Occurred()) SWIG_fail;
10495 arg4 = (int) SWIG_AsInt(obj3);
10496 if (PyErr_Occurred()) SWIG_fail;
10497 arg5 = (int) SWIG_AsInt(obj4);
10498 if (PyErr_Occurred()) SWIG_fail;
10499 {
10500 PyThreadState* __tstate = wxPyBeginAllowThreads();
10501 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10502
10503 wxPyEndAllowThreads(__tstate);
10504 if (PyErr_Occurred()) SWIG_fail;
10505 }
10506 Py_INCREF(Py_None); resultobj = Py_None;
10507 return resultobj;
10508 fail:
10509 return NULL;
10510 }
10511
10512
10513 static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) {
10514 PyObject *resultobj;
10515 wxDC *arg1 = (wxDC *) 0 ;
10516 wxPoint *arg2 = 0 ;
10517 wxPoint *arg3 = 0 ;
10518 wxPoint temp2 ;
10519 wxPoint temp3 ;
10520 PyObject * obj0 = 0 ;
10521 PyObject * obj1 = 0 ;
10522 PyObject * obj2 = 0 ;
10523 char *kwnames[] = {
10524 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10525 };
10526
10527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
10528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10530 {
10531 arg2 = &temp2;
10532 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10533 }
10534 {
10535 arg3 = &temp3;
10536 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10537 }
10538 {
10539 PyThreadState* __tstate = wxPyBeginAllowThreads();
10540 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10541
10542 wxPyEndAllowThreads(__tstate);
10543 if (PyErr_Occurred()) SWIG_fail;
10544 }
10545 Py_INCREF(Py_None); resultobj = Py_None;
10546 return resultobj;
10547 fail:
10548 return NULL;
10549 }
10550
10551
10552 static PyObject *_wrap_DC_CrossHairXY(PyObject *, PyObject *args, PyObject *kwargs) {
10553 PyObject *resultobj;
10554 wxDC *arg1 = (wxDC *) 0 ;
10555 int arg2 ;
10556 int arg3 ;
10557 PyObject * obj0 = 0 ;
10558 PyObject * obj1 = 0 ;
10559 PyObject * obj2 = 0 ;
10560 char *kwnames[] = {
10561 (char *) "self",(char *) "x",(char *) "y", NULL
10562 };
10563
10564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10567 arg2 = (int) SWIG_AsInt(obj1);
10568 if (PyErr_Occurred()) SWIG_fail;
10569 arg3 = (int) SWIG_AsInt(obj2);
10570 if (PyErr_Occurred()) SWIG_fail;
10571 {
10572 PyThreadState* __tstate = wxPyBeginAllowThreads();
10573 (arg1)->CrossHair(arg2,arg3);
10574
10575 wxPyEndAllowThreads(__tstate);
10576 if (PyErr_Occurred()) SWIG_fail;
10577 }
10578 Py_INCREF(Py_None); resultobj = Py_None;
10579 return resultobj;
10580 fail:
10581 return NULL;
10582 }
10583
10584
10585 static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) {
10586 PyObject *resultobj;
10587 wxDC *arg1 = (wxDC *) 0 ;
10588 wxPoint *arg2 = 0 ;
10589 wxPoint temp2 ;
10590 PyObject * obj0 = 0 ;
10591 PyObject * obj1 = 0 ;
10592 char *kwnames[] = {
10593 (char *) "self",(char *) "pt", NULL
10594 };
10595
10596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
10597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10599 {
10600 arg2 = &temp2;
10601 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10602 }
10603 {
10604 PyThreadState* __tstate = wxPyBeginAllowThreads();
10605 (arg1)->CrossHair((wxPoint const &)*arg2);
10606
10607 wxPyEndAllowThreads(__tstate);
10608 if (PyErr_Occurred()) SWIG_fail;
10609 }
10610 Py_INCREF(Py_None); resultobj = Py_None;
10611 return resultobj;
10612 fail:
10613 return NULL;
10614 }
10615
10616
10617 static PyObject *_wrap_DC_DrawArcXY(PyObject *, PyObject *args, PyObject *kwargs) {
10618 PyObject *resultobj;
10619 wxDC *arg1 = (wxDC *) 0 ;
10620 int arg2 ;
10621 int arg3 ;
10622 int arg4 ;
10623 int arg5 ;
10624 int arg6 ;
10625 int arg7 ;
10626 PyObject * obj0 = 0 ;
10627 PyObject * obj1 = 0 ;
10628 PyObject * obj2 = 0 ;
10629 PyObject * obj3 = 0 ;
10630 PyObject * obj4 = 0 ;
10631 PyObject * obj5 = 0 ;
10632 PyObject * obj6 = 0 ;
10633 char *kwnames[] = {
10634 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10635 };
10636
10637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10640 arg2 = (int) SWIG_AsInt(obj1);
10641 if (PyErr_Occurred()) SWIG_fail;
10642 arg3 = (int) SWIG_AsInt(obj2);
10643 if (PyErr_Occurred()) SWIG_fail;
10644 arg4 = (int) SWIG_AsInt(obj3);
10645 if (PyErr_Occurred()) SWIG_fail;
10646 arg5 = (int) SWIG_AsInt(obj4);
10647 if (PyErr_Occurred()) SWIG_fail;
10648 arg6 = (int) SWIG_AsInt(obj5);
10649 if (PyErr_Occurred()) SWIG_fail;
10650 arg7 = (int) SWIG_AsInt(obj6);
10651 if (PyErr_Occurred()) SWIG_fail;
10652 {
10653 PyThreadState* __tstate = wxPyBeginAllowThreads();
10654 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10655
10656 wxPyEndAllowThreads(__tstate);
10657 if (PyErr_Occurred()) SWIG_fail;
10658 }
10659 Py_INCREF(Py_None); resultobj = Py_None;
10660 return resultobj;
10661 fail:
10662 return NULL;
10663 }
10664
10665
10666 static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) {
10667 PyObject *resultobj;
10668 wxDC *arg1 = (wxDC *) 0 ;
10669 wxPoint *arg2 = 0 ;
10670 wxPoint *arg3 = 0 ;
10671 wxPoint *arg4 = 0 ;
10672 wxPoint temp2 ;
10673 wxPoint temp3 ;
10674 wxPoint temp4 ;
10675 PyObject * obj0 = 0 ;
10676 PyObject * obj1 = 0 ;
10677 PyObject * obj2 = 0 ;
10678 PyObject * obj3 = 0 ;
10679 char *kwnames[] = {
10680 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10681 };
10682
10683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10686 {
10687 arg2 = &temp2;
10688 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10689 }
10690 {
10691 arg3 = &temp3;
10692 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10693 }
10694 {
10695 arg4 = &temp4;
10696 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10697 }
10698 {
10699 PyThreadState* __tstate = wxPyBeginAllowThreads();
10700 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10701
10702 wxPyEndAllowThreads(__tstate);
10703 if (PyErr_Occurred()) SWIG_fail;
10704 }
10705 Py_INCREF(Py_None); resultobj = Py_None;
10706 return resultobj;
10707 fail:
10708 return NULL;
10709 }
10710
10711
10712 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *, PyObject *args, PyObject *kwargs) {
10713 PyObject *resultobj;
10714 wxDC *arg1 = (wxDC *) 0 ;
10715 int arg2 ;
10716 int arg3 ;
10717 int arg4 ;
10718 int arg5 ;
10719 PyObject * obj0 = 0 ;
10720 PyObject * obj1 = 0 ;
10721 PyObject * obj2 = 0 ;
10722 PyObject * obj3 = 0 ;
10723 PyObject * obj4 = 0 ;
10724 char *kwnames[] = {
10725 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10726 };
10727
10728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10731 arg2 = (int) SWIG_AsInt(obj1);
10732 if (PyErr_Occurred()) SWIG_fail;
10733 arg3 = (int) SWIG_AsInt(obj2);
10734 if (PyErr_Occurred()) SWIG_fail;
10735 arg4 = (int) SWIG_AsInt(obj3);
10736 if (PyErr_Occurred()) SWIG_fail;
10737 arg5 = (int) SWIG_AsInt(obj4);
10738 if (PyErr_Occurred()) SWIG_fail;
10739 {
10740 PyThreadState* __tstate = wxPyBeginAllowThreads();
10741 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10742
10743 wxPyEndAllowThreads(__tstate);
10744 if (PyErr_Occurred()) SWIG_fail;
10745 }
10746 Py_INCREF(Py_None); resultobj = Py_None;
10747 return resultobj;
10748 fail:
10749 return NULL;
10750 }
10751
10752
10753 static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) {
10754 PyObject *resultobj;
10755 wxDC *arg1 = (wxDC *) 0 ;
10756 wxRect *arg2 = 0 ;
10757 wxRect temp2 ;
10758 PyObject * obj0 = 0 ;
10759 PyObject * obj1 = 0 ;
10760 char *kwnames[] = {
10761 (char *) "self",(char *) "rect", NULL
10762 };
10763
10764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
10765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10767 {
10768 arg2 = &temp2;
10769 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10770 }
10771 {
10772 PyThreadState* __tstate = wxPyBeginAllowThreads();
10773 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10774
10775 wxPyEndAllowThreads(__tstate);
10776 if (PyErr_Occurred()) SWIG_fail;
10777 }
10778 Py_INCREF(Py_None); resultobj = Py_None;
10779 return resultobj;
10780 fail:
10781 return NULL;
10782 }
10783
10784
10785 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *, PyObject *args, PyObject *kwargs) {
10786 PyObject *resultobj;
10787 wxDC *arg1 = (wxDC *) 0 ;
10788 int arg2 ;
10789 int arg3 ;
10790 int arg4 ;
10791 int arg5 ;
10792 double arg6 ;
10793 double arg7 ;
10794 PyObject * obj0 = 0 ;
10795 PyObject * obj1 = 0 ;
10796 PyObject * obj2 = 0 ;
10797 PyObject * obj3 = 0 ;
10798 PyObject * obj4 = 0 ;
10799 PyObject * obj5 = 0 ;
10800 PyObject * obj6 = 0 ;
10801 char *kwnames[] = {
10802 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
10803 };
10804
10805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10808 arg2 = (int) SWIG_AsInt(obj1);
10809 if (PyErr_Occurred()) SWIG_fail;
10810 arg3 = (int) SWIG_AsInt(obj2);
10811 if (PyErr_Occurred()) SWIG_fail;
10812 arg4 = (int) SWIG_AsInt(obj3);
10813 if (PyErr_Occurred()) SWIG_fail;
10814 arg5 = (int) SWIG_AsInt(obj4);
10815 if (PyErr_Occurred()) SWIG_fail;
10816 arg6 = (double) SWIG_AsDouble(obj5);
10817 if (PyErr_Occurred()) SWIG_fail;
10818 arg7 = (double) SWIG_AsDouble(obj6);
10819 if (PyErr_Occurred()) SWIG_fail;
10820 {
10821 PyThreadState* __tstate = wxPyBeginAllowThreads();
10822 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
10823
10824 wxPyEndAllowThreads(__tstate);
10825 if (PyErr_Occurred()) SWIG_fail;
10826 }
10827 Py_INCREF(Py_None); resultobj = Py_None;
10828 return resultobj;
10829 fail:
10830 return NULL;
10831 }
10832
10833
10834 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) {
10835 PyObject *resultobj;
10836 wxDC *arg1 = (wxDC *) 0 ;
10837 wxPoint *arg2 = 0 ;
10838 wxSize *arg3 = 0 ;
10839 double arg4 ;
10840 double arg5 ;
10841 wxPoint temp2 ;
10842 wxSize temp3 ;
10843 PyObject * obj0 = 0 ;
10844 PyObject * obj1 = 0 ;
10845 PyObject * obj2 = 0 ;
10846 PyObject * obj3 = 0 ;
10847 PyObject * obj4 = 0 ;
10848 char *kwnames[] = {
10849 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
10850 };
10851
10852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10855 {
10856 arg2 = &temp2;
10857 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10858 }
10859 {
10860 arg3 = &temp3;
10861 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10862 }
10863 arg4 = (double) SWIG_AsDouble(obj3);
10864 if (PyErr_Occurred()) SWIG_fail;
10865 arg5 = (double) SWIG_AsDouble(obj4);
10866 if (PyErr_Occurred()) SWIG_fail;
10867 {
10868 PyThreadState* __tstate = wxPyBeginAllowThreads();
10869 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
10870
10871 wxPyEndAllowThreads(__tstate);
10872 if (PyErr_Occurred()) SWIG_fail;
10873 }
10874 Py_INCREF(Py_None); resultobj = Py_None;
10875 return resultobj;
10876 fail:
10877 return NULL;
10878 }
10879
10880
10881 static PyObject *_wrap_DC_DrawPointXY(PyObject *, PyObject *args, PyObject *kwargs) {
10882 PyObject *resultobj;
10883 wxDC *arg1 = (wxDC *) 0 ;
10884 int arg2 ;
10885 int arg3 ;
10886 PyObject * obj0 = 0 ;
10887 PyObject * obj1 = 0 ;
10888 PyObject * obj2 = 0 ;
10889 char *kwnames[] = {
10890 (char *) "self",(char *) "x",(char *) "y", NULL
10891 };
10892
10893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10896 arg2 = (int) SWIG_AsInt(obj1);
10897 if (PyErr_Occurred()) SWIG_fail;
10898 arg3 = (int) SWIG_AsInt(obj2);
10899 if (PyErr_Occurred()) SWIG_fail;
10900 {
10901 PyThreadState* __tstate = wxPyBeginAllowThreads();
10902 (arg1)->DrawPoint(arg2,arg3);
10903
10904 wxPyEndAllowThreads(__tstate);
10905 if (PyErr_Occurred()) SWIG_fail;
10906 }
10907 Py_INCREF(Py_None); resultobj = Py_None;
10908 return resultobj;
10909 fail:
10910 return NULL;
10911 }
10912
10913
10914 static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) {
10915 PyObject *resultobj;
10916 wxDC *arg1 = (wxDC *) 0 ;
10917 wxPoint *arg2 = 0 ;
10918 wxPoint temp2 ;
10919 PyObject * obj0 = 0 ;
10920 PyObject * obj1 = 0 ;
10921 char *kwnames[] = {
10922 (char *) "self",(char *) "pt", NULL
10923 };
10924
10925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
10926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10928 {
10929 arg2 = &temp2;
10930 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10931 }
10932 {
10933 PyThreadState* __tstate = wxPyBeginAllowThreads();
10934 (arg1)->DrawPoint((wxPoint const &)*arg2);
10935
10936 wxPyEndAllowThreads(__tstate);
10937 if (PyErr_Occurred()) SWIG_fail;
10938 }
10939 Py_INCREF(Py_None); resultobj = Py_None;
10940 return resultobj;
10941 fail:
10942 return NULL;
10943 }
10944
10945
10946 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *, PyObject *args, PyObject *kwargs) {
10947 PyObject *resultobj;
10948 wxDC *arg1 = (wxDC *) 0 ;
10949 int arg2 ;
10950 int arg3 ;
10951 int arg4 ;
10952 int arg5 ;
10953 PyObject * obj0 = 0 ;
10954 PyObject * obj1 = 0 ;
10955 PyObject * obj2 = 0 ;
10956 PyObject * obj3 = 0 ;
10957 PyObject * obj4 = 0 ;
10958 char *kwnames[] = {
10959 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10960 };
10961
10962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10965 arg2 = (int) SWIG_AsInt(obj1);
10966 if (PyErr_Occurred()) SWIG_fail;
10967 arg3 = (int) SWIG_AsInt(obj2);
10968 if (PyErr_Occurred()) SWIG_fail;
10969 arg4 = (int) SWIG_AsInt(obj3);
10970 if (PyErr_Occurred()) SWIG_fail;
10971 arg5 = (int) SWIG_AsInt(obj4);
10972 if (PyErr_Occurred()) SWIG_fail;
10973 {
10974 PyThreadState* __tstate = wxPyBeginAllowThreads();
10975 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
10976
10977 wxPyEndAllowThreads(__tstate);
10978 if (PyErr_Occurred()) SWIG_fail;
10979 }
10980 Py_INCREF(Py_None); resultobj = Py_None;
10981 return resultobj;
10982 fail:
10983 return NULL;
10984 }
10985
10986
10987 static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
10988 PyObject *resultobj;
10989 wxDC *arg1 = (wxDC *) 0 ;
10990 wxPoint *arg2 = 0 ;
10991 wxSize *arg3 = 0 ;
10992 wxPoint temp2 ;
10993 wxSize temp3 ;
10994 PyObject * obj0 = 0 ;
10995 PyObject * obj1 = 0 ;
10996 PyObject * obj2 = 0 ;
10997 char *kwnames[] = {
10998 (char *) "self",(char *) "pt",(char *) "sz", NULL
10999 };
11000
11001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11004 {
11005 arg2 = &temp2;
11006 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11007 }
11008 {
11009 arg3 = &temp3;
11010 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11011 }
11012 {
11013 PyThreadState* __tstate = wxPyBeginAllowThreads();
11014 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11015
11016 wxPyEndAllowThreads(__tstate);
11017 if (PyErr_Occurred()) SWIG_fail;
11018 }
11019 Py_INCREF(Py_None); resultobj = Py_None;
11020 return resultobj;
11021 fail:
11022 return NULL;
11023 }
11024
11025
11026 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
11027 PyObject *resultobj;
11028 wxDC *arg1 = (wxDC *) 0 ;
11029 wxRect *arg2 = 0 ;
11030 wxRect temp2 ;
11031 PyObject * obj0 = 0 ;
11032 PyObject * obj1 = 0 ;
11033 char *kwnames[] = {
11034 (char *) "self",(char *) "rect", NULL
11035 };
11036
11037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11040 {
11041 arg2 = &temp2;
11042 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11043 }
11044 {
11045 PyThreadState* __tstate = wxPyBeginAllowThreads();
11046 (arg1)->DrawRectangle((wxRect const &)*arg2);
11047
11048 wxPyEndAllowThreads(__tstate);
11049 if (PyErr_Occurred()) SWIG_fail;
11050 }
11051 Py_INCREF(Py_None); resultobj = Py_None;
11052 return resultobj;
11053 fail:
11054 return NULL;
11055 }
11056
11057
11058 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *, PyObject *args, PyObject *kwargs) {
11059 PyObject *resultobj;
11060 wxDC *arg1 = (wxDC *) 0 ;
11061 int arg2 ;
11062 int arg3 ;
11063 int arg4 ;
11064 int arg5 ;
11065 double arg6 ;
11066 PyObject * obj0 = 0 ;
11067 PyObject * obj1 = 0 ;
11068 PyObject * obj2 = 0 ;
11069 PyObject * obj3 = 0 ;
11070 PyObject * obj4 = 0 ;
11071 PyObject * obj5 = 0 ;
11072 char *kwnames[] = {
11073 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11074 };
11075
11076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11079 arg2 = (int) SWIG_AsInt(obj1);
11080 if (PyErr_Occurred()) SWIG_fail;
11081 arg3 = (int) SWIG_AsInt(obj2);
11082 if (PyErr_Occurred()) SWIG_fail;
11083 arg4 = (int) SWIG_AsInt(obj3);
11084 if (PyErr_Occurred()) SWIG_fail;
11085 arg5 = (int) SWIG_AsInt(obj4);
11086 if (PyErr_Occurred()) SWIG_fail;
11087 arg6 = (double) SWIG_AsDouble(obj5);
11088 if (PyErr_Occurred()) SWIG_fail;
11089 {
11090 PyThreadState* __tstate = wxPyBeginAllowThreads();
11091 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11092
11093 wxPyEndAllowThreads(__tstate);
11094 if (PyErr_Occurred()) SWIG_fail;
11095 }
11096 Py_INCREF(Py_None); resultobj = Py_None;
11097 return resultobj;
11098 fail:
11099 return NULL;
11100 }
11101
11102
11103 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
11104 PyObject *resultobj;
11105 wxDC *arg1 = (wxDC *) 0 ;
11106 wxPoint *arg2 = 0 ;
11107 wxSize *arg3 = 0 ;
11108 double arg4 ;
11109 wxPoint temp2 ;
11110 wxSize temp3 ;
11111 PyObject * obj0 = 0 ;
11112 PyObject * obj1 = 0 ;
11113 PyObject * obj2 = 0 ;
11114 PyObject * obj3 = 0 ;
11115 char *kwnames[] = {
11116 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11117 };
11118
11119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11122 {
11123 arg2 = &temp2;
11124 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11125 }
11126 {
11127 arg3 = &temp3;
11128 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11129 }
11130 arg4 = (double) SWIG_AsDouble(obj3);
11131 if (PyErr_Occurred()) SWIG_fail;
11132 {
11133 PyThreadState* __tstate = wxPyBeginAllowThreads();
11134 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11135
11136 wxPyEndAllowThreads(__tstate);
11137 if (PyErr_Occurred()) SWIG_fail;
11138 }
11139 Py_INCREF(Py_None); resultobj = Py_None;
11140 return resultobj;
11141 fail:
11142 return NULL;
11143 }
11144
11145
11146 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
11147 PyObject *resultobj;
11148 wxDC *arg1 = (wxDC *) 0 ;
11149 wxRect *arg2 = 0 ;
11150 double arg3 ;
11151 wxRect temp2 ;
11152 PyObject * obj0 = 0 ;
11153 PyObject * obj1 = 0 ;
11154 PyObject * obj2 = 0 ;
11155 char *kwnames[] = {
11156 (char *) "self",(char *) "r",(char *) "radius", NULL
11157 };
11158
11159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11162 {
11163 arg2 = &temp2;
11164 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11165 }
11166 arg3 = (double) SWIG_AsDouble(obj2);
11167 if (PyErr_Occurred()) SWIG_fail;
11168 {
11169 PyThreadState* __tstate = wxPyBeginAllowThreads();
11170 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11171
11172 wxPyEndAllowThreads(__tstate);
11173 if (PyErr_Occurred()) SWIG_fail;
11174 }
11175 Py_INCREF(Py_None); resultobj = Py_None;
11176 return resultobj;
11177 fail:
11178 return NULL;
11179 }
11180
11181
11182 static PyObject *_wrap_DC_DrawCircleXY(PyObject *, PyObject *args, PyObject *kwargs) {
11183 PyObject *resultobj;
11184 wxDC *arg1 = (wxDC *) 0 ;
11185 int arg2 ;
11186 int arg3 ;
11187 int arg4 ;
11188 PyObject * obj0 = 0 ;
11189 PyObject * obj1 = 0 ;
11190 PyObject * obj2 = 0 ;
11191 PyObject * obj3 = 0 ;
11192 char *kwnames[] = {
11193 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11194 };
11195
11196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11199 arg2 = (int) SWIG_AsInt(obj1);
11200 if (PyErr_Occurred()) SWIG_fail;
11201 arg3 = (int) SWIG_AsInt(obj2);
11202 if (PyErr_Occurred()) SWIG_fail;
11203 arg4 = (int) SWIG_AsInt(obj3);
11204 if (PyErr_Occurred()) SWIG_fail;
11205 {
11206 PyThreadState* __tstate = wxPyBeginAllowThreads();
11207 (arg1)->DrawCircle(arg2,arg3,arg4);
11208
11209 wxPyEndAllowThreads(__tstate);
11210 if (PyErr_Occurred()) SWIG_fail;
11211 }
11212 Py_INCREF(Py_None); resultobj = Py_None;
11213 return resultobj;
11214 fail:
11215 return NULL;
11216 }
11217
11218
11219 static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) {
11220 PyObject *resultobj;
11221 wxDC *arg1 = (wxDC *) 0 ;
11222 wxPoint *arg2 = 0 ;
11223 int arg3 ;
11224 wxPoint temp2 ;
11225 PyObject * obj0 = 0 ;
11226 PyObject * obj1 = 0 ;
11227 PyObject * obj2 = 0 ;
11228 char *kwnames[] = {
11229 (char *) "self",(char *) "pt",(char *) "radius", NULL
11230 };
11231
11232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11235 {
11236 arg2 = &temp2;
11237 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11238 }
11239 arg3 = (int) SWIG_AsInt(obj2);
11240 if (PyErr_Occurred()) SWIG_fail;
11241 {
11242 PyThreadState* __tstate = wxPyBeginAllowThreads();
11243 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11244
11245 wxPyEndAllowThreads(__tstate);
11246 if (PyErr_Occurred()) SWIG_fail;
11247 }
11248 Py_INCREF(Py_None); resultobj = Py_None;
11249 return resultobj;
11250 fail:
11251 return NULL;
11252 }
11253
11254
11255 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *, PyObject *args, PyObject *kwargs) {
11256 PyObject *resultobj;
11257 wxDC *arg1 = (wxDC *) 0 ;
11258 int arg2 ;
11259 int arg3 ;
11260 int arg4 ;
11261 int arg5 ;
11262 PyObject * obj0 = 0 ;
11263 PyObject * obj1 = 0 ;
11264 PyObject * obj2 = 0 ;
11265 PyObject * obj3 = 0 ;
11266 PyObject * obj4 = 0 ;
11267 char *kwnames[] = {
11268 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11269 };
11270
11271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11274 arg2 = (int) SWIG_AsInt(obj1);
11275 if (PyErr_Occurred()) SWIG_fail;
11276 arg3 = (int) SWIG_AsInt(obj2);
11277 if (PyErr_Occurred()) SWIG_fail;
11278 arg4 = (int) SWIG_AsInt(obj3);
11279 if (PyErr_Occurred()) SWIG_fail;
11280 arg5 = (int) SWIG_AsInt(obj4);
11281 if (PyErr_Occurred()) SWIG_fail;
11282 {
11283 PyThreadState* __tstate = wxPyBeginAllowThreads();
11284 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11285
11286 wxPyEndAllowThreads(__tstate);
11287 if (PyErr_Occurred()) SWIG_fail;
11288 }
11289 Py_INCREF(Py_None); resultobj = Py_None;
11290 return resultobj;
11291 fail:
11292 return NULL;
11293 }
11294
11295
11296 static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) {
11297 PyObject *resultobj;
11298 wxDC *arg1 = (wxDC *) 0 ;
11299 wxPoint *arg2 = 0 ;
11300 wxSize *arg3 = 0 ;
11301 wxPoint temp2 ;
11302 wxSize temp3 ;
11303 PyObject * obj0 = 0 ;
11304 PyObject * obj1 = 0 ;
11305 PyObject * obj2 = 0 ;
11306 char *kwnames[] = {
11307 (char *) "self",(char *) "pt",(char *) "sz", NULL
11308 };
11309
11310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
11311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11313 {
11314 arg2 = &temp2;
11315 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11316 }
11317 {
11318 arg3 = &temp3;
11319 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11320 }
11321 {
11322 PyThreadState* __tstate = wxPyBeginAllowThreads();
11323 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11324
11325 wxPyEndAllowThreads(__tstate);
11326 if (PyErr_Occurred()) SWIG_fail;
11327 }
11328 Py_INCREF(Py_None); resultobj = Py_None;
11329 return resultobj;
11330 fail:
11331 return NULL;
11332 }
11333
11334
11335 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) {
11336 PyObject *resultobj;
11337 wxDC *arg1 = (wxDC *) 0 ;
11338 wxRect *arg2 = 0 ;
11339 wxRect temp2 ;
11340 PyObject * obj0 = 0 ;
11341 PyObject * obj1 = 0 ;
11342 char *kwnames[] = {
11343 (char *) "self",(char *) "rect", NULL
11344 };
11345
11346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11349 {
11350 arg2 = &temp2;
11351 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11352 }
11353 {
11354 PyThreadState* __tstate = wxPyBeginAllowThreads();
11355 (arg1)->DrawEllipse((wxRect const &)*arg2);
11356
11357 wxPyEndAllowThreads(__tstate);
11358 if (PyErr_Occurred()) SWIG_fail;
11359 }
11360 Py_INCREF(Py_None); resultobj = Py_None;
11361 return resultobj;
11362 fail:
11363 return NULL;
11364 }
11365
11366
11367 static PyObject *_wrap_DC_DrawIconXY(PyObject *, PyObject *args, PyObject *kwargs) {
11368 PyObject *resultobj;
11369 wxDC *arg1 = (wxDC *) 0 ;
11370 wxIcon *arg2 = 0 ;
11371 int arg3 ;
11372 int arg4 ;
11373 PyObject * obj0 = 0 ;
11374 PyObject * obj1 = 0 ;
11375 PyObject * obj2 = 0 ;
11376 PyObject * obj3 = 0 ;
11377 char *kwnames[] = {
11378 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11379 };
11380
11381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11384 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11385 SWIG_POINTER_EXCEPTION | 0)) == -1)
11386 SWIG_fail;
11387 if (arg2 == NULL) {
11388 PyErr_SetString(PyExc_TypeError,"null reference");
11389 SWIG_fail;
11390 }
11391 arg3 = (int) SWIG_AsInt(obj2);
11392 if (PyErr_Occurred()) SWIG_fail;
11393 arg4 = (int) SWIG_AsInt(obj3);
11394 if (PyErr_Occurred()) SWIG_fail;
11395 {
11396 PyThreadState* __tstate = wxPyBeginAllowThreads();
11397 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11398
11399 wxPyEndAllowThreads(__tstate);
11400 if (PyErr_Occurred()) SWIG_fail;
11401 }
11402 Py_INCREF(Py_None); resultobj = Py_None;
11403 return resultobj;
11404 fail:
11405 return NULL;
11406 }
11407
11408
11409 static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) {
11410 PyObject *resultobj;
11411 wxDC *arg1 = (wxDC *) 0 ;
11412 wxIcon *arg2 = 0 ;
11413 wxPoint *arg3 = 0 ;
11414 wxPoint temp3 ;
11415 PyObject * obj0 = 0 ;
11416 PyObject * obj1 = 0 ;
11417 PyObject * obj2 = 0 ;
11418 char *kwnames[] = {
11419 (char *) "self",(char *) "icon",(char *) "pt", NULL
11420 };
11421
11422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
11423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11425 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11426 SWIG_POINTER_EXCEPTION | 0)) == -1)
11427 SWIG_fail;
11428 if (arg2 == NULL) {
11429 PyErr_SetString(PyExc_TypeError,"null reference");
11430 SWIG_fail;
11431 }
11432 {
11433 arg3 = &temp3;
11434 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11435 }
11436 {
11437 PyThreadState* __tstate = wxPyBeginAllowThreads();
11438 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11439
11440 wxPyEndAllowThreads(__tstate);
11441 if (PyErr_Occurred()) SWIG_fail;
11442 }
11443 Py_INCREF(Py_None); resultobj = Py_None;
11444 return resultobj;
11445 fail:
11446 return NULL;
11447 }
11448
11449
11450 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *, PyObject *args, PyObject *kwargs) {
11451 PyObject *resultobj;
11452 wxDC *arg1 = (wxDC *) 0 ;
11453 wxBitmap *arg2 = 0 ;
11454 int arg3 ;
11455 int arg4 ;
11456 bool arg5 = (bool) False ;
11457 PyObject * obj0 = 0 ;
11458 PyObject * obj1 = 0 ;
11459 PyObject * obj2 = 0 ;
11460 PyObject * obj3 = 0 ;
11461 PyObject * obj4 = 0 ;
11462 char *kwnames[] = {
11463 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11464 };
11465
11466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11469 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11470 SWIG_POINTER_EXCEPTION | 0)) == -1)
11471 SWIG_fail;
11472 if (arg2 == NULL) {
11473 PyErr_SetString(PyExc_TypeError,"null reference");
11474 SWIG_fail;
11475 }
11476 arg3 = (int) SWIG_AsInt(obj2);
11477 if (PyErr_Occurred()) SWIG_fail;
11478 arg4 = (int) SWIG_AsInt(obj3);
11479 if (PyErr_Occurred()) SWIG_fail;
11480 if (obj4) {
11481 arg5 = (bool) SWIG_AsBool(obj4);
11482 if (PyErr_Occurred()) SWIG_fail;
11483 }
11484 {
11485 PyThreadState* __tstate = wxPyBeginAllowThreads();
11486 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11487
11488 wxPyEndAllowThreads(__tstate);
11489 if (PyErr_Occurred()) SWIG_fail;
11490 }
11491 Py_INCREF(Py_None); resultobj = Py_None;
11492 return resultobj;
11493 fail:
11494 return NULL;
11495 }
11496
11497
11498 static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
11499 PyObject *resultobj;
11500 wxDC *arg1 = (wxDC *) 0 ;
11501 wxBitmap *arg2 = 0 ;
11502 wxPoint *arg3 = 0 ;
11503 bool arg4 = (bool) False ;
11504 wxPoint temp3 ;
11505 PyObject * obj0 = 0 ;
11506 PyObject * obj1 = 0 ;
11507 PyObject * obj2 = 0 ;
11508 PyObject * obj3 = 0 ;
11509 char *kwnames[] = {
11510 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11511 };
11512
11513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11516 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11517 SWIG_POINTER_EXCEPTION | 0)) == -1)
11518 SWIG_fail;
11519 if (arg2 == NULL) {
11520 PyErr_SetString(PyExc_TypeError,"null reference");
11521 SWIG_fail;
11522 }
11523 {
11524 arg3 = &temp3;
11525 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11526 }
11527 if (obj3) {
11528 arg4 = (bool) SWIG_AsBool(obj3);
11529 if (PyErr_Occurred()) SWIG_fail;
11530 }
11531 {
11532 PyThreadState* __tstate = wxPyBeginAllowThreads();
11533 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11534
11535 wxPyEndAllowThreads(__tstate);
11536 if (PyErr_Occurred()) SWIG_fail;
11537 }
11538 Py_INCREF(Py_None); resultobj = Py_None;
11539 return resultobj;
11540 fail:
11541 return NULL;
11542 }
11543
11544
11545 static PyObject *_wrap_DC_DrawTextXY(PyObject *, PyObject *args, PyObject *kwargs) {
11546 PyObject *resultobj;
11547 wxDC *arg1 = (wxDC *) 0 ;
11548 wxString *arg2 = 0 ;
11549 int arg3 ;
11550 int arg4 ;
11551 bool temp2 = False ;
11552 PyObject * obj0 = 0 ;
11553 PyObject * obj1 = 0 ;
11554 PyObject * obj2 = 0 ;
11555 PyObject * obj3 = 0 ;
11556 char *kwnames[] = {
11557 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11558 };
11559
11560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11563 {
11564 arg2 = wxString_in_helper(obj1);
11565 if (arg2 == NULL) SWIG_fail;
11566 temp2 = True;
11567 }
11568 arg3 = (int) SWIG_AsInt(obj2);
11569 if (PyErr_Occurred()) SWIG_fail;
11570 arg4 = (int) SWIG_AsInt(obj3);
11571 if (PyErr_Occurred()) SWIG_fail;
11572 {
11573 PyThreadState* __tstate = wxPyBeginAllowThreads();
11574 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11575
11576 wxPyEndAllowThreads(__tstate);
11577 if (PyErr_Occurred()) SWIG_fail;
11578 }
11579 Py_INCREF(Py_None); resultobj = Py_None;
11580 {
11581 if (temp2)
11582 delete arg2;
11583 }
11584 return resultobj;
11585 fail:
11586 {
11587 if (temp2)
11588 delete arg2;
11589 }
11590 return NULL;
11591 }
11592
11593
11594 static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) {
11595 PyObject *resultobj;
11596 wxDC *arg1 = (wxDC *) 0 ;
11597 wxString *arg2 = 0 ;
11598 wxPoint *arg3 = 0 ;
11599 bool temp2 = False ;
11600 wxPoint temp3 ;
11601 PyObject * obj0 = 0 ;
11602 PyObject * obj1 = 0 ;
11603 PyObject * obj2 = 0 ;
11604 char *kwnames[] = {
11605 (char *) "self",(char *) "text",(char *) "pt", NULL
11606 };
11607
11608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
11609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11611 {
11612 arg2 = wxString_in_helper(obj1);
11613 if (arg2 == NULL) SWIG_fail;
11614 temp2 = True;
11615 }
11616 {
11617 arg3 = &temp3;
11618 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11619 }
11620 {
11621 PyThreadState* __tstate = wxPyBeginAllowThreads();
11622 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11623
11624 wxPyEndAllowThreads(__tstate);
11625 if (PyErr_Occurred()) SWIG_fail;
11626 }
11627 Py_INCREF(Py_None); resultobj = Py_None;
11628 {
11629 if (temp2)
11630 delete arg2;
11631 }
11632 return resultobj;
11633 fail:
11634 {
11635 if (temp2)
11636 delete arg2;
11637 }
11638 return NULL;
11639 }
11640
11641
11642 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *, PyObject *args, PyObject *kwargs) {
11643 PyObject *resultobj;
11644 wxDC *arg1 = (wxDC *) 0 ;
11645 wxString *arg2 = 0 ;
11646 int arg3 ;
11647 int arg4 ;
11648 double arg5 ;
11649 bool temp2 = False ;
11650 PyObject * obj0 = 0 ;
11651 PyObject * obj1 = 0 ;
11652 PyObject * obj2 = 0 ;
11653 PyObject * obj3 = 0 ;
11654 PyObject * obj4 = 0 ;
11655 char *kwnames[] = {
11656 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11657 };
11658
11659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11662 {
11663 arg2 = wxString_in_helper(obj1);
11664 if (arg2 == NULL) SWIG_fail;
11665 temp2 = True;
11666 }
11667 arg3 = (int) SWIG_AsInt(obj2);
11668 if (PyErr_Occurred()) SWIG_fail;
11669 arg4 = (int) SWIG_AsInt(obj3);
11670 if (PyErr_Occurred()) SWIG_fail;
11671 arg5 = (double) SWIG_AsDouble(obj4);
11672 if (PyErr_Occurred()) SWIG_fail;
11673 {
11674 PyThreadState* __tstate = wxPyBeginAllowThreads();
11675 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11676
11677 wxPyEndAllowThreads(__tstate);
11678 if (PyErr_Occurred()) SWIG_fail;
11679 }
11680 Py_INCREF(Py_None); resultobj = Py_None;
11681 {
11682 if (temp2)
11683 delete arg2;
11684 }
11685 return resultobj;
11686 fail:
11687 {
11688 if (temp2)
11689 delete arg2;
11690 }
11691 return NULL;
11692 }
11693
11694
11695 static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) {
11696 PyObject *resultobj;
11697 wxDC *arg1 = (wxDC *) 0 ;
11698 wxString *arg2 = 0 ;
11699 wxPoint *arg3 = 0 ;
11700 double arg4 ;
11701 bool temp2 = False ;
11702 wxPoint temp3 ;
11703 PyObject * obj0 = 0 ;
11704 PyObject * obj1 = 0 ;
11705 PyObject * obj2 = 0 ;
11706 PyObject * obj3 = 0 ;
11707 char *kwnames[] = {
11708 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11709 };
11710
11711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11714 {
11715 arg2 = wxString_in_helper(obj1);
11716 if (arg2 == NULL) SWIG_fail;
11717 temp2 = True;
11718 }
11719 {
11720 arg3 = &temp3;
11721 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11722 }
11723 arg4 = (double) SWIG_AsDouble(obj3);
11724 if (PyErr_Occurred()) SWIG_fail;
11725 {
11726 PyThreadState* __tstate = wxPyBeginAllowThreads();
11727 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11728
11729 wxPyEndAllowThreads(__tstate);
11730 if (PyErr_Occurred()) SWIG_fail;
11731 }
11732 Py_INCREF(Py_None); resultobj = Py_None;
11733 {
11734 if (temp2)
11735 delete arg2;
11736 }
11737 return resultobj;
11738 fail:
11739 {
11740 if (temp2)
11741 delete arg2;
11742 }
11743 return NULL;
11744 }
11745
11746
11747 static PyObject *_wrap_DC_BlitXY(PyObject *, PyObject *args, PyObject *kwargs) {
11748 PyObject *resultobj;
11749 wxDC *arg1 = (wxDC *) 0 ;
11750 int arg2 ;
11751 int arg3 ;
11752 int arg4 ;
11753 int arg5 ;
11754 wxDC *arg6 = (wxDC *) 0 ;
11755 int arg7 ;
11756 int arg8 ;
11757 int arg9 = (int) wxCOPY ;
11758 bool arg10 = (bool) False ;
11759 int arg11 = (int) -1 ;
11760 int arg12 = (int) -1 ;
11761 bool result;
11762 PyObject * obj0 = 0 ;
11763 PyObject * obj1 = 0 ;
11764 PyObject * obj2 = 0 ;
11765 PyObject * obj3 = 0 ;
11766 PyObject * obj4 = 0 ;
11767 PyObject * obj5 = 0 ;
11768 PyObject * obj6 = 0 ;
11769 PyObject * obj7 = 0 ;
11770 PyObject * obj8 = 0 ;
11771 PyObject * obj9 = 0 ;
11772 PyObject * obj10 = 0 ;
11773 PyObject * obj11 = 0 ;
11774 char *kwnames[] = {
11775 (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
11776 };
11777
11778 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;
11779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11781 arg2 = (int) SWIG_AsInt(obj1);
11782 if (PyErr_Occurred()) SWIG_fail;
11783 arg3 = (int) SWIG_AsInt(obj2);
11784 if (PyErr_Occurred()) SWIG_fail;
11785 arg4 = (int) SWIG_AsInt(obj3);
11786 if (PyErr_Occurred()) SWIG_fail;
11787 arg5 = (int) SWIG_AsInt(obj4);
11788 if (PyErr_Occurred()) SWIG_fail;
11789 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
11790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11791 arg7 = (int) SWIG_AsInt(obj6);
11792 if (PyErr_Occurred()) SWIG_fail;
11793 arg8 = (int) SWIG_AsInt(obj7);
11794 if (PyErr_Occurred()) SWIG_fail;
11795 if (obj8) {
11796 arg9 = (int) SWIG_AsInt(obj8);
11797 if (PyErr_Occurred()) SWIG_fail;
11798 }
11799 if (obj9) {
11800 arg10 = (bool) SWIG_AsBool(obj9);
11801 if (PyErr_Occurred()) SWIG_fail;
11802 }
11803 if (obj10) {
11804 arg11 = (int) SWIG_AsInt(obj10);
11805 if (PyErr_Occurred()) SWIG_fail;
11806 }
11807 if (obj11) {
11808 arg12 = (int) SWIG_AsInt(obj11);
11809 if (PyErr_Occurred()) SWIG_fail;
11810 }
11811 {
11812 PyThreadState* __tstate = wxPyBeginAllowThreads();
11813 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
11814
11815 wxPyEndAllowThreads(__tstate);
11816 if (PyErr_Occurred()) SWIG_fail;
11817 }
11818 {
11819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11820 }
11821 return resultobj;
11822 fail:
11823 return NULL;
11824 }
11825
11826
11827 static PyObject *_wrap_DC_Blit(PyObject *, PyObject *args, PyObject *kwargs) {
11828 PyObject *resultobj;
11829 wxDC *arg1 = (wxDC *) 0 ;
11830 wxPoint *arg2 = 0 ;
11831 wxSize *arg3 = 0 ;
11832 wxDC *arg4 = (wxDC *) 0 ;
11833 wxPoint *arg5 = 0 ;
11834 int arg6 = (int) wxCOPY ;
11835 bool arg7 = (bool) False ;
11836 wxPoint const &arg8_defvalue = wxDefaultPosition ;
11837 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
11838 bool result;
11839 wxPoint temp2 ;
11840 wxSize temp3 ;
11841 wxPoint temp5 ;
11842 wxPoint temp8 ;
11843 PyObject * obj0 = 0 ;
11844 PyObject * obj1 = 0 ;
11845 PyObject * obj2 = 0 ;
11846 PyObject * obj3 = 0 ;
11847 PyObject * obj4 = 0 ;
11848 PyObject * obj5 = 0 ;
11849 PyObject * obj6 = 0 ;
11850 PyObject * obj7 = 0 ;
11851 char *kwnames[] = {
11852 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
11853 };
11854
11855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
11856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11858 {
11859 arg2 = &temp2;
11860 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11861 }
11862 {
11863 arg3 = &temp3;
11864 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11865 }
11866 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
11867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11868 {
11869 arg5 = &temp5;
11870 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11871 }
11872 if (obj5) {
11873 arg6 = (int) SWIG_AsInt(obj5);
11874 if (PyErr_Occurred()) SWIG_fail;
11875 }
11876 if (obj6) {
11877 arg7 = (bool) SWIG_AsBool(obj6);
11878 if (PyErr_Occurred()) SWIG_fail;
11879 }
11880 if (obj7) {
11881 {
11882 arg8 = &temp8;
11883 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
11884 }
11885 }
11886 {
11887 PyThreadState* __tstate = wxPyBeginAllowThreads();
11888 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
11889
11890 wxPyEndAllowThreads(__tstate);
11891 if (PyErr_Occurred()) SWIG_fail;
11892 }
11893 {
11894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11895 }
11896 return resultobj;
11897 fail:
11898 return NULL;
11899 }
11900
11901
11902 static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) {
11903 PyObject *resultobj;
11904 wxDC *arg1 = (wxDC *) 0 ;
11905 int arg2 ;
11906 wxPoint *arg3 = (wxPoint *) 0 ;
11907 int arg4 = (int) 0 ;
11908 int arg5 = (int) 0 ;
11909 PyObject * obj0 = 0 ;
11910 PyObject * obj1 = 0 ;
11911 PyObject * obj2 = 0 ;
11912 PyObject * obj3 = 0 ;
11913 char *kwnames[] = {
11914 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
11915 };
11916
11917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11920 {
11921 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11922 if (arg3 == NULL) SWIG_fail;
11923 }
11924 if (obj2) {
11925 arg4 = (int) SWIG_AsInt(obj2);
11926 if (PyErr_Occurred()) SWIG_fail;
11927 }
11928 if (obj3) {
11929 arg5 = (int) SWIG_AsInt(obj3);
11930 if (PyErr_Occurred()) SWIG_fail;
11931 }
11932 {
11933 PyThreadState* __tstate = wxPyBeginAllowThreads();
11934 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
11935
11936 wxPyEndAllowThreads(__tstate);
11937 if (PyErr_Occurred()) SWIG_fail;
11938 }
11939 Py_INCREF(Py_None); resultobj = Py_None;
11940 {
11941 if (arg3) delete [] arg3;
11942 }
11943 return resultobj;
11944 fail:
11945 {
11946 if (arg3) delete [] arg3;
11947 }
11948 return NULL;
11949 }
11950
11951
11952 static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) {
11953 PyObject *resultobj;
11954 wxDC *arg1 = (wxDC *) 0 ;
11955 int arg2 ;
11956 wxPoint *arg3 = (wxPoint *) 0 ;
11957 int arg4 = (int) 0 ;
11958 int arg5 = (int) 0 ;
11959 int arg6 = (int) wxODDEVEN_RULE ;
11960 PyObject * obj0 = 0 ;
11961 PyObject * obj1 = 0 ;
11962 PyObject * obj2 = 0 ;
11963 PyObject * obj3 = 0 ;
11964 PyObject * obj4 = 0 ;
11965 char *kwnames[] = {
11966 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
11967 };
11968
11969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11972 {
11973 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11974 if (arg3 == NULL) SWIG_fail;
11975 }
11976 if (obj2) {
11977 arg4 = (int) SWIG_AsInt(obj2);
11978 if (PyErr_Occurred()) SWIG_fail;
11979 }
11980 if (obj3) {
11981 arg5 = (int) SWIG_AsInt(obj3);
11982 if (PyErr_Occurred()) SWIG_fail;
11983 }
11984 if (obj4) {
11985 arg6 = (int) SWIG_AsInt(obj4);
11986 if (PyErr_Occurred()) SWIG_fail;
11987 }
11988 {
11989 PyThreadState* __tstate = wxPyBeginAllowThreads();
11990 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
11991
11992 wxPyEndAllowThreads(__tstate);
11993 if (PyErr_Occurred()) SWIG_fail;
11994 }
11995 Py_INCREF(Py_None); resultobj = Py_None;
11996 {
11997 if (arg3) delete [] arg3;
11998 }
11999 return resultobj;
12000 fail:
12001 {
12002 if (arg3) delete [] arg3;
12003 }
12004 return NULL;
12005 }
12006
12007
12008 static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) {
12009 PyObject *resultobj;
12010 wxDC *arg1 = (wxDC *) 0 ;
12011 wxString *arg2 = 0 ;
12012 wxRect *arg3 = 0 ;
12013 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12014 int arg5 = (int) -1 ;
12015 bool temp2 = False ;
12016 wxRect temp3 ;
12017 PyObject * obj0 = 0 ;
12018 PyObject * obj1 = 0 ;
12019 PyObject * obj2 = 0 ;
12020 PyObject * obj3 = 0 ;
12021 PyObject * obj4 = 0 ;
12022 char *kwnames[] = {
12023 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12024 };
12025
12026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12029 {
12030 arg2 = wxString_in_helper(obj1);
12031 if (arg2 == NULL) SWIG_fail;
12032 temp2 = True;
12033 }
12034 {
12035 arg3 = &temp3;
12036 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12037 }
12038 if (obj3) {
12039 arg4 = (int) SWIG_AsInt(obj3);
12040 if (PyErr_Occurred()) SWIG_fail;
12041 }
12042 if (obj4) {
12043 arg5 = (int) SWIG_AsInt(obj4);
12044 if (PyErr_Occurred()) SWIG_fail;
12045 }
12046 {
12047 PyThreadState* __tstate = wxPyBeginAllowThreads();
12048 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12049
12050 wxPyEndAllowThreads(__tstate);
12051 if (PyErr_Occurred()) SWIG_fail;
12052 }
12053 Py_INCREF(Py_None); resultobj = Py_None;
12054 {
12055 if (temp2)
12056 delete arg2;
12057 }
12058 return resultobj;
12059 fail:
12060 {
12061 if (temp2)
12062 delete arg2;
12063 }
12064 return NULL;
12065 }
12066
12067
12068 static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) {
12069 PyObject *resultobj;
12070 wxDC *arg1 = (wxDC *) 0 ;
12071 wxString *arg2 = 0 ;
12072 wxBitmap *arg3 = 0 ;
12073 wxRect *arg4 = 0 ;
12074 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12075 int arg6 = (int) -1 ;
12076 wxRect result;
12077 bool temp2 = False ;
12078 wxRect temp4 ;
12079 PyObject * obj0 = 0 ;
12080 PyObject * obj1 = 0 ;
12081 PyObject * obj2 = 0 ;
12082 PyObject * obj3 = 0 ;
12083 PyObject * obj4 = 0 ;
12084 PyObject * obj5 = 0 ;
12085 char *kwnames[] = {
12086 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12087 };
12088
12089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12092 {
12093 arg2 = wxString_in_helper(obj1);
12094 if (arg2 == NULL) SWIG_fail;
12095 temp2 = True;
12096 }
12097 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12098 SWIG_POINTER_EXCEPTION | 0)) == -1)
12099 SWIG_fail;
12100 if (arg3 == NULL) {
12101 PyErr_SetString(PyExc_TypeError,"null reference");
12102 SWIG_fail;
12103 }
12104 {
12105 arg4 = &temp4;
12106 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12107 }
12108 if (obj4) {
12109 arg5 = (int) SWIG_AsInt(obj4);
12110 if (PyErr_Occurred()) SWIG_fail;
12111 }
12112 if (obj5) {
12113 arg6 = (int) SWIG_AsInt(obj5);
12114 if (PyErr_Occurred()) SWIG_fail;
12115 }
12116 {
12117 PyThreadState* __tstate = wxPyBeginAllowThreads();
12118 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12119
12120 wxPyEndAllowThreads(__tstate);
12121 if (PyErr_Occurred()) SWIG_fail;
12122 }
12123 {
12124 wxRect * resultptr;
12125 resultptr = new wxRect((wxRect &) result);
12126 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12127 }
12128 {
12129 if (temp2)
12130 delete arg2;
12131 }
12132 return resultobj;
12133 fail:
12134 {
12135 if (temp2)
12136 delete arg2;
12137 }
12138 return NULL;
12139 }
12140
12141
12142 static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) {
12143 PyObject *resultobj;
12144 wxDC *arg1 = (wxDC *) 0 ;
12145 int arg2 ;
12146 wxPoint *arg3 = (wxPoint *) 0 ;
12147 PyObject * obj0 = 0 ;
12148 PyObject * obj1 = 0 ;
12149 char *kwnames[] = {
12150 (char *) "self",(char *) "points", NULL
12151 };
12152
12153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12156 {
12157 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12158 if (arg3 == NULL) SWIG_fail;
12159 }
12160 {
12161 PyThreadState* __tstate = wxPyBeginAllowThreads();
12162 (arg1)->DrawSpline(arg2,arg3);
12163
12164 wxPyEndAllowThreads(__tstate);
12165 if (PyErr_Occurred()) SWIG_fail;
12166 }
12167 Py_INCREF(Py_None); resultobj = Py_None;
12168 {
12169 if (arg3) delete [] arg3;
12170 }
12171 return resultobj;
12172 fail:
12173 {
12174 if (arg3) delete [] arg3;
12175 }
12176 return NULL;
12177 }
12178
12179
12180 static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
12181 PyObject *resultobj;
12182 wxDC *arg1 = (wxDC *) 0 ;
12183 PyObject * obj0 = 0 ;
12184 char *kwnames[] = {
12185 (char *) "self", NULL
12186 };
12187
12188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12191 {
12192 PyThreadState* __tstate = wxPyBeginAllowThreads();
12193 (arg1)->Clear();
12194
12195 wxPyEndAllowThreads(__tstate);
12196 if (PyErr_Occurred()) SWIG_fail;
12197 }
12198 Py_INCREF(Py_None); resultobj = Py_None;
12199 return resultobj;
12200 fail:
12201 return NULL;
12202 }
12203
12204
12205 static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) {
12206 PyObject *resultobj;
12207 wxDC *arg1 = (wxDC *) 0 ;
12208 wxString *arg2 = 0 ;
12209 bool result;
12210 bool temp2 = False ;
12211 PyObject * obj0 = 0 ;
12212 PyObject * obj1 = 0 ;
12213 char *kwnames[] = {
12214 (char *) "self",(char *) "message", NULL
12215 };
12216
12217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12220 {
12221 arg2 = wxString_in_helper(obj1);
12222 if (arg2 == NULL) SWIG_fail;
12223 temp2 = True;
12224 }
12225 {
12226 PyThreadState* __tstate = wxPyBeginAllowThreads();
12227 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12228
12229 wxPyEndAllowThreads(__tstate);
12230 if (PyErr_Occurred()) SWIG_fail;
12231 }
12232 {
12233 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12234 }
12235 {
12236 if (temp2)
12237 delete arg2;
12238 }
12239 return resultobj;
12240 fail:
12241 {
12242 if (temp2)
12243 delete arg2;
12244 }
12245 return NULL;
12246 }
12247
12248
12249 static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) {
12250 PyObject *resultobj;
12251 wxDC *arg1 = (wxDC *) 0 ;
12252 PyObject * obj0 = 0 ;
12253 char *kwnames[] = {
12254 (char *) "self", NULL
12255 };
12256
12257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12260 {
12261 PyThreadState* __tstate = wxPyBeginAllowThreads();
12262 (arg1)->EndDoc();
12263
12264 wxPyEndAllowThreads(__tstate);
12265 if (PyErr_Occurred()) SWIG_fail;
12266 }
12267 Py_INCREF(Py_None); resultobj = Py_None;
12268 return resultobj;
12269 fail:
12270 return NULL;
12271 }
12272
12273
12274 static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) {
12275 PyObject *resultobj;
12276 wxDC *arg1 = (wxDC *) 0 ;
12277 PyObject * obj0 = 0 ;
12278 char *kwnames[] = {
12279 (char *) "self", NULL
12280 };
12281
12282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12285 {
12286 PyThreadState* __tstate = wxPyBeginAllowThreads();
12287 (arg1)->StartPage();
12288
12289 wxPyEndAllowThreads(__tstate);
12290 if (PyErr_Occurred()) SWIG_fail;
12291 }
12292 Py_INCREF(Py_None); resultobj = Py_None;
12293 return resultobj;
12294 fail:
12295 return NULL;
12296 }
12297
12298
12299 static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) {
12300 PyObject *resultobj;
12301 wxDC *arg1 = (wxDC *) 0 ;
12302 PyObject * obj0 = 0 ;
12303 char *kwnames[] = {
12304 (char *) "self", NULL
12305 };
12306
12307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12310 {
12311 PyThreadState* __tstate = wxPyBeginAllowThreads();
12312 (arg1)->EndPage();
12313
12314 wxPyEndAllowThreads(__tstate);
12315 if (PyErr_Occurred()) SWIG_fail;
12316 }
12317 Py_INCREF(Py_None); resultobj = Py_None;
12318 return resultobj;
12319 fail:
12320 return NULL;
12321 }
12322
12323
12324 static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
12325 PyObject *resultobj;
12326 wxDC *arg1 = (wxDC *) 0 ;
12327 wxFont *arg2 = 0 ;
12328 PyObject * obj0 = 0 ;
12329 PyObject * obj1 = 0 ;
12330 char *kwnames[] = {
12331 (char *) "self",(char *) "font", NULL
12332 };
12333
12334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12337 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12338 SWIG_POINTER_EXCEPTION | 0)) == -1)
12339 SWIG_fail;
12340 if (arg2 == NULL) {
12341 PyErr_SetString(PyExc_TypeError,"null reference");
12342 SWIG_fail;
12343 }
12344 {
12345 PyThreadState* __tstate = wxPyBeginAllowThreads();
12346 (arg1)->SetFont((wxFont const &)*arg2);
12347
12348 wxPyEndAllowThreads(__tstate);
12349 if (PyErr_Occurred()) SWIG_fail;
12350 }
12351 Py_INCREF(Py_None); resultobj = Py_None;
12352 return resultobj;
12353 fail:
12354 return NULL;
12355 }
12356
12357
12358 static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) {
12359 PyObject *resultobj;
12360 wxDC *arg1 = (wxDC *) 0 ;
12361 wxPen *arg2 = 0 ;
12362 PyObject * obj0 = 0 ;
12363 PyObject * obj1 = 0 ;
12364 char *kwnames[] = {
12365 (char *) "self",(char *) "pen", NULL
12366 };
12367
12368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12371 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12372 SWIG_POINTER_EXCEPTION | 0)) == -1)
12373 SWIG_fail;
12374 if (arg2 == NULL) {
12375 PyErr_SetString(PyExc_TypeError,"null reference");
12376 SWIG_fail;
12377 }
12378 {
12379 PyThreadState* __tstate = wxPyBeginAllowThreads();
12380 (arg1)->SetPen((wxPen const &)*arg2);
12381
12382 wxPyEndAllowThreads(__tstate);
12383 if (PyErr_Occurred()) SWIG_fail;
12384 }
12385 Py_INCREF(Py_None); resultobj = Py_None;
12386 return resultobj;
12387 fail:
12388 return NULL;
12389 }
12390
12391
12392 static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
12393 PyObject *resultobj;
12394 wxDC *arg1 = (wxDC *) 0 ;
12395 wxBrush *arg2 = 0 ;
12396 PyObject * obj0 = 0 ;
12397 PyObject * obj1 = 0 ;
12398 char *kwnames[] = {
12399 (char *) "self",(char *) "brush", NULL
12400 };
12401
12402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12405 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12406 SWIG_POINTER_EXCEPTION | 0)) == -1)
12407 SWIG_fail;
12408 if (arg2 == NULL) {
12409 PyErr_SetString(PyExc_TypeError,"null reference");
12410 SWIG_fail;
12411 }
12412 {
12413 PyThreadState* __tstate = wxPyBeginAllowThreads();
12414 (arg1)->SetBrush((wxBrush const &)*arg2);
12415
12416 wxPyEndAllowThreads(__tstate);
12417 if (PyErr_Occurred()) SWIG_fail;
12418 }
12419 Py_INCREF(Py_None); resultobj = Py_None;
12420 return resultobj;
12421 fail:
12422 return NULL;
12423 }
12424
12425
12426 static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
12427 PyObject *resultobj;
12428 wxDC *arg1 = (wxDC *) 0 ;
12429 wxBrush *arg2 = 0 ;
12430 PyObject * obj0 = 0 ;
12431 PyObject * obj1 = 0 ;
12432 char *kwnames[] = {
12433 (char *) "self",(char *) "brush", NULL
12434 };
12435
12436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12439 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12440 SWIG_POINTER_EXCEPTION | 0)) == -1)
12441 SWIG_fail;
12442 if (arg2 == NULL) {
12443 PyErr_SetString(PyExc_TypeError,"null reference");
12444 SWIG_fail;
12445 }
12446 {
12447 PyThreadState* __tstate = wxPyBeginAllowThreads();
12448 (arg1)->SetBackground((wxBrush const &)*arg2);
12449
12450 wxPyEndAllowThreads(__tstate);
12451 if (PyErr_Occurred()) SWIG_fail;
12452 }
12453 Py_INCREF(Py_None); resultobj = Py_None;
12454 return resultobj;
12455 fail:
12456 return NULL;
12457 }
12458
12459
12460 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
12461 PyObject *resultobj;
12462 wxDC *arg1 = (wxDC *) 0 ;
12463 int arg2 ;
12464 PyObject * obj0 = 0 ;
12465 PyObject * obj1 = 0 ;
12466 char *kwnames[] = {
12467 (char *) "self",(char *) "mode", NULL
12468 };
12469
12470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12473 arg2 = (int) SWIG_AsInt(obj1);
12474 if (PyErr_Occurred()) SWIG_fail;
12475 {
12476 PyThreadState* __tstate = wxPyBeginAllowThreads();
12477 (arg1)->SetBackgroundMode(arg2);
12478
12479 wxPyEndAllowThreads(__tstate);
12480 if (PyErr_Occurred()) SWIG_fail;
12481 }
12482 Py_INCREF(Py_None); resultobj = Py_None;
12483 return resultobj;
12484 fail:
12485 return NULL;
12486 }
12487
12488
12489 static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
12490 PyObject *resultobj;
12491 wxDC *arg1 = (wxDC *) 0 ;
12492 wxPalette *arg2 = 0 ;
12493 PyObject * obj0 = 0 ;
12494 PyObject * obj1 = 0 ;
12495 char *kwnames[] = {
12496 (char *) "self",(char *) "palette", NULL
12497 };
12498
12499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12502 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
12503 SWIG_POINTER_EXCEPTION | 0)) == -1)
12504 SWIG_fail;
12505 if (arg2 == NULL) {
12506 PyErr_SetString(PyExc_TypeError,"null reference");
12507 SWIG_fail;
12508 }
12509 {
12510 PyThreadState* __tstate = wxPyBeginAllowThreads();
12511 (arg1)->SetPalette((wxPalette const &)*arg2);
12512
12513 wxPyEndAllowThreads(__tstate);
12514 if (PyErr_Occurred()) SWIG_fail;
12515 }
12516 Py_INCREF(Py_None); resultobj = Py_None;
12517 return resultobj;
12518 fail:
12519 return NULL;
12520 }
12521
12522
12523 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *, PyObject *args, PyObject *kwargs) {
12524 PyObject *resultobj;
12525 wxDC *arg1 = (wxDC *) 0 ;
12526 int arg2 ;
12527 int arg3 ;
12528 int arg4 ;
12529 int arg5 ;
12530 PyObject * obj0 = 0 ;
12531 PyObject * obj1 = 0 ;
12532 PyObject * obj2 = 0 ;
12533 PyObject * obj3 = 0 ;
12534 PyObject * obj4 = 0 ;
12535 char *kwnames[] = {
12536 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12537 };
12538
12539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12542 arg2 = (int) SWIG_AsInt(obj1);
12543 if (PyErr_Occurred()) SWIG_fail;
12544 arg3 = (int) SWIG_AsInt(obj2);
12545 if (PyErr_Occurred()) SWIG_fail;
12546 arg4 = (int) SWIG_AsInt(obj3);
12547 if (PyErr_Occurred()) SWIG_fail;
12548 arg5 = (int) SWIG_AsInt(obj4);
12549 if (PyErr_Occurred()) SWIG_fail;
12550 {
12551 PyThreadState* __tstate = wxPyBeginAllowThreads();
12552 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12553
12554 wxPyEndAllowThreads(__tstate);
12555 if (PyErr_Occurred()) SWIG_fail;
12556 }
12557 Py_INCREF(Py_None); resultobj = Py_None;
12558 return resultobj;
12559 fail:
12560 return NULL;
12561 }
12562
12563
12564 static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
12565 PyObject *resultobj;
12566 wxDC *arg1 = (wxDC *) 0 ;
12567 wxPoint *arg2 = 0 ;
12568 wxSize *arg3 = 0 ;
12569 wxPoint temp2 ;
12570 wxSize temp3 ;
12571 PyObject * obj0 = 0 ;
12572 PyObject * obj1 = 0 ;
12573 PyObject * obj2 = 0 ;
12574 char *kwnames[] = {
12575 (char *) "self",(char *) "pt",(char *) "sz", NULL
12576 };
12577
12578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
12579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12581 {
12582 arg2 = &temp2;
12583 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12584 }
12585 {
12586 arg3 = &temp3;
12587 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12588 }
12589 {
12590 PyThreadState* __tstate = wxPyBeginAllowThreads();
12591 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12592
12593 wxPyEndAllowThreads(__tstate);
12594 if (PyErr_Occurred()) SWIG_fail;
12595 }
12596 Py_INCREF(Py_None); resultobj = Py_None;
12597 return resultobj;
12598 fail:
12599 return NULL;
12600 }
12601
12602
12603 static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
12604 PyObject *resultobj;
12605 wxDC *arg1 = (wxDC *) 0 ;
12606 wxRect *arg2 = 0 ;
12607 wxRect temp2 ;
12608 PyObject * obj0 = 0 ;
12609 PyObject * obj1 = 0 ;
12610 char *kwnames[] = {
12611 (char *) "self",(char *) "rect", NULL
12612 };
12613
12614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12617 {
12618 arg2 = &temp2;
12619 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12620 }
12621 {
12622 PyThreadState* __tstate = wxPyBeginAllowThreads();
12623 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12624
12625 wxPyEndAllowThreads(__tstate);
12626 if (PyErr_Occurred()) SWIG_fail;
12627 }
12628 Py_INCREF(Py_None); resultobj = Py_None;
12629 return resultobj;
12630 fail:
12631 return NULL;
12632 }
12633
12634
12635 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) {
12636 PyObject *resultobj;
12637 wxDC *arg1 = (wxDC *) 0 ;
12638 wxRegion *arg2 = 0 ;
12639 PyObject * obj0 = 0 ;
12640 PyObject * obj1 = 0 ;
12641 char *kwnames[] = {
12642 (char *) "self",(char *) "region", NULL
12643 };
12644
12645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12648 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12649 SWIG_POINTER_EXCEPTION | 0)) == -1)
12650 SWIG_fail;
12651 if (arg2 == NULL) {
12652 PyErr_SetString(PyExc_TypeError,"null reference");
12653 SWIG_fail;
12654 }
12655 {
12656 PyThreadState* __tstate = wxPyBeginAllowThreads();
12657 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12658
12659 wxPyEndAllowThreads(__tstate);
12660 if (PyErr_Occurred()) SWIG_fail;
12661 }
12662 Py_INCREF(Py_None); resultobj = Py_None;
12663 return resultobj;
12664 fail:
12665 return NULL;
12666 }
12667
12668
12669 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
12670 PyObject *resultobj;
12671 wxDC *arg1 = (wxDC *) 0 ;
12672 PyObject * obj0 = 0 ;
12673 char *kwnames[] = {
12674 (char *) "self", NULL
12675 };
12676
12677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12680 {
12681 PyThreadState* __tstate = wxPyBeginAllowThreads();
12682 (arg1)->DestroyClippingRegion();
12683
12684 wxPyEndAllowThreads(__tstate);
12685 if (PyErr_Occurred()) SWIG_fail;
12686 }
12687 Py_INCREF(Py_None); resultobj = Py_None;
12688 return resultobj;
12689 fail:
12690 return NULL;
12691 }
12692
12693
12694 static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) {
12695 PyObject *resultobj;
12696 wxDC *arg1 = (wxDC *) 0 ;
12697 int *arg2 = (int *) 0 ;
12698 int *arg3 = (int *) 0 ;
12699 int *arg4 = (int *) 0 ;
12700 int *arg5 = (int *) 0 ;
12701 int temp2 ;
12702 int temp3 ;
12703 int temp4 ;
12704 int temp5 ;
12705 PyObject * obj0 = 0 ;
12706 char *kwnames[] = {
12707 (char *) "self", NULL
12708 };
12709
12710 arg2 = &temp2;
12711 arg3 = &temp3;
12712 arg4 = &temp4;
12713 arg5 = &temp5;
12714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12717 {
12718 PyThreadState* __tstate = wxPyBeginAllowThreads();
12719 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12720
12721 wxPyEndAllowThreads(__tstate);
12722 if (PyErr_Occurred()) SWIG_fail;
12723 }
12724 Py_INCREF(Py_None); resultobj = Py_None;
12725 {
12726 PyObject *o = PyInt_FromLong((long) (*arg2));
12727 resultobj = t_output_helper(resultobj,o);
12728 }
12729 {
12730 PyObject *o = PyInt_FromLong((long) (*arg3));
12731 resultobj = t_output_helper(resultobj,o);
12732 }
12733 {
12734 PyObject *o = PyInt_FromLong((long) (*arg4));
12735 resultobj = t_output_helper(resultobj,o);
12736 }
12737 {
12738 PyObject *o = PyInt_FromLong((long) (*arg5));
12739 resultobj = t_output_helper(resultobj,o);
12740 }
12741 return resultobj;
12742 fail:
12743 return NULL;
12744 }
12745
12746
12747 static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
12748 PyObject *resultobj;
12749 wxDC *arg1 = (wxDC *) 0 ;
12750 wxRect result;
12751 PyObject * obj0 = 0 ;
12752 char *kwnames[] = {
12753 (char *) "self", NULL
12754 };
12755
12756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
12757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12759 {
12760 PyThreadState* __tstate = wxPyBeginAllowThreads();
12761 result = wxDC_GetClippingRect(arg1);
12762
12763 wxPyEndAllowThreads(__tstate);
12764 if (PyErr_Occurred()) SWIG_fail;
12765 }
12766 {
12767 wxRect * resultptr;
12768 resultptr = new wxRect((wxRect &) result);
12769 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12770 }
12771 return resultobj;
12772 fail:
12773 return NULL;
12774 }
12775
12776
12777 static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) {
12778 PyObject *resultobj;
12779 wxDC *arg1 = (wxDC *) 0 ;
12780 int result;
12781 PyObject * obj0 = 0 ;
12782 char *kwnames[] = {
12783 (char *) "self", NULL
12784 };
12785
12786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
12787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12789 {
12790 PyThreadState* __tstate = wxPyBeginAllowThreads();
12791 result = (int)((wxDC const *)arg1)->GetCharHeight();
12792
12793 wxPyEndAllowThreads(__tstate);
12794 if (PyErr_Occurred()) SWIG_fail;
12795 }
12796 resultobj = SWIG_FromInt((int)result);
12797 return resultobj;
12798 fail:
12799 return NULL;
12800 }
12801
12802
12803 static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) {
12804 PyObject *resultobj;
12805 wxDC *arg1 = (wxDC *) 0 ;
12806 int result;
12807 PyObject * obj0 = 0 ;
12808 char *kwnames[] = {
12809 (char *) "self", NULL
12810 };
12811
12812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
12813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12815 {
12816 PyThreadState* __tstate = wxPyBeginAllowThreads();
12817 result = (int)((wxDC const *)arg1)->GetCharWidth();
12818
12819 wxPyEndAllowThreads(__tstate);
12820 if (PyErr_Occurred()) SWIG_fail;
12821 }
12822 resultobj = SWIG_FromInt((int)result);
12823 return resultobj;
12824 fail:
12825 return NULL;
12826 }
12827
12828
12829 static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
12830 PyObject *resultobj;
12831 wxDC *arg1 = (wxDC *) 0 ;
12832 wxString *arg2 = 0 ;
12833 int *arg3 = (int *) 0 ;
12834 int *arg4 = (int *) 0 ;
12835 bool temp2 = False ;
12836 int temp3 ;
12837 int temp4 ;
12838 PyObject * obj0 = 0 ;
12839 PyObject * obj1 = 0 ;
12840 char *kwnames[] = {
12841 (char *) "self",(char *) "string", NULL
12842 };
12843
12844 arg3 = &temp3;
12845 arg4 = &temp4;
12846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
12847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12849 {
12850 arg2 = wxString_in_helper(obj1);
12851 if (arg2 == NULL) SWIG_fail;
12852 temp2 = True;
12853 }
12854 {
12855 PyThreadState* __tstate = wxPyBeginAllowThreads();
12856 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
12857
12858 wxPyEndAllowThreads(__tstate);
12859 if (PyErr_Occurred()) SWIG_fail;
12860 }
12861 Py_INCREF(Py_None); resultobj = Py_None;
12862 {
12863 PyObject *o = PyInt_FromLong((long) (*arg3));
12864 resultobj = t_output_helper(resultobj,o);
12865 }
12866 {
12867 PyObject *o = PyInt_FromLong((long) (*arg4));
12868 resultobj = t_output_helper(resultobj,o);
12869 }
12870 {
12871 if (temp2)
12872 delete arg2;
12873 }
12874 return resultobj;
12875 fail:
12876 {
12877 if (temp2)
12878 delete arg2;
12879 }
12880 return NULL;
12881 }
12882
12883
12884 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
12885 PyObject *resultobj;
12886 wxDC *arg1 = (wxDC *) 0 ;
12887 wxString *arg2 = 0 ;
12888 int *arg3 = (int *) 0 ;
12889 int *arg4 = (int *) 0 ;
12890 int *arg5 = (int *) 0 ;
12891 int *arg6 = (int *) 0 ;
12892 wxFont *arg7 = (wxFont *) NULL ;
12893 bool temp2 = False ;
12894 int temp3 ;
12895 int temp4 ;
12896 int temp5 ;
12897 int temp6 ;
12898 PyObject * obj0 = 0 ;
12899 PyObject * obj1 = 0 ;
12900 PyObject * obj2 = 0 ;
12901 char *kwnames[] = {
12902 (char *) "self",(char *) "string",(char *) "font", NULL
12903 };
12904
12905 arg3 = &temp3;
12906 arg4 = &temp4;
12907 arg5 = &temp5;
12908 arg6 = &temp6;
12909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12912 {
12913 arg2 = wxString_in_helper(obj1);
12914 if (arg2 == NULL) SWIG_fail;
12915 temp2 = True;
12916 }
12917 if (obj2) {
12918 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
12919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12920 }
12921 {
12922 PyThreadState* __tstate = wxPyBeginAllowThreads();
12923 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
12924
12925 wxPyEndAllowThreads(__tstate);
12926 if (PyErr_Occurred()) SWIG_fail;
12927 }
12928 Py_INCREF(Py_None); resultobj = Py_None;
12929 {
12930 PyObject *o = PyInt_FromLong((long) (*arg3));
12931 resultobj = t_output_helper(resultobj,o);
12932 }
12933 {
12934 PyObject *o = PyInt_FromLong((long) (*arg4));
12935 resultobj = t_output_helper(resultobj,o);
12936 }
12937 {
12938 PyObject *o = PyInt_FromLong((long) (*arg5));
12939 resultobj = t_output_helper(resultobj,o);
12940 }
12941 {
12942 PyObject *o = PyInt_FromLong((long) (*arg6));
12943 resultobj = t_output_helper(resultobj,o);
12944 }
12945 {
12946 if (temp2)
12947 delete arg2;
12948 }
12949 return resultobj;
12950 fail:
12951 {
12952 if (temp2)
12953 delete arg2;
12954 }
12955 return NULL;
12956 }
12957
12958
12959 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
12960 PyObject *resultobj;
12961 wxDC *arg1 = (wxDC *) 0 ;
12962 wxString *arg2 = 0 ;
12963 int *arg3 = (int *) 0 ;
12964 int *arg4 = (int *) 0 ;
12965 int *arg5 = (int *) 0 ;
12966 wxFont *arg6 = (wxFont *) NULL ;
12967 bool temp2 = False ;
12968 int temp3 ;
12969 int temp4 ;
12970 int temp5 ;
12971 PyObject * obj0 = 0 ;
12972 PyObject * obj1 = 0 ;
12973 PyObject * obj2 = 0 ;
12974 char *kwnames[] = {
12975 (char *) "self",(char *) "text",(char *) "font", NULL
12976 };
12977
12978 arg3 = &temp3;
12979 arg4 = &temp4;
12980 arg5 = &temp5;
12981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12984 {
12985 arg2 = wxString_in_helper(obj1);
12986 if (arg2 == NULL) SWIG_fail;
12987 temp2 = True;
12988 }
12989 if (obj2) {
12990 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
12991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12992 }
12993 {
12994 PyThreadState* __tstate = wxPyBeginAllowThreads();
12995 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
12996
12997 wxPyEndAllowThreads(__tstate);
12998 if (PyErr_Occurred()) SWIG_fail;
12999 }
13000 Py_INCREF(Py_None); resultobj = Py_None;
13001 {
13002 PyObject *o = PyInt_FromLong((long) (*arg3));
13003 resultobj = t_output_helper(resultobj,o);
13004 }
13005 {
13006 PyObject *o = PyInt_FromLong((long) (*arg4));
13007 resultobj = t_output_helper(resultobj,o);
13008 }
13009 {
13010 PyObject *o = PyInt_FromLong((long) (*arg5));
13011 resultobj = t_output_helper(resultobj,o);
13012 }
13013 {
13014 if (temp2)
13015 delete arg2;
13016 }
13017 return resultobj;
13018 fail:
13019 {
13020 if (temp2)
13021 delete arg2;
13022 }
13023 return NULL;
13024 }
13025
13026
13027 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) {
13028 PyObject *resultobj;
13029 wxDC *arg1 = (wxDC *) 0 ;
13030 wxString *arg2 = 0 ;
13031 wxArrayInt result;
13032 bool temp2 = False ;
13033 PyObject * obj0 = 0 ;
13034 PyObject * obj1 = 0 ;
13035 char *kwnames[] = {
13036 (char *) "self",(char *) "text", NULL
13037 };
13038
13039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13042 {
13043 arg2 = wxString_in_helper(obj1);
13044 if (arg2 == NULL) SWIG_fail;
13045 temp2 = True;
13046 }
13047 {
13048 PyThreadState* __tstate = wxPyBeginAllowThreads();
13049 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13050
13051 wxPyEndAllowThreads(__tstate);
13052 if (PyErr_Occurred()) SWIG_fail;
13053 }
13054 {
13055 resultobj = PyList_New(0);
13056 size_t idx;
13057 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13058 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13059 PyList_Append(resultobj, val);
13060 Py_DECREF(val);
13061 }
13062 }
13063 {
13064 if (temp2)
13065 delete arg2;
13066 }
13067 return resultobj;
13068 fail:
13069 {
13070 if (temp2)
13071 delete arg2;
13072 }
13073 return NULL;
13074 }
13075
13076
13077 static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
13078 PyObject *resultobj;
13079 wxDC *arg1 = (wxDC *) 0 ;
13080 wxSize result;
13081 PyObject * obj0 = 0 ;
13082 char *kwnames[] = {
13083 (char *) "self", NULL
13084 };
13085
13086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13089 {
13090 PyThreadState* __tstate = wxPyBeginAllowThreads();
13091 result = (arg1)->GetSize();
13092
13093 wxPyEndAllowThreads(__tstate);
13094 if (PyErr_Occurred()) SWIG_fail;
13095 }
13096 {
13097 wxSize * resultptr;
13098 resultptr = new wxSize((wxSize &) result);
13099 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13100 }
13101 return resultobj;
13102 fail:
13103 return NULL;
13104 }
13105
13106
13107 static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
13108 PyObject *resultobj;
13109 wxDC *arg1 = (wxDC *) 0 ;
13110 int *arg2 = (int *) 0 ;
13111 int *arg3 = (int *) 0 ;
13112 int temp2 ;
13113 int temp3 ;
13114 PyObject * obj0 = 0 ;
13115 char *kwnames[] = {
13116 (char *) "self", NULL
13117 };
13118
13119 arg2 = &temp2;
13120 arg3 = &temp3;
13121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13124 {
13125 PyThreadState* __tstate = wxPyBeginAllowThreads();
13126 (arg1)->GetSize(arg2,arg3);
13127
13128 wxPyEndAllowThreads(__tstate);
13129 if (PyErr_Occurred()) SWIG_fail;
13130 }
13131 Py_INCREF(Py_None); resultobj = Py_None;
13132 {
13133 PyObject *o = PyInt_FromLong((long) (*arg2));
13134 resultobj = t_output_helper(resultobj,o);
13135 }
13136 {
13137 PyObject *o = PyInt_FromLong((long) (*arg3));
13138 resultobj = t_output_helper(resultobj,o);
13139 }
13140 return resultobj;
13141 fail:
13142 return NULL;
13143 }
13144
13145
13146 static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
13147 PyObject *resultobj;
13148 wxDC *arg1 = (wxDC *) 0 ;
13149 wxSize result;
13150 PyObject * obj0 = 0 ;
13151 char *kwnames[] = {
13152 (char *) "self", NULL
13153 };
13154
13155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13158 {
13159 PyThreadState* __tstate = wxPyBeginAllowThreads();
13160 result = ((wxDC const *)arg1)->GetSizeMM();
13161
13162 wxPyEndAllowThreads(__tstate);
13163 if (PyErr_Occurred()) SWIG_fail;
13164 }
13165 {
13166 wxSize * resultptr;
13167 resultptr = new wxSize((wxSize &) result);
13168 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13169 }
13170 return resultobj;
13171 fail:
13172 return NULL;
13173 }
13174
13175
13176 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) {
13177 PyObject *resultobj;
13178 wxDC *arg1 = (wxDC *) 0 ;
13179 int *arg2 = (int *) 0 ;
13180 int *arg3 = (int *) 0 ;
13181 int temp2 ;
13182 int temp3 ;
13183 PyObject * obj0 = 0 ;
13184 char *kwnames[] = {
13185 (char *) "self", NULL
13186 };
13187
13188 arg2 = &temp2;
13189 arg3 = &temp3;
13190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13193 {
13194 PyThreadState* __tstate = wxPyBeginAllowThreads();
13195 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13196
13197 wxPyEndAllowThreads(__tstate);
13198 if (PyErr_Occurred()) SWIG_fail;
13199 }
13200 Py_INCREF(Py_None); resultobj = Py_None;
13201 {
13202 PyObject *o = PyInt_FromLong((long) (*arg2));
13203 resultobj = t_output_helper(resultobj,o);
13204 }
13205 {
13206 PyObject *o = PyInt_FromLong((long) (*arg3));
13207 resultobj = t_output_helper(resultobj,o);
13208 }
13209 return resultobj;
13210 fail:
13211 return NULL;
13212 }
13213
13214
13215 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) {
13216 PyObject *resultobj;
13217 wxDC *arg1 = (wxDC *) 0 ;
13218 int arg2 ;
13219 int result;
13220 PyObject * obj0 = 0 ;
13221 PyObject * obj1 = 0 ;
13222 char *kwnames[] = {
13223 (char *) "self",(char *) "x", NULL
13224 };
13225
13226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13229 arg2 = (int) SWIG_AsInt(obj1);
13230 if (PyErr_Occurred()) SWIG_fail;
13231 {
13232 PyThreadState* __tstate = wxPyBeginAllowThreads();
13233 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13234
13235 wxPyEndAllowThreads(__tstate);
13236 if (PyErr_Occurred()) SWIG_fail;
13237 }
13238 resultobj = SWIG_FromInt((int)result);
13239 return resultobj;
13240 fail:
13241 return NULL;
13242 }
13243
13244
13245 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) {
13246 PyObject *resultobj;
13247 wxDC *arg1 = (wxDC *) 0 ;
13248 int arg2 ;
13249 int result;
13250 PyObject * obj0 = 0 ;
13251 PyObject * obj1 = 0 ;
13252 char *kwnames[] = {
13253 (char *) "self",(char *) "y", NULL
13254 };
13255
13256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13259 arg2 = (int) SWIG_AsInt(obj1);
13260 if (PyErr_Occurred()) SWIG_fail;
13261 {
13262 PyThreadState* __tstate = wxPyBeginAllowThreads();
13263 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13264
13265 wxPyEndAllowThreads(__tstate);
13266 if (PyErr_Occurred()) SWIG_fail;
13267 }
13268 resultobj = SWIG_FromInt((int)result);
13269 return resultobj;
13270 fail:
13271 return NULL;
13272 }
13273
13274
13275 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) {
13276 PyObject *resultobj;
13277 wxDC *arg1 = (wxDC *) 0 ;
13278 int arg2 ;
13279 int result;
13280 PyObject * obj0 = 0 ;
13281 PyObject * obj1 = 0 ;
13282 char *kwnames[] = {
13283 (char *) "self",(char *) "x", NULL
13284 };
13285
13286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13289 arg2 = (int) SWIG_AsInt(obj1);
13290 if (PyErr_Occurred()) SWIG_fail;
13291 {
13292 PyThreadState* __tstate = wxPyBeginAllowThreads();
13293 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13294
13295 wxPyEndAllowThreads(__tstate);
13296 if (PyErr_Occurred()) SWIG_fail;
13297 }
13298 resultobj = SWIG_FromInt((int)result);
13299 return resultobj;
13300 fail:
13301 return NULL;
13302 }
13303
13304
13305 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) {
13306 PyObject *resultobj;
13307 wxDC *arg1 = (wxDC *) 0 ;
13308 int arg2 ;
13309 int result;
13310 PyObject * obj0 = 0 ;
13311 PyObject * obj1 = 0 ;
13312 char *kwnames[] = {
13313 (char *) "self",(char *) "y", NULL
13314 };
13315
13316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13319 arg2 = (int) SWIG_AsInt(obj1);
13320 if (PyErr_Occurred()) SWIG_fail;
13321 {
13322 PyThreadState* __tstate = wxPyBeginAllowThreads();
13323 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13324
13325 wxPyEndAllowThreads(__tstate);
13326 if (PyErr_Occurred()) SWIG_fail;
13327 }
13328 resultobj = SWIG_FromInt((int)result);
13329 return resultobj;
13330 fail:
13331 return NULL;
13332 }
13333
13334
13335 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) {
13336 PyObject *resultobj;
13337 wxDC *arg1 = (wxDC *) 0 ;
13338 int arg2 ;
13339 int result;
13340 PyObject * obj0 = 0 ;
13341 PyObject * obj1 = 0 ;
13342 char *kwnames[] = {
13343 (char *) "self",(char *) "x", NULL
13344 };
13345
13346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13349 arg2 = (int) SWIG_AsInt(obj1);
13350 if (PyErr_Occurred()) SWIG_fail;
13351 {
13352 PyThreadState* __tstate = wxPyBeginAllowThreads();
13353 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13354
13355 wxPyEndAllowThreads(__tstate);
13356 if (PyErr_Occurred()) SWIG_fail;
13357 }
13358 resultobj = SWIG_FromInt((int)result);
13359 return resultobj;
13360 fail:
13361 return NULL;
13362 }
13363
13364
13365 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) {
13366 PyObject *resultobj;
13367 wxDC *arg1 = (wxDC *) 0 ;
13368 int arg2 ;
13369 int result;
13370 PyObject * obj0 = 0 ;
13371 PyObject * obj1 = 0 ;
13372 char *kwnames[] = {
13373 (char *) "self",(char *) "y", NULL
13374 };
13375
13376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13379 arg2 = (int) SWIG_AsInt(obj1);
13380 if (PyErr_Occurred()) SWIG_fail;
13381 {
13382 PyThreadState* __tstate = wxPyBeginAllowThreads();
13383 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13384
13385 wxPyEndAllowThreads(__tstate);
13386 if (PyErr_Occurred()) SWIG_fail;
13387 }
13388 resultobj = SWIG_FromInt((int)result);
13389 return resultobj;
13390 fail:
13391 return NULL;
13392 }
13393
13394
13395 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) {
13396 PyObject *resultobj;
13397 wxDC *arg1 = (wxDC *) 0 ;
13398 int arg2 ;
13399 int result;
13400 PyObject * obj0 = 0 ;
13401 PyObject * obj1 = 0 ;
13402 char *kwnames[] = {
13403 (char *) "self",(char *) "x", NULL
13404 };
13405
13406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13409 arg2 = (int) SWIG_AsInt(obj1);
13410 if (PyErr_Occurred()) SWIG_fail;
13411 {
13412 PyThreadState* __tstate = wxPyBeginAllowThreads();
13413 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13414
13415 wxPyEndAllowThreads(__tstate);
13416 if (PyErr_Occurred()) SWIG_fail;
13417 }
13418 resultobj = SWIG_FromInt((int)result);
13419 return resultobj;
13420 fail:
13421 return NULL;
13422 }
13423
13424
13425 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) {
13426 PyObject *resultobj;
13427 wxDC *arg1 = (wxDC *) 0 ;
13428 int arg2 ;
13429 int result;
13430 PyObject * obj0 = 0 ;
13431 PyObject * obj1 = 0 ;
13432 char *kwnames[] = {
13433 (char *) "self",(char *) "y", NULL
13434 };
13435
13436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13439 arg2 = (int) SWIG_AsInt(obj1);
13440 if (PyErr_Occurred()) SWIG_fail;
13441 {
13442 PyThreadState* __tstate = wxPyBeginAllowThreads();
13443 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13444
13445 wxPyEndAllowThreads(__tstate);
13446 if (PyErr_Occurred()) SWIG_fail;
13447 }
13448 resultobj = SWIG_FromInt((int)result);
13449 return resultobj;
13450 fail:
13451 return NULL;
13452 }
13453
13454
13455 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
13456 PyObject *resultobj;
13457 wxDC *arg1 = (wxDC *) 0 ;
13458 bool result;
13459 PyObject * obj0 = 0 ;
13460 char *kwnames[] = {
13461 (char *) "self", NULL
13462 };
13463
13464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13467 {
13468 PyThreadState* __tstate = wxPyBeginAllowThreads();
13469 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13470
13471 wxPyEndAllowThreads(__tstate);
13472 if (PyErr_Occurred()) SWIG_fail;
13473 }
13474 {
13475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13476 }
13477 return resultobj;
13478 fail:
13479 return NULL;
13480 }
13481
13482
13483 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
13484 PyObject *resultobj;
13485 wxDC *arg1 = (wxDC *) 0 ;
13486 bool result;
13487 PyObject * obj0 = 0 ;
13488 char *kwnames[] = {
13489 (char *) "self", NULL
13490 };
13491
13492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13495 {
13496 PyThreadState* __tstate = wxPyBeginAllowThreads();
13497 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13498
13499 wxPyEndAllowThreads(__tstate);
13500 if (PyErr_Occurred()) SWIG_fail;
13501 }
13502 {
13503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13504 }
13505 return resultobj;
13506 fail:
13507 return NULL;
13508 }
13509
13510
13511 static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
13512 PyObject *resultobj;
13513 wxDC *arg1 = (wxDC *) 0 ;
13514 int result;
13515 PyObject * obj0 = 0 ;
13516 char *kwnames[] = {
13517 (char *) "self", NULL
13518 };
13519
13520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13523 {
13524 PyThreadState* __tstate = wxPyBeginAllowThreads();
13525 result = (int)((wxDC const *)arg1)->GetDepth();
13526
13527 wxPyEndAllowThreads(__tstate);
13528 if (PyErr_Occurred()) SWIG_fail;
13529 }
13530 resultobj = SWIG_FromInt((int)result);
13531 return resultobj;
13532 fail:
13533 return NULL;
13534 }
13535
13536
13537 static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) {
13538 PyObject *resultobj;
13539 wxDC *arg1 = (wxDC *) 0 ;
13540 wxSize result;
13541 PyObject * obj0 = 0 ;
13542 char *kwnames[] = {
13543 (char *) "self", NULL
13544 };
13545
13546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13549 {
13550 PyThreadState* __tstate = wxPyBeginAllowThreads();
13551 result = ((wxDC const *)arg1)->GetPPI();
13552
13553 wxPyEndAllowThreads(__tstate);
13554 if (PyErr_Occurred()) SWIG_fail;
13555 }
13556 {
13557 wxSize * resultptr;
13558 resultptr = new wxSize((wxSize &) result);
13559 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13560 }
13561 return resultobj;
13562 fail:
13563 return NULL;
13564 }
13565
13566
13567 static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
13568 PyObject *resultobj;
13569 wxDC *arg1 = (wxDC *) 0 ;
13570 bool result;
13571 PyObject * obj0 = 0 ;
13572 char *kwnames[] = {
13573 (char *) "self", NULL
13574 };
13575
13576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13579 {
13580 PyThreadState* __tstate = wxPyBeginAllowThreads();
13581 result = (bool)((wxDC const *)arg1)->Ok();
13582
13583 wxPyEndAllowThreads(__tstate);
13584 if (PyErr_Occurred()) SWIG_fail;
13585 }
13586 {
13587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13588 }
13589 return resultobj;
13590 fail:
13591 return NULL;
13592 }
13593
13594
13595 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
13596 PyObject *resultobj;
13597 wxDC *arg1 = (wxDC *) 0 ;
13598 int result;
13599 PyObject * obj0 = 0 ;
13600 char *kwnames[] = {
13601 (char *) "self", NULL
13602 };
13603
13604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13607 {
13608 PyThreadState* __tstate = wxPyBeginAllowThreads();
13609 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13610
13611 wxPyEndAllowThreads(__tstate);
13612 if (PyErr_Occurred()) SWIG_fail;
13613 }
13614 resultobj = SWIG_FromInt((int)result);
13615 return resultobj;
13616 fail:
13617 return NULL;
13618 }
13619
13620
13621 static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
13622 PyObject *resultobj;
13623 wxDC *arg1 = (wxDC *) 0 ;
13624 wxBrush *result;
13625 PyObject * obj0 = 0 ;
13626 char *kwnames[] = {
13627 (char *) "self", NULL
13628 };
13629
13630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13633 {
13634 PyThreadState* __tstate = wxPyBeginAllowThreads();
13635 {
13636 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13637 result = (wxBrush *) &_result_ref;
13638 }
13639
13640 wxPyEndAllowThreads(__tstate);
13641 if (PyErr_Occurred()) SWIG_fail;
13642 }
13643 {
13644 wxBrush* resultptr = new wxBrush(*result);
13645 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13646 }
13647 return resultobj;
13648 fail:
13649 return NULL;
13650 }
13651
13652
13653 static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
13654 PyObject *resultobj;
13655 wxDC *arg1 = (wxDC *) 0 ;
13656 wxBrush *result;
13657 PyObject * obj0 = 0 ;
13658 char *kwnames[] = {
13659 (char *) "self", NULL
13660 };
13661
13662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13665 {
13666 PyThreadState* __tstate = wxPyBeginAllowThreads();
13667 {
13668 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13669 result = (wxBrush *) &_result_ref;
13670 }
13671
13672 wxPyEndAllowThreads(__tstate);
13673 if (PyErr_Occurred()) SWIG_fail;
13674 }
13675 {
13676 wxBrush* resultptr = new wxBrush(*result);
13677 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13678 }
13679 return resultobj;
13680 fail:
13681 return NULL;
13682 }
13683
13684
13685 static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
13686 PyObject *resultobj;
13687 wxDC *arg1 = (wxDC *) 0 ;
13688 wxFont *result;
13689 PyObject * obj0 = 0 ;
13690 char *kwnames[] = {
13691 (char *) "self", NULL
13692 };
13693
13694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13697 {
13698 PyThreadState* __tstate = wxPyBeginAllowThreads();
13699 {
13700 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13701 result = (wxFont *) &_result_ref;
13702 }
13703
13704 wxPyEndAllowThreads(__tstate);
13705 if (PyErr_Occurred()) SWIG_fail;
13706 }
13707 {
13708 wxFont* resultptr = new wxFont(*result);
13709 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
13710 }
13711 return resultobj;
13712 fail:
13713 return NULL;
13714 }
13715
13716
13717 static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) {
13718 PyObject *resultobj;
13719 wxDC *arg1 = (wxDC *) 0 ;
13720 wxPen *result;
13721 PyObject * obj0 = 0 ;
13722 char *kwnames[] = {
13723 (char *) "self", NULL
13724 };
13725
13726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13729 {
13730 PyThreadState* __tstate = wxPyBeginAllowThreads();
13731 {
13732 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13733 result = (wxPen *) &_result_ref;
13734 }
13735
13736 wxPyEndAllowThreads(__tstate);
13737 if (PyErr_Occurred()) SWIG_fail;
13738 }
13739 {
13740 wxPen* resultptr = new wxPen(*result);
13741 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
13742 }
13743 return resultobj;
13744 fail:
13745 return NULL;
13746 }
13747
13748
13749 static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
13750 PyObject *resultobj;
13751 wxDC *arg1 = (wxDC *) 0 ;
13752 wxColour *result;
13753 PyObject * obj0 = 0 ;
13754 char *kwnames[] = {
13755 (char *) "self", NULL
13756 };
13757
13758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13761 {
13762 PyThreadState* __tstate = wxPyBeginAllowThreads();
13763 {
13764 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13765 result = (wxColour *) &_result_ref;
13766 }
13767
13768 wxPyEndAllowThreads(__tstate);
13769 if (PyErr_Occurred()) SWIG_fail;
13770 }
13771 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13772 return resultobj;
13773 fail:
13774 return NULL;
13775 }
13776
13777
13778 static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
13779 PyObject *resultobj;
13780 wxDC *arg1 = (wxDC *) 0 ;
13781 wxColour *result;
13782 PyObject * obj0 = 0 ;
13783 char *kwnames[] = {
13784 (char *) "self", NULL
13785 };
13786
13787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
13788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13790 {
13791 PyThreadState* __tstate = wxPyBeginAllowThreads();
13792 {
13793 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13794 result = (wxColour *) &_result_ref;
13795 }
13796
13797 wxPyEndAllowThreads(__tstate);
13798 if (PyErr_Occurred()) SWIG_fail;
13799 }
13800 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13801 return resultobj;
13802 fail:
13803 return NULL;
13804 }
13805
13806
13807 static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
13808 PyObject *resultobj;
13809 wxDC *arg1 = (wxDC *) 0 ;
13810 wxColour *arg2 = 0 ;
13811 wxColour temp2 ;
13812 PyObject * obj0 = 0 ;
13813 PyObject * obj1 = 0 ;
13814 char *kwnames[] = {
13815 (char *) "self",(char *) "colour", NULL
13816 };
13817
13818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
13819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13821 {
13822 arg2 = &temp2;
13823 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13824 }
13825 {
13826 PyThreadState* __tstate = wxPyBeginAllowThreads();
13827 (arg1)->SetTextForeground((wxColour const &)*arg2);
13828
13829 wxPyEndAllowThreads(__tstate);
13830 if (PyErr_Occurred()) SWIG_fail;
13831 }
13832 Py_INCREF(Py_None); resultobj = Py_None;
13833 return resultobj;
13834 fail:
13835 return NULL;
13836 }
13837
13838
13839 static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
13840 PyObject *resultobj;
13841 wxDC *arg1 = (wxDC *) 0 ;
13842 wxColour *arg2 = 0 ;
13843 wxColour temp2 ;
13844 PyObject * obj0 = 0 ;
13845 PyObject * obj1 = 0 ;
13846 char *kwnames[] = {
13847 (char *) "self",(char *) "colour", NULL
13848 };
13849
13850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
13851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13853 {
13854 arg2 = &temp2;
13855 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13856 }
13857 {
13858 PyThreadState* __tstate = wxPyBeginAllowThreads();
13859 (arg1)->SetTextBackground((wxColour const &)*arg2);
13860
13861 wxPyEndAllowThreads(__tstate);
13862 if (PyErr_Occurred()) SWIG_fail;
13863 }
13864 Py_INCREF(Py_None); resultobj = Py_None;
13865 return resultobj;
13866 fail:
13867 return NULL;
13868 }
13869
13870
13871 static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
13872 PyObject *resultobj;
13873 wxDC *arg1 = (wxDC *) 0 ;
13874 int result;
13875 PyObject * obj0 = 0 ;
13876 char *kwnames[] = {
13877 (char *) "self", NULL
13878 };
13879
13880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
13881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13883 {
13884 PyThreadState* __tstate = wxPyBeginAllowThreads();
13885 result = (int)((wxDC const *)arg1)->GetMapMode();
13886
13887 wxPyEndAllowThreads(__tstate);
13888 if (PyErr_Occurred()) SWIG_fail;
13889 }
13890 resultobj = SWIG_FromInt((int)result);
13891 return resultobj;
13892 fail:
13893 return NULL;
13894 }
13895
13896
13897 static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
13898 PyObject *resultobj;
13899 wxDC *arg1 = (wxDC *) 0 ;
13900 int arg2 ;
13901 PyObject * obj0 = 0 ;
13902 PyObject * obj1 = 0 ;
13903 char *kwnames[] = {
13904 (char *) "self",(char *) "mode", NULL
13905 };
13906
13907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
13908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13910 arg2 = (int) SWIG_AsInt(obj1);
13911 if (PyErr_Occurred()) SWIG_fail;
13912 {
13913 PyThreadState* __tstate = wxPyBeginAllowThreads();
13914 (arg1)->SetMapMode(arg2);
13915
13916 wxPyEndAllowThreads(__tstate);
13917 if (PyErr_Occurred()) SWIG_fail;
13918 }
13919 Py_INCREF(Py_None); resultobj = Py_None;
13920 return resultobj;
13921 fail:
13922 return NULL;
13923 }
13924
13925
13926 static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
13927 PyObject *resultobj;
13928 wxDC *arg1 = (wxDC *) 0 ;
13929 double *arg2 = (double *) 0 ;
13930 double *arg3 = (double *) 0 ;
13931 double temp2 ;
13932 double temp3 ;
13933 PyObject * obj0 = 0 ;
13934 char *kwnames[] = {
13935 (char *) "self", NULL
13936 };
13937
13938 arg2 = &temp2;
13939 arg3 = &temp3;
13940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
13941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13943 {
13944 PyThreadState* __tstate = wxPyBeginAllowThreads();
13945 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
13946
13947 wxPyEndAllowThreads(__tstate);
13948 if (PyErr_Occurred()) SWIG_fail;
13949 }
13950 Py_INCREF(Py_None); resultobj = Py_None;
13951 {
13952 PyObject *o = PyFloat_FromDouble((double) (*arg2));
13953 resultobj = t_output_helper(resultobj,o);
13954 }
13955 {
13956 PyObject *o = PyFloat_FromDouble((double) (*arg3));
13957 resultobj = t_output_helper(resultobj,o);
13958 }
13959 return resultobj;
13960 fail:
13961 return NULL;
13962 }
13963
13964
13965 static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
13966 PyObject *resultobj;
13967 wxDC *arg1 = (wxDC *) 0 ;
13968 double arg2 ;
13969 double arg3 ;
13970 PyObject * obj0 = 0 ;
13971 PyObject * obj1 = 0 ;
13972 PyObject * obj2 = 0 ;
13973 char *kwnames[] = {
13974 (char *) "self",(char *) "x",(char *) "y", NULL
13975 };
13976
13977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
13978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13980 arg2 = (double) SWIG_AsDouble(obj1);
13981 if (PyErr_Occurred()) SWIG_fail;
13982 arg3 = (double) SWIG_AsDouble(obj2);
13983 if (PyErr_Occurred()) SWIG_fail;
13984 {
13985 PyThreadState* __tstate = wxPyBeginAllowThreads();
13986 (arg1)->SetUserScale(arg2,arg3);
13987
13988 wxPyEndAllowThreads(__tstate);
13989 if (PyErr_Occurred()) SWIG_fail;
13990 }
13991 Py_INCREF(Py_None); resultobj = Py_None;
13992 return resultobj;
13993 fail:
13994 return NULL;
13995 }
13996
13997
13998 static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
13999 PyObject *resultobj;
14000 wxDC *arg1 = (wxDC *) 0 ;
14001 double *arg2 = (double *) 0 ;
14002 double *arg3 = (double *) 0 ;
14003 double temp2 ;
14004 double temp3 ;
14005 PyObject * obj0 = 0 ;
14006 char *kwnames[] = {
14007 (char *) "self", NULL
14008 };
14009
14010 arg2 = &temp2;
14011 arg3 = &temp3;
14012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14015 {
14016 PyThreadState* __tstate = wxPyBeginAllowThreads();
14017 (arg1)->GetLogicalScale(arg2,arg3);
14018
14019 wxPyEndAllowThreads(__tstate);
14020 if (PyErr_Occurred()) SWIG_fail;
14021 }
14022 Py_INCREF(Py_None); resultobj = Py_None;
14023 {
14024 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14025 resultobj = t_output_helper(resultobj,o);
14026 }
14027 {
14028 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14029 resultobj = t_output_helper(resultobj,o);
14030 }
14031 return resultobj;
14032 fail:
14033 return NULL;
14034 }
14035
14036
14037 static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
14038 PyObject *resultobj;
14039 wxDC *arg1 = (wxDC *) 0 ;
14040 double arg2 ;
14041 double arg3 ;
14042 PyObject * obj0 = 0 ;
14043 PyObject * obj1 = 0 ;
14044 PyObject * obj2 = 0 ;
14045 char *kwnames[] = {
14046 (char *) "self",(char *) "x",(char *) "y", NULL
14047 };
14048
14049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14052 arg2 = (double) SWIG_AsDouble(obj1);
14053 if (PyErr_Occurred()) SWIG_fail;
14054 arg3 = (double) SWIG_AsDouble(obj2);
14055 if (PyErr_Occurred()) SWIG_fail;
14056 {
14057 PyThreadState* __tstate = wxPyBeginAllowThreads();
14058 (arg1)->SetLogicalScale(arg2,arg3);
14059
14060 wxPyEndAllowThreads(__tstate);
14061 if (PyErr_Occurred()) SWIG_fail;
14062 }
14063 Py_INCREF(Py_None); resultobj = Py_None;
14064 return resultobj;
14065 fail:
14066 return NULL;
14067 }
14068
14069
14070 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14071 PyObject *resultobj;
14072 wxDC *arg1 = (wxDC *) 0 ;
14073 wxPoint result;
14074 PyObject * obj0 = 0 ;
14075 char *kwnames[] = {
14076 (char *) "self", NULL
14077 };
14078
14079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14082 {
14083 PyThreadState* __tstate = wxPyBeginAllowThreads();
14084 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14085
14086 wxPyEndAllowThreads(__tstate);
14087 if (PyErr_Occurred()) SWIG_fail;
14088 }
14089 {
14090 wxPoint * resultptr;
14091 resultptr = new wxPoint((wxPoint &) result);
14092 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14093 }
14094 return resultobj;
14095 fail:
14096 return NULL;
14097 }
14098
14099
14100 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
14101 PyObject *resultobj;
14102 wxDC *arg1 = (wxDC *) 0 ;
14103 int *arg2 = (int *) 0 ;
14104 int *arg3 = (int *) 0 ;
14105 int temp2 ;
14106 int temp3 ;
14107 PyObject * obj0 = 0 ;
14108 char *kwnames[] = {
14109 (char *) "self", NULL
14110 };
14111
14112 arg2 = &temp2;
14113 arg3 = &temp3;
14114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14117 {
14118 PyThreadState* __tstate = wxPyBeginAllowThreads();
14119 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14120
14121 wxPyEndAllowThreads(__tstate);
14122 if (PyErr_Occurred()) SWIG_fail;
14123 }
14124 Py_INCREF(Py_None); resultobj = Py_None;
14125 {
14126 PyObject *o = PyInt_FromLong((long) (*arg2));
14127 resultobj = t_output_helper(resultobj,o);
14128 }
14129 {
14130 PyObject *o = PyInt_FromLong((long) (*arg3));
14131 resultobj = t_output_helper(resultobj,o);
14132 }
14133 return resultobj;
14134 fail:
14135 return NULL;
14136 }
14137
14138
14139 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14140 PyObject *resultobj;
14141 wxDC *arg1 = (wxDC *) 0 ;
14142 int arg2 ;
14143 int arg3 ;
14144 PyObject * obj0 = 0 ;
14145 PyObject * obj1 = 0 ;
14146 PyObject * obj2 = 0 ;
14147 char *kwnames[] = {
14148 (char *) "self",(char *) "x",(char *) "y", NULL
14149 };
14150
14151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14154 arg2 = (int) SWIG_AsInt(obj1);
14155 if (PyErr_Occurred()) SWIG_fail;
14156 arg3 = (int) SWIG_AsInt(obj2);
14157 if (PyErr_Occurred()) SWIG_fail;
14158 {
14159 PyThreadState* __tstate = wxPyBeginAllowThreads();
14160 (arg1)->SetLogicalOrigin(arg2,arg3);
14161
14162 wxPyEndAllowThreads(__tstate);
14163 if (PyErr_Occurred()) SWIG_fail;
14164 }
14165 Py_INCREF(Py_None); resultobj = Py_None;
14166 return resultobj;
14167 fail:
14168 return NULL;
14169 }
14170
14171
14172 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14173 PyObject *resultobj;
14174 wxDC *arg1 = (wxDC *) 0 ;
14175 wxPoint result;
14176 PyObject * obj0 = 0 ;
14177 char *kwnames[] = {
14178 (char *) "self", NULL
14179 };
14180
14181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14184 {
14185 PyThreadState* __tstate = wxPyBeginAllowThreads();
14186 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14187
14188 wxPyEndAllowThreads(__tstate);
14189 if (PyErr_Occurred()) SWIG_fail;
14190 }
14191 {
14192 wxPoint * resultptr;
14193 resultptr = new wxPoint((wxPoint &) result);
14194 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14195 }
14196 return resultobj;
14197 fail:
14198 return NULL;
14199 }
14200
14201
14202 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
14203 PyObject *resultobj;
14204 wxDC *arg1 = (wxDC *) 0 ;
14205 int *arg2 = (int *) 0 ;
14206 int *arg3 = (int *) 0 ;
14207 int temp2 ;
14208 int temp3 ;
14209 PyObject * obj0 = 0 ;
14210 char *kwnames[] = {
14211 (char *) "self", NULL
14212 };
14213
14214 arg2 = &temp2;
14215 arg3 = &temp3;
14216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14219 {
14220 PyThreadState* __tstate = wxPyBeginAllowThreads();
14221 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14222
14223 wxPyEndAllowThreads(__tstate);
14224 if (PyErr_Occurred()) SWIG_fail;
14225 }
14226 Py_INCREF(Py_None); resultobj = Py_None;
14227 {
14228 PyObject *o = PyInt_FromLong((long) (*arg2));
14229 resultobj = t_output_helper(resultobj,o);
14230 }
14231 {
14232 PyObject *o = PyInt_FromLong((long) (*arg3));
14233 resultobj = t_output_helper(resultobj,o);
14234 }
14235 return resultobj;
14236 fail:
14237 return NULL;
14238 }
14239
14240
14241 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
14242 PyObject *resultobj;
14243 wxDC *arg1 = (wxDC *) 0 ;
14244 int arg2 ;
14245 int arg3 ;
14246 PyObject * obj0 = 0 ;
14247 PyObject * obj1 = 0 ;
14248 PyObject * obj2 = 0 ;
14249 char *kwnames[] = {
14250 (char *) "self",(char *) "x",(char *) "y", NULL
14251 };
14252
14253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14256 arg2 = (int) SWIG_AsInt(obj1);
14257 if (PyErr_Occurred()) SWIG_fail;
14258 arg3 = (int) SWIG_AsInt(obj2);
14259 if (PyErr_Occurred()) SWIG_fail;
14260 {
14261 PyThreadState* __tstate = wxPyBeginAllowThreads();
14262 (arg1)->SetDeviceOrigin(arg2,arg3);
14263
14264 wxPyEndAllowThreads(__tstate);
14265 if (PyErr_Occurred()) SWIG_fail;
14266 }
14267 Py_INCREF(Py_None); resultobj = Py_None;
14268 return resultobj;
14269 fail:
14270 return NULL;
14271 }
14272
14273
14274 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
14275 PyObject *resultobj;
14276 wxDC *arg1 = (wxDC *) 0 ;
14277 bool arg2 ;
14278 bool arg3 ;
14279 PyObject * obj0 = 0 ;
14280 PyObject * obj1 = 0 ;
14281 PyObject * obj2 = 0 ;
14282 char *kwnames[] = {
14283 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14284 };
14285
14286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14289 arg2 = (bool) SWIG_AsBool(obj1);
14290 if (PyErr_Occurred()) SWIG_fail;
14291 arg3 = (bool) SWIG_AsBool(obj2);
14292 if (PyErr_Occurred()) SWIG_fail;
14293 {
14294 PyThreadState* __tstate = wxPyBeginAllowThreads();
14295 (arg1)->SetAxisOrientation(arg2,arg3);
14296
14297 wxPyEndAllowThreads(__tstate);
14298 if (PyErr_Occurred()) SWIG_fail;
14299 }
14300 Py_INCREF(Py_None); resultobj = Py_None;
14301 return resultobj;
14302 fail:
14303 return NULL;
14304 }
14305
14306
14307 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
14308 PyObject *resultobj;
14309 wxDC *arg1 = (wxDC *) 0 ;
14310 int result;
14311 PyObject * obj0 = 0 ;
14312 char *kwnames[] = {
14313 (char *) "self", NULL
14314 };
14315
14316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14319 {
14320 PyThreadState* __tstate = wxPyBeginAllowThreads();
14321 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14322
14323 wxPyEndAllowThreads(__tstate);
14324 if (PyErr_Occurred()) SWIG_fail;
14325 }
14326 resultobj = SWIG_FromInt((int)result);
14327 return resultobj;
14328 fail:
14329 return NULL;
14330 }
14331
14332
14333 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
14334 PyObject *resultobj;
14335 wxDC *arg1 = (wxDC *) 0 ;
14336 int arg2 ;
14337 PyObject * obj0 = 0 ;
14338 PyObject * obj1 = 0 ;
14339 char *kwnames[] = {
14340 (char *) "self",(char *) "function", NULL
14341 };
14342
14343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14346 arg2 = (int) SWIG_AsInt(obj1);
14347 if (PyErr_Occurred()) SWIG_fail;
14348 {
14349 PyThreadState* __tstate = wxPyBeginAllowThreads();
14350 (arg1)->SetLogicalFunction(arg2);
14351
14352 wxPyEndAllowThreads(__tstate);
14353 if (PyErr_Occurred()) SWIG_fail;
14354 }
14355 Py_INCREF(Py_None); resultobj = Py_None;
14356 return resultobj;
14357 fail:
14358 return NULL;
14359 }
14360
14361
14362 static PyObject *_wrap_DC_SetOptimization(PyObject *, PyObject *args, PyObject *kwargs) {
14363 PyObject *resultobj;
14364 wxDC *arg1 = (wxDC *) 0 ;
14365 bool arg2 ;
14366 PyObject * obj0 = 0 ;
14367 PyObject * obj1 = 0 ;
14368 char *kwnames[] = {
14369 (char *) "self",(char *) "opt", NULL
14370 };
14371
14372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14375 arg2 = (bool) SWIG_AsBool(obj1);
14376 if (PyErr_Occurred()) SWIG_fail;
14377 {
14378 PyThreadState* __tstate = wxPyBeginAllowThreads();
14379 (arg1)->SetOptimization(arg2);
14380
14381 wxPyEndAllowThreads(__tstate);
14382 if (PyErr_Occurred()) SWIG_fail;
14383 }
14384 Py_INCREF(Py_None); resultobj = Py_None;
14385 return resultobj;
14386 fail:
14387 return NULL;
14388 }
14389
14390
14391 static PyObject *_wrap_DC_GetOptimization(PyObject *, PyObject *args, PyObject *kwargs) {
14392 PyObject *resultobj;
14393 wxDC *arg1 = (wxDC *) 0 ;
14394 bool result;
14395 PyObject * obj0 = 0 ;
14396 char *kwnames[] = {
14397 (char *) "self", NULL
14398 };
14399
14400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14403 {
14404 PyThreadState* __tstate = wxPyBeginAllowThreads();
14405 result = (bool)(arg1)->GetOptimization();
14406
14407 wxPyEndAllowThreads(__tstate);
14408 if (PyErr_Occurred()) SWIG_fail;
14409 }
14410 {
14411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14412 }
14413 return resultobj;
14414 fail:
14415 return NULL;
14416 }
14417
14418
14419 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
14420 PyObject *resultobj;
14421 wxDC *arg1 = (wxDC *) 0 ;
14422 int arg2 ;
14423 int arg3 ;
14424 PyObject * obj0 = 0 ;
14425 PyObject * obj1 = 0 ;
14426 PyObject * obj2 = 0 ;
14427 char *kwnames[] = {
14428 (char *) "self",(char *) "x",(char *) "y", NULL
14429 };
14430
14431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14434 arg2 = (int) SWIG_AsInt(obj1);
14435 if (PyErr_Occurred()) SWIG_fail;
14436 arg3 = (int) SWIG_AsInt(obj2);
14437 if (PyErr_Occurred()) SWIG_fail;
14438 {
14439 PyThreadState* __tstate = wxPyBeginAllowThreads();
14440 (arg1)->CalcBoundingBox(arg2,arg3);
14441
14442 wxPyEndAllowThreads(__tstate);
14443 if (PyErr_Occurred()) SWIG_fail;
14444 }
14445 Py_INCREF(Py_None); resultobj = Py_None;
14446 return resultobj;
14447 fail:
14448 return NULL;
14449 }
14450
14451
14452 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
14453 PyObject *resultobj;
14454 wxDC *arg1 = (wxDC *) 0 ;
14455 PyObject * obj0 = 0 ;
14456 char *kwnames[] = {
14457 (char *) "self", NULL
14458 };
14459
14460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14463 {
14464 PyThreadState* __tstate = wxPyBeginAllowThreads();
14465 (arg1)->ResetBoundingBox();
14466
14467 wxPyEndAllowThreads(__tstate);
14468 if (PyErr_Occurred()) SWIG_fail;
14469 }
14470 Py_INCREF(Py_None); resultobj = Py_None;
14471 return resultobj;
14472 fail:
14473 return NULL;
14474 }
14475
14476
14477 static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) {
14478 PyObject *resultobj;
14479 wxDC *arg1 = (wxDC *) 0 ;
14480 int result;
14481 PyObject * obj0 = 0 ;
14482 char *kwnames[] = {
14483 (char *) "self", NULL
14484 };
14485
14486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14489 {
14490 PyThreadState* __tstate = wxPyBeginAllowThreads();
14491 result = (int)((wxDC const *)arg1)->MinX();
14492
14493 wxPyEndAllowThreads(__tstate);
14494 if (PyErr_Occurred()) SWIG_fail;
14495 }
14496 resultobj = SWIG_FromInt((int)result);
14497 return resultobj;
14498 fail:
14499 return NULL;
14500 }
14501
14502
14503 static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) {
14504 PyObject *resultobj;
14505 wxDC *arg1 = (wxDC *) 0 ;
14506 int result;
14507 PyObject * obj0 = 0 ;
14508 char *kwnames[] = {
14509 (char *) "self", NULL
14510 };
14511
14512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14515 {
14516 PyThreadState* __tstate = wxPyBeginAllowThreads();
14517 result = (int)((wxDC const *)arg1)->MaxX();
14518
14519 wxPyEndAllowThreads(__tstate);
14520 if (PyErr_Occurred()) SWIG_fail;
14521 }
14522 resultobj = SWIG_FromInt((int)result);
14523 return resultobj;
14524 fail:
14525 return NULL;
14526 }
14527
14528
14529 static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) {
14530 PyObject *resultobj;
14531 wxDC *arg1 = (wxDC *) 0 ;
14532 int result;
14533 PyObject * obj0 = 0 ;
14534 char *kwnames[] = {
14535 (char *) "self", NULL
14536 };
14537
14538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14541 {
14542 PyThreadState* __tstate = wxPyBeginAllowThreads();
14543 result = (int)((wxDC const *)arg1)->MinY();
14544
14545 wxPyEndAllowThreads(__tstate);
14546 if (PyErr_Occurred()) SWIG_fail;
14547 }
14548 resultobj = SWIG_FromInt((int)result);
14549 return resultobj;
14550 fail:
14551 return NULL;
14552 }
14553
14554
14555 static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) {
14556 PyObject *resultobj;
14557 wxDC *arg1 = (wxDC *) 0 ;
14558 int result;
14559 PyObject * obj0 = 0 ;
14560 char *kwnames[] = {
14561 (char *) "self", NULL
14562 };
14563
14564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14567 {
14568 PyThreadState* __tstate = wxPyBeginAllowThreads();
14569 result = (int)((wxDC const *)arg1)->MaxY();
14570
14571 wxPyEndAllowThreads(__tstate);
14572 if (PyErr_Occurred()) SWIG_fail;
14573 }
14574 resultobj = SWIG_FromInt((int)result);
14575 return resultobj;
14576 fail:
14577 return NULL;
14578 }
14579
14580
14581 static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
14582 PyObject *resultobj;
14583 wxDC *arg1 = (wxDC *) 0 ;
14584 int *arg2 = (int *) 0 ;
14585 int *arg3 = (int *) 0 ;
14586 int *arg4 = (int *) 0 ;
14587 int *arg5 = (int *) 0 ;
14588 int temp2 ;
14589 int temp3 ;
14590 int temp4 ;
14591 int temp5 ;
14592 PyObject * obj0 = 0 ;
14593 char *kwnames[] = {
14594 (char *) "self", NULL
14595 };
14596
14597 arg2 = &temp2;
14598 arg3 = &temp3;
14599 arg4 = &temp4;
14600 arg5 = &temp5;
14601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14604 {
14605 PyThreadState* __tstate = wxPyBeginAllowThreads();
14606 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14607
14608 wxPyEndAllowThreads(__tstate);
14609 if (PyErr_Occurred()) SWIG_fail;
14610 }
14611 Py_INCREF(Py_None); resultobj = Py_None;
14612 {
14613 PyObject *o = PyInt_FromLong((long) (*arg2));
14614 resultobj = t_output_helper(resultobj,o);
14615 }
14616 {
14617 PyObject *o = PyInt_FromLong((long) (*arg3));
14618 resultobj = t_output_helper(resultobj,o);
14619 }
14620 {
14621 PyObject *o = PyInt_FromLong((long) (*arg4));
14622 resultobj = t_output_helper(resultobj,o);
14623 }
14624 {
14625 PyObject *o = PyInt_FromLong((long) (*arg5));
14626 resultobj = t_output_helper(resultobj,o);
14627 }
14628 return resultobj;
14629 fail:
14630 return NULL;
14631 }
14632
14633
14634 static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) {
14635 PyObject *resultobj;
14636 wxDC *arg1 = (wxDC *) 0 ;
14637 PyObject *arg2 = (PyObject *) 0 ;
14638 PyObject *arg3 = (PyObject *) 0 ;
14639 PyObject *arg4 = (PyObject *) 0 ;
14640 PyObject *result;
14641 PyObject * obj0 = 0 ;
14642 PyObject * obj1 = 0 ;
14643 PyObject * obj2 = 0 ;
14644 PyObject * obj3 = 0 ;
14645 char *kwnames[] = {
14646 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14647 };
14648
14649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14652 arg2 = obj1;
14653 arg3 = obj2;
14654 arg4 = obj3;
14655 {
14656 PyThreadState* __tstate = wxPyBeginAllowThreads();
14657 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14658
14659 wxPyEndAllowThreads(__tstate);
14660 if (PyErr_Occurred()) SWIG_fail;
14661 }
14662 resultobj = result;
14663 return resultobj;
14664 fail:
14665 return NULL;
14666 }
14667
14668
14669 static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) {
14670 PyObject *resultobj;
14671 wxDC *arg1 = (wxDC *) 0 ;
14672 PyObject *arg2 = (PyObject *) 0 ;
14673 PyObject *arg3 = (PyObject *) 0 ;
14674 PyObject *arg4 = (PyObject *) 0 ;
14675 PyObject *result;
14676 PyObject * obj0 = 0 ;
14677 PyObject * obj1 = 0 ;
14678 PyObject * obj2 = 0 ;
14679 PyObject * obj3 = 0 ;
14680 char *kwnames[] = {
14681 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14682 };
14683
14684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14687 arg2 = obj1;
14688 arg3 = obj2;
14689 arg4 = obj3;
14690 {
14691 PyThreadState* __tstate = wxPyBeginAllowThreads();
14692 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14693
14694 wxPyEndAllowThreads(__tstate);
14695 if (PyErr_Occurred()) SWIG_fail;
14696 }
14697 resultobj = result;
14698 return resultobj;
14699 fail:
14700 return NULL;
14701 }
14702
14703
14704 static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) {
14705 PyObject *resultobj;
14706 wxDC *arg1 = (wxDC *) 0 ;
14707 PyObject *arg2 = (PyObject *) 0 ;
14708 PyObject *arg3 = (PyObject *) 0 ;
14709 PyObject *arg4 = (PyObject *) 0 ;
14710 PyObject *result;
14711 PyObject * obj0 = 0 ;
14712 PyObject * obj1 = 0 ;
14713 PyObject * obj2 = 0 ;
14714 PyObject * obj3 = 0 ;
14715 char *kwnames[] = {
14716 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14717 };
14718
14719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14722 arg2 = obj1;
14723 arg3 = obj2;
14724 arg4 = obj3;
14725 {
14726 PyThreadState* __tstate = wxPyBeginAllowThreads();
14727 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14728
14729 wxPyEndAllowThreads(__tstate);
14730 if (PyErr_Occurred()) SWIG_fail;
14731 }
14732 resultobj = result;
14733 return resultobj;
14734 fail:
14735 return NULL;
14736 }
14737
14738
14739 static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) {
14740 PyObject *resultobj;
14741 wxDC *arg1 = (wxDC *) 0 ;
14742 PyObject *arg2 = (PyObject *) 0 ;
14743 PyObject *arg3 = (PyObject *) 0 ;
14744 PyObject *arg4 = (PyObject *) 0 ;
14745 PyObject *result;
14746 PyObject * obj0 = 0 ;
14747 PyObject * obj1 = 0 ;
14748 PyObject * obj2 = 0 ;
14749 PyObject * obj3 = 0 ;
14750 char *kwnames[] = {
14751 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14752 };
14753
14754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14757 arg2 = obj1;
14758 arg3 = obj2;
14759 arg4 = obj3;
14760 {
14761 PyThreadState* __tstate = wxPyBeginAllowThreads();
14762 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14763
14764 wxPyEndAllowThreads(__tstate);
14765 if (PyErr_Occurred()) SWIG_fail;
14766 }
14767 resultobj = result;
14768 return resultobj;
14769 fail:
14770 return NULL;
14771 }
14772
14773
14774 static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) {
14775 PyObject *resultobj;
14776 wxDC *arg1 = (wxDC *) 0 ;
14777 PyObject *arg2 = (PyObject *) 0 ;
14778 PyObject *arg3 = (PyObject *) 0 ;
14779 PyObject *arg4 = (PyObject *) 0 ;
14780 PyObject *result;
14781 PyObject * obj0 = 0 ;
14782 PyObject * obj1 = 0 ;
14783 PyObject * obj2 = 0 ;
14784 PyObject * obj3 = 0 ;
14785 char *kwnames[] = {
14786 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14787 };
14788
14789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14792 arg2 = obj1;
14793 arg3 = obj2;
14794 arg4 = obj3;
14795 {
14796 PyThreadState* __tstate = wxPyBeginAllowThreads();
14797 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
14798
14799 wxPyEndAllowThreads(__tstate);
14800 if (PyErr_Occurred()) SWIG_fail;
14801 }
14802 resultobj = result;
14803 return resultobj;
14804 fail:
14805 return NULL;
14806 }
14807
14808
14809 static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) {
14810 PyObject *resultobj;
14811 wxDC *arg1 = (wxDC *) 0 ;
14812 PyObject *arg2 = (PyObject *) 0 ;
14813 PyObject *arg3 = (PyObject *) 0 ;
14814 PyObject *arg4 = (PyObject *) 0 ;
14815 PyObject *arg5 = (PyObject *) 0 ;
14816 PyObject *result;
14817 PyObject * obj0 = 0 ;
14818 PyObject * obj1 = 0 ;
14819 PyObject * obj2 = 0 ;
14820 PyObject * obj3 = 0 ;
14821 PyObject * obj4 = 0 ;
14822 char *kwnames[] = {
14823 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
14824 };
14825
14826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14829 arg2 = obj1;
14830 arg3 = obj2;
14831 arg4 = obj3;
14832 arg5 = obj4;
14833 {
14834 PyThreadState* __tstate = wxPyBeginAllowThreads();
14835 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
14836
14837 wxPyEndAllowThreads(__tstate);
14838 if (PyErr_Occurred()) SWIG_fail;
14839 }
14840 resultobj = result;
14841 return resultobj;
14842 fail:
14843 return NULL;
14844 }
14845
14846
14847 static PyObject * DC_swigregister(PyObject *, PyObject *args) {
14848 PyObject *obj;
14849 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14850 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
14851 Py_INCREF(obj);
14852 return Py_BuildValue((char *)"");
14853 }
14854 static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) {
14855 PyObject *resultobj;
14856 wxMemoryDC *result;
14857 char *kwnames[] = {
14858 NULL
14859 };
14860
14861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
14862 {
14863 PyThreadState* __tstate = wxPyBeginAllowThreads();
14864 result = (wxMemoryDC *)new wxMemoryDC();
14865
14866 wxPyEndAllowThreads(__tstate);
14867 if (PyErr_Occurred()) SWIG_fail;
14868 }
14869 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
14870 return resultobj;
14871 fail:
14872 return NULL;
14873 }
14874
14875
14876 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) {
14877 PyObject *resultobj;
14878 wxDC *arg1 = (wxDC *) 0 ;
14879 wxMemoryDC *result;
14880 PyObject * obj0 = 0 ;
14881 char *kwnames[] = {
14882 (char *) "oldDC", NULL
14883 };
14884
14885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
14886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14888 {
14889 PyThreadState* __tstate = wxPyBeginAllowThreads();
14890 result = (wxMemoryDC *)new wxMemoryDC(arg1);
14891
14892 wxPyEndAllowThreads(__tstate);
14893 if (PyErr_Occurred()) SWIG_fail;
14894 }
14895 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
14896 return resultobj;
14897 fail:
14898 return NULL;
14899 }
14900
14901
14902 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) {
14903 PyObject *resultobj;
14904 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
14905 wxBitmap *arg2 = 0 ;
14906 PyObject * obj0 = 0 ;
14907 PyObject * obj1 = 0 ;
14908 char *kwnames[] = {
14909 (char *) "self",(char *) "bitmap", NULL
14910 };
14911
14912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
14913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
14914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14915 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
14916 SWIG_POINTER_EXCEPTION | 0)) == -1)
14917 SWIG_fail;
14918 if (arg2 == NULL) {
14919 PyErr_SetString(PyExc_TypeError,"null reference");
14920 SWIG_fail;
14921 }
14922 {
14923 PyThreadState* __tstate = wxPyBeginAllowThreads();
14924 (arg1)->SelectObject((wxBitmap const &)*arg2);
14925
14926 wxPyEndAllowThreads(__tstate);
14927 if (PyErr_Occurred()) SWIG_fail;
14928 }
14929 Py_INCREF(Py_None); resultobj = Py_None;
14930 return resultobj;
14931 fail:
14932 return NULL;
14933 }
14934
14935
14936 static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) {
14937 PyObject *obj;
14938 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14939 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
14940 Py_INCREF(obj);
14941 return Py_BuildValue((char *)"");
14942 }
14943 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) {
14944 PyObject *resultobj;
14945 wxDC *arg1 = (wxDC *) 0 ;
14946 wxBitmap *arg2 = 0 ;
14947 wxBufferedDC *result;
14948 PyObject * obj0 = 0 ;
14949 PyObject * obj1 = 0 ;
14950
14951 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
14952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14954 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
14955 SWIG_POINTER_EXCEPTION | 0)) == -1)
14956 SWIG_fail;
14957 if (arg2 == NULL) {
14958 PyErr_SetString(PyExc_TypeError,"null reference");
14959 SWIG_fail;
14960 }
14961 {
14962 PyThreadState* __tstate = wxPyBeginAllowThreads();
14963 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
14964
14965 wxPyEndAllowThreads(__tstate);
14966 if (PyErr_Occurred()) SWIG_fail;
14967 }
14968 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
14969 return resultobj;
14970 fail:
14971 return NULL;
14972 }
14973
14974
14975 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) {
14976 PyObject *resultobj;
14977 wxDC *arg1 = (wxDC *) 0 ;
14978 wxSize *arg2 = 0 ;
14979 wxBufferedDC *result;
14980 wxSize temp2 ;
14981 PyObject * obj0 = 0 ;
14982 PyObject * obj1 = 0 ;
14983
14984 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
14985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14987 {
14988 arg2 = &temp2;
14989 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14990 }
14991 {
14992 PyThreadState* __tstate = wxPyBeginAllowThreads();
14993 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
14994
14995 wxPyEndAllowThreads(__tstate);
14996 if (PyErr_Occurred()) SWIG_fail;
14997 }
14998 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
14999 return resultobj;
15000 fail:
15001 return NULL;
15002 }
15003
15004
15005 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15006 int argc;
15007 PyObject *argv[3];
15008 int ii;
15009
15010 argc = PyObject_Length(args);
15011 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15012 argv[ii] = PyTuple_GetItem(args,ii);
15013 }
15014 if (argc == 2) {
15015 int _v;
15016 {
15017 void *ptr;
15018 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15019 _v = 0;
15020 PyErr_Clear();
15021 } else {
15022 _v = 1;
15023 }
15024 }
15025 if (_v) {
15026 {
15027 void *ptr;
15028 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15029 _v = 0;
15030 PyErr_Clear();
15031 } else {
15032 _v = 1;
15033 }
15034 }
15035 if (_v) {
15036 return _wrap_new_BufferedDC__SWIG_0(self,args);
15037 }
15038 }
15039 }
15040 if (argc == 2) {
15041 int _v;
15042 {
15043 void *ptr;
15044 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15045 _v = 0;
15046 PyErr_Clear();
15047 } else {
15048 _v = 1;
15049 }
15050 }
15051 if (_v) {
15052 {
15053 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15054 }
15055 if (_v) {
15056 return _wrap_new_BufferedDC__SWIG_1(self,args);
15057 }
15058 }
15059 }
15060
15061 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15062 return NULL;
15063 }
15064
15065
15066 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *, PyObject *args) {
15067 PyObject *resultobj;
15068 wxDC *arg1 = (wxDC *) 0 ;
15069 wxSize *arg2 = 0 ;
15070 wxBufferedDC *result;
15071 wxSize temp2 ;
15072 PyObject * obj0 = 0 ;
15073 PyObject * obj1 = 0 ;
15074
15075 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
15076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15078 {
15079 arg2 = &temp2;
15080 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15081 }
15082 {
15083 PyThreadState* __tstate = wxPyBeginAllowThreads();
15084 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15085
15086 wxPyEndAllowThreads(__tstate);
15087 if (PyErr_Occurred()) SWIG_fail;
15088 }
15089 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15090 return resultobj;
15091 fail:
15092 return NULL;
15093 }
15094
15095
15096 static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) {
15097 PyObject *resultobj;
15098 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15099 PyObject * obj0 = 0 ;
15100 char *kwnames[] = {
15101 (char *) "self", NULL
15102 };
15103
15104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15107 {
15108 PyThreadState* __tstate = wxPyBeginAllowThreads();
15109 delete arg1;
15110
15111 wxPyEndAllowThreads(__tstate);
15112 if (PyErr_Occurred()) SWIG_fail;
15113 }
15114 Py_INCREF(Py_None); resultobj = Py_None;
15115 return resultobj;
15116 fail:
15117 return NULL;
15118 }
15119
15120
15121 static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) {
15122 PyObject *resultobj;
15123 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15124 PyObject * obj0 = 0 ;
15125 char *kwnames[] = {
15126 (char *) "self", NULL
15127 };
15128
15129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15132 {
15133 PyThreadState* __tstate = wxPyBeginAllowThreads();
15134 (arg1)->UnMask();
15135
15136 wxPyEndAllowThreads(__tstate);
15137 if (PyErr_Occurred()) SWIG_fail;
15138 }
15139 Py_INCREF(Py_None); resultobj = Py_None;
15140 return resultobj;
15141 fail:
15142 return NULL;
15143 }
15144
15145
15146 static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) {
15147 PyObject *obj;
15148 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15149 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15150 Py_INCREF(obj);
15151 return Py_BuildValue((char *)"");
15152 }
15153 static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
15154 PyObject *resultobj;
15155 wxWindow *arg1 = (wxWindow *) 0 ;
15156 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15157 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15158 wxBufferedPaintDC *result;
15159 PyObject * obj0 = 0 ;
15160 PyObject * obj1 = 0 ;
15161 char *kwnames[] = {
15162 (char *) "window",(char *) "buffer", NULL
15163 };
15164
15165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15168 if (obj1) {
15169 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15170 SWIG_POINTER_EXCEPTION | 0)) == -1)
15171 SWIG_fail;
15172 if (arg2 == NULL) {
15173 PyErr_SetString(PyExc_TypeError,"null reference");
15174 SWIG_fail;
15175 }
15176 }
15177 {
15178 PyThreadState* __tstate = wxPyBeginAllowThreads();
15179 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15180
15181 wxPyEndAllowThreads(__tstate);
15182 if (PyErr_Occurred()) SWIG_fail;
15183 }
15184 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15185 return resultobj;
15186 fail:
15187 return NULL;
15188 }
15189
15190
15191 static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) {
15192 PyObject *obj;
15193 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15194 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15195 Py_INCREF(obj);
15196 return Py_BuildValue((char *)"");
15197 }
15198 static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) {
15199 PyObject *resultobj;
15200 wxScreenDC *result;
15201 char *kwnames[] = {
15202 NULL
15203 };
15204
15205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15206 {
15207 PyThreadState* __tstate = wxPyBeginAllowThreads();
15208 result = (wxScreenDC *)new wxScreenDC();
15209
15210 wxPyEndAllowThreads(__tstate);
15211 if (PyErr_Occurred()) SWIG_fail;
15212 }
15213 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15214 return resultobj;
15215 fail:
15216 return NULL;
15217 }
15218
15219
15220 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) {
15221 PyObject *resultobj;
15222 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15223 wxWindow *arg2 = (wxWindow *) 0 ;
15224 bool result;
15225 PyObject * obj0 = 0 ;
15226 PyObject * obj1 = 0 ;
15227 char *kwnames[] = {
15228 (char *) "self",(char *) "window", NULL
15229 };
15230
15231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15234 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15236 {
15237 PyThreadState* __tstate = wxPyBeginAllowThreads();
15238 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15239
15240 wxPyEndAllowThreads(__tstate);
15241 if (PyErr_Occurred()) SWIG_fail;
15242 }
15243 {
15244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15245 }
15246 return resultobj;
15247 fail:
15248 return NULL;
15249 }
15250
15251
15252 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
15253 PyObject *resultobj;
15254 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15255 wxRect *arg2 = (wxRect *) NULL ;
15256 bool result;
15257 PyObject * obj0 = 0 ;
15258 PyObject * obj1 = 0 ;
15259 char *kwnames[] = {
15260 (char *) "self",(char *) "rect", NULL
15261 };
15262
15263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15266 if (obj1) {
15267 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15269 }
15270 {
15271 PyThreadState* __tstate = wxPyBeginAllowThreads();
15272 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15273
15274 wxPyEndAllowThreads(__tstate);
15275 if (PyErr_Occurred()) SWIG_fail;
15276 }
15277 {
15278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15279 }
15280 return resultobj;
15281 fail:
15282 return NULL;
15283 }
15284
15285
15286 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
15287 PyObject *resultobj;
15288 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15289 bool result;
15290 PyObject * obj0 = 0 ;
15291 char *kwnames[] = {
15292 (char *) "self", NULL
15293 };
15294
15295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15298 {
15299 PyThreadState* __tstate = wxPyBeginAllowThreads();
15300 result = (bool)(arg1)->EndDrawingOnTop();
15301
15302 wxPyEndAllowThreads(__tstate);
15303 if (PyErr_Occurred()) SWIG_fail;
15304 }
15305 {
15306 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15307 }
15308 return resultobj;
15309 fail:
15310 return NULL;
15311 }
15312
15313
15314 static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) {
15315 PyObject *obj;
15316 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15317 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15318 Py_INCREF(obj);
15319 return Py_BuildValue((char *)"");
15320 }
15321 static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) {
15322 PyObject *resultobj;
15323 wxWindow *arg1 = (wxWindow *) 0 ;
15324 wxClientDC *result;
15325 PyObject * obj0 = 0 ;
15326 char *kwnames[] = {
15327 (char *) "win", NULL
15328 };
15329
15330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15333 {
15334 PyThreadState* __tstate = wxPyBeginAllowThreads();
15335 result = (wxClientDC *)new wxClientDC(arg1);
15336
15337 wxPyEndAllowThreads(__tstate);
15338 if (PyErr_Occurred()) SWIG_fail;
15339 }
15340 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
15341 return resultobj;
15342 fail:
15343 return NULL;
15344 }
15345
15346
15347 static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) {
15348 PyObject *obj;
15349 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15350 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15351 Py_INCREF(obj);
15352 return Py_BuildValue((char *)"");
15353 }
15354 static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
15355 PyObject *resultobj;
15356 wxWindow *arg1 = (wxWindow *) 0 ;
15357 wxPaintDC *result;
15358 PyObject * obj0 = 0 ;
15359 char *kwnames[] = {
15360 (char *) "win", NULL
15361 };
15362
15363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15366 {
15367 PyThreadState* __tstate = wxPyBeginAllowThreads();
15368 result = (wxPaintDC *)new wxPaintDC(arg1);
15369
15370 wxPyEndAllowThreads(__tstate);
15371 if (PyErr_Occurred()) SWIG_fail;
15372 }
15373 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
15374 return resultobj;
15375 fail:
15376 return NULL;
15377 }
15378
15379
15380 static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) {
15381 PyObject *obj;
15382 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15383 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15384 Py_INCREF(obj);
15385 return Py_BuildValue((char *)"");
15386 }
15387 static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) {
15388 PyObject *resultobj;
15389 wxWindow *arg1 = (wxWindow *) 0 ;
15390 wxWindowDC *result;
15391 PyObject * obj0 = 0 ;
15392 char *kwnames[] = {
15393 (char *) "win", NULL
15394 };
15395
15396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15399 {
15400 PyThreadState* __tstate = wxPyBeginAllowThreads();
15401 result = (wxWindowDC *)new wxWindowDC(arg1);
15402
15403 wxPyEndAllowThreads(__tstate);
15404 if (PyErr_Occurred()) SWIG_fail;
15405 }
15406 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
15407 return resultobj;
15408 fail:
15409 return NULL;
15410 }
15411
15412
15413 static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) {
15414 PyObject *obj;
15415 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15416 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15417 Py_INCREF(obj);
15418 return Py_BuildValue((char *)"");
15419 }
15420 static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) {
15421 PyObject *resultobj;
15422 wxDC *arg1 = 0 ;
15423 bool arg2 ;
15424 wxMirrorDC *result;
15425 PyObject * obj0 = 0 ;
15426 PyObject * obj1 = 0 ;
15427 char *kwnames[] = {
15428 (char *) "dc",(char *) "mirror", NULL
15429 };
15430
15431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15433 SWIG_POINTER_EXCEPTION | 0)) == -1)
15434 SWIG_fail;
15435 if (arg1 == NULL) {
15436 PyErr_SetString(PyExc_TypeError,"null reference");
15437 SWIG_fail;
15438 }
15439 arg2 = (bool) SWIG_AsBool(obj1);
15440 if (PyErr_Occurred()) SWIG_fail;
15441 {
15442 PyThreadState* __tstate = wxPyBeginAllowThreads();
15443 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15444
15445 wxPyEndAllowThreads(__tstate);
15446 if (PyErr_Occurred()) SWIG_fail;
15447 }
15448 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
15449 return resultobj;
15450 fail:
15451 return NULL;
15452 }
15453
15454
15455 static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) {
15456 PyObject *obj;
15457 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15458 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15459 Py_INCREF(obj);
15460 return Py_BuildValue((char *)"");
15461 }
15462 static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) {
15463 PyObject *resultobj;
15464 wxPrintData *arg1 = 0 ;
15465 wxPostScriptDC *result;
15466 PyObject * obj0 = 0 ;
15467 char *kwnames[] = {
15468 (char *) "printData", NULL
15469 };
15470
15471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15473 SWIG_POINTER_EXCEPTION | 0)) == -1)
15474 SWIG_fail;
15475 if (arg1 == NULL) {
15476 PyErr_SetString(PyExc_TypeError,"null reference");
15477 SWIG_fail;
15478 }
15479 {
15480 PyThreadState* __tstate = wxPyBeginAllowThreads();
15481 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15482
15483 wxPyEndAllowThreads(__tstate);
15484 if (PyErr_Occurred()) SWIG_fail;
15485 }
15486 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
15487 return resultobj;
15488 fail:
15489 return NULL;
15490 }
15491
15492
15493 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
15494 PyObject *resultobj;
15495 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15496 wxPrintData *result;
15497 PyObject * obj0 = 0 ;
15498 char *kwnames[] = {
15499 (char *) "self", NULL
15500 };
15501
15502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15505 {
15506 PyThreadState* __tstate = wxPyBeginAllowThreads();
15507 {
15508 wxPrintData &_result_ref = (arg1)->GetPrintData();
15509 result = (wxPrintData *) &_result_ref;
15510 }
15511
15512 wxPyEndAllowThreads(__tstate);
15513 if (PyErr_Occurred()) SWIG_fail;
15514 }
15515 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
15516 return resultobj;
15517 fail:
15518 return NULL;
15519 }
15520
15521
15522 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
15523 PyObject *resultobj;
15524 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15525 wxPrintData *arg2 = 0 ;
15526 PyObject * obj0 = 0 ;
15527 PyObject * obj1 = 0 ;
15528 char *kwnames[] = {
15529 (char *) "self",(char *) "data", NULL
15530 };
15531
15532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15535 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
15536 SWIG_POINTER_EXCEPTION | 0)) == -1)
15537 SWIG_fail;
15538 if (arg2 == NULL) {
15539 PyErr_SetString(PyExc_TypeError,"null reference");
15540 SWIG_fail;
15541 }
15542 {
15543 PyThreadState* __tstate = wxPyBeginAllowThreads();
15544 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15545
15546 wxPyEndAllowThreads(__tstate);
15547 if (PyErr_Occurred()) SWIG_fail;
15548 }
15549 Py_INCREF(Py_None); resultobj = Py_None;
15550 return resultobj;
15551 fail:
15552 return NULL;
15553 }
15554
15555
15556 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
15557 PyObject *resultobj;
15558 int arg1 ;
15559 PyObject * obj0 = 0 ;
15560 char *kwnames[] = {
15561 (char *) "ppi", NULL
15562 };
15563
15564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15565 arg1 = (int) SWIG_AsInt(obj0);
15566 if (PyErr_Occurred()) SWIG_fail;
15567 {
15568 PyThreadState* __tstate = wxPyBeginAllowThreads();
15569 wxPostScriptDC::SetResolution(arg1);
15570
15571 wxPyEndAllowThreads(__tstate);
15572 if (PyErr_Occurred()) SWIG_fail;
15573 }
15574 Py_INCREF(Py_None); resultobj = Py_None;
15575 return resultobj;
15576 fail:
15577 return NULL;
15578 }
15579
15580
15581 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
15582 PyObject *resultobj;
15583 int result;
15584 char *kwnames[] = {
15585 NULL
15586 };
15587
15588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15589 {
15590 PyThreadState* __tstate = wxPyBeginAllowThreads();
15591 result = (int)wxPostScriptDC::GetResolution();
15592
15593 wxPyEndAllowThreads(__tstate);
15594 if (PyErr_Occurred()) SWIG_fail;
15595 }
15596 resultobj = SWIG_FromInt((int)result);
15597 return resultobj;
15598 fail:
15599 return NULL;
15600 }
15601
15602
15603 static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) {
15604 PyObject *obj;
15605 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15606 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15607 Py_INCREF(obj);
15608 return Py_BuildValue((char *)"");
15609 }
15610 static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
15611 PyObject *resultobj;
15612 wxString const &arg1_defvalue = wxPyEmptyString ;
15613 wxString *arg1 = (wxString *) &arg1_defvalue ;
15614 wxMetaFile *result;
15615 bool temp1 = False ;
15616 PyObject * obj0 = 0 ;
15617 char *kwnames[] = {
15618 (char *) "filename", NULL
15619 };
15620
15621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15622 if (obj0) {
15623 {
15624 arg1 = wxString_in_helper(obj0);
15625 if (arg1 == NULL) SWIG_fail;
15626 temp1 = True;
15627 }
15628 }
15629 {
15630 PyThreadState* __tstate = wxPyBeginAllowThreads();
15631 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15632
15633 wxPyEndAllowThreads(__tstate);
15634 if (PyErr_Occurred()) SWIG_fail;
15635 }
15636 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
15637 {
15638 if (temp1)
15639 delete arg1;
15640 }
15641 return resultobj;
15642 fail:
15643 {
15644 if (temp1)
15645 delete arg1;
15646 }
15647 return NULL;
15648 }
15649
15650
15651 static PyObject *_wrap_delete_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
15652 PyObject *resultobj;
15653 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15654 PyObject * obj0 = 0 ;
15655 char *kwnames[] = {
15656 (char *) "self", NULL
15657 };
15658
15659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
15660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15662 {
15663 PyThreadState* __tstate = wxPyBeginAllowThreads();
15664 delete arg1;
15665
15666 wxPyEndAllowThreads(__tstate);
15667 if (PyErr_Occurred()) SWIG_fail;
15668 }
15669 Py_INCREF(Py_None); resultobj = Py_None;
15670 return resultobj;
15671 fail:
15672 return NULL;
15673 }
15674
15675
15676 static PyObject *_wrap_MetaFile_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
15677 PyObject *resultobj;
15678 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15679 bool result;
15680 PyObject * obj0 = 0 ;
15681 char *kwnames[] = {
15682 (char *) "self", NULL
15683 };
15684
15685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
15686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15688 {
15689 PyThreadState* __tstate = wxPyBeginAllowThreads();
15690 result = (bool)(arg1)->Ok();
15691
15692 wxPyEndAllowThreads(__tstate);
15693 if (PyErr_Occurred()) SWIG_fail;
15694 }
15695 {
15696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15697 }
15698 return resultobj;
15699 fail:
15700 return NULL;
15701 }
15702
15703
15704 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *, PyObject *args, PyObject *kwargs) {
15705 PyObject *resultobj;
15706 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15707 int arg2 = (int) 0 ;
15708 int arg3 = (int) 0 ;
15709 bool result;
15710 PyObject * obj0 = 0 ;
15711 PyObject * obj1 = 0 ;
15712 PyObject * obj2 = 0 ;
15713 char *kwnames[] = {
15714 (char *) "self",(char *) "width",(char *) "height", NULL
15715 };
15716
15717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
15718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15720 if (obj1) {
15721 arg2 = (int) SWIG_AsInt(obj1);
15722 if (PyErr_Occurred()) SWIG_fail;
15723 }
15724 if (obj2) {
15725 arg3 = (int) SWIG_AsInt(obj2);
15726 if (PyErr_Occurred()) SWIG_fail;
15727 }
15728 {
15729 PyThreadState* __tstate = wxPyBeginAllowThreads();
15730 result = (bool)(arg1)->SetClipboard(arg2,arg3);
15731
15732 wxPyEndAllowThreads(__tstate);
15733 if (PyErr_Occurred()) SWIG_fail;
15734 }
15735 {
15736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15737 }
15738 return resultobj;
15739 fail:
15740 return NULL;
15741 }
15742
15743
15744 static PyObject *_wrap_MetaFile_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
15745 PyObject *resultobj;
15746 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15747 wxSize result;
15748 PyObject * obj0 = 0 ;
15749 char *kwnames[] = {
15750 (char *) "self", NULL
15751 };
15752
15753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
15754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15756 {
15757 PyThreadState* __tstate = wxPyBeginAllowThreads();
15758 result = (arg1)->GetSize();
15759
15760 wxPyEndAllowThreads(__tstate);
15761 if (PyErr_Occurred()) SWIG_fail;
15762 }
15763 {
15764 wxSize * resultptr;
15765 resultptr = new wxSize((wxSize &) result);
15766 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15767 }
15768 return resultobj;
15769 fail:
15770 return NULL;
15771 }
15772
15773
15774 static PyObject *_wrap_MetaFile_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
15775 PyObject *resultobj;
15776 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15777 int result;
15778 PyObject * obj0 = 0 ;
15779 char *kwnames[] = {
15780 (char *) "self", NULL
15781 };
15782
15783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
15784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15786 {
15787 PyThreadState* __tstate = wxPyBeginAllowThreads();
15788 result = (int)(arg1)->GetWidth();
15789
15790 wxPyEndAllowThreads(__tstate);
15791 if (PyErr_Occurred()) SWIG_fail;
15792 }
15793 resultobj = SWIG_FromInt((int)result);
15794 return resultobj;
15795 fail:
15796 return NULL;
15797 }
15798
15799
15800 static PyObject *_wrap_MetaFile_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
15801 PyObject *resultobj;
15802 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15803 int result;
15804 PyObject * obj0 = 0 ;
15805 char *kwnames[] = {
15806 (char *) "self", NULL
15807 };
15808
15809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
15810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15812 {
15813 PyThreadState* __tstate = wxPyBeginAllowThreads();
15814 result = (int)(arg1)->GetHeight();
15815
15816 wxPyEndAllowThreads(__tstate);
15817 if (PyErr_Occurred()) SWIG_fail;
15818 }
15819 resultobj = SWIG_FromInt((int)result);
15820 return resultobj;
15821 fail:
15822 return NULL;
15823 }
15824
15825
15826 static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) {
15827 PyObject *obj;
15828 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15829 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15830 Py_INCREF(obj);
15831 return Py_BuildValue((char *)"");
15832 }
15833 static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) {
15834 PyObject *resultobj;
15835 wxString const &arg1_defvalue = wxPyEmptyString ;
15836 wxString *arg1 = (wxString *) &arg1_defvalue ;
15837 int arg2 = (int) 0 ;
15838 int arg3 = (int) 0 ;
15839 wxString const &arg4_defvalue = wxPyEmptyString ;
15840 wxString *arg4 = (wxString *) &arg4_defvalue ;
15841 wxMetaFileDC *result;
15842 bool temp1 = False ;
15843 bool temp4 = False ;
15844 PyObject * obj0 = 0 ;
15845 PyObject * obj1 = 0 ;
15846 PyObject * obj2 = 0 ;
15847 PyObject * obj3 = 0 ;
15848 char *kwnames[] = {
15849 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
15850 };
15851
15852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15853 if (obj0) {
15854 {
15855 arg1 = wxString_in_helper(obj0);
15856 if (arg1 == NULL) SWIG_fail;
15857 temp1 = True;
15858 }
15859 }
15860 if (obj1) {
15861 arg2 = (int) SWIG_AsInt(obj1);
15862 if (PyErr_Occurred()) SWIG_fail;
15863 }
15864 if (obj2) {
15865 arg3 = (int) SWIG_AsInt(obj2);
15866 if (PyErr_Occurred()) SWIG_fail;
15867 }
15868 if (obj3) {
15869 {
15870 arg4 = wxString_in_helper(obj3);
15871 if (arg4 == NULL) SWIG_fail;
15872 temp4 = True;
15873 }
15874 }
15875 {
15876 PyThreadState* __tstate = wxPyBeginAllowThreads();
15877 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
15878
15879 wxPyEndAllowThreads(__tstate);
15880 if (PyErr_Occurred()) SWIG_fail;
15881 }
15882 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
15883 {
15884 if (temp1)
15885 delete arg1;
15886 }
15887 {
15888 if (temp4)
15889 delete arg4;
15890 }
15891 return resultobj;
15892 fail:
15893 {
15894 if (temp1)
15895 delete arg1;
15896 }
15897 {
15898 if (temp4)
15899 delete arg4;
15900 }
15901 return NULL;
15902 }
15903
15904
15905 static PyObject *_wrap_MetaFileDC_Close(PyObject *, PyObject *args, PyObject *kwargs) {
15906 PyObject *resultobj;
15907 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
15908 wxMetaFile *result;
15909 PyObject * obj0 = 0 ;
15910 char *kwnames[] = {
15911 (char *) "self", NULL
15912 };
15913
15914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
15915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
15916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15917 {
15918 PyThreadState* __tstate = wxPyBeginAllowThreads();
15919 result = (wxMetaFile *)(arg1)->Close();
15920
15921 wxPyEndAllowThreads(__tstate);
15922 if (PyErr_Occurred()) SWIG_fail;
15923 }
15924 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
15925 return resultobj;
15926 fail:
15927 return NULL;
15928 }
15929
15930
15931 static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) {
15932 PyObject *obj;
15933 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15934 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
15935 Py_INCREF(obj);
15936 return Py_BuildValue((char *)"");
15937 }
15938 static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) {
15939 PyObject *resultobj;
15940 wxPrintData *arg1 = 0 ;
15941 wxPrinterDC *result;
15942 PyObject * obj0 = 0 ;
15943 char *kwnames[] = {
15944 (char *) "printData", NULL
15945 };
15946
15947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
15948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15949 SWIG_POINTER_EXCEPTION | 0)) == -1)
15950 SWIG_fail;
15951 if (arg1 == NULL) {
15952 PyErr_SetString(PyExc_TypeError,"null reference");
15953 SWIG_fail;
15954 }
15955 {
15956 PyThreadState* __tstate = wxPyBeginAllowThreads();
15957 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
15958
15959 wxPyEndAllowThreads(__tstate);
15960 if (PyErr_Occurred()) SWIG_fail;
15961 }
15962 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
15963 return resultobj;
15964 fail:
15965 return NULL;
15966 }
15967
15968
15969 static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) {
15970 PyObject *obj;
15971 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15972 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
15973 Py_INCREF(obj);
15974 return Py_BuildValue((char *)"");
15975 }
15976 static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
15977 PyObject *resultobj;
15978 int arg1 ;
15979 int arg2 ;
15980 int arg3 = (int) True ;
15981 int arg4 = (int) 1 ;
15982 wxImageList *result;
15983 PyObject * obj0 = 0 ;
15984 PyObject * obj1 = 0 ;
15985 PyObject * obj2 = 0 ;
15986 PyObject * obj3 = 0 ;
15987 char *kwnames[] = {
15988 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
15989 };
15990
15991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15992 arg1 = (int) SWIG_AsInt(obj0);
15993 if (PyErr_Occurred()) SWIG_fail;
15994 arg2 = (int) SWIG_AsInt(obj1);
15995 if (PyErr_Occurred()) SWIG_fail;
15996 if (obj2) {
15997 arg3 = (int) SWIG_AsInt(obj2);
15998 if (PyErr_Occurred()) SWIG_fail;
15999 }
16000 if (obj3) {
16001 arg4 = (int) SWIG_AsInt(obj3);
16002 if (PyErr_Occurred()) SWIG_fail;
16003 }
16004 {
16005 PyThreadState* __tstate = wxPyBeginAllowThreads();
16006 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16007
16008 wxPyEndAllowThreads(__tstate);
16009 if (PyErr_Occurred()) SWIG_fail;
16010 }
16011 {
16012 resultobj = wxPyMake_wxObject(result);
16013 }
16014 return resultobj;
16015 fail:
16016 return NULL;
16017 }
16018
16019
16020 static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
16021 PyObject *resultobj;
16022 wxImageList *arg1 = (wxImageList *) 0 ;
16023 PyObject * obj0 = 0 ;
16024 char *kwnames[] = {
16025 (char *) "self", NULL
16026 };
16027
16028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16031 {
16032 PyThreadState* __tstate = wxPyBeginAllowThreads();
16033 delete arg1;
16034
16035 wxPyEndAllowThreads(__tstate);
16036 if (PyErr_Occurred()) SWIG_fail;
16037 }
16038 Py_INCREF(Py_None); resultobj = Py_None;
16039 return resultobj;
16040 fail:
16041 return NULL;
16042 }
16043
16044
16045 static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) {
16046 PyObject *resultobj;
16047 wxImageList *arg1 = (wxImageList *) 0 ;
16048 wxBitmap *arg2 = 0 ;
16049 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16050 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16051 int result;
16052 PyObject * obj0 = 0 ;
16053 PyObject * obj1 = 0 ;
16054 PyObject * obj2 = 0 ;
16055 char *kwnames[] = {
16056 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16057 };
16058
16059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16062 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16063 SWIG_POINTER_EXCEPTION | 0)) == -1)
16064 SWIG_fail;
16065 if (arg2 == NULL) {
16066 PyErr_SetString(PyExc_TypeError,"null reference");
16067 SWIG_fail;
16068 }
16069 if (obj2) {
16070 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16071 SWIG_POINTER_EXCEPTION | 0)) == -1)
16072 SWIG_fail;
16073 if (arg3 == NULL) {
16074 PyErr_SetString(PyExc_TypeError,"null reference");
16075 SWIG_fail;
16076 }
16077 }
16078 {
16079 PyThreadState* __tstate = wxPyBeginAllowThreads();
16080 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16081
16082 wxPyEndAllowThreads(__tstate);
16083 if (PyErr_Occurred()) SWIG_fail;
16084 }
16085 resultobj = SWIG_FromInt((int)result);
16086 return resultobj;
16087 fail:
16088 return NULL;
16089 }
16090
16091
16092 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) {
16093 PyObject *resultobj;
16094 wxImageList *arg1 = (wxImageList *) 0 ;
16095 wxBitmap *arg2 = 0 ;
16096 wxColour *arg3 = 0 ;
16097 int result;
16098 wxColour temp3 ;
16099 PyObject * obj0 = 0 ;
16100 PyObject * obj1 = 0 ;
16101 PyObject * obj2 = 0 ;
16102 char *kwnames[] = {
16103 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16104 };
16105
16106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16109 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16110 SWIG_POINTER_EXCEPTION | 0)) == -1)
16111 SWIG_fail;
16112 if (arg2 == NULL) {
16113 PyErr_SetString(PyExc_TypeError,"null reference");
16114 SWIG_fail;
16115 }
16116 {
16117 arg3 = &temp3;
16118 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16119 }
16120 {
16121 PyThreadState* __tstate = wxPyBeginAllowThreads();
16122 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16123
16124 wxPyEndAllowThreads(__tstate);
16125 if (PyErr_Occurred()) SWIG_fail;
16126 }
16127 resultobj = SWIG_FromInt((int)result);
16128 return resultobj;
16129 fail:
16130 return NULL;
16131 }
16132
16133
16134 static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
16135 PyObject *resultobj;
16136 wxImageList *arg1 = (wxImageList *) 0 ;
16137 wxIcon *arg2 = 0 ;
16138 int result;
16139 PyObject * obj0 = 0 ;
16140 PyObject * obj1 = 0 ;
16141 char *kwnames[] = {
16142 (char *) "self",(char *) "icon", NULL
16143 };
16144
16145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16148 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16149 SWIG_POINTER_EXCEPTION | 0)) == -1)
16150 SWIG_fail;
16151 if (arg2 == NULL) {
16152 PyErr_SetString(PyExc_TypeError,"null reference");
16153 SWIG_fail;
16154 }
16155 {
16156 PyThreadState* __tstate = wxPyBeginAllowThreads();
16157 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16158
16159 wxPyEndAllowThreads(__tstate);
16160 if (PyErr_Occurred()) SWIG_fail;
16161 }
16162 resultobj = SWIG_FromInt((int)result);
16163 return resultobj;
16164 fail:
16165 return NULL;
16166 }
16167
16168
16169 static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
16170 PyObject *resultobj;
16171 wxImageList *arg1 = (wxImageList *) 0 ;
16172 int arg2 ;
16173 wxBitmap *arg3 = 0 ;
16174 bool result;
16175 PyObject * obj0 = 0 ;
16176 PyObject * obj1 = 0 ;
16177 PyObject * obj2 = 0 ;
16178 char *kwnames[] = {
16179 (char *) "self",(char *) "index",(char *) "bitmap", NULL
16180 };
16181
16182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
16183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16185 arg2 = (int) SWIG_AsInt(obj1);
16186 if (PyErr_Occurred()) SWIG_fail;
16187 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16188 SWIG_POINTER_EXCEPTION | 0)) == -1)
16189 SWIG_fail;
16190 if (arg3 == NULL) {
16191 PyErr_SetString(PyExc_TypeError,"null reference");
16192 SWIG_fail;
16193 }
16194 {
16195 PyThreadState* __tstate = wxPyBeginAllowThreads();
16196 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
16197
16198 wxPyEndAllowThreads(__tstate);
16199 if (PyErr_Occurred()) SWIG_fail;
16200 }
16201 {
16202 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16203 }
16204 return resultobj;
16205 fail:
16206 return NULL;
16207 }
16208
16209
16210 static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) {
16211 PyObject *resultobj;
16212 wxImageList *arg1 = (wxImageList *) 0 ;
16213 int arg2 ;
16214 wxDC *arg3 = 0 ;
16215 int arg4 ;
16216 int arg5 ;
16217 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16218 bool arg7 = (bool) (bool)False ;
16219 bool result;
16220 PyObject * obj0 = 0 ;
16221 PyObject * obj1 = 0 ;
16222 PyObject * obj2 = 0 ;
16223 PyObject * obj3 = 0 ;
16224 PyObject * obj4 = 0 ;
16225 PyObject * obj5 = 0 ;
16226 PyObject * obj6 = 0 ;
16227 char *kwnames[] = {
16228 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16229 };
16230
16231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16234 arg2 = (int) SWIG_AsInt(obj1);
16235 if (PyErr_Occurred()) SWIG_fail;
16236 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16237 SWIG_POINTER_EXCEPTION | 0)) == -1)
16238 SWIG_fail;
16239 if (arg3 == NULL) {
16240 PyErr_SetString(PyExc_TypeError,"null reference");
16241 SWIG_fail;
16242 }
16243 arg4 = (int) SWIG_AsInt(obj3);
16244 if (PyErr_Occurred()) SWIG_fail;
16245 arg5 = (int) SWIG_AsInt(obj4);
16246 if (PyErr_Occurred()) SWIG_fail;
16247 if (obj5) {
16248 arg6 = (int) SWIG_AsInt(obj5);
16249 if (PyErr_Occurred()) SWIG_fail;
16250 }
16251 if (obj6) {
16252 arg7 = (bool const) SWIG_AsBool(obj6);
16253 if (PyErr_Occurred()) SWIG_fail;
16254 }
16255 {
16256 PyThreadState* __tstate = wxPyBeginAllowThreads();
16257 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16258
16259 wxPyEndAllowThreads(__tstate);
16260 if (PyErr_Occurred()) SWIG_fail;
16261 }
16262 {
16263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16264 }
16265 return resultobj;
16266 fail:
16267 return NULL;
16268 }
16269
16270
16271 static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) {
16272 PyObject *resultobj;
16273 wxImageList *arg1 = (wxImageList *) 0 ;
16274 int result;
16275 PyObject * obj0 = 0 ;
16276 char *kwnames[] = {
16277 (char *) "self", NULL
16278 };
16279
16280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16283 {
16284 PyThreadState* __tstate = wxPyBeginAllowThreads();
16285 result = (int)(arg1)->GetImageCount();
16286
16287 wxPyEndAllowThreads(__tstate);
16288 if (PyErr_Occurred()) SWIG_fail;
16289 }
16290 resultobj = SWIG_FromInt((int)result);
16291 return resultobj;
16292 fail:
16293 return NULL;
16294 }
16295
16296
16297 static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
16298 PyObject *resultobj;
16299 wxImageList *arg1 = (wxImageList *) 0 ;
16300 int arg2 ;
16301 bool result;
16302 PyObject * obj0 = 0 ;
16303 PyObject * obj1 = 0 ;
16304 char *kwnames[] = {
16305 (char *) "self",(char *) "index", NULL
16306 };
16307
16308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16311 arg2 = (int) SWIG_AsInt(obj1);
16312 if (PyErr_Occurred()) SWIG_fail;
16313 {
16314 PyThreadState* __tstate = wxPyBeginAllowThreads();
16315 result = (bool)(arg1)->Remove(arg2);
16316
16317 wxPyEndAllowThreads(__tstate);
16318 if (PyErr_Occurred()) SWIG_fail;
16319 }
16320 {
16321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16322 }
16323 return resultobj;
16324 fail:
16325 return NULL;
16326 }
16327
16328
16329 static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) {
16330 PyObject *resultobj;
16331 wxImageList *arg1 = (wxImageList *) 0 ;
16332 bool result;
16333 PyObject * obj0 = 0 ;
16334 char *kwnames[] = {
16335 (char *) "self", NULL
16336 };
16337
16338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16341 {
16342 PyThreadState* __tstate = wxPyBeginAllowThreads();
16343 result = (bool)(arg1)->RemoveAll();
16344
16345 wxPyEndAllowThreads(__tstate);
16346 if (PyErr_Occurred()) SWIG_fail;
16347 }
16348 {
16349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16350 }
16351 return resultobj;
16352 fail:
16353 return NULL;
16354 }
16355
16356
16357 static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
16358 PyObject *resultobj;
16359 wxImageList *arg1 = (wxImageList *) 0 ;
16360 int arg2 ;
16361 int *arg3 = 0 ;
16362 int *arg4 = 0 ;
16363 int temp3 ;
16364 int temp4 ;
16365 PyObject * obj0 = 0 ;
16366 PyObject * obj1 = 0 ;
16367 char *kwnames[] = {
16368 (char *) "self",(char *) "index", NULL
16369 };
16370
16371 arg3 = &temp3;
16372 arg4 = &temp4;
16373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16376 arg2 = (int) SWIG_AsInt(obj1);
16377 if (PyErr_Occurred()) SWIG_fail;
16378 {
16379 PyThreadState* __tstate = wxPyBeginAllowThreads();
16380 (arg1)->GetSize(arg2,*arg3,*arg4);
16381
16382 wxPyEndAllowThreads(__tstate);
16383 if (PyErr_Occurred()) SWIG_fail;
16384 }
16385 Py_INCREF(Py_None); resultobj = Py_None;
16386 {
16387 PyObject *o = PyInt_FromLong((long) (*arg3));
16388 resultobj = t_output_helper(resultobj,o);
16389 }
16390 {
16391 PyObject *o = PyInt_FromLong((long) (*arg4));
16392 resultobj = t_output_helper(resultobj,o);
16393 }
16394 return resultobj;
16395 fail:
16396 return NULL;
16397 }
16398
16399
16400 static PyObject * ImageList_swigregister(PyObject *, PyObject *args) {
16401 PyObject *obj;
16402 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16403 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16404 Py_INCREF(obj);
16405 return Py_BuildValue((char *)"");
16406 }
16407 static int _wrap_NORMAL_FONT_set(PyObject *) {
16408 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16409 return 1;
16410 }
16411
16412
16413 static PyObject *_wrap_NORMAL_FONT_get() {
16414 PyObject *pyobj;
16415
16416 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
16417 return pyobj;
16418 }
16419
16420
16421 static int _wrap_SMALL_FONT_set(PyObject *) {
16422 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16423 return 1;
16424 }
16425
16426
16427 static PyObject *_wrap_SMALL_FONT_get() {
16428 PyObject *pyobj;
16429
16430 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
16431 return pyobj;
16432 }
16433
16434
16435 static int _wrap_ITALIC_FONT_set(PyObject *) {
16436 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16437 return 1;
16438 }
16439
16440
16441 static PyObject *_wrap_ITALIC_FONT_get() {
16442 PyObject *pyobj;
16443
16444 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
16445 return pyobj;
16446 }
16447
16448
16449 static int _wrap_SWISS_FONT_set(PyObject *) {
16450 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16451 return 1;
16452 }
16453
16454
16455 static PyObject *_wrap_SWISS_FONT_get() {
16456 PyObject *pyobj;
16457
16458 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
16459 return pyobj;
16460 }
16461
16462
16463 static int _wrap_RED_PEN_set(PyObject *) {
16464 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16465 return 1;
16466 }
16467
16468
16469 static PyObject *_wrap_RED_PEN_get() {
16470 PyObject *pyobj;
16471
16472 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
16473 return pyobj;
16474 }
16475
16476
16477 static int _wrap_CYAN_PEN_set(PyObject *) {
16478 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16479 return 1;
16480 }
16481
16482
16483 static PyObject *_wrap_CYAN_PEN_get() {
16484 PyObject *pyobj;
16485
16486 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
16487 return pyobj;
16488 }
16489
16490
16491 static int _wrap_GREEN_PEN_set(PyObject *) {
16492 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16493 return 1;
16494 }
16495
16496
16497 static PyObject *_wrap_GREEN_PEN_get() {
16498 PyObject *pyobj;
16499
16500 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
16501 return pyobj;
16502 }
16503
16504
16505 static int _wrap_BLACK_PEN_set(PyObject *) {
16506 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16507 return 1;
16508 }
16509
16510
16511 static PyObject *_wrap_BLACK_PEN_get() {
16512 PyObject *pyobj;
16513
16514 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
16515 return pyobj;
16516 }
16517
16518
16519 static int _wrap_WHITE_PEN_set(PyObject *) {
16520 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16521 return 1;
16522 }
16523
16524
16525 static PyObject *_wrap_WHITE_PEN_get() {
16526 PyObject *pyobj;
16527
16528 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
16529 return pyobj;
16530 }
16531
16532
16533 static int _wrap_TRANSPARENT_PEN_set(PyObject *) {
16534 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16535 return 1;
16536 }
16537
16538
16539 static PyObject *_wrap_TRANSPARENT_PEN_get() {
16540 PyObject *pyobj;
16541
16542 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
16543 return pyobj;
16544 }
16545
16546
16547 static int _wrap_BLACK_DASHED_PEN_set(PyObject *) {
16548 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16549 return 1;
16550 }
16551
16552
16553 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16554 PyObject *pyobj;
16555
16556 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
16557 return pyobj;
16558 }
16559
16560
16561 static int _wrap_GREY_PEN_set(PyObject *) {
16562 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16563 return 1;
16564 }
16565
16566
16567 static PyObject *_wrap_GREY_PEN_get() {
16568 PyObject *pyobj;
16569
16570 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
16571 return pyobj;
16572 }
16573
16574
16575 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) {
16576 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16577 return 1;
16578 }
16579
16580
16581 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16582 PyObject *pyobj;
16583
16584 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16585 return pyobj;
16586 }
16587
16588
16589 static int _wrap_LIGHT_GREY_PEN_set(PyObject *) {
16590 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16591 return 1;
16592 }
16593
16594
16595 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16596 PyObject *pyobj;
16597
16598 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16599 return pyobj;
16600 }
16601
16602
16603 static int _wrap_BLUE_BRUSH_set(PyObject *) {
16604 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16605 return 1;
16606 }
16607
16608
16609 static PyObject *_wrap_BLUE_BRUSH_get() {
16610 PyObject *pyobj;
16611
16612 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16613 return pyobj;
16614 }
16615
16616
16617 static int _wrap_GREEN_BRUSH_set(PyObject *) {
16618 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16619 return 1;
16620 }
16621
16622
16623 static PyObject *_wrap_GREEN_BRUSH_get() {
16624 PyObject *pyobj;
16625
16626 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16627 return pyobj;
16628 }
16629
16630
16631 static int _wrap_WHITE_BRUSH_set(PyObject *) {
16632 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16633 return 1;
16634 }
16635
16636
16637 static PyObject *_wrap_WHITE_BRUSH_get() {
16638 PyObject *pyobj;
16639
16640 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16641 return pyobj;
16642 }
16643
16644
16645 static int _wrap_BLACK_BRUSH_set(PyObject *) {
16646 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16647 return 1;
16648 }
16649
16650
16651 static PyObject *_wrap_BLACK_BRUSH_get() {
16652 PyObject *pyobj;
16653
16654 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
16655 return pyobj;
16656 }
16657
16658
16659 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) {
16660 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16661 return 1;
16662 }
16663
16664
16665 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16666 PyObject *pyobj;
16667
16668 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
16669 return pyobj;
16670 }
16671
16672
16673 static int _wrap_CYAN_BRUSH_set(PyObject *) {
16674 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16675 return 1;
16676 }
16677
16678
16679 static PyObject *_wrap_CYAN_BRUSH_get() {
16680 PyObject *pyobj;
16681
16682 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16683 return pyobj;
16684 }
16685
16686
16687 static int _wrap_RED_BRUSH_set(PyObject *) {
16688 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16689 return 1;
16690 }
16691
16692
16693 static PyObject *_wrap_RED_BRUSH_get() {
16694 PyObject *pyobj;
16695
16696 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
16697 return pyobj;
16698 }
16699
16700
16701 static int _wrap_GREY_BRUSH_set(PyObject *) {
16702 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
16703 return 1;
16704 }
16705
16706
16707 static PyObject *_wrap_GREY_BRUSH_get() {
16708 PyObject *pyobj;
16709
16710 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16711 return pyobj;
16712 }
16713
16714
16715 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) {
16716 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
16717 return 1;
16718 }
16719
16720
16721 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
16722 PyObject *pyobj;
16723
16724 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16725 return pyobj;
16726 }
16727
16728
16729 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) {
16730 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
16731 return 1;
16732 }
16733
16734
16735 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
16736 PyObject *pyobj;
16737
16738 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16739 return pyobj;
16740 }
16741
16742
16743 static int _wrap_BLACK_set(PyObject *) {
16744 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
16745 return 1;
16746 }
16747
16748
16749 static PyObject *_wrap_BLACK_get() {
16750 PyObject *pyobj;
16751
16752 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
16753 return pyobj;
16754 }
16755
16756
16757 static int _wrap_WHITE_set(PyObject *) {
16758 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
16759 return 1;
16760 }
16761
16762
16763 static PyObject *_wrap_WHITE_get() {
16764 PyObject *pyobj;
16765
16766 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
16767 return pyobj;
16768 }
16769
16770
16771 static int _wrap_RED_set(PyObject *) {
16772 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
16773 return 1;
16774 }
16775
16776
16777 static PyObject *_wrap_RED_get() {
16778 PyObject *pyobj;
16779
16780 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
16781 return pyobj;
16782 }
16783
16784
16785 static int _wrap_BLUE_set(PyObject *) {
16786 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
16787 return 1;
16788 }
16789
16790
16791 static PyObject *_wrap_BLUE_get() {
16792 PyObject *pyobj;
16793
16794 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
16795 return pyobj;
16796 }
16797
16798
16799 static int _wrap_GREEN_set(PyObject *) {
16800 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
16801 return 1;
16802 }
16803
16804
16805 static PyObject *_wrap_GREEN_get() {
16806 PyObject *pyobj;
16807
16808 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
16809 return pyobj;
16810 }
16811
16812
16813 static int _wrap_CYAN_set(PyObject *) {
16814 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
16815 return 1;
16816 }
16817
16818
16819 static PyObject *_wrap_CYAN_get() {
16820 PyObject *pyobj;
16821
16822 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
16823 return pyobj;
16824 }
16825
16826
16827 static int _wrap_LIGHT_GREY_set(PyObject *) {
16828 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
16829 return 1;
16830 }
16831
16832
16833 static PyObject *_wrap_LIGHT_GREY_get() {
16834 PyObject *pyobj;
16835
16836 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
16837 return pyobj;
16838 }
16839
16840
16841 static int _wrap_STANDARD_CURSOR_set(PyObject *) {
16842 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
16843 return 1;
16844 }
16845
16846
16847 static PyObject *_wrap_STANDARD_CURSOR_get() {
16848 PyObject *pyobj;
16849
16850 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
16851 return pyobj;
16852 }
16853
16854
16855 static int _wrap_HOURGLASS_CURSOR_set(PyObject *) {
16856 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
16857 return 1;
16858 }
16859
16860
16861 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
16862 PyObject *pyobj;
16863
16864 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16865 return pyobj;
16866 }
16867
16868
16869 static int _wrap_CROSS_CURSOR_set(PyObject *) {
16870 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
16871 return 1;
16872 }
16873
16874
16875 static PyObject *_wrap_CROSS_CURSOR_get() {
16876 PyObject *pyobj;
16877
16878 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16879 return pyobj;
16880 }
16881
16882
16883 static int _wrap_NullBitmap_set(PyObject *) {
16884 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
16885 return 1;
16886 }
16887
16888
16889 static PyObject *_wrap_NullBitmap_get() {
16890 PyObject *pyobj;
16891
16892 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
16893 return pyobj;
16894 }
16895
16896
16897 static int _wrap_NullIcon_set(PyObject *) {
16898 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
16899 return 1;
16900 }
16901
16902
16903 static PyObject *_wrap_NullIcon_get() {
16904 PyObject *pyobj;
16905
16906 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
16907 return pyobj;
16908 }
16909
16910
16911 static int _wrap_NullCursor_set(PyObject *) {
16912 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
16913 return 1;
16914 }
16915
16916
16917 static PyObject *_wrap_NullCursor_get() {
16918 PyObject *pyobj;
16919
16920 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
16921 return pyobj;
16922 }
16923
16924
16925 static int _wrap_NullPen_set(PyObject *) {
16926 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
16927 return 1;
16928 }
16929
16930
16931 static PyObject *_wrap_NullPen_get() {
16932 PyObject *pyobj;
16933
16934 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
16935 return pyobj;
16936 }
16937
16938
16939 static int _wrap_NullBrush_set(PyObject *) {
16940 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
16941 return 1;
16942 }
16943
16944
16945 static PyObject *_wrap_NullBrush_get() {
16946 PyObject *pyobj;
16947
16948 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
16949 return pyobj;
16950 }
16951
16952
16953 static int _wrap_NullPalette_set(PyObject *) {
16954 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
16955 return 1;
16956 }
16957
16958
16959 static PyObject *_wrap_NullPalette_get() {
16960 PyObject *pyobj;
16961
16962 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
16963 return pyobj;
16964 }
16965
16966
16967 static int _wrap_NullFont_set(PyObject *) {
16968 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
16969 return 1;
16970 }
16971
16972
16973 static PyObject *_wrap_NullFont_get() {
16974 PyObject *pyobj;
16975
16976 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
16977 return pyobj;
16978 }
16979
16980
16981 static int _wrap_NullColour_set(PyObject *) {
16982 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
16983 return 1;
16984 }
16985
16986
16987 static PyObject *_wrap_NullColour_get() {
16988 PyObject *pyobj;
16989
16990 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
16991 return pyobj;
16992 }
16993
16994
16995 static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) {
16996 PyObject *resultobj;
16997 wxPenList *arg1 = (wxPenList *) 0 ;
16998 wxPen *arg2 = (wxPen *) 0 ;
16999 PyObject * obj0 = 0 ;
17000 PyObject * obj1 = 0 ;
17001 char *kwnames[] = {
17002 (char *) "self",(char *) "pen", NULL
17003 };
17004
17005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17008 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17010 {
17011 PyThreadState* __tstate = wxPyBeginAllowThreads();
17012 (arg1)->AddPen(arg2);
17013
17014 wxPyEndAllowThreads(__tstate);
17015 if (PyErr_Occurred()) SWIG_fail;
17016 }
17017 Py_INCREF(Py_None); resultobj = Py_None;
17018 return resultobj;
17019 fail:
17020 return NULL;
17021 }
17022
17023
17024 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) {
17025 PyObject *resultobj;
17026 wxPenList *arg1 = (wxPenList *) 0 ;
17027 wxColour *arg2 = 0 ;
17028 int arg3 ;
17029 int arg4 ;
17030 wxPen *result;
17031 wxColour temp2 ;
17032 PyObject * obj0 = 0 ;
17033 PyObject * obj1 = 0 ;
17034 PyObject * obj2 = 0 ;
17035 PyObject * obj3 = 0 ;
17036 char *kwnames[] = {
17037 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17038 };
17039
17040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17043 {
17044 arg2 = &temp2;
17045 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17046 }
17047 arg3 = (int) SWIG_AsInt(obj2);
17048 if (PyErr_Occurred()) SWIG_fail;
17049 arg4 = (int) SWIG_AsInt(obj3);
17050 if (PyErr_Occurred()) SWIG_fail;
17051 {
17052 PyThreadState* __tstate = wxPyBeginAllowThreads();
17053 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17054
17055 wxPyEndAllowThreads(__tstate);
17056 if (PyErr_Occurred()) SWIG_fail;
17057 }
17058 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17059 return resultobj;
17060 fail:
17061 return NULL;
17062 }
17063
17064
17065 static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) {
17066 PyObject *resultobj;
17067 wxPenList *arg1 = (wxPenList *) 0 ;
17068 wxPen *arg2 = (wxPen *) 0 ;
17069 PyObject * obj0 = 0 ;
17070 PyObject * obj1 = 0 ;
17071 char *kwnames[] = {
17072 (char *) "self",(char *) "pen", NULL
17073 };
17074
17075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17078 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17080 {
17081 PyThreadState* __tstate = wxPyBeginAllowThreads();
17082 (arg1)->RemovePen(arg2);
17083
17084 wxPyEndAllowThreads(__tstate);
17085 if (PyErr_Occurred()) SWIG_fail;
17086 }
17087 Py_INCREF(Py_None); resultobj = Py_None;
17088 return resultobj;
17089 fail:
17090 return NULL;
17091 }
17092
17093
17094 static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
17095 PyObject *resultobj;
17096 wxPenList *arg1 = (wxPenList *) 0 ;
17097 int result;
17098 PyObject * obj0 = 0 ;
17099 char *kwnames[] = {
17100 (char *) "self", NULL
17101 };
17102
17103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17106 {
17107 PyThreadState* __tstate = wxPyBeginAllowThreads();
17108 result = (int)(arg1)->GetCount();
17109
17110 wxPyEndAllowThreads(__tstate);
17111 if (PyErr_Occurred()) SWIG_fail;
17112 }
17113 resultobj = SWIG_FromInt((int)result);
17114 return resultobj;
17115 fail:
17116 return NULL;
17117 }
17118
17119
17120 static PyObject * PenList_swigregister(PyObject *, PyObject *args) {
17121 PyObject *obj;
17122 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17123 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17124 Py_INCREF(obj);
17125 return Py_BuildValue((char *)"");
17126 }
17127 static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) {
17128 PyObject *resultobj;
17129 wxBrushList *arg1 = (wxBrushList *) 0 ;
17130 wxBrush *arg2 = (wxBrush *) 0 ;
17131 PyObject * obj0 = 0 ;
17132 PyObject * obj1 = 0 ;
17133 char *kwnames[] = {
17134 (char *) "self",(char *) "brush", NULL
17135 };
17136
17137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17140 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17142 {
17143 PyThreadState* __tstate = wxPyBeginAllowThreads();
17144 (arg1)->AddBrush(arg2);
17145
17146 wxPyEndAllowThreads(__tstate);
17147 if (PyErr_Occurred()) SWIG_fail;
17148 }
17149 Py_INCREF(Py_None); resultobj = Py_None;
17150 return resultobj;
17151 fail:
17152 return NULL;
17153 }
17154
17155
17156 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) {
17157 PyObject *resultobj;
17158 wxBrushList *arg1 = (wxBrushList *) 0 ;
17159 wxColour *arg2 = 0 ;
17160 int arg3 ;
17161 wxBrush *result;
17162 wxColour temp2 ;
17163 PyObject * obj0 = 0 ;
17164 PyObject * obj1 = 0 ;
17165 PyObject * obj2 = 0 ;
17166 char *kwnames[] = {
17167 (char *) "self",(char *) "colour",(char *) "style", NULL
17168 };
17169
17170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17173 {
17174 arg2 = &temp2;
17175 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17176 }
17177 arg3 = (int) SWIG_AsInt(obj2);
17178 if (PyErr_Occurred()) SWIG_fail;
17179 {
17180 PyThreadState* __tstate = wxPyBeginAllowThreads();
17181 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17182
17183 wxPyEndAllowThreads(__tstate);
17184 if (PyErr_Occurred()) SWIG_fail;
17185 }
17186 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17187 return resultobj;
17188 fail:
17189 return NULL;
17190 }
17191
17192
17193 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) {
17194 PyObject *resultobj;
17195 wxBrushList *arg1 = (wxBrushList *) 0 ;
17196 wxBrush *arg2 = (wxBrush *) 0 ;
17197 PyObject * obj0 = 0 ;
17198 PyObject * obj1 = 0 ;
17199 char *kwnames[] = {
17200 (char *) "self",(char *) "brush", NULL
17201 };
17202
17203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17206 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17208 {
17209 PyThreadState* __tstate = wxPyBeginAllowThreads();
17210 (arg1)->RemoveBrush(arg2);
17211
17212 wxPyEndAllowThreads(__tstate);
17213 if (PyErr_Occurred()) SWIG_fail;
17214 }
17215 Py_INCREF(Py_None); resultobj = Py_None;
17216 return resultobj;
17217 fail:
17218 return NULL;
17219 }
17220
17221
17222 static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
17223 PyObject *resultobj;
17224 wxBrushList *arg1 = (wxBrushList *) 0 ;
17225 int result;
17226 PyObject * obj0 = 0 ;
17227 char *kwnames[] = {
17228 (char *) "self", NULL
17229 };
17230
17231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17234 {
17235 PyThreadState* __tstate = wxPyBeginAllowThreads();
17236 result = (int)(arg1)->GetCount();
17237
17238 wxPyEndAllowThreads(__tstate);
17239 if (PyErr_Occurred()) SWIG_fail;
17240 }
17241 resultobj = SWIG_FromInt((int)result);
17242 return resultobj;
17243 fail:
17244 return NULL;
17245 }
17246
17247
17248 static PyObject * BrushList_swigregister(PyObject *, PyObject *args) {
17249 PyObject *obj;
17250 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17251 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17252 Py_INCREF(obj);
17253 return Py_BuildValue((char *)"");
17254 }
17255 static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
17256 PyObject *resultobj;
17257 wxColourDatabase *result;
17258 char *kwnames[] = {
17259 NULL
17260 };
17261
17262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17263 {
17264 PyThreadState* __tstate = wxPyBeginAllowThreads();
17265 result = (wxColourDatabase *)new wxColourDatabase();
17266
17267 wxPyEndAllowThreads(__tstate);
17268 if (PyErr_Occurred()) SWIG_fail;
17269 }
17270 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17271 return resultobj;
17272 fail:
17273 return NULL;
17274 }
17275
17276
17277 static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
17278 PyObject *resultobj;
17279 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17280 PyObject * obj0 = 0 ;
17281 char *kwnames[] = {
17282 (char *) "self", NULL
17283 };
17284
17285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17288 {
17289 PyThreadState* __tstate = wxPyBeginAllowThreads();
17290 delete arg1;
17291
17292 wxPyEndAllowThreads(__tstate);
17293 if (PyErr_Occurred()) SWIG_fail;
17294 }
17295 Py_INCREF(Py_None); resultobj = Py_None;
17296 return resultobj;
17297 fail:
17298 return NULL;
17299 }
17300
17301
17302 static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) {
17303 PyObject *resultobj;
17304 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17305 wxString *arg2 = 0 ;
17306 wxColour result;
17307 bool temp2 = False ;
17308 PyObject * obj0 = 0 ;
17309 PyObject * obj1 = 0 ;
17310 char *kwnames[] = {
17311 (char *) "self",(char *) "name", NULL
17312 };
17313
17314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17317 {
17318 arg2 = wxString_in_helper(obj1);
17319 if (arg2 == NULL) SWIG_fail;
17320 temp2 = True;
17321 }
17322 {
17323 PyThreadState* __tstate = wxPyBeginAllowThreads();
17324 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17325
17326 wxPyEndAllowThreads(__tstate);
17327 if (PyErr_Occurred()) SWIG_fail;
17328 }
17329 {
17330 wxColour * resultptr;
17331 resultptr = new wxColour((wxColour &) result);
17332 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17333 }
17334 {
17335 if (temp2)
17336 delete arg2;
17337 }
17338 return resultobj;
17339 fail:
17340 {
17341 if (temp2)
17342 delete arg2;
17343 }
17344 return NULL;
17345 }
17346
17347
17348 static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) {
17349 PyObject *resultobj;
17350 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17351 wxColour *arg2 = 0 ;
17352 wxString result;
17353 wxColour temp2 ;
17354 PyObject * obj0 = 0 ;
17355 PyObject * obj1 = 0 ;
17356 char *kwnames[] = {
17357 (char *) "self",(char *) "colour", NULL
17358 };
17359
17360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17363 {
17364 arg2 = &temp2;
17365 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17366 }
17367 {
17368 PyThreadState* __tstate = wxPyBeginAllowThreads();
17369 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17370
17371 wxPyEndAllowThreads(__tstate);
17372 if (PyErr_Occurred()) SWIG_fail;
17373 }
17374 {
17375 #if wxUSE_UNICODE
17376 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17377 #else
17378 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17379 #endif
17380 }
17381 return resultobj;
17382 fail:
17383 return NULL;
17384 }
17385
17386
17387 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) {
17388 PyObject *resultobj;
17389 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17390 wxString *arg2 = 0 ;
17391 wxColour *arg3 = 0 ;
17392 bool temp2 = False ;
17393 wxColour temp3 ;
17394 PyObject * obj0 = 0 ;
17395 PyObject * obj1 = 0 ;
17396 PyObject * obj2 = 0 ;
17397 char *kwnames[] = {
17398 (char *) "self",(char *) "name",(char *) "colour", NULL
17399 };
17400
17401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17404 {
17405 arg2 = wxString_in_helper(obj1);
17406 if (arg2 == NULL) SWIG_fail;
17407 temp2 = True;
17408 }
17409 {
17410 arg3 = &temp3;
17411 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17412 }
17413 {
17414 PyThreadState* __tstate = wxPyBeginAllowThreads();
17415 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17416
17417 wxPyEndAllowThreads(__tstate);
17418 if (PyErr_Occurred()) SWIG_fail;
17419 }
17420 Py_INCREF(Py_None); resultobj = Py_None;
17421 {
17422 if (temp2)
17423 delete arg2;
17424 }
17425 return resultobj;
17426 fail:
17427 {
17428 if (temp2)
17429 delete arg2;
17430 }
17431 return NULL;
17432 }
17433
17434
17435 static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) {
17436 PyObject *resultobj;
17437 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17438 wxString *arg2 = 0 ;
17439 int arg3 ;
17440 int arg4 ;
17441 int arg5 ;
17442 bool temp2 = False ;
17443 PyObject * obj0 = 0 ;
17444 PyObject * obj1 = 0 ;
17445 PyObject * obj2 = 0 ;
17446 PyObject * obj3 = 0 ;
17447 PyObject * obj4 = 0 ;
17448 char *kwnames[] = {
17449 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17450 };
17451
17452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17455 {
17456 arg2 = wxString_in_helper(obj1);
17457 if (arg2 == NULL) SWIG_fail;
17458 temp2 = True;
17459 }
17460 arg3 = (int) SWIG_AsInt(obj2);
17461 if (PyErr_Occurred()) SWIG_fail;
17462 arg4 = (int) SWIG_AsInt(obj3);
17463 if (PyErr_Occurred()) SWIG_fail;
17464 arg5 = (int) SWIG_AsInt(obj4);
17465 if (PyErr_Occurred()) SWIG_fail;
17466 {
17467 PyThreadState* __tstate = wxPyBeginAllowThreads();
17468 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17469
17470 wxPyEndAllowThreads(__tstate);
17471 if (PyErr_Occurred()) SWIG_fail;
17472 }
17473 Py_INCREF(Py_None); resultobj = Py_None;
17474 {
17475 if (temp2)
17476 delete arg2;
17477 }
17478 return resultobj;
17479 fail:
17480 {
17481 if (temp2)
17482 delete arg2;
17483 }
17484 return NULL;
17485 }
17486
17487
17488 static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) {
17489 PyObject *obj;
17490 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17491 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17492 Py_INCREF(obj);
17493 return Py_BuildValue((char *)"");
17494 }
17495 static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) {
17496 PyObject *resultobj;
17497 wxFontList *arg1 = (wxFontList *) 0 ;
17498 wxFont *arg2 = (wxFont *) 0 ;
17499 PyObject * obj0 = 0 ;
17500 PyObject * obj1 = 0 ;
17501 char *kwnames[] = {
17502 (char *) "self",(char *) "font", NULL
17503 };
17504
17505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17508 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17510 {
17511 PyThreadState* __tstate = wxPyBeginAllowThreads();
17512 (arg1)->AddFont(arg2);
17513
17514 wxPyEndAllowThreads(__tstate);
17515 if (PyErr_Occurred()) SWIG_fail;
17516 }
17517 Py_INCREF(Py_None); resultobj = Py_None;
17518 return resultobj;
17519 fail:
17520 return NULL;
17521 }
17522
17523
17524 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) {
17525 PyObject *resultobj;
17526 wxFontList *arg1 = (wxFontList *) 0 ;
17527 int arg2 ;
17528 int arg3 ;
17529 int arg4 ;
17530 int arg5 ;
17531 bool arg6 = (bool) False ;
17532 wxString const &arg7_defvalue = wxPyEmptyString ;
17533 wxString *arg7 = (wxString *) &arg7_defvalue ;
17534 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17535 wxFont *result;
17536 bool temp7 = False ;
17537 PyObject * obj0 = 0 ;
17538 PyObject * obj1 = 0 ;
17539 PyObject * obj2 = 0 ;
17540 PyObject * obj3 = 0 ;
17541 PyObject * obj4 = 0 ;
17542 PyObject * obj5 = 0 ;
17543 PyObject * obj6 = 0 ;
17544 PyObject * obj7 = 0 ;
17545 char *kwnames[] = {
17546 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17547 };
17548
17549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17552 arg2 = (int) SWIG_AsInt(obj1);
17553 if (PyErr_Occurred()) SWIG_fail;
17554 arg3 = (int) SWIG_AsInt(obj2);
17555 if (PyErr_Occurred()) SWIG_fail;
17556 arg4 = (int) SWIG_AsInt(obj3);
17557 if (PyErr_Occurred()) SWIG_fail;
17558 arg5 = (int) SWIG_AsInt(obj4);
17559 if (PyErr_Occurred()) SWIG_fail;
17560 if (obj5) {
17561 arg6 = (bool) SWIG_AsBool(obj5);
17562 if (PyErr_Occurred()) SWIG_fail;
17563 }
17564 if (obj6) {
17565 {
17566 arg7 = wxString_in_helper(obj6);
17567 if (arg7 == NULL) SWIG_fail;
17568 temp7 = True;
17569 }
17570 }
17571 if (obj7) {
17572 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
17573 if (PyErr_Occurred()) SWIG_fail;
17574 }
17575 {
17576 PyThreadState* __tstate = wxPyBeginAllowThreads();
17577 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17578
17579 wxPyEndAllowThreads(__tstate);
17580 if (PyErr_Occurred()) SWIG_fail;
17581 }
17582 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
17583 {
17584 if (temp7)
17585 delete arg7;
17586 }
17587 return resultobj;
17588 fail:
17589 {
17590 if (temp7)
17591 delete arg7;
17592 }
17593 return NULL;
17594 }
17595
17596
17597 static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) {
17598 PyObject *resultobj;
17599 wxFontList *arg1 = (wxFontList *) 0 ;
17600 wxFont *arg2 = (wxFont *) 0 ;
17601 PyObject * obj0 = 0 ;
17602 PyObject * obj1 = 0 ;
17603 char *kwnames[] = {
17604 (char *) "self",(char *) "font", NULL
17605 };
17606
17607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17610 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17612 {
17613 PyThreadState* __tstate = wxPyBeginAllowThreads();
17614 (arg1)->RemoveFont(arg2);
17615
17616 wxPyEndAllowThreads(__tstate);
17617 if (PyErr_Occurred()) SWIG_fail;
17618 }
17619 Py_INCREF(Py_None); resultobj = Py_None;
17620 return resultobj;
17621 fail:
17622 return NULL;
17623 }
17624
17625
17626 static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
17627 PyObject *resultobj;
17628 wxFontList *arg1 = (wxFontList *) 0 ;
17629 int result;
17630 PyObject * obj0 = 0 ;
17631 char *kwnames[] = {
17632 (char *) "self", NULL
17633 };
17634
17635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17638 {
17639 PyThreadState* __tstate = wxPyBeginAllowThreads();
17640 result = (int)(arg1)->GetCount();
17641
17642 wxPyEndAllowThreads(__tstate);
17643 if (PyErr_Occurred()) SWIG_fail;
17644 }
17645 resultobj = SWIG_FromInt((int)result);
17646 return resultobj;
17647 fail:
17648 return NULL;
17649 }
17650
17651
17652 static PyObject * FontList_swigregister(PyObject *, PyObject *args) {
17653 PyObject *obj;
17654 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17655 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17656 Py_INCREF(obj);
17657 return Py_BuildValue((char *)"");
17658 }
17659 static int _wrap_TheFontList_set(PyObject *) {
17660 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17661 return 1;
17662 }
17663
17664
17665 static PyObject *_wrap_TheFontList_get() {
17666 PyObject *pyobj;
17667
17668 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
17669 return pyobj;
17670 }
17671
17672
17673 static int _wrap_ThePenList_set(PyObject *) {
17674 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17675 return 1;
17676 }
17677
17678
17679 static PyObject *_wrap_ThePenList_get() {
17680 PyObject *pyobj;
17681
17682 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
17683 return pyobj;
17684 }
17685
17686
17687 static int _wrap_TheBrushList_set(PyObject *) {
17688 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17689 return 1;
17690 }
17691
17692
17693 static PyObject *_wrap_TheBrushList_get() {
17694 PyObject *pyobj;
17695
17696 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
17697 return pyobj;
17698 }
17699
17700
17701 static int _wrap_TheColourDatabase_set(PyObject *) {
17702 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17703 return 1;
17704 }
17705
17706
17707 static PyObject *_wrap_TheColourDatabase_get() {
17708 PyObject *pyobj;
17709
17710 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
17711 return pyobj;
17712 }
17713
17714
17715 static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) {
17716 PyObject *resultobj;
17717 wxEffects *result;
17718 char *kwnames[] = {
17719 NULL
17720 };
17721
17722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
17723 {
17724 PyThreadState* __tstate = wxPyBeginAllowThreads();
17725 result = (wxEffects *)new wxEffects();
17726
17727 wxPyEndAllowThreads(__tstate);
17728 if (PyErr_Occurred()) SWIG_fail;
17729 }
17730 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
17731 return resultobj;
17732 fail:
17733 return NULL;
17734 }
17735
17736
17737 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
17738 PyObject *resultobj;
17739 wxEffects *arg1 = (wxEffects *) 0 ;
17740 wxColour result;
17741 PyObject * obj0 = 0 ;
17742 char *kwnames[] = {
17743 (char *) "self", NULL
17744 };
17745
17746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
17747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17749 {
17750 PyThreadState* __tstate = wxPyBeginAllowThreads();
17751 result = ((wxEffects const *)arg1)->GetHighlightColour();
17752
17753 wxPyEndAllowThreads(__tstate);
17754 if (PyErr_Occurred()) SWIG_fail;
17755 }
17756 {
17757 wxColour * resultptr;
17758 resultptr = new wxColour((wxColour &) result);
17759 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17760 }
17761 return resultobj;
17762 fail:
17763 return NULL;
17764 }
17765
17766
17767 static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
17768 PyObject *resultobj;
17769 wxEffects *arg1 = (wxEffects *) 0 ;
17770 wxColour result;
17771 PyObject * obj0 = 0 ;
17772 char *kwnames[] = {
17773 (char *) "self", NULL
17774 };
17775
17776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
17777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17779 {
17780 PyThreadState* __tstate = wxPyBeginAllowThreads();
17781 result = ((wxEffects const *)arg1)->GetLightShadow();
17782
17783 wxPyEndAllowThreads(__tstate);
17784 if (PyErr_Occurred()) SWIG_fail;
17785 }
17786 {
17787 wxColour * resultptr;
17788 resultptr = new wxColour((wxColour &) result);
17789 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17790 }
17791 return resultobj;
17792 fail:
17793 return NULL;
17794 }
17795
17796
17797 static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
17798 PyObject *resultobj;
17799 wxEffects *arg1 = (wxEffects *) 0 ;
17800 wxColour result;
17801 PyObject * obj0 = 0 ;
17802 char *kwnames[] = {
17803 (char *) "self", NULL
17804 };
17805
17806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
17807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17809 {
17810 PyThreadState* __tstate = wxPyBeginAllowThreads();
17811 result = ((wxEffects const *)arg1)->GetFaceColour();
17812
17813 wxPyEndAllowThreads(__tstate);
17814 if (PyErr_Occurred()) SWIG_fail;
17815 }
17816 {
17817 wxColour * resultptr;
17818 resultptr = new wxColour((wxColour &) result);
17819 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17820 }
17821 return resultobj;
17822 fail:
17823 return NULL;
17824 }
17825
17826
17827 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
17828 PyObject *resultobj;
17829 wxEffects *arg1 = (wxEffects *) 0 ;
17830 wxColour result;
17831 PyObject * obj0 = 0 ;
17832 char *kwnames[] = {
17833 (char *) "self", NULL
17834 };
17835
17836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
17837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17839 {
17840 PyThreadState* __tstate = wxPyBeginAllowThreads();
17841 result = ((wxEffects const *)arg1)->GetMediumShadow();
17842
17843 wxPyEndAllowThreads(__tstate);
17844 if (PyErr_Occurred()) SWIG_fail;
17845 }
17846 {
17847 wxColour * resultptr;
17848 resultptr = new wxColour((wxColour &) result);
17849 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17850 }
17851 return resultobj;
17852 fail:
17853 return NULL;
17854 }
17855
17856
17857 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
17858 PyObject *resultobj;
17859 wxEffects *arg1 = (wxEffects *) 0 ;
17860 wxColour result;
17861 PyObject * obj0 = 0 ;
17862 char *kwnames[] = {
17863 (char *) "self", NULL
17864 };
17865
17866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
17867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17869 {
17870 PyThreadState* __tstate = wxPyBeginAllowThreads();
17871 result = ((wxEffects const *)arg1)->GetDarkShadow();
17872
17873 wxPyEndAllowThreads(__tstate);
17874 if (PyErr_Occurred()) SWIG_fail;
17875 }
17876 {
17877 wxColour * resultptr;
17878 resultptr = new wxColour((wxColour &) result);
17879 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17880 }
17881 return resultobj;
17882 fail:
17883 return NULL;
17884 }
17885
17886
17887 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
17888 PyObject *resultobj;
17889 wxEffects *arg1 = (wxEffects *) 0 ;
17890 wxColour *arg2 = 0 ;
17891 wxColour temp2 ;
17892 PyObject * obj0 = 0 ;
17893 PyObject * obj1 = 0 ;
17894 char *kwnames[] = {
17895 (char *) "self",(char *) "c", NULL
17896 };
17897
17898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
17899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17901 {
17902 arg2 = &temp2;
17903 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17904 }
17905 {
17906 PyThreadState* __tstate = wxPyBeginAllowThreads();
17907 (arg1)->SetHighlightColour((wxColour const &)*arg2);
17908
17909 wxPyEndAllowThreads(__tstate);
17910 if (PyErr_Occurred()) SWIG_fail;
17911 }
17912 Py_INCREF(Py_None); resultobj = Py_None;
17913 return resultobj;
17914 fail:
17915 return NULL;
17916 }
17917
17918
17919 static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
17920 PyObject *resultobj;
17921 wxEffects *arg1 = (wxEffects *) 0 ;
17922 wxColour *arg2 = 0 ;
17923 wxColour temp2 ;
17924 PyObject * obj0 = 0 ;
17925 PyObject * obj1 = 0 ;
17926 char *kwnames[] = {
17927 (char *) "self",(char *) "c", NULL
17928 };
17929
17930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
17931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17933 {
17934 arg2 = &temp2;
17935 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17936 }
17937 {
17938 PyThreadState* __tstate = wxPyBeginAllowThreads();
17939 (arg1)->SetLightShadow((wxColour const &)*arg2);
17940
17941 wxPyEndAllowThreads(__tstate);
17942 if (PyErr_Occurred()) SWIG_fail;
17943 }
17944 Py_INCREF(Py_None); resultobj = Py_None;
17945 return resultobj;
17946 fail:
17947 return NULL;
17948 }
17949
17950
17951 static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
17952 PyObject *resultobj;
17953 wxEffects *arg1 = (wxEffects *) 0 ;
17954 wxColour *arg2 = 0 ;
17955 wxColour temp2 ;
17956 PyObject * obj0 = 0 ;
17957 PyObject * obj1 = 0 ;
17958 char *kwnames[] = {
17959 (char *) "self",(char *) "c", NULL
17960 };
17961
17962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
17963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17965 {
17966 arg2 = &temp2;
17967 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17968 }
17969 {
17970 PyThreadState* __tstate = wxPyBeginAllowThreads();
17971 (arg1)->SetFaceColour((wxColour const &)*arg2);
17972
17973 wxPyEndAllowThreads(__tstate);
17974 if (PyErr_Occurred()) SWIG_fail;
17975 }
17976 Py_INCREF(Py_None); resultobj = Py_None;
17977 return resultobj;
17978 fail:
17979 return NULL;
17980 }
17981
17982
17983 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
17984 PyObject *resultobj;
17985 wxEffects *arg1 = (wxEffects *) 0 ;
17986 wxColour *arg2 = 0 ;
17987 wxColour temp2 ;
17988 PyObject * obj0 = 0 ;
17989 PyObject * obj1 = 0 ;
17990 char *kwnames[] = {
17991 (char *) "self",(char *) "c", NULL
17992 };
17993
17994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
17995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17997 {
17998 arg2 = &temp2;
17999 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18000 }
18001 {
18002 PyThreadState* __tstate = wxPyBeginAllowThreads();
18003 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18004
18005 wxPyEndAllowThreads(__tstate);
18006 if (PyErr_Occurred()) SWIG_fail;
18007 }
18008 Py_INCREF(Py_None); resultobj = Py_None;
18009 return resultobj;
18010 fail:
18011 return NULL;
18012 }
18013
18014
18015 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
18016 PyObject *resultobj;
18017 wxEffects *arg1 = (wxEffects *) 0 ;
18018 wxColour *arg2 = 0 ;
18019 wxColour temp2 ;
18020 PyObject * obj0 = 0 ;
18021 PyObject * obj1 = 0 ;
18022 char *kwnames[] = {
18023 (char *) "self",(char *) "c", NULL
18024 };
18025
18026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18029 {
18030 arg2 = &temp2;
18031 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18032 }
18033 {
18034 PyThreadState* __tstate = wxPyBeginAllowThreads();
18035 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18036
18037 wxPyEndAllowThreads(__tstate);
18038 if (PyErr_Occurred()) SWIG_fail;
18039 }
18040 Py_INCREF(Py_None); resultobj = Py_None;
18041 return resultobj;
18042 fail:
18043 return NULL;
18044 }
18045
18046
18047 static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) {
18048 PyObject *resultobj;
18049 wxEffects *arg1 = (wxEffects *) 0 ;
18050 wxColour *arg2 = 0 ;
18051 wxColour *arg3 = 0 ;
18052 wxColour *arg4 = 0 ;
18053 wxColour *arg5 = 0 ;
18054 wxColour *arg6 = 0 ;
18055 wxColour temp2 ;
18056 wxColour temp3 ;
18057 wxColour temp4 ;
18058 wxColour temp5 ;
18059 wxColour temp6 ;
18060 PyObject * obj0 = 0 ;
18061 PyObject * obj1 = 0 ;
18062 PyObject * obj2 = 0 ;
18063 PyObject * obj3 = 0 ;
18064 PyObject * obj4 = 0 ;
18065 PyObject * obj5 = 0 ;
18066 char *kwnames[] = {
18067 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18068 };
18069
18070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18073 {
18074 arg2 = &temp2;
18075 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18076 }
18077 {
18078 arg3 = &temp3;
18079 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18080 }
18081 {
18082 arg4 = &temp4;
18083 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18084 }
18085 {
18086 arg5 = &temp5;
18087 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18088 }
18089 {
18090 arg6 = &temp6;
18091 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18092 }
18093 {
18094 PyThreadState* __tstate = wxPyBeginAllowThreads();
18095 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18096
18097 wxPyEndAllowThreads(__tstate);
18098 if (PyErr_Occurred()) SWIG_fail;
18099 }
18100 Py_INCREF(Py_None); resultobj = Py_None;
18101 return resultobj;
18102 fail:
18103 return NULL;
18104 }
18105
18106
18107 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) {
18108 PyObject *resultobj;
18109 wxEffects *arg1 = (wxEffects *) 0 ;
18110 wxDC *arg2 = 0 ;
18111 wxRect *arg3 = 0 ;
18112 int arg4 = (int) 1 ;
18113 wxRect temp3 ;
18114 PyObject * obj0 = 0 ;
18115 PyObject * obj1 = 0 ;
18116 PyObject * obj2 = 0 ;
18117 PyObject * obj3 = 0 ;
18118 char *kwnames[] = {
18119 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18120 };
18121
18122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18125 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18126 SWIG_POINTER_EXCEPTION | 0)) == -1)
18127 SWIG_fail;
18128 if (arg2 == NULL) {
18129 PyErr_SetString(PyExc_TypeError,"null reference");
18130 SWIG_fail;
18131 }
18132 {
18133 arg3 = &temp3;
18134 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18135 }
18136 if (obj3) {
18137 arg4 = (int) SWIG_AsInt(obj3);
18138 if (PyErr_Occurred()) SWIG_fail;
18139 }
18140 {
18141 PyThreadState* __tstate = wxPyBeginAllowThreads();
18142 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18143
18144 wxPyEndAllowThreads(__tstate);
18145 if (PyErr_Occurred()) SWIG_fail;
18146 }
18147 Py_INCREF(Py_None); resultobj = Py_None;
18148 return resultobj;
18149 fail:
18150 return NULL;
18151 }
18152
18153
18154 static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
18155 PyObject *resultobj;
18156 wxEffects *arg1 = (wxEffects *) 0 ;
18157 wxRect *arg2 = 0 ;
18158 wxDC *arg3 = 0 ;
18159 wxBitmap *arg4 = 0 ;
18160 bool result;
18161 wxRect temp2 ;
18162 PyObject * obj0 = 0 ;
18163 PyObject * obj1 = 0 ;
18164 PyObject * obj2 = 0 ;
18165 PyObject * obj3 = 0 ;
18166 char *kwnames[] = {
18167 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18168 };
18169
18170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18173 {
18174 arg2 = &temp2;
18175 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18176 }
18177 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18178 SWIG_POINTER_EXCEPTION | 0)) == -1)
18179 SWIG_fail;
18180 if (arg3 == NULL) {
18181 PyErr_SetString(PyExc_TypeError,"null reference");
18182 SWIG_fail;
18183 }
18184 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18185 SWIG_POINTER_EXCEPTION | 0)) == -1)
18186 SWIG_fail;
18187 if (arg4 == NULL) {
18188 PyErr_SetString(PyExc_TypeError,"null reference");
18189 SWIG_fail;
18190 }
18191 {
18192 PyThreadState* __tstate = wxPyBeginAllowThreads();
18193 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18194
18195 wxPyEndAllowThreads(__tstate);
18196 if (PyErr_Occurred()) SWIG_fail;
18197 }
18198 {
18199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18200 }
18201 return resultobj;
18202 fail:
18203 return NULL;
18204 }
18205
18206
18207 static PyObject * Effects_swigregister(PyObject *, PyObject *args) {
18208 PyObject *obj;
18209 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18210 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18211 Py_INCREF(obj);
18212 return Py_BuildValue((char *)"");
18213 }
18214 static PyMethodDef SwigMethods[] = {
18215 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL },
18216 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL },
18217 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL },
18218 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL },
18219 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL },
18220 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL },
18221 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL },
18222 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL },
18223 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18224 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL },
18225 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL },
18226 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL },
18227 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL },
18228 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18229 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL },
18230 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18231 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL },
18232 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18233 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18234 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18235 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL },
18236 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18237 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL },
18238 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL },
18239 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL },
18240 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18241 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
18242 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18243 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL },
18244 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL },
18245 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL },
18246 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL },
18247 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18248 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL },
18249 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18250 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18251 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18252 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL },
18253 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18254 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL },
18255 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18256 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18257 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18258 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18259 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18260 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18261 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL },
18262 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS, NULL },
18263 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS, NULL },
18264 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL },
18265 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS, NULL },
18266 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL },
18267 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL },
18268 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18269 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18270 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
18271 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
18272 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18273 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL },
18274 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18275 { (char *)"Brush_GetMacTheme", (PyCFunction) _wrap_Brush_GetMacTheme, METH_VARARGS | METH_KEYWORDS, NULL },
18276 { (char *)"Brush_SetMacTheme", (PyCFunction) _wrap_Brush_SetMacTheme, METH_VARARGS | METH_KEYWORDS, NULL },
18277 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL },
18278 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18279 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18280 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18281 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18282 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
18283 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL },
18284 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL },
18285 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18286 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18287 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18288 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18289 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL },
18290 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
18291 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL },
18292 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL },
18293 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18294 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL },
18295 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
18296 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18297 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18298 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18299 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18300 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18301 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18302 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL },
18303 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL },
18304 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL },
18305 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL },
18306 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL },
18307 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18308 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18309 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18310 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL },
18311 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18312 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18313 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18314 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18315 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18316 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18317 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18318 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18319 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL },
18320 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18321 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL },
18322 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
18323 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
18324 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL },
18325 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
18326 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
18327 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL },
18328 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL },
18329 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL },
18330 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18331 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL },
18332 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18333 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL },
18334 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18335 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL },
18336 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL },
18337 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL },
18338 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL },
18339 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
18340 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18341 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL },
18342 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL },
18343 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18344 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL },
18345 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL },
18346 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
18347 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL },
18348 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18349 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL },
18350 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL },
18351 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL },
18352 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL },
18353 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL },
18354 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18355 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL },
18356 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL },
18357 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL },
18358 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18359 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
18360 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL },
18361 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18362 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL },
18363 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL },
18364 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18365 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18366 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18367 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL },
18368 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL },
18369 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL },
18370 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL },
18371 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL },
18372 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL },
18373 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18374 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL },
18375 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18376 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL },
18377 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL },
18378 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL },
18379 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL },
18380 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL },
18381 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL },
18382 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18383 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18384 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL },
18385 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL },
18386 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18387 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18388 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18389 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18390 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18391 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18392 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18393 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18394 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18395 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18396 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18397 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18398 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18399 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18400 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL },
18401 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL },
18402 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL },
18403 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL },
18404 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL },
18405 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL },
18406 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL },
18407 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL },
18408 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL },
18409 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL },
18410 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18411 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18412 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL },
18413 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL },
18414 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL },
18415 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18416 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18417 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL },
18418 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL },
18419 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL },
18420 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL },
18421 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18422 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL },
18423 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18424 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL },
18425 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL },
18426 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS, NULL },
18427 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL },
18428 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL },
18429 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18430 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
18431 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL },
18432 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL },
18433 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL },
18434 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL },
18435 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL },
18436 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18437 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL },
18438 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS, NULL },
18439 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18440 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
18441 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
18442 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18443 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18444 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18445 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18446 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18447 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18448 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18449 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18450 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18451 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL },
18452 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL },
18453 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL },
18454 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL },
18455 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
18456 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL },
18457 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL },
18458 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL },
18459 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18460 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18461 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL },
18462 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL },
18463 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL },
18464 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL },
18465 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL },
18466 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL },
18467 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL },
18468 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18469 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18470 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL },
18471 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL },
18472 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL },
18473 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18474 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL },
18475 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL },
18476 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL },
18477 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL },
18478 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL },
18479 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL },
18480 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL },
18481 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL },
18482 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL },
18483 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL },
18484 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL },
18485 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL },
18486 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL },
18487 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL },
18488 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL },
18489 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL },
18490 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
18491 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL },
18492 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL },
18493 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
18494 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL },
18495 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
18496 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL },
18497 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL },
18498 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL },
18499 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL },
18500 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL },
18501 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18502 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL },
18503 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL },
18504 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL },
18505 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
18506 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL },
18507 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL },
18508 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL },
18509 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL },
18510 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL },
18511 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL },
18512 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL },
18513 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL },
18514 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL },
18515 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL },
18516 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL },
18517 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL },
18518 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL },
18519 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS, NULL },
18520 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS, NULL },
18521 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS, NULL },
18522 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL },
18523 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS, NULL },
18524 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL },
18525 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS, NULL },
18526 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL },
18527 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS, NULL },
18528 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL },
18529 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS, NULL },
18530 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL },
18531 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS, NULL },
18532 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL },
18533 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS, NULL },
18534 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL },
18535 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS, NULL },
18536 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL },
18537 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS, NULL },
18538 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL },
18539 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL },
18540 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS, NULL },
18541 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL },
18542 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL },
18543 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS, NULL },
18544 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL },
18545 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS, NULL },
18546 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL },
18547 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL },
18548 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS, NULL },
18549 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18550 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS, NULL },
18551 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18552 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS, NULL },
18553 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL },
18554 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS, NULL },
18555 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL },
18556 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS, NULL },
18557 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL },
18558 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL },
18559 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL },
18560 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL },
18561 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL },
18562 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL },
18563 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
18564 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL },
18565 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL },
18566 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL },
18567 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL },
18568 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
18569 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL },
18570 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18571 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18572 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL },
18573 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL },
18574 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS, NULL },
18575 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18576 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL },
18577 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18578 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL },
18579 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18580 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL },
18581 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18582 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18583 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18584 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18585 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18586 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL },
18587 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18588 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18589 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
18590 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18591 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL },
18592 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL },
18593 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL },
18594 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL },
18595 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL },
18596 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL },
18597 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL },
18598 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL },
18599 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18600 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
18601 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
18602 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL },
18603 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18604 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL },
18605 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18606 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18607 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
18608 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL },
18609 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18610 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL },
18611 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL },
18612 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL },
18613 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL },
18614 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL },
18615 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL },
18616 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL },
18617 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL },
18618 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL },
18619 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18620 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18621 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18622 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18623 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL },
18624 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
18625 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL },
18626 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL },
18627 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL },
18628 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS, NULL },
18629 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS, NULL },
18630 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18631 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18632 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL },
18633 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL },
18634 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL },
18635 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL },
18636 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL },
18637 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL },
18638 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL },
18639 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL },
18640 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL },
18641 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL },
18642 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL },
18643 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL },
18644 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL },
18645 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL },
18646 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL },
18647 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL },
18648 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL },
18649 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS, NULL },
18650 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL },
18651 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL },
18652 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL },
18653 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL },
18654 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL },
18655 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL },
18656 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL },
18657 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL },
18658 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL },
18659 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL },
18660 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL },
18661 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL },
18662 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL },
18663 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL },
18664 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL },
18665 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL },
18666 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL },
18667 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL },
18668 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL },
18669 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL },
18670 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL },
18671 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL },
18672 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL },
18673 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL },
18674 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL },
18675 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL },
18676 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
18677 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL },
18678 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18679 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
18680 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
18681 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL },
18682 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL },
18683 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS, NULL },
18684 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL },
18685 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL },
18686 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL },
18687 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL },
18688 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL },
18689 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL },
18690 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL },
18691 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL },
18692 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
18693 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL },
18694 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL },
18695 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
18696 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL },
18697 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
18698 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL },
18699 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL },
18700 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL },
18701 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL },
18702 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
18703 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL },
18704 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18705 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18706 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL },
18707 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
18708 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL },
18709 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL },
18710 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL },
18711 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL },
18712 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL },
18713 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL },
18714 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL },
18715 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL },
18716 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL },
18717 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL },
18718 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL },
18719 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
18720 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL },
18721 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL },
18722 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL },
18723 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18724 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL },
18725 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18726 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18727 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL },
18728 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18729 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL },
18730 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18731 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL },
18732 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL },
18733 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL },
18734 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
18735 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL },
18736 { NULL, NULL, 0, NULL }
18737 };
18738
18739
18740 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
18741
18742 static void *_p_wxControlTo_p_wxWindow(void *x) {
18743 return (void *)((wxWindow *) ((wxControl *) x));
18744 }
18745 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
18746 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
18747 }
18748 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
18749 return (void *)((wxWindow *) ((wxMenuBar *) x));
18750 }
18751 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
18752 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
18753 }
18754 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
18755 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
18756 }
18757 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
18758 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
18759 }
18760 static void *_p_wxPenTo_p_wxObject(void *x) {
18761 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
18762 }
18763 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
18764 return (void *)((wxObject *) ((wxRegionIterator *) x));
18765 }
18766 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
18767 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
18768 }
18769 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
18770 return (void *)((wxObject *) ((wxSizerItem *) x));
18771 }
18772 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
18773 return (void *)((wxObject *) ((wxColourDatabase *) x));
18774 }
18775 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
18776 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
18777 }
18778 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
18779 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
18780 }
18781 static void *_p_wxIconTo_p_wxObject(void *x) {
18782 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
18783 }
18784 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
18785 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
18786 }
18787 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
18788 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
18789 }
18790 static void *_p_wxSizerTo_p_wxObject(void *x) {
18791 return (void *)((wxObject *) ((wxSizer *) x));
18792 }
18793 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
18794 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
18795 }
18796 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18797 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18798 }
18799 static void *_p_wxPenListTo_p_wxObject(void *x) {
18800 return (void *)((wxObject *) ((wxPenList *) x));
18801 }
18802 static void *_p_wxEventTo_p_wxObject(void *x) {
18803 return (void *)((wxObject *) ((wxEvent *) x));
18804 }
18805 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
18806 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
18807 }
18808 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
18809 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
18810 }
18811 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
18812 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
18813 }
18814 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
18815 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
18816 }
18817 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
18818 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
18819 }
18820 static void *_p_wxDCTo_p_wxObject(void *x) {
18821 return (void *)((wxObject *) ((wxDC *) x));
18822 }
18823 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
18824 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
18825 }
18826 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
18827 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
18828 }
18829 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
18830 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
18831 }
18832 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
18833 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
18834 }
18835 static void *_p_wxControlTo_p_wxObject(void *x) {
18836 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
18837 }
18838 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
18839 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
18840 }
18841 static void *_p_wxClientDCTo_p_wxObject(void *x) {
18842 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
18843 }
18844 static void *_p_wxFSFileTo_p_wxObject(void *x) {
18845 return (void *)((wxObject *) ((wxFSFile *) x));
18846 }
18847 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
18848 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
18849 }
18850 static void *_p_wxRegionTo_p_wxObject(void *x) {
18851 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
18852 }
18853 static void *_p_wxPySizerTo_p_wxObject(void *x) {
18854 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
18855 }
18856 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
18857 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
18858 }
18859 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
18860 return (void *)((wxObject *) ((wxGDIObject *) x));
18861 }
18862 static void *_p_wxEffectsTo_p_wxObject(void *x) {
18863 return (void *)((wxObject *) ((wxEffects *) x));
18864 }
18865 static void *_p_wxPyEventTo_p_wxObject(void *x) {
18866 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
18867 }
18868 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
18869 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
18870 }
18871 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
18872 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
18873 }
18874 static void *_p_wxShowEventTo_p_wxObject(void *x) {
18875 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
18876 }
18877 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
18878 return (void *)((wxObject *) ((wxMenuItem *) x));
18879 }
18880 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
18881 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
18882 }
18883 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
18884 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
18885 }
18886 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
18887 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
18888 }
18889 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
18890 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
18891 }
18892 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
18893 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
18894 }
18895 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
18896 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
18897 }
18898 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
18899 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
18900 }
18901 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
18902 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
18903 }
18904 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
18905 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
18906 }
18907 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
18908 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
18909 }
18910 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
18911 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
18912 }
18913 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
18914 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
18915 }
18916 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
18917 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
18918 }
18919 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
18920 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
18921 }
18922 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
18923 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
18924 }
18925 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
18926 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
18927 }
18928 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
18929 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
18930 }
18931 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
18932 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
18933 }
18934 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
18935 return (void *)((wxObject *) ((wxImageHandler *) x));
18936 }
18937 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
18938 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
18939 }
18940 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
18941 return (void *)((wxObject *) ((wxEvtHandler *) x));
18942 }
18943 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
18944 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18945 }
18946 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
18947 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
18948 }
18949 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
18950 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
18951 }
18952 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
18953 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
18954 }
18955 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
18956 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
18957 }
18958 static void *_p_wxImageTo_p_wxObject(void *x) {
18959 return (void *)((wxObject *) ((wxImage *) x));
18960 }
18961 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
18962 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
18963 }
18964 static void *_p_wxPaletteTo_p_wxObject(void *x) {
18965 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
18966 }
18967 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
18968 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
18969 }
18970 static void *_p_wxImageListTo_p_wxObject(void *x) {
18971 return (void *)((wxObject *) ((wxImageList *) x));
18972 }
18973 static void *_p_wxCursorTo_p_wxObject(void *x) {
18974 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
18975 }
18976 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
18977 return (void *)((wxObject *) ((wxEncodingConverter *) x));
18978 }
18979 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
18980 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
18981 }
18982 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
18983 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
18984 }
18985 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
18986 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
18987 }
18988 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
18989 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
18990 }
18991 static void *_p_wxWindowTo_p_wxObject(void *x) {
18992 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
18993 }
18994 static void *_p_wxMenuTo_p_wxObject(void *x) {
18995 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
18996 }
18997 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
18998 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
18999 }
19000 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19001 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19002 }
19003 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19004 return (void *)((wxObject *) ((wxBrushList *) x));
19005 }
19006 static void *_p_wxPyPenTo_p_wxObject(void *x) {
19007 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
19008 }
19009 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19010 return (void *)((wxObject *) ((wxFileSystem *) x));
19011 }
19012 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19013 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19014 }
19015 static void *_p_wxMaskTo_p_wxObject(void *x) {
19016 return (void *)((wxObject *) ((wxMask *) x));
19017 }
19018 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19019 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19020 }
19021 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19022 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19023 }
19024 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19025 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19026 }
19027 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19028 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19029 }
19030 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19031 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19032 }
19033 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19034 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19035 }
19036 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19037 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19038 }
19039 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19040 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19041 }
19042 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19043 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19044 }
19045 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19046 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19047 }
19048 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19049 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19050 }
19051 static void *_p_wxFontTo_p_wxObject(void *x) {
19052 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19053 }
19054 static void *_p_wxBrushTo_p_wxObject(void *x) {
19055 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19056 }
19057 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19058 return (void *)((wxObject *) ((wxMetaFile *) x));
19059 }
19060 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19061 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19062 }
19063 static void *_p_wxColourTo_p_wxObject(void *x) {
19064 return (void *)((wxObject *) ((wxColour *) x));
19065 }
19066 static void *_p_wxFontListTo_p_wxObject(void *x) {
19067 return (void *)((wxObject *) ((wxFontList *) x));
19068 }
19069 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19070 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19071 }
19072 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19073 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19074 }
19075 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19076 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19077 }
19078 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19079 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19080 }
19081 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19082 return (void *)((wxDC *) ((wxScreenDC *) x));
19083 }
19084 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19085 return (void *)((wxDC *) ((wxMirrorDC *) x));
19086 }
19087 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19088 return (void *)((wxDC *) ((wxMemoryDC *) x));
19089 }
19090 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19091 return (void *)((wxDC *) ((wxWindowDC *) x));
19092 }
19093 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19094 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19095 }
19096 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19097 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19098 }
19099 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19100 return (void *)((wxDC *) ((wxClientDC *) x));
19101 }
19102 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19103 return (void *)((wxDC *) ((wxPaintDC *) x));
19104 }
19105 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19106 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19107 }
19108 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19109 return (void *)((wxDC *) ((wxPrinterDC *) x));
19110 }
19111 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
19112 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
19113 }
19114 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19115 return (void *)((wxGDIObject *) ((wxIcon *) x));
19116 }
19117 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19118 return (void *)((wxGDIObject *) ((wxPalette *) x));
19119 }
19120 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19121 return (void *)((wxGDIObject *) ((wxPen *) x));
19122 }
19123 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19124 return (void *)((wxGDIObject *) ((wxFont *) x));
19125 }
19126 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19127 return (void *)((wxGDIObject *) ((wxCursor *) x));
19128 }
19129 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19130 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19131 }
19132 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19133 return (void *)((wxGDIObject *) ((wxRegion *) x));
19134 }
19135 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19136 return (void *)((wxGDIObject *) ((wxBrush *) x));
19137 }
19138 static void *_p_wxPyPenTo_p_wxPen(void *x) {
19139 return (void *)((wxPen *) ((wxPyPen *) x));
19140 }
19141 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}};
19142 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}};
19143 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}};
19144 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}};
19145 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}};
19146 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}};
19147 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}};
19148 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}};
19149 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}};
19150 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}};
19151 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}};
19152 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}};
19153 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}};
19154 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}};
19155 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}};
19156 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}};
19157 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}};
19158 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}};
19159 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}};
19160 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}};
19161 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}};
19162 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}};
19163 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}};
19164 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}};
19165 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}};
19166 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}};
19167 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}};
19168 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}};
19169 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}};
19170 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}};
19171 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}};
19172 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}};
19173 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}};
19174 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}};
19175 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}};
19176 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}};
19177 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}};
19178 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}};
19179 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}};
19180 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}};
19181 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}};
19182 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}};
19183 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}};
19184 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}};
19185 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}};
19186 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}};
19187 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}};
19188 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}};
19189 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}};
19190 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}};
19191 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}};
19192 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}};
19193 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}};
19194 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}};
19195 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}};
19196 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}};
19197
19198 static swig_type_info *swig_types_initial[] = {
19199 _swigt__p_wxPostScriptDC,
19200 _swigt__p_wxBrush,
19201 _swigt__p_wxColour,
19202 _swigt__p_wxDC,
19203 _swigt__p_wxMirrorDC,
19204 _swigt__p_byte,
19205 _swigt__p_wxPyFontEnumerator,
19206 _swigt__p_char,
19207 _swigt__p_wxIconLocation,
19208 _swigt__p_wxImage,
19209 _swigt__p_wxMetaFileDC,
19210 _swigt__p_wxMask,
19211 _swigt__p_wxFont,
19212 _swigt__p_wxWindow,
19213 _swigt__p_wxSize,
19214 _swigt__p_double,
19215 _swigt__p_wxMemoryDC,
19216 _swigt__p_wxFontMapper,
19217 _swigt__p_wxEffects,
19218 _swigt__p_wxNativeEncodingInfo,
19219 _swigt__p_wxPalette,
19220 _swigt__p_wxBitmap,
19221 _swigt__p_wxObject,
19222 _swigt__p_wxRegionIterator,
19223 _swigt__p_wxRect,
19224 _swigt__p_wxString,
19225 _swigt__p_wxPrinterDC,
19226 _swigt__p_wxIconBundle,
19227 _swigt__p_wxPoint,
19228 _swigt__p_wxDash,
19229 _swigt__p_wxScreenDC,
19230 _swigt__p_wxCursor,
19231 _swigt__p_wxClientDC,
19232 _swigt__p_wxBufferedDC,
19233 _swigt__p_wxImageList,
19234 _swigt__p_unsigned_char,
19235 _swigt__p_wxGDIObject,
19236 _swigt__p_wxIcon,
19237 _swigt__p_wxLocale,
19238 _swigt__p_wxRegion,
19239 _swigt__p_wxLanguageInfo,
19240 _swigt__p_wxConfigBase,
19241 _swigt__p_wxWindowDC,
19242 _swigt__p_wxPrintData,
19243 _swigt__p_wxBrushList,
19244 _swigt__p_wxFontList,
19245 _swigt__p_wxPen,
19246 _swigt__p_wxBufferedPaintDC,
19247 _swigt__p_wxPaintDC,
19248 _swigt__p_wxPenList,
19249 _swigt__p_wxPyPen,
19250 _swigt__p_int,
19251 _swigt__p_wxMetaFile,
19252 _swigt__p_wxNativeFontInfo,
19253 _swigt__p_wxEncodingConverter,
19254 _swigt__p_wxColourDatabase,
19255 0
19256 };
19257
19258
19259 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19260
19261 static swig_const_info swig_const_table[] = {
19262 {0, 0, 0, 0.0, 0, 0}};
19263
19264 #ifdef __cplusplus
19265 }
19266 #endif
19267
19268 #ifdef __cplusplus
19269 extern "C"
19270 #endif
19271 SWIGEXPORT(void) SWIG_init(void) {
19272 static PyObject *SWIG_globals = 0;
19273 static int typeinit = 0;
19274 PyObject *m, *d;
19275 int i;
19276 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19277 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19278 d = PyModule_GetDict(m);
19279
19280 if (!typeinit) {
19281 for (i = 0; swig_types_initial[i]; i++) {
19282 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19283 }
19284 typeinit = 1;
19285 }
19286 SWIG_InstallConstants(d,swig_const_table);
19287
19288 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
19289 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
19290 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
19291 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
19292 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
19293 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
19294 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
19295 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
19296 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
19297 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
19298 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
19299 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
19300 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
19301 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
19302 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
19303 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
19304 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
19305 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
19306 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
19307 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
19308 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
19309 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
19310 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
19311 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
19312 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
19313 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
19314 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
19315 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
19316 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
19317 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
19318 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
19319 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
19320 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
19321 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
19322 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
19323 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
19324 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
19325 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
19326 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
19327 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
19328 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
19329 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
19330 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
19331 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
19332 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
19333 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
19334 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
19335 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
19336 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
19337 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
19338 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
19339 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
19340 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
19341 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
19342 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
19343 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
19344 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
19345 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
19346 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
19347 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
19348 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
19349 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
19350 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
19351 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
19352 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
19353 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
19354 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
19355 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
19356 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
19357 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
19358 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
19359 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
19360 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
19361 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
19362 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
19363 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
19364 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
19365 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
19366 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
19367 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
19368 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
19369 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
19370 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
19371 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
19372 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
19373 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
19374 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
19375 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
19376 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
19377 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
19378 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
19379 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
19380 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
19381 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
19382 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
19383 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
19384 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
19385 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
19386 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
19387 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
19388 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
19389 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
19390 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
19391 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
19392 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
19393 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
19394 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
19395 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
19396 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
19397 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
19398 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
19399 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
19400 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
19401 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
19402 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
19403 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
19404 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
19405 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
19406 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
19407 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
19408 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
19409 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
19410 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
19411 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
19412 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
19413 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
19414
19415 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19416
19417 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
19418 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
19419 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
19420 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
19421 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
19422 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
19423 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
19424 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
19425 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
19426 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
19427 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
19428 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
19429 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
19430 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
19431 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
19432 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
19433 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
19434 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
19435 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
19436 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19437 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
19438 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
19439 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
19440 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
19441 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
19442 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
19443 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
19444 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
19445 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
19446 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
19447 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
19448 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
19449 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
19450 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
19451 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
19452 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
19453 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
19454 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
19455 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
19456 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
19457 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
19458 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
19459 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
19460 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
19461 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19462 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19463 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
19464 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
19465 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
19466 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
19467 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
19468 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
19469 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
19470 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
19471 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
19472 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
19473 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
19474 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
19475 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
19476 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19477 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
19478 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19479 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
19480 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19481 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
19482 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
19483 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
19484 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19485 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19486 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19487 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19488 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19489 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
19490 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
19491 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
19492 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
19493 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
19494 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
19495 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
19496 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
19497 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
19498 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19499 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
19500 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
19501 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
19502 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
19503 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
19504 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
19505 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19506 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
19507 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19508 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19509 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
19510 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
19511 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
19512 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
19513 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
19514 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
19515 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
19516 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
19517 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
19518 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
19519 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
19520 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
19521 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
19522 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
19523 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
19524 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
19525 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
19526 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19527 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
19528 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
19529 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
19530 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
19531 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19532 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
19533 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
19534 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
19535 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
19536 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
19537 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
19538 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
19539 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
19540 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
19541 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
19542 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
19543 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
19544 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
19545 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
19546 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
19547 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
19548 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
19549 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19550 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19551 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
19552 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
19553 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
19554 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
19555 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19556 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
19557 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
19558 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
19559 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
19560 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19561 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19562 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
19563 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
19564 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
19565 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
19566 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
19567 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
19568 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19569 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
19570 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
19571 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
19572 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
19573 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
19574 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19575 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
19576 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
19577 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
19578 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19579 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
19580 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19581 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19582 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19583 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
19584 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
19585 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
19586 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
19587 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
19588 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
19589 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
19590 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
19591 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
19592 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
19593 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19594 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19595 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19596 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19597 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19598 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19599 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19600 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19601 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19602 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19603 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19604 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19605 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19606 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19607 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19608 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19609 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19610 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19611 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
19612 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19613 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
19614 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
19615 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
19616 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19617 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
19618 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
19619 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
19620 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
19621 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
19622 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
19623 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
19624 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
19625 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
19626 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
19627 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
19628 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
19629 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
19630 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
19631 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
19632 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
19633 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
19634 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19635 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
19636 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19637 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19638 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
19639 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
19640 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
19641 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
19642 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
19643 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
19644 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
19645 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
19646 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
19647 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
19648 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
19649 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
19650 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
19651 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
19652 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19653 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
19654 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19655 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
19656 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
19657 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
19658 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
19659 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
19660 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
19661 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
19662 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
19663 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19664 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19665 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19666 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19667 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
19668 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
19669 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
19670 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19671 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19672 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19673 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19674 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19675 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19676 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19677 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19678 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19679 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19680 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19681 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19682 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19683 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19684 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19685 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19686 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19687 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19688 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19689 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19690 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19691 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19692 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19693 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19694 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19695 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19696 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19697 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19698 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19699 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19700 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19701 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19702 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19703 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19704 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19705 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19706 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19707 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19708 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19709 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19710 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19711 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19712 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19713 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19714 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19715 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19716 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
19717
19718 // Work around a chicken/egg problem in drawlist.cpp
19719 wxPyDrawList_SetAPIPtr();
19720
19721 }
19722