]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/gdi_wrap.cpp
Remove some obsolete window styles, added a new sizer flag
[wxWidgets.git] / wxPython / src / gtk / gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 /***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136 #include "Python.h"
137
138 #ifdef __cplusplus
139 extern "C" {
140 #endif
141
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
147
148 /* Flags for pointer conversion */
149
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
152
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
155
156 /* Constant information structure */
157 typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164 } swig_const_info;
165
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
207 /* -------- TYPES TABLE (BEGIN) -------- */
208
209 #define SWIGTYPE_p_wxPostScriptDC swig_types[0]
210 #define SWIGTYPE_p_wxBrush swig_types[1]
211 #define SWIGTYPE_p_wxColour swig_types[2]
212 #define SWIGTYPE_p_wxDC swig_types[3]
213 #define SWIGTYPE_p_wxMirrorDC swig_types[4]
214 #define SWIGTYPE_p_byte swig_types[5]
215 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
216 #define SWIGTYPE_p_char swig_types[7]
217 #define SWIGTYPE_p_wxIconLocation swig_types[8]
218 #define SWIGTYPE_p_wxImage swig_types[9]
219 #define SWIGTYPE_p_wxMetaFileDC swig_types[10]
220 #define SWIGTYPE_p_wxMask swig_types[11]
221 #define SWIGTYPE_p_wxSize swig_types[12]
222 #define SWIGTYPE_p_wxFont swig_types[13]
223 #define SWIGTYPE_p_wxWindow 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_wxConfigBase swig_types[40]
250 #define SWIGTYPE_p_wxLanguageInfo swig_types[41]
251 #define SWIGTYPE_p_wxWindowDC swig_types[42]
252 #define SWIGTYPE_p_wxPrintData swig_types[43]
253 #define SWIGTYPE_p_wxBrushList swig_types[44]
254 #define SWIGTYPE_p_wxFontList swig_types[45]
255 #define SWIGTYPE_p_wxPen swig_types[46]
256 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[47]
257 #define SWIGTYPE_p_wxPaintDC swig_types[48]
258 #define SWIGTYPE_p_wxPenList swig_types[49]
259 #define SWIGTYPE_p_wxPyPen swig_types[50]
260 #define SWIGTYPE_p_int swig_types[51]
261 #define SWIGTYPE_p_wxMetaFile swig_types[52]
262 #define SWIGTYPE_p_wxNativeFontInfo swig_types[53]
263 #define SWIGTYPE_p_wxEncodingConverter swig_types[54]
264 #define SWIGTYPE_p_wxColourDatabase swig_types[55]
265 static swig_type_info *swig_types[57];
266
267 /* -------- TYPES TABLE (END) -------- */
268
269
270 /*-----------------------------------------------
271 @(target):= _gdi.so
272 ------------------------------------------------*/
273 #define SWIG_init init_gdi
274
275 #define SWIG_name "_gdi"
276
277 /* Auxiliar swig macros */
278
279 #ifdef __cplusplus
280 #define SWIGSTATICINLINE(a) static inline a
281 #define SWIGSTATIC(a) static a
282 #define swig_new_array(type, size) (new type[(size)])
283 #define swig_delete_array(cptr) delete[] cptr
284 #define swig_const_cast(type,a) const_cast<type>(a)
285 #define swig_static_cast(type,a) static_cast<type>(a)
286 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
287
288 #ifdef HAVE_NUMERIC_CAST
289 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
290 #else
291 #define swig_numeric_cast(type,a) static_cast<type>(a)
292 #endif
293
294 #else /* C case */
295
296 #define SWIGSTATICINLINE(a) static a
297 #define SWIGSTATIC(a) static a
298 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
299 #define swig_delete_array(cptr) free((char*)cptr)
300 #define swig_const_cast(type,a) (type)(a)
301 #define swig_static_cast(type,a) (type)(a)
302 #define swig_reinterpret_cast(type,a) (type)(a)
303 #define swig_numeric_cast(type,a) (type)(a)
304
305 #endif /* __cplusplus */
306
307
308 #define SWIG_FromSignedChar PyInt_FromLong
309 #define SWIG_FromUnsignedChar PyInt_FromLong
310 #define SWIG_FromShort PyInt_FromLong
311 #define SWIG_FromUnsignedShort PyInt_FromLong
312 #define SWIG_FromInt PyInt_FromLong
313 #define SWIG_FromLong PyInt_FromLong
314 #define SWIG_FromFloat PyFloat_FromDouble
315 #define SWIG_FromDouble PyFloat_FromDouble
316 #define SWIG_FromFloat PyFloat_FromDouble
317 #define SWIG_FromDouble PyFloat_FromDouble
318
319
320 #include "wx/wxPython/wxPython.h"
321 #include "wx/wxPython/pyclasses.h"
322
323
324 static const wxString wxPyEmptyString(wxEmptyString);
325
326 SWIGSTATICINLINE(bool)
327 SWIG_AsBool(PyObject *obj)
328 {
329 return PyObject_IsTrue(obj) ? true : false;
330 }
331
332
333 SWIGSTATICINLINE(int)
334 SWIG_CheckBool(PyObject* obj)
335 {
336 SWIG_AsBool(obj);
337 if (PyErr_Occurred()) {
338 PyErr_Clear();
339 return 0;
340 } else {
341 return 1;
342 }
343 }
344
345
346 #include <limits.h>
347
348
349 SWIGSTATICINLINE(unsigned long)
350 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
351 unsigned long max_value)
352 {
353 if (!PyErr_Occurred()) {
354 if (value > max_value) {
355 PyObject *err =
356 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
357 value, type, max_value);
358 PyErr_SetObject(PyExc_OverflowError, err);
359 Py_DECREF(err);
360 }
361 }
362 return value;
363 }
364
365
366 SWIGSTATICINLINE(long)
367 SWIG_AsLong(PyObject * obj)
368 {
369 if (PyNumber_Check(obj))
370 return PyInt_AsLong(obj);
371 else {
372 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
373 obj->ob_type->tp_name);
374 PyErr_SetObject(PyExc_TypeError, errmsg);
375 Py_DECREF(errmsg);
376 return 0;
377 }
378 }
379
380
381 SWIGSTATICINLINE(unsigned long)
382 SWIG_AsUnsignedLong(PyObject * obj)
383 {
384 if (PyLong_Check(obj)) {
385 return PyLong_AsUnsignedLong(obj);
386 } else {
387 long i = SWIG_AsLong(obj);
388 if ( !PyErr_Occurred() && (i < 0)) {
389 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
390 }
391 return i;
392 }
393 }
394
395
396 SWIGSTATICINLINE(unsigned char)
397 SWIG_AsUnsignedChar(PyObject *obj)
398 {
399 return swig_numeric_cast(unsigned char,
400 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
401 "unsigned char", UCHAR_MAX));
402 }
403
404
405 SWIGSTATICINLINE(int)
406 SWIG_CheckUnsignedChar(PyObject* obj)
407 {
408 SWIG_AsUnsignedChar(obj);
409 if (PyErr_Occurred()) {
410 PyErr_Clear();
411 return 0;
412 } else {
413 return 1;
414 }
415 }
416
417
418 SWIGSTATICINLINE(int)
419 SWIG_CheckUnsignedLong(PyObject* obj)
420 {
421 SWIG_AsUnsignedLong(obj);
422 if (PyErr_Occurred()) {
423 PyErr_Clear();
424 return 0;
425 } else {
426 return 1;
427 }
428 }
429
430 PyObject *wxColour_Get(wxColour *self){
431 PyObject* rv = PyTuple_New(3);
432 int red = -1;
433 int green = -1;
434 int blue = -1;
435 if (self->Ok()) {
436 red = self->Red();
437 green = self->Green();
438 blue = self->Blue();
439 }
440 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
441 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
442 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
443 return rv;
444 }
445 unsigned long wxColour_GetRGB(wxColour *self){
446 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
447 }
448
449 SWIGSTATICINLINE(PyObject* )
450 SWIG_FromUnsignedLong(unsigned long value)
451 {
452 return (value > LONG_MAX) ?
453 PyLong_FromUnsignedLong(value)
454 : PyInt_FromLong(swig_numeric_cast(long,value));
455 }
456
457
458 SWIGSTATICINLINE(long)
459 SWIG_CheckLongInRange(long value, const char* type,
460 long min_value, long max_value)
461 {
462 if (!PyErr_Occurred()) {
463 if (value < min_value) {
464 PyObject *err =
465 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
466 value, type, min_value);
467
468 PyErr_SetObject(PyExc_OverflowError, err);
469 Py_DECREF(err);
470 } else if (value > max_value) {
471 PyObject *err =
472 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
473 value, type, max_value);
474 PyErr_SetObject(PyExc_OverflowError, err);
475 Py_DECREF(err);
476 }
477 }
478 return value;
479 }
480
481
482 #if INT_MAX != LONG_MAX
483 SWIGSTATICINLINE(int)
484 SWIG_AsInt(PyObject *obj)
485 {
486 return swig_numeric_cast(int,
487 SWIG_CheckLongInRange(SWIG_AsLong(obj),
488 "int", INT_MIN, INT_MAX));
489 }
490 #else
491 #define SWIG_AsInt SWIG_AsLong
492 #endif
493
494
495 SWIGSTATICINLINE(int)
496 SWIG_CheckInt(PyObject* obj)
497 {
498 SWIG_AsInt(obj);
499 if (PyErr_Occurred()) {
500 PyErr_Clear();
501 return 0;
502 } else {
503 return 1;
504 }
505 }
506
507
508 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
509 PyObject* o2;
510 PyObject* o3;
511
512 if (!target) {
513 target = o;
514 } else if (target == Py_None) {
515 Py_DECREF(Py_None);
516 target = o;
517 } else {
518 if (!PyTuple_Check(target)) {
519 o2 = target;
520 target = PyTuple_New(1);
521 PyTuple_SetItem(target, 0, o2);
522 }
523 o3 = PyTuple_New(1);
524 PyTuple_SetItem(o3, 0, o);
525
526 o2 = target;
527 target = PySequence_Concat(o2, o3);
528 Py_DECREF(o2);
529 Py_DECREF(o3);
530 }
531 return target;
532 }
533
534 PyObject *wxPen_GetDashes(wxPen *self){
535 wxDash* dashes;
536 int count = self->GetDashes(&dashes);
537 bool blocked = wxPyBeginBlockThreads();
538 PyObject* retval = PyList_New(0);
539 for (int x=0; x<count; x++)
540 PyList_Append(retval, PyInt_FromLong(dashes[x]));
541 wxPyEndBlockThreads(blocked);
542 return retval;
543 }
544 bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; }
545 bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; }
546
547 wxPyPen::~wxPyPen()
548 {
549 if (m_dash)
550 delete [] m_dash;
551 }
552
553 void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash)
554 {
555 if (m_dash)
556 delete [] m_dash;
557 m_dash = new wxDash[nb_dashes];
558 for (int i=0; i<nb_dashes; i++) {
559 m_dash[i] = dash[i];
560 }
561 wxPen::SetDashes(nb_dashes, m_dash);
562 }
563
564
565 #include <wx/image.h>
566
567 static char** ConvertListOfStrings(PyObject* listOfStrings) {
568 char** cArray = NULL;
569 int count;
570
571 if (!PyList_Check(listOfStrings)) {
572 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
573 return NULL;
574 }
575 count = PyList_Size(listOfStrings);
576 cArray = new char*[count];
577
578 for(int x=0; x<count; x++) {
579 // TODO: Need some validation and error checking here
580 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
581 }
582 return cArray;
583 }
584
585
586 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
587 char** cArray = NULL;
588 wxBitmap* bmp;
589
590 cArray = ConvertListOfStrings(listOfStrings);
591 if (! cArray)
592 return NULL;
593 bmp = new wxBitmap(cArray);
594 delete [] cArray;
595 return bmp;
596 }
597 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
598 char* buf;
599 int length;
600 PyString_AsStringAndSize(bits, &buf, &length);
601 return new wxBitmap(buf, width, height, depth);
602 }
603 wxBitmap *new_wxBitmap__SWIG_0(int width,int height,int depth){
604 return new wxBitmap(width, height, depth);
605 }
606 wxBitmap *new_wxBitmap__SWIG_1(wxSize const &size,int depth){
607 return new wxBitmap(size.x, size.y, depth);
608 }
609 wxSize wxBitmap_GetSize(wxBitmap *self){
610 wxSize size(self->GetWidth(), self->GetHeight());
611 return size;
612 }
613 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
614 wxMask *mask = new wxMask(*self, colour);
615 self->SetMask(mask);
616 }
617 void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
618 self->SetWidth(size.x);
619 self->SetHeight(size.y);
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 void wxRegionIterator_Next(wxRegionIterator *self){
693 (*self) ++;
694 }
695 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
696 return self->operator bool();
697 }
698
699 #include <wx/fontutil.h>
700 #include <wx/fontmap.h>
701 #include <wx/fontenum.h>
702
703 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
704 return self->ToString();
705 }
706
707 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
708 static wxNativeEncodingInfo info;
709 if ( wxGetNativeFontEncoding(encoding, &info) )
710 return &info;
711 else
712 return NULL;
713 }
714
715 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
716 wxFontEncoding alt_enc;
717 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
718 return PyInt_FromLong(alt_enc);
719 else {
720 Py_INCREF(Py_None);
721 return Py_None;
722 }
723 }
724 wxFont *new_wxFont(wxString const &info){
725 wxNativeFontInfo nfi;
726 nfi.FromString(info);
727 return new wxFont(nfi);
728 }
729 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
730 return wxFont::New(pointSize, family, flags, face, encoding);
731 }
732 bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
733 bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
734
735 class wxPyFontEnumerator : public wxFontEnumerator {
736 public:
737 wxPyFontEnumerator() {}
738 ~wxPyFontEnumerator() {}
739
740 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
741 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
742
743 PYPRIVATE;
744 };
745
746 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
747 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
748
749
750 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
751 wxArrayString* arr = self->GetEncodings();
752 return wxArrayString2PyList_helper(*arr);
753 }
754 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
755 wxArrayString* arr = self->GetFacenames();
756 return wxArrayString2PyList_helper(*arr);
757 }
758
759
760
761 #include "wx/wxPython/pydrawxxx.h"
762
763 wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
764 wxColour col;
765 self->GetPixel(x, y, &col);
766 return col;
767 }
768 wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
769 wxColour col;
770 self->GetPixel(pt, &col);
771 return col;
772 }
773
774 SWIGSTATICINLINE(double)
775 SWIG_AsDouble(PyObject *obj)
776 {
777 if (PyNumber_Check(obj))
778 return PyFloat_AsDouble(obj);
779 else {
780 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
781 obj->ob_type->tp_name);
782 PyErr_SetObject(PyExc_TypeError, errmsg);
783 Py_DECREF(errmsg);
784 return 0;
785 }
786 }
787
788
789 SWIGSTATICINLINE(int)
790 SWIG_CheckDouble(PyObject* obj)
791 {
792 SWIG_AsDouble(obj);
793 if (PyErr_Occurred()) {
794 PyErr_Clear();
795 return 0;
796 } else {
797 return 1;
798 }
799 }
800
801 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
802 wxRect rv;
803 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
804 return rv;
805 }
806 wxRect wxDC_GetClippingRect(wxDC *self){
807 wxRect rect;
808 self->GetClippingBox(rect);
809 return rect;
810 }
811 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
812 wxArrayInt widths;
813 self->GetPartialTextExtents(text, widths);
814 return widths;
815 }
816 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
817 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
818 }
819 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
820 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
821 }
822 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
823 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
824 }
825 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
826 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
827 }
828 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
829 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
830 }
831 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
832 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
833 }
834
835 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
836 *x1 = dc->MinX();
837 *y1 = dc->MinY();
838 *x2 = dc->MaxX();
839 *y2 = dc->MaxY();
840 }
841
842
843 //-=-=-=-=-=-=-=-=-=-=-
844
845 #if 1
846 // Use the standard wxBufferedDC
847 #include <wx/dcbuffer.h>
848
849 #else
850
851 // Or, temporarily put a set of classes here similar to the old buffered DC
852 // classes until the real ones can be fixed to work "correctly" again.
853
854 class wxBufferedDC : public wxMemoryDC
855 {
856 private:
857 wxDC *m_dc;
858 wxBitmap m_buffer;
859
860 public:
861
862 wxBufferedDC() : m_dc( 0 ) {}
863
864 wxBufferedDC( wxDC *dc, const wxBitmap &buffer )
865 : m_dc( dc ), m_buffer( buffer )
866 {
867 SelectObject( m_buffer );
868 }
869
870 wxBufferedDC( wxDC *dc, const wxSize &area )
871 : m_dc( dc ), m_buffer( area.GetWidth(), area.GetHeight() )
872 {
873 SelectObject( m_buffer );
874 }
875
876 ~wxBufferedDC() {
877 if( m_dc != 0 )
878 UnMask();
879 }
880
881
882 void Init( wxDC *dc, const wxBitmap &buffer ) {
883 wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap,
884 _T("wxBufferedDC already initialised") );
885 m_dc = dc;
886 m_buffer = buffer;
887 SelectObject( m_buffer );
888 }
889
890 void Init( wxDC *dc, const wxSize &area ) {
891 wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap,
892 _T("wxBufferedDC already initialised") );
893 m_dc = dc;
894 m_buffer = wxBitmap( area.GetWidth(), area.GetHeight() );
895 SelectObject( m_buffer );
896 }
897
898 void UnMask() {
899 wxASSERT_MSG( m_dc != 0, _T("No low level DC associated with buffer (anymore)") );
900 m_dc->Blit( 0, 0, m_buffer.GetWidth(), m_buffer.GetHeight(), this, 0, 0 );
901 m_dc = 0;
902 }
903 };
904
905
906 class wxBufferedPaintDC : public wxBufferedDC
907 {
908 private:
909 wxPaintDC m_paintdc;
910
911 public:
912 wxBufferedPaintDC( wxWindow *window, const wxBitmap &buffer = wxNullBitmap )
913 : m_paintdc( window )
914 {
915 window->PrepareDC( m_paintdc );
916
917 if( buffer != wxNullBitmap )
918 Init( &m_paintdc, buffer );
919 else
920 Init( &m_paintdc, window->GetClientSize() );
921 }
922
923 ~wxBufferedPaintDC() {
924 UnMask();
925 }
926 };
927
928 #endif
929 //-=-=-=-=-=-=-=-=-=-=-
930
931
932 #include <wx/dcps.h>
933
934
935 class wxMetaFile : public wxObject {
936 public:
937 wxMetaFile(const wxString&)
938 { wxPyRaiseNotImplemented(); }
939 };
940
941 class wxMetaFileDC : public wxClientDC {
942 public:
943 wxMetaFileDC(const wxString&, int, int, const wxString&)
944 { wxPyRaiseNotImplemented(); }
945 };
946
947
948
949 class wxPrinterDC : public wxClientDC {
950 public:
951 wxPrinterDC(const wxPrintData&)
952 { wxPyRaiseNotImplemented(); }
953
954 // wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int)
955 // { wxPyRaiseNotImplemented(); }
956 };
957
958
959
960 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
961 self->AddColour(name, wxColour(red, green, blue));
962 }
963
964 #include <wx/effects.h>
965
966 #ifdef __cplusplus
967 extern "C" {
968 #endif
969 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
970 PyObject *resultobj;
971 wxGDIObject *result;
972 char *kwnames[] = {
973 NULL
974 };
975
976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
977 {
978 PyThreadState* __tstate = wxPyBeginAllowThreads();
979 result = (wxGDIObject *)new wxGDIObject();
980
981 wxPyEndAllowThreads(__tstate);
982 if (PyErr_Occurred()) SWIG_fail;
983 }
984 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
985 return resultobj;
986 fail:
987 return NULL;
988 }
989
990
991 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
992 PyObject *resultobj;
993 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
994 PyObject * obj0 = 0 ;
995 char *kwnames[] = {
996 (char *) "self", NULL
997 };
998
999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
1000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1002 {
1003 PyThreadState* __tstate = wxPyBeginAllowThreads();
1004 delete arg1;
1005
1006 wxPyEndAllowThreads(__tstate);
1007 if (PyErr_Occurred()) SWIG_fail;
1008 }
1009 Py_INCREF(Py_None); resultobj = Py_None;
1010 return resultobj;
1011 fail:
1012 return NULL;
1013 }
1014
1015
1016 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1017 PyObject *resultobj;
1018 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1019 bool result;
1020 PyObject * obj0 = 0 ;
1021 char *kwnames[] = {
1022 (char *) "self", NULL
1023 };
1024
1025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
1026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1028 {
1029 PyThreadState* __tstate = wxPyBeginAllowThreads();
1030 result = (bool)(arg1)->GetVisible();
1031
1032 wxPyEndAllowThreads(__tstate);
1033 if (PyErr_Occurred()) SWIG_fail;
1034 }
1035 {
1036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1037 }
1038 return resultobj;
1039 fail:
1040 return NULL;
1041 }
1042
1043
1044 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1045 PyObject *resultobj;
1046 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1047 bool arg2 ;
1048 PyObject * obj0 = 0 ;
1049 PyObject * obj1 = 0 ;
1050 char *kwnames[] = {
1051 (char *) "self",(char *) "visible", NULL
1052 };
1053
1054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
1055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1057 arg2 = (bool) SWIG_AsBool(obj1);
1058 if (PyErr_Occurred()) SWIG_fail;
1059 {
1060 PyThreadState* __tstate = wxPyBeginAllowThreads();
1061 (arg1)->SetVisible(arg2);
1062
1063 wxPyEndAllowThreads(__tstate);
1064 if (PyErr_Occurred()) SWIG_fail;
1065 }
1066 Py_INCREF(Py_None); resultobj = Py_None;
1067 return resultobj;
1068 fail:
1069 return NULL;
1070 }
1071
1072
1073 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1074 PyObject *resultobj;
1075 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1076 bool result;
1077 PyObject * obj0 = 0 ;
1078 char *kwnames[] = {
1079 (char *) "self", NULL
1080 };
1081
1082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
1083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1085 {
1086 PyThreadState* __tstate = wxPyBeginAllowThreads();
1087 result = (bool)(arg1)->IsNull();
1088
1089 wxPyEndAllowThreads(__tstate);
1090 if (PyErr_Occurred()) SWIG_fail;
1091 }
1092 {
1093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1094 }
1095 return resultobj;
1096 fail:
1097 return NULL;
1098 }
1099
1100
1101 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
1102 PyObject *obj;
1103 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1104 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1105 Py_INCREF(obj);
1106 return Py_BuildValue((char *)"");
1107 }
1108 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1109 PyObject *resultobj;
1110 unsigned char arg1 = (unsigned char) 0 ;
1111 unsigned char arg2 = (unsigned char) 0 ;
1112 unsigned char arg3 = (unsigned char) 0 ;
1113 wxColour *result;
1114 PyObject * obj0 = 0 ;
1115 PyObject * obj1 = 0 ;
1116 PyObject * obj2 = 0 ;
1117 char *kwnames[] = {
1118 (char *) "red",(char *) "green",(char *) "blue", NULL
1119 };
1120
1121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1122 if (obj0) {
1123 arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0);
1124 if (PyErr_Occurred()) SWIG_fail;
1125 }
1126 if (obj1) {
1127 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1128 if (PyErr_Occurred()) SWIG_fail;
1129 }
1130 if (obj2) {
1131 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1132 if (PyErr_Occurred()) SWIG_fail;
1133 }
1134 {
1135 PyThreadState* __tstate = wxPyBeginAllowThreads();
1136 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1137
1138 wxPyEndAllowThreads(__tstate);
1139 if (PyErr_Occurred()) SWIG_fail;
1140 }
1141 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1142 return resultobj;
1143 fail:
1144 return NULL;
1145 }
1146
1147
1148 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1149 PyObject *resultobj;
1150 wxString *arg1 = 0 ;
1151 wxColour *result;
1152 bool temp1 = False ;
1153 PyObject * obj0 = 0 ;
1154 char *kwnames[] = {
1155 (char *) "colorName", NULL
1156 };
1157
1158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1159 {
1160 arg1 = wxString_in_helper(obj0);
1161 if (arg1 == NULL) SWIG_fail;
1162 temp1 = True;
1163 }
1164 {
1165 PyThreadState* __tstate = wxPyBeginAllowThreads();
1166 result = (wxColour *)new wxColour((wxString const &)*arg1);
1167
1168 wxPyEndAllowThreads(__tstate);
1169 if (PyErr_Occurred()) SWIG_fail;
1170 }
1171 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1172 {
1173 if (temp1)
1174 delete arg1;
1175 }
1176 return resultobj;
1177 fail:
1178 {
1179 if (temp1)
1180 delete arg1;
1181 }
1182 return NULL;
1183 }
1184
1185
1186 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1187 PyObject *resultobj;
1188 unsigned long arg1 ;
1189 wxColour *result;
1190 PyObject * obj0 = 0 ;
1191 char *kwnames[] = {
1192 (char *) "colRGB", NULL
1193 };
1194
1195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1196 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1197 if (PyErr_Occurred()) SWIG_fail;
1198 {
1199 PyThreadState* __tstate = wxPyBeginAllowThreads();
1200 result = (wxColour *)new wxColour(arg1);
1201
1202 wxPyEndAllowThreads(__tstate);
1203 if (PyErr_Occurred()) SWIG_fail;
1204 }
1205 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1206 return resultobj;
1207 fail:
1208 return NULL;
1209 }
1210
1211
1212 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1213 PyObject *resultobj;
1214 wxColour *arg1 = (wxColour *) 0 ;
1215 PyObject * obj0 = 0 ;
1216 char *kwnames[] = {
1217 (char *) "self", NULL
1218 };
1219
1220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1223 {
1224 PyThreadState* __tstate = wxPyBeginAllowThreads();
1225 delete arg1;
1226
1227 wxPyEndAllowThreads(__tstate);
1228 if (PyErr_Occurred()) SWIG_fail;
1229 }
1230 Py_INCREF(Py_None); resultobj = Py_None;
1231 return resultobj;
1232 fail:
1233 return NULL;
1234 }
1235
1236
1237 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1238 PyObject *resultobj;
1239 wxColour *arg1 = (wxColour *) 0 ;
1240 unsigned char result;
1241 PyObject * obj0 = 0 ;
1242 char *kwnames[] = {
1243 (char *) "self", NULL
1244 };
1245
1246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1249 {
1250 PyThreadState* __tstate = wxPyBeginAllowThreads();
1251 result = (unsigned char)(arg1)->Red();
1252
1253 wxPyEndAllowThreads(__tstate);
1254 if (PyErr_Occurred()) SWIG_fail;
1255 }
1256 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1257 return resultobj;
1258 fail:
1259 return NULL;
1260 }
1261
1262
1263 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1264 PyObject *resultobj;
1265 wxColour *arg1 = (wxColour *) 0 ;
1266 unsigned char result;
1267 PyObject * obj0 = 0 ;
1268 char *kwnames[] = {
1269 (char *) "self", NULL
1270 };
1271
1272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1275 {
1276 PyThreadState* __tstate = wxPyBeginAllowThreads();
1277 result = (unsigned char)(arg1)->Green();
1278
1279 wxPyEndAllowThreads(__tstate);
1280 if (PyErr_Occurred()) SWIG_fail;
1281 }
1282 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1283 return resultobj;
1284 fail:
1285 return NULL;
1286 }
1287
1288
1289 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1290 PyObject *resultobj;
1291 wxColour *arg1 = (wxColour *) 0 ;
1292 unsigned char result;
1293 PyObject * obj0 = 0 ;
1294 char *kwnames[] = {
1295 (char *) "self", NULL
1296 };
1297
1298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1301 {
1302 PyThreadState* __tstate = wxPyBeginAllowThreads();
1303 result = (unsigned char)(arg1)->Blue();
1304
1305 wxPyEndAllowThreads(__tstate);
1306 if (PyErr_Occurred()) SWIG_fail;
1307 }
1308 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1309 return resultobj;
1310 fail:
1311 return NULL;
1312 }
1313
1314
1315 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1316 PyObject *resultobj;
1317 wxColour *arg1 = (wxColour *) 0 ;
1318 bool result;
1319 PyObject * obj0 = 0 ;
1320 char *kwnames[] = {
1321 (char *) "self", NULL
1322 };
1323
1324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1327 {
1328 PyThreadState* __tstate = wxPyBeginAllowThreads();
1329 result = (bool)(arg1)->Ok();
1330
1331 wxPyEndAllowThreads(__tstate);
1332 if (PyErr_Occurred()) SWIG_fail;
1333 }
1334 {
1335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1336 }
1337 return resultobj;
1338 fail:
1339 return NULL;
1340 }
1341
1342
1343 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1344 PyObject *resultobj;
1345 wxColour *arg1 = (wxColour *) 0 ;
1346 unsigned char arg2 ;
1347 unsigned char arg3 ;
1348 unsigned char arg4 ;
1349 PyObject * obj0 = 0 ;
1350 PyObject * obj1 = 0 ;
1351 PyObject * obj2 = 0 ;
1352 PyObject * obj3 = 0 ;
1353 char *kwnames[] = {
1354 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1355 };
1356
1357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1360 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1361 if (PyErr_Occurred()) SWIG_fail;
1362 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1363 if (PyErr_Occurred()) SWIG_fail;
1364 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
1365 if (PyErr_Occurred()) SWIG_fail;
1366 {
1367 PyThreadState* __tstate = wxPyBeginAllowThreads();
1368 (arg1)->Set(arg2,arg3,arg4);
1369
1370 wxPyEndAllowThreads(__tstate);
1371 if (PyErr_Occurred()) SWIG_fail;
1372 }
1373 Py_INCREF(Py_None); resultobj = Py_None;
1374 return resultobj;
1375 fail:
1376 return NULL;
1377 }
1378
1379
1380 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1381 PyObject *resultobj;
1382 wxColour *arg1 = (wxColour *) 0 ;
1383 unsigned long arg2 ;
1384 PyObject * obj0 = 0 ;
1385 PyObject * obj1 = 0 ;
1386 char *kwnames[] = {
1387 (char *) "self",(char *) "colRGB", NULL
1388 };
1389
1390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1393 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1394 if (PyErr_Occurred()) SWIG_fail;
1395 {
1396 PyThreadState* __tstate = wxPyBeginAllowThreads();
1397 (arg1)->Set(arg2);
1398
1399 wxPyEndAllowThreads(__tstate);
1400 if (PyErr_Occurred()) SWIG_fail;
1401 }
1402 Py_INCREF(Py_None); resultobj = Py_None;
1403 return resultobj;
1404 fail:
1405 return NULL;
1406 }
1407
1408
1409 static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1410 PyObject *resultobj;
1411 wxColour *arg1 = (wxColour *) 0 ;
1412 wxString *arg2 = 0 ;
1413 bool temp2 = False ;
1414 PyObject * obj0 = 0 ;
1415 PyObject * obj1 = 0 ;
1416 char *kwnames[] = {
1417 (char *) "self",(char *) "colourName", NULL
1418 };
1419
1420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1423 {
1424 arg2 = wxString_in_helper(obj1);
1425 if (arg2 == NULL) SWIG_fail;
1426 temp2 = True;
1427 }
1428 {
1429 PyThreadState* __tstate = wxPyBeginAllowThreads();
1430 (arg1)->InitFromName((wxString const &)*arg2);
1431
1432 wxPyEndAllowThreads(__tstate);
1433 if (PyErr_Occurred()) SWIG_fail;
1434 }
1435 Py_INCREF(Py_None); resultobj = Py_None;
1436 {
1437 if (temp2)
1438 delete arg2;
1439 }
1440 return resultobj;
1441 fail:
1442 {
1443 if (temp2)
1444 delete arg2;
1445 }
1446 return NULL;
1447 }
1448
1449
1450 static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1451 PyObject *resultobj;
1452 wxColour *arg1 = (wxColour *) 0 ;
1453 long result;
1454 PyObject * obj0 = 0 ;
1455 char *kwnames[] = {
1456 (char *) "self", NULL
1457 };
1458
1459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1462 {
1463 PyThreadState* __tstate = wxPyBeginAllowThreads();
1464 result = (long)((wxColour const *)arg1)->GetPixel();
1465
1466 wxPyEndAllowThreads(__tstate);
1467 if (PyErr_Occurred()) SWIG_fail;
1468 }
1469 resultobj = SWIG_FromLong((long)result);
1470 return resultobj;
1471 fail:
1472 return NULL;
1473 }
1474
1475
1476 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1477 PyObject *resultobj;
1478 wxColour *arg1 = (wxColour *) 0 ;
1479 wxColour *arg2 = 0 ;
1480 bool result;
1481 wxColour temp2 ;
1482 PyObject * obj0 = 0 ;
1483 PyObject * obj1 = 0 ;
1484 char *kwnames[] = {
1485 (char *) "self",(char *) "colour", NULL
1486 };
1487
1488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1491 {
1492 arg2 = &temp2;
1493 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1494 }
1495 {
1496 PyThreadState* __tstate = wxPyBeginAllowThreads();
1497 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1498
1499 wxPyEndAllowThreads(__tstate);
1500 if (PyErr_Occurred()) SWIG_fail;
1501 }
1502 {
1503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1504 }
1505 return resultobj;
1506 fail:
1507 return NULL;
1508 }
1509
1510
1511 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1512 PyObject *resultobj;
1513 wxColour *arg1 = (wxColour *) 0 ;
1514 wxColour *arg2 = 0 ;
1515 bool result;
1516 wxColour temp2 ;
1517 PyObject * obj0 = 0 ;
1518 PyObject * obj1 = 0 ;
1519 char *kwnames[] = {
1520 (char *) "self",(char *) "colour", NULL
1521 };
1522
1523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1526 {
1527 arg2 = &temp2;
1528 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1529 }
1530 {
1531 PyThreadState* __tstate = wxPyBeginAllowThreads();
1532 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1533
1534 wxPyEndAllowThreads(__tstate);
1535 if (PyErr_Occurred()) SWIG_fail;
1536 }
1537 {
1538 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1539 }
1540 return resultobj;
1541 fail:
1542 return NULL;
1543 }
1544
1545
1546 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1547 PyObject *resultobj;
1548 wxColour *arg1 = (wxColour *) 0 ;
1549 PyObject *result;
1550 PyObject * obj0 = 0 ;
1551 char *kwnames[] = {
1552 (char *) "self", NULL
1553 };
1554
1555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1558 {
1559 PyThreadState* __tstate = wxPyBeginAllowThreads();
1560 result = (PyObject *)wxColour_Get(arg1);
1561
1562 wxPyEndAllowThreads(__tstate);
1563 if (PyErr_Occurred()) SWIG_fail;
1564 }
1565 resultobj = result;
1566 return resultobj;
1567 fail:
1568 return NULL;
1569 }
1570
1571
1572 static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1573 PyObject *resultobj;
1574 wxColour *arg1 = (wxColour *) 0 ;
1575 unsigned long result;
1576 PyObject * obj0 = 0 ;
1577 char *kwnames[] = {
1578 (char *) "self", NULL
1579 };
1580
1581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1584 {
1585 PyThreadState* __tstate = wxPyBeginAllowThreads();
1586 result = (unsigned long)wxColour_GetRGB(arg1);
1587
1588 wxPyEndAllowThreads(__tstate);
1589 if (PyErr_Occurred()) SWIG_fail;
1590 }
1591 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
1592 return resultobj;
1593 fail:
1594 return NULL;
1595 }
1596
1597
1598 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1599 PyObject *obj;
1600 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1601 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1602 Py_INCREF(obj);
1603 return Py_BuildValue((char *)"");
1604 }
1605 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1606 PyObject *resultobj;
1607 int arg1 ;
1608 unsigned char *arg2 = (unsigned char *) 0 ;
1609 unsigned char *arg3 = (unsigned char *) 0 ;
1610 unsigned char *arg4 = (unsigned char *) 0 ;
1611 wxPalette *result;
1612 PyObject * obj0 = 0 ;
1613 PyObject * obj1 = 0 ;
1614 PyObject * obj2 = 0 ;
1615 PyObject * obj3 = 0 ;
1616 char *kwnames[] = {
1617 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1618 };
1619
1620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1621 arg1 = (int) SWIG_AsInt(obj0);
1622 if (PyErr_Occurred()) SWIG_fail;
1623 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1625 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1627 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1629 {
1630 PyThreadState* __tstate = wxPyBeginAllowThreads();
1631 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1632
1633 wxPyEndAllowThreads(__tstate);
1634 if (PyErr_Occurred()) SWIG_fail;
1635 }
1636 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1637 return resultobj;
1638 fail:
1639 return NULL;
1640 }
1641
1642
1643 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1644 PyObject *resultobj;
1645 wxPalette *arg1 = (wxPalette *) 0 ;
1646 PyObject * obj0 = 0 ;
1647 char *kwnames[] = {
1648 (char *) "self", NULL
1649 };
1650
1651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1654 {
1655 PyThreadState* __tstate = wxPyBeginAllowThreads();
1656 delete arg1;
1657
1658 wxPyEndAllowThreads(__tstate);
1659 if (PyErr_Occurred()) SWIG_fail;
1660 }
1661 Py_INCREF(Py_None); resultobj = Py_None;
1662 return resultobj;
1663 fail:
1664 return NULL;
1665 }
1666
1667
1668 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1669 PyObject *resultobj;
1670 wxPalette *arg1 = (wxPalette *) 0 ;
1671 byte arg2 ;
1672 byte arg3 ;
1673 byte arg4 ;
1674 int result;
1675 PyObject * obj0 = 0 ;
1676 PyObject * obj1 = 0 ;
1677 PyObject * obj2 = 0 ;
1678 PyObject * obj3 = 0 ;
1679 char *kwnames[] = {
1680 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1681 };
1682
1683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1686 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1687 if (PyErr_Occurred()) SWIG_fail;
1688 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1689 if (PyErr_Occurred()) SWIG_fail;
1690 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1691 if (PyErr_Occurred()) SWIG_fail;
1692 {
1693 PyThreadState* __tstate = wxPyBeginAllowThreads();
1694 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1695
1696 wxPyEndAllowThreads(__tstate);
1697 if (PyErr_Occurred()) SWIG_fail;
1698 }
1699 resultobj = SWIG_FromInt((int)result);
1700 return resultobj;
1701 fail:
1702 return NULL;
1703 }
1704
1705
1706 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1707 PyObject *resultobj;
1708 wxPalette *arg1 = (wxPalette *) 0 ;
1709 int arg2 ;
1710 byte *arg3 = (byte *) 0 ;
1711 byte *arg4 = (byte *) 0 ;
1712 byte *arg5 = (byte *) 0 ;
1713 bool result;
1714 byte temp3 ;
1715 byte temp4 ;
1716 byte temp5 ;
1717 PyObject * obj0 = 0 ;
1718 PyObject * obj1 = 0 ;
1719 char *kwnames[] = {
1720 (char *) "self",(char *) "pixel", NULL
1721 };
1722
1723 arg3 = &temp3;
1724 arg4 = &temp4;
1725 arg5 = &temp5;
1726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1729 arg2 = (int) SWIG_AsInt(obj1);
1730 if (PyErr_Occurred()) SWIG_fail;
1731 {
1732 PyThreadState* __tstate = wxPyBeginAllowThreads();
1733 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1734
1735 wxPyEndAllowThreads(__tstate);
1736 if (PyErr_Occurred()) SWIG_fail;
1737 }
1738 {
1739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1740 }
1741 {
1742 PyObject *o = PyInt_FromLong((long) (*arg3));
1743 resultobj = t_output_helper(resultobj,o);
1744 }
1745 {
1746 PyObject *o = PyInt_FromLong((long) (*arg4));
1747 resultobj = t_output_helper(resultobj,o);
1748 }
1749 {
1750 PyObject *o = PyInt_FromLong((long) (*arg5));
1751 resultobj = t_output_helper(resultobj,o);
1752 }
1753 return resultobj;
1754 fail:
1755 return NULL;
1756 }
1757
1758
1759 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1760 PyObject *resultobj;
1761 wxPalette *arg1 = (wxPalette *) 0 ;
1762 bool result;
1763 PyObject * obj0 = 0 ;
1764 char *kwnames[] = {
1765 (char *) "self", NULL
1766 };
1767
1768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1771 {
1772 PyThreadState* __tstate = wxPyBeginAllowThreads();
1773 result = (bool)(arg1)->Ok();
1774
1775 wxPyEndAllowThreads(__tstate);
1776 if (PyErr_Occurred()) SWIG_fail;
1777 }
1778 {
1779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1780 }
1781 return resultobj;
1782 fail:
1783 return NULL;
1784 }
1785
1786
1787 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1788 PyObject *obj;
1789 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1790 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1791 Py_INCREF(obj);
1792 return Py_BuildValue((char *)"");
1793 }
1794 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1795 PyObject *resultobj;
1796 wxColour *arg1 = 0 ;
1797 int arg2 = (int) 1 ;
1798 int arg3 = (int) wxSOLID ;
1799 wxPen *result;
1800 wxColour temp1 ;
1801 PyObject * obj0 = 0 ;
1802 PyObject * obj1 = 0 ;
1803 PyObject * obj2 = 0 ;
1804 char *kwnames[] = {
1805 (char *) "colour",(char *) "width",(char *) "style", NULL
1806 };
1807
1808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1809 {
1810 arg1 = &temp1;
1811 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1812 }
1813 if (obj1) {
1814 arg2 = (int) SWIG_AsInt(obj1);
1815 if (PyErr_Occurred()) SWIG_fail;
1816 }
1817 if (obj2) {
1818 arg3 = (int) SWIG_AsInt(obj2);
1819 if (PyErr_Occurred()) SWIG_fail;
1820 }
1821 {
1822 PyThreadState* __tstate = wxPyBeginAllowThreads();
1823 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1824
1825 wxPyEndAllowThreads(__tstate);
1826 if (PyErr_Occurred()) SWIG_fail;
1827 }
1828 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1829 return resultobj;
1830 fail:
1831 return NULL;
1832 }
1833
1834
1835 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1836 PyObject *resultobj;
1837 wxPen *arg1 = (wxPen *) 0 ;
1838 PyObject * obj0 = 0 ;
1839 char *kwnames[] = {
1840 (char *) "self", NULL
1841 };
1842
1843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1846 {
1847 PyThreadState* __tstate = wxPyBeginAllowThreads();
1848 delete arg1;
1849
1850 wxPyEndAllowThreads(__tstate);
1851 if (PyErr_Occurred()) SWIG_fail;
1852 }
1853 Py_INCREF(Py_None); resultobj = Py_None;
1854 return resultobj;
1855 fail:
1856 return NULL;
1857 }
1858
1859
1860 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1861 PyObject *resultobj;
1862 wxPen *arg1 = (wxPen *) 0 ;
1863 int result;
1864 PyObject * obj0 = 0 ;
1865 char *kwnames[] = {
1866 (char *) "self", NULL
1867 };
1868
1869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1872 {
1873 PyThreadState* __tstate = wxPyBeginAllowThreads();
1874 result = (int)(arg1)->GetCap();
1875
1876 wxPyEndAllowThreads(__tstate);
1877 if (PyErr_Occurred()) SWIG_fail;
1878 }
1879 resultobj = SWIG_FromInt((int)result);
1880 return resultobj;
1881 fail:
1882 return NULL;
1883 }
1884
1885
1886 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1887 PyObject *resultobj;
1888 wxPen *arg1 = (wxPen *) 0 ;
1889 wxColour result;
1890 PyObject * obj0 = 0 ;
1891 char *kwnames[] = {
1892 (char *) "self", NULL
1893 };
1894
1895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1898 {
1899 PyThreadState* __tstate = wxPyBeginAllowThreads();
1900 result = (arg1)->GetColour();
1901
1902 wxPyEndAllowThreads(__tstate);
1903 if (PyErr_Occurred()) SWIG_fail;
1904 }
1905 {
1906 wxColour * resultptr;
1907 resultptr = new wxColour((wxColour &) result);
1908 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1909 }
1910 return resultobj;
1911 fail:
1912 return NULL;
1913 }
1914
1915
1916 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1917 PyObject *resultobj;
1918 wxPen *arg1 = (wxPen *) 0 ;
1919 int result;
1920 PyObject * obj0 = 0 ;
1921 char *kwnames[] = {
1922 (char *) "self", NULL
1923 };
1924
1925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1928 {
1929 PyThreadState* __tstate = wxPyBeginAllowThreads();
1930 result = (int)(arg1)->GetJoin();
1931
1932 wxPyEndAllowThreads(__tstate);
1933 if (PyErr_Occurred()) SWIG_fail;
1934 }
1935 resultobj = SWIG_FromInt((int)result);
1936 return resultobj;
1937 fail:
1938 return NULL;
1939 }
1940
1941
1942 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1943 PyObject *resultobj;
1944 wxPen *arg1 = (wxPen *) 0 ;
1945 int result;
1946 PyObject * obj0 = 0 ;
1947 char *kwnames[] = {
1948 (char *) "self", NULL
1949 };
1950
1951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1954 {
1955 PyThreadState* __tstate = wxPyBeginAllowThreads();
1956 result = (int)(arg1)->GetStyle();
1957
1958 wxPyEndAllowThreads(__tstate);
1959 if (PyErr_Occurred()) SWIG_fail;
1960 }
1961 resultobj = SWIG_FromInt((int)result);
1962 return resultobj;
1963 fail:
1964 return NULL;
1965 }
1966
1967
1968 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1969 PyObject *resultobj;
1970 wxPen *arg1 = (wxPen *) 0 ;
1971 int result;
1972 PyObject * obj0 = 0 ;
1973 char *kwnames[] = {
1974 (char *) "self", NULL
1975 };
1976
1977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1980 {
1981 PyThreadState* __tstate = wxPyBeginAllowThreads();
1982 result = (int)(arg1)->GetWidth();
1983
1984 wxPyEndAllowThreads(__tstate);
1985 if (PyErr_Occurred()) SWIG_fail;
1986 }
1987 resultobj = SWIG_FromInt((int)result);
1988 return resultobj;
1989 fail:
1990 return NULL;
1991 }
1992
1993
1994 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1995 PyObject *resultobj;
1996 wxPen *arg1 = (wxPen *) 0 ;
1997 bool result;
1998 PyObject * obj0 = 0 ;
1999 char *kwnames[] = {
2000 (char *) "self", NULL
2001 };
2002
2003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
2004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2006 {
2007 PyThreadState* __tstate = wxPyBeginAllowThreads();
2008 result = (bool)(arg1)->Ok();
2009
2010 wxPyEndAllowThreads(__tstate);
2011 if (PyErr_Occurred()) SWIG_fail;
2012 }
2013 {
2014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2015 }
2016 return resultobj;
2017 fail:
2018 return NULL;
2019 }
2020
2021
2022 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
2023 PyObject *resultobj;
2024 wxPen *arg1 = (wxPen *) 0 ;
2025 int arg2 ;
2026 PyObject * obj0 = 0 ;
2027 PyObject * obj1 = 0 ;
2028 char *kwnames[] = {
2029 (char *) "self",(char *) "cap_style", NULL
2030 };
2031
2032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
2033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2035 arg2 = (int) SWIG_AsInt(obj1);
2036 if (PyErr_Occurred()) SWIG_fail;
2037 {
2038 PyThreadState* __tstate = wxPyBeginAllowThreads();
2039 (arg1)->SetCap(arg2);
2040
2041 wxPyEndAllowThreads(__tstate);
2042 if (PyErr_Occurred()) SWIG_fail;
2043 }
2044 Py_INCREF(Py_None); resultobj = Py_None;
2045 return resultobj;
2046 fail:
2047 return NULL;
2048 }
2049
2050
2051 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2052 PyObject *resultobj;
2053 wxPen *arg1 = (wxPen *) 0 ;
2054 wxColour *arg2 = 0 ;
2055 wxColour temp2 ;
2056 PyObject * obj0 = 0 ;
2057 PyObject * obj1 = 0 ;
2058 char *kwnames[] = {
2059 (char *) "self",(char *) "colour", NULL
2060 };
2061
2062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
2063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2065 {
2066 arg2 = &temp2;
2067 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2068 }
2069 {
2070 PyThreadState* __tstate = wxPyBeginAllowThreads();
2071 (arg1)->SetColour(*arg2);
2072
2073 wxPyEndAllowThreads(__tstate);
2074 if (PyErr_Occurred()) SWIG_fail;
2075 }
2076 Py_INCREF(Py_None); resultobj = Py_None;
2077 return resultobj;
2078 fail:
2079 return NULL;
2080 }
2081
2082
2083 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
2084 PyObject *resultobj;
2085 wxPen *arg1 = (wxPen *) 0 ;
2086 int arg2 ;
2087 PyObject * obj0 = 0 ;
2088 PyObject * obj1 = 0 ;
2089 char *kwnames[] = {
2090 (char *) "self",(char *) "join_style", NULL
2091 };
2092
2093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2096 arg2 = (int) SWIG_AsInt(obj1);
2097 if (PyErr_Occurred()) SWIG_fail;
2098 {
2099 PyThreadState* __tstate = wxPyBeginAllowThreads();
2100 (arg1)->SetJoin(arg2);
2101
2102 wxPyEndAllowThreads(__tstate);
2103 if (PyErr_Occurred()) SWIG_fail;
2104 }
2105 Py_INCREF(Py_None); resultobj = Py_None;
2106 return resultobj;
2107 fail:
2108 return NULL;
2109 }
2110
2111
2112 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2113 PyObject *resultobj;
2114 wxPen *arg1 = (wxPen *) 0 ;
2115 int arg2 ;
2116 PyObject * obj0 = 0 ;
2117 PyObject * obj1 = 0 ;
2118 char *kwnames[] = {
2119 (char *) "self",(char *) "style", NULL
2120 };
2121
2122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2125 arg2 = (int) SWIG_AsInt(obj1);
2126 if (PyErr_Occurred()) SWIG_fail;
2127 {
2128 PyThreadState* __tstate = wxPyBeginAllowThreads();
2129 (arg1)->SetStyle(arg2);
2130
2131 wxPyEndAllowThreads(__tstate);
2132 if (PyErr_Occurred()) SWIG_fail;
2133 }
2134 Py_INCREF(Py_None); resultobj = Py_None;
2135 return resultobj;
2136 fail:
2137 return NULL;
2138 }
2139
2140
2141 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2142 PyObject *resultobj;
2143 wxPen *arg1 = (wxPen *) 0 ;
2144 int arg2 ;
2145 PyObject * obj0 = 0 ;
2146 PyObject * obj1 = 0 ;
2147 char *kwnames[] = {
2148 (char *) "self",(char *) "width", NULL
2149 };
2150
2151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2154 arg2 = (int) SWIG_AsInt(obj1);
2155 if (PyErr_Occurred()) SWIG_fail;
2156 {
2157 PyThreadState* __tstate = wxPyBeginAllowThreads();
2158 (arg1)->SetWidth(arg2);
2159
2160 wxPyEndAllowThreads(__tstate);
2161 if (PyErr_Occurred()) SWIG_fail;
2162 }
2163 Py_INCREF(Py_None); resultobj = Py_None;
2164 return resultobj;
2165 fail:
2166 return NULL;
2167 }
2168
2169
2170 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2171 PyObject *resultobj;
2172 wxPen *arg1 = (wxPen *) 0 ;
2173 int arg2 ;
2174 wxDash *arg3 = (wxDash *) 0 ;
2175 PyObject * obj0 = 0 ;
2176 PyObject * obj1 = 0 ;
2177 char *kwnames[] = {
2178 (char *) "self",(char *) "dashes", NULL
2179 };
2180
2181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2184 {
2185 arg2 = PyList_Size(obj1);
2186 arg3 = (wxDash*)byte_LIST_helper(obj1);
2187 if (arg3 == NULL) SWIG_fail;
2188 }
2189 {
2190 PyThreadState* __tstate = wxPyBeginAllowThreads();
2191 (arg1)->SetDashes(arg2,arg3);
2192
2193 wxPyEndAllowThreads(__tstate);
2194 if (PyErr_Occurred()) SWIG_fail;
2195 }
2196 Py_INCREF(Py_None); resultobj = Py_None;
2197 {
2198 if (arg3) delete [] arg3;
2199 }
2200 return resultobj;
2201 fail:
2202 {
2203 if (arg3) delete [] arg3;
2204 }
2205 return NULL;
2206 }
2207
2208
2209 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2210 PyObject *resultobj;
2211 wxPen *arg1 = (wxPen *) 0 ;
2212 PyObject *result;
2213 PyObject * obj0 = 0 ;
2214 char *kwnames[] = {
2215 (char *) "self", NULL
2216 };
2217
2218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2221 {
2222 PyThreadState* __tstate = wxPyBeginAllowThreads();
2223 result = (PyObject *)wxPen_GetDashes(arg1);
2224
2225 wxPyEndAllowThreads(__tstate);
2226 if (PyErr_Occurred()) SWIG_fail;
2227 }
2228 resultobj = result;
2229 return resultobj;
2230 fail:
2231 return NULL;
2232 }
2233
2234
2235 static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2236 PyObject *resultobj;
2237 wxPen *arg1 = (wxPen *) 0 ;
2238 wxPen *arg2 = (wxPen *) 0 ;
2239 bool result;
2240 PyObject * obj0 = 0 ;
2241 PyObject * obj1 = 0 ;
2242 char *kwnames[] = {
2243 (char *) "self",(char *) "other", NULL
2244 };
2245
2246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2249 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2251 {
2252 PyThreadState* __tstate = wxPyBeginAllowThreads();
2253 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2254
2255 wxPyEndAllowThreads(__tstate);
2256 if (PyErr_Occurred()) SWIG_fail;
2257 }
2258 {
2259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2260 }
2261 return resultobj;
2262 fail:
2263 return NULL;
2264 }
2265
2266
2267 static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2268 PyObject *resultobj;
2269 wxPen *arg1 = (wxPen *) 0 ;
2270 wxPen *arg2 = (wxPen *) 0 ;
2271 bool result;
2272 PyObject * obj0 = 0 ;
2273 PyObject * obj1 = 0 ;
2274 char *kwnames[] = {
2275 (char *) "self",(char *) "other", NULL
2276 };
2277
2278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2281 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2283 {
2284 PyThreadState* __tstate = wxPyBeginAllowThreads();
2285 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2286
2287 wxPyEndAllowThreads(__tstate);
2288 if (PyErr_Occurred()) SWIG_fail;
2289 }
2290 {
2291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2292 }
2293 return resultobj;
2294 fail:
2295 return NULL;
2296 }
2297
2298
2299 static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
2300 PyObject *resultobj;
2301 wxPen *arg1 = (wxPen *) 0 ;
2302 int result;
2303 PyObject * obj0 = 0 ;
2304 char *kwnames[] = {
2305 (char *) "self", NULL
2306 };
2307
2308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
2309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2311 {
2312 PyThreadState* __tstate = wxPyBeginAllowThreads();
2313 result = (int)((wxPen const *)arg1)->GetDashCount();
2314
2315 wxPyEndAllowThreads(__tstate);
2316 if (PyErr_Occurred()) SWIG_fail;
2317 }
2318 resultobj = SWIG_FromInt((int)result);
2319 return resultobj;
2320 fail:
2321 return NULL;
2322 }
2323
2324
2325 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
2326 PyObject *obj;
2327 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2328 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2329 Py_INCREF(obj);
2330 return Py_BuildValue((char *)"");
2331 }
2332 static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2333 PyObject *resultobj;
2334 wxColour *arg1 = 0 ;
2335 int arg2 = (int) 1 ;
2336 int arg3 = (int) wxSOLID ;
2337 wxPyPen *result;
2338 wxColour temp1 ;
2339 PyObject * obj0 = 0 ;
2340 PyObject * obj1 = 0 ;
2341 PyObject * obj2 = 0 ;
2342 char *kwnames[] = {
2343 (char *) "colour",(char *) "width",(char *) "style", NULL
2344 };
2345
2346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail;
2347 {
2348 arg1 = &temp1;
2349 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2350 }
2351 if (obj1) {
2352 arg2 = (int) SWIG_AsInt(obj1);
2353 if (PyErr_Occurred()) SWIG_fail;
2354 }
2355 if (obj2) {
2356 arg3 = (int) SWIG_AsInt(obj2);
2357 if (PyErr_Occurred()) SWIG_fail;
2358 }
2359 {
2360 PyThreadState* __tstate = wxPyBeginAllowThreads();
2361 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
2362
2363 wxPyEndAllowThreads(__tstate);
2364 if (PyErr_Occurred()) SWIG_fail;
2365 }
2366 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPen, 1);
2367 return resultobj;
2368 fail:
2369 return NULL;
2370 }
2371
2372
2373 static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2374 PyObject *resultobj;
2375 wxPyPen *arg1 = (wxPyPen *) 0 ;
2376 PyObject * obj0 = 0 ;
2377 char *kwnames[] = {
2378 (char *) "self", NULL
2379 };
2380
2381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
2382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2384 {
2385 PyThreadState* __tstate = wxPyBeginAllowThreads();
2386 delete arg1;
2387
2388 wxPyEndAllowThreads(__tstate);
2389 if (PyErr_Occurred()) SWIG_fail;
2390 }
2391 Py_INCREF(Py_None); resultobj = Py_None;
2392 return resultobj;
2393 fail:
2394 return NULL;
2395 }
2396
2397
2398 static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2399 PyObject *resultobj;
2400 wxPyPen *arg1 = (wxPyPen *) 0 ;
2401 int arg2 ;
2402 wxDash *arg3 = (wxDash *) 0 ;
2403 PyObject * obj0 = 0 ;
2404 PyObject * obj1 = 0 ;
2405 char *kwnames[] = {
2406 (char *) "self",(char *) "dashes", NULL
2407 };
2408
2409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2412 {
2413 arg2 = PyList_Size(obj1);
2414 arg3 = (wxDash*)byte_LIST_helper(obj1);
2415 if (arg3 == NULL) SWIG_fail;
2416 }
2417 {
2418 PyThreadState* __tstate = wxPyBeginAllowThreads();
2419 (arg1)->SetDashes(arg2,arg3);
2420
2421 wxPyEndAllowThreads(__tstate);
2422 if (PyErr_Occurred()) SWIG_fail;
2423 }
2424 Py_INCREF(Py_None); resultobj = Py_None;
2425 {
2426 if (arg3) delete [] arg3;
2427 }
2428 return resultobj;
2429 fail:
2430 {
2431 if (arg3) delete [] arg3;
2432 }
2433 return NULL;
2434 }
2435
2436
2437 static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
2438 PyObject *obj;
2439 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2440 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
2441 Py_INCREF(obj);
2442 return Py_BuildValue((char *)"");
2443 }
2444 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2445 PyObject *resultobj;
2446 wxColour *arg1 = 0 ;
2447 int arg2 = (int) wxSOLID ;
2448 wxBrush *result;
2449 wxColour temp1 ;
2450 PyObject * obj0 = 0 ;
2451 PyObject * obj1 = 0 ;
2452 char *kwnames[] = {
2453 (char *) "colour",(char *) "style", NULL
2454 };
2455
2456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2457 {
2458 arg1 = &temp1;
2459 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2460 }
2461 if (obj1) {
2462 arg2 = (int) SWIG_AsInt(obj1);
2463 if (PyErr_Occurred()) SWIG_fail;
2464 }
2465 {
2466 PyThreadState* __tstate = wxPyBeginAllowThreads();
2467 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2468
2469 wxPyEndAllowThreads(__tstate);
2470 if (PyErr_Occurred()) SWIG_fail;
2471 }
2472 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2473 return resultobj;
2474 fail:
2475 return NULL;
2476 }
2477
2478
2479 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2480 PyObject *resultobj;
2481 wxBrush *arg1 = (wxBrush *) 0 ;
2482 PyObject * obj0 = 0 ;
2483 char *kwnames[] = {
2484 (char *) "self", NULL
2485 };
2486
2487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2490 {
2491 PyThreadState* __tstate = wxPyBeginAllowThreads();
2492 delete arg1;
2493
2494 wxPyEndAllowThreads(__tstate);
2495 if (PyErr_Occurred()) SWIG_fail;
2496 }
2497 Py_INCREF(Py_None); resultobj = Py_None;
2498 return resultobj;
2499 fail:
2500 return NULL;
2501 }
2502
2503
2504 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2505 PyObject *resultobj;
2506 wxBrush *arg1 = (wxBrush *) 0 ;
2507 wxColour *arg2 = 0 ;
2508 wxColour temp2 ;
2509 PyObject * obj0 = 0 ;
2510 PyObject * obj1 = 0 ;
2511 char *kwnames[] = {
2512 (char *) "self",(char *) "col", NULL
2513 };
2514
2515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2518 {
2519 arg2 = &temp2;
2520 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2521 }
2522 {
2523 PyThreadState* __tstate = wxPyBeginAllowThreads();
2524 (arg1)->SetColour((wxColour const &)*arg2);
2525
2526 wxPyEndAllowThreads(__tstate);
2527 if (PyErr_Occurred()) SWIG_fail;
2528 }
2529 Py_INCREF(Py_None); resultobj = Py_None;
2530 return resultobj;
2531 fail:
2532 return NULL;
2533 }
2534
2535
2536 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2537 PyObject *resultobj;
2538 wxBrush *arg1 = (wxBrush *) 0 ;
2539 int arg2 ;
2540 PyObject * obj0 = 0 ;
2541 PyObject * obj1 = 0 ;
2542 char *kwnames[] = {
2543 (char *) "self",(char *) "style", NULL
2544 };
2545
2546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2549 arg2 = (int) SWIG_AsInt(obj1);
2550 if (PyErr_Occurred()) SWIG_fail;
2551 {
2552 PyThreadState* __tstate = wxPyBeginAllowThreads();
2553 (arg1)->SetStyle(arg2);
2554
2555 wxPyEndAllowThreads(__tstate);
2556 if (PyErr_Occurred()) SWIG_fail;
2557 }
2558 Py_INCREF(Py_None); resultobj = Py_None;
2559 return resultobj;
2560 fail:
2561 return NULL;
2562 }
2563
2564
2565 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2566 PyObject *resultobj;
2567 wxBrush *arg1 = (wxBrush *) 0 ;
2568 wxBitmap *arg2 = 0 ;
2569 PyObject * obj0 = 0 ;
2570 PyObject * obj1 = 0 ;
2571 char *kwnames[] = {
2572 (char *) "self",(char *) "stipple", NULL
2573 };
2574
2575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2578 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2579 SWIG_POINTER_EXCEPTION | 0)) == -1)
2580 SWIG_fail;
2581 if (arg2 == NULL) {
2582 PyErr_SetString(PyExc_TypeError,"null reference");
2583 SWIG_fail;
2584 }
2585 {
2586 PyThreadState* __tstate = wxPyBeginAllowThreads();
2587 (arg1)->SetStipple((wxBitmap const &)*arg2);
2588
2589 wxPyEndAllowThreads(__tstate);
2590 if (PyErr_Occurred()) SWIG_fail;
2591 }
2592 Py_INCREF(Py_None); resultobj = Py_None;
2593 return resultobj;
2594 fail:
2595 return NULL;
2596 }
2597
2598
2599 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2600 PyObject *resultobj;
2601 wxBrush *arg1 = (wxBrush *) 0 ;
2602 wxColour result;
2603 PyObject * obj0 = 0 ;
2604 char *kwnames[] = {
2605 (char *) "self", NULL
2606 };
2607
2608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2611 {
2612 PyThreadState* __tstate = wxPyBeginAllowThreads();
2613 result = ((wxBrush const *)arg1)->GetColour();
2614
2615 wxPyEndAllowThreads(__tstate);
2616 if (PyErr_Occurred()) SWIG_fail;
2617 }
2618 {
2619 wxColour * resultptr;
2620 resultptr = new wxColour((wxColour &) result);
2621 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2622 }
2623 return resultobj;
2624 fail:
2625 return NULL;
2626 }
2627
2628
2629 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2630 PyObject *resultobj;
2631 wxBrush *arg1 = (wxBrush *) 0 ;
2632 int result;
2633 PyObject * obj0 = 0 ;
2634 char *kwnames[] = {
2635 (char *) "self", NULL
2636 };
2637
2638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2641 {
2642 PyThreadState* __tstate = wxPyBeginAllowThreads();
2643 result = (int)((wxBrush const *)arg1)->GetStyle();
2644
2645 wxPyEndAllowThreads(__tstate);
2646 if (PyErr_Occurred()) SWIG_fail;
2647 }
2648 resultobj = SWIG_FromInt((int)result);
2649 return resultobj;
2650 fail:
2651 return NULL;
2652 }
2653
2654
2655 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2656 PyObject *resultobj;
2657 wxBrush *arg1 = (wxBrush *) 0 ;
2658 wxBitmap *result;
2659 PyObject * obj0 = 0 ;
2660 char *kwnames[] = {
2661 (char *) "self", NULL
2662 };
2663
2664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2667 {
2668 PyThreadState* __tstate = wxPyBeginAllowThreads();
2669 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2670
2671 wxPyEndAllowThreads(__tstate);
2672 if (PyErr_Occurred()) SWIG_fail;
2673 }
2674 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2675 return resultobj;
2676 fail:
2677 return NULL;
2678 }
2679
2680
2681 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2682 PyObject *resultobj;
2683 wxBrush *arg1 = (wxBrush *) 0 ;
2684 bool result;
2685 PyObject * obj0 = 0 ;
2686 char *kwnames[] = {
2687 (char *) "self", NULL
2688 };
2689
2690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2693 {
2694 PyThreadState* __tstate = wxPyBeginAllowThreads();
2695 result = (bool)(arg1)->Ok();
2696
2697 wxPyEndAllowThreads(__tstate);
2698 if (PyErr_Occurred()) SWIG_fail;
2699 }
2700 {
2701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2702 }
2703 return resultobj;
2704 fail:
2705 return NULL;
2706 }
2707
2708
2709 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2710 PyObject *obj;
2711 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2712 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2713 Py_INCREF(obj);
2714 return Py_BuildValue((char *)"");
2715 }
2716 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2717 PyObject *resultobj;
2718 wxString *arg1 = 0 ;
2719 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2720 wxBitmap *result;
2721 bool temp1 = False ;
2722 PyObject * obj0 = 0 ;
2723 PyObject * obj1 = 0 ;
2724 char *kwnames[] = {
2725 (char *) "name",(char *) "type", NULL
2726 };
2727
2728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2729 {
2730 arg1 = wxString_in_helper(obj0);
2731 if (arg1 == NULL) SWIG_fail;
2732 temp1 = True;
2733 }
2734 if (obj1) {
2735 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2736 if (PyErr_Occurred()) SWIG_fail;
2737 }
2738 {
2739 PyThreadState* __tstate = wxPyBeginAllowThreads();
2740 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2741
2742 wxPyEndAllowThreads(__tstate);
2743 if (PyErr_Occurred()) SWIG_fail;
2744 }
2745 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2746 {
2747 if (temp1)
2748 delete arg1;
2749 }
2750 return resultobj;
2751 fail:
2752 {
2753 if (temp1)
2754 delete arg1;
2755 }
2756 return NULL;
2757 }
2758
2759
2760 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2761 PyObject *resultobj;
2762 wxBitmap *arg1 = (wxBitmap *) 0 ;
2763 PyObject * obj0 = 0 ;
2764 char *kwnames[] = {
2765 (char *) "self", NULL
2766 };
2767
2768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2771 {
2772 PyThreadState* __tstate = wxPyBeginAllowThreads();
2773 delete arg1;
2774
2775 wxPyEndAllowThreads(__tstate);
2776 if (PyErr_Occurred()) SWIG_fail;
2777 }
2778 Py_INCREF(Py_None); resultobj = Py_None;
2779 return resultobj;
2780 fail:
2781 return NULL;
2782 }
2783
2784
2785 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2786 PyObject *resultobj;
2787 wxIcon *arg1 = 0 ;
2788 wxBitmap *result;
2789 PyObject * obj0 = 0 ;
2790 char *kwnames[] = {
2791 (char *) "icon", NULL
2792 };
2793
2794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2796 SWIG_POINTER_EXCEPTION | 0)) == -1)
2797 SWIG_fail;
2798 if (arg1 == NULL) {
2799 PyErr_SetString(PyExc_TypeError,"null reference");
2800 SWIG_fail;
2801 }
2802 {
2803 PyThreadState* __tstate = wxPyBeginAllowThreads();
2804 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2805
2806 wxPyEndAllowThreads(__tstate);
2807 if (PyErr_Occurred()) SWIG_fail;
2808 }
2809 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2810 return resultobj;
2811 fail:
2812 return NULL;
2813 }
2814
2815
2816 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2817 PyObject *resultobj;
2818 wxImage *arg1 = 0 ;
2819 int arg2 = (int) -1 ;
2820 wxBitmap *result;
2821 PyObject * obj0 = 0 ;
2822 PyObject * obj1 = 0 ;
2823 char *kwnames[] = {
2824 (char *) "image",(char *) "depth", NULL
2825 };
2826
2827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2829 SWIG_POINTER_EXCEPTION | 0)) == -1)
2830 SWIG_fail;
2831 if (arg1 == NULL) {
2832 PyErr_SetString(PyExc_TypeError,"null reference");
2833 SWIG_fail;
2834 }
2835 if (obj1) {
2836 arg2 = (int) SWIG_AsInt(obj1);
2837 if (PyErr_Occurred()) SWIG_fail;
2838 }
2839 {
2840 PyThreadState* __tstate = wxPyBeginAllowThreads();
2841 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2842
2843 wxPyEndAllowThreads(__tstate);
2844 if (PyErr_Occurred()) SWIG_fail;
2845 }
2846 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2847 return resultobj;
2848 fail:
2849 return NULL;
2850 }
2851
2852
2853 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2854 PyObject *resultobj;
2855 PyObject *arg1 = (PyObject *) 0 ;
2856 wxBitmap *result;
2857 PyObject * obj0 = 0 ;
2858 char *kwnames[] = {
2859 (char *) "listOfStrings", NULL
2860 };
2861
2862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2863 arg1 = obj0;
2864 {
2865 PyThreadState* __tstate = wxPyBeginAllowThreads();
2866 result = (wxBitmap *)new_wxBitmap(arg1);
2867
2868 wxPyEndAllowThreads(__tstate);
2869 if (PyErr_Occurred()) SWIG_fail;
2870 }
2871 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2872 return resultobj;
2873 fail:
2874 return NULL;
2875 }
2876
2877
2878 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2879 PyObject *resultobj;
2880 PyObject *arg1 = (PyObject *) 0 ;
2881 int arg2 ;
2882 int arg3 ;
2883 int arg4 = (int) 1 ;
2884 wxBitmap *result;
2885 PyObject * obj0 = 0 ;
2886 PyObject * obj1 = 0 ;
2887 PyObject * obj2 = 0 ;
2888 PyObject * obj3 = 0 ;
2889 char *kwnames[] = {
2890 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2891 };
2892
2893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2894 arg1 = obj0;
2895 arg2 = (int) SWIG_AsInt(obj1);
2896 if (PyErr_Occurred()) SWIG_fail;
2897 arg3 = (int) SWIG_AsInt(obj2);
2898 if (PyErr_Occurred()) SWIG_fail;
2899 if (obj3) {
2900 arg4 = (int) SWIG_AsInt(obj3);
2901 if (PyErr_Occurred()) SWIG_fail;
2902 }
2903 {
2904 PyThreadState* __tstate = wxPyBeginAllowThreads();
2905 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2906
2907 wxPyEndAllowThreads(__tstate);
2908 if (PyErr_Occurred()) SWIG_fail;
2909 }
2910 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2911 return resultobj;
2912 fail:
2913 return NULL;
2914 }
2915
2916
2917 static PyObject *_wrap_new_EmptyBitmap__SWIG_0(PyObject *self, PyObject *args) {
2918 PyObject *resultobj;
2919 int arg1 ;
2920 int arg2 ;
2921 int arg3 = (int) -1 ;
2922 wxBitmap *result;
2923 PyObject * obj0 = 0 ;
2924 PyObject * obj1 = 0 ;
2925 PyObject * obj2 = 0 ;
2926
2927 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_EmptyBitmap",&obj0,&obj1,&obj2)) goto fail;
2928 arg1 = (int) SWIG_AsInt(obj0);
2929 if (PyErr_Occurred()) SWIG_fail;
2930 arg2 = (int) SWIG_AsInt(obj1);
2931 if (PyErr_Occurred()) SWIG_fail;
2932 if (obj2) {
2933 arg3 = (int) SWIG_AsInt(obj2);
2934 if (PyErr_Occurred()) SWIG_fail;
2935 }
2936 {
2937 PyThreadState* __tstate = wxPyBeginAllowThreads();
2938 result = (wxBitmap *)new_wxBitmap__SWIG_0(arg1,arg2,arg3);
2939
2940 wxPyEndAllowThreads(__tstate);
2941 if (PyErr_Occurred()) SWIG_fail;
2942 }
2943 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2944 return resultobj;
2945 fail:
2946 return NULL;
2947 }
2948
2949
2950 static PyObject *_wrap_new_EmptyBitmap__SWIG_1(PyObject *self, PyObject *args) {
2951 PyObject *resultobj;
2952 wxSize *arg1 = 0 ;
2953 int arg2 = (int) -1 ;
2954 wxBitmap *result;
2955 wxSize temp1 ;
2956 PyObject * obj0 = 0 ;
2957 PyObject * obj1 = 0 ;
2958
2959 if(!PyArg_ParseTuple(args,(char *)"O|O:new_EmptyBitmap",&obj0,&obj1)) goto fail;
2960 {
2961 arg1 = &temp1;
2962 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
2963 }
2964 if (obj1) {
2965 arg2 = (int) SWIG_AsInt(obj1);
2966 if (PyErr_Occurred()) SWIG_fail;
2967 }
2968 {
2969 PyThreadState* __tstate = wxPyBeginAllowThreads();
2970 result = (wxBitmap *)new_wxBitmap__SWIG_1((wxSize const &)*arg1,arg2);
2971
2972 wxPyEndAllowThreads(__tstate);
2973 if (PyErr_Occurred()) SWIG_fail;
2974 }
2975 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2976 return resultobj;
2977 fail:
2978 return NULL;
2979 }
2980
2981
2982 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args) {
2983 int argc;
2984 PyObject *argv[4];
2985 int ii;
2986
2987 argc = PyObject_Length(args);
2988 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
2989 argv[ii] = PyTuple_GetItem(args,ii);
2990 }
2991 if ((argc >= 1) && (argc <= 2)) {
2992 int _v;
2993 {
2994 _v = wxPySimple_typecheck(argv[0], wxT("wxSize"), 2);
2995 }
2996 if (_v) {
2997 if (argc <= 1) {
2998 return _wrap_new_EmptyBitmap__SWIG_1(self,args);
2999 }
3000 _v = SWIG_CheckInt(argv[1]);
3001 if (_v) {
3002 return _wrap_new_EmptyBitmap__SWIG_1(self,args);
3003 }
3004 }
3005 }
3006 if ((argc >= 2) && (argc <= 3)) {
3007 int _v;
3008 _v = SWIG_CheckInt(argv[0]);
3009 if (_v) {
3010 _v = SWIG_CheckInt(argv[1]);
3011 if (_v) {
3012 if (argc <= 2) {
3013 return _wrap_new_EmptyBitmap__SWIG_0(self,args);
3014 }
3015 _v = SWIG_CheckInt(argv[2]);
3016 if (_v) {
3017 return _wrap_new_EmptyBitmap__SWIG_0(self,args);
3018 }
3019 }
3020 }
3021 }
3022
3023 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_EmptyBitmap'");
3024 return NULL;
3025 }
3026
3027
3028 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3029 PyObject *resultobj;
3030 wxBitmap *arg1 = (wxBitmap *) 0 ;
3031 bool result;
3032 PyObject * obj0 = 0 ;
3033 char *kwnames[] = {
3034 (char *) "self", NULL
3035 };
3036
3037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
3038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3040 {
3041 PyThreadState* __tstate = wxPyBeginAllowThreads();
3042 result = (bool)(arg1)->Ok();
3043
3044 wxPyEndAllowThreads(__tstate);
3045 if (PyErr_Occurred()) SWIG_fail;
3046 }
3047 {
3048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3049 }
3050 return resultobj;
3051 fail:
3052 return NULL;
3053 }
3054
3055
3056 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3057 PyObject *resultobj;
3058 wxBitmap *arg1 = (wxBitmap *) 0 ;
3059 int result;
3060 PyObject * obj0 = 0 ;
3061 char *kwnames[] = {
3062 (char *) "self", NULL
3063 };
3064
3065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
3066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3068 {
3069 PyThreadState* __tstate = wxPyBeginAllowThreads();
3070 result = (int)(arg1)->GetWidth();
3071
3072 wxPyEndAllowThreads(__tstate);
3073 if (PyErr_Occurred()) SWIG_fail;
3074 }
3075 resultobj = SWIG_FromInt((int)result);
3076 return resultobj;
3077 fail:
3078 return NULL;
3079 }
3080
3081
3082 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3083 PyObject *resultobj;
3084 wxBitmap *arg1 = (wxBitmap *) 0 ;
3085 int result;
3086 PyObject * obj0 = 0 ;
3087 char *kwnames[] = {
3088 (char *) "self", NULL
3089 };
3090
3091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
3092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3094 {
3095 PyThreadState* __tstate = wxPyBeginAllowThreads();
3096 result = (int)(arg1)->GetHeight();
3097
3098 wxPyEndAllowThreads(__tstate);
3099 if (PyErr_Occurred()) SWIG_fail;
3100 }
3101 resultobj = SWIG_FromInt((int)result);
3102 return resultobj;
3103 fail:
3104 return NULL;
3105 }
3106
3107
3108 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3109 PyObject *resultobj;
3110 wxBitmap *arg1 = (wxBitmap *) 0 ;
3111 int result;
3112 PyObject * obj0 = 0 ;
3113 char *kwnames[] = {
3114 (char *) "self", NULL
3115 };
3116
3117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
3118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3120 {
3121 PyThreadState* __tstate = wxPyBeginAllowThreads();
3122 result = (int)(arg1)->GetDepth();
3123
3124 wxPyEndAllowThreads(__tstate);
3125 if (PyErr_Occurred()) SWIG_fail;
3126 }
3127 resultobj = SWIG_FromInt((int)result);
3128 return resultobj;
3129 fail:
3130 return NULL;
3131 }
3132
3133
3134 static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3135 PyObject *resultobj;
3136 wxBitmap *arg1 = (wxBitmap *) 0 ;
3137 wxSize result;
3138 PyObject * obj0 = 0 ;
3139 char *kwnames[] = {
3140 (char *) "self", NULL
3141 };
3142
3143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
3144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3146 {
3147 PyThreadState* __tstate = wxPyBeginAllowThreads();
3148 result = wxBitmap_GetSize(arg1);
3149
3150 wxPyEndAllowThreads(__tstate);
3151 if (PyErr_Occurred()) SWIG_fail;
3152 }
3153 {
3154 wxSize * resultptr;
3155 resultptr = new wxSize((wxSize &) result);
3156 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3157 }
3158 return resultobj;
3159 fail:
3160 return NULL;
3161 }
3162
3163
3164 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3165 PyObject *resultobj;
3166 wxBitmap *arg1 = (wxBitmap *) 0 ;
3167 SwigValueWrapper< wxImage > result;
3168 PyObject * obj0 = 0 ;
3169 char *kwnames[] = {
3170 (char *) "self", NULL
3171 };
3172
3173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
3174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3176 {
3177 PyThreadState* __tstate = wxPyBeginAllowThreads();
3178 result = ((wxBitmap const *)arg1)->ConvertToImage();
3179
3180 wxPyEndAllowThreads(__tstate);
3181 if (PyErr_Occurred()) SWIG_fail;
3182 }
3183 {
3184 wxImage * resultptr;
3185 resultptr = new wxImage((wxImage &) result);
3186 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3187 }
3188 return resultobj;
3189 fail:
3190 return NULL;
3191 }
3192
3193
3194 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3195 PyObject *resultobj;
3196 wxBitmap *arg1 = (wxBitmap *) 0 ;
3197 wxMask *result;
3198 PyObject * obj0 = 0 ;
3199 char *kwnames[] = {
3200 (char *) "self", NULL
3201 };
3202
3203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3206 {
3207 PyThreadState* __tstate = wxPyBeginAllowThreads();
3208 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3209
3210 wxPyEndAllowThreads(__tstate);
3211 if (PyErr_Occurred()) SWIG_fail;
3212 }
3213 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3214 return resultobj;
3215 fail:
3216 return NULL;
3217 }
3218
3219
3220 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3221 PyObject *resultobj;
3222 wxBitmap *arg1 = (wxBitmap *) 0 ;
3223 wxMask *arg2 = (wxMask *) 0 ;
3224 PyObject * obj0 = 0 ;
3225 PyObject * obj1 = 0 ;
3226 char *kwnames[] = {
3227 (char *) "self",(char *) "mask", NULL
3228 };
3229
3230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3233 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3235 {
3236 PyThreadState* __tstate = wxPyBeginAllowThreads();
3237 (arg1)->SetMask(arg2);
3238
3239 wxPyEndAllowThreads(__tstate);
3240 if (PyErr_Occurred()) SWIG_fail;
3241 }
3242 Py_INCREF(Py_None); resultobj = Py_None;
3243 return resultobj;
3244 fail:
3245 return NULL;
3246 }
3247
3248
3249 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3250 PyObject *resultobj;
3251 wxBitmap *arg1 = (wxBitmap *) 0 ;
3252 wxColour *arg2 = 0 ;
3253 wxColour temp2 ;
3254 PyObject * obj0 = 0 ;
3255 PyObject * obj1 = 0 ;
3256 char *kwnames[] = {
3257 (char *) "self",(char *) "colour", NULL
3258 };
3259
3260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3263 {
3264 arg2 = &temp2;
3265 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3266 }
3267 {
3268 PyThreadState* __tstate = wxPyBeginAllowThreads();
3269 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3270
3271 wxPyEndAllowThreads(__tstate);
3272 if (PyErr_Occurred()) SWIG_fail;
3273 }
3274 Py_INCREF(Py_None); resultobj = Py_None;
3275 return resultobj;
3276 fail:
3277 return NULL;
3278 }
3279
3280
3281 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3282 PyObject *resultobj;
3283 wxBitmap *arg1 = (wxBitmap *) 0 ;
3284 wxRect *arg2 = 0 ;
3285 SwigValueWrapper< wxBitmap > result;
3286 wxRect temp2 ;
3287 PyObject * obj0 = 0 ;
3288 PyObject * obj1 = 0 ;
3289 char *kwnames[] = {
3290 (char *) "self",(char *) "rect", NULL
3291 };
3292
3293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3296 {
3297 arg2 = &temp2;
3298 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3299 }
3300 {
3301 PyThreadState* __tstate = wxPyBeginAllowThreads();
3302 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3303
3304 wxPyEndAllowThreads(__tstate);
3305 if (PyErr_Occurred()) SWIG_fail;
3306 }
3307 {
3308 wxBitmap * resultptr;
3309 resultptr = new wxBitmap((wxBitmap &) result);
3310 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3311 }
3312 return resultobj;
3313 fail:
3314 return NULL;
3315 }
3316
3317
3318 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3319 PyObject *resultobj;
3320 wxBitmap *arg1 = (wxBitmap *) 0 ;
3321 wxString *arg2 = 0 ;
3322 int arg3 ;
3323 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
3324 bool result;
3325 bool temp2 = False ;
3326 PyObject * obj0 = 0 ;
3327 PyObject * obj1 = 0 ;
3328 PyObject * obj2 = 0 ;
3329 PyObject * obj3 = 0 ;
3330 char *kwnames[] = {
3331 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3332 };
3333
3334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3337 {
3338 arg2 = wxString_in_helper(obj1);
3339 if (arg2 == NULL) SWIG_fail;
3340 temp2 = True;
3341 }
3342 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3343 if (PyErr_Occurred()) SWIG_fail;
3344 if (obj3) {
3345 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3347 }
3348 {
3349 PyThreadState* __tstate = wxPyBeginAllowThreads();
3350 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3351
3352 wxPyEndAllowThreads(__tstate);
3353 if (PyErr_Occurred()) SWIG_fail;
3354 }
3355 {
3356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3357 }
3358 {
3359 if (temp2)
3360 delete arg2;
3361 }
3362 return resultobj;
3363 fail:
3364 {
3365 if (temp2)
3366 delete arg2;
3367 }
3368 return NULL;
3369 }
3370
3371
3372 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3373 PyObject *resultobj;
3374 wxBitmap *arg1 = (wxBitmap *) 0 ;
3375 wxString *arg2 = 0 ;
3376 int arg3 ;
3377 bool result;
3378 bool temp2 = False ;
3379 PyObject * obj0 = 0 ;
3380 PyObject * obj1 = 0 ;
3381 PyObject * obj2 = 0 ;
3382 char *kwnames[] = {
3383 (char *) "self",(char *) "name",(char *) "type", NULL
3384 };
3385
3386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3389 {
3390 arg2 = wxString_in_helper(obj1);
3391 if (arg2 == NULL) SWIG_fail;
3392 temp2 = True;
3393 }
3394 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3395 if (PyErr_Occurred()) SWIG_fail;
3396 {
3397 PyThreadState* __tstate = wxPyBeginAllowThreads();
3398 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3399
3400 wxPyEndAllowThreads(__tstate);
3401 if (PyErr_Occurred()) SWIG_fail;
3402 }
3403 {
3404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3405 }
3406 {
3407 if (temp2)
3408 delete arg2;
3409 }
3410 return resultobj;
3411 fail:
3412 {
3413 if (temp2)
3414 delete arg2;
3415 }
3416 return NULL;
3417 }
3418
3419
3420 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3421 PyObject *resultobj;
3422 wxBitmap *arg1 = (wxBitmap *) 0 ;
3423 wxIcon *arg2 = 0 ;
3424 bool result;
3425 PyObject * obj0 = 0 ;
3426 PyObject * obj1 = 0 ;
3427 char *kwnames[] = {
3428 (char *) "self",(char *) "icon", NULL
3429 };
3430
3431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3434 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3435 SWIG_POINTER_EXCEPTION | 0)) == -1)
3436 SWIG_fail;
3437 if (arg2 == NULL) {
3438 PyErr_SetString(PyExc_TypeError,"null reference");
3439 SWIG_fail;
3440 }
3441 {
3442 PyThreadState* __tstate = wxPyBeginAllowThreads();
3443 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3444
3445 wxPyEndAllowThreads(__tstate);
3446 if (PyErr_Occurred()) SWIG_fail;
3447 }
3448 {
3449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3450 }
3451 return resultobj;
3452 fail:
3453 return NULL;
3454 }
3455
3456
3457 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3458 PyObject *resultobj;
3459 wxBitmap *arg1 = (wxBitmap *) 0 ;
3460 int arg2 ;
3461 PyObject * obj0 = 0 ;
3462 PyObject * obj1 = 0 ;
3463 char *kwnames[] = {
3464 (char *) "self",(char *) "height", NULL
3465 };
3466
3467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3470 arg2 = (int) SWIG_AsInt(obj1);
3471 if (PyErr_Occurred()) SWIG_fail;
3472 {
3473 PyThreadState* __tstate = wxPyBeginAllowThreads();
3474 (arg1)->SetHeight(arg2);
3475
3476 wxPyEndAllowThreads(__tstate);
3477 if (PyErr_Occurred()) SWIG_fail;
3478 }
3479 Py_INCREF(Py_None); resultobj = Py_None;
3480 return resultobj;
3481 fail:
3482 return NULL;
3483 }
3484
3485
3486 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3487 PyObject *resultobj;
3488 wxBitmap *arg1 = (wxBitmap *) 0 ;
3489 int arg2 ;
3490 PyObject * obj0 = 0 ;
3491 PyObject * obj1 = 0 ;
3492 char *kwnames[] = {
3493 (char *) "self",(char *) "width", NULL
3494 };
3495
3496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3499 arg2 = (int) SWIG_AsInt(obj1);
3500 if (PyErr_Occurred()) SWIG_fail;
3501 {
3502 PyThreadState* __tstate = wxPyBeginAllowThreads();
3503 (arg1)->SetWidth(arg2);
3504
3505 wxPyEndAllowThreads(__tstate);
3506 if (PyErr_Occurred()) SWIG_fail;
3507 }
3508 Py_INCREF(Py_None); resultobj = Py_None;
3509 return resultobj;
3510 fail:
3511 return NULL;
3512 }
3513
3514
3515 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3516 PyObject *resultobj;
3517 wxBitmap *arg1 = (wxBitmap *) 0 ;
3518 int arg2 ;
3519 PyObject * obj0 = 0 ;
3520 PyObject * obj1 = 0 ;
3521 char *kwnames[] = {
3522 (char *) "self",(char *) "depth", NULL
3523 };
3524
3525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3528 arg2 = (int) SWIG_AsInt(obj1);
3529 if (PyErr_Occurred()) SWIG_fail;
3530 {
3531 PyThreadState* __tstate = wxPyBeginAllowThreads();
3532 (arg1)->SetDepth(arg2);
3533
3534 wxPyEndAllowThreads(__tstate);
3535 if (PyErr_Occurred()) SWIG_fail;
3536 }
3537 Py_INCREF(Py_None); resultobj = Py_None;
3538 return resultobj;
3539 fail:
3540 return NULL;
3541 }
3542
3543
3544 static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3545 PyObject *resultobj;
3546 wxBitmap *arg1 = (wxBitmap *) 0 ;
3547 wxSize *arg2 = 0 ;
3548 wxSize temp2 ;
3549 PyObject * obj0 = 0 ;
3550 PyObject * obj1 = 0 ;
3551 char *kwnames[] = {
3552 (char *) "self",(char *) "size", NULL
3553 };
3554
3555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3558 {
3559 arg2 = &temp2;
3560 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3561 }
3562 {
3563 PyThreadState* __tstate = wxPyBeginAllowThreads();
3564 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3565
3566 wxPyEndAllowThreads(__tstate);
3567 if (PyErr_Occurred()) SWIG_fail;
3568 }
3569 Py_INCREF(Py_None); resultobj = Py_None;
3570 return resultobj;
3571 fail:
3572 return NULL;
3573 }
3574
3575
3576 static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3577 PyObject *resultobj;
3578 wxBitmap *arg1 = (wxBitmap *) 0 ;
3579 wxBitmap *arg2 = (wxBitmap *) 0 ;
3580 bool result;
3581 PyObject * obj0 = 0 ;
3582 PyObject * obj1 = 0 ;
3583 char *kwnames[] = {
3584 (char *) "self",(char *) "other", NULL
3585 };
3586
3587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3590 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3592 {
3593 PyThreadState* __tstate = wxPyBeginAllowThreads();
3594 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3595
3596 wxPyEndAllowThreads(__tstate);
3597 if (PyErr_Occurred()) SWIG_fail;
3598 }
3599 {
3600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3601 }
3602 return resultobj;
3603 fail:
3604 return NULL;
3605 }
3606
3607
3608 static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3609 PyObject *resultobj;
3610 wxBitmap *arg1 = (wxBitmap *) 0 ;
3611 wxBitmap *arg2 = (wxBitmap *) 0 ;
3612 bool result;
3613 PyObject * obj0 = 0 ;
3614 PyObject * obj1 = 0 ;
3615 char *kwnames[] = {
3616 (char *) "self",(char *) "other", NULL
3617 };
3618
3619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3622 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3624 {
3625 PyThreadState* __tstate = wxPyBeginAllowThreads();
3626 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3627
3628 wxPyEndAllowThreads(__tstate);
3629 if (PyErr_Occurred()) SWIG_fail;
3630 }
3631 {
3632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3633 }
3634 return resultobj;
3635 fail:
3636 return NULL;
3637 }
3638
3639
3640 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3641 PyObject *obj;
3642 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3643 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3644 Py_INCREF(obj);
3645 return Py_BuildValue((char *)"");
3646 }
3647 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3648 PyObject *resultobj;
3649 wxBitmap *arg1 = 0 ;
3650 wxColour const &arg2_defvalue = wxNullColour ;
3651 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3652 wxMask *result;
3653 wxColour temp2 ;
3654 PyObject * obj0 = 0 ;
3655 PyObject * obj1 = 0 ;
3656 char *kwnames[] = {
3657 (char *) "bitmap",(char *) "colour", NULL
3658 };
3659
3660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3662 SWIG_POINTER_EXCEPTION | 0)) == -1)
3663 SWIG_fail;
3664 if (arg1 == NULL) {
3665 PyErr_SetString(PyExc_TypeError,"null reference");
3666 SWIG_fail;
3667 }
3668 if (obj1) {
3669 {
3670 arg2 = &temp2;
3671 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3672 }
3673 }
3674 {
3675 PyThreadState* __tstate = wxPyBeginAllowThreads();
3676 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3677
3678 wxPyEndAllowThreads(__tstate);
3679 if (PyErr_Occurred()) SWIG_fail;
3680 }
3681 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3682 return resultobj;
3683 fail:
3684 return NULL;
3685 }
3686
3687
3688 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3689 PyObject *obj;
3690 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3691 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3692 Py_INCREF(obj);
3693 return Py_BuildValue((char *)"");
3694 }
3695 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3696 PyObject *resultobj;
3697 wxString *arg1 = 0 ;
3698 int arg2 ;
3699 int arg3 = (int) -1 ;
3700 int arg4 = (int) -1 ;
3701 wxIcon *result;
3702 bool temp1 = False ;
3703 PyObject * obj0 = 0 ;
3704 PyObject * obj1 = 0 ;
3705 PyObject * obj2 = 0 ;
3706 PyObject * obj3 = 0 ;
3707 char *kwnames[] = {
3708 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3709 };
3710
3711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3712 {
3713 arg1 = wxString_in_helper(obj0);
3714 if (arg1 == NULL) SWIG_fail;
3715 temp1 = True;
3716 }
3717 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3718 if (PyErr_Occurred()) SWIG_fail;
3719 if (obj2) {
3720 arg3 = (int) SWIG_AsInt(obj2);
3721 if (PyErr_Occurred()) SWIG_fail;
3722 }
3723 if (obj3) {
3724 arg4 = (int) SWIG_AsInt(obj3);
3725 if (PyErr_Occurred()) SWIG_fail;
3726 }
3727 {
3728 PyThreadState* __tstate = wxPyBeginAllowThreads();
3729 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3730
3731 wxPyEndAllowThreads(__tstate);
3732 if (PyErr_Occurred()) SWIG_fail;
3733 }
3734 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3735 {
3736 if (temp1)
3737 delete arg1;
3738 }
3739 return resultobj;
3740 fail:
3741 {
3742 if (temp1)
3743 delete arg1;
3744 }
3745 return NULL;
3746 }
3747
3748
3749 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3750 PyObject *resultobj;
3751 wxIcon *arg1 = (wxIcon *) 0 ;
3752 PyObject * obj0 = 0 ;
3753 char *kwnames[] = {
3754 (char *) "self", NULL
3755 };
3756
3757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3760 {
3761 PyThreadState* __tstate = wxPyBeginAllowThreads();
3762 delete arg1;
3763
3764 wxPyEndAllowThreads(__tstate);
3765 if (PyErr_Occurred()) SWIG_fail;
3766 }
3767 Py_INCREF(Py_None); resultobj = Py_None;
3768 return resultobj;
3769 fail:
3770 return NULL;
3771 }
3772
3773
3774 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3775 PyObject *resultobj;
3776 wxIcon *result;
3777 char *kwnames[] = {
3778 NULL
3779 };
3780
3781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3782 {
3783 PyThreadState* __tstate = wxPyBeginAllowThreads();
3784 result = (wxIcon *)new wxIcon();
3785
3786 wxPyEndAllowThreads(__tstate);
3787 if (PyErr_Occurred()) SWIG_fail;
3788 }
3789 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3790 return resultobj;
3791 fail:
3792 return NULL;
3793 }
3794
3795
3796 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3797 PyObject *resultobj;
3798 wxIconLocation *arg1 = 0 ;
3799 wxIcon *result;
3800 PyObject * obj0 = 0 ;
3801 char *kwnames[] = {
3802 (char *) "loc", NULL
3803 };
3804
3805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3807 SWIG_POINTER_EXCEPTION | 0)) == -1)
3808 SWIG_fail;
3809 if (arg1 == NULL) {
3810 PyErr_SetString(PyExc_TypeError,"null reference");
3811 SWIG_fail;
3812 }
3813 {
3814 PyThreadState* __tstate = wxPyBeginAllowThreads();
3815 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3816
3817 wxPyEndAllowThreads(__tstate);
3818 if (PyErr_Occurred()) SWIG_fail;
3819 }
3820 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3821 return resultobj;
3822 fail:
3823 return NULL;
3824 }
3825
3826
3827 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3828 PyObject *resultobj;
3829 wxBitmap *arg1 = 0 ;
3830 wxIcon *result;
3831 PyObject * obj0 = 0 ;
3832 char *kwnames[] = {
3833 (char *) "bmp", NULL
3834 };
3835
3836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3838 SWIG_POINTER_EXCEPTION | 0)) == -1)
3839 SWIG_fail;
3840 if (arg1 == NULL) {
3841 PyErr_SetString(PyExc_TypeError,"null reference");
3842 SWIG_fail;
3843 }
3844 {
3845 PyThreadState* __tstate = wxPyBeginAllowThreads();
3846 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3847
3848 wxPyEndAllowThreads(__tstate);
3849 if (PyErr_Occurred()) SWIG_fail;
3850 }
3851 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3852 return resultobj;
3853 fail:
3854 return NULL;
3855 }
3856
3857
3858 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3859 PyObject *resultobj;
3860 PyObject *arg1 = (PyObject *) 0 ;
3861 wxIcon *result;
3862 PyObject * obj0 = 0 ;
3863 char *kwnames[] = {
3864 (char *) "listOfStrings", NULL
3865 };
3866
3867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3868 arg1 = obj0;
3869 {
3870 PyThreadState* __tstate = wxPyBeginAllowThreads();
3871 result = (wxIcon *)new_wxIcon(arg1);
3872
3873 wxPyEndAllowThreads(__tstate);
3874 if (PyErr_Occurred()) SWIG_fail;
3875 }
3876 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3877 return resultobj;
3878 fail:
3879 return NULL;
3880 }
3881
3882
3883 static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3884 PyObject *resultobj;
3885 wxIcon *arg1 = (wxIcon *) 0 ;
3886 wxString *arg2 = 0 ;
3887 int arg3 ;
3888 bool result;
3889 bool temp2 = False ;
3890 PyObject * obj0 = 0 ;
3891 PyObject * obj1 = 0 ;
3892 PyObject * obj2 = 0 ;
3893 char *kwnames[] = {
3894 (char *) "self",(char *) "name",(char *) "type", NULL
3895 };
3896
3897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3900 {
3901 arg2 = wxString_in_helper(obj1);
3902 if (arg2 == NULL) SWIG_fail;
3903 temp2 = True;
3904 }
3905 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3906 if (PyErr_Occurred()) SWIG_fail;
3907 {
3908 PyThreadState* __tstate = wxPyBeginAllowThreads();
3909 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3910
3911 wxPyEndAllowThreads(__tstate);
3912 if (PyErr_Occurred()) SWIG_fail;
3913 }
3914 {
3915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3916 }
3917 {
3918 if (temp2)
3919 delete arg2;
3920 }
3921 return resultobj;
3922 fail:
3923 {
3924 if (temp2)
3925 delete arg2;
3926 }
3927 return NULL;
3928 }
3929
3930
3931 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3932 PyObject *resultobj;
3933 wxIcon *arg1 = (wxIcon *) 0 ;
3934 bool result;
3935 PyObject * obj0 = 0 ;
3936 char *kwnames[] = {
3937 (char *) "self", NULL
3938 };
3939
3940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3943 {
3944 PyThreadState* __tstate = wxPyBeginAllowThreads();
3945 result = (bool)(arg1)->Ok();
3946
3947 wxPyEndAllowThreads(__tstate);
3948 if (PyErr_Occurred()) SWIG_fail;
3949 }
3950 {
3951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3952 }
3953 return resultobj;
3954 fail:
3955 return NULL;
3956 }
3957
3958
3959 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3960 PyObject *resultobj;
3961 wxIcon *arg1 = (wxIcon *) 0 ;
3962 int result;
3963 PyObject * obj0 = 0 ;
3964 char *kwnames[] = {
3965 (char *) "self", NULL
3966 };
3967
3968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3971 {
3972 PyThreadState* __tstate = wxPyBeginAllowThreads();
3973 result = (int)(arg1)->GetWidth();
3974
3975 wxPyEndAllowThreads(__tstate);
3976 if (PyErr_Occurred()) SWIG_fail;
3977 }
3978 resultobj = SWIG_FromInt((int)result);
3979 return resultobj;
3980 fail:
3981 return NULL;
3982 }
3983
3984
3985 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3986 PyObject *resultobj;
3987 wxIcon *arg1 = (wxIcon *) 0 ;
3988 int result;
3989 PyObject * obj0 = 0 ;
3990 char *kwnames[] = {
3991 (char *) "self", NULL
3992 };
3993
3994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3997 {
3998 PyThreadState* __tstate = wxPyBeginAllowThreads();
3999 result = (int)(arg1)->GetHeight();
4000
4001 wxPyEndAllowThreads(__tstate);
4002 if (PyErr_Occurred()) SWIG_fail;
4003 }
4004 resultobj = SWIG_FromInt((int)result);
4005 return resultobj;
4006 fail:
4007 return NULL;
4008 }
4009
4010
4011 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4012 PyObject *resultobj;
4013 wxIcon *arg1 = (wxIcon *) 0 ;
4014 int result;
4015 PyObject * obj0 = 0 ;
4016 char *kwnames[] = {
4017 (char *) "self", NULL
4018 };
4019
4020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
4021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4023 {
4024 PyThreadState* __tstate = wxPyBeginAllowThreads();
4025 result = (int)(arg1)->GetDepth();
4026
4027 wxPyEndAllowThreads(__tstate);
4028 if (PyErr_Occurred()) SWIG_fail;
4029 }
4030 resultobj = SWIG_FromInt((int)result);
4031 return resultobj;
4032 fail:
4033 return NULL;
4034 }
4035
4036
4037 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4038 PyObject *resultobj;
4039 wxIcon *arg1 = (wxIcon *) 0 ;
4040 int arg2 ;
4041 PyObject * obj0 = 0 ;
4042 PyObject * obj1 = 0 ;
4043 char *kwnames[] = {
4044 (char *) "self",(char *) "w", NULL
4045 };
4046
4047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
4048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4050 arg2 = (int) SWIG_AsInt(obj1);
4051 if (PyErr_Occurred()) SWIG_fail;
4052 {
4053 PyThreadState* __tstate = wxPyBeginAllowThreads();
4054 (arg1)->SetWidth(arg2);
4055
4056 wxPyEndAllowThreads(__tstate);
4057 if (PyErr_Occurred()) SWIG_fail;
4058 }
4059 Py_INCREF(Py_None); resultobj = Py_None;
4060 return resultobj;
4061 fail:
4062 return NULL;
4063 }
4064
4065
4066 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4067 PyObject *resultobj;
4068 wxIcon *arg1 = (wxIcon *) 0 ;
4069 int arg2 ;
4070 PyObject * obj0 = 0 ;
4071 PyObject * obj1 = 0 ;
4072 char *kwnames[] = {
4073 (char *) "self",(char *) "h", NULL
4074 };
4075
4076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4079 arg2 = (int) SWIG_AsInt(obj1);
4080 if (PyErr_Occurred()) SWIG_fail;
4081 {
4082 PyThreadState* __tstate = wxPyBeginAllowThreads();
4083 (arg1)->SetHeight(arg2);
4084
4085 wxPyEndAllowThreads(__tstate);
4086 if (PyErr_Occurred()) SWIG_fail;
4087 }
4088 Py_INCREF(Py_None); resultobj = Py_None;
4089 return resultobj;
4090 fail:
4091 return NULL;
4092 }
4093
4094
4095 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4096 PyObject *resultobj;
4097 wxIcon *arg1 = (wxIcon *) 0 ;
4098 int arg2 ;
4099 PyObject * obj0 = 0 ;
4100 PyObject * obj1 = 0 ;
4101 char *kwnames[] = {
4102 (char *) "self",(char *) "d", NULL
4103 };
4104
4105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4108 arg2 = (int) SWIG_AsInt(obj1);
4109 if (PyErr_Occurred()) SWIG_fail;
4110 {
4111 PyThreadState* __tstate = wxPyBeginAllowThreads();
4112 (arg1)->SetDepth(arg2);
4113
4114 wxPyEndAllowThreads(__tstate);
4115 if (PyErr_Occurred()) SWIG_fail;
4116 }
4117 Py_INCREF(Py_None); resultobj = Py_None;
4118 return resultobj;
4119 fail:
4120 return NULL;
4121 }
4122
4123
4124 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4125 PyObject *resultobj;
4126 wxIcon *arg1 = (wxIcon *) 0 ;
4127 wxBitmap *arg2 = 0 ;
4128 PyObject * obj0 = 0 ;
4129 PyObject * obj1 = 0 ;
4130 char *kwnames[] = {
4131 (char *) "self",(char *) "bmp", NULL
4132 };
4133
4134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
4135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4137 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4138 SWIG_POINTER_EXCEPTION | 0)) == -1)
4139 SWIG_fail;
4140 if (arg2 == NULL) {
4141 PyErr_SetString(PyExc_TypeError,"null reference");
4142 SWIG_fail;
4143 }
4144 {
4145 PyThreadState* __tstate = wxPyBeginAllowThreads();
4146 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
4147
4148 wxPyEndAllowThreads(__tstate);
4149 if (PyErr_Occurred()) SWIG_fail;
4150 }
4151 Py_INCREF(Py_None); resultobj = Py_None;
4152 return resultobj;
4153 fail:
4154 return NULL;
4155 }
4156
4157
4158 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
4159 PyObject *obj;
4160 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4161 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
4162 Py_INCREF(obj);
4163 return Py_BuildValue((char *)"");
4164 }
4165 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4166 PyObject *resultobj;
4167 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4168 int arg2 = (int) 0 ;
4169 wxIconLocation *result;
4170 bool temp1 = False ;
4171 PyObject * obj0 = 0 ;
4172 PyObject * obj1 = 0 ;
4173 char *kwnames[] = {
4174 (char *) "filename",(char *) "num", NULL
4175 };
4176
4177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
4178 if (obj0) {
4179 {
4180 arg1 = wxString_in_helper(obj0);
4181 if (arg1 == NULL) SWIG_fail;
4182 temp1 = True;
4183 }
4184 }
4185 if (obj1) {
4186 arg2 = (int) SWIG_AsInt(obj1);
4187 if (PyErr_Occurred()) SWIG_fail;
4188 }
4189 {
4190 PyThreadState* __tstate = wxPyBeginAllowThreads();
4191 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4192
4193 wxPyEndAllowThreads(__tstate);
4194 if (PyErr_Occurred()) SWIG_fail;
4195 }
4196 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
4197 {
4198 if (temp1)
4199 delete arg1;
4200 }
4201 return resultobj;
4202 fail:
4203 {
4204 if (temp1)
4205 delete arg1;
4206 }
4207 return NULL;
4208 }
4209
4210
4211 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4212 PyObject *resultobj;
4213 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4214 PyObject * obj0 = 0 ;
4215 char *kwnames[] = {
4216 (char *) "self", NULL
4217 };
4218
4219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
4220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4222 {
4223 PyThreadState* __tstate = wxPyBeginAllowThreads();
4224 delete arg1;
4225
4226 wxPyEndAllowThreads(__tstate);
4227 if (PyErr_Occurred()) SWIG_fail;
4228 }
4229 Py_INCREF(Py_None); resultobj = Py_None;
4230 return resultobj;
4231 fail:
4232 return NULL;
4233 }
4234
4235
4236 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4237 PyObject *resultobj;
4238 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4239 bool result;
4240 PyObject * obj0 = 0 ;
4241 char *kwnames[] = {
4242 (char *) "self", NULL
4243 };
4244
4245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4248 {
4249 PyThreadState* __tstate = wxPyBeginAllowThreads();
4250 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4251
4252 wxPyEndAllowThreads(__tstate);
4253 if (PyErr_Occurred()) SWIG_fail;
4254 }
4255 {
4256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4257 }
4258 return resultobj;
4259 fail:
4260 return NULL;
4261 }
4262
4263
4264 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4265 PyObject *resultobj;
4266 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4267 wxString *arg2 = 0 ;
4268 bool temp2 = False ;
4269 PyObject * obj0 = 0 ;
4270 PyObject * obj1 = 0 ;
4271 char *kwnames[] = {
4272 (char *) "self",(char *) "filename", NULL
4273 };
4274
4275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4278 {
4279 arg2 = wxString_in_helper(obj1);
4280 if (arg2 == NULL) SWIG_fail;
4281 temp2 = True;
4282 }
4283 {
4284 PyThreadState* __tstate = wxPyBeginAllowThreads();
4285 (arg1)->SetFileName((wxString const &)*arg2);
4286
4287 wxPyEndAllowThreads(__tstate);
4288 if (PyErr_Occurred()) SWIG_fail;
4289 }
4290 Py_INCREF(Py_None); resultobj = Py_None;
4291 {
4292 if (temp2)
4293 delete arg2;
4294 }
4295 return resultobj;
4296 fail:
4297 {
4298 if (temp2)
4299 delete arg2;
4300 }
4301 return NULL;
4302 }
4303
4304
4305 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4306 PyObject *resultobj;
4307 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4308 wxString *result;
4309 PyObject * obj0 = 0 ;
4310 char *kwnames[] = {
4311 (char *) "self", NULL
4312 };
4313
4314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4317 {
4318 PyThreadState* __tstate = wxPyBeginAllowThreads();
4319 {
4320 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4321 result = (wxString *) &_result_ref;
4322 }
4323
4324 wxPyEndAllowThreads(__tstate);
4325 if (PyErr_Occurred()) SWIG_fail;
4326 }
4327 {
4328 #if wxUSE_UNICODE
4329 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4330 #else
4331 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4332 #endif
4333 }
4334 return resultobj;
4335 fail:
4336 return NULL;
4337 }
4338
4339
4340 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4341 PyObject *resultobj;
4342 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4343 int arg2 ;
4344 PyObject * obj0 = 0 ;
4345 PyObject * obj1 = 0 ;
4346 char *kwnames[] = {
4347 (char *) "self",(char *) "num", NULL
4348 };
4349
4350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4353 arg2 = (int) SWIG_AsInt(obj1);
4354 if (PyErr_Occurred()) SWIG_fail;
4355 {
4356 PyThreadState* __tstate = wxPyBeginAllowThreads();
4357 wxIconLocation_SetIndex(arg1,arg2);
4358
4359 wxPyEndAllowThreads(__tstate);
4360 if (PyErr_Occurred()) SWIG_fail;
4361 }
4362 Py_INCREF(Py_None); resultobj = Py_None;
4363 return resultobj;
4364 fail:
4365 return NULL;
4366 }
4367
4368
4369 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4370 PyObject *resultobj;
4371 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4372 int result;
4373 PyObject * obj0 = 0 ;
4374 char *kwnames[] = {
4375 (char *) "self", NULL
4376 };
4377
4378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4381 {
4382 PyThreadState* __tstate = wxPyBeginAllowThreads();
4383 result = (int)wxIconLocation_GetIndex(arg1);
4384
4385 wxPyEndAllowThreads(__tstate);
4386 if (PyErr_Occurred()) SWIG_fail;
4387 }
4388 resultobj = SWIG_FromInt((int)result);
4389 return resultobj;
4390 fail:
4391 return NULL;
4392 }
4393
4394
4395 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4396 PyObject *obj;
4397 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4398 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4399 Py_INCREF(obj);
4400 return Py_BuildValue((char *)"");
4401 }
4402 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4403 PyObject *resultobj;
4404 wxIconBundle *result;
4405 char *kwnames[] = {
4406 NULL
4407 };
4408
4409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4410 {
4411 PyThreadState* __tstate = wxPyBeginAllowThreads();
4412 result = (wxIconBundle *)new wxIconBundle();
4413
4414 wxPyEndAllowThreads(__tstate);
4415 if (PyErr_Occurred()) SWIG_fail;
4416 }
4417 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4418 return resultobj;
4419 fail:
4420 return NULL;
4421 }
4422
4423
4424 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4425 PyObject *resultobj;
4426 wxString *arg1 = 0 ;
4427 long arg2 ;
4428 wxIconBundle *result;
4429 bool temp1 = False ;
4430 PyObject * obj0 = 0 ;
4431 PyObject * obj1 = 0 ;
4432 char *kwnames[] = {
4433 (char *) "file",(char *) "type", NULL
4434 };
4435
4436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4437 {
4438 arg1 = wxString_in_helper(obj0);
4439 if (arg1 == NULL) SWIG_fail;
4440 temp1 = True;
4441 }
4442 arg2 = (long) SWIG_AsLong(obj1);
4443 if (PyErr_Occurred()) SWIG_fail;
4444 {
4445 PyThreadState* __tstate = wxPyBeginAllowThreads();
4446 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4447
4448 wxPyEndAllowThreads(__tstate);
4449 if (PyErr_Occurred()) SWIG_fail;
4450 }
4451 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4452 {
4453 if (temp1)
4454 delete arg1;
4455 }
4456 return resultobj;
4457 fail:
4458 {
4459 if (temp1)
4460 delete arg1;
4461 }
4462 return NULL;
4463 }
4464
4465
4466 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4467 PyObject *resultobj;
4468 wxIcon *arg1 = 0 ;
4469 wxIconBundle *result;
4470 PyObject * obj0 = 0 ;
4471 char *kwnames[] = {
4472 (char *) "icon", NULL
4473 };
4474
4475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4477 SWIG_POINTER_EXCEPTION | 0)) == -1)
4478 SWIG_fail;
4479 if (arg1 == NULL) {
4480 PyErr_SetString(PyExc_TypeError,"null reference");
4481 SWIG_fail;
4482 }
4483 {
4484 PyThreadState* __tstate = wxPyBeginAllowThreads();
4485 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4486
4487 wxPyEndAllowThreads(__tstate);
4488 if (PyErr_Occurred()) SWIG_fail;
4489 }
4490 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4491 return resultobj;
4492 fail:
4493 return NULL;
4494 }
4495
4496
4497 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4498 PyObject *resultobj;
4499 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4500 PyObject * obj0 = 0 ;
4501 char *kwnames[] = {
4502 (char *) "self", NULL
4503 };
4504
4505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4508 {
4509 PyThreadState* __tstate = wxPyBeginAllowThreads();
4510 delete arg1;
4511
4512 wxPyEndAllowThreads(__tstate);
4513 if (PyErr_Occurred()) SWIG_fail;
4514 }
4515 Py_INCREF(Py_None); resultobj = Py_None;
4516 return resultobj;
4517 fail:
4518 return NULL;
4519 }
4520
4521
4522 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4523 PyObject *resultobj;
4524 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4525 wxIcon *arg2 = 0 ;
4526 PyObject * obj0 = 0 ;
4527 PyObject * obj1 = 0 ;
4528 char *kwnames[] = {
4529 (char *) "self",(char *) "icon", NULL
4530 };
4531
4532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4535 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4536 SWIG_POINTER_EXCEPTION | 0)) == -1)
4537 SWIG_fail;
4538 if (arg2 == NULL) {
4539 PyErr_SetString(PyExc_TypeError,"null reference");
4540 SWIG_fail;
4541 }
4542 {
4543 PyThreadState* __tstate = wxPyBeginAllowThreads();
4544 (arg1)->AddIcon((wxIcon const &)*arg2);
4545
4546 wxPyEndAllowThreads(__tstate);
4547 if (PyErr_Occurred()) SWIG_fail;
4548 }
4549 Py_INCREF(Py_None); resultobj = Py_None;
4550 return resultobj;
4551 fail:
4552 return NULL;
4553 }
4554
4555
4556 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4557 PyObject *resultobj;
4558 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4559 wxString *arg2 = 0 ;
4560 long arg3 ;
4561 bool temp2 = False ;
4562 PyObject * obj0 = 0 ;
4563 PyObject * obj1 = 0 ;
4564 PyObject * obj2 = 0 ;
4565 char *kwnames[] = {
4566 (char *) "self",(char *) "file",(char *) "type", NULL
4567 };
4568
4569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4572 {
4573 arg2 = wxString_in_helper(obj1);
4574 if (arg2 == NULL) SWIG_fail;
4575 temp2 = True;
4576 }
4577 arg3 = (long) SWIG_AsLong(obj2);
4578 if (PyErr_Occurred()) SWIG_fail;
4579 {
4580 PyThreadState* __tstate = wxPyBeginAllowThreads();
4581 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4582
4583 wxPyEndAllowThreads(__tstate);
4584 if (PyErr_Occurred()) SWIG_fail;
4585 }
4586 Py_INCREF(Py_None); resultobj = Py_None;
4587 {
4588 if (temp2)
4589 delete arg2;
4590 }
4591 return resultobj;
4592 fail:
4593 {
4594 if (temp2)
4595 delete arg2;
4596 }
4597 return NULL;
4598 }
4599
4600
4601 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4602 PyObject *resultobj;
4603 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4604 wxSize *arg2 = 0 ;
4605 wxIcon *result;
4606 wxSize temp2 ;
4607 PyObject * obj0 = 0 ;
4608 PyObject * obj1 = 0 ;
4609 char *kwnames[] = {
4610 (char *) "self",(char *) "size", NULL
4611 };
4612
4613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4616 {
4617 arg2 = &temp2;
4618 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4619 }
4620 {
4621 PyThreadState* __tstate = wxPyBeginAllowThreads();
4622 {
4623 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4624 result = (wxIcon *) &_result_ref;
4625 }
4626
4627 wxPyEndAllowThreads(__tstate);
4628 if (PyErr_Occurred()) SWIG_fail;
4629 }
4630 {
4631 wxIcon* resultptr = new wxIcon(*result);
4632 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4633 }
4634 return resultobj;
4635 fail:
4636 return NULL;
4637 }
4638
4639
4640 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4641 PyObject *obj;
4642 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4643 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4644 Py_INCREF(obj);
4645 return Py_BuildValue((char *)"");
4646 }
4647 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4648 PyObject *resultobj;
4649 wxString *arg1 = (wxString *) 0 ;
4650 long arg2 ;
4651 int arg3 = (int) 0 ;
4652 int arg4 = (int) 0 ;
4653 wxCursor *result;
4654 bool temp1 = False ;
4655 PyObject * obj0 = 0 ;
4656 PyObject * obj1 = 0 ;
4657 PyObject * obj2 = 0 ;
4658 PyObject * obj3 = 0 ;
4659 char *kwnames[] = {
4660 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4661 };
4662
4663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4664 {
4665 arg1 = wxString_in_helper(obj0);
4666 if (arg1 == NULL) SWIG_fail;
4667 temp1 = True;
4668 }
4669 arg2 = (long) SWIG_AsLong(obj1);
4670 if (PyErr_Occurred()) SWIG_fail;
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 = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4682
4683 wxPyEndAllowThreads(__tstate);
4684 if (PyErr_Occurred()) SWIG_fail;
4685 }
4686 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4687 {
4688 if (temp1)
4689 delete arg1;
4690 }
4691 return resultobj;
4692 fail:
4693 {
4694 if (temp1)
4695 delete arg1;
4696 }
4697 return NULL;
4698 }
4699
4700
4701 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4702 PyObject *resultobj;
4703 wxCursor *arg1 = (wxCursor *) 0 ;
4704 PyObject * obj0 = 0 ;
4705 char *kwnames[] = {
4706 (char *) "self", NULL
4707 };
4708
4709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4712 {
4713 PyThreadState* __tstate = wxPyBeginAllowThreads();
4714 delete arg1;
4715
4716 wxPyEndAllowThreads(__tstate);
4717 if (PyErr_Occurred()) SWIG_fail;
4718 }
4719 Py_INCREF(Py_None); resultobj = Py_None;
4720 return resultobj;
4721 fail:
4722 return NULL;
4723 }
4724
4725
4726 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4727 PyObject *resultobj;
4728 int arg1 ;
4729 wxCursor *result;
4730 PyObject * obj0 = 0 ;
4731 char *kwnames[] = {
4732 (char *) "id", NULL
4733 };
4734
4735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4736 arg1 = (int) SWIG_AsInt(obj0);
4737 if (PyErr_Occurred()) SWIG_fail;
4738 {
4739 PyThreadState* __tstate = wxPyBeginAllowThreads();
4740 result = (wxCursor *)new wxCursor(arg1);
4741
4742 wxPyEndAllowThreads(__tstate);
4743 if (PyErr_Occurred()) SWIG_fail;
4744 }
4745 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4746 return resultobj;
4747 fail:
4748 return NULL;
4749 }
4750
4751
4752 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4753 PyObject *resultobj;
4754 wxImage *arg1 = 0 ;
4755 wxCursor *result;
4756 PyObject * obj0 = 0 ;
4757 char *kwnames[] = {
4758 (char *) "image", NULL
4759 };
4760
4761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4763 SWIG_POINTER_EXCEPTION | 0)) == -1)
4764 SWIG_fail;
4765 if (arg1 == NULL) {
4766 PyErr_SetString(PyExc_TypeError,"null reference");
4767 SWIG_fail;
4768 }
4769 {
4770 PyThreadState* __tstate = wxPyBeginAllowThreads();
4771 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4772
4773 wxPyEndAllowThreads(__tstate);
4774 if (PyErr_Occurred()) SWIG_fail;
4775 }
4776 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4777 return resultobj;
4778 fail:
4779 return NULL;
4780 }
4781
4782
4783 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4784 PyObject *resultobj;
4785 wxCursor *arg1 = (wxCursor *) 0 ;
4786 bool result;
4787 PyObject * obj0 = 0 ;
4788 char *kwnames[] = {
4789 (char *) "self", NULL
4790 };
4791
4792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4795 {
4796 PyThreadState* __tstate = wxPyBeginAllowThreads();
4797 result = (bool)(arg1)->Ok();
4798
4799 wxPyEndAllowThreads(__tstate);
4800 if (PyErr_Occurred()) SWIG_fail;
4801 }
4802 {
4803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4804 }
4805 return resultobj;
4806 fail:
4807 return NULL;
4808 }
4809
4810
4811 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4812 PyObject *obj;
4813 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4814 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4815 Py_INCREF(obj);
4816 return Py_BuildValue((char *)"");
4817 }
4818 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4819 PyObject *resultobj;
4820 int arg1 = (int) 0 ;
4821 int arg2 = (int) 0 ;
4822 int arg3 = (int) 0 ;
4823 int arg4 = (int) 0 ;
4824 wxRegion *result;
4825 PyObject * obj0 = 0 ;
4826 PyObject * obj1 = 0 ;
4827 PyObject * obj2 = 0 ;
4828 PyObject * obj3 = 0 ;
4829 char *kwnames[] = {
4830 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4831 };
4832
4833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4834 if (obj0) {
4835 arg1 = (int) SWIG_AsInt(obj0);
4836 if (PyErr_Occurred()) SWIG_fail;
4837 }
4838 if (obj1) {
4839 arg2 = (int) SWIG_AsInt(obj1);
4840 if (PyErr_Occurred()) SWIG_fail;
4841 }
4842 if (obj2) {
4843 arg3 = (int) SWIG_AsInt(obj2);
4844 if (PyErr_Occurred()) SWIG_fail;
4845 }
4846 if (obj3) {
4847 arg4 = (int) SWIG_AsInt(obj3);
4848 if (PyErr_Occurred()) SWIG_fail;
4849 }
4850 {
4851 PyThreadState* __tstate = wxPyBeginAllowThreads();
4852 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4853
4854 wxPyEndAllowThreads(__tstate);
4855 if (PyErr_Occurred()) SWIG_fail;
4856 }
4857 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4858 return resultobj;
4859 fail:
4860 return NULL;
4861 }
4862
4863
4864 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4865 PyObject *resultobj;
4866 wxBitmap *arg1 = 0 ;
4867 wxColour const &arg2_defvalue = wxNullColour ;
4868 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4869 int arg3 = (int) 0 ;
4870 wxRegion *result;
4871 wxColour temp2 ;
4872 PyObject * obj0 = 0 ;
4873 PyObject * obj1 = 0 ;
4874 PyObject * obj2 = 0 ;
4875 char *kwnames[] = {
4876 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4877 };
4878
4879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4881 SWIG_POINTER_EXCEPTION | 0)) == -1)
4882 SWIG_fail;
4883 if (arg1 == NULL) {
4884 PyErr_SetString(PyExc_TypeError,"null reference");
4885 SWIG_fail;
4886 }
4887 if (obj1) {
4888 {
4889 arg2 = &temp2;
4890 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4891 }
4892 }
4893 if (obj2) {
4894 arg3 = (int) SWIG_AsInt(obj2);
4895 if (PyErr_Occurred()) SWIG_fail;
4896 }
4897 {
4898 PyThreadState* __tstate = wxPyBeginAllowThreads();
4899 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4900
4901 wxPyEndAllowThreads(__tstate);
4902 if (PyErr_Occurred()) SWIG_fail;
4903 }
4904 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4905 return resultobj;
4906 fail:
4907 return NULL;
4908 }
4909
4910
4911 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4912 PyObject *resultobj;
4913 int arg1 ;
4914 wxPoint *arg2 = (wxPoint *) 0 ;
4915 int arg3 = (int) wxWINDING_RULE ;
4916 wxRegion *result;
4917 PyObject * obj0 = 0 ;
4918 PyObject * obj1 = 0 ;
4919 char *kwnames[] = {
4920 (char *) "points",(char *) "fillStyle", NULL
4921 };
4922
4923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4924 {
4925 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4926 if (arg2 == NULL) SWIG_fail;
4927 }
4928 if (obj1) {
4929 arg3 = (int) SWIG_AsInt(obj1);
4930 if (PyErr_Occurred()) SWIG_fail;
4931 }
4932 {
4933 PyThreadState* __tstate = wxPyBeginAllowThreads();
4934 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
4935
4936 wxPyEndAllowThreads(__tstate);
4937 if (PyErr_Occurred()) SWIG_fail;
4938 }
4939 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4940 {
4941 if (arg2) delete [] arg2;
4942 }
4943 return resultobj;
4944 fail:
4945 {
4946 if (arg2) delete [] arg2;
4947 }
4948 return NULL;
4949 }
4950
4951
4952 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4953 PyObject *resultobj;
4954 wxRegion *arg1 = (wxRegion *) 0 ;
4955 PyObject * obj0 = 0 ;
4956 char *kwnames[] = {
4957 (char *) "self", NULL
4958 };
4959
4960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4963 {
4964 PyThreadState* __tstate = wxPyBeginAllowThreads();
4965 delete arg1;
4966
4967 wxPyEndAllowThreads(__tstate);
4968 if (PyErr_Occurred()) SWIG_fail;
4969 }
4970 Py_INCREF(Py_None); resultobj = Py_None;
4971 return resultobj;
4972 fail:
4973 return NULL;
4974 }
4975
4976
4977 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4978 PyObject *resultobj;
4979 wxRegion *arg1 = (wxRegion *) 0 ;
4980 PyObject * obj0 = 0 ;
4981 char *kwnames[] = {
4982 (char *) "self", NULL
4983 };
4984
4985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4988 {
4989 PyThreadState* __tstate = wxPyBeginAllowThreads();
4990 (arg1)->Clear();
4991
4992 wxPyEndAllowThreads(__tstate);
4993 if (PyErr_Occurred()) SWIG_fail;
4994 }
4995 Py_INCREF(Py_None); resultobj = Py_None;
4996 return resultobj;
4997 fail:
4998 return NULL;
4999 }
5000
5001
5002 static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
5003 PyObject *resultobj;
5004 wxRegion *arg1 = (wxRegion *) 0 ;
5005 int arg2 ;
5006 int arg3 ;
5007 bool result;
5008 PyObject * obj0 = 0 ;
5009 PyObject * obj1 = 0 ;
5010 PyObject * obj2 = 0 ;
5011 char *kwnames[] = {
5012 (char *) "self",(char *) "x",(char *) "y", NULL
5013 };
5014
5015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
5016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5018 arg2 = (int) SWIG_AsInt(obj1);
5019 if (PyErr_Occurred()) SWIG_fail;
5020 arg3 = (int) SWIG_AsInt(obj2);
5021 if (PyErr_Occurred()) SWIG_fail;
5022 {
5023 PyThreadState* __tstate = wxPyBeginAllowThreads();
5024 result = (bool)(arg1)->Offset(arg2,arg3);
5025
5026 wxPyEndAllowThreads(__tstate);
5027 if (PyErr_Occurred()) SWIG_fail;
5028 }
5029 {
5030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5031 }
5032 return resultobj;
5033 fail:
5034 return NULL;
5035 }
5036
5037
5038 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
5039 PyObject *resultobj;
5040 wxRegion *arg1 = (wxRegion *) 0 ;
5041 int arg2 ;
5042 int arg3 ;
5043 int result;
5044 PyObject * obj0 = 0 ;
5045 PyObject * obj1 = 0 ;
5046 PyObject * obj2 = 0 ;
5047 char *kwnames[] = {
5048 (char *) "self",(char *) "x",(char *) "y", NULL
5049 };
5050
5051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
5052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5054 arg2 = (int) SWIG_AsInt(obj1);
5055 if (PyErr_Occurred()) SWIG_fail;
5056 arg3 = (int) SWIG_AsInt(obj2);
5057 if (PyErr_Occurred()) SWIG_fail;
5058 {
5059 PyThreadState* __tstate = wxPyBeginAllowThreads();
5060 result = (int)(arg1)->Contains(arg2,arg3);
5061
5062 wxPyEndAllowThreads(__tstate);
5063 if (PyErr_Occurred()) SWIG_fail;
5064 }
5065 resultobj = SWIG_FromInt((int)result);
5066 return resultobj;
5067 fail:
5068 return NULL;
5069 }
5070
5071
5072 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
5073 PyObject *resultobj;
5074 wxRegion *arg1 = (wxRegion *) 0 ;
5075 wxPoint *arg2 = 0 ;
5076 int result;
5077 wxPoint temp2 ;
5078 PyObject * obj0 = 0 ;
5079 PyObject * obj1 = 0 ;
5080 char *kwnames[] = {
5081 (char *) "self",(char *) "pt", NULL
5082 };
5083
5084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
5085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5087 {
5088 arg2 = &temp2;
5089 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5090 }
5091 {
5092 PyThreadState* __tstate = wxPyBeginAllowThreads();
5093 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5094
5095 wxPyEndAllowThreads(__tstate);
5096 if (PyErr_Occurred()) SWIG_fail;
5097 }
5098 resultobj = SWIG_FromInt((int)result);
5099 return resultobj;
5100 fail:
5101 return NULL;
5102 }
5103
5104
5105 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5106 PyObject *resultobj;
5107 wxRegion *arg1 = (wxRegion *) 0 ;
5108 wxRect *arg2 = 0 ;
5109 int result;
5110 wxRect temp2 ;
5111 PyObject * obj0 = 0 ;
5112 PyObject * obj1 = 0 ;
5113 char *kwnames[] = {
5114 (char *) "self",(char *) "rect", NULL
5115 };
5116
5117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
5118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5120 {
5121 arg2 = &temp2;
5122 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5123 }
5124 {
5125 PyThreadState* __tstate = wxPyBeginAllowThreads();
5126 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5127
5128 wxPyEndAllowThreads(__tstate);
5129 if (PyErr_Occurred()) SWIG_fail;
5130 }
5131 resultobj = SWIG_FromInt((int)result);
5132 return resultobj;
5133 fail:
5134 return NULL;
5135 }
5136
5137
5138 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
5139 PyObject *resultobj;
5140 wxRegion *arg1 = (wxRegion *) 0 ;
5141 int arg2 ;
5142 int arg3 ;
5143 int arg4 ;
5144 int arg5 ;
5145 int result;
5146 PyObject * obj0 = 0 ;
5147 PyObject * obj1 = 0 ;
5148 PyObject * obj2 = 0 ;
5149 PyObject * obj3 = 0 ;
5150 PyObject * obj4 = 0 ;
5151 char *kwnames[] = {
5152 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5153 };
5154
5155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5158 arg2 = (int) SWIG_AsInt(obj1);
5159 if (PyErr_Occurred()) SWIG_fail;
5160 arg3 = (int) SWIG_AsInt(obj2);
5161 if (PyErr_Occurred()) SWIG_fail;
5162 arg4 = (int) SWIG_AsInt(obj3);
5163 if (PyErr_Occurred()) SWIG_fail;
5164 arg5 = (int) SWIG_AsInt(obj4);
5165 if (PyErr_Occurred()) SWIG_fail;
5166 {
5167 PyThreadState* __tstate = wxPyBeginAllowThreads();
5168 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5169
5170 wxPyEndAllowThreads(__tstate);
5171 if (PyErr_Occurred()) SWIG_fail;
5172 }
5173 resultobj = SWIG_FromInt((int)result);
5174 return resultobj;
5175 fail:
5176 return NULL;
5177 }
5178
5179
5180 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5181 PyObject *resultobj;
5182 wxRegion *arg1 = (wxRegion *) 0 ;
5183 wxRect result;
5184 PyObject * obj0 = 0 ;
5185 char *kwnames[] = {
5186 (char *) "self", NULL
5187 };
5188
5189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5192 {
5193 PyThreadState* __tstate = wxPyBeginAllowThreads();
5194 result = (arg1)->GetBox();
5195
5196 wxPyEndAllowThreads(__tstate);
5197 if (PyErr_Occurred()) SWIG_fail;
5198 }
5199 {
5200 wxRect * resultptr;
5201 resultptr = new wxRect((wxRect &) result);
5202 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5203 }
5204 return resultobj;
5205 fail:
5206 return NULL;
5207 }
5208
5209
5210 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
5211 PyObject *resultobj;
5212 wxRegion *arg1 = (wxRegion *) 0 ;
5213 int arg2 ;
5214 int arg3 ;
5215 int arg4 ;
5216 int arg5 ;
5217 bool result;
5218 PyObject * obj0 = 0 ;
5219 PyObject * obj1 = 0 ;
5220 PyObject * obj2 = 0 ;
5221 PyObject * obj3 = 0 ;
5222 PyObject * obj4 = 0 ;
5223 char *kwnames[] = {
5224 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5225 };
5226
5227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5230 arg2 = (int) SWIG_AsInt(obj1);
5231 if (PyErr_Occurred()) SWIG_fail;
5232 arg3 = (int) SWIG_AsInt(obj2);
5233 if (PyErr_Occurred()) SWIG_fail;
5234 arg4 = (int) SWIG_AsInt(obj3);
5235 if (PyErr_Occurred()) SWIG_fail;
5236 arg5 = (int) SWIG_AsInt(obj4);
5237 if (PyErr_Occurred()) SWIG_fail;
5238 {
5239 PyThreadState* __tstate = wxPyBeginAllowThreads();
5240 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5241
5242 wxPyEndAllowThreads(__tstate);
5243 if (PyErr_Occurred()) SWIG_fail;
5244 }
5245 {
5246 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5247 }
5248 return resultobj;
5249 fail:
5250 return NULL;
5251 }
5252
5253
5254 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5255 PyObject *resultobj;
5256 wxRegion *arg1 = (wxRegion *) 0 ;
5257 wxRect *arg2 = 0 ;
5258 bool result;
5259 wxRect temp2 ;
5260 PyObject * obj0 = 0 ;
5261 PyObject * obj1 = 0 ;
5262 char *kwnames[] = {
5263 (char *) "self",(char *) "rect", NULL
5264 };
5265
5266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5269 {
5270 arg2 = &temp2;
5271 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5272 }
5273 {
5274 PyThreadState* __tstate = wxPyBeginAllowThreads();
5275 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5276
5277 wxPyEndAllowThreads(__tstate);
5278 if (PyErr_Occurred()) SWIG_fail;
5279 }
5280 {
5281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5282 }
5283 return resultobj;
5284 fail:
5285 return NULL;
5286 }
5287
5288
5289 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5290 PyObject *resultobj;
5291 wxRegion *arg1 = (wxRegion *) 0 ;
5292 wxRegion *arg2 = 0 ;
5293 bool result;
5294 PyObject * obj0 = 0 ;
5295 PyObject * obj1 = 0 ;
5296 char *kwnames[] = {
5297 (char *) "self",(char *) "region", NULL
5298 };
5299
5300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5303 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5304 SWIG_POINTER_EXCEPTION | 0)) == -1)
5305 SWIG_fail;
5306 if (arg2 == NULL) {
5307 PyErr_SetString(PyExc_TypeError,"null reference");
5308 SWIG_fail;
5309 }
5310 {
5311 PyThreadState* __tstate = wxPyBeginAllowThreads();
5312 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5313
5314 wxPyEndAllowThreads(__tstate);
5315 if (PyErr_Occurred()) SWIG_fail;
5316 }
5317 {
5318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5319 }
5320 return resultobj;
5321 fail:
5322 return NULL;
5323 }
5324
5325
5326 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5327 PyObject *resultobj;
5328 wxRegion *arg1 = (wxRegion *) 0 ;
5329 bool result;
5330 PyObject * obj0 = 0 ;
5331 char *kwnames[] = {
5332 (char *) "self", NULL
5333 };
5334
5335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5338 {
5339 PyThreadState* __tstate = wxPyBeginAllowThreads();
5340 result = (bool)(arg1)->IsEmpty();
5341
5342 wxPyEndAllowThreads(__tstate);
5343 if (PyErr_Occurred()) SWIG_fail;
5344 }
5345 {
5346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5347 }
5348 return resultobj;
5349 fail:
5350 return NULL;
5351 }
5352
5353
5354 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5355 PyObject *resultobj;
5356 wxRegion *arg1 = (wxRegion *) 0 ;
5357 int arg2 ;
5358 int arg3 ;
5359 int arg4 ;
5360 int arg5 ;
5361 bool result;
5362 PyObject * obj0 = 0 ;
5363 PyObject * obj1 = 0 ;
5364 PyObject * obj2 = 0 ;
5365 PyObject * obj3 = 0 ;
5366 PyObject * obj4 = 0 ;
5367 char *kwnames[] = {
5368 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5369 };
5370
5371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5374 arg2 = (int) SWIG_AsInt(obj1);
5375 if (PyErr_Occurred()) SWIG_fail;
5376 arg3 = (int) SWIG_AsInt(obj2);
5377 if (PyErr_Occurred()) SWIG_fail;
5378 arg4 = (int) SWIG_AsInt(obj3);
5379 if (PyErr_Occurred()) SWIG_fail;
5380 arg5 = (int) SWIG_AsInt(obj4);
5381 if (PyErr_Occurred()) SWIG_fail;
5382 {
5383 PyThreadState* __tstate = wxPyBeginAllowThreads();
5384 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5385
5386 wxPyEndAllowThreads(__tstate);
5387 if (PyErr_Occurred()) SWIG_fail;
5388 }
5389 {
5390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5391 }
5392 return resultobj;
5393 fail:
5394 return NULL;
5395 }
5396
5397
5398 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5399 PyObject *resultobj;
5400 wxRegion *arg1 = (wxRegion *) 0 ;
5401 wxRect *arg2 = 0 ;
5402 bool result;
5403 wxRect temp2 ;
5404 PyObject * obj0 = 0 ;
5405 PyObject * obj1 = 0 ;
5406 char *kwnames[] = {
5407 (char *) "self",(char *) "rect", NULL
5408 };
5409
5410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5413 {
5414 arg2 = &temp2;
5415 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5416 }
5417 {
5418 PyThreadState* __tstate = wxPyBeginAllowThreads();
5419 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5420
5421 wxPyEndAllowThreads(__tstate);
5422 if (PyErr_Occurred()) SWIG_fail;
5423 }
5424 {
5425 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5426 }
5427 return resultobj;
5428 fail:
5429 return NULL;
5430 }
5431
5432
5433 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5434 PyObject *resultobj;
5435 wxRegion *arg1 = (wxRegion *) 0 ;
5436 wxRegion *arg2 = 0 ;
5437 bool result;
5438 PyObject * obj0 = 0 ;
5439 PyObject * obj1 = 0 ;
5440 char *kwnames[] = {
5441 (char *) "self",(char *) "region", NULL
5442 };
5443
5444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5447 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5448 SWIG_POINTER_EXCEPTION | 0)) == -1)
5449 SWIG_fail;
5450 if (arg2 == NULL) {
5451 PyErr_SetString(PyExc_TypeError,"null reference");
5452 SWIG_fail;
5453 }
5454 {
5455 PyThreadState* __tstate = wxPyBeginAllowThreads();
5456 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5457
5458 wxPyEndAllowThreads(__tstate);
5459 if (PyErr_Occurred()) SWIG_fail;
5460 }
5461 {
5462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5463 }
5464 return resultobj;
5465 fail:
5466 return NULL;
5467 }
5468
5469
5470 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5471 PyObject *resultobj;
5472 wxRegion *arg1 = (wxRegion *) 0 ;
5473 int arg2 ;
5474 int arg3 ;
5475 int arg4 ;
5476 int arg5 ;
5477 bool result;
5478 PyObject * obj0 = 0 ;
5479 PyObject * obj1 = 0 ;
5480 PyObject * obj2 = 0 ;
5481 PyObject * obj3 = 0 ;
5482 PyObject * obj4 = 0 ;
5483 char *kwnames[] = {
5484 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5485 };
5486
5487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5490 arg2 = (int) SWIG_AsInt(obj1);
5491 if (PyErr_Occurred()) SWIG_fail;
5492 arg3 = (int) SWIG_AsInt(obj2);
5493 if (PyErr_Occurred()) SWIG_fail;
5494 arg4 = (int) SWIG_AsInt(obj3);
5495 if (PyErr_Occurred()) SWIG_fail;
5496 arg5 = (int) SWIG_AsInt(obj4);
5497 if (PyErr_Occurred()) SWIG_fail;
5498 {
5499 PyThreadState* __tstate = wxPyBeginAllowThreads();
5500 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5501
5502 wxPyEndAllowThreads(__tstate);
5503 if (PyErr_Occurred()) SWIG_fail;
5504 }
5505 {
5506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5507 }
5508 return resultobj;
5509 fail:
5510 return NULL;
5511 }
5512
5513
5514 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5515 PyObject *resultobj;
5516 wxRegion *arg1 = (wxRegion *) 0 ;
5517 wxRect *arg2 = 0 ;
5518 bool result;
5519 wxRect temp2 ;
5520 PyObject * obj0 = 0 ;
5521 PyObject * obj1 = 0 ;
5522 char *kwnames[] = {
5523 (char *) "self",(char *) "rect", NULL
5524 };
5525
5526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5529 {
5530 arg2 = &temp2;
5531 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5532 }
5533 {
5534 PyThreadState* __tstate = wxPyBeginAllowThreads();
5535 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5536
5537 wxPyEndAllowThreads(__tstate);
5538 if (PyErr_Occurred()) SWIG_fail;
5539 }
5540 {
5541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5542 }
5543 return resultobj;
5544 fail:
5545 return NULL;
5546 }
5547
5548
5549 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5550 PyObject *resultobj;
5551 wxRegion *arg1 = (wxRegion *) 0 ;
5552 wxRegion *arg2 = 0 ;
5553 bool result;
5554 PyObject * obj0 = 0 ;
5555 PyObject * obj1 = 0 ;
5556 char *kwnames[] = {
5557 (char *) "self",(char *) "region", NULL
5558 };
5559
5560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5563 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5564 SWIG_POINTER_EXCEPTION | 0)) == -1)
5565 SWIG_fail;
5566 if (arg2 == NULL) {
5567 PyErr_SetString(PyExc_TypeError,"null reference");
5568 SWIG_fail;
5569 }
5570 {
5571 PyThreadState* __tstate = wxPyBeginAllowThreads();
5572 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5573
5574 wxPyEndAllowThreads(__tstate);
5575 if (PyErr_Occurred()) SWIG_fail;
5576 }
5577 {
5578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5579 }
5580 return resultobj;
5581 fail:
5582 return NULL;
5583 }
5584
5585
5586 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5587 PyObject *resultobj;
5588 wxRegion *arg1 = (wxRegion *) 0 ;
5589 int arg2 ;
5590 int arg3 ;
5591 int arg4 ;
5592 int arg5 ;
5593 bool result;
5594 PyObject * obj0 = 0 ;
5595 PyObject * obj1 = 0 ;
5596 PyObject * obj2 = 0 ;
5597 PyObject * obj3 = 0 ;
5598 PyObject * obj4 = 0 ;
5599 char *kwnames[] = {
5600 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5601 };
5602
5603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5606 arg2 = (int) SWIG_AsInt(obj1);
5607 if (PyErr_Occurred()) SWIG_fail;
5608 arg3 = (int) SWIG_AsInt(obj2);
5609 if (PyErr_Occurred()) SWIG_fail;
5610 arg4 = (int) SWIG_AsInt(obj3);
5611 if (PyErr_Occurred()) SWIG_fail;
5612 arg5 = (int) SWIG_AsInt(obj4);
5613 if (PyErr_Occurred()) SWIG_fail;
5614 {
5615 PyThreadState* __tstate = wxPyBeginAllowThreads();
5616 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5617
5618 wxPyEndAllowThreads(__tstate);
5619 if (PyErr_Occurred()) SWIG_fail;
5620 }
5621 {
5622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5623 }
5624 return resultobj;
5625 fail:
5626 return NULL;
5627 }
5628
5629
5630 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5631 PyObject *resultobj;
5632 wxRegion *arg1 = (wxRegion *) 0 ;
5633 wxRect *arg2 = 0 ;
5634 bool result;
5635 wxRect temp2 ;
5636 PyObject * obj0 = 0 ;
5637 PyObject * obj1 = 0 ;
5638 char *kwnames[] = {
5639 (char *) "self",(char *) "rect", NULL
5640 };
5641
5642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5645 {
5646 arg2 = &temp2;
5647 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5648 }
5649 {
5650 PyThreadState* __tstate = wxPyBeginAllowThreads();
5651 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5652
5653 wxPyEndAllowThreads(__tstate);
5654 if (PyErr_Occurred()) SWIG_fail;
5655 }
5656 {
5657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5658 }
5659 return resultobj;
5660 fail:
5661 return NULL;
5662 }
5663
5664
5665 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5666 PyObject *resultobj;
5667 wxRegion *arg1 = (wxRegion *) 0 ;
5668 wxRegion *arg2 = 0 ;
5669 bool result;
5670 PyObject * obj0 = 0 ;
5671 PyObject * obj1 = 0 ;
5672 char *kwnames[] = {
5673 (char *) "self",(char *) "region", NULL
5674 };
5675
5676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5679 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5680 SWIG_POINTER_EXCEPTION | 0)) == -1)
5681 SWIG_fail;
5682 if (arg2 == NULL) {
5683 PyErr_SetString(PyExc_TypeError,"null reference");
5684 SWIG_fail;
5685 }
5686 {
5687 PyThreadState* __tstate = wxPyBeginAllowThreads();
5688 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5689
5690 wxPyEndAllowThreads(__tstate);
5691 if (PyErr_Occurred()) SWIG_fail;
5692 }
5693 {
5694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5695 }
5696 return resultobj;
5697 fail:
5698 return NULL;
5699 }
5700
5701
5702 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5703 PyObject *resultobj;
5704 wxRegion *arg1 = (wxRegion *) 0 ;
5705 SwigValueWrapper< wxBitmap > result;
5706 PyObject * obj0 = 0 ;
5707 char *kwnames[] = {
5708 (char *) "self", NULL
5709 };
5710
5711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5714 {
5715 PyThreadState* __tstate = wxPyBeginAllowThreads();
5716 result = (arg1)->ConvertToBitmap();
5717
5718 wxPyEndAllowThreads(__tstate);
5719 if (PyErr_Occurred()) SWIG_fail;
5720 }
5721 {
5722 wxBitmap * resultptr;
5723 resultptr = new wxBitmap((wxBitmap &) result);
5724 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5725 }
5726 return resultobj;
5727 fail:
5728 return NULL;
5729 }
5730
5731
5732 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5733 PyObject *resultobj;
5734 wxRegion *arg1 = (wxRegion *) 0 ;
5735 wxBitmap *arg2 = 0 ;
5736 wxColour const &arg3_defvalue = wxNullColour ;
5737 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
5738 int arg4 = (int) 0 ;
5739 bool result;
5740 wxColour temp3 ;
5741 PyObject * obj0 = 0 ;
5742 PyObject * obj1 = 0 ;
5743 PyObject * obj2 = 0 ;
5744 PyObject * obj3 = 0 ;
5745 char *kwnames[] = {
5746 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5747 };
5748
5749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5752 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5753 SWIG_POINTER_EXCEPTION | 0)) == -1)
5754 SWIG_fail;
5755 if (arg2 == NULL) {
5756 PyErr_SetString(PyExc_TypeError,"null reference");
5757 SWIG_fail;
5758 }
5759 if (obj2) {
5760 {
5761 arg3 = &temp3;
5762 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5763 }
5764 }
5765 if (obj3) {
5766 arg4 = (int) SWIG_AsInt(obj3);
5767 if (PyErr_Occurred()) SWIG_fail;
5768 }
5769 {
5770 PyThreadState* __tstate = wxPyBeginAllowThreads();
5771 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5772
5773 wxPyEndAllowThreads(__tstate);
5774 if (PyErr_Occurred()) SWIG_fail;
5775 }
5776 {
5777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5778 }
5779 return resultobj;
5780 fail:
5781 return NULL;
5782 }
5783
5784
5785 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5786 PyObject *obj;
5787 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5788 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5789 Py_INCREF(obj);
5790 return Py_BuildValue((char *)"");
5791 }
5792 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5793 PyObject *resultobj;
5794 wxRegion *arg1 = 0 ;
5795 wxRegionIterator *result;
5796 PyObject * obj0 = 0 ;
5797 char *kwnames[] = {
5798 (char *) "region", NULL
5799 };
5800
5801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5803 SWIG_POINTER_EXCEPTION | 0)) == -1)
5804 SWIG_fail;
5805 if (arg1 == NULL) {
5806 PyErr_SetString(PyExc_TypeError,"null reference");
5807 SWIG_fail;
5808 }
5809 {
5810 PyThreadState* __tstate = wxPyBeginAllowThreads();
5811 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5812
5813 wxPyEndAllowThreads(__tstate);
5814 if (PyErr_Occurred()) SWIG_fail;
5815 }
5816 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
5817 return resultobj;
5818 fail:
5819 return NULL;
5820 }
5821
5822
5823 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5824 PyObject *resultobj;
5825 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5826 PyObject * obj0 = 0 ;
5827 char *kwnames[] = {
5828 (char *) "self", NULL
5829 };
5830
5831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5834 {
5835 PyThreadState* __tstate = wxPyBeginAllowThreads();
5836 delete arg1;
5837
5838 wxPyEndAllowThreads(__tstate);
5839 if (PyErr_Occurred()) SWIG_fail;
5840 }
5841 Py_INCREF(Py_None); resultobj = Py_None;
5842 return resultobj;
5843 fail:
5844 return NULL;
5845 }
5846
5847
5848 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5849 PyObject *resultobj;
5850 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5851 int result;
5852 PyObject * obj0 = 0 ;
5853 char *kwnames[] = {
5854 (char *) "self", NULL
5855 };
5856
5857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5860 {
5861 PyThreadState* __tstate = wxPyBeginAllowThreads();
5862 result = (int)(arg1)->GetX();
5863
5864 wxPyEndAllowThreads(__tstate);
5865 if (PyErr_Occurred()) SWIG_fail;
5866 }
5867 resultobj = SWIG_FromInt((int)result);
5868 return resultobj;
5869 fail:
5870 return NULL;
5871 }
5872
5873
5874 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5875 PyObject *resultobj;
5876 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5877 int result;
5878 PyObject * obj0 = 0 ;
5879 char *kwnames[] = {
5880 (char *) "self", NULL
5881 };
5882
5883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5886 {
5887 PyThreadState* __tstate = wxPyBeginAllowThreads();
5888 result = (int)(arg1)->GetY();
5889
5890 wxPyEndAllowThreads(__tstate);
5891 if (PyErr_Occurred()) SWIG_fail;
5892 }
5893 resultobj = SWIG_FromInt((int)result);
5894 return resultobj;
5895 fail:
5896 return NULL;
5897 }
5898
5899
5900 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5901 PyObject *resultobj;
5902 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5903 int result;
5904 PyObject * obj0 = 0 ;
5905 char *kwnames[] = {
5906 (char *) "self", NULL
5907 };
5908
5909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5912 {
5913 PyThreadState* __tstate = wxPyBeginAllowThreads();
5914 result = (int)(arg1)->GetW();
5915
5916 wxPyEndAllowThreads(__tstate);
5917 if (PyErr_Occurred()) SWIG_fail;
5918 }
5919 resultobj = SWIG_FromInt((int)result);
5920 return resultobj;
5921 fail:
5922 return NULL;
5923 }
5924
5925
5926 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5927 PyObject *resultobj;
5928 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5929 int result;
5930 PyObject * obj0 = 0 ;
5931 char *kwnames[] = {
5932 (char *) "self", NULL
5933 };
5934
5935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5938 {
5939 PyThreadState* __tstate = wxPyBeginAllowThreads();
5940 result = (int)(arg1)->GetWidth();
5941
5942 wxPyEndAllowThreads(__tstate);
5943 if (PyErr_Occurred()) SWIG_fail;
5944 }
5945 resultobj = SWIG_FromInt((int)result);
5946 return resultobj;
5947 fail:
5948 return NULL;
5949 }
5950
5951
5952 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5953 PyObject *resultobj;
5954 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5955 int result;
5956 PyObject * obj0 = 0 ;
5957 char *kwnames[] = {
5958 (char *) "self", NULL
5959 };
5960
5961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5964 {
5965 PyThreadState* __tstate = wxPyBeginAllowThreads();
5966 result = (int)(arg1)->GetH();
5967
5968 wxPyEndAllowThreads(__tstate);
5969 if (PyErr_Occurred()) SWIG_fail;
5970 }
5971 resultobj = SWIG_FromInt((int)result);
5972 return resultobj;
5973 fail:
5974 return NULL;
5975 }
5976
5977
5978 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5979 PyObject *resultobj;
5980 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5981 int result;
5982 PyObject * obj0 = 0 ;
5983 char *kwnames[] = {
5984 (char *) "self", NULL
5985 };
5986
5987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5990 {
5991 PyThreadState* __tstate = wxPyBeginAllowThreads();
5992 result = (int)(arg1)->GetHeight();
5993
5994 wxPyEndAllowThreads(__tstate);
5995 if (PyErr_Occurred()) SWIG_fail;
5996 }
5997 resultobj = SWIG_FromInt((int)result);
5998 return resultobj;
5999 fail:
6000 return NULL;
6001 }
6002
6003
6004 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
6005 PyObject *resultobj;
6006 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6007 wxRect result;
6008 PyObject * obj0 = 0 ;
6009 char *kwnames[] = {
6010 (char *) "self", NULL
6011 };
6012
6013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
6014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6016 {
6017 PyThreadState* __tstate = wxPyBeginAllowThreads();
6018 result = (arg1)->GetRect();
6019
6020 wxPyEndAllowThreads(__tstate);
6021 if (PyErr_Occurred()) SWIG_fail;
6022 }
6023 {
6024 wxRect * resultptr;
6025 resultptr = new wxRect((wxRect &) result);
6026 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
6027 }
6028 return resultobj;
6029 fail:
6030 return NULL;
6031 }
6032
6033
6034 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
6035 PyObject *resultobj;
6036 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6037 bool result;
6038 PyObject * obj0 = 0 ;
6039 char *kwnames[] = {
6040 (char *) "self", NULL
6041 };
6042
6043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
6044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6046 {
6047 PyThreadState* __tstate = wxPyBeginAllowThreads();
6048 result = (bool)(arg1)->HaveRects();
6049
6050 wxPyEndAllowThreads(__tstate);
6051 if (PyErr_Occurred()) SWIG_fail;
6052 }
6053 {
6054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6055 }
6056 return resultobj;
6057 fail:
6058 return NULL;
6059 }
6060
6061
6062 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
6063 PyObject *resultobj;
6064 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6065 PyObject * obj0 = 0 ;
6066 char *kwnames[] = {
6067 (char *) "self", NULL
6068 };
6069
6070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
6071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6073 {
6074 PyThreadState* __tstate = wxPyBeginAllowThreads();
6075 (arg1)->Reset();
6076
6077 wxPyEndAllowThreads(__tstate);
6078 if (PyErr_Occurred()) SWIG_fail;
6079 }
6080 Py_INCREF(Py_None); resultobj = Py_None;
6081 return resultobj;
6082 fail:
6083 return NULL;
6084 }
6085
6086
6087 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
6088 PyObject *resultobj;
6089 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6090 PyObject * obj0 = 0 ;
6091 char *kwnames[] = {
6092 (char *) "self", NULL
6093 };
6094
6095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
6096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6098 {
6099 PyThreadState* __tstate = wxPyBeginAllowThreads();
6100 wxRegionIterator_Next(arg1);
6101
6102 wxPyEndAllowThreads(__tstate);
6103 if (PyErr_Occurred()) SWIG_fail;
6104 }
6105 Py_INCREF(Py_None); resultobj = Py_None;
6106 return resultobj;
6107 fail:
6108 return NULL;
6109 }
6110
6111
6112 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
6113 PyObject *resultobj;
6114 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6115 bool result;
6116 PyObject * obj0 = 0 ;
6117 char *kwnames[] = {
6118 (char *) "self", NULL
6119 };
6120
6121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
6122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6124 {
6125 PyThreadState* __tstate = wxPyBeginAllowThreads();
6126 result = (bool)wxRegionIterator___nonzero__(arg1);
6127
6128 wxPyEndAllowThreads(__tstate);
6129 if (PyErr_Occurred()) SWIG_fail;
6130 }
6131 {
6132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6133 }
6134 return resultobj;
6135 fail:
6136 return NULL;
6137 }
6138
6139
6140 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
6141 PyObject *obj;
6142 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6143 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6144 Py_INCREF(obj);
6145 return Py_BuildValue((char *)"");
6146 }
6147 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6148 PyObject *resultobj;
6149 wxNativeFontInfo *result;
6150 char *kwnames[] = {
6151 NULL
6152 };
6153
6154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6155 {
6156 PyThreadState* __tstate = wxPyBeginAllowThreads();
6157 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6158
6159 wxPyEndAllowThreads(__tstate);
6160 if (PyErr_Occurred()) SWIG_fail;
6161 }
6162 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
6163 return resultobj;
6164 fail:
6165 return NULL;
6166 }
6167
6168
6169 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6170 PyObject *resultobj;
6171 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6172 PyObject * obj0 = 0 ;
6173 char *kwnames[] = {
6174 (char *) "self", NULL
6175 };
6176
6177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6180 {
6181 PyThreadState* __tstate = wxPyBeginAllowThreads();
6182 delete arg1;
6183
6184 wxPyEndAllowThreads(__tstate);
6185 if (PyErr_Occurred()) SWIG_fail;
6186 }
6187 Py_INCREF(Py_None); resultobj = Py_None;
6188 return resultobj;
6189 fail:
6190 return NULL;
6191 }
6192
6193
6194 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6195 PyObject *resultobj;
6196 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6197 PyObject * obj0 = 0 ;
6198 char *kwnames[] = {
6199 (char *) "self", NULL
6200 };
6201
6202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6205 {
6206 PyThreadState* __tstate = wxPyBeginAllowThreads();
6207 (arg1)->Init();
6208
6209 wxPyEndAllowThreads(__tstate);
6210 if (PyErr_Occurred()) SWIG_fail;
6211 }
6212 Py_INCREF(Py_None); resultobj = Py_None;
6213 return resultobj;
6214 fail:
6215 return NULL;
6216 }
6217
6218
6219 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6220 PyObject *resultobj;
6221 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6222 wxFont *arg2 = 0 ;
6223 PyObject * obj0 = 0 ;
6224 PyObject * obj1 = 0 ;
6225 char *kwnames[] = {
6226 (char *) "self",(char *) "font", NULL
6227 };
6228
6229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6232 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6233 SWIG_POINTER_EXCEPTION | 0)) == -1)
6234 SWIG_fail;
6235 if (arg2 == NULL) {
6236 PyErr_SetString(PyExc_TypeError,"null reference");
6237 SWIG_fail;
6238 }
6239 {
6240 PyThreadState* __tstate = wxPyBeginAllowThreads();
6241 (arg1)->InitFromFont((wxFont const &)*arg2);
6242
6243 wxPyEndAllowThreads(__tstate);
6244 if (PyErr_Occurred()) SWIG_fail;
6245 }
6246 Py_INCREF(Py_None); resultobj = Py_None;
6247 return resultobj;
6248 fail:
6249 return NULL;
6250 }
6251
6252
6253 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6254 PyObject *resultobj;
6255 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6256 int result;
6257 PyObject * obj0 = 0 ;
6258 char *kwnames[] = {
6259 (char *) "self", NULL
6260 };
6261
6262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6265 {
6266 PyThreadState* __tstate = wxPyBeginAllowThreads();
6267 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6268
6269 wxPyEndAllowThreads(__tstate);
6270 if (PyErr_Occurred()) SWIG_fail;
6271 }
6272 resultobj = SWIG_FromInt((int)result);
6273 return resultobj;
6274 fail:
6275 return NULL;
6276 }
6277
6278
6279 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6280 PyObject *resultobj;
6281 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6282 int result;
6283 PyObject * obj0 = 0 ;
6284 char *kwnames[] = {
6285 (char *) "self", NULL
6286 };
6287
6288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6291 {
6292 PyThreadState* __tstate = wxPyBeginAllowThreads();
6293 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6294
6295 wxPyEndAllowThreads(__tstate);
6296 if (PyErr_Occurred()) SWIG_fail;
6297 }
6298 resultobj = SWIG_FromInt((int)result);
6299 return resultobj;
6300 fail:
6301 return NULL;
6302 }
6303
6304
6305 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6306 PyObject *resultobj;
6307 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6308 int result;
6309 PyObject * obj0 = 0 ;
6310 char *kwnames[] = {
6311 (char *) "self", NULL
6312 };
6313
6314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6317 {
6318 PyThreadState* __tstate = wxPyBeginAllowThreads();
6319 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6320
6321 wxPyEndAllowThreads(__tstate);
6322 if (PyErr_Occurred()) SWIG_fail;
6323 }
6324 resultobj = SWIG_FromInt((int)result);
6325 return resultobj;
6326 fail:
6327 return NULL;
6328 }
6329
6330
6331 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6332 PyObject *resultobj;
6333 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6334 bool result;
6335 PyObject * obj0 = 0 ;
6336 char *kwnames[] = {
6337 (char *) "self", NULL
6338 };
6339
6340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6343 {
6344 PyThreadState* __tstate = wxPyBeginAllowThreads();
6345 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6346
6347 wxPyEndAllowThreads(__tstate);
6348 if (PyErr_Occurred()) SWIG_fail;
6349 }
6350 {
6351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6352 }
6353 return resultobj;
6354 fail:
6355 return NULL;
6356 }
6357
6358
6359 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6360 PyObject *resultobj;
6361 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6362 wxString result;
6363 PyObject * obj0 = 0 ;
6364 char *kwnames[] = {
6365 (char *) "self", NULL
6366 };
6367
6368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6371 {
6372 PyThreadState* __tstate = wxPyBeginAllowThreads();
6373 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6374
6375 wxPyEndAllowThreads(__tstate);
6376 if (PyErr_Occurred()) SWIG_fail;
6377 }
6378 {
6379 #if wxUSE_UNICODE
6380 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6381 #else
6382 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6383 #endif
6384 }
6385 return resultobj;
6386 fail:
6387 return NULL;
6388 }
6389
6390
6391 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6392 PyObject *resultobj;
6393 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6394 int result;
6395 PyObject * obj0 = 0 ;
6396 char *kwnames[] = {
6397 (char *) "self", NULL
6398 };
6399
6400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6403 {
6404 PyThreadState* __tstate = wxPyBeginAllowThreads();
6405 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6406
6407 wxPyEndAllowThreads(__tstate);
6408 if (PyErr_Occurred()) SWIG_fail;
6409 }
6410 resultobj = SWIG_FromInt((int)result);
6411 return resultobj;
6412 fail:
6413 return NULL;
6414 }
6415
6416
6417 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6418 PyObject *resultobj;
6419 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6420 int result;
6421 PyObject * obj0 = 0 ;
6422 char *kwnames[] = {
6423 (char *) "self", NULL
6424 };
6425
6426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6429 {
6430 PyThreadState* __tstate = wxPyBeginAllowThreads();
6431 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6432
6433 wxPyEndAllowThreads(__tstate);
6434 if (PyErr_Occurred()) SWIG_fail;
6435 }
6436 resultobj = SWIG_FromInt((int)result);
6437 return resultobj;
6438 fail:
6439 return NULL;
6440 }
6441
6442
6443 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6444 PyObject *resultobj;
6445 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6446 int arg2 ;
6447 PyObject * obj0 = 0 ;
6448 PyObject * obj1 = 0 ;
6449 char *kwnames[] = {
6450 (char *) "self",(char *) "pointsize", NULL
6451 };
6452
6453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6456 arg2 = (int) SWIG_AsInt(obj1);
6457 if (PyErr_Occurred()) SWIG_fail;
6458 {
6459 PyThreadState* __tstate = wxPyBeginAllowThreads();
6460 (arg1)->SetPointSize(arg2);
6461
6462 wxPyEndAllowThreads(__tstate);
6463 if (PyErr_Occurred()) SWIG_fail;
6464 }
6465 Py_INCREF(Py_None); resultobj = Py_None;
6466 return resultobj;
6467 fail:
6468 return NULL;
6469 }
6470
6471
6472 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6473 PyObject *resultobj;
6474 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6475 int arg2 ;
6476 PyObject * obj0 = 0 ;
6477 PyObject * obj1 = 0 ;
6478 char *kwnames[] = {
6479 (char *) "self",(char *) "style", NULL
6480 };
6481
6482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6485 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6486 if (PyErr_Occurred()) SWIG_fail;
6487 {
6488 PyThreadState* __tstate = wxPyBeginAllowThreads();
6489 (arg1)->SetStyle((wxFontStyle )arg2);
6490
6491 wxPyEndAllowThreads(__tstate);
6492 if (PyErr_Occurred()) SWIG_fail;
6493 }
6494 Py_INCREF(Py_None); resultobj = Py_None;
6495 return resultobj;
6496 fail:
6497 return NULL;
6498 }
6499
6500
6501 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6502 PyObject *resultobj;
6503 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6504 int arg2 ;
6505 PyObject * obj0 = 0 ;
6506 PyObject * obj1 = 0 ;
6507 char *kwnames[] = {
6508 (char *) "self",(char *) "weight", NULL
6509 };
6510
6511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6514 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6515 if (PyErr_Occurred()) SWIG_fail;
6516 {
6517 PyThreadState* __tstate = wxPyBeginAllowThreads();
6518 (arg1)->SetWeight((wxFontWeight )arg2);
6519
6520 wxPyEndAllowThreads(__tstate);
6521 if (PyErr_Occurred()) SWIG_fail;
6522 }
6523 Py_INCREF(Py_None); resultobj = Py_None;
6524 return resultobj;
6525 fail:
6526 return NULL;
6527 }
6528
6529
6530 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6531 PyObject *resultobj;
6532 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6533 bool arg2 ;
6534 PyObject * obj0 = 0 ;
6535 PyObject * obj1 = 0 ;
6536 char *kwnames[] = {
6537 (char *) "self",(char *) "underlined", NULL
6538 };
6539
6540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6543 arg2 = (bool) SWIG_AsBool(obj1);
6544 if (PyErr_Occurred()) SWIG_fail;
6545 {
6546 PyThreadState* __tstate = wxPyBeginAllowThreads();
6547 (arg1)->SetUnderlined(arg2);
6548
6549 wxPyEndAllowThreads(__tstate);
6550 if (PyErr_Occurred()) SWIG_fail;
6551 }
6552 Py_INCREF(Py_None); resultobj = Py_None;
6553 return resultobj;
6554 fail:
6555 return NULL;
6556 }
6557
6558
6559 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6560 PyObject *resultobj;
6561 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6562 wxString arg2 ;
6563 PyObject * obj0 = 0 ;
6564 PyObject * obj1 = 0 ;
6565 char *kwnames[] = {
6566 (char *) "self",(char *) "facename", NULL
6567 };
6568
6569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6572 {
6573 wxString* sptr = wxString_in_helper(obj1);
6574 if (sptr == NULL) SWIG_fail;
6575 arg2 = *sptr;
6576 delete sptr;
6577 }
6578 {
6579 PyThreadState* __tstate = wxPyBeginAllowThreads();
6580 (arg1)->SetFaceName(arg2);
6581
6582 wxPyEndAllowThreads(__tstate);
6583 if (PyErr_Occurred()) SWIG_fail;
6584 }
6585 Py_INCREF(Py_None); resultobj = Py_None;
6586 return resultobj;
6587 fail:
6588 return NULL;
6589 }
6590
6591
6592 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6593 PyObject *resultobj;
6594 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6595 int arg2 ;
6596 PyObject * obj0 = 0 ;
6597 PyObject * obj1 = 0 ;
6598 char *kwnames[] = {
6599 (char *) "self",(char *) "family", NULL
6600 };
6601
6602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6605 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
6606 if (PyErr_Occurred()) SWIG_fail;
6607 {
6608 PyThreadState* __tstate = wxPyBeginAllowThreads();
6609 (arg1)->SetFamily((wxFontFamily )arg2);
6610
6611 wxPyEndAllowThreads(__tstate);
6612 if (PyErr_Occurred()) SWIG_fail;
6613 }
6614 Py_INCREF(Py_None); resultobj = Py_None;
6615 return resultobj;
6616 fail:
6617 return NULL;
6618 }
6619
6620
6621 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6622 PyObject *resultobj;
6623 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6624 int arg2 ;
6625 PyObject * obj0 = 0 ;
6626 PyObject * obj1 = 0 ;
6627 char *kwnames[] = {
6628 (char *) "self",(char *) "encoding", NULL
6629 };
6630
6631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6634 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6635 if (PyErr_Occurred()) SWIG_fail;
6636 {
6637 PyThreadState* __tstate = wxPyBeginAllowThreads();
6638 (arg1)->SetEncoding((wxFontEncoding )arg2);
6639
6640 wxPyEndAllowThreads(__tstate);
6641 if (PyErr_Occurred()) SWIG_fail;
6642 }
6643 Py_INCREF(Py_None); resultobj = Py_None;
6644 return resultobj;
6645 fail:
6646 return NULL;
6647 }
6648
6649
6650 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6651 PyObject *resultobj;
6652 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6653 wxString *arg2 = 0 ;
6654 bool result;
6655 bool temp2 = False ;
6656 PyObject * obj0 = 0 ;
6657 PyObject * obj1 = 0 ;
6658 char *kwnames[] = {
6659 (char *) "self",(char *) "s", NULL
6660 };
6661
6662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6665 {
6666 arg2 = wxString_in_helper(obj1);
6667 if (arg2 == NULL) SWIG_fail;
6668 temp2 = True;
6669 }
6670 {
6671 PyThreadState* __tstate = wxPyBeginAllowThreads();
6672 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6673
6674 wxPyEndAllowThreads(__tstate);
6675 if (PyErr_Occurred()) SWIG_fail;
6676 }
6677 {
6678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6679 }
6680 {
6681 if (temp2)
6682 delete arg2;
6683 }
6684 return resultobj;
6685 fail:
6686 {
6687 if (temp2)
6688 delete arg2;
6689 }
6690 return NULL;
6691 }
6692
6693
6694 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6695 PyObject *resultobj;
6696 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6697 wxString result;
6698 PyObject * obj0 = 0 ;
6699 char *kwnames[] = {
6700 (char *) "self", NULL
6701 };
6702
6703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6706 {
6707 PyThreadState* __tstate = wxPyBeginAllowThreads();
6708 result = ((wxNativeFontInfo const *)arg1)->ToString();
6709
6710 wxPyEndAllowThreads(__tstate);
6711 if (PyErr_Occurred()) SWIG_fail;
6712 }
6713 {
6714 #if wxUSE_UNICODE
6715 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6716 #else
6717 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6718 #endif
6719 }
6720 return resultobj;
6721 fail:
6722 return NULL;
6723 }
6724
6725
6726 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6727 PyObject *resultobj;
6728 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6729 wxString result;
6730 PyObject * obj0 = 0 ;
6731 char *kwnames[] = {
6732 (char *) "self", NULL
6733 };
6734
6735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6738 {
6739 PyThreadState* __tstate = wxPyBeginAllowThreads();
6740 result = wxNativeFontInfo___str__(arg1);
6741
6742 wxPyEndAllowThreads(__tstate);
6743 if (PyErr_Occurred()) SWIG_fail;
6744 }
6745 {
6746 #if wxUSE_UNICODE
6747 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6748 #else
6749 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6750 #endif
6751 }
6752 return resultobj;
6753 fail:
6754 return NULL;
6755 }
6756
6757
6758 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6759 PyObject *resultobj;
6760 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6761 wxString *arg2 = 0 ;
6762 bool result;
6763 bool temp2 = False ;
6764 PyObject * obj0 = 0 ;
6765 PyObject * obj1 = 0 ;
6766 char *kwnames[] = {
6767 (char *) "self",(char *) "s", NULL
6768 };
6769
6770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6773 {
6774 arg2 = wxString_in_helper(obj1);
6775 if (arg2 == NULL) SWIG_fail;
6776 temp2 = True;
6777 }
6778 {
6779 PyThreadState* __tstate = wxPyBeginAllowThreads();
6780 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6781
6782 wxPyEndAllowThreads(__tstate);
6783 if (PyErr_Occurred()) SWIG_fail;
6784 }
6785 {
6786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6787 }
6788 {
6789 if (temp2)
6790 delete arg2;
6791 }
6792 return resultobj;
6793 fail:
6794 {
6795 if (temp2)
6796 delete arg2;
6797 }
6798 return NULL;
6799 }
6800
6801
6802 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6803 PyObject *resultobj;
6804 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6805 wxString result;
6806 PyObject * obj0 = 0 ;
6807 char *kwnames[] = {
6808 (char *) "self", NULL
6809 };
6810
6811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6814 {
6815 PyThreadState* __tstate = wxPyBeginAllowThreads();
6816 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6817
6818 wxPyEndAllowThreads(__tstate);
6819 if (PyErr_Occurred()) SWIG_fail;
6820 }
6821 {
6822 #if wxUSE_UNICODE
6823 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6824 #else
6825 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6826 #endif
6827 }
6828 return resultobj;
6829 fail:
6830 return NULL;
6831 }
6832
6833
6834 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6835 PyObject *obj;
6836 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6837 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6838 Py_INCREF(obj);
6839 return Py_BuildValue((char *)"");
6840 }
6841 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6842 PyObject *resultobj;
6843 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6844 wxString *arg2 = (wxString *) 0 ;
6845 bool temp2 = False ;
6846 PyObject * obj0 = 0 ;
6847 PyObject * obj1 = 0 ;
6848 char *kwnames[] = {
6849 (char *) "self",(char *) "facename", NULL
6850 };
6851
6852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6855 {
6856 arg2 = wxString_in_helper(obj1);
6857 if (arg2 == NULL) SWIG_fail;
6858 temp2 = True;
6859 }
6860 if (arg1) (arg1)->facename = *arg2;
6861
6862 Py_INCREF(Py_None); resultobj = Py_None;
6863 {
6864 if (temp2)
6865 delete arg2;
6866 }
6867 return resultobj;
6868 fail:
6869 {
6870 if (temp2)
6871 delete arg2;
6872 }
6873 return NULL;
6874 }
6875
6876
6877 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6878 PyObject *resultobj;
6879 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6880 wxString *result;
6881 PyObject * obj0 = 0 ;
6882 char *kwnames[] = {
6883 (char *) "self", NULL
6884 };
6885
6886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6889 result = (wxString *)& ((arg1)->facename);
6890
6891 {
6892 #if wxUSE_UNICODE
6893 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6894 #else
6895 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6896 #endif
6897 }
6898 return resultobj;
6899 fail:
6900 return NULL;
6901 }
6902
6903
6904 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6905 PyObject *resultobj;
6906 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6907 int arg2 ;
6908 PyObject * obj0 = 0 ;
6909 PyObject * obj1 = 0 ;
6910 char *kwnames[] = {
6911 (char *) "self",(char *) "encoding", NULL
6912 };
6913
6914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6917 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6918 if (PyErr_Occurred()) SWIG_fail;
6919 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6920
6921 Py_INCREF(Py_None); resultobj = Py_None;
6922 return resultobj;
6923 fail:
6924 return NULL;
6925 }
6926
6927
6928 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6929 PyObject *resultobj;
6930 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6931 int result;
6932 PyObject * obj0 = 0 ;
6933 char *kwnames[] = {
6934 (char *) "self", NULL
6935 };
6936
6937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6940 result = (int) ((arg1)->encoding);
6941
6942 resultobj = SWIG_FromInt((int)result);
6943 return resultobj;
6944 fail:
6945 return NULL;
6946 }
6947
6948
6949 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6950 PyObject *resultobj;
6951 wxNativeEncodingInfo *result;
6952 char *kwnames[] = {
6953 NULL
6954 };
6955
6956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6957 {
6958 PyThreadState* __tstate = wxPyBeginAllowThreads();
6959 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6960
6961 wxPyEndAllowThreads(__tstate);
6962 if (PyErr_Occurred()) SWIG_fail;
6963 }
6964 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
6965 return resultobj;
6966 fail:
6967 return NULL;
6968 }
6969
6970
6971 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6972 PyObject *resultobj;
6973 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6974 PyObject * obj0 = 0 ;
6975 char *kwnames[] = {
6976 (char *) "self", NULL
6977 };
6978
6979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6982 {
6983 PyThreadState* __tstate = wxPyBeginAllowThreads();
6984 delete arg1;
6985
6986 wxPyEndAllowThreads(__tstate);
6987 if (PyErr_Occurred()) SWIG_fail;
6988 }
6989 Py_INCREF(Py_None); resultobj = Py_None;
6990 return resultobj;
6991 fail:
6992 return NULL;
6993 }
6994
6995
6996 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6997 PyObject *resultobj;
6998 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6999 wxString *arg2 = 0 ;
7000 bool result;
7001 bool temp2 = False ;
7002 PyObject * obj0 = 0 ;
7003 PyObject * obj1 = 0 ;
7004 char *kwnames[] = {
7005 (char *) "self",(char *) "s", NULL
7006 };
7007
7008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
7009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7011 {
7012 arg2 = wxString_in_helper(obj1);
7013 if (arg2 == NULL) SWIG_fail;
7014 temp2 = True;
7015 }
7016 {
7017 PyThreadState* __tstate = wxPyBeginAllowThreads();
7018 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7019
7020 wxPyEndAllowThreads(__tstate);
7021 if (PyErr_Occurred()) SWIG_fail;
7022 }
7023 {
7024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7025 }
7026 {
7027 if (temp2)
7028 delete arg2;
7029 }
7030 return resultobj;
7031 fail:
7032 {
7033 if (temp2)
7034 delete arg2;
7035 }
7036 return NULL;
7037 }
7038
7039
7040 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
7041 PyObject *resultobj;
7042 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7043 wxString result;
7044 PyObject * obj0 = 0 ;
7045 char *kwnames[] = {
7046 (char *) "self", NULL
7047 };
7048
7049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
7050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7052 {
7053 PyThreadState* __tstate = wxPyBeginAllowThreads();
7054 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
7055
7056 wxPyEndAllowThreads(__tstate);
7057 if (PyErr_Occurred()) SWIG_fail;
7058 }
7059 {
7060 #if wxUSE_UNICODE
7061 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7062 #else
7063 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7064 #endif
7065 }
7066 return resultobj;
7067 fail:
7068 return NULL;
7069 }
7070
7071
7072 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
7073 PyObject *obj;
7074 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7075 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
7076 Py_INCREF(obj);
7077 return Py_BuildValue((char *)"");
7078 }
7079 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7080 PyObject *resultobj;
7081 int arg1 ;
7082 wxNativeEncodingInfo *result;
7083 PyObject * obj0 = 0 ;
7084 char *kwnames[] = {
7085 (char *) "encoding", NULL
7086 };
7087
7088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
7089 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7090 if (PyErr_Occurred()) SWIG_fail;
7091 {
7092 PyThreadState* __tstate = wxPyBeginAllowThreads();
7093 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7094
7095 wxPyEndAllowThreads(__tstate);
7096 if (PyErr_Occurred()) SWIG_fail;
7097 }
7098 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
7099 return resultobj;
7100 fail:
7101 return NULL;
7102 }
7103
7104
7105 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7106 PyObject *resultobj;
7107 wxNativeEncodingInfo *arg1 = 0 ;
7108 bool result;
7109 PyObject * obj0 = 0 ;
7110 char *kwnames[] = {
7111 (char *) "info", NULL
7112 };
7113
7114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
7115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7116 SWIG_POINTER_EXCEPTION | 0)) == -1)
7117 SWIG_fail;
7118 if (arg1 == NULL) {
7119 PyErr_SetString(PyExc_TypeError,"null reference");
7120 SWIG_fail;
7121 }
7122 {
7123 PyThreadState* __tstate = wxPyBeginAllowThreads();
7124 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7125
7126 wxPyEndAllowThreads(__tstate);
7127 if (PyErr_Occurred()) SWIG_fail;
7128 }
7129 {
7130 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7131 }
7132 return resultobj;
7133 fail:
7134 return NULL;
7135 }
7136
7137
7138 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7139 PyObject *resultobj;
7140 wxFontMapper *result;
7141 char *kwnames[] = {
7142 NULL
7143 };
7144
7145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7146 {
7147 PyThreadState* __tstate = wxPyBeginAllowThreads();
7148 result = (wxFontMapper *)new wxFontMapper();
7149
7150 wxPyEndAllowThreads(__tstate);
7151 if (PyErr_Occurred()) SWIG_fail;
7152 }
7153 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
7154 return resultobj;
7155 fail:
7156 return NULL;
7157 }
7158
7159
7160 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7161 PyObject *resultobj;
7162 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7163 PyObject * obj0 = 0 ;
7164 char *kwnames[] = {
7165 (char *) "self", NULL
7166 };
7167
7168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7171 {
7172 PyThreadState* __tstate = wxPyBeginAllowThreads();
7173 delete arg1;
7174
7175 wxPyEndAllowThreads(__tstate);
7176 if (PyErr_Occurred()) SWIG_fail;
7177 }
7178 Py_INCREF(Py_None); resultobj = Py_None;
7179 return resultobj;
7180 fail:
7181 return NULL;
7182 }
7183
7184
7185 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
7186 PyObject *resultobj;
7187 wxFontMapper *result;
7188 char *kwnames[] = {
7189 NULL
7190 };
7191
7192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7193 {
7194 PyThreadState* __tstate = wxPyBeginAllowThreads();
7195 result = (wxFontMapper *)wxFontMapper::Get();
7196
7197 wxPyEndAllowThreads(__tstate);
7198 if (PyErr_Occurred()) SWIG_fail;
7199 }
7200 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7201 return resultobj;
7202 fail:
7203 return NULL;
7204 }
7205
7206
7207 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7208 PyObject *resultobj;
7209 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7210 wxFontMapper *result;
7211 PyObject * obj0 = 0 ;
7212 char *kwnames[] = {
7213 (char *) "mapper", NULL
7214 };
7215
7216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7219 {
7220 PyThreadState* __tstate = wxPyBeginAllowThreads();
7221 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7222
7223 wxPyEndAllowThreads(__tstate);
7224 if (PyErr_Occurred()) SWIG_fail;
7225 }
7226 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7227 return resultobj;
7228 fail:
7229 return NULL;
7230 }
7231
7232
7233 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7234 PyObject *resultobj;
7235 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7236 wxString *arg2 = 0 ;
7237 bool arg3 = (bool) True ;
7238 int result;
7239 bool temp2 = False ;
7240 PyObject * obj0 = 0 ;
7241 PyObject * obj1 = 0 ;
7242 PyObject * obj2 = 0 ;
7243 char *kwnames[] = {
7244 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7245 };
7246
7247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7250 {
7251 arg2 = wxString_in_helper(obj1);
7252 if (arg2 == NULL) SWIG_fail;
7253 temp2 = True;
7254 }
7255 if (obj2) {
7256 arg3 = (bool) SWIG_AsBool(obj2);
7257 if (PyErr_Occurred()) SWIG_fail;
7258 }
7259 {
7260 PyThreadState* __tstate = wxPyBeginAllowThreads();
7261 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7262
7263 wxPyEndAllowThreads(__tstate);
7264 if (PyErr_Occurred()) SWIG_fail;
7265 }
7266 resultobj = SWIG_FromInt((int)result);
7267 {
7268 if (temp2)
7269 delete arg2;
7270 }
7271 return resultobj;
7272 fail:
7273 {
7274 if (temp2)
7275 delete arg2;
7276 }
7277 return NULL;
7278 }
7279
7280
7281 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7282 PyObject *resultobj;
7283 size_t result;
7284 char *kwnames[] = {
7285 NULL
7286 };
7287
7288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7289 {
7290 PyThreadState* __tstate = wxPyBeginAllowThreads();
7291 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7292
7293 wxPyEndAllowThreads(__tstate);
7294 if (PyErr_Occurred()) SWIG_fail;
7295 }
7296 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7297 return resultobj;
7298 fail:
7299 return NULL;
7300 }
7301
7302
7303 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7304 PyObject *resultobj;
7305 size_t arg1 ;
7306 int result;
7307 PyObject * obj0 = 0 ;
7308 char *kwnames[] = {
7309 (char *) "n", NULL
7310 };
7311
7312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7313 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7314 if (PyErr_Occurred()) SWIG_fail;
7315 {
7316 PyThreadState* __tstate = wxPyBeginAllowThreads();
7317 result = (int)wxFontMapper::GetEncoding(arg1);
7318
7319 wxPyEndAllowThreads(__tstate);
7320 if (PyErr_Occurred()) SWIG_fail;
7321 }
7322 resultobj = SWIG_FromInt((int)result);
7323 return resultobj;
7324 fail:
7325 return NULL;
7326 }
7327
7328
7329 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7330 PyObject *resultobj;
7331 int arg1 ;
7332 wxString result;
7333 PyObject * obj0 = 0 ;
7334 char *kwnames[] = {
7335 (char *) "encoding", NULL
7336 };
7337
7338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7339 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7340 if (PyErr_Occurred()) SWIG_fail;
7341 {
7342 PyThreadState* __tstate = wxPyBeginAllowThreads();
7343 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7344
7345 wxPyEndAllowThreads(__tstate);
7346 if (PyErr_Occurred()) SWIG_fail;
7347 }
7348 {
7349 #if wxUSE_UNICODE
7350 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7351 #else
7352 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7353 #endif
7354 }
7355 return resultobj;
7356 fail:
7357 return NULL;
7358 }
7359
7360
7361 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7362 PyObject *resultobj;
7363 int arg1 ;
7364 wxString result;
7365 PyObject * obj0 = 0 ;
7366 char *kwnames[] = {
7367 (char *) "encoding", NULL
7368 };
7369
7370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7371 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7372 if (PyErr_Occurred()) SWIG_fail;
7373 {
7374 PyThreadState* __tstate = wxPyBeginAllowThreads();
7375 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7376
7377 wxPyEndAllowThreads(__tstate);
7378 if (PyErr_Occurred()) SWIG_fail;
7379 }
7380 {
7381 #if wxUSE_UNICODE
7382 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7383 #else
7384 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7385 #endif
7386 }
7387 return resultobj;
7388 fail:
7389 return NULL;
7390 }
7391
7392
7393 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
7394 PyObject *resultobj;
7395 wxString *arg1 = 0 ;
7396 int result;
7397 bool temp1 = False ;
7398 PyObject * obj0 = 0 ;
7399 char *kwnames[] = {
7400 (char *) "name", NULL
7401 };
7402
7403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7404 {
7405 arg1 = wxString_in_helper(obj0);
7406 if (arg1 == NULL) SWIG_fail;
7407 temp1 = True;
7408 }
7409 {
7410 PyThreadState* __tstate = wxPyBeginAllowThreads();
7411 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7412
7413 wxPyEndAllowThreads(__tstate);
7414 if (PyErr_Occurred()) SWIG_fail;
7415 }
7416 resultobj = SWIG_FromInt((int)result);
7417 {
7418 if (temp1)
7419 delete arg1;
7420 }
7421 return resultobj;
7422 fail:
7423 {
7424 if (temp1)
7425 delete arg1;
7426 }
7427 return NULL;
7428 }
7429
7430
7431 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7432 PyObject *resultobj;
7433 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7434 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7435 PyObject * obj0 = 0 ;
7436 PyObject * obj1 = 0 ;
7437 char *kwnames[] = {
7438 (char *) "self",(char *) "config", NULL
7439 };
7440
7441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7444 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7446 {
7447 PyThreadState* __tstate = wxPyBeginAllowThreads();
7448 (arg1)->SetConfig(arg2);
7449
7450 wxPyEndAllowThreads(__tstate);
7451 if (PyErr_Occurred()) SWIG_fail;
7452 }
7453 Py_INCREF(Py_None); resultobj = Py_None;
7454 return resultobj;
7455 fail:
7456 return NULL;
7457 }
7458
7459
7460 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7461 PyObject *resultobj;
7462 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7463 wxString *arg2 = 0 ;
7464 bool temp2 = False ;
7465 PyObject * obj0 = 0 ;
7466 PyObject * obj1 = 0 ;
7467 char *kwnames[] = {
7468 (char *) "self",(char *) "prefix", NULL
7469 };
7470
7471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7474 {
7475 arg2 = wxString_in_helper(obj1);
7476 if (arg2 == NULL) SWIG_fail;
7477 temp2 = True;
7478 }
7479 {
7480 PyThreadState* __tstate = wxPyBeginAllowThreads();
7481 (arg1)->SetConfigPath((wxString const &)*arg2);
7482
7483 wxPyEndAllowThreads(__tstate);
7484 if (PyErr_Occurred()) SWIG_fail;
7485 }
7486 Py_INCREF(Py_None); resultobj = Py_None;
7487 {
7488 if (temp2)
7489 delete arg2;
7490 }
7491 return resultobj;
7492 fail:
7493 {
7494 if (temp2)
7495 delete arg2;
7496 }
7497 return NULL;
7498 }
7499
7500
7501 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7502 PyObject *resultobj;
7503 wxString result;
7504 char *kwnames[] = {
7505 NULL
7506 };
7507
7508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7509 {
7510 PyThreadState* __tstate = wxPyBeginAllowThreads();
7511 result = wxFontMapper::GetDefaultConfigPath();
7512
7513 wxPyEndAllowThreads(__tstate);
7514 if (PyErr_Occurred()) SWIG_fail;
7515 }
7516 {
7517 #if wxUSE_UNICODE
7518 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7519 #else
7520 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7521 #endif
7522 }
7523 return resultobj;
7524 fail:
7525 return NULL;
7526 }
7527
7528
7529 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7530 PyObject *resultobj;
7531 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7532 int arg2 ;
7533 wxString const &arg3_defvalue = wxPyEmptyString ;
7534 wxString *arg3 = (wxString *) &arg3_defvalue ;
7535 bool arg4 = (bool) True ;
7536 PyObject *result;
7537 bool temp3 = False ;
7538 PyObject * obj0 = 0 ;
7539 PyObject * obj1 = 0 ;
7540 PyObject * obj2 = 0 ;
7541 PyObject * obj3 = 0 ;
7542 char *kwnames[] = {
7543 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7544 };
7545
7546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7549 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7550 if (PyErr_Occurred()) SWIG_fail;
7551 if (obj2) {
7552 {
7553 arg3 = wxString_in_helper(obj2);
7554 if (arg3 == NULL) SWIG_fail;
7555 temp3 = True;
7556 }
7557 }
7558 if (obj3) {
7559 arg4 = (bool) SWIG_AsBool(obj3);
7560 if (PyErr_Occurred()) SWIG_fail;
7561 }
7562 {
7563 PyThreadState* __tstate = wxPyBeginAllowThreads();
7564 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7565
7566 wxPyEndAllowThreads(__tstate);
7567 if (PyErr_Occurred()) SWIG_fail;
7568 }
7569 resultobj = result;
7570 {
7571 if (temp3)
7572 delete arg3;
7573 }
7574 return resultobj;
7575 fail:
7576 {
7577 if (temp3)
7578 delete arg3;
7579 }
7580 return NULL;
7581 }
7582
7583
7584 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7585 PyObject *resultobj;
7586 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7587 int arg2 ;
7588 wxString const &arg3_defvalue = wxPyEmptyString ;
7589 wxString *arg3 = (wxString *) &arg3_defvalue ;
7590 bool result;
7591 bool temp3 = False ;
7592 PyObject * obj0 = 0 ;
7593 PyObject * obj1 = 0 ;
7594 PyObject * obj2 = 0 ;
7595 char *kwnames[] = {
7596 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7597 };
7598
7599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7602 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7603 if (PyErr_Occurred()) SWIG_fail;
7604 if (obj2) {
7605 {
7606 arg3 = wxString_in_helper(obj2);
7607 if (arg3 == NULL) SWIG_fail;
7608 temp3 = True;
7609 }
7610 }
7611 {
7612 PyThreadState* __tstate = wxPyBeginAllowThreads();
7613 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7614
7615 wxPyEndAllowThreads(__tstate);
7616 if (PyErr_Occurred()) SWIG_fail;
7617 }
7618 {
7619 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7620 }
7621 {
7622 if (temp3)
7623 delete arg3;
7624 }
7625 return resultobj;
7626 fail:
7627 {
7628 if (temp3)
7629 delete arg3;
7630 }
7631 return NULL;
7632 }
7633
7634
7635 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7636 PyObject *resultobj;
7637 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7638 wxWindow *arg2 = (wxWindow *) 0 ;
7639 PyObject * obj0 = 0 ;
7640 PyObject * obj1 = 0 ;
7641 char *kwnames[] = {
7642 (char *) "self",(char *) "parent", NULL
7643 };
7644
7645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7648 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7650 {
7651 PyThreadState* __tstate = wxPyBeginAllowThreads();
7652 (arg1)->SetDialogParent(arg2);
7653
7654 wxPyEndAllowThreads(__tstate);
7655 if (PyErr_Occurred()) SWIG_fail;
7656 }
7657 Py_INCREF(Py_None); resultobj = Py_None;
7658 return resultobj;
7659 fail:
7660 return NULL;
7661 }
7662
7663
7664 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7665 PyObject *resultobj;
7666 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7667 wxString *arg2 = 0 ;
7668 bool temp2 = False ;
7669 PyObject * obj0 = 0 ;
7670 PyObject * obj1 = 0 ;
7671 char *kwnames[] = {
7672 (char *) "self",(char *) "title", NULL
7673 };
7674
7675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7678 {
7679 arg2 = wxString_in_helper(obj1);
7680 if (arg2 == NULL) SWIG_fail;
7681 temp2 = True;
7682 }
7683 {
7684 PyThreadState* __tstate = wxPyBeginAllowThreads();
7685 (arg1)->SetDialogTitle((wxString const &)*arg2);
7686
7687 wxPyEndAllowThreads(__tstate);
7688 if (PyErr_Occurred()) SWIG_fail;
7689 }
7690 Py_INCREF(Py_None); resultobj = Py_None;
7691 {
7692 if (temp2)
7693 delete arg2;
7694 }
7695 return resultobj;
7696 fail:
7697 {
7698 if (temp2)
7699 delete arg2;
7700 }
7701 return NULL;
7702 }
7703
7704
7705 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7706 PyObject *obj;
7707 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7708 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7709 Py_INCREF(obj);
7710 return Py_BuildValue((char *)"");
7711 }
7712 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7713 PyObject *resultobj;
7714 int arg1 ;
7715 int arg2 ;
7716 int arg3 ;
7717 int arg4 ;
7718 bool arg5 = (bool) False ;
7719 wxString const &arg6_defvalue = wxPyEmptyString ;
7720 wxString *arg6 = (wxString *) &arg6_defvalue ;
7721 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7722 wxFont *result;
7723 bool temp6 = False ;
7724 PyObject * obj0 = 0 ;
7725 PyObject * obj1 = 0 ;
7726 PyObject * obj2 = 0 ;
7727 PyObject * obj3 = 0 ;
7728 PyObject * obj4 = 0 ;
7729 PyObject * obj5 = 0 ;
7730 PyObject * obj6 = 0 ;
7731 char *kwnames[] = {
7732 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7733 };
7734
7735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7736 arg1 = (int) SWIG_AsInt(obj0);
7737 if (PyErr_Occurred()) SWIG_fail;
7738 arg2 = (int) SWIG_AsInt(obj1);
7739 if (PyErr_Occurred()) SWIG_fail;
7740 arg3 = (int) SWIG_AsInt(obj2);
7741 if (PyErr_Occurred()) SWIG_fail;
7742 arg4 = (int) SWIG_AsInt(obj3);
7743 if (PyErr_Occurred()) SWIG_fail;
7744 if (obj4) {
7745 arg5 = (bool) SWIG_AsBool(obj4);
7746 if (PyErr_Occurred()) SWIG_fail;
7747 }
7748 if (obj5) {
7749 {
7750 arg6 = wxString_in_helper(obj5);
7751 if (arg6 == NULL) SWIG_fail;
7752 temp6 = True;
7753 }
7754 }
7755 if (obj6) {
7756 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
7757 if (PyErr_Occurred()) SWIG_fail;
7758 }
7759 {
7760 PyThreadState* __tstate = wxPyBeginAllowThreads();
7761 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7762
7763 wxPyEndAllowThreads(__tstate);
7764 if (PyErr_Occurred()) SWIG_fail;
7765 }
7766 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7767 {
7768 if (temp6)
7769 delete arg6;
7770 }
7771 return resultobj;
7772 fail:
7773 {
7774 if (temp6)
7775 delete arg6;
7776 }
7777 return NULL;
7778 }
7779
7780
7781 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7782 PyObject *resultobj;
7783 wxFont *arg1 = (wxFont *) 0 ;
7784 PyObject * obj0 = 0 ;
7785 char *kwnames[] = {
7786 (char *) "self", NULL
7787 };
7788
7789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7792 {
7793 PyThreadState* __tstate = wxPyBeginAllowThreads();
7794 delete arg1;
7795
7796 wxPyEndAllowThreads(__tstate);
7797 if (PyErr_Occurred()) SWIG_fail;
7798 }
7799 Py_INCREF(Py_None); resultobj = Py_None;
7800 return resultobj;
7801 fail:
7802 return NULL;
7803 }
7804
7805
7806 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7807 PyObject *resultobj;
7808 wxNativeFontInfo *arg1 = 0 ;
7809 wxFont *result;
7810 PyObject * obj0 = 0 ;
7811 char *kwnames[] = {
7812 (char *) "info", NULL
7813 };
7814
7815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7817 SWIG_POINTER_EXCEPTION | 0)) == -1)
7818 SWIG_fail;
7819 if (arg1 == NULL) {
7820 PyErr_SetString(PyExc_TypeError,"null reference");
7821 SWIG_fail;
7822 }
7823 {
7824 PyThreadState* __tstate = wxPyBeginAllowThreads();
7825 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7826
7827 wxPyEndAllowThreads(__tstate);
7828 if (PyErr_Occurred()) SWIG_fail;
7829 }
7830 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7831 return resultobj;
7832 fail:
7833 return NULL;
7834 }
7835
7836
7837 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7838 PyObject *resultobj;
7839 wxString *arg1 = 0 ;
7840 wxFont *result;
7841 bool temp1 = False ;
7842 PyObject * obj0 = 0 ;
7843 char *kwnames[] = {
7844 (char *) "info", NULL
7845 };
7846
7847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7848 {
7849 arg1 = wxString_in_helper(obj0);
7850 if (arg1 == NULL) SWIG_fail;
7851 temp1 = True;
7852 }
7853 {
7854 PyThreadState* __tstate = wxPyBeginAllowThreads();
7855 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7856
7857 wxPyEndAllowThreads(__tstate);
7858 if (PyErr_Occurred()) SWIG_fail;
7859 }
7860 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7861 {
7862 if (temp1)
7863 delete arg1;
7864 }
7865 return resultobj;
7866 fail:
7867 {
7868 if (temp1)
7869 delete arg1;
7870 }
7871 return NULL;
7872 }
7873
7874
7875 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7876 PyObject *resultobj;
7877 int arg1 ;
7878 int arg2 ;
7879 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7880 wxString const &arg4_defvalue = wxPyEmptyString ;
7881 wxString *arg4 = (wxString *) &arg4_defvalue ;
7882 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7883 wxFont *result;
7884 bool temp4 = False ;
7885 PyObject * obj0 = 0 ;
7886 PyObject * obj1 = 0 ;
7887 PyObject * obj2 = 0 ;
7888 PyObject * obj3 = 0 ;
7889 PyObject * obj4 = 0 ;
7890 char *kwnames[] = {
7891 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7892 };
7893
7894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7895 arg1 = (int) SWIG_AsInt(obj0);
7896 if (PyErr_Occurred()) SWIG_fail;
7897 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
7898 if (PyErr_Occurred()) SWIG_fail;
7899 if (obj2) {
7900 arg3 = (int) SWIG_AsInt(obj2);
7901 if (PyErr_Occurred()) SWIG_fail;
7902 }
7903 if (obj3) {
7904 {
7905 arg4 = wxString_in_helper(obj3);
7906 if (arg4 == NULL) SWIG_fail;
7907 temp4 = True;
7908 }
7909 }
7910 if (obj4) {
7911 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
7912 if (PyErr_Occurred()) SWIG_fail;
7913 }
7914 {
7915 PyThreadState* __tstate = wxPyBeginAllowThreads();
7916 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7917
7918 wxPyEndAllowThreads(__tstate);
7919 if (PyErr_Occurred()) SWIG_fail;
7920 }
7921 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7922 {
7923 if (temp4)
7924 delete arg4;
7925 }
7926 return resultobj;
7927 fail:
7928 {
7929 if (temp4)
7930 delete arg4;
7931 }
7932 return NULL;
7933 }
7934
7935
7936 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7937 PyObject *resultobj;
7938 wxFont *arg1 = (wxFont *) 0 ;
7939 bool result;
7940 PyObject * obj0 = 0 ;
7941 char *kwnames[] = {
7942 (char *) "self", NULL
7943 };
7944
7945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7948 {
7949 PyThreadState* __tstate = wxPyBeginAllowThreads();
7950 result = (bool)((wxFont const *)arg1)->Ok();
7951
7952 wxPyEndAllowThreads(__tstate);
7953 if (PyErr_Occurred()) SWIG_fail;
7954 }
7955 {
7956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7957 }
7958 return resultobj;
7959 fail:
7960 return NULL;
7961 }
7962
7963
7964 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7965 PyObject *resultobj;
7966 wxFont *arg1 = (wxFont *) 0 ;
7967 wxFont *arg2 = (wxFont *) 0 ;
7968 bool result;
7969 PyObject * obj0 = 0 ;
7970 PyObject * obj1 = 0 ;
7971 char *kwnames[] = {
7972 (char *) "self",(char *) "other", NULL
7973 };
7974
7975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7978 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7980 {
7981 PyThreadState* __tstate = wxPyBeginAllowThreads();
7982 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
7983
7984 wxPyEndAllowThreads(__tstate);
7985 if (PyErr_Occurred()) SWIG_fail;
7986 }
7987 {
7988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7989 }
7990 return resultobj;
7991 fail:
7992 return NULL;
7993 }
7994
7995
7996 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7997 PyObject *resultobj;
7998 wxFont *arg1 = (wxFont *) 0 ;
7999 wxFont *arg2 = (wxFont *) 0 ;
8000 bool result;
8001 PyObject * obj0 = 0 ;
8002 PyObject * obj1 = 0 ;
8003 char *kwnames[] = {
8004 (char *) "self",(char *) "other", NULL
8005 };
8006
8007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
8008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8010 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8012 {
8013 PyThreadState* __tstate = wxPyBeginAllowThreads();
8014 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
8015
8016 wxPyEndAllowThreads(__tstate);
8017 if (PyErr_Occurred()) SWIG_fail;
8018 }
8019 {
8020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8021 }
8022 return resultobj;
8023 fail:
8024 return NULL;
8025 }
8026
8027
8028 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8029 PyObject *resultobj;
8030 wxFont *arg1 = (wxFont *) 0 ;
8031 int result;
8032 PyObject * obj0 = 0 ;
8033 char *kwnames[] = {
8034 (char *) "self", NULL
8035 };
8036
8037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
8038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8040 {
8041 PyThreadState* __tstate = wxPyBeginAllowThreads();
8042 result = (int)((wxFont const *)arg1)->GetPointSize();
8043
8044 wxPyEndAllowThreads(__tstate);
8045 if (PyErr_Occurred()) SWIG_fail;
8046 }
8047 resultobj = SWIG_FromInt((int)result);
8048 return resultobj;
8049 fail:
8050 return NULL;
8051 }
8052
8053
8054 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8055 PyObject *resultobj;
8056 wxFont *arg1 = (wxFont *) 0 ;
8057 int result;
8058 PyObject * obj0 = 0 ;
8059 char *kwnames[] = {
8060 (char *) "self", NULL
8061 };
8062
8063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
8064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8066 {
8067 PyThreadState* __tstate = wxPyBeginAllowThreads();
8068 result = (int)((wxFont const *)arg1)->GetFamily();
8069
8070 wxPyEndAllowThreads(__tstate);
8071 if (PyErr_Occurred()) SWIG_fail;
8072 }
8073 resultobj = SWIG_FromInt((int)result);
8074 return resultobj;
8075 fail:
8076 return NULL;
8077 }
8078
8079
8080 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8081 PyObject *resultobj;
8082 wxFont *arg1 = (wxFont *) 0 ;
8083 int result;
8084 PyObject * obj0 = 0 ;
8085 char *kwnames[] = {
8086 (char *) "self", NULL
8087 };
8088
8089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
8090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8092 {
8093 PyThreadState* __tstate = wxPyBeginAllowThreads();
8094 result = (int)((wxFont const *)arg1)->GetStyle();
8095
8096 wxPyEndAllowThreads(__tstate);
8097 if (PyErr_Occurred()) SWIG_fail;
8098 }
8099 resultobj = SWIG_FromInt((int)result);
8100 return resultobj;
8101 fail:
8102 return NULL;
8103 }
8104
8105
8106 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8107 PyObject *resultobj;
8108 wxFont *arg1 = (wxFont *) 0 ;
8109 int result;
8110 PyObject * obj0 = 0 ;
8111 char *kwnames[] = {
8112 (char *) "self", NULL
8113 };
8114
8115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
8116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8118 {
8119 PyThreadState* __tstate = wxPyBeginAllowThreads();
8120 result = (int)((wxFont const *)arg1)->GetWeight();
8121
8122 wxPyEndAllowThreads(__tstate);
8123 if (PyErr_Occurred()) SWIG_fail;
8124 }
8125 resultobj = SWIG_FromInt((int)result);
8126 return resultobj;
8127 fail:
8128 return NULL;
8129 }
8130
8131
8132 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8133 PyObject *resultobj;
8134 wxFont *arg1 = (wxFont *) 0 ;
8135 bool result;
8136 PyObject * obj0 = 0 ;
8137 char *kwnames[] = {
8138 (char *) "self", NULL
8139 };
8140
8141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
8142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8144 {
8145 PyThreadState* __tstate = wxPyBeginAllowThreads();
8146 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8147
8148 wxPyEndAllowThreads(__tstate);
8149 if (PyErr_Occurred()) SWIG_fail;
8150 }
8151 {
8152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8153 }
8154 return resultobj;
8155 fail:
8156 return NULL;
8157 }
8158
8159
8160 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8161 PyObject *resultobj;
8162 wxFont *arg1 = (wxFont *) 0 ;
8163 wxString result;
8164 PyObject * obj0 = 0 ;
8165 char *kwnames[] = {
8166 (char *) "self", NULL
8167 };
8168
8169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
8170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8172 {
8173 PyThreadState* __tstate = wxPyBeginAllowThreads();
8174 result = ((wxFont const *)arg1)->GetFaceName();
8175
8176 wxPyEndAllowThreads(__tstate);
8177 if (PyErr_Occurred()) SWIG_fail;
8178 }
8179 {
8180 #if wxUSE_UNICODE
8181 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8182 #else
8183 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8184 #endif
8185 }
8186 return resultobj;
8187 fail:
8188 return NULL;
8189 }
8190
8191
8192 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8193 PyObject *resultobj;
8194 wxFont *arg1 = (wxFont *) 0 ;
8195 int result;
8196 PyObject * obj0 = 0 ;
8197 char *kwnames[] = {
8198 (char *) "self", NULL
8199 };
8200
8201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8204 {
8205 PyThreadState* __tstate = wxPyBeginAllowThreads();
8206 result = (int)((wxFont const *)arg1)->GetEncoding();
8207
8208 wxPyEndAllowThreads(__tstate);
8209 if (PyErr_Occurred()) SWIG_fail;
8210 }
8211 resultobj = SWIG_FromInt((int)result);
8212 return resultobj;
8213 fail:
8214 return NULL;
8215 }
8216
8217
8218 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8219 PyObject *resultobj;
8220 wxFont *arg1 = (wxFont *) 0 ;
8221 wxNativeFontInfo *result;
8222 PyObject * obj0 = 0 ;
8223 char *kwnames[] = {
8224 (char *) "self", NULL
8225 };
8226
8227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8230 {
8231 PyThreadState* __tstate = wxPyBeginAllowThreads();
8232 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8233
8234 wxPyEndAllowThreads(__tstate);
8235 if (PyErr_Occurred()) SWIG_fail;
8236 }
8237 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8238 return resultobj;
8239 fail:
8240 return NULL;
8241 }
8242
8243
8244 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8245 PyObject *resultobj;
8246 wxFont *arg1 = (wxFont *) 0 ;
8247 bool result;
8248 PyObject * obj0 = 0 ;
8249 char *kwnames[] = {
8250 (char *) "self", NULL
8251 };
8252
8253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8256 {
8257 PyThreadState* __tstate = wxPyBeginAllowThreads();
8258 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8259
8260 wxPyEndAllowThreads(__tstate);
8261 if (PyErr_Occurred()) SWIG_fail;
8262 }
8263 {
8264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8265 }
8266 return resultobj;
8267 fail:
8268 return NULL;
8269 }
8270
8271
8272 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8273 PyObject *resultobj;
8274 wxFont *arg1 = (wxFont *) 0 ;
8275 wxString result;
8276 PyObject * obj0 = 0 ;
8277 char *kwnames[] = {
8278 (char *) "self", NULL
8279 };
8280
8281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8284 {
8285 PyThreadState* __tstate = wxPyBeginAllowThreads();
8286 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8287
8288 wxPyEndAllowThreads(__tstate);
8289 if (PyErr_Occurred()) SWIG_fail;
8290 }
8291 {
8292 #if wxUSE_UNICODE
8293 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8294 #else
8295 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8296 #endif
8297 }
8298 return resultobj;
8299 fail:
8300 return NULL;
8301 }
8302
8303
8304 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8305 PyObject *resultobj;
8306 wxFont *arg1 = (wxFont *) 0 ;
8307 wxString result;
8308 PyObject * obj0 = 0 ;
8309 char *kwnames[] = {
8310 (char *) "self", NULL
8311 };
8312
8313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8316 {
8317 PyThreadState* __tstate = wxPyBeginAllowThreads();
8318 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8319
8320 wxPyEndAllowThreads(__tstate);
8321 if (PyErr_Occurred()) SWIG_fail;
8322 }
8323 {
8324 #if wxUSE_UNICODE
8325 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8326 #else
8327 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8328 #endif
8329 }
8330 return resultobj;
8331 fail:
8332 return NULL;
8333 }
8334
8335
8336 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8337 PyObject *resultobj;
8338 wxFont *arg1 = (wxFont *) 0 ;
8339 int arg2 ;
8340 PyObject * obj0 = 0 ;
8341 PyObject * obj1 = 0 ;
8342 char *kwnames[] = {
8343 (char *) "self",(char *) "pointSize", NULL
8344 };
8345
8346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8349 arg2 = (int) SWIG_AsInt(obj1);
8350 if (PyErr_Occurred()) SWIG_fail;
8351 {
8352 PyThreadState* __tstate = wxPyBeginAllowThreads();
8353 (arg1)->SetPointSize(arg2);
8354
8355 wxPyEndAllowThreads(__tstate);
8356 if (PyErr_Occurred()) SWIG_fail;
8357 }
8358 Py_INCREF(Py_None); resultobj = Py_None;
8359 return resultobj;
8360 fail:
8361 return NULL;
8362 }
8363
8364
8365 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8366 PyObject *resultobj;
8367 wxFont *arg1 = (wxFont *) 0 ;
8368 int arg2 ;
8369 PyObject * obj0 = 0 ;
8370 PyObject * obj1 = 0 ;
8371 char *kwnames[] = {
8372 (char *) "self",(char *) "family", NULL
8373 };
8374
8375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8378 arg2 = (int) SWIG_AsInt(obj1);
8379 if (PyErr_Occurred()) SWIG_fail;
8380 {
8381 PyThreadState* __tstate = wxPyBeginAllowThreads();
8382 (arg1)->SetFamily(arg2);
8383
8384 wxPyEndAllowThreads(__tstate);
8385 if (PyErr_Occurred()) SWIG_fail;
8386 }
8387 Py_INCREF(Py_None); resultobj = Py_None;
8388 return resultobj;
8389 fail:
8390 return NULL;
8391 }
8392
8393
8394 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8395 PyObject *resultobj;
8396 wxFont *arg1 = (wxFont *) 0 ;
8397 int arg2 ;
8398 PyObject * obj0 = 0 ;
8399 PyObject * obj1 = 0 ;
8400 char *kwnames[] = {
8401 (char *) "self",(char *) "style", NULL
8402 };
8403
8404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8407 arg2 = (int) SWIG_AsInt(obj1);
8408 if (PyErr_Occurred()) SWIG_fail;
8409 {
8410 PyThreadState* __tstate = wxPyBeginAllowThreads();
8411 (arg1)->SetStyle(arg2);
8412
8413 wxPyEndAllowThreads(__tstate);
8414 if (PyErr_Occurred()) SWIG_fail;
8415 }
8416 Py_INCREF(Py_None); resultobj = Py_None;
8417 return resultobj;
8418 fail:
8419 return NULL;
8420 }
8421
8422
8423 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8424 PyObject *resultobj;
8425 wxFont *arg1 = (wxFont *) 0 ;
8426 int arg2 ;
8427 PyObject * obj0 = 0 ;
8428 PyObject * obj1 = 0 ;
8429 char *kwnames[] = {
8430 (char *) "self",(char *) "weight", NULL
8431 };
8432
8433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8436 arg2 = (int) SWIG_AsInt(obj1);
8437 if (PyErr_Occurred()) SWIG_fail;
8438 {
8439 PyThreadState* __tstate = wxPyBeginAllowThreads();
8440 (arg1)->SetWeight(arg2);
8441
8442 wxPyEndAllowThreads(__tstate);
8443 if (PyErr_Occurred()) SWIG_fail;
8444 }
8445 Py_INCREF(Py_None); resultobj = Py_None;
8446 return resultobj;
8447 fail:
8448 return NULL;
8449 }
8450
8451
8452 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8453 PyObject *resultobj;
8454 wxFont *arg1 = (wxFont *) 0 ;
8455 wxString *arg2 = 0 ;
8456 bool temp2 = False ;
8457 PyObject * obj0 = 0 ;
8458 PyObject * obj1 = 0 ;
8459 char *kwnames[] = {
8460 (char *) "self",(char *) "faceName", NULL
8461 };
8462
8463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8466 {
8467 arg2 = wxString_in_helper(obj1);
8468 if (arg2 == NULL) SWIG_fail;
8469 temp2 = True;
8470 }
8471 {
8472 PyThreadState* __tstate = wxPyBeginAllowThreads();
8473 (arg1)->SetFaceName((wxString const &)*arg2);
8474
8475 wxPyEndAllowThreads(__tstate);
8476 if (PyErr_Occurred()) SWIG_fail;
8477 }
8478 Py_INCREF(Py_None); resultobj = Py_None;
8479 {
8480 if (temp2)
8481 delete arg2;
8482 }
8483 return resultobj;
8484 fail:
8485 {
8486 if (temp2)
8487 delete arg2;
8488 }
8489 return NULL;
8490 }
8491
8492
8493 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8494 PyObject *resultobj;
8495 wxFont *arg1 = (wxFont *) 0 ;
8496 bool arg2 ;
8497 PyObject * obj0 = 0 ;
8498 PyObject * obj1 = 0 ;
8499 char *kwnames[] = {
8500 (char *) "self",(char *) "underlined", NULL
8501 };
8502
8503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8506 arg2 = (bool) SWIG_AsBool(obj1);
8507 if (PyErr_Occurred()) SWIG_fail;
8508 {
8509 PyThreadState* __tstate = wxPyBeginAllowThreads();
8510 (arg1)->SetUnderlined(arg2);
8511
8512 wxPyEndAllowThreads(__tstate);
8513 if (PyErr_Occurred()) SWIG_fail;
8514 }
8515 Py_INCREF(Py_None); resultobj = Py_None;
8516 return resultobj;
8517 fail:
8518 return NULL;
8519 }
8520
8521
8522 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8523 PyObject *resultobj;
8524 wxFont *arg1 = (wxFont *) 0 ;
8525 int arg2 ;
8526 PyObject * obj0 = 0 ;
8527 PyObject * obj1 = 0 ;
8528 char *kwnames[] = {
8529 (char *) "self",(char *) "encoding", NULL
8530 };
8531
8532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8535 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8536 if (PyErr_Occurred()) SWIG_fail;
8537 {
8538 PyThreadState* __tstate = wxPyBeginAllowThreads();
8539 (arg1)->SetEncoding((wxFontEncoding )arg2);
8540
8541 wxPyEndAllowThreads(__tstate);
8542 if (PyErr_Occurred()) SWIG_fail;
8543 }
8544 Py_INCREF(Py_None); resultobj = Py_None;
8545 return resultobj;
8546 fail:
8547 return NULL;
8548 }
8549
8550
8551 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8552 PyObject *resultobj;
8553 wxFont *arg1 = (wxFont *) 0 ;
8554 wxNativeFontInfo *arg2 = 0 ;
8555 PyObject * obj0 = 0 ;
8556 PyObject * obj1 = 0 ;
8557 char *kwnames[] = {
8558 (char *) "self",(char *) "info", NULL
8559 };
8560
8561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8564 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8565 SWIG_POINTER_EXCEPTION | 0)) == -1)
8566 SWIG_fail;
8567 if (arg2 == NULL) {
8568 PyErr_SetString(PyExc_TypeError,"null reference");
8569 SWIG_fail;
8570 }
8571 {
8572 PyThreadState* __tstate = wxPyBeginAllowThreads();
8573 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8574
8575 wxPyEndAllowThreads(__tstate);
8576 if (PyErr_Occurred()) SWIG_fail;
8577 }
8578 Py_INCREF(Py_None); resultobj = Py_None;
8579 return resultobj;
8580 fail:
8581 return NULL;
8582 }
8583
8584
8585 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8586 PyObject *resultobj;
8587 wxFont *arg1 = (wxFont *) 0 ;
8588 wxString *arg2 = 0 ;
8589 bool temp2 = False ;
8590 PyObject * obj0 = 0 ;
8591 PyObject * obj1 = 0 ;
8592 char *kwnames[] = {
8593 (char *) "self",(char *) "info", NULL
8594 };
8595
8596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8599 {
8600 arg2 = wxString_in_helper(obj1);
8601 if (arg2 == NULL) SWIG_fail;
8602 temp2 = True;
8603 }
8604 {
8605 PyThreadState* __tstate = wxPyBeginAllowThreads();
8606 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8607
8608 wxPyEndAllowThreads(__tstate);
8609 if (PyErr_Occurred()) SWIG_fail;
8610 }
8611 Py_INCREF(Py_None); resultobj = Py_None;
8612 {
8613 if (temp2)
8614 delete arg2;
8615 }
8616 return resultobj;
8617 fail:
8618 {
8619 if (temp2)
8620 delete arg2;
8621 }
8622 return NULL;
8623 }
8624
8625
8626 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8627 PyObject *resultobj;
8628 wxFont *arg1 = (wxFont *) 0 ;
8629 wxString *arg2 = 0 ;
8630 bool temp2 = False ;
8631 PyObject * obj0 = 0 ;
8632 PyObject * obj1 = 0 ;
8633 char *kwnames[] = {
8634 (char *) "self",(char *) "info", NULL
8635 };
8636
8637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8640 {
8641 arg2 = wxString_in_helper(obj1);
8642 if (arg2 == NULL) SWIG_fail;
8643 temp2 = True;
8644 }
8645 {
8646 PyThreadState* __tstate = wxPyBeginAllowThreads();
8647 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8648
8649 wxPyEndAllowThreads(__tstate);
8650 if (PyErr_Occurred()) SWIG_fail;
8651 }
8652 Py_INCREF(Py_None); resultobj = Py_None;
8653 {
8654 if (temp2)
8655 delete arg2;
8656 }
8657 return resultobj;
8658 fail:
8659 {
8660 if (temp2)
8661 delete arg2;
8662 }
8663 return NULL;
8664 }
8665
8666
8667 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8668 PyObject *resultobj;
8669 wxFont *arg1 = (wxFont *) 0 ;
8670 wxString result;
8671 PyObject * obj0 = 0 ;
8672 char *kwnames[] = {
8673 (char *) "self", NULL
8674 };
8675
8676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8679 {
8680 PyThreadState* __tstate = wxPyBeginAllowThreads();
8681 result = ((wxFont const *)arg1)->GetFamilyString();
8682
8683 wxPyEndAllowThreads(__tstate);
8684 if (PyErr_Occurred()) SWIG_fail;
8685 }
8686 {
8687 #if wxUSE_UNICODE
8688 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8689 #else
8690 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8691 #endif
8692 }
8693 return resultobj;
8694 fail:
8695 return NULL;
8696 }
8697
8698
8699 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8700 PyObject *resultobj;
8701 wxFont *arg1 = (wxFont *) 0 ;
8702 wxString result;
8703 PyObject * obj0 = 0 ;
8704 char *kwnames[] = {
8705 (char *) "self", NULL
8706 };
8707
8708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8711 {
8712 PyThreadState* __tstate = wxPyBeginAllowThreads();
8713 result = ((wxFont const *)arg1)->GetStyleString();
8714
8715 wxPyEndAllowThreads(__tstate);
8716 if (PyErr_Occurred()) SWIG_fail;
8717 }
8718 {
8719 #if wxUSE_UNICODE
8720 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8721 #else
8722 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8723 #endif
8724 }
8725 return resultobj;
8726 fail:
8727 return NULL;
8728 }
8729
8730
8731 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8732 PyObject *resultobj;
8733 wxFont *arg1 = (wxFont *) 0 ;
8734 wxString result;
8735 PyObject * obj0 = 0 ;
8736 char *kwnames[] = {
8737 (char *) "self", NULL
8738 };
8739
8740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8743 {
8744 PyThreadState* __tstate = wxPyBeginAllowThreads();
8745 result = ((wxFont const *)arg1)->GetWeightString();
8746
8747 wxPyEndAllowThreads(__tstate);
8748 if (PyErr_Occurred()) SWIG_fail;
8749 }
8750 {
8751 #if wxUSE_UNICODE
8752 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8753 #else
8754 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8755 #endif
8756 }
8757 return resultobj;
8758 fail:
8759 return NULL;
8760 }
8761
8762
8763 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8764 PyObject *resultobj;
8765 wxFont *arg1 = (wxFont *) 0 ;
8766 bool arg2 = (bool) True ;
8767 PyObject * obj0 = 0 ;
8768 PyObject * obj1 = 0 ;
8769 char *kwnames[] = {
8770 (char *) "self",(char *) "no", NULL
8771 };
8772
8773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8776 if (obj1) {
8777 arg2 = (bool) SWIG_AsBool(obj1);
8778 if (PyErr_Occurred()) SWIG_fail;
8779 }
8780 {
8781 PyThreadState* __tstate = wxPyBeginAllowThreads();
8782 (arg1)->SetNoAntiAliasing(arg2);
8783
8784 wxPyEndAllowThreads(__tstate);
8785 if (PyErr_Occurred()) SWIG_fail;
8786 }
8787 Py_INCREF(Py_None); resultobj = Py_None;
8788 return resultobj;
8789 fail:
8790 return NULL;
8791 }
8792
8793
8794 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8795 PyObject *resultobj;
8796 wxFont *arg1 = (wxFont *) 0 ;
8797 bool result;
8798 PyObject * obj0 = 0 ;
8799 char *kwnames[] = {
8800 (char *) "self", NULL
8801 };
8802
8803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8806 {
8807 PyThreadState* __tstate = wxPyBeginAllowThreads();
8808 result = (bool)(arg1)->GetNoAntiAliasing();
8809
8810 wxPyEndAllowThreads(__tstate);
8811 if (PyErr_Occurred()) SWIG_fail;
8812 }
8813 {
8814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8815 }
8816 return resultobj;
8817 fail:
8818 return NULL;
8819 }
8820
8821
8822 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8823 PyObject *resultobj;
8824 int result;
8825 char *kwnames[] = {
8826 NULL
8827 };
8828
8829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8830 {
8831 PyThreadState* __tstate = wxPyBeginAllowThreads();
8832 result = (int)wxFont::GetDefaultEncoding();
8833
8834 wxPyEndAllowThreads(__tstate);
8835 if (PyErr_Occurred()) SWIG_fail;
8836 }
8837 resultobj = SWIG_FromInt((int)result);
8838 return resultobj;
8839 fail:
8840 return NULL;
8841 }
8842
8843
8844 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8845 PyObject *resultobj;
8846 int arg1 ;
8847 PyObject * obj0 = 0 ;
8848 char *kwnames[] = {
8849 (char *) "encoding", NULL
8850 };
8851
8852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8853 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
8854 if (PyErr_Occurred()) SWIG_fail;
8855 {
8856 PyThreadState* __tstate = wxPyBeginAllowThreads();
8857 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8858
8859 wxPyEndAllowThreads(__tstate);
8860 if (PyErr_Occurred()) SWIG_fail;
8861 }
8862 Py_INCREF(Py_None); resultobj = Py_None;
8863 return resultobj;
8864 fail:
8865 return NULL;
8866 }
8867
8868
8869 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8870 PyObject *obj;
8871 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8872 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8873 Py_INCREF(obj);
8874 return Py_BuildValue((char *)"");
8875 }
8876 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8877 PyObject *resultobj;
8878 wxPyFontEnumerator *result;
8879 char *kwnames[] = {
8880 NULL
8881 };
8882
8883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8884 {
8885 PyThreadState* __tstate = wxPyBeginAllowThreads();
8886 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8887
8888 wxPyEndAllowThreads(__tstate);
8889 if (PyErr_Occurred()) SWIG_fail;
8890 }
8891 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
8892 return resultobj;
8893 fail:
8894 return NULL;
8895 }
8896
8897
8898 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8899 PyObject *resultobj;
8900 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8901 PyObject * obj0 = 0 ;
8902 char *kwnames[] = {
8903 (char *) "self", NULL
8904 };
8905
8906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8909 {
8910 PyThreadState* __tstate = wxPyBeginAllowThreads();
8911 delete arg1;
8912
8913 wxPyEndAllowThreads(__tstate);
8914 if (PyErr_Occurred()) SWIG_fail;
8915 }
8916 Py_INCREF(Py_None); resultobj = Py_None;
8917 return resultobj;
8918 fail:
8919 return NULL;
8920 }
8921
8922
8923 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8924 PyObject *resultobj;
8925 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8926 PyObject *arg2 = (PyObject *) 0 ;
8927 PyObject *arg3 = (PyObject *) 0 ;
8928 bool arg4 ;
8929 PyObject * obj0 = 0 ;
8930 PyObject * obj1 = 0 ;
8931 PyObject * obj2 = 0 ;
8932 PyObject * obj3 = 0 ;
8933 char *kwnames[] = {
8934 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8935 };
8936
8937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8940 arg2 = obj1;
8941 arg3 = obj2;
8942 arg4 = (bool) SWIG_AsBool(obj3);
8943 if (PyErr_Occurred()) SWIG_fail;
8944 {
8945 PyThreadState* __tstate = wxPyBeginAllowThreads();
8946 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8947
8948 wxPyEndAllowThreads(__tstate);
8949 if (PyErr_Occurred()) SWIG_fail;
8950 }
8951 Py_INCREF(Py_None); resultobj = Py_None;
8952 return resultobj;
8953 fail:
8954 return NULL;
8955 }
8956
8957
8958 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8959 PyObject *resultobj;
8960 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8961 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8962 bool arg3 = (bool) False ;
8963 bool result;
8964 PyObject * obj0 = 0 ;
8965 PyObject * obj1 = 0 ;
8966 PyObject * obj2 = 0 ;
8967 char *kwnames[] = {
8968 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8969 };
8970
8971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8974 if (obj1) {
8975 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8976 if (PyErr_Occurred()) SWIG_fail;
8977 }
8978 if (obj2) {
8979 arg3 = (bool) SWIG_AsBool(obj2);
8980 if (PyErr_Occurred()) SWIG_fail;
8981 }
8982 {
8983 PyThreadState* __tstate = wxPyBeginAllowThreads();
8984 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8985
8986 wxPyEndAllowThreads(__tstate);
8987 if (PyErr_Occurred()) SWIG_fail;
8988 }
8989 {
8990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8991 }
8992 return resultobj;
8993 fail:
8994 return NULL;
8995 }
8996
8997
8998 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8999 PyObject *resultobj;
9000 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9001 wxString const &arg2_defvalue = wxPyEmptyString ;
9002 wxString *arg2 = (wxString *) &arg2_defvalue ;
9003 bool result;
9004 bool temp2 = False ;
9005 PyObject * obj0 = 0 ;
9006 PyObject * obj1 = 0 ;
9007 char *kwnames[] = {
9008 (char *) "self",(char *) "facename", NULL
9009 };
9010
9011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
9012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9014 if (obj1) {
9015 {
9016 arg2 = wxString_in_helper(obj1);
9017 if (arg2 == NULL) SWIG_fail;
9018 temp2 = True;
9019 }
9020 }
9021 {
9022 PyThreadState* __tstate = wxPyBeginAllowThreads();
9023 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
9024
9025 wxPyEndAllowThreads(__tstate);
9026 if (PyErr_Occurred()) SWIG_fail;
9027 }
9028 {
9029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9030 }
9031 {
9032 if (temp2)
9033 delete arg2;
9034 }
9035 return resultobj;
9036 fail:
9037 {
9038 if (temp2)
9039 delete arg2;
9040 }
9041 return NULL;
9042 }
9043
9044
9045 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
9046 PyObject *resultobj;
9047 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9048 PyObject *result;
9049 PyObject * obj0 = 0 ;
9050 char *kwnames[] = {
9051 (char *) "self", NULL
9052 };
9053
9054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
9055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9057 {
9058 PyThreadState* __tstate = wxPyBeginAllowThreads();
9059 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
9060
9061 wxPyEndAllowThreads(__tstate);
9062 if (PyErr_Occurred()) SWIG_fail;
9063 }
9064 resultobj = result;
9065 return resultobj;
9066 fail:
9067 return NULL;
9068 }
9069
9070
9071 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
9072 PyObject *resultobj;
9073 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9074 PyObject *result;
9075 PyObject * obj0 = 0 ;
9076 char *kwnames[] = {
9077 (char *) "self", NULL
9078 };
9079
9080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
9081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9083 {
9084 PyThreadState* __tstate = wxPyBeginAllowThreads();
9085 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
9086
9087 wxPyEndAllowThreads(__tstate);
9088 if (PyErr_Occurred()) SWIG_fail;
9089 }
9090 resultobj = result;
9091 return resultobj;
9092 fail:
9093 return NULL;
9094 }
9095
9096
9097 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
9098 PyObject *obj;
9099 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9100 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9101 Py_INCREF(obj);
9102 return Py_BuildValue((char *)"");
9103 }
9104 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9105 PyObject *resultobj;
9106 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9107 int arg2 ;
9108 PyObject * obj0 = 0 ;
9109 PyObject * obj1 = 0 ;
9110 char *kwnames[] = {
9111 (char *) "self",(char *) "Language", NULL
9112 };
9113
9114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
9115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9117 arg2 = (int) SWIG_AsInt(obj1);
9118 if (PyErr_Occurred()) SWIG_fail;
9119 if (arg1) (arg1)->Language = arg2;
9120
9121 Py_INCREF(Py_None); resultobj = Py_None;
9122 return resultobj;
9123 fail:
9124 return NULL;
9125 }
9126
9127
9128 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9129 PyObject *resultobj;
9130 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9131 int result;
9132 PyObject * obj0 = 0 ;
9133 char *kwnames[] = {
9134 (char *) "self", NULL
9135 };
9136
9137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
9138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9140 result = (int) ((arg1)->Language);
9141
9142 resultobj = SWIG_FromInt((int)result);
9143 return resultobj;
9144 fail:
9145 return NULL;
9146 }
9147
9148
9149 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9150 PyObject *resultobj;
9151 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9152 wxString *arg2 = (wxString *) 0 ;
9153 bool temp2 = False ;
9154 PyObject * obj0 = 0 ;
9155 PyObject * obj1 = 0 ;
9156 char *kwnames[] = {
9157 (char *) "self",(char *) "CanonicalName", NULL
9158 };
9159
9160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
9161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9163 {
9164 arg2 = wxString_in_helper(obj1);
9165 if (arg2 == NULL) SWIG_fail;
9166 temp2 = True;
9167 }
9168 if (arg1) (arg1)->CanonicalName = *arg2;
9169
9170 Py_INCREF(Py_None); resultobj = Py_None;
9171 {
9172 if (temp2)
9173 delete arg2;
9174 }
9175 return resultobj;
9176 fail:
9177 {
9178 if (temp2)
9179 delete arg2;
9180 }
9181 return NULL;
9182 }
9183
9184
9185 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9186 PyObject *resultobj;
9187 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9188 wxString *result;
9189 PyObject * obj0 = 0 ;
9190 char *kwnames[] = {
9191 (char *) "self", NULL
9192 };
9193
9194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9197 result = (wxString *)& ((arg1)->CanonicalName);
9198
9199 {
9200 #if wxUSE_UNICODE
9201 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9202 #else
9203 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9204 #endif
9205 }
9206 return resultobj;
9207 fail:
9208 return NULL;
9209 }
9210
9211
9212 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9213 PyObject *resultobj;
9214 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9215 wxString *arg2 = (wxString *) 0 ;
9216 bool temp2 = False ;
9217 PyObject * obj0 = 0 ;
9218 PyObject * obj1 = 0 ;
9219 char *kwnames[] = {
9220 (char *) "self",(char *) "Description", NULL
9221 };
9222
9223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9226 {
9227 arg2 = wxString_in_helper(obj1);
9228 if (arg2 == NULL) SWIG_fail;
9229 temp2 = True;
9230 }
9231 if (arg1) (arg1)->Description = *arg2;
9232
9233 Py_INCREF(Py_None); resultobj = Py_None;
9234 {
9235 if (temp2)
9236 delete arg2;
9237 }
9238 return resultobj;
9239 fail:
9240 {
9241 if (temp2)
9242 delete arg2;
9243 }
9244 return NULL;
9245 }
9246
9247
9248 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9249 PyObject *resultobj;
9250 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9251 wxString *result;
9252 PyObject * obj0 = 0 ;
9253 char *kwnames[] = {
9254 (char *) "self", NULL
9255 };
9256
9257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9260 result = (wxString *)& ((arg1)->Description);
9261
9262 {
9263 #if wxUSE_UNICODE
9264 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9265 #else
9266 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9267 #endif
9268 }
9269 return resultobj;
9270 fail:
9271 return NULL;
9272 }
9273
9274
9275 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9276 PyObject *obj;
9277 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9278 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9279 Py_INCREF(obj);
9280 return Py_BuildValue((char *)"");
9281 }
9282 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9283 PyObject *resultobj;
9284 int arg1 = (int) wxLANGUAGE_DEFAULT ;
9285 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9286 wxLocale *result;
9287 PyObject * obj0 = 0 ;
9288 PyObject * obj1 = 0 ;
9289 char *kwnames[] = {
9290 (char *) "language",(char *) "flags", NULL
9291 };
9292
9293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9294 if (obj0) {
9295 arg1 = (int) SWIG_AsInt(obj0);
9296 if (PyErr_Occurred()) SWIG_fail;
9297 }
9298 if (obj1) {
9299 arg2 = (int) SWIG_AsInt(obj1);
9300 if (PyErr_Occurred()) SWIG_fail;
9301 }
9302 {
9303 PyThreadState* __tstate = wxPyBeginAllowThreads();
9304 result = (wxLocale *)new wxLocale(arg1,arg2);
9305
9306 wxPyEndAllowThreads(__tstate);
9307 if (PyErr_Occurred()) SWIG_fail;
9308 }
9309 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9310 return resultobj;
9311 fail:
9312 return NULL;
9313 }
9314
9315
9316 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9317 PyObject *resultobj;
9318 wxLocale *arg1 = (wxLocale *) 0 ;
9319 PyObject * obj0 = 0 ;
9320 char *kwnames[] = {
9321 (char *) "self", NULL
9322 };
9323
9324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9327 {
9328 PyThreadState* __tstate = wxPyBeginAllowThreads();
9329 delete arg1;
9330
9331 wxPyEndAllowThreads(__tstate);
9332 if (PyErr_Occurred()) SWIG_fail;
9333 }
9334 Py_INCREF(Py_None); resultobj = Py_None;
9335 return resultobj;
9336 fail:
9337 return NULL;
9338 }
9339
9340
9341 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9342 PyObject *resultobj;
9343 wxLocale *arg1 = (wxLocale *) 0 ;
9344 wxString *arg2 = 0 ;
9345 wxString const &arg3_defvalue = wxPyEmptyString ;
9346 wxString *arg3 = (wxString *) &arg3_defvalue ;
9347 wxString const &arg4_defvalue = wxPyEmptyString ;
9348 wxString *arg4 = (wxString *) &arg4_defvalue ;
9349 bool arg5 = (bool) True ;
9350 bool arg6 = (bool) False ;
9351 bool result;
9352 bool temp2 = False ;
9353 bool temp3 = False ;
9354 bool temp4 = False ;
9355 PyObject * obj0 = 0 ;
9356 PyObject * obj1 = 0 ;
9357 PyObject * obj2 = 0 ;
9358 PyObject * obj3 = 0 ;
9359 PyObject * obj4 = 0 ;
9360 PyObject * obj5 = 0 ;
9361 char *kwnames[] = {
9362 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9363 };
9364
9365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9368 {
9369 arg2 = wxString_in_helper(obj1);
9370 if (arg2 == NULL) SWIG_fail;
9371 temp2 = True;
9372 }
9373 if (obj2) {
9374 {
9375 arg3 = wxString_in_helper(obj2);
9376 if (arg3 == NULL) SWIG_fail;
9377 temp3 = True;
9378 }
9379 }
9380 if (obj3) {
9381 {
9382 arg4 = wxString_in_helper(obj3);
9383 if (arg4 == NULL) SWIG_fail;
9384 temp4 = True;
9385 }
9386 }
9387 if (obj4) {
9388 arg5 = (bool) SWIG_AsBool(obj4);
9389 if (PyErr_Occurred()) SWIG_fail;
9390 }
9391 if (obj5) {
9392 arg6 = (bool) SWIG_AsBool(obj5);
9393 if (PyErr_Occurred()) SWIG_fail;
9394 }
9395 {
9396 PyThreadState* __tstate = wxPyBeginAllowThreads();
9397 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9398
9399 wxPyEndAllowThreads(__tstate);
9400 if (PyErr_Occurred()) SWIG_fail;
9401 }
9402 {
9403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9404 }
9405 {
9406 if (temp2)
9407 delete arg2;
9408 }
9409 {
9410 if (temp3)
9411 delete arg3;
9412 }
9413 {
9414 if (temp4)
9415 delete arg4;
9416 }
9417 return resultobj;
9418 fail:
9419 {
9420 if (temp2)
9421 delete arg2;
9422 }
9423 {
9424 if (temp3)
9425 delete arg3;
9426 }
9427 {
9428 if (temp4)
9429 delete arg4;
9430 }
9431 return NULL;
9432 }
9433
9434
9435 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9436 PyObject *resultobj;
9437 wxLocale *arg1 = (wxLocale *) 0 ;
9438 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9439 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9440 bool result;
9441 PyObject * obj0 = 0 ;
9442 PyObject * obj1 = 0 ;
9443 PyObject * obj2 = 0 ;
9444 char *kwnames[] = {
9445 (char *) "self",(char *) "language",(char *) "flags", NULL
9446 };
9447
9448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9451 if (obj1) {
9452 arg2 = (int) SWIG_AsInt(obj1);
9453 if (PyErr_Occurred()) SWIG_fail;
9454 }
9455 if (obj2) {
9456 arg3 = (int) SWIG_AsInt(obj2);
9457 if (PyErr_Occurred()) SWIG_fail;
9458 }
9459 {
9460 PyThreadState* __tstate = wxPyBeginAllowThreads();
9461 result = (bool)(arg1)->Init(arg2,arg3);
9462
9463 wxPyEndAllowThreads(__tstate);
9464 if (PyErr_Occurred()) SWIG_fail;
9465 }
9466 {
9467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9468 }
9469 return resultobj;
9470 fail:
9471 return NULL;
9472 }
9473
9474
9475 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9476 PyObject *resultobj;
9477 int result;
9478 char *kwnames[] = {
9479 NULL
9480 };
9481
9482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9483 {
9484 PyThreadState* __tstate = wxPyBeginAllowThreads();
9485 result = (int)wxLocale::GetSystemLanguage();
9486
9487 wxPyEndAllowThreads(__tstate);
9488 if (PyErr_Occurred()) SWIG_fail;
9489 }
9490 resultobj = SWIG_FromInt((int)result);
9491 return resultobj;
9492 fail:
9493 return NULL;
9494 }
9495
9496
9497 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9498 PyObject *resultobj;
9499 int result;
9500 char *kwnames[] = {
9501 NULL
9502 };
9503
9504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9505 {
9506 PyThreadState* __tstate = wxPyBeginAllowThreads();
9507 result = (int)wxLocale::GetSystemEncoding();
9508
9509 wxPyEndAllowThreads(__tstate);
9510 if (PyErr_Occurred()) SWIG_fail;
9511 }
9512 resultobj = SWIG_FromInt((int)result);
9513 return resultobj;
9514 fail:
9515 return NULL;
9516 }
9517
9518
9519 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9520 PyObject *resultobj;
9521 wxString result;
9522 char *kwnames[] = {
9523 NULL
9524 };
9525
9526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9527 {
9528 PyThreadState* __tstate = wxPyBeginAllowThreads();
9529 result = wxLocale::GetSystemEncodingName();
9530
9531 wxPyEndAllowThreads(__tstate);
9532 if (PyErr_Occurred()) SWIG_fail;
9533 }
9534 {
9535 #if wxUSE_UNICODE
9536 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9537 #else
9538 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9539 #endif
9540 }
9541 return resultobj;
9542 fail:
9543 return NULL;
9544 }
9545
9546
9547 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9548 PyObject *resultobj;
9549 wxLocale *arg1 = (wxLocale *) 0 ;
9550 bool result;
9551 PyObject * obj0 = 0 ;
9552 char *kwnames[] = {
9553 (char *) "self", NULL
9554 };
9555
9556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9559 {
9560 PyThreadState* __tstate = wxPyBeginAllowThreads();
9561 result = (bool)((wxLocale const *)arg1)->IsOk();
9562
9563 wxPyEndAllowThreads(__tstate);
9564 if (PyErr_Occurred()) SWIG_fail;
9565 }
9566 {
9567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9568 }
9569 return resultobj;
9570 fail:
9571 return NULL;
9572 }
9573
9574
9575 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9576 PyObject *resultobj;
9577 wxLocale *arg1 = (wxLocale *) 0 ;
9578 wxString result;
9579 PyObject * obj0 = 0 ;
9580 char *kwnames[] = {
9581 (char *) "self", NULL
9582 };
9583
9584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9587 {
9588 PyThreadState* __tstate = wxPyBeginAllowThreads();
9589 result = ((wxLocale const *)arg1)->GetLocale();
9590
9591 wxPyEndAllowThreads(__tstate);
9592 if (PyErr_Occurred()) SWIG_fail;
9593 }
9594 {
9595 #if wxUSE_UNICODE
9596 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9597 #else
9598 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9599 #endif
9600 }
9601 return resultobj;
9602 fail:
9603 return NULL;
9604 }
9605
9606
9607 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9608 PyObject *resultobj;
9609 wxLocale *arg1 = (wxLocale *) 0 ;
9610 int result;
9611 PyObject * obj0 = 0 ;
9612 char *kwnames[] = {
9613 (char *) "self", NULL
9614 };
9615
9616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9619 {
9620 PyThreadState* __tstate = wxPyBeginAllowThreads();
9621 result = (int)((wxLocale const *)arg1)->GetLanguage();
9622
9623 wxPyEndAllowThreads(__tstate);
9624 if (PyErr_Occurred()) SWIG_fail;
9625 }
9626 resultobj = SWIG_FromInt((int)result);
9627 return resultobj;
9628 fail:
9629 return NULL;
9630 }
9631
9632
9633 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9634 PyObject *resultobj;
9635 wxLocale *arg1 = (wxLocale *) 0 ;
9636 wxString result;
9637 PyObject * obj0 = 0 ;
9638 char *kwnames[] = {
9639 (char *) "self", NULL
9640 };
9641
9642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9645 {
9646 PyThreadState* __tstate = wxPyBeginAllowThreads();
9647 result = ((wxLocale const *)arg1)->GetSysName();
9648
9649 wxPyEndAllowThreads(__tstate);
9650 if (PyErr_Occurred()) SWIG_fail;
9651 }
9652 {
9653 #if wxUSE_UNICODE
9654 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9655 #else
9656 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9657 #endif
9658 }
9659 return resultobj;
9660 fail:
9661 return NULL;
9662 }
9663
9664
9665 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9666 PyObject *resultobj;
9667 wxLocale *arg1 = (wxLocale *) 0 ;
9668 wxString result;
9669 PyObject * obj0 = 0 ;
9670 char *kwnames[] = {
9671 (char *) "self", NULL
9672 };
9673
9674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9677 {
9678 PyThreadState* __tstate = wxPyBeginAllowThreads();
9679 result = ((wxLocale const *)arg1)->GetCanonicalName();
9680
9681 wxPyEndAllowThreads(__tstate);
9682 if (PyErr_Occurred()) SWIG_fail;
9683 }
9684 {
9685 #if wxUSE_UNICODE
9686 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9687 #else
9688 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9689 #endif
9690 }
9691 return resultobj;
9692 fail:
9693 return NULL;
9694 }
9695
9696
9697 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9698 PyObject *resultobj;
9699 wxString *arg1 = 0 ;
9700 bool temp1 = False ;
9701 PyObject * obj0 = 0 ;
9702 char *kwnames[] = {
9703 (char *) "prefix", NULL
9704 };
9705
9706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9707 {
9708 arg1 = wxString_in_helper(obj0);
9709 if (arg1 == NULL) SWIG_fail;
9710 temp1 = True;
9711 }
9712 {
9713 PyThreadState* __tstate = wxPyBeginAllowThreads();
9714 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9715
9716 wxPyEndAllowThreads(__tstate);
9717 if (PyErr_Occurred()) SWIG_fail;
9718 }
9719 Py_INCREF(Py_None); resultobj = Py_None;
9720 {
9721 if (temp1)
9722 delete arg1;
9723 }
9724 return resultobj;
9725 fail:
9726 {
9727 if (temp1)
9728 delete arg1;
9729 }
9730 return NULL;
9731 }
9732
9733
9734 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9735 PyObject *resultobj;
9736 wxLocale *arg1 = (wxLocale *) 0 ;
9737 wxString *arg2 = 0 ;
9738 bool result;
9739 bool temp2 = False ;
9740 PyObject * obj0 = 0 ;
9741 PyObject * obj1 = 0 ;
9742 char *kwnames[] = {
9743 (char *) "self",(char *) "szDomain", NULL
9744 };
9745
9746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9749 {
9750 arg2 = wxString_in_helper(obj1);
9751 if (arg2 == NULL) SWIG_fail;
9752 temp2 = True;
9753 }
9754 {
9755 PyThreadState* __tstate = wxPyBeginAllowThreads();
9756 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9757
9758 wxPyEndAllowThreads(__tstate);
9759 if (PyErr_Occurred()) SWIG_fail;
9760 }
9761 {
9762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9763 }
9764 {
9765 if (temp2)
9766 delete arg2;
9767 }
9768 return resultobj;
9769 fail:
9770 {
9771 if (temp2)
9772 delete arg2;
9773 }
9774 return NULL;
9775 }
9776
9777
9778 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9779 PyObject *resultobj;
9780 wxLocale *arg1 = (wxLocale *) 0 ;
9781 wxString *arg2 = 0 ;
9782 bool result;
9783 bool temp2 = False ;
9784 PyObject * obj0 = 0 ;
9785 PyObject * obj1 = 0 ;
9786 char *kwnames[] = {
9787 (char *) "self",(char *) "szDomain", NULL
9788 };
9789
9790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9793 {
9794 arg2 = wxString_in_helper(obj1);
9795 if (arg2 == NULL) SWIG_fail;
9796 temp2 = True;
9797 }
9798 {
9799 PyThreadState* __tstate = wxPyBeginAllowThreads();
9800 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9801
9802 wxPyEndAllowThreads(__tstate);
9803 if (PyErr_Occurred()) SWIG_fail;
9804 }
9805 {
9806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9807 }
9808 {
9809 if (temp2)
9810 delete arg2;
9811 }
9812 return resultobj;
9813 fail:
9814 {
9815 if (temp2)
9816 delete arg2;
9817 }
9818 return NULL;
9819 }
9820
9821
9822 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9823 PyObject *resultobj;
9824 int arg1 ;
9825 wxLanguageInfo *result;
9826 PyObject * obj0 = 0 ;
9827 char *kwnames[] = {
9828 (char *) "lang", NULL
9829 };
9830
9831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9832 arg1 = (int) SWIG_AsInt(obj0);
9833 if (PyErr_Occurred()) SWIG_fail;
9834 {
9835 PyThreadState* __tstate = wxPyBeginAllowThreads();
9836 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9837
9838 wxPyEndAllowThreads(__tstate);
9839 if (PyErr_Occurred()) SWIG_fail;
9840 }
9841 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9842 return resultobj;
9843 fail:
9844 return NULL;
9845 }
9846
9847
9848 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9849 PyObject *resultobj;
9850 int arg1 ;
9851 wxString result;
9852 PyObject * obj0 = 0 ;
9853 char *kwnames[] = {
9854 (char *) "lang", NULL
9855 };
9856
9857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9858 arg1 = (int) SWIG_AsInt(obj0);
9859 if (PyErr_Occurred()) SWIG_fail;
9860 {
9861 PyThreadState* __tstate = wxPyBeginAllowThreads();
9862 result = wxLocale::GetLanguageName(arg1);
9863
9864 wxPyEndAllowThreads(__tstate);
9865 if (PyErr_Occurred()) SWIG_fail;
9866 }
9867 {
9868 #if wxUSE_UNICODE
9869 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9870 #else
9871 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9872 #endif
9873 }
9874 return resultobj;
9875 fail:
9876 return NULL;
9877 }
9878
9879
9880 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9881 PyObject *resultobj;
9882 wxString *arg1 = 0 ;
9883 wxLanguageInfo *result;
9884 bool temp1 = False ;
9885 PyObject * obj0 = 0 ;
9886 char *kwnames[] = {
9887 (char *) "locale", NULL
9888 };
9889
9890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9891 {
9892 arg1 = wxString_in_helper(obj0);
9893 if (arg1 == NULL) SWIG_fail;
9894 temp1 = True;
9895 }
9896 {
9897 PyThreadState* __tstate = wxPyBeginAllowThreads();
9898 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9899
9900 wxPyEndAllowThreads(__tstate);
9901 if (PyErr_Occurred()) SWIG_fail;
9902 }
9903 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9904 {
9905 if (temp1)
9906 delete arg1;
9907 }
9908 return resultobj;
9909 fail:
9910 {
9911 if (temp1)
9912 delete arg1;
9913 }
9914 return NULL;
9915 }
9916
9917
9918 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9919 PyObject *resultobj;
9920 wxLanguageInfo *arg1 = 0 ;
9921 PyObject * obj0 = 0 ;
9922 char *kwnames[] = {
9923 (char *) "info", NULL
9924 };
9925
9926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9928 SWIG_POINTER_EXCEPTION | 0)) == -1)
9929 SWIG_fail;
9930 if (arg1 == NULL) {
9931 PyErr_SetString(PyExc_TypeError,"null reference");
9932 SWIG_fail;
9933 }
9934 {
9935 PyThreadState* __tstate = wxPyBeginAllowThreads();
9936 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9937
9938 wxPyEndAllowThreads(__tstate);
9939 if (PyErr_Occurred()) SWIG_fail;
9940 }
9941 Py_INCREF(Py_None); resultobj = Py_None;
9942 return resultobj;
9943 fail:
9944 return NULL;
9945 }
9946
9947
9948 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9949 PyObject *resultobj;
9950 wxLocale *arg1 = (wxLocale *) 0 ;
9951 wxString *arg2 = 0 ;
9952 wxString const &arg3_defvalue = wxPyEmptyString ;
9953 wxString *arg3 = (wxString *) &arg3_defvalue ;
9954 wxString result;
9955 bool temp2 = False ;
9956 bool temp3 = False ;
9957 PyObject * obj0 = 0 ;
9958 PyObject * obj1 = 0 ;
9959 PyObject * obj2 = 0 ;
9960 char *kwnames[] = {
9961 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9962 };
9963
9964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9967 {
9968 arg2 = wxString_in_helper(obj1);
9969 if (arg2 == NULL) SWIG_fail;
9970 temp2 = True;
9971 }
9972 if (obj2) {
9973 {
9974 arg3 = wxString_in_helper(obj2);
9975 if (arg3 == NULL) SWIG_fail;
9976 temp3 = True;
9977 }
9978 }
9979 {
9980 PyThreadState* __tstate = wxPyBeginAllowThreads();
9981 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9982
9983 wxPyEndAllowThreads(__tstate);
9984 if (PyErr_Occurred()) SWIG_fail;
9985 }
9986 {
9987 #if wxUSE_UNICODE
9988 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9989 #else
9990 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9991 #endif
9992 }
9993 {
9994 if (temp2)
9995 delete arg2;
9996 }
9997 {
9998 if (temp3)
9999 delete arg3;
10000 }
10001 return resultobj;
10002 fail:
10003 {
10004 if (temp2)
10005 delete arg2;
10006 }
10007 {
10008 if (temp3)
10009 delete arg3;
10010 }
10011 return NULL;
10012 }
10013
10014
10015 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
10016 PyObject *resultobj;
10017 wxLocale *arg1 = (wxLocale *) 0 ;
10018 wxString *result;
10019 PyObject * obj0 = 0 ;
10020 char *kwnames[] = {
10021 (char *) "self", NULL
10022 };
10023
10024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
10025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10027 {
10028 PyThreadState* __tstate = wxPyBeginAllowThreads();
10029 {
10030 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
10031 result = (wxString *) &_result_ref;
10032 }
10033
10034 wxPyEndAllowThreads(__tstate);
10035 if (PyErr_Occurred()) SWIG_fail;
10036 }
10037 {
10038 #if wxUSE_UNICODE
10039 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10040 #else
10041 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10042 #endif
10043 }
10044 return resultobj;
10045 fail:
10046 return NULL;
10047 }
10048
10049
10050 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
10051 PyObject *obj;
10052 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10053 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
10054 Py_INCREF(obj);
10055 return Py_BuildValue((char *)"");
10056 }
10057 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
10058 PyObject *resultobj;
10059 wxLocale *result;
10060 char *kwnames[] = {
10061 NULL
10062 };
10063
10064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
10065 {
10066 PyThreadState* __tstate = wxPyBeginAllowThreads();
10067 result = (wxLocale *)wxGetLocale();
10068
10069 wxPyEndAllowThreads(__tstate);
10070 if (PyErr_Occurred()) SWIG_fail;
10071 }
10072 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
10073 return resultobj;
10074 fail:
10075 return NULL;
10076 }
10077
10078
10079 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
10080 PyObject *resultobj;
10081 wxString *arg1 = 0 ;
10082 wxString result;
10083 bool temp1 = False ;
10084 PyObject * obj0 = 0 ;
10085
10086 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
10087 {
10088 arg1 = wxString_in_helper(obj0);
10089 if (arg1 == NULL) SWIG_fail;
10090 temp1 = True;
10091 }
10092 {
10093 PyThreadState* __tstate = wxPyBeginAllowThreads();
10094 result = wxGetTranslation((wxString const &)*arg1);
10095
10096 wxPyEndAllowThreads(__tstate);
10097 if (PyErr_Occurred()) SWIG_fail;
10098 }
10099 {
10100 #if wxUSE_UNICODE
10101 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10102 #else
10103 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10104 #endif
10105 }
10106 {
10107 if (temp1)
10108 delete arg1;
10109 }
10110 return resultobj;
10111 fail:
10112 {
10113 if (temp1)
10114 delete arg1;
10115 }
10116 return NULL;
10117 }
10118
10119
10120 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
10121 PyObject *resultobj;
10122 wxString *arg1 = 0 ;
10123 wxString *arg2 = 0 ;
10124 size_t arg3 ;
10125 wxString result;
10126 bool temp1 = False ;
10127 bool temp2 = False ;
10128 PyObject * obj0 = 0 ;
10129 PyObject * obj1 = 0 ;
10130 PyObject * obj2 = 0 ;
10131
10132 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10133 {
10134 arg1 = wxString_in_helper(obj0);
10135 if (arg1 == NULL) SWIG_fail;
10136 temp1 = True;
10137 }
10138 {
10139 arg2 = wxString_in_helper(obj1);
10140 if (arg2 == NULL) SWIG_fail;
10141 temp2 = True;
10142 }
10143 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
10144 if (PyErr_Occurred()) SWIG_fail;
10145 {
10146 PyThreadState* __tstate = wxPyBeginAllowThreads();
10147 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10148
10149 wxPyEndAllowThreads(__tstate);
10150 if (PyErr_Occurred()) SWIG_fail;
10151 }
10152 {
10153 #if wxUSE_UNICODE
10154 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10155 #else
10156 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10157 #endif
10158 }
10159 {
10160 if (temp1)
10161 delete arg1;
10162 }
10163 {
10164 if (temp2)
10165 delete arg2;
10166 }
10167 return resultobj;
10168 fail:
10169 {
10170 if (temp1)
10171 delete arg1;
10172 }
10173 {
10174 if (temp2)
10175 delete arg2;
10176 }
10177 return NULL;
10178 }
10179
10180
10181 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10182 int argc;
10183 PyObject *argv[4];
10184 int ii;
10185
10186 argc = PyObject_Length(args);
10187 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10188 argv[ii] = PyTuple_GetItem(args,ii);
10189 }
10190 if (argc == 1) {
10191 int _v;
10192 {
10193 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10194 }
10195 if (_v) {
10196 return _wrap_GetTranslation__SWIG_0(self,args);
10197 }
10198 }
10199 if (argc == 3) {
10200 int _v;
10201 {
10202 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10203 }
10204 if (_v) {
10205 {
10206 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10207 }
10208 if (_v) {
10209 _v = SWIG_CheckUnsignedLong(argv[2]);
10210 if (_v) {
10211 return _wrap_GetTranslation__SWIG_1(self,args);
10212 }
10213 }
10214 }
10215 }
10216
10217 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10218 return NULL;
10219 }
10220
10221
10222 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10223 PyObject *resultobj;
10224 wxEncodingConverter *result;
10225 char *kwnames[] = {
10226 NULL
10227 };
10228
10229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10230 {
10231 PyThreadState* __tstate = wxPyBeginAllowThreads();
10232 result = (wxEncodingConverter *)new wxEncodingConverter();
10233
10234 wxPyEndAllowThreads(__tstate);
10235 if (PyErr_Occurred()) SWIG_fail;
10236 }
10237 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10238 return resultobj;
10239 fail:
10240 return NULL;
10241 }
10242
10243
10244 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10245 PyObject *resultobj;
10246 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10247 PyObject * obj0 = 0 ;
10248 char *kwnames[] = {
10249 (char *) "self", NULL
10250 };
10251
10252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10255 {
10256 PyThreadState* __tstate = wxPyBeginAllowThreads();
10257 delete arg1;
10258
10259 wxPyEndAllowThreads(__tstate);
10260 if (PyErr_Occurred()) SWIG_fail;
10261 }
10262 Py_INCREF(Py_None); resultobj = Py_None;
10263 return resultobj;
10264 fail:
10265 return NULL;
10266 }
10267
10268
10269 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10270 PyObject *resultobj;
10271 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10272 int arg2 ;
10273 int arg3 ;
10274 int arg4 = (int) wxCONVERT_STRICT ;
10275 bool result;
10276 PyObject * obj0 = 0 ;
10277 PyObject * obj1 = 0 ;
10278 PyObject * obj2 = 0 ;
10279 PyObject * obj3 = 0 ;
10280 char *kwnames[] = {
10281 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10282 };
10283
10284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10287 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10288 if (PyErr_Occurred()) SWIG_fail;
10289 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10290 if (PyErr_Occurred()) SWIG_fail;
10291 if (obj3) {
10292 arg4 = (int) SWIG_AsInt(obj3);
10293 if (PyErr_Occurred()) SWIG_fail;
10294 }
10295 {
10296 PyThreadState* __tstate = wxPyBeginAllowThreads();
10297 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10298
10299 wxPyEndAllowThreads(__tstate);
10300 if (PyErr_Occurred()) SWIG_fail;
10301 }
10302 {
10303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10304 }
10305 return resultobj;
10306 fail:
10307 return NULL;
10308 }
10309
10310
10311 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10312 PyObject *resultobj;
10313 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10314 wxString *arg2 = 0 ;
10315 wxString result;
10316 bool temp2 = False ;
10317 PyObject * obj0 = 0 ;
10318 PyObject * obj1 = 0 ;
10319 char *kwnames[] = {
10320 (char *) "self",(char *) "input", NULL
10321 };
10322
10323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10326 {
10327 arg2 = wxString_in_helper(obj1);
10328 if (arg2 == NULL) SWIG_fail;
10329 temp2 = True;
10330 }
10331 {
10332 PyThreadState* __tstate = wxPyBeginAllowThreads();
10333 result = (arg1)->Convert((wxString const &)*arg2);
10334
10335 wxPyEndAllowThreads(__tstate);
10336 if (PyErr_Occurred()) SWIG_fail;
10337 }
10338 {
10339 #if wxUSE_UNICODE
10340 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10341 #else
10342 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10343 #endif
10344 }
10345 {
10346 if (temp2)
10347 delete arg2;
10348 }
10349 return resultobj;
10350 fail:
10351 {
10352 if (temp2)
10353 delete arg2;
10354 }
10355 return NULL;
10356 }
10357
10358
10359 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10360 PyObject *resultobj;
10361 int arg1 ;
10362 int arg2 = (int) wxPLATFORM_CURRENT ;
10363 wxFontEncodingArray result;
10364 PyObject * obj0 = 0 ;
10365 PyObject * obj1 = 0 ;
10366 char *kwnames[] = {
10367 (char *) "enc",(char *) "platform", NULL
10368 };
10369
10370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10371 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10372 if (PyErr_Occurred()) SWIG_fail;
10373 if (obj1) {
10374 arg2 = (int) SWIG_AsInt(obj1);
10375 if (PyErr_Occurred()) SWIG_fail;
10376 }
10377 {
10378 PyThreadState* __tstate = wxPyBeginAllowThreads();
10379 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10380
10381 wxPyEndAllowThreads(__tstate);
10382 if (PyErr_Occurred()) SWIG_fail;
10383 }
10384 {
10385 resultobj = PyList_New(0);
10386 for (size_t i=0; i < (&result)->GetCount(); i++) {
10387 PyObject* number = PyInt_FromLong((&result)->Item(i));
10388 PyList_Append(resultobj, number);
10389 Py_DECREF(number);
10390 }
10391 }
10392 return resultobj;
10393 fail:
10394 return NULL;
10395 }
10396
10397
10398 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10399 PyObject *resultobj;
10400 int arg1 ;
10401 wxFontEncodingArray result;
10402 PyObject * obj0 = 0 ;
10403 char *kwnames[] = {
10404 (char *) "enc", NULL
10405 };
10406
10407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10408 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10409 if (PyErr_Occurred()) SWIG_fail;
10410 {
10411 PyThreadState* __tstate = wxPyBeginAllowThreads();
10412 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10413
10414 wxPyEndAllowThreads(__tstate);
10415 if (PyErr_Occurred()) SWIG_fail;
10416 }
10417 {
10418 resultobj = PyList_New(0);
10419 for (size_t i=0; i < (&result)->GetCount(); i++) {
10420 PyObject* number = PyInt_FromLong((&result)->Item(i));
10421 PyList_Append(resultobj, number);
10422 Py_DECREF(number);
10423 }
10424 }
10425 return resultobj;
10426 fail:
10427 return NULL;
10428 }
10429
10430
10431 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10432 PyObject *resultobj;
10433 int arg1 ;
10434 int arg2 ;
10435 bool result;
10436 PyObject * obj0 = 0 ;
10437 PyObject * obj1 = 0 ;
10438 char *kwnames[] = {
10439 (char *) "encIn",(char *) "encOut", NULL
10440 };
10441
10442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10443 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10444 if (PyErr_Occurred()) SWIG_fail;
10445 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10446 if (PyErr_Occurred()) SWIG_fail;
10447 {
10448 PyThreadState* __tstate = wxPyBeginAllowThreads();
10449 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10450
10451 wxPyEndAllowThreads(__tstate);
10452 if (PyErr_Occurred()) SWIG_fail;
10453 }
10454 {
10455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10456 }
10457 return resultobj;
10458 fail:
10459 return NULL;
10460 }
10461
10462
10463 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10464 PyObject *obj;
10465 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10466 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10467 Py_INCREF(obj);
10468 return Py_BuildValue((char *)"");
10469 }
10470 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10471 PyObject *resultobj;
10472 wxDC *arg1 = (wxDC *) 0 ;
10473 PyObject * obj0 = 0 ;
10474 char *kwnames[] = {
10475 (char *) "self", NULL
10476 };
10477
10478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10481 {
10482 PyThreadState* __tstate = wxPyBeginAllowThreads();
10483 delete arg1;
10484
10485 wxPyEndAllowThreads(__tstate);
10486 if (PyErr_Occurred()) SWIG_fail;
10487 }
10488 Py_INCREF(Py_None); resultobj = Py_None;
10489 return resultobj;
10490 fail:
10491 return NULL;
10492 }
10493
10494
10495 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10496 PyObject *resultobj;
10497 wxDC *arg1 = (wxDC *) 0 ;
10498 PyObject * obj0 = 0 ;
10499 char *kwnames[] = {
10500 (char *) "self", NULL
10501 };
10502
10503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10506 {
10507 PyThreadState* __tstate = wxPyBeginAllowThreads();
10508 (arg1)->BeginDrawing();
10509
10510 wxPyEndAllowThreads(__tstate);
10511 if (PyErr_Occurred()) SWIG_fail;
10512 }
10513 Py_INCREF(Py_None); resultobj = Py_None;
10514 return resultobj;
10515 fail:
10516 return NULL;
10517 }
10518
10519
10520 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10521 PyObject *resultobj;
10522 wxDC *arg1 = (wxDC *) 0 ;
10523 PyObject * obj0 = 0 ;
10524 char *kwnames[] = {
10525 (char *) "self", NULL
10526 };
10527
10528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10531 {
10532 PyThreadState* __tstate = wxPyBeginAllowThreads();
10533 (arg1)->EndDrawing();
10534
10535 wxPyEndAllowThreads(__tstate);
10536 if (PyErr_Occurred()) SWIG_fail;
10537 }
10538 Py_INCREF(Py_None); resultobj = Py_None;
10539 return resultobj;
10540 fail:
10541 return NULL;
10542 }
10543
10544
10545 static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10546 PyObject *resultobj;
10547 wxDC *arg1 = (wxDC *) 0 ;
10548 int arg2 ;
10549 int arg3 ;
10550 wxColour *arg4 = 0 ;
10551 int arg5 = (int) wxFLOOD_SURFACE ;
10552 bool result;
10553 wxColour temp4 ;
10554 PyObject * obj0 = 0 ;
10555 PyObject * obj1 = 0 ;
10556 PyObject * obj2 = 0 ;
10557 PyObject * obj3 = 0 ;
10558 PyObject * obj4 = 0 ;
10559 char *kwnames[] = {
10560 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10561 };
10562
10563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10566 arg2 = (int) SWIG_AsInt(obj1);
10567 if (PyErr_Occurred()) SWIG_fail;
10568 arg3 = (int) SWIG_AsInt(obj2);
10569 if (PyErr_Occurred()) SWIG_fail;
10570 {
10571 arg4 = &temp4;
10572 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10573 }
10574 if (obj4) {
10575 arg5 = (int) SWIG_AsInt(obj4);
10576 if (PyErr_Occurred()) SWIG_fail;
10577 }
10578 {
10579 PyThreadState* __tstate = wxPyBeginAllowThreads();
10580 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10581
10582 wxPyEndAllowThreads(__tstate);
10583 if (PyErr_Occurred()) SWIG_fail;
10584 }
10585 {
10586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10587 }
10588 return resultobj;
10589 fail:
10590 return NULL;
10591 }
10592
10593
10594 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
10595 PyObject *resultobj;
10596 wxDC *arg1 = (wxDC *) 0 ;
10597 wxPoint *arg2 = 0 ;
10598 wxColour *arg3 = 0 ;
10599 int arg4 = (int) wxFLOOD_SURFACE ;
10600 bool result;
10601 wxPoint temp2 ;
10602 wxColour temp3 ;
10603 PyObject * obj0 = 0 ;
10604 PyObject * obj1 = 0 ;
10605 PyObject * obj2 = 0 ;
10606 PyObject * obj3 = 0 ;
10607 char *kwnames[] = {
10608 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10609 };
10610
10611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10614 {
10615 arg2 = &temp2;
10616 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10617 }
10618 {
10619 arg3 = &temp3;
10620 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10621 }
10622 if (obj3) {
10623 arg4 = (int) SWIG_AsInt(obj3);
10624 if (PyErr_Occurred()) SWIG_fail;
10625 }
10626 {
10627 PyThreadState* __tstate = wxPyBeginAllowThreads();
10628 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10629
10630 wxPyEndAllowThreads(__tstate);
10631 if (PyErr_Occurred()) SWIG_fail;
10632 }
10633 {
10634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10635 }
10636 return resultobj;
10637 fail:
10638 return NULL;
10639 }
10640
10641
10642 static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10643 PyObject *resultobj;
10644 wxDC *arg1 = (wxDC *) 0 ;
10645 int arg2 ;
10646 int arg3 ;
10647 wxColour result;
10648 PyObject * obj0 = 0 ;
10649 PyObject * obj1 = 0 ;
10650 PyObject * obj2 = 0 ;
10651 char *kwnames[] = {
10652 (char *) "self",(char *) "x",(char *) "y", NULL
10653 };
10654
10655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10658 arg2 = (int) SWIG_AsInt(obj1);
10659 if (PyErr_Occurred()) SWIG_fail;
10660 arg3 = (int) SWIG_AsInt(obj2);
10661 if (PyErr_Occurred()) SWIG_fail;
10662 {
10663 PyThreadState* __tstate = wxPyBeginAllowThreads();
10664 result = wxDC_GetPixelXY(arg1,arg2,arg3);
10665
10666 wxPyEndAllowThreads(__tstate);
10667 if (PyErr_Occurred()) SWIG_fail;
10668 }
10669 {
10670 wxColour * resultptr;
10671 resultptr = new wxColour((wxColour &) result);
10672 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10673 }
10674 return resultobj;
10675 fail:
10676 return NULL;
10677 }
10678
10679
10680 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10681 PyObject *resultobj;
10682 wxDC *arg1 = (wxDC *) 0 ;
10683 wxPoint *arg2 = 0 ;
10684 wxColour result;
10685 wxPoint temp2 ;
10686 PyObject * obj0 = 0 ;
10687 PyObject * obj1 = 0 ;
10688 char *kwnames[] = {
10689 (char *) "self",(char *) "pt", NULL
10690 };
10691
10692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
10693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10695 {
10696 arg2 = &temp2;
10697 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10698 }
10699 {
10700 PyThreadState* __tstate = wxPyBeginAllowThreads();
10701 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
10702
10703 wxPyEndAllowThreads(__tstate);
10704 if (PyErr_Occurred()) SWIG_fail;
10705 }
10706 {
10707 wxColour * resultptr;
10708 resultptr = new wxColour((wxColour &) result);
10709 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10710 }
10711 return resultobj;
10712 fail:
10713 return NULL;
10714 }
10715
10716
10717 static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10718 PyObject *resultobj;
10719 wxDC *arg1 = (wxDC *) 0 ;
10720 int arg2 ;
10721 int arg3 ;
10722 int arg4 ;
10723 int arg5 ;
10724 PyObject * obj0 = 0 ;
10725 PyObject * obj1 = 0 ;
10726 PyObject * obj2 = 0 ;
10727 PyObject * obj3 = 0 ;
10728 PyObject * obj4 = 0 ;
10729 char *kwnames[] = {
10730 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10731 };
10732
10733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10736 arg2 = (int) SWIG_AsInt(obj1);
10737 if (PyErr_Occurred()) SWIG_fail;
10738 arg3 = (int) SWIG_AsInt(obj2);
10739 if (PyErr_Occurred()) SWIG_fail;
10740 arg4 = (int) SWIG_AsInt(obj3);
10741 if (PyErr_Occurred()) SWIG_fail;
10742 arg5 = (int) SWIG_AsInt(obj4);
10743 if (PyErr_Occurred()) SWIG_fail;
10744 {
10745 PyThreadState* __tstate = wxPyBeginAllowThreads();
10746 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10747
10748 wxPyEndAllowThreads(__tstate);
10749 if (PyErr_Occurred()) SWIG_fail;
10750 }
10751 Py_INCREF(Py_None); resultobj = Py_None;
10752 return resultobj;
10753 fail:
10754 return NULL;
10755 }
10756
10757
10758 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
10759 PyObject *resultobj;
10760 wxDC *arg1 = (wxDC *) 0 ;
10761 wxPoint *arg2 = 0 ;
10762 wxPoint *arg3 = 0 ;
10763 wxPoint temp2 ;
10764 wxPoint temp3 ;
10765 PyObject * obj0 = 0 ;
10766 PyObject * obj1 = 0 ;
10767 PyObject * obj2 = 0 ;
10768 char *kwnames[] = {
10769 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10770 };
10771
10772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
10773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10775 {
10776 arg2 = &temp2;
10777 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10778 }
10779 {
10780 arg3 = &temp3;
10781 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10782 }
10783 {
10784 PyThreadState* __tstate = wxPyBeginAllowThreads();
10785 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10786
10787 wxPyEndAllowThreads(__tstate);
10788 if (PyErr_Occurred()) SWIG_fail;
10789 }
10790 Py_INCREF(Py_None); resultobj = Py_None;
10791 return resultobj;
10792 fail:
10793 return NULL;
10794 }
10795
10796
10797 static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10798 PyObject *resultobj;
10799 wxDC *arg1 = (wxDC *) 0 ;
10800 int arg2 ;
10801 int arg3 ;
10802 PyObject * obj0 = 0 ;
10803 PyObject * obj1 = 0 ;
10804 PyObject * obj2 = 0 ;
10805 char *kwnames[] = {
10806 (char *) "self",(char *) "x",(char *) "y", NULL
10807 };
10808
10809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10812 arg2 = (int) SWIG_AsInt(obj1);
10813 if (PyErr_Occurred()) SWIG_fail;
10814 arg3 = (int) SWIG_AsInt(obj2);
10815 if (PyErr_Occurred()) SWIG_fail;
10816 {
10817 PyThreadState* __tstate = wxPyBeginAllowThreads();
10818 (arg1)->CrossHair(arg2,arg3);
10819
10820 wxPyEndAllowThreads(__tstate);
10821 if (PyErr_Occurred()) SWIG_fail;
10822 }
10823 Py_INCREF(Py_None); resultobj = Py_None;
10824 return resultobj;
10825 fail:
10826 return NULL;
10827 }
10828
10829
10830 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
10831 PyObject *resultobj;
10832 wxDC *arg1 = (wxDC *) 0 ;
10833 wxPoint *arg2 = 0 ;
10834 wxPoint temp2 ;
10835 PyObject * obj0 = 0 ;
10836 PyObject * obj1 = 0 ;
10837 char *kwnames[] = {
10838 (char *) "self",(char *) "pt", NULL
10839 };
10840
10841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
10842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10844 {
10845 arg2 = &temp2;
10846 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10847 }
10848 {
10849 PyThreadState* __tstate = wxPyBeginAllowThreads();
10850 (arg1)->CrossHair((wxPoint const &)*arg2);
10851
10852 wxPyEndAllowThreads(__tstate);
10853 if (PyErr_Occurred()) SWIG_fail;
10854 }
10855 Py_INCREF(Py_None); resultobj = Py_None;
10856 return resultobj;
10857 fail:
10858 return NULL;
10859 }
10860
10861
10862 static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10863 PyObject *resultobj;
10864 wxDC *arg1 = (wxDC *) 0 ;
10865 int arg2 ;
10866 int arg3 ;
10867 int arg4 ;
10868 int arg5 ;
10869 int arg6 ;
10870 int arg7 ;
10871 PyObject * obj0 = 0 ;
10872 PyObject * obj1 = 0 ;
10873 PyObject * obj2 = 0 ;
10874 PyObject * obj3 = 0 ;
10875 PyObject * obj4 = 0 ;
10876 PyObject * obj5 = 0 ;
10877 PyObject * obj6 = 0 ;
10878 char *kwnames[] = {
10879 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10880 };
10881
10882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10885 arg2 = (int) SWIG_AsInt(obj1);
10886 if (PyErr_Occurred()) SWIG_fail;
10887 arg3 = (int) SWIG_AsInt(obj2);
10888 if (PyErr_Occurred()) SWIG_fail;
10889 arg4 = (int) SWIG_AsInt(obj3);
10890 if (PyErr_Occurred()) SWIG_fail;
10891 arg5 = (int) SWIG_AsInt(obj4);
10892 if (PyErr_Occurred()) SWIG_fail;
10893 arg6 = (int) SWIG_AsInt(obj5);
10894 if (PyErr_Occurred()) SWIG_fail;
10895 arg7 = (int) SWIG_AsInt(obj6);
10896 if (PyErr_Occurred()) SWIG_fail;
10897 {
10898 PyThreadState* __tstate = wxPyBeginAllowThreads();
10899 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10900
10901 wxPyEndAllowThreads(__tstate);
10902 if (PyErr_Occurred()) SWIG_fail;
10903 }
10904 Py_INCREF(Py_None); resultobj = Py_None;
10905 return resultobj;
10906 fail:
10907 return NULL;
10908 }
10909
10910
10911 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10912 PyObject *resultobj;
10913 wxDC *arg1 = (wxDC *) 0 ;
10914 wxPoint *arg2 = 0 ;
10915 wxPoint *arg3 = 0 ;
10916 wxPoint *arg4 = 0 ;
10917 wxPoint temp2 ;
10918 wxPoint temp3 ;
10919 wxPoint temp4 ;
10920 PyObject * obj0 = 0 ;
10921 PyObject * obj1 = 0 ;
10922 PyObject * obj2 = 0 ;
10923 PyObject * obj3 = 0 ;
10924 char *kwnames[] = {
10925 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10926 };
10927
10928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10931 {
10932 arg2 = &temp2;
10933 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10934 }
10935 {
10936 arg3 = &temp3;
10937 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10938 }
10939 {
10940 arg4 = &temp4;
10941 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10942 }
10943 {
10944 PyThreadState* __tstate = wxPyBeginAllowThreads();
10945 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10946
10947 wxPyEndAllowThreads(__tstate);
10948 if (PyErr_Occurred()) SWIG_fail;
10949 }
10950 Py_INCREF(Py_None); resultobj = Py_None;
10951 return resultobj;
10952 fail:
10953 return NULL;
10954 }
10955
10956
10957 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10958 PyObject *resultobj;
10959 wxDC *arg1 = (wxDC *) 0 ;
10960 int arg2 ;
10961 int arg3 ;
10962 int arg4 ;
10963 int arg5 ;
10964 PyObject * obj0 = 0 ;
10965 PyObject * obj1 = 0 ;
10966 PyObject * obj2 = 0 ;
10967 PyObject * obj3 = 0 ;
10968 PyObject * obj4 = 0 ;
10969 char *kwnames[] = {
10970 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10971 };
10972
10973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10976 arg2 = (int) SWIG_AsInt(obj1);
10977 if (PyErr_Occurred()) SWIG_fail;
10978 arg3 = (int) SWIG_AsInt(obj2);
10979 if (PyErr_Occurred()) SWIG_fail;
10980 arg4 = (int) SWIG_AsInt(obj3);
10981 if (PyErr_Occurred()) SWIG_fail;
10982 arg5 = (int) SWIG_AsInt(obj4);
10983 if (PyErr_Occurred()) SWIG_fail;
10984 {
10985 PyThreadState* __tstate = wxPyBeginAllowThreads();
10986 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10987
10988 wxPyEndAllowThreads(__tstate);
10989 if (PyErr_Occurred()) SWIG_fail;
10990 }
10991 Py_INCREF(Py_None); resultobj = Py_None;
10992 return resultobj;
10993 fail:
10994 return NULL;
10995 }
10996
10997
10998 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
10999 PyObject *resultobj;
11000 wxDC *arg1 = (wxDC *) 0 ;
11001 wxRect *arg2 = 0 ;
11002 wxRect temp2 ;
11003 PyObject * obj0 = 0 ;
11004 PyObject * obj1 = 0 ;
11005 char *kwnames[] = {
11006 (char *) "self",(char *) "rect", NULL
11007 };
11008
11009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
11010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11012 {
11013 arg2 = &temp2;
11014 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11015 }
11016 {
11017 PyThreadState* __tstate = wxPyBeginAllowThreads();
11018 (arg1)->DrawCheckMark((wxRect const &)*arg2);
11019
11020 wxPyEndAllowThreads(__tstate);
11021 if (PyErr_Occurred()) SWIG_fail;
11022 }
11023 Py_INCREF(Py_None); resultobj = Py_None;
11024 return resultobj;
11025 fail:
11026 return NULL;
11027 }
11028
11029
11030 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11031 PyObject *resultobj;
11032 wxDC *arg1 = (wxDC *) 0 ;
11033 int arg2 ;
11034 int arg3 ;
11035 int arg4 ;
11036 int arg5 ;
11037 double arg6 ;
11038 double arg7 ;
11039 PyObject * obj0 = 0 ;
11040 PyObject * obj1 = 0 ;
11041 PyObject * obj2 = 0 ;
11042 PyObject * obj3 = 0 ;
11043 PyObject * obj4 = 0 ;
11044 PyObject * obj5 = 0 ;
11045 PyObject * obj6 = 0 ;
11046 char *kwnames[] = {
11047 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
11048 };
11049
11050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11053 arg2 = (int) SWIG_AsInt(obj1);
11054 if (PyErr_Occurred()) SWIG_fail;
11055 arg3 = (int) SWIG_AsInt(obj2);
11056 if (PyErr_Occurred()) SWIG_fail;
11057 arg4 = (int) SWIG_AsInt(obj3);
11058 if (PyErr_Occurred()) SWIG_fail;
11059 arg5 = (int) SWIG_AsInt(obj4);
11060 if (PyErr_Occurred()) SWIG_fail;
11061 arg6 = (double) SWIG_AsDouble(obj5);
11062 if (PyErr_Occurred()) SWIG_fail;
11063 arg7 = (double) SWIG_AsDouble(obj6);
11064 if (PyErr_Occurred()) SWIG_fail;
11065 {
11066 PyThreadState* __tstate = wxPyBeginAllowThreads();
11067 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
11068
11069 wxPyEndAllowThreads(__tstate);
11070 if (PyErr_Occurred()) SWIG_fail;
11071 }
11072 Py_INCREF(Py_None); resultobj = Py_None;
11073 return resultobj;
11074 fail:
11075 return NULL;
11076 }
11077
11078
11079 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
11080 PyObject *resultobj;
11081 wxDC *arg1 = (wxDC *) 0 ;
11082 wxPoint *arg2 = 0 ;
11083 wxSize *arg3 = 0 ;
11084 double arg4 ;
11085 double arg5 ;
11086 wxPoint temp2 ;
11087 wxSize temp3 ;
11088 PyObject * obj0 = 0 ;
11089 PyObject * obj1 = 0 ;
11090 PyObject * obj2 = 0 ;
11091 PyObject * obj3 = 0 ;
11092 PyObject * obj4 = 0 ;
11093 char *kwnames[] = {
11094 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
11095 };
11096
11097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11100 {
11101 arg2 = &temp2;
11102 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11103 }
11104 {
11105 arg3 = &temp3;
11106 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11107 }
11108 arg4 = (double) SWIG_AsDouble(obj3);
11109 if (PyErr_Occurred()) SWIG_fail;
11110 arg5 = (double) SWIG_AsDouble(obj4);
11111 if (PyErr_Occurred()) SWIG_fail;
11112 {
11113 PyThreadState* __tstate = wxPyBeginAllowThreads();
11114 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
11115
11116 wxPyEndAllowThreads(__tstate);
11117 if (PyErr_Occurred()) SWIG_fail;
11118 }
11119 Py_INCREF(Py_None); resultobj = Py_None;
11120 return resultobj;
11121 fail:
11122 return NULL;
11123 }
11124
11125
11126 static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11127 PyObject *resultobj;
11128 wxDC *arg1 = (wxDC *) 0 ;
11129 int arg2 ;
11130 int arg3 ;
11131 PyObject * obj0 = 0 ;
11132 PyObject * obj1 = 0 ;
11133 PyObject * obj2 = 0 ;
11134 char *kwnames[] = {
11135 (char *) "self",(char *) "x",(char *) "y", NULL
11136 };
11137
11138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
11139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11141 arg2 = (int) SWIG_AsInt(obj1);
11142 if (PyErr_Occurred()) SWIG_fail;
11143 arg3 = (int) SWIG_AsInt(obj2);
11144 if (PyErr_Occurred()) SWIG_fail;
11145 {
11146 PyThreadState* __tstate = wxPyBeginAllowThreads();
11147 (arg1)->DrawPoint(arg2,arg3);
11148
11149 wxPyEndAllowThreads(__tstate);
11150 if (PyErr_Occurred()) SWIG_fail;
11151 }
11152 Py_INCREF(Py_None); resultobj = Py_None;
11153 return resultobj;
11154 fail:
11155 return NULL;
11156 }
11157
11158
11159 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11160 PyObject *resultobj;
11161 wxDC *arg1 = (wxDC *) 0 ;
11162 wxPoint *arg2 = 0 ;
11163 wxPoint temp2 ;
11164 PyObject * obj0 = 0 ;
11165 PyObject * obj1 = 0 ;
11166 char *kwnames[] = {
11167 (char *) "self",(char *) "pt", NULL
11168 };
11169
11170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
11171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11173 {
11174 arg2 = &temp2;
11175 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11176 }
11177 {
11178 PyThreadState* __tstate = wxPyBeginAllowThreads();
11179 (arg1)->DrawPoint((wxPoint const &)*arg2);
11180
11181 wxPyEndAllowThreads(__tstate);
11182 if (PyErr_Occurred()) SWIG_fail;
11183 }
11184 Py_INCREF(Py_None); resultobj = Py_None;
11185 return resultobj;
11186 fail:
11187 return NULL;
11188 }
11189
11190
11191 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11192 PyObject *resultobj;
11193 wxDC *arg1 = (wxDC *) 0 ;
11194 int arg2 ;
11195 int arg3 ;
11196 int arg4 ;
11197 int arg5 ;
11198 PyObject * obj0 = 0 ;
11199 PyObject * obj1 = 0 ;
11200 PyObject * obj2 = 0 ;
11201 PyObject * obj3 = 0 ;
11202 PyObject * obj4 = 0 ;
11203 char *kwnames[] = {
11204 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11205 };
11206
11207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11210 arg2 = (int) SWIG_AsInt(obj1);
11211 if (PyErr_Occurred()) SWIG_fail;
11212 arg3 = (int) SWIG_AsInt(obj2);
11213 if (PyErr_Occurred()) SWIG_fail;
11214 arg4 = (int) SWIG_AsInt(obj3);
11215 if (PyErr_Occurred()) SWIG_fail;
11216 arg5 = (int) SWIG_AsInt(obj4);
11217 if (PyErr_Occurred()) SWIG_fail;
11218 {
11219 PyThreadState* __tstate = wxPyBeginAllowThreads();
11220 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11221
11222 wxPyEndAllowThreads(__tstate);
11223 if (PyErr_Occurred()) SWIG_fail;
11224 }
11225 Py_INCREF(Py_None); resultobj = Py_None;
11226 return resultobj;
11227 fail:
11228 return NULL;
11229 }
11230
11231
11232 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11233 PyObject *resultobj;
11234 wxDC *arg1 = (wxDC *) 0 ;
11235 wxPoint *arg2 = 0 ;
11236 wxSize *arg3 = 0 ;
11237 wxPoint temp2 ;
11238 wxSize temp3 ;
11239 PyObject * obj0 = 0 ;
11240 PyObject * obj1 = 0 ;
11241 PyObject * obj2 = 0 ;
11242 char *kwnames[] = {
11243 (char *) "self",(char *) "pt",(char *) "sz", NULL
11244 };
11245
11246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11249 {
11250 arg2 = &temp2;
11251 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11252 }
11253 {
11254 arg3 = &temp3;
11255 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11256 }
11257 {
11258 PyThreadState* __tstate = wxPyBeginAllowThreads();
11259 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11260
11261 wxPyEndAllowThreads(__tstate);
11262 if (PyErr_Occurred()) SWIG_fail;
11263 }
11264 Py_INCREF(Py_None); resultobj = Py_None;
11265 return resultobj;
11266 fail:
11267 return NULL;
11268 }
11269
11270
11271 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11272 PyObject *resultobj;
11273 wxDC *arg1 = (wxDC *) 0 ;
11274 wxRect *arg2 = 0 ;
11275 wxRect temp2 ;
11276 PyObject * obj0 = 0 ;
11277 PyObject * obj1 = 0 ;
11278 char *kwnames[] = {
11279 (char *) "self",(char *) "rect", NULL
11280 };
11281
11282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11285 {
11286 arg2 = &temp2;
11287 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11288 }
11289 {
11290 PyThreadState* __tstate = wxPyBeginAllowThreads();
11291 (arg1)->DrawRectangle((wxRect const &)*arg2);
11292
11293 wxPyEndAllowThreads(__tstate);
11294 if (PyErr_Occurred()) SWIG_fail;
11295 }
11296 Py_INCREF(Py_None); resultobj = Py_None;
11297 return resultobj;
11298 fail:
11299 return NULL;
11300 }
11301
11302
11303 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11304 PyObject *resultobj;
11305 wxDC *arg1 = (wxDC *) 0 ;
11306 int arg2 ;
11307 int arg3 ;
11308 int arg4 ;
11309 int arg5 ;
11310 double arg6 ;
11311 PyObject * obj0 = 0 ;
11312 PyObject * obj1 = 0 ;
11313 PyObject * obj2 = 0 ;
11314 PyObject * obj3 = 0 ;
11315 PyObject * obj4 = 0 ;
11316 PyObject * obj5 = 0 ;
11317 char *kwnames[] = {
11318 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11319 };
11320
11321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11324 arg2 = (int) SWIG_AsInt(obj1);
11325 if (PyErr_Occurred()) SWIG_fail;
11326 arg3 = (int) SWIG_AsInt(obj2);
11327 if (PyErr_Occurred()) SWIG_fail;
11328 arg4 = (int) SWIG_AsInt(obj3);
11329 if (PyErr_Occurred()) SWIG_fail;
11330 arg5 = (int) SWIG_AsInt(obj4);
11331 if (PyErr_Occurred()) SWIG_fail;
11332 arg6 = (double) SWIG_AsDouble(obj5);
11333 if (PyErr_Occurred()) SWIG_fail;
11334 {
11335 PyThreadState* __tstate = wxPyBeginAllowThreads();
11336 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11337
11338 wxPyEndAllowThreads(__tstate);
11339 if (PyErr_Occurred()) SWIG_fail;
11340 }
11341 Py_INCREF(Py_None); resultobj = Py_None;
11342 return resultobj;
11343 fail:
11344 return NULL;
11345 }
11346
11347
11348 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11349 PyObject *resultobj;
11350 wxDC *arg1 = (wxDC *) 0 ;
11351 wxPoint *arg2 = 0 ;
11352 wxSize *arg3 = 0 ;
11353 double arg4 ;
11354 wxPoint temp2 ;
11355 wxSize temp3 ;
11356 PyObject * obj0 = 0 ;
11357 PyObject * obj1 = 0 ;
11358 PyObject * obj2 = 0 ;
11359 PyObject * obj3 = 0 ;
11360 char *kwnames[] = {
11361 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11362 };
11363
11364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11367 {
11368 arg2 = &temp2;
11369 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11370 }
11371 {
11372 arg3 = &temp3;
11373 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11374 }
11375 arg4 = (double) SWIG_AsDouble(obj3);
11376 if (PyErr_Occurred()) SWIG_fail;
11377 {
11378 PyThreadState* __tstate = wxPyBeginAllowThreads();
11379 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11380
11381 wxPyEndAllowThreads(__tstate);
11382 if (PyErr_Occurred()) SWIG_fail;
11383 }
11384 Py_INCREF(Py_None); resultobj = Py_None;
11385 return resultobj;
11386 fail:
11387 return NULL;
11388 }
11389
11390
11391 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11392 PyObject *resultobj;
11393 wxDC *arg1 = (wxDC *) 0 ;
11394 wxRect *arg2 = 0 ;
11395 double arg3 ;
11396 wxRect temp2 ;
11397 PyObject * obj0 = 0 ;
11398 PyObject * obj1 = 0 ;
11399 PyObject * obj2 = 0 ;
11400 char *kwnames[] = {
11401 (char *) "self",(char *) "r",(char *) "radius", NULL
11402 };
11403
11404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11407 {
11408 arg2 = &temp2;
11409 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11410 }
11411 arg3 = (double) SWIG_AsDouble(obj2);
11412 if (PyErr_Occurred()) SWIG_fail;
11413 {
11414 PyThreadState* __tstate = wxPyBeginAllowThreads();
11415 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11416
11417 wxPyEndAllowThreads(__tstate);
11418 if (PyErr_Occurred()) SWIG_fail;
11419 }
11420 Py_INCREF(Py_None); resultobj = Py_None;
11421 return resultobj;
11422 fail:
11423 return NULL;
11424 }
11425
11426
11427 static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11428 PyObject *resultobj;
11429 wxDC *arg1 = (wxDC *) 0 ;
11430 int arg2 ;
11431 int arg3 ;
11432 int arg4 ;
11433 PyObject * obj0 = 0 ;
11434 PyObject * obj1 = 0 ;
11435 PyObject * obj2 = 0 ;
11436 PyObject * obj3 = 0 ;
11437 char *kwnames[] = {
11438 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11439 };
11440
11441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11444 arg2 = (int) SWIG_AsInt(obj1);
11445 if (PyErr_Occurred()) SWIG_fail;
11446 arg3 = (int) SWIG_AsInt(obj2);
11447 if (PyErr_Occurred()) SWIG_fail;
11448 arg4 = (int) SWIG_AsInt(obj3);
11449 if (PyErr_Occurred()) SWIG_fail;
11450 {
11451 PyThreadState* __tstate = wxPyBeginAllowThreads();
11452 (arg1)->DrawCircle(arg2,arg3,arg4);
11453
11454 wxPyEndAllowThreads(__tstate);
11455 if (PyErr_Occurred()) SWIG_fail;
11456 }
11457 Py_INCREF(Py_None); resultobj = Py_None;
11458 return resultobj;
11459 fail:
11460 return NULL;
11461 }
11462
11463
11464 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11465 PyObject *resultobj;
11466 wxDC *arg1 = (wxDC *) 0 ;
11467 wxPoint *arg2 = 0 ;
11468 int arg3 ;
11469 wxPoint temp2 ;
11470 PyObject * obj0 = 0 ;
11471 PyObject * obj1 = 0 ;
11472 PyObject * obj2 = 0 ;
11473 char *kwnames[] = {
11474 (char *) "self",(char *) "pt",(char *) "radius", NULL
11475 };
11476
11477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11480 {
11481 arg2 = &temp2;
11482 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11483 }
11484 arg3 = (int) SWIG_AsInt(obj2);
11485 if (PyErr_Occurred()) SWIG_fail;
11486 {
11487 PyThreadState* __tstate = wxPyBeginAllowThreads();
11488 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11489
11490 wxPyEndAllowThreads(__tstate);
11491 if (PyErr_Occurred()) SWIG_fail;
11492 }
11493 Py_INCREF(Py_None); resultobj = Py_None;
11494 return resultobj;
11495 fail:
11496 return NULL;
11497 }
11498
11499
11500 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11501 PyObject *resultobj;
11502 wxDC *arg1 = (wxDC *) 0 ;
11503 int arg2 ;
11504 int arg3 ;
11505 int arg4 ;
11506 int arg5 ;
11507 PyObject * obj0 = 0 ;
11508 PyObject * obj1 = 0 ;
11509 PyObject * obj2 = 0 ;
11510 PyObject * obj3 = 0 ;
11511 PyObject * obj4 = 0 ;
11512 char *kwnames[] = {
11513 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11514 };
11515
11516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11519 arg2 = (int) SWIG_AsInt(obj1);
11520 if (PyErr_Occurred()) SWIG_fail;
11521 arg3 = (int) SWIG_AsInt(obj2);
11522 if (PyErr_Occurred()) SWIG_fail;
11523 arg4 = (int) SWIG_AsInt(obj3);
11524 if (PyErr_Occurred()) SWIG_fail;
11525 arg5 = (int) SWIG_AsInt(obj4);
11526 if (PyErr_Occurred()) SWIG_fail;
11527 {
11528 PyThreadState* __tstate = wxPyBeginAllowThreads();
11529 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11530
11531 wxPyEndAllowThreads(__tstate);
11532 if (PyErr_Occurred()) SWIG_fail;
11533 }
11534 Py_INCREF(Py_None); resultobj = Py_None;
11535 return resultobj;
11536 fail:
11537 return NULL;
11538 }
11539
11540
11541 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11542 PyObject *resultobj;
11543 wxDC *arg1 = (wxDC *) 0 ;
11544 wxPoint *arg2 = 0 ;
11545 wxSize *arg3 = 0 ;
11546 wxPoint temp2 ;
11547 wxSize temp3 ;
11548 PyObject * obj0 = 0 ;
11549 PyObject * obj1 = 0 ;
11550 PyObject * obj2 = 0 ;
11551 char *kwnames[] = {
11552 (char *) "self",(char *) "pt",(char *) "sz", NULL
11553 };
11554
11555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
11556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11558 {
11559 arg2 = &temp2;
11560 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11561 }
11562 {
11563 arg3 = &temp3;
11564 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11565 }
11566 {
11567 PyThreadState* __tstate = wxPyBeginAllowThreads();
11568 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11569
11570 wxPyEndAllowThreads(__tstate);
11571 if (PyErr_Occurred()) SWIG_fail;
11572 }
11573 Py_INCREF(Py_None); resultobj = Py_None;
11574 return resultobj;
11575 fail:
11576 return NULL;
11577 }
11578
11579
11580 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11581 PyObject *resultobj;
11582 wxDC *arg1 = (wxDC *) 0 ;
11583 wxRect *arg2 = 0 ;
11584 wxRect temp2 ;
11585 PyObject * obj0 = 0 ;
11586 PyObject * obj1 = 0 ;
11587 char *kwnames[] = {
11588 (char *) "self",(char *) "rect", NULL
11589 };
11590
11591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11594 {
11595 arg2 = &temp2;
11596 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11597 }
11598 {
11599 PyThreadState* __tstate = wxPyBeginAllowThreads();
11600 (arg1)->DrawEllipse((wxRect const &)*arg2);
11601
11602 wxPyEndAllowThreads(__tstate);
11603 if (PyErr_Occurred()) SWIG_fail;
11604 }
11605 Py_INCREF(Py_None); resultobj = Py_None;
11606 return resultobj;
11607 fail:
11608 return NULL;
11609 }
11610
11611
11612 static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11613 PyObject *resultobj;
11614 wxDC *arg1 = (wxDC *) 0 ;
11615 wxIcon *arg2 = 0 ;
11616 int arg3 ;
11617 int arg4 ;
11618 PyObject * obj0 = 0 ;
11619 PyObject * obj1 = 0 ;
11620 PyObject * obj2 = 0 ;
11621 PyObject * obj3 = 0 ;
11622 char *kwnames[] = {
11623 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11624 };
11625
11626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11629 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11630 SWIG_POINTER_EXCEPTION | 0)) == -1)
11631 SWIG_fail;
11632 if (arg2 == NULL) {
11633 PyErr_SetString(PyExc_TypeError,"null reference");
11634 SWIG_fail;
11635 }
11636 arg3 = (int) SWIG_AsInt(obj2);
11637 if (PyErr_Occurred()) SWIG_fail;
11638 arg4 = (int) SWIG_AsInt(obj3);
11639 if (PyErr_Occurred()) SWIG_fail;
11640 {
11641 PyThreadState* __tstate = wxPyBeginAllowThreads();
11642 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11643
11644 wxPyEndAllowThreads(__tstate);
11645 if (PyErr_Occurred()) SWIG_fail;
11646 }
11647 Py_INCREF(Py_None); resultobj = Py_None;
11648 return resultobj;
11649 fail:
11650 return NULL;
11651 }
11652
11653
11654 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11655 PyObject *resultobj;
11656 wxDC *arg1 = (wxDC *) 0 ;
11657 wxIcon *arg2 = 0 ;
11658 wxPoint *arg3 = 0 ;
11659 wxPoint temp3 ;
11660 PyObject * obj0 = 0 ;
11661 PyObject * obj1 = 0 ;
11662 PyObject * obj2 = 0 ;
11663 char *kwnames[] = {
11664 (char *) "self",(char *) "icon",(char *) "pt", NULL
11665 };
11666
11667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
11668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11670 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11671 SWIG_POINTER_EXCEPTION | 0)) == -1)
11672 SWIG_fail;
11673 if (arg2 == NULL) {
11674 PyErr_SetString(PyExc_TypeError,"null reference");
11675 SWIG_fail;
11676 }
11677 {
11678 arg3 = &temp3;
11679 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11680 }
11681 {
11682 PyThreadState* __tstate = wxPyBeginAllowThreads();
11683 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11684
11685 wxPyEndAllowThreads(__tstate);
11686 if (PyErr_Occurred()) SWIG_fail;
11687 }
11688 Py_INCREF(Py_None); resultobj = Py_None;
11689 return resultobj;
11690 fail:
11691 return NULL;
11692 }
11693
11694
11695 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11696 PyObject *resultobj;
11697 wxDC *arg1 = (wxDC *) 0 ;
11698 wxBitmap *arg2 = 0 ;
11699 int arg3 ;
11700 int arg4 ;
11701 bool arg5 = (bool) False ;
11702 PyObject * obj0 = 0 ;
11703 PyObject * obj1 = 0 ;
11704 PyObject * obj2 = 0 ;
11705 PyObject * obj3 = 0 ;
11706 PyObject * obj4 = 0 ;
11707 char *kwnames[] = {
11708 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11709 };
11710
11711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11714 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11715 SWIG_POINTER_EXCEPTION | 0)) == -1)
11716 SWIG_fail;
11717 if (arg2 == NULL) {
11718 PyErr_SetString(PyExc_TypeError,"null reference");
11719 SWIG_fail;
11720 }
11721 arg3 = (int) SWIG_AsInt(obj2);
11722 if (PyErr_Occurred()) SWIG_fail;
11723 arg4 = (int) SWIG_AsInt(obj3);
11724 if (PyErr_Occurred()) SWIG_fail;
11725 if (obj4) {
11726 arg5 = (bool) SWIG_AsBool(obj4);
11727 if (PyErr_Occurred()) SWIG_fail;
11728 }
11729 {
11730 PyThreadState* __tstate = wxPyBeginAllowThreads();
11731 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11732
11733 wxPyEndAllowThreads(__tstate);
11734 if (PyErr_Occurred()) SWIG_fail;
11735 }
11736 Py_INCREF(Py_None); resultobj = Py_None;
11737 return resultobj;
11738 fail:
11739 return NULL;
11740 }
11741
11742
11743 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11744 PyObject *resultobj;
11745 wxDC *arg1 = (wxDC *) 0 ;
11746 wxBitmap *arg2 = 0 ;
11747 wxPoint *arg3 = 0 ;
11748 bool arg4 = (bool) False ;
11749 wxPoint temp3 ;
11750 PyObject * obj0 = 0 ;
11751 PyObject * obj1 = 0 ;
11752 PyObject * obj2 = 0 ;
11753 PyObject * obj3 = 0 ;
11754 char *kwnames[] = {
11755 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11756 };
11757
11758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11761 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11762 SWIG_POINTER_EXCEPTION | 0)) == -1)
11763 SWIG_fail;
11764 if (arg2 == NULL) {
11765 PyErr_SetString(PyExc_TypeError,"null reference");
11766 SWIG_fail;
11767 }
11768 {
11769 arg3 = &temp3;
11770 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11771 }
11772 if (obj3) {
11773 arg4 = (bool) SWIG_AsBool(obj3);
11774 if (PyErr_Occurred()) SWIG_fail;
11775 }
11776 {
11777 PyThreadState* __tstate = wxPyBeginAllowThreads();
11778 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11779
11780 wxPyEndAllowThreads(__tstate);
11781 if (PyErr_Occurred()) SWIG_fail;
11782 }
11783 Py_INCREF(Py_None); resultobj = Py_None;
11784 return resultobj;
11785 fail:
11786 return NULL;
11787 }
11788
11789
11790 static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11791 PyObject *resultobj;
11792 wxDC *arg1 = (wxDC *) 0 ;
11793 wxString *arg2 = 0 ;
11794 int arg3 ;
11795 int arg4 ;
11796 bool temp2 = False ;
11797 PyObject * obj0 = 0 ;
11798 PyObject * obj1 = 0 ;
11799 PyObject * obj2 = 0 ;
11800 PyObject * obj3 = 0 ;
11801 char *kwnames[] = {
11802 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11803 };
11804
11805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11808 {
11809 arg2 = wxString_in_helper(obj1);
11810 if (arg2 == NULL) SWIG_fail;
11811 temp2 = True;
11812 }
11813 arg3 = (int) SWIG_AsInt(obj2);
11814 if (PyErr_Occurred()) SWIG_fail;
11815 arg4 = (int) SWIG_AsInt(obj3);
11816 if (PyErr_Occurred()) SWIG_fail;
11817 {
11818 PyThreadState* __tstate = wxPyBeginAllowThreads();
11819 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11820
11821 wxPyEndAllowThreads(__tstate);
11822 if (PyErr_Occurred()) SWIG_fail;
11823 }
11824 Py_INCREF(Py_None); resultobj = Py_None;
11825 {
11826 if (temp2)
11827 delete arg2;
11828 }
11829 return resultobj;
11830 fail:
11831 {
11832 if (temp2)
11833 delete arg2;
11834 }
11835 return NULL;
11836 }
11837
11838
11839 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
11840 PyObject *resultobj;
11841 wxDC *arg1 = (wxDC *) 0 ;
11842 wxString *arg2 = 0 ;
11843 wxPoint *arg3 = 0 ;
11844 bool temp2 = False ;
11845 wxPoint temp3 ;
11846 PyObject * obj0 = 0 ;
11847 PyObject * obj1 = 0 ;
11848 PyObject * obj2 = 0 ;
11849 char *kwnames[] = {
11850 (char *) "self",(char *) "text",(char *) "pt", NULL
11851 };
11852
11853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
11854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11856 {
11857 arg2 = wxString_in_helper(obj1);
11858 if (arg2 == NULL) SWIG_fail;
11859 temp2 = True;
11860 }
11861 {
11862 arg3 = &temp3;
11863 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11864 }
11865 {
11866 PyThreadState* __tstate = wxPyBeginAllowThreads();
11867 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11868
11869 wxPyEndAllowThreads(__tstate);
11870 if (PyErr_Occurred()) SWIG_fail;
11871 }
11872 Py_INCREF(Py_None); resultobj = Py_None;
11873 {
11874 if (temp2)
11875 delete arg2;
11876 }
11877 return resultobj;
11878 fail:
11879 {
11880 if (temp2)
11881 delete arg2;
11882 }
11883 return NULL;
11884 }
11885
11886
11887 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11888 PyObject *resultobj;
11889 wxDC *arg1 = (wxDC *) 0 ;
11890 wxString *arg2 = 0 ;
11891 int arg3 ;
11892 int arg4 ;
11893 double arg5 ;
11894 bool temp2 = False ;
11895 PyObject * obj0 = 0 ;
11896 PyObject * obj1 = 0 ;
11897 PyObject * obj2 = 0 ;
11898 PyObject * obj3 = 0 ;
11899 PyObject * obj4 = 0 ;
11900 char *kwnames[] = {
11901 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11902 };
11903
11904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11907 {
11908 arg2 = wxString_in_helper(obj1);
11909 if (arg2 == NULL) SWIG_fail;
11910 temp2 = True;
11911 }
11912 arg3 = (int) SWIG_AsInt(obj2);
11913 if (PyErr_Occurred()) SWIG_fail;
11914 arg4 = (int) SWIG_AsInt(obj3);
11915 if (PyErr_Occurred()) SWIG_fail;
11916 arg5 = (double) SWIG_AsDouble(obj4);
11917 if (PyErr_Occurred()) SWIG_fail;
11918 {
11919 PyThreadState* __tstate = wxPyBeginAllowThreads();
11920 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11921
11922 wxPyEndAllowThreads(__tstate);
11923 if (PyErr_Occurred()) SWIG_fail;
11924 }
11925 Py_INCREF(Py_None); resultobj = Py_None;
11926 {
11927 if (temp2)
11928 delete arg2;
11929 }
11930 return resultobj;
11931 fail:
11932 {
11933 if (temp2)
11934 delete arg2;
11935 }
11936 return NULL;
11937 }
11938
11939
11940 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
11941 PyObject *resultobj;
11942 wxDC *arg1 = (wxDC *) 0 ;
11943 wxString *arg2 = 0 ;
11944 wxPoint *arg3 = 0 ;
11945 double arg4 ;
11946 bool temp2 = False ;
11947 wxPoint temp3 ;
11948 PyObject * obj0 = 0 ;
11949 PyObject * obj1 = 0 ;
11950 PyObject * obj2 = 0 ;
11951 PyObject * obj3 = 0 ;
11952 char *kwnames[] = {
11953 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11954 };
11955
11956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11959 {
11960 arg2 = wxString_in_helper(obj1);
11961 if (arg2 == NULL) SWIG_fail;
11962 temp2 = True;
11963 }
11964 {
11965 arg3 = &temp3;
11966 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11967 }
11968 arg4 = (double) SWIG_AsDouble(obj3);
11969 if (PyErr_Occurred()) SWIG_fail;
11970 {
11971 PyThreadState* __tstate = wxPyBeginAllowThreads();
11972 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11973
11974 wxPyEndAllowThreads(__tstate);
11975 if (PyErr_Occurred()) SWIG_fail;
11976 }
11977 Py_INCREF(Py_None); resultobj = Py_None;
11978 {
11979 if (temp2)
11980 delete arg2;
11981 }
11982 return resultobj;
11983 fail:
11984 {
11985 if (temp2)
11986 delete arg2;
11987 }
11988 return NULL;
11989 }
11990
11991
11992 static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11993 PyObject *resultobj;
11994 wxDC *arg1 = (wxDC *) 0 ;
11995 int arg2 ;
11996 int arg3 ;
11997 int arg4 ;
11998 int arg5 ;
11999 wxDC *arg6 = (wxDC *) 0 ;
12000 int arg7 ;
12001 int arg8 ;
12002 int arg9 = (int) wxCOPY ;
12003 bool arg10 = (bool) False ;
12004 int arg11 = (int) -1 ;
12005 int arg12 = (int) -1 ;
12006 bool result;
12007 PyObject * obj0 = 0 ;
12008 PyObject * obj1 = 0 ;
12009 PyObject * obj2 = 0 ;
12010 PyObject * obj3 = 0 ;
12011 PyObject * obj4 = 0 ;
12012 PyObject * obj5 = 0 ;
12013 PyObject * obj6 = 0 ;
12014 PyObject * obj7 = 0 ;
12015 PyObject * obj8 = 0 ;
12016 PyObject * obj9 = 0 ;
12017 PyObject * obj10 = 0 ;
12018 PyObject * obj11 = 0 ;
12019 char *kwnames[] = {
12020 (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
12021 };
12022
12023 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;
12024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12026 arg2 = (int) SWIG_AsInt(obj1);
12027 if (PyErr_Occurred()) SWIG_fail;
12028 arg3 = (int) SWIG_AsInt(obj2);
12029 if (PyErr_Occurred()) SWIG_fail;
12030 arg4 = (int) SWIG_AsInt(obj3);
12031 if (PyErr_Occurred()) SWIG_fail;
12032 arg5 = (int) SWIG_AsInt(obj4);
12033 if (PyErr_Occurred()) SWIG_fail;
12034 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
12035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12036 arg7 = (int) SWIG_AsInt(obj6);
12037 if (PyErr_Occurred()) SWIG_fail;
12038 arg8 = (int) SWIG_AsInt(obj7);
12039 if (PyErr_Occurred()) SWIG_fail;
12040 if (obj8) {
12041 arg9 = (int) SWIG_AsInt(obj8);
12042 if (PyErr_Occurred()) SWIG_fail;
12043 }
12044 if (obj9) {
12045 arg10 = (bool) SWIG_AsBool(obj9);
12046 if (PyErr_Occurred()) SWIG_fail;
12047 }
12048 if (obj10) {
12049 arg11 = (int) SWIG_AsInt(obj10);
12050 if (PyErr_Occurred()) SWIG_fail;
12051 }
12052 if (obj11) {
12053 arg12 = (int) SWIG_AsInt(obj11);
12054 if (PyErr_Occurred()) SWIG_fail;
12055 }
12056 {
12057 PyThreadState* __tstate = wxPyBeginAllowThreads();
12058 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12059
12060 wxPyEndAllowThreads(__tstate);
12061 if (PyErr_Occurred()) SWIG_fail;
12062 }
12063 {
12064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12065 }
12066 return resultobj;
12067 fail:
12068 return NULL;
12069 }
12070
12071
12072 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
12073 PyObject *resultobj;
12074 wxDC *arg1 = (wxDC *) 0 ;
12075 wxPoint *arg2 = 0 ;
12076 wxSize *arg3 = 0 ;
12077 wxDC *arg4 = (wxDC *) 0 ;
12078 wxPoint *arg5 = 0 ;
12079 int arg6 = (int) wxCOPY ;
12080 bool arg7 = (bool) False ;
12081 wxPoint const &arg8_defvalue = wxDefaultPosition ;
12082 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
12083 bool result;
12084 wxPoint temp2 ;
12085 wxSize temp3 ;
12086 wxPoint temp5 ;
12087 wxPoint temp8 ;
12088 PyObject * obj0 = 0 ;
12089 PyObject * obj1 = 0 ;
12090 PyObject * obj2 = 0 ;
12091 PyObject * obj3 = 0 ;
12092 PyObject * obj4 = 0 ;
12093 PyObject * obj5 = 0 ;
12094 PyObject * obj6 = 0 ;
12095 PyObject * obj7 = 0 ;
12096 char *kwnames[] = {
12097 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12098 };
12099
12100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12103 {
12104 arg2 = &temp2;
12105 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12106 }
12107 {
12108 arg3 = &temp3;
12109 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12110 }
12111 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
12112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12113 {
12114 arg5 = &temp5;
12115 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12116 }
12117 if (obj5) {
12118 arg6 = (int) SWIG_AsInt(obj5);
12119 if (PyErr_Occurred()) SWIG_fail;
12120 }
12121 if (obj6) {
12122 arg7 = (bool) SWIG_AsBool(obj6);
12123 if (PyErr_Occurred()) SWIG_fail;
12124 }
12125 if (obj7) {
12126 {
12127 arg8 = &temp8;
12128 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
12129 }
12130 }
12131 {
12132 PyThreadState* __tstate = wxPyBeginAllowThreads();
12133 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12134
12135 wxPyEndAllowThreads(__tstate);
12136 if (PyErr_Occurred()) SWIG_fail;
12137 }
12138 {
12139 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12140 }
12141 return resultobj;
12142 fail:
12143 return NULL;
12144 }
12145
12146
12147 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12148 PyObject *resultobj;
12149 wxDC *arg1 = (wxDC *) 0 ;
12150 int arg2 ;
12151 wxPoint *arg3 = (wxPoint *) 0 ;
12152 int arg4 = (int) 0 ;
12153 int arg5 = (int) 0 ;
12154 PyObject * obj0 = 0 ;
12155 PyObject * obj1 = 0 ;
12156 PyObject * obj2 = 0 ;
12157 PyObject * obj3 = 0 ;
12158 char *kwnames[] = {
12159 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12160 };
12161
12162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12165 {
12166 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12167 if (arg3 == NULL) SWIG_fail;
12168 }
12169 if (obj2) {
12170 arg4 = (int) SWIG_AsInt(obj2);
12171 if (PyErr_Occurred()) SWIG_fail;
12172 }
12173 if (obj3) {
12174 arg5 = (int) SWIG_AsInt(obj3);
12175 if (PyErr_Occurred()) SWIG_fail;
12176 }
12177 {
12178 PyThreadState* __tstate = wxPyBeginAllowThreads();
12179 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12180
12181 wxPyEndAllowThreads(__tstate);
12182 if (PyErr_Occurred()) SWIG_fail;
12183 }
12184 Py_INCREF(Py_None); resultobj = Py_None;
12185 {
12186 if (arg3) delete [] arg3;
12187 }
12188 return resultobj;
12189 fail:
12190 {
12191 if (arg3) delete [] arg3;
12192 }
12193 return NULL;
12194 }
12195
12196
12197 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12198 PyObject *resultobj;
12199 wxDC *arg1 = (wxDC *) 0 ;
12200 int arg2 ;
12201 wxPoint *arg3 = (wxPoint *) 0 ;
12202 int arg4 = (int) 0 ;
12203 int arg5 = (int) 0 ;
12204 int arg6 = (int) wxODDEVEN_RULE ;
12205 PyObject * obj0 = 0 ;
12206 PyObject * obj1 = 0 ;
12207 PyObject * obj2 = 0 ;
12208 PyObject * obj3 = 0 ;
12209 PyObject * obj4 = 0 ;
12210 char *kwnames[] = {
12211 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12212 };
12213
12214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12217 {
12218 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12219 if (arg3 == NULL) SWIG_fail;
12220 }
12221 if (obj2) {
12222 arg4 = (int) SWIG_AsInt(obj2);
12223 if (PyErr_Occurred()) SWIG_fail;
12224 }
12225 if (obj3) {
12226 arg5 = (int) SWIG_AsInt(obj3);
12227 if (PyErr_Occurred()) SWIG_fail;
12228 }
12229 if (obj4) {
12230 arg6 = (int) SWIG_AsInt(obj4);
12231 if (PyErr_Occurred()) SWIG_fail;
12232 }
12233 {
12234 PyThreadState* __tstate = wxPyBeginAllowThreads();
12235 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12236
12237 wxPyEndAllowThreads(__tstate);
12238 if (PyErr_Occurred()) SWIG_fail;
12239 }
12240 Py_INCREF(Py_None); resultobj = Py_None;
12241 {
12242 if (arg3) delete [] arg3;
12243 }
12244 return resultobj;
12245 fail:
12246 {
12247 if (arg3) delete [] arg3;
12248 }
12249 return NULL;
12250 }
12251
12252
12253 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12254 PyObject *resultobj;
12255 wxDC *arg1 = (wxDC *) 0 ;
12256 wxString *arg2 = 0 ;
12257 wxRect *arg3 = 0 ;
12258 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12259 int arg5 = (int) -1 ;
12260 bool temp2 = False ;
12261 wxRect temp3 ;
12262 PyObject * obj0 = 0 ;
12263 PyObject * obj1 = 0 ;
12264 PyObject * obj2 = 0 ;
12265 PyObject * obj3 = 0 ;
12266 PyObject * obj4 = 0 ;
12267 char *kwnames[] = {
12268 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12269 };
12270
12271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12274 {
12275 arg2 = wxString_in_helper(obj1);
12276 if (arg2 == NULL) SWIG_fail;
12277 temp2 = True;
12278 }
12279 {
12280 arg3 = &temp3;
12281 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12282 }
12283 if (obj3) {
12284 arg4 = (int) SWIG_AsInt(obj3);
12285 if (PyErr_Occurred()) SWIG_fail;
12286 }
12287 if (obj4) {
12288 arg5 = (int) SWIG_AsInt(obj4);
12289 if (PyErr_Occurred()) SWIG_fail;
12290 }
12291 {
12292 PyThreadState* __tstate = wxPyBeginAllowThreads();
12293 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12294
12295 wxPyEndAllowThreads(__tstate);
12296 if (PyErr_Occurred()) SWIG_fail;
12297 }
12298 Py_INCREF(Py_None); resultobj = Py_None;
12299 {
12300 if (temp2)
12301 delete arg2;
12302 }
12303 return resultobj;
12304 fail:
12305 {
12306 if (temp2)
12307 delete arg2;
12308 }
12309 return NULL;
12310 }
12311
12312
12313 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12314 PyObject *resultobj;
12315 wxDC *arg1 = (wxDC *) 0 ;
12316 wxString *arg2 = 0 ;
12317 wxBitmap *arg3 = 0 ;
12318 wxRect *arg4 = 0 ;
12319 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12320 int arg6 = (int) -1 ;
12321 wxRect result;
12322 bool temp2 = False ;
12323 wxRect temp4 ;
12324 PyObject * obj0 = 0 ;
12325 PyObject * obj1 = 0 ;
12326 PyObject * obj2 = 0 ;
12327 PyObject * obj3 = 0 ;
12328 PyObject * obj4 = 0 ;
12329 PyObject * obj5 = 0 ;
12330 char *kwnames[] = {
12331 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12332 };
12333
12334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12337 {
12338 arg2 = wxString_in_helper(obj1);
12339 if (arg2 == NULL) SWIG_fail;
12340 temp2 = True;
12341 }
12342 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12343 SWIG_POINTER_EXCEPTION | 0)) == -1)
12344 SWIG_fail;
12345 if (arg3 == NULL) {
12346 PyErr_SetString(PyExc_TypeError,"null reference");
12347 SWIG_fail;
12348 }
12349 {
12350 arg4 = &temp4;
12351 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12352 }
12353 if (obj4) {
12354 arg5 = (int) SWIG_AsInt(obj4);
12355 if (PyErr_Occurred()) SWIG_fail;
12356 }
12357 if (obj5) {
12358 arg6 = (int) SWIG_AsInt(obj5);
12359 if (PyErr_Occurred()) SWIG_fail;
12360 }
12361 {
12362 PyThreadState* __tstate = wxPyBeginAllowThreads();
12363 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12364
12365 wxPyEndAllowThreads(__tstate);
12366 if (PyErr_Occurred()) SWIG_fail;
12367 }
12368 {
12369 wxRect * resultptr;
12370 resultptr = new wxRect((wxRect &) result);
12371 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12372 }
12373 {
12374 if (temp2)
12375 delete arg2;
12376 }
12377 return resultobj;
12378 fail:
12379 {
12380 if (temp2)
12381 delete arg2;
12382 }
12383 return NULL;
12384 }
12385
12386
12387 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12388 PyObject *resultobj;
12389 wxDC *arg1 = (wxDC *) 0 ;
12390 int arg2 ;
12391 wxPoint *arg3 = (wxPoint *) 0 ;
12392 PyObject * obj0 = 0 ;
12393 PyObject * obj1 = 0 ;
12394 char *kwnames[] = {
12395 (char *) "self",(char *) "points", NULL
12396 };
12397
12398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12401 {
12402 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12403 if (arg3 == NULL) SWIG_fail;
12404 }
12405 {
12406 PyThreadState* __tstate = wxPyBeginAllowThreads();
12407 (arg1)->DrawSpline(arg2,arg3);
12408
12409 wxPyEndAllowThreads(__tstate);
12410 if (PyErr_Occurred()) SWIG_fail;
12411 }
12412 Py_INCREF(Py_None); resultobj = Py_None;
12413 {
12414 if (arg3) delete [] arg3;
12415 }
12416 return resultobj;
12417 fail:
12418 {
12419 if (arg3) delete [] arg3;
12420 }
12421 return NULL;
12422 }
12423
12424
12425 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12426 PyObject *resultobj;
12427 wxDC *arg1 = (wxDC *) 0 ;
12428 PyObject * obj0 = 0 ;
12429 char *kwnames[] = {
12430 (char *) "self", NULL
12431 };
12432
12433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12436 {
12437 PyThreadState* __tstate = wxPyBeginAllowThreads();
12438 (arg1)->Clear();
12439
12440 wxPyEndAllowThreads(__tstate);
12441 if (PyErr_Occurred()) SWIG_fail;
12442 }
12443 Py_INCREF(Py_None); resultobj = Py_None;
12444 return resultobj;
12445 fail:
12446 return NULL;
12447 }
12448
12449
12450 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12451 PyObject *resultobj;
12452 wxDC *arg1 = (wxDC *) 0 ;
12453 wxString *arg2 = 0 ;
12454 bool result;
12455 bool temp2 = False ;
12456 PyObject * obj0 = 0 ;
12457 PyObject * obj1 = 0 ;
12458 char *kwnames[] = {
12459 (char *) "self",(char *) "message", NULL
12460 };
12461
12462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12465 {
12466 arg2 = wxString_in_helper(obj1);
12467 if (arg2 == NULL) SWIG_fail;
12468 temp2 = True;
12469 }
12470 {
12471 PyThreadState* __tstate = wxPyBeginAllowThreads();
12472 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12473
12474 wxPyEndAllowThreads(__tstate);
12475 if (PyErr_Occurred()) SWIG_fail;
12476 }
12477 {
12478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12479 }
12480 {
12481 if (temp2)
12482 delete arg2;
12483 }
12484 return resultobj;
12485 fail:
12486 {
12487 if (temp2)
12488 delete arg2;
12489 }
12490 return NULL;
12491 }
12492
12493
12494 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12495 PyObject *resultobj;
12496 wxDC *arg1 = (wxDC *) 0 ;
12497 PyObject * obj0 = 0 ;
12498 char *kwnames[] = {
12499 (char *) "self", NULL
12500 };
12501
12502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12505 {
12506 PyThreadState* __tstate = wxPyBeginAllowThreads();
12507 (arg1)->EndDoc();
12508
12509 wxPyEndAllowThreads(__tstate);
12510 if (PyErr_Occurred()) SWIG_fail;
12511 }
12512 Py_INCREF(Py_None); resultobj = Py_None;
12513 return resultobj;
12514 fail:
12515 return NULL;
12516 }
12517
12518
12519 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12520 PyObject *resultobj;
12521 wxDC *arg1 = (wxDC *) 0 ;
12522 PyObject * obj0 = 0 ;
12523 char *kwnames[] = {
12524 (char *) "self", NULL
12525 };
12526
12527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12530 {
12531 PyThreadState* __tstate = wxPyBeginAllowThreads();
12532 (arg1)->StartPage();
12533
12534 wxPyEndAllowThreads(__tstate);
12535 if (PyErr_Occurred()) SWIG_fail;
12536 }
12537 Py_INCREF(Py_None); resultobj = Py_None;
12538 return resultobj;
12539 fail:
12540 return NULL;
12541 }
12542
12543
12544 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12545 PyObject *resultobj;
12546 wxDC *arg1 = (wxDC *) 0 ;
12547 PyObject * obj0 = 0 ;
12548 char *kwnames[] = {
12549 (char *) "self", NULL
12550 };
12551
12552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12555 {
12556 PyThreadState* __tstate = wxPyBeginAllowThreads();
12557 (arg1)->EndPage();
12558
12559 wxPyEndAllowThreads(__tstate);
12560 if (PyErr_Occurred()) SWIG_fail;
12561 }
12562 Py_INCREF(Py_None); resultobj = Py_None;
12563 return resultobj;
12564 fail:
12565 return NULL;
12566 }
12567
12568
12569 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12570 PyObject *resultobj;
12571 wxDC *arg1 = (wxDC *) 0 ;
12572 wxFont *arg2 = 0 ;
12573 PyObject * obj0 = 0 ;
12574 PyObject * obj1 = 0 ;
12575 char *kwnames[] = {
12576 (char *) "self",(char *) "font", NULL
12577 };
12578
12579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12582 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12583 SWIG_POINTER_EXCEPTION | 0)) == -1)
12584 SWIG_fail;
12585 if (arg2 == NULL) {
12586 PyErr_SetString(PyExc_TypeError,"null reference");
12587 SWIG_fail;
12588 }
12589 {
12590 PyThreadState* __tstate = wxPyBeginAllowThreads();
12591 (arg1)->SetFont((wxFont const &)*arg2);
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_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12604 PyObject *resultobj;
12605 wxDC *arg1 = (wxDC *) 0 ;
12606 wxPen *arg2 = 0 ;
12607 PyObject * obj0 = 0 ;
12608 PyObject * obj1 = 0 ;
12609 char *kwnames[] = {
12610 (char *) "self",(char *) "pen", NULL
12611 };
12612
12613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12616 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12617 SWIG_POINTER_EXCEPTION | 0)) == -1)
12618 SWIG_fail;
12619 if (arg2 == NULL) {
12620 PyErr_SetString(PyExc_TypeError,"null reference");
12621 SWIG_fail;
12622 }
12623 {
12624 PyThreadState* __tstate = wxPyBeginAllowThreads();
12625 (arg1)->SetPen((wxPen const &)*arg2);
12626
12627 wxPyEndAllowThreads(__tstate);
12628 if (PyErr_Occurred()) SWIG_fail;
12629 }
12630 Py_INCREF(Py_None); resultobj = Py_None;
12631 return resultobj;
12632 fail:
12633 return NULL;
12634 }
12635
12636
12637 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12638 PyObject *resultobj;
12639 wxDC *arg1 = (wxDC *) 0 ;
12640 wxBrush *arg2 = 0 ;
12641 PyObject * obj0 = 0 ;
12642 PyObject * obj1 = 0 ;
12643 char *kwnames[] = {
12644 (char *) "self",(char *) "brush", NULL
12645 };
12646
12647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12650 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12651 SWIG_POINTER_EXCEPTION | 0)) == -1)
12652 SWIG_fail;
12653 if (arg2 == NULL) {
12654 PyErr_SetString(PyExc_TypeError,"null reference");
12655 SWIG_fail;
12656 }
12657 {
12658 PyThreadState* __tstate = wxPyBeginAllowThreads();
12659 (arg1)->SetBrush((wxBrush const &)*arg2);
12660
12661 wxPyEndAllowThreads(__tstate);
12662 if (PyErr_Occurred()) SWIG_fail;
12663 }
12664 Py_INCREF(Py_None); resultobj = Py_None;
12665 return resultobj;
12666 fail:
12667 return NULL;
12668 }
12669
12670
12671 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12672 PyObject *resultobj;
12673 wxDC *arg1 = (wxDC *) 0 ;
12674 wxBrush *arg2 = 0 ;
12675 PyObject * obj0 = 0 ;
12676 PyObject * obj1 = 0 ;
12677 char *kwnames[] = {
12678 (char *) "self",(char *) "brush", NULL
12679 };
12680
12681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12684 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12685 SWIG_POINTER_EXCEPTION | 0)) == -1)
12686 SWIG_fail;
12687 if (arg2 == NULL) {
12688 PyErr_SetString(PyExc_TypeError,"null reference");
12689 SWIG_fail;
12690 }
12691 {
12692 PyThreadState* __tstate = wxPyBeginAllowThreads();
12693 (arg1)->SetBackground((wxBrush const &)*arg2);
12694
12695 wxPyEndAllowThreads(__tstate);
12696 if (PyErr_Occurred()) SWIG_fail;
12697 }
12698 Py_INCREF(Py_None); resultobj = Py_None;
12699 return resultobj;
12700 fail:
12701 return NULL;
12702 }
12703
12704
12705 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12706 PyObject *resultobj;
12707 wxDC *arg1 = (wxDC *) 0 ;
12708 int arg2 ;
12709 PyObject * obj0 = 0 ;
12710 PyObject * obj1 = 0 ;
12711 char *kwnames[] = {
12712 (char *) "self",(char *) "mode", NULL
12713 };
12714
12715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12718 arg2 = (int) SWIG_AsInt(obj1);
12719 if (PyErr_Occurred()) SWIG_fail;
12720 {
12721 PyThreadState* __tstate = wxPyBeginAllowThreads();
12722 (arg1)->SetBackgroundMode(arg2);
12723
12724 wxPyEndAllowThreads(__tstate);
12725 if (PyErr_Occurred()) SWIG_fail;
12726 }
12727 Py_INCREF(Py_None); resultobj = Py_None;
12728 return resultobj;
12729 fail:
12730 return NULL;
12731 }
12732
12733
12734 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12735 PyObject *resultobj;
12736 wxDC *arg1 = (wxDC *) 0 ;
12737 wxPalette *arg2 = 0 ;
12738 PyObject * obj0 = 0 ;
12739 PyObject * obj1 = 0 ;
12740 char *kwnames[] = {
12741 (char *) "self",(char *) "palette", NULL
12742 };
12743
12744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12747 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
12748 SWIG_POINTER_EXCEPTION | 0)) == -1)
12749 SWIG_fail;
12750 if (arg2 == NULL) {
12751 PyErr_SetString(PyExc_TypeError,"null reference");
12752 SWIG_fail;
12753 }
12754 {
12755 PyThreadState* __tstate = wxPyBeginAllowThreads();
12756 (arg1)->SetPalette((wxPalette const &)*arg2);
12757
12758 wxPyEndAllowThreads(__tstate);
12759 if (PyErr_Occurred()) SWIG_fail;
12760 }
12761 Py_INCREF(Py_None); resultobj = Py_None;
12762 return resultobj;
12763 fail:
12764 return NULL;
12765 }
12766
12767
12768 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12769 PyObject *resultobj;
12770 wxDC *arg1 = (wxDC *) 0 ;
12771 int arg2 ;
12772 int arg3 ;
12773 int arg4 ;
12774 int arg5 ;
12775 PyObject * obj0 = 0 ;
12776 PyObject * obj1 = 0 ;
12777 PyObject * obj2 = 0 ;
12778 PyObject * obj3 = 0 ;
12779 PyObject * obj4 = 0 ;
12780 char *kwnames[] = {
12781 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12782 };
12783
12784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12787 arg2 = (int) SWIG_AsInt(obj1);
12788 if (PyErr_Occurred()) SWIG_fail;
12789 arg3 = (int) SWIG_AsInt(obj2);
12790 if (PyErr_Occurred()) SWIG_fail;
12791 arg4 = (int) SWIG_AsInt(obj3);
12792 if (PyErr_Occurred()) SWIG_fail;
12793 arg5 = (int) SWIG_AsInt(obj4);
12794 if (PyErr_Occurred()) SWIG_fail;
12795 {
12796 PyThreadState* __tstate = wxPyBeginAllowThreads();
12797 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12798
12799 wxPyEndAllowThreads(__tstate);
12800 if (PyErr_Occurred()) SWIG_fail;
12801 }
12802 Py_INCREF(Py_None); resultobj = Py_None;
12803 return resultobj;
12804 fail:
12805 return NULL;
12806 }
12807
12808
12809 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12810 PyObject *resultobj;
12811 wxDC *arg1 = (wxDC *) 0 ;
12812 wxPoint *arg2 = 0 ;
12813 wxSize *arg3 = 0 ;
12814 wxPoint temp2 ;
12815 wxSize temp3 ;
12816 PyObject * obj0 = 0 ;
12817 PyObject * obj1 = 0 ;
12818 PyObject * obj2 = 0 ;
12819 char *kwnames[] = {
12820 (char *) "self",(char *) "pt",(char *) "sz", NULL
12821 };
12822
12823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
12824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12826 {
12827 arg2 = &temp2;
12828 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12829 }
12830 {
12831 arg3 = &temp3;
12832 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12833 }
12834 {
12835 PyThreadState* __tstate = wxPyBeginAllowThreads();
12836 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12837
12838 wxPyEndAllowThreads(__tstate);
12839 if (PyErr_Occurred()) SWIG_fail;
12840 }
12841 Py_INCREF(Py_None); resultobj = Py_None;
12842 return resultobj;
12843 fail:
12844 return NULL;
12845 }
12846
12847
12848 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12849 PyObject *resultobj;
12850 wxDC *arg1 = (wxDC *) 0 ;
12851 wxRect *arg2 = 0 ;
12852 wxRect temp2 ;
12853 PyObject * obj0 = 0 ;
12854 PyObject * obj1 = 0 ;
12855 char *kwnames[] = {
12856 (char *) "self",(char *) "rect", NULL
12857 };
12858
12859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12862 {
12863 arg2 = &temp2;
12864 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12865 }
12866 {
12867 PyThreadState* __tstate = wxPyBeginAllowThreads();
12868 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12869
12870 wxPyEndAllowThreads(__tstate);
12871 if (PyErr_Occurred()) SWIG_fail;
12872 }
12873 Py_INCREF(Py_None); resultobj = Py_None;
12874 return resultobj;
12875 fail:
12876 return NULL;
12877 }
12878
12879
12880 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12881 PyObject *resultobj;
12882 wxDC *arg1 = (wxDC *) 0 ;
12883 wxRegion *arg2 = 0 ;
12884 PyObject * obj0 = 0 ;
12885 PyObject * obj1 = 0 ;
12886 char *kwnames[] = {
12887 (char *) "self",(char *) "region", NULL
12888 };
12889
12890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12893 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12894 SWIG_POINTER_EXCEPTION | 0)) == -1)
12895 SWIG_fail;
12896 if (arg2 == NULL) {
12897 PyErr_SetString(PyExc_TypeError,"null reference");
12898 SWIG_fail;
12899 }
12900 {
12901 PyThreadState* __tstate = wxPyBeginAllowThreads();
12902 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12903
12904 wxPyEndAllowThreads(__tstate);
12905 if (PyErr_Occurred()) SWIG_fail;
12906 }
12907 Py_INCREF(Py_None); resultobj = Py_None;
12908 return resultobj;
12909 fail:
12910 return NULL;
12911 }
12912
12913
12914 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12915 PyObject *resultobj;
12916 wxDC *arg1 = (wxDC *) 0 ;
12917 PyObject * obj0 = 0 ;
12918 char *kwnames[] = {
12919 (char *) "self", NULL
12920 };
12921
12922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12925 {
12926 PyThreadState* __tstate = wxPyBeginAllowThreads();
12927 (arg1)->DestroyClippingRegion();
12928
12929 wxPyEndAllowThreads(__tstate);
12930 if (PyErr_Occurred()) SWIG_fail;
12931 }
12932 Py_INCREF(Py_None); resultobj = Py_None;
12933 return resultobj;
12934 fail:
12935 return NULL;
12936 }
12937
12938
12939 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12940 PyObject *resultobj;
12941 wxDC *arg1 = (wxDC *) 0 ;
12942 int *arg2 = (int *) 0 ;
12943 int *arg3 = (int *) 0 ;
12944 int *arg4 = (int *) 0 ;
12945 int *arg5 = (int *) 0 ;
12946 int temp2 ;
12947 int temp3 ;
12948 int temp4 ;
12949 int temp5 ;
12950 PyObject * obj0 = 0 ;
12951 char *kwnames[] = {
12952 (char *) "self", NULL
12953 };
12954
12955 arg2 = &temp2;
12956 arg3 = &temp3;
12957 arg4 = &temp4;
12958 arg5 = &temp5;
12959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12962 {
12963 PyThreadState* __tstate = wxPyBeginAllowThreads();
12964 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12965
12966 wxPyEndAllowThreads(__tstate);
12967 if (PyErr_Occurred()) SWIG_fail;
12968 }
12969 Py_INCREF(Py_None); resultobj = Py_None;
12970 {
12971 PyObject *o = PyInt_FromLong((long) (*arg2));
12972 resultobj = t_output_helper(resultobj,o);
12973 }
12974 {
12975 PyObject *o = PyInt_FromLong((long) (*arg3));
12976 resultobj = t_output_helper(resultobj,o);
12977 }
12978 {
12979 PyObject *o = PyInt_FromLong((long) (*arg4));
12980 resultobj = t_output_helper(resultobj,o);
12981 }
12982 {
12983 PyObject *o = PyInt_FromLong((long) (*arg5));
12984 resultobj = t_output_helper(resultobj,o);
12985 }
12986 return resultobj;
12987 fail:
12988 return NULL;
12989 }
12990
12991
12992 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12993 PyObject *resultobj;
12994 wxDC *arg1 = (wxDC *) 0 ;
12995 wxRect result;
12996 PyObject * obj0 = 0 ;
12997 char *kwnames[] = {
12998 (char *) "self", NULL
12999 };
13000
13001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
13002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13004 {
13005 PyThreadState* __tstate = wxPyBeginAllowThreads();
13006 result = wxDC_GetClippingRect(arg1);
13007
13008 wxPyEndAllowThreads(__tstate);
13009 if (PyErr_Occurred()) SWIG_fail;
13010 }
13011 {
13012 wxRect * resultptr;
13013 resultptr = new wxRect((wxRect &) result);
13014 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
13015 }
13016 return resultobj;
13017 fail:
13018 return NULL;
13019 }
13020
13021
13022 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
13023 PyObject *resultobj;
13024 wxDC *arg1 = (wxDC *) 0 ;
13025 int result;
13026 PyObject * obj0 = 0 ;
13027 char *kwnames[] = {
13028 (char *) "self", NULL
13029 };
13030
13031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
13032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13034 {
13035 PyThreadState* __tstate = wxPyBeginAllowThreads();
13036 result = (int)((wxDC const *)arg1)->GetCharHeight();
13037
13038 wxPyEndAllowThreads(__tstate);
13039 if (PyErr_Occurred()) SWIG_fail;
13040 }
13041 resultobj = SWIG_FromInt((int)result);
13042 return resultobj;
13043 fail:
13044 return NULL;
13045 }
13046
13047
13048 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
13049 PyObject *resultobj;
13050 wxDC *arg1 = (wxDC *) 0 ;
13051 int result;
13052 PyObject * obj0 = 0 ;
13053 char *kwnames[] = {
13054 (char *) "self", NULL
13055 };
13056
13057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
13058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13060 {
13061 PyThreadState* __tstate = wxPyBeginAllowThreads();
13062 result = (int)((wxDC const *)arg1)->GetCharWidth();
13063
13064 wxPyEndAllowThreads(__tstate);
13065 if (PyErr_Occurred()) SWIG_fail;
13066 }
13067 resultobj = SWIG_FromInt((int)result);
13068 return resultobj;
13069 fail:
13070 return NULL;
13071 }
13072
13073
13074 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13075 PyObject *resultobj;
13076 wxDC *arg1 = (wxDC *) 0 ;
13077 wxString *arg2 = 0 ;
13078 int *arg3 = (int *) 0 ;
13079 int *arg4 = (int *) 0 ;
13080 bool temp2 = False ;
13081 int temp3 ;
13082 int temp4 ;
13083 PyObject * obj0 = 0 ;
13084 PyObject * obj1 = 0 ;
13085 char *kwnames[] = {
13086 (char *) "self",(char *) "string", NULL
13087 };
13088
13089 arg3 = &temp3;
13090 arg4 = &temp4;
13091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
13092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13094 {
13095 arg2 = wxString_in_helper(obj1);
13096 if (arg2 == NULL) SWIG_fail;
13097 temp2 = True;
13098 }
13099 {
13100 PyThreadState* __tstate = wxPyBeginAllowThreads();
13101 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13102
13103 wxPyEndAllowThreads(__tstate);
13104 if (PyErr_Occurred()) SWIG_fail;
13105 }
13106 Py_INCREF(Py_None); resultobj = Py_None;
13107 {
13108 PyObject *o = PyInt_FromLong((long) (*arg3));
13109 resultobj = t_output_helper(resultobj,o);
13110 }
13111 {
13112 PyObject *o = PyInt_FromLong((long) (*arg4));
13113 resultobj = t_output_helper(resultobj,o);
13114 }
13115 {
13116 if (temp2)
13117 delete arg2;
13118 }
13119 return resultobj;
13120 fail:
13121 {
13122 if (temp2)
13123 delete arg2;
13124 }
13125 return NULL;
13126 }
13127
13128
13129 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13130 PyObject *resultobj;
13131 wxDC *arg1 = (wxDC *) 0 ;
13132 wxString *arg2 = 0 ;
13133 int *arg3 = (int *) 0 ;
13134 int *arg4 = (int *) 0 ;
13135 int *arg5 = (int *) 0 ;
13136 int *arg6 = (int *) 0 ;
13137 wxFont *arg7 = (wxFont *) NULL ;
13138 bool temp2 = False ;
13139 int temp3 ;
13140 int temp4 ;
13141 int temp5 ;
13142 int temp6 ;
13143 PyObject * obj0 = 0 ;
13144 PyObject * obj1 = 0 ;
13145 PyObject * obj2 = 0 ;
13146 char *kwnames[] = {
13147 (char *) "self",(char *) "string",(char *) "font", NULL
13148 };
13149
13150 arg3 = &temp3;
13151 arg4 = &temp4;
13152 arg5 = &temp5;
13153 arg6 = &temp6;
13154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13157 {
13158 arg2 = wxString_in_helper(obj1);
13159 if (arg2 == NULL) SWIG_fail;
13160 temp2 = True;
13161 }
13162 if (obj2) {
13163 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
13164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13165 }
13166 {
13167 PyThreadState* __tstate = wxPyBeginAllowThreads();
13168 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13169
13170 wxPyEndAllowThreads(__tstate);
13171 if (PyErr_Occurred()) SWIG_fail;
13172 }
13173 Py_INCREF(Py_None); resultobj = Py_None;
13174 {
13175 PyObject *o = PyInt_FromLong((long) (*arg3));
13176 resultobj = t_output_helper(resultobj,o);
13177 }
13178 {
13179 PyObject *o = PyInt_FromLong((long) (*arg4));
13180 resultobj = t_output_helper(resultobj,o);
13181 }
13182 {
13183 PyObject *o = PyInt_FromLong((long) (*arg5));
13184 resultobj = t_output_helper(resultobj,o);
13185 }
13186 {
13187 PyObject *o = PyInt_FromLong((long) (*arg6));
13188 resultobj = t_output_helper(resultobj,o);
13189 }
13190 {
13191 if (temp2)
13192 delete arg2;
13193 }
13194 return resultobj;
13195 fail:
13196 {
13197 if (temp2)
13198 delete arg2;
13199 }
13200 return NULL;
13201 }
13202
13203
13204 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13205 PyObject *resultobj;
13206 wxDC *arg1 = (wxDC *) 0 ;
13207 wxString *arg2 = 0 ;
13208 int *arg3 = (int *) 0 ;
13209 int *arg4 = (int *) 0 ;
13210 int *arg5 = (int *) 0 ;
13211 wxFont *arg6 = (wxFont *) NULL ;
13212 bool temp2 = False ;
13213 int temp3 ;
13214 int temp4 ;
13215 int temp5 ;
13216 PyObject * obj0 = 0 ;
13217 PyObject * obj1 = 0 ;
13218 PyObject * obj2 = 0 ;
13219 char *kwnames[] = {
13220 (char *) "self",(char *) "text",(char *) "font", NULL
13221 };
13222
13223 arg3 = &temp3;
13224 arg4 = &temp4;
13225 arg5 = &temp5;
13226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13229 {
13230 arg2 = wxString_in_helper(obj1);
13231 if (arg2 == NULL) SWIG_fail;
13232 temp2 = True;
13233 }
13234 if (obj2) {
13235 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13237 }
13238 {
13239 PyThreadState* __tstate = wxPyBeginAllowThreads();
13240 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13241
13242 wxPyEndAllowThreads(__tstate);
13243 if (PyErr_Occurred()) SWIG_fail;
13244 }
13245 Py_INCREF(Py_None); resultobj = Py_None;
13246 {
13247 PyObject *o = PyInt_FromLong((long) (*arg3));
13248 resultobj = t_output_helper(resultobj,o);
13249 }
13250 {
13251 PyObject *o = PyInt_FromLong((long) (*arg4));
13252 resultobj = t_output_helper(resultobj,o);
13253 }
13254 {
13255 PyObject *o = PyInt_FromLong((long) (*arg5));
13256 resultobj = t_output_helper(resultobj,o);
13257 }
13258 {
13259 if (temp2)
13260 delete arg2;
13261 }
13262 return resultobj;
13263 fail:
13264 {
13265 if (temp2)
13266 delete arg2;
13267 }
13268 return NULL;
13269 }
13270
13271
13272 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
13273 PyObject *resultobj;
13274 wxDC *arg1 = (wxDC *) 0 ;
13275 wxString *arg2 = 0 ;
13276 wxArrayInt result;
13277 bool temp2 = False ;
13278 PyObject * obj0 = 0 ;
13279 PyObject * obj1 = 0 ;
13280 char *kwnames[] = {
13281 (char *) "self",(char *) "text", NULL
13282 };
13283
13284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13287 {
13288 arg2 = wxString_in_helper(obj1);
13289 if (arg2 == NULL) SWIG_fail;
13290 temp2 = True;
13291 }
13292 {
13293 PyThreadState* __tstate = wxPyBeginAllowThreads();
13294 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13295
13296 wxPyEndAllowThreads(__tstate);
13297 if (PyErr_Occurred()) SWIG_fail;
13298 }
13299 {
13300 resultobj = PyList_New(0);
13301 size_t idx;
13302 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13303 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13304 PyList_Append(resultobj, val);
13305 Py_DECREF(val);
13306 }
13307 }
13308 {
13309 if (temp2)
13310 delete arg2;
13311 }
13312 return resultobj;
13313 fail:
13314 {
13315 if (temp2)
13316 delete arg2;
13317 }
13318 return NULL;
13319 }
13320
13321
13322 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13323 PyObject *resultobj;
13324 wxDC *arg1 = (wxDC *) 0 ;
13325 wxSize result;
13326 PyObject * obj0 = 0 ;
13327 char *kwnames[] = {
13328 (char *) "self", NULL
13329 };
13330
13331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13334 {
13335 PyThreadState* __tstate = wxPyBeginAllowThreads();
13336 result = (arg1)->GetSize();
13337
13338 wxPyEndAllowThreads(__tstate);
13339 if (PyErr_Occurred()) SWIG_fail;
13340 }
13341 {
13342 wxSize * resultptr;
13343 resultptr = new wxSize((wxSize &) result);
13344 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13345 }
13346 return resultobj;
13347 fail:
13348 return NULL;
13349 }
13350
13351
13352 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13353 PyObject *resultobj;
13354 wxDC *arg1 = (wxDC *) 0 ;
13355 int *arg2 = (int *) 0 ;
13356 int *arg3 = (int *) 0 ;
13357 int temp2 ;
13358 int temp3 ;
13359 PyObject * obj0 = 0 ;
13360 char *kwnames[] = {
13361 (char *) "self", NULL
13362 };
13363
13364 arg2 = &temp2;
13365 arg3 = &temp3;
13366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13369 {
13370 PyThreadState* __tstate = wxPyBeginAllowThreads();
13371 (arg1)->GetSize(arg2,arg3);
13372
13373 wxPyEndAllowThreads(__tstate);
13374 if (PyErr_Occurred()) SWIG_fail;
13375 }
13376 Py_INCREF(Py_None); resultobj = Py_None;
13377 {
13378 PyObject *o = PyInt_FromLong((long) (*arg2));
13379 resultobj = t_output_helper(resultobj,o);
13380 }
13381 {
13382 PyObject *o = PyInt_FromLong((long) (*arg3));
13383 resultobj = t_output_helper(resultobj,o);
13384 }
13385 return resultobj;
13386 fail:
13387 return NULL;
13388 }
13389
13390
13391 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13392 PyObject *resultobj;
13393 wxDC *arg1 = (wxDC *) 0 ;
13394 wxSize result;
13395 PyObject * obj0 = 0 ;
13396 char *kwnames[] = {
13397 (char *) "self", NULL
13398 };
13399
13400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13403 {
13404 PyThreadState* __tstate = wxPyBeginAllowThreads();
13405 result = ((wxDC const *)arg1)->GetSizeMM();
13406
13407 wxPyEndAllowThreads(__tstate);
13408 if (PyErr_Occurred()) SWIG_fail;
13409 }
13410 {
13411 wxSize * resultptr;
13412 resultptr = new wxSize((wxSize &) result);
13413 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13414 }
13415 return resultobj;
13416 fail:
13417 return NULL;
13418 }
13419
13420
13421 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13422 PyObject *resultobj;
13423 wxDC *arg1 = (wxDC *) 0 ;
13424 int *arg2 = (int *) 0 ;
13425 int *arg3 = (int *) 0 ;
13426 int temp2 ;
13427 int temp3 ;
13428 PyObject * obj0 = 0 ;
13429 char *kwnames[] = {
13430 (char *) "self", NULL
13431 };
13432
13433 arg2 = &temp2;
13434 arg3 = &temp3;
13435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13438 {
13439 PyThreadState* __tstate = wxPyBeginAllowThreads();
13440 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13441
13442 wxPyEndAllowThreads(__tstate);
13443 if (PyErr_Occurred()) SWIG_fail;
13444 }
13445 Py_INCREF(Py_None); resultobj = Py_None;
13446 {
13447 PyObject *o = PyInt_FromLong((long) (*arg2));
13448 resultobj = t_output_helper(resultobj,o);
13449 }
13450 {
13451 PyObject *o = PyInt_FromLong((long) (*arg3));
13452 resultobj = t_output_helper(resultobj,o);
13453 }
13454 return resultobj;
13455 fail:
13456 return NULL;
13457 }
13458
13459
13460 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13461 PyObject *resultobj;
13462 wxDC *arg1 = (wxDC *) 0 ;
13463 int arg2 ;
13464 int result;
13465 PyObject * obj0 = 0 ;
13466 PyObject * obj1 = 0 ;
13467 char *kwnames[] = {
13468 (char *) "self",(char *) "x", NULL
13469 };
13470
13471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13474 arg2 = (int) SWIG_AsInt(obj1);
13475 if (PyErr_Occurred()) SWIG_fail;
13476 {
13477 PyThreadState* __tstate = wxPyBeginAllowThreads();
13478 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13479
13480 wxPyEndAllowThreads(__tstate);
13481 if (PyErr_Occurred()) SWIG_fail;
13482 }
13483 resultobj = SWIG_FromInt((int)result);
13484 return resultobj;
13485 fail:
13486 return NULL;
13487 }
13488
13489
13490 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13491 PyObject *resultobj;
13492 wxDC *arg1 = (wxDC *) 0 ;
13493 int arg2 ;
13494 int result;
13495 PyObject * obj0 = 0 ;
13496 PyObject * obj1 = 0 ;
13497 char *kwnames[] = {
13498 (char *) "self",(char *) "y", NULL
13499 };
13500
13501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13504 arg2 = (int) SWIG_AsInt(obj1);
13505 if (PyErr_Occurred()) SWIG_fail;
13506 {
13507 PyThreadState* __tstate = wxPyBeginAllowThreads();
13508 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13509
13510 wxPyEndAllowThreads(__tstate);
13511 if (PyErr_Occurred()) SWIG_fail;
13512 }
13513 resultobj = SWIG_FromInt((int)result);
13514 return resultobj;
13515 fail:
13516 return NULL;
13517 }
13518
13519
13520 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13521 PyObject *resultobj;
13522 wxDC *arg1 = (wxDC *) 0 ;
13523 int arg2 ;
13524 int result;
13525 PyObject * obj0 = 0 ;
13526 PyObject * obj1 = 0 ;
13527 char *kwnames[] = {
13528 (char *) "self",(char *) "x", NULL
13529 };
13530
13531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13534 arg2 = (int) SWIG_AsInt(obj1);
13535 if (PyErr_Occurred()) SWIG_fail;
13536 {
13537 PyThreadState* __tstate = wxPyBeginAllowThreads();
13538 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13539
13540 wxPyEndAllowThreads(__tstate);
13541 if (PyErr_Occurred()) SWIG_fail;
13542 }
13543 resultobj = SWIG_FromInt((int)result);
13544 return resultobj;
13545 fail:
13546 return NULL;
13547 }
13548
13549
13550 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13551 PyObject *resultobj;
13552 wxDC *arg1 = (wxDC *) 0 ;
13553 int arg2 ;
13554 int result;
13555 PyObject * obj0 = 0 ;
13556 PyObject * obj1 = 0 ;
13557 char *kwnames[] = {
13558 (char *) "self",(char *) "y", NULL
13559 };
13560
13561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13564 arg2 = (int) SWIG_AsInt(obj1);
13565 if (PyErr_Occurred()) SWIG_fail;
13566 {
13567 PyThreadState* __tstate = wxPyBeginAllowThreads();
13568 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13569
13570 wxPyEndAllowThreads(__tstate);
13571 if (PyErr_Occurred()) SWIG_fail;
13572 }
13573 resultobj = SWIG_FromInt((int)result);
13574 return resultobj;
13575 fail:
13576 return NULL;
13577 }
13578
13579
13580 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13581 PyObject *resultobj;
13582 wxDC *arg1 = (wxDC *) 0 ;
13583 int arg2 ;
13584 int result;
13585 PyObject * obj0 = 0 ;
13586 PyObject * obj1 = 0 ;
13587 char *kwnames[] = {
13588 (char *) "self",(char *) "x", NULL
13589 };
13590
13591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13594 arg2 = (int) SWIG_AsInt(obj1);
13595 if (PyErr_Occurred()) SWIG_fail;
13596 {
13597 PyThreadState* __tstate = wxPyBeginAllowThreads();
13598 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13599
13600 wxPyEndAllowThreads(__tstate);
13601 if (PyErr_Occurred()) SWIG_fail;
13602 }
13603 resultobj = SWIG_FromInt((int)result);
13604 return resultobj;
13605 fail:
13606 return NULL;
13607 }
13608
13609
13610 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13611 PyObject *resultobj;
13612 wxDC *arg1 = (wxDC *) 0 ;
13613 int arg2 ;
13614 int result;
13615 PyObject * obj0 = 0 ;
13616 PyObject * obj1 = 0 ;
13617 char *kwnames[] = {
13618 (char *) "self",(char *) "y", NULL
13619 };
13620
13621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13624 arg2 = (int) SWIG_AsInt(obj1);
13625 if (PyErr_Occurred()) SWIG_fail;
13626 {
13627 PyThreadState* __tstate = wxPyBeginAllowThreads();
13628 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13629
13630 wxPyEndAllowThreads(__tstate);
13631 if (PyErr_Occurred()) SWIG_fail;
13632 }
13633 resultobj = SWIG_FromInt((int)result);
13634 return resultobj;
13635 fail:
13636 return NULL;
13637 }
13638
13639
13640 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13641 PyObject *resultobj;
13642 wxDC *arg1 = (wxDC *) 0 ;
13643 int arg2 ;
13644 int result;
13645 PyObject * obj0 = 0 ;
13646 PyObject * obj1 = 0 ;
13647 char *kwnames[] = {
13648 (char *) "self",(char *) "x", NULL
13649 };
13650
13651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13654 arg2 = (int) SWIG_AsInt(obj1);
13655 if (PyErr_Occurred()) SWIG_fail;
13656 {
13657 PyThreadState* __tstate = wxPyBeginAllowThreads();
13658 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13659
13660 wxPyEndAllowThreads(__tstate);
13661 if (PyErr_Occurred()) SWIG_fail;
13662 }
13663 resultobj = SWIG_FromInt((int)result);
13664 return resultobj;
13665 fail:
13666 return NULL;
13667 }
13668
13669
13670 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13671 PyObject *resultobj;
13672 wxDC *arg1 = (wxDC *) 0 ;
13673 int arg2 ;
13674 int result;
13675 PyObject * obj0 = 0 ;
13676 PyObject * obj1 = 0 ;
13677 char *kwnames[] = {
13678 (char *) "self",(char *) "y", NULL
13679 };
13680
13681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13684 arg2 = (int) SWIG_AsInt(obj1);
13685 if (PyErr_Occurred()) SWIG_fail;
13686 {
13687 PyThreadState* __tstate = wxPyBeginAllowThreads();
13688 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13689
13690 wxPyEndAllowThreads(__tstate);
13691 if (PyErr_Occurred()) SWIG_fail;
13692 }
13693 resultobj = SWIG_FromInt((int)result);
13694 return resultobj;
13695 fail:
13696 return NULL;
13697 }
13698
13699
13700 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13701 PyObject *resultobj;
13702 wxDC *arg1 = (wxDC *) 0 ;
13703 bool result;
13704 PyObject * obj0 = 0 ;
13705 char *kwnames[] = {
13706 (char *) "self", NULL
13707 };
13708
13709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13712 {
13713 PyThreadState* __tstate = wxPyBeginAllowThreads();
13714 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13715
13716 wxPyEndAllowThreads(__tstate);
13717 if (PyErr_Occurred()) SWIG_fail;
13718 }
13719 {
13720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13721 }
13722 return resultobj;
13723 fail:
13724 return NULL;
13725 }
13726
13727
13728 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13729 PyObject *resultobj;
13730 wxDC *arg1 = (wxDC *) 0 ;
13731 bool result;
13732 PyObject * obj0 = 0 ;
13733 char *kwnames[] = {
13734 (char *) "self", NULL
13735 };
13736
13737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13740 {
13741 PyThreadState* __tstate = wxPyBeginAllowThreads();
13742 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13743
13744 wxPyEndAllowThreads(__tstate);
13745 if (PyErr_Occurred()) SWIG_fail;
13746 }
13747 {
13748 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13749 }
13750 return resultobj;
13751 fail:
13752 return NULL;
13753 }
13754
13755
13756 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13757 PyObject *resultobj;
13758 wxDC *arg1 = (wxDC *) 0 ;
13759 int result;
13760 PyObject * obj0 = 0 ;
13761 char *kwnames[] = {
13762 (char *) "self", NULL
13763 };
13764
13765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13768 {
13769 PyThreadState* __tstate = wxPyBeginAllowThreads();
13770 result = (int)((wxDC const *)arg1)->GetDepth();
13771
13772 wxPyEndAllowThreads(__tstate);
13773 if (PyErr_Occurred()) SWIG_fail;
13774 }
13775 resultobj = SWIG_FromInt((int)result);
13776 return resultobj;
13777 fail:
13778 return NULL;
13779 }
13780
13781
13782 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13783 PyObject *resultobj;
13784 wxDC *arg1 = (wxDC *) 0 ;
13785 wxSize result;
13786 PyObject * obj0 = 0 ;
13787 char *kwnames[] = {
13788 (char *) "self", NULL
13789 };
13790
13791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13794 {
13795 PyThreadState* __tstate = wxPyBeginAllowThreads();
13796 result = ((wxDC const *)arg1)->GetPPI();
13797
13798 wxPyEndAllowThreads(__tstate);
13799 if (PyErr_Occurred()) SWIG_fail;
13800 }
13801 {
13802 wxSize * resultptr;
13803 resultptr = new wxSize((wxSize &) result);
13804 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13805 }
13806 return resultobj;
13807 fail:
13808 return NULL;
13809 }
13810
13811
13812 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13813 PyObject *resultobj;
13814 wxDC *arg1 = (wxDC *) 0 ;
13815 bool result;
13816 PyObject * obj0 = 0 ;
13817 char *kwnames[] = {
13818 (char *) "self", NULL
13819 };
13820
13821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13824 {
13825 PyThreadState* __tstate = wxPyBeginAllowThreads();
13826 result = (bool)((wxDC const *)arg1)->Ok();
13827
13828 wxPyEndAllowThreads(__tstate);
13829 if (PyErr_Occurred()) SWIG_fail;
13830 }
13831 {
13832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13833 }
13834 return resultobj;
13835 fail:
13836 return NULL;
13837 }
13838
13839
13840 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13841 PyObject *resultobj;
13842 wxDC *arg1 = (wxDC *) 0 ;
13843 int result;
13844 PyObject * obj0 = 0 ;
13845 char *kwnames[] = {
13846 (char *) "self", NULL
13847 };
13848
13849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13852 {
13853 PyThreadState* __tstate = wxPyBeginAllowThreads();
13854 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13855
13856 wxPyEndAllowThreads(__tstate);
13857 if (PyErr_Occurred()) SWIG_fail;
13858 }
13859 resultobj = SWIG_FromInt((int)result);
13860 return resultobj;
13861 fail:
13862 return NULL;
13863 }
13864
13865
13866 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13867 PyObject *resultobj;
13868 wxDC *arg1 = (wxDC *) 0 ;
13869 wxBrush *result;
13870 PyObject * obj0 = 0 ;
13871 char *kwnames[] = {
13872 (char *) "self", NULL
13873 };
13874
13875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13878 {
13879 PyThreadState* __tstate = wxPyBeginAllowThreads();
13880 {
13881 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13882 result = (wxBrush *) &_result_ref;
13883 }
13884
13885 wxPyEndAllowThreads(__tstate);
13886 if (PyErr_Occurred()) SWIG_fail;
13887 }
13888 {
13889 wxBrush* resultptr = new wxBrush(*result);
13890 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13891 }
13892 return resultobj;
13893 fail:
13894 return NULL;
13895 }
13896
13897
13898 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13899 PyObject *resultobj;
13900 wxDC *arg1 = (wxDC *) 0 ;
13901 wxBrush *result;
13902 PyObject * obj0 = 0 ;
13903 char *kwnames[] = {
13904 (char *) "self", NULL
13905 };
13906
13907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13910 {
13911 PyThreadState* __tstate = wxPyBeginAllowThreads();
13912 {
13913 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13914 result = (wxBrush *) &_result_ref;
13915 }
13916
13917 wxPyEndAllowThreads(__tstate);
13918 if (PyErr_Occurred()) SWIG_fail;
13919 }
13920 {
13921 wxBrush* resultptr = new wxBrush(*result);
13922 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13923 }
13924 return resultobj;
13925 fail:
13926 return NULL;
13927 }
13928
13929
13930 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13931 PyObject *resultobj;
13932 wxDC *arg1 = (wxDC *) 0 ;
13933 wxFont *result;
13934 PyObject * obj0 = 0 ;
13935 char *kwnames[] = {
13936 (char *) "self", NULL
13937 };
13938
13939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13942 {
13943 PyThreadState* __tstate = wxPyBeginAllowThreads();
13944 {
13945 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13946 result = (wxFont *) &_result_ref;
13947 }
13948
13949 wxPyEndAllowThreads(__tstate);
13950 if (PyErr_Occurred()) SWIG_fail;
13951 }
13952 {
13953 wxFont* resultptr = new wxFont(*result);
13954 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
13955 }
13956 return resultobj;
13957 fail:
13958 return NULL;
13959 }
13960
13961
13962 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13963 PyObject *resultobj;
13964 wxDC *arg1 = (wxDC *) 0 ;
13965 wxPen *result;
13966 PyObject * obj0 = 0 ;
13967 char *kwnames[] = {
13968 (char *) "self", NULL
13969 };
13970
13971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13974 {
13975 PyThreadState* __tstate = wxPyBeginAllowThreads();
13976 {
13977 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13978 result = (wxPen *) &_result_ref;
13979 }
13980
13981 wxPyEndAllowThreads(__tstate);
13982 if (PyErr_Occurred()) SWIG_fail;
13983 }
13984 {
13985 wxPen* resultptr = new wxPen(*result);
13986 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
13987 }
13988 return resultobj;
13989 fail:
13990 return NULL;
13991 }
13992
13993
13994 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13995 PyObject *resultobj;
13996 wxDC *arg1 = (wxDC *) 0 ;
13997 wxColour *result;
13998 PyObject * obj0 = 0 ;
13999 char *kwnames[] = {
14000 (char *) "self", NULL
14001 };
14002
14003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
14004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14006 {
14007 PyThreadState* __tstate = wxPyBeginAllowThreads();
14008 {
14009 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
14010 result = (wxColour *) &_result_ref;
14011 }
14012
14013 wxPyEndAllowThreads(__tstate);
14014 if (PyErr_Occurred()) SWIG_fail;
14015 }
14016 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14017 return resultobj;
14018 fail:
14019 return NULL;
14020 }
14021
14022
14023 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14024 PyObject *resultobj;
14025 wxDC *arg1 = (wxDC *) 0 ;
14026 wxColour *result;
14027 PyObject * obj0 = 0 ;
14028 char *kwnames[] = {
14029 (char *) "self", NULL
14030 };
14031
14032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
14033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14035 {
14036 PyThreadState* __tstate = wxPyBeginAllowThreads();
14037 {
14038 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
14039 result = (wxColour *) &_result_ref;
14040 }
14041
14042 wxPyEndAllowThreads(__tstate);
14043 if (PyErr_Occurred()) SWIG_fail;
14044 }
14045 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14046 return resultobj;
14047 fail:
14048 return NULL;
14049 }
14050
14051
14052 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14053 PyObject *resultobj;
14054 wxDC *arg1 = (wxDC *) 0 ;
14055 wxColour *arg2 = 0 ;
14056 wxColour temp2 ;
14057 PyObject * obj0 = 0 ;
14058 PyObject * obj1 = 0 ;
14059 char *kwnames[] = {
14060 (char *) "self",(char *) "colour", NULL
14061 };
14062
14063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
14064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14066 {
14067 arg2 = &temp2;
14068 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14069 }
14070 {
14071 PyThreadState* __tstate = wxPyBeginAllowThreads();
14072 (arg1)->SetTextForeground((wxColour const &)*arg2);
14073
14074 wxPyEndAllowThreads(__tstate);
14075 if (PyErr_Occurred()) SWIG_fail;
14076 }
14077 Py_INCREF(Py_None); resultobj = Py_None;
14078 return resultobj;
14079 fail:
14080 return NULL;
14081 }
14082
14083
14084 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14085 PyObject *resultobj;
14086 wxDC *arg1 = (wxDC *) 0 ;
14087 wxColour *arg2 = 0 ;
14088 wxColour temp2 ;
14089 PyObject * obj0 = 0 ;
14090 PyObject * obj1 = 0 ;
14091 char *kwnames[] = {
14092 (char *) "self",(char *) "colour", NULL
14093 };
14094
14095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
14096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14098 {
14099 arg2 = &temp2;
14100 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14101 }
14102 {
14103 PyThreadState* __tstate = wxPyBeginAllowThreads();
14104 (arg1)->SetTextBackground((wxColour const &)*arg2);
14105
14106 wxPyEndAllowThreads(__tstate);
14107 if (PyErr_Occurred()) SWIG_fail;
14108 }
14109 Py_INCREF(Py_None); resultobj = Py_None;
14110 return resultobj;
14111 fail:
14112 return NULL;
14113 }
14114
14115
14116 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14117 PyObject *resultobj;
14118 wxDC *arg1 = (wxDC *) 0 ;
14119 int result;
14120 PyObject * obj0 = 0 ;
14121 char *kwnames[] = {
14122 (char *) "self", NULL
14123 };
14124
14125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
14126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14128 {
14129 PyThreadState* __tstate = wxPyBeginAllowThreads();
14130 result = (int)((wxDC const *)arg1)->GetMapMode();
14131
14132 wxPyEndAllowThreads(__tstate);
14133 if (PyErr_Occurred()) SWIG_fail;
14134 }
14135 resultobj = SWIG_FromInt((int)result);
14136 return resultobj;
14137 fail:
14138 return NULL;
14139 }
14140
14141
14142 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14143 PyObject *resultobj;
14144 wxDC *arg1 = (wxDC *) 0 ;
14145 int arg2 ;
14146 PyObject * obj0 = 0 ;
14147 PyObject * obj1 = 0 ;
14148 char *kwnames[] = {
14149 (char *) "self",(char *) "mode", NULL
14150 };
14151
14152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
14153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14155 arg2 = (int) SWIG_AsInt(obj1);
14156 if (PyErr_Occurred()) SWIG_fail;
14157 {
14158 PyThreadState* __tstate = wxPyBeginAllowThreads();
14159 (arg1)->SetMapMode(arg2);
14160
14161 wxPyEndAllowThreads(__tstate);
14162 if (PyErr_Occurred()) SWIG_fail;
14163 }
14164 Py_INCREF(Py_None); resultobj = Py_None;
14165 return resultobj;
14166 fail:
14167 return NULL;
14168 }
14169
14170
14171 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14172 PyObject *resultobj;
14173 wxDC *arg1 = (wxDC *) 0 ;
14174 double *arg2 = (double *) 0 ;
14175 double *arg3 = (double *) 0 ;
14176 double temp2 ;
14177 double temp3 ;
14178 PyObject * obj0 = 0 ;
14179 char *kwnames[] = {
14180 (char *) "self", NULL
14181 };
14182
14183 arg2 = &temp2;
14184 arg3 = &temp3;
14185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14188 {
14189 PyThreadState* __tstate = wxPyBeginAllowThreads();
14190 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14191
14192 wxPyEndAllowThreads(__tstate);
14193 if (PyErr_Occurred()) SWIG_fail;
14194 }
14195 Py_INCREF(Py_None); resultobj = Py_None;
14196 {
14197 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14198 resultobj = t_output_helper(resultobj,o);
14199 }
14200 {
14201 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14202 resultobj = t_output_helper(resultobj,o);
14203 }
14204 return resultobj;
14205 fail:
14206 return NULL;
14207 }
14208
14209
14210 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14211 PyObject *resultobj;
14212 wxDC *arg1 = (wxDC *) 0 ;
14213 double arg2 ;
14214 double arg3 ;
14215 PyObject * obj0 = 0 ;
14216 PyObject * obj1 = 0 ;
14217 PyObject * obj2 = 0 ;
14218 char *kwnames[] = {
14219 (char *) "self",(char *) "x",(char *) "y", NULL
14220 };
14221
14222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14225 arg2 = (double) SWIG_AsDouble(obj1);
14226 if (PyErr_Occurred()) SWIG_fail;
14227 arg3 = (double) SWIG_AsDouble(obj2);
14228 if (PyErr_Occurred()) SWIG_fail;
14229 {
14230 PyThreadState* __tstate = wxPyBeginAllowThreads();
14231 (arg1)->SetUserScale(arg2,arg3);
14232
14233 wxPyEndAllowThreads(__tstate);
14234 if (PyErr_Occurred()) SWIG_fail;
14235 }
14236 Py_INCREF(Py_None); resultobj = Py_None;
14237 return resultobj;
14238 fail:
14239 return NULL;
14240 }
14241
14242
14243 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14244 PyObject *resultobj;
14245 wxDC *arg1 = (wxDC *) 0 ;
14246 double *arg2 = (double *) 0 ;
14247 double *arg3 = (double *) 0 ;
14248 double temp2 ;
14249 double temp3 ;
14250 PyObject * obj0 = 0 ;
14251 char *kwnames[] = {
14252 (char *) "self", NULL
14253 };
14254
14255 arg2 = &temp2;
14256 arg3 = &temp3;
14257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14260 {
14261 PyThreadState* __tstate = wxPyBeginAllowThreads();
14262 (arg1)->GetLogicalScale(arg2,arg3);
14263
14264 wxPyEndAllowThreads(__tstate);
14265 if (PyErr_Occurred()) SWIG_fail;
14266 }
14267 Py_INCREF(Py_None); resultobj = Py_None;
14268 {
14269 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14270 resultobj = t_output_helper(resultobj,o);
14271 }
14272 {
14273 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14274 resultobj = t_output_helper(resultobj,o);
14275 }
14276 return resultobj;
14277 fail:
14278 return NULL;
14279 }
14280
14281
14282 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14283 PyObject *resultobj;
14284 wxDC *arg1 = (wxDC *) 0 ;
14285 double arg2 ;
14286 double arg3 ;
14287 PyObject * obj0 = 0 ;
14288 PyObject * obj1 = 0 ;
14289 PyObject * obj2 = 0 ;
14290 char *kwnames[] = {
14291 (char *) "self",(char *) "x",(char *) "y", NULL
14292 };
14293
14294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14297 arg2 = (double) SWIG_AsDouble(obj1);
14298 if (PyErr_Occurred()) SWIG_fail;
14299 arg3 = (double) SWIG_AsDouble(obj2);
14300 if (PyErr_Occurred()) SWIG_fail;
14301 {
14302 PyThreadState* __tstate = wxPyBeginAllowThreads();
14303 (arg1)->SetLogicalScale(arg2,arg3);
14304
14305 wxPyEndAllowThreads(__tstate);
14306 if (PyErr_Occurred()) SWIG_fail;
14307 }
14308 Py_INCREF(Py_None); resultobj = Py_None;
14309 return resultobj;
14310 fail:
14311 return NULL;
14312 }
14313
14314
14315 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14316 PyObject *resultobj;
14317 wxDC *arg1 = (wxDC *) 0 ;
14318 wxPoint result;
14319 PyObject * obj0 = 0 ;
14320 char *kwnames[] = {
14321 (char *) "self", NULL
14322 };
14323
14324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14327 {
14328 PyThreadState* __tstate = wxPyBeginAllowThreads();
14329 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14330
14331 wxPyEndAllowThreads(__tstate);
14332 if (PyErr_Occurred()) SWIG_fail;
14333 }
14334 {
14335 wxPoint * resultptr;
14336 resultptr = new wxPoint((wxPoint &) result);
14337 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14338 }
14339 return resultobj;
14340 fail:
14341 return NULL;
14342 }
14343
14344
14345 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14346 PyObject *resultobj;
14347 wxDC *arg1 = (wxDC *) 0 ;
14348 int *arg2 = (int *) 0 ;
14349 int *arg3 = (int *) 0 ;
14350 int temp2 ;
14351 int temp3 ;
14352 PyObject * obj0 = 0 ;
14353 char *kwnames[] = {
14354 (char *) "self", NULL
14355 };
14356
14357 arg2 = &temp2;
14358 arg3 = &temp3;
14359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14362 {
14363 PyThreadState* __tstate = wxPyBeginAllowThreads();
14364 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14365
14366 wxPyEndAllowThreads(__tstate);
14367 if (PyErr_Occurred()) SWIG_fail;
14368 }
14369 Py_INCREF(Py_None); resultobj = Py_None;
14370 {
14371 PyObject *o = PyInt_FromLong((long) (*arg2));
14372 resultobj = t_output_helper(resultobj,o);
14373 }
14374 {
14375 PyObject *o = PyInt_FromLong((long) (*arg3));
14376 resultobj = t_output_helper(resultobj,o);
14377 }
14378 return resultobj;
14379 fail:
14380 return NULL;
14381 }
14382
14383
14384 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14385 PyObject *resultobj;
14386 wxDC *arg1 = (wxDC *) 0 ;
14387 int arg2 ;
14388 int arg3 ;
14389 PyObject * obj0 = 0 ;
14390 PyObject * obj1 = 0 ;
14391 PyObject * obj2 = 0 ;
14392 char *kwnames[] = {
14393 (char *) "self",(char *) "x",(char *) "y", NULL
14394 };
14395
14396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14399 arg2 = (int) SWIG_AsInt(obj1);
14400 if (PyErr_Occurred()) SWIG_fail;
14401 arg3 = (int) SWIG_AsInt(obj2);
14402 if (PyErr_Occurred()) SWIG_fail;
14403 {
14404 PyThreadState* __tstate = wxPyBeginAllowThreads();
14405 (arg1)->SetLogicalOrigin(arg2,arg3);
14406
14407 wxPyEndAllowThreads(__tstate);
14408 if (PyErr_Occurred()) SWIG_fail;
14409 }
14410 Py_INCREF(Py_None); resultobj = Py_None;
14411 return resultobj;
14412 fail:
14413 return NULL;
14414 }
14415
14416
14417 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14418 PyObject *resultobj;
14419 wxDC *arg1 = (wxDC *) 0 ;
14420 wxPoint result;
14421 PyObject * obj0 = 0 ;
14422 char *kwnames[] = {
14423 (char *) "self", NULL
14424 };
14425
14426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14429 {
14430 PyThreadState* __tstate = wxPyBeginAllowThreads();
14431 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14432
14433 wxPyEndAllowThreads(__tstate);
14434 if (PyErr_Occurred()) SWIG_fail;
14435 }
14436 {
14437 wxPoint * resultptr;
14438 resultptr = new wxPoint((wxPoint &) result);
14439 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14440 }
14441 return resultobj;
14442 fail:
14443 return NULL;
14444 }
14445
14446
14447 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14448 PyObject *resultobj;
14449 wxDC *arg1 = (wxDC *) 0 ;
14450 int *arg2 = (int *) 0 ;
14451 int *arg3 = (int *) 0 ;
14452 int temp2 ;
14453 int temp3 ;
14454 PyObject * obj0 = 0 ;
14455 char *kwnames[] = {
14456 (char *) "self", NULL
14457 };
14458
14459 arg2 = &temp2;
14460 arg3 = &temp3;
14461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14464 {
14465 PyThreadState* __tstate = wxPyBeginAllowThreads();
14466 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14467
14468 wxPyEndAllowThreads(__tstate);
14469 if (PyErr_Occurred()) SWIG_fail;
14470 }
14471 Py_INCREF(Py_None); resultobj = Py_None;
14472 {
14473 PyObject *o = PyInt_FromLong((long) (*arg2));
14474 resultobj = t_output_helper(resultobj,o);
14475 }
14476 {
14477 PyObject *o = PyInt_FromLong((long) (*arg3));
14478 resultobj = t_output_helper(resultobj,o);
14479 }
14480 return resultobj;
14481 fail:
14482 return NULL;
14483 }
14484
14485
14486 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14487 PyObject *resultobj;
14488 wxDC *arg1 = (wxDC *) 0 ;
14489 int arg2 ;
14490 int arg3 ;
14491 PyObject * obj0 = 0 ;
14492 PyObject * obj1 = 0 ;
14493 PyObject * obj2 = 0 ;
14494 char *kwnames[] = {
14495 (char *) "self",(char *) "x",(char *) "y", NULL
14496 };
14497
14498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14501 arg2 = (int) SWIG_AsInt(obj1);
14502 if (PyErr_Occurred()) SWIG_fail;
14503 arg3 = (int) SWIG_AsInt(obj2);
14504 if (PyErr_Occurred()) SWIG_fail;
14505 {
14506 PyThreadState* __tstate = wxPyBeginAllowThreads();
14507 (arg1)->SetDeviceOrigin(arg2,arg3);
14508
14509 wxPyEndAllowThreads(__tstate);
14510 if (PyErr_Occurred()) SWIG_fail;
14511 }
14512 Py_INCREF(Py_None); resultobj = Py_None;
14513 return resultobj;
14514 fail:
14515 return NULL;
14516 }
14517
14518
14519 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14520 PyObject *resultobj;
14521 wxDC *arg1 = (wxDC *) 0 ;
14522 bool arg2 ;
14523 bool arg3 ;
14524 PyObject * obj0 = 0 ;
14525 PyObject * obj1 = 0 ;
14526 PyObject * obj2 = 0 ;
14527 char *kwnames[] = {
14528 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14529 };
14530
14531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14534 arg2 = (bool) SWIG_AsBool(obj1);
14535 if (PyErr_Occurred()) SWIG_fail;
14536 arg3 = (bool) SWIG_AsBool(obj2);
14537 if (PyErr_Occurred()) SWIG_fail;
14538 {
14539 PyThreadState* __tstate = wxPyBeginAllowThreads();
14540 (arg1)->SetAxisOrientation(arg2,arg3);
14541
14542 wxPyEndAllowThreads(__tstate);
14543 if (PyErr_Occurred()) SWIG_fail;
14544 }
14545 Py_INCREF(Py_None); resultobj = Py_None;
14546 return resultobj;
14547 fail:
14548 return NULL;
14549 }
14550
14551
14552 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14553 PyObject *resultobj;
14554 wxDC *arg1 = (wxDC *) 0 ;
14555 int result;
14556 PyObject * obj0 = 0 ;
14557 char *kwnames[] = {
14558 (char *) "self", NULL
14559 };
14560
14561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14564 {
14565 PyThreadState* __tstate = wxPyBeginAllowThreads();
14566 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14567
14568 wxPyEndAllowThreads(__tstate);
14569 if (PyErr_Occurred()) SWIG_fail;
14570 }
14571 resultobj = SWIG_FromInt((int)result);
14572 return resultobj;
14573 fail:
14574 return NULL;
14575 }
14576
14577
14578 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14579 PyObject *resultobj;
14580 wxDC *arg1 = (wxDC *) 0 ;
14581 int arg2 ;
14582 PyObject * obj0 = 0 ;
14583 PyObject * obj1 = 0 ;
14584 char *kwnames[] = {
14585 (char *) "self",(char *) "function", NULL
14586 };
14587
14588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14591 arg2 = (int) SWIG_AsInt(obj1);
14592 if (PyErr_Occurred()) SWIG_fail;
14593 {
14594 PyThreadState* __tstate = wxPyBeginAllowThreads();
14595 (arg1)->SetLogicalFunction(arg2);
14596
14597 wxPyEndAllowThreads(__tstate);
14598 if (PyErr_Occurred()) SWIG_fail;
14599 }
14600 Py_INCREF(Py_None); resultobj = Py_None;
14601 return resultobj;
14602 fail:
14603 return NULL;
14604 }
14605
14606
14607 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14608 PyObject *resultobj;
14609 wxDC *arg1 = (wxDC *) 0 ;
14610 bool arg2 ;
14611 PyObject * obj0 = 0 ;
14612 PyObject * obj1 = 0 ;
14613 char *kwnames[] = {
14614 (char *) "self",(char *) "opt", NULL
14615 };
14616
14617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14620 arg2 = (bool) SWIG_AsBool(obj1);
14621 if (PyErr_Occurred()) SWIG_fail;
14622 {
14623 PyThreadState* __tstate = wxPyBeginAllowThreads();
14624 (arg1)->SetOptimization(arg2);
14625
14626 wxPyEndAllowThreads(__tstate);
14627 if (PyErr_Occurred()) SWIG_fail;
14628 }
14629 Py_INCREF(Py_None); resultobj = Py_None;
14630 return resultobj;
14631 fail:
14632 return NULL;
14633 }
14634
14635
14636 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14637 PyObject *resultobj;
14638 wxDC *arg1 = (wxDC *) 0 ;
14639 bool result;
14640 PyObject * obj0 = 0 ;
14641 char *kwnames[] = {
14642 (char *) "self", NULL
14643 };
14644
14645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14648 {
14649 PyThreadState* __tstate = wxPyBeginAllowThreads();
14650 result = (bool)(arg1)->GetOptimization();
14651
14652 wxPyEndAllowThreads(__tstate);
14653 if (PyErr_Occurred()) SWIG_fail;
14654 }
14655 {
14656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14657 }
14658 return resultobj;
14659 fail:
14660 return NULL;
14661 }
14662
14663
14664 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14665 PyObject *resultobj;
14666 wxDC *arg1 = (wxDC *) 0 ;
14667 int arg2 ;
14668 int arg3 ;
14669 PyObject * obj0 = 0 ;
14670 PyObject * obj1 = 0 ;
14671 PyObject * obj2 = 0 ;
14672 char *kwnames[] = {
14673 (char *) "self",(char *) "x",(char *) "y", NULL
14674 };
14675
14676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14679 arg2 = (int) SWIG_AsInt(obj1);
14680 if (PyErr_Occurred()) SWIG_fail;
14681 arg3 = (int) SWIG_AsInt(obj2);
14682 if (PyErr_Occurred()) SWIG_fail;
14683 {
14684 PyThreadState* __tstate = wxPyBeginAllowThreads();
14685 (arg1)->CalcBoundingBox(arg2,arg3);
14686
14687 wxPyEndAllowThreads(__tstate);
14688 if (PyErr_Occurred()) SWIG_fail;
14689 }
14690 Py_INCREF(Py_None); resultobj = Py_None;
14691 return resultobj;
14692 fail:
14693 return NULL;
14694 }
14695
14696
14697 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14698 PyObject *resultobj;
14699 wxDC *arg1 = (wxDC *) 0 ;
14700 PyObject * obj0 = 0 ;
14701 char *kwnames[] = {
14702 (char *) "self", NULL
14703 };
14704
14705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14708 {
14709 PyThreadState* __tstate = wxPyBeginAllowThreads();
14710 (arg1)->ResetBoundingBox();
14711
14712 wxPyEndAllowThreads(__tstate);
14713 if (PyErr_Occurred()) SWIG_fail;
14714 }
14715 Py_INCREF(Py_None); resultobj = Py_None;
14716 return resultobj;
14717 fail:
14718 return NULL;
14719 }
14720
14721
14722 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14723 PyObject *resultobj;
14724 wxDC *arg1 = (wxDC *) 0 ;
14725 int result;
14726 PyObject * obj0 = 0 ;
14727 char *kwnames[] = {
14728 (char *) "self", NULL
14729 };
14730
14731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14734 {
14735 PyThreadState* __tstate = wxPyBeginAllowThreads();
14736 result = (int)((wxDC const *)arg1)->MinX();
14737
14738 wxPyEndAllowThreads(__tstate);
14739 if (PyErr_Occurred()) SWIG_fail;
14740 }
14741 resultobj = SWIG_FromInt((int)result);
14742 return resultobj;
14743 fail:
14744 return NULL;
14745 }
14746
14747
14748 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14749 PyObject *resultobj;
14750 wxDC *arg1 = (wxDC *) 0 ;
14751 int result;
14752 PyObject * obj0 = 0 ;
14753 char *kwnames[] = {
14754 (char *) "self", NULL
14755 };
14756
14757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14760 {
14761 PyThreadState* __tstate = wxPyBeginAllowThreads();
14762 result = (int)((wxDC const *)arg1)->MaxX();
14763
14764 wxPyEndAllowThreads(__tstate);
14765 if (PyErr_Occurred()) SWIG_fail;
14766 }
14767 resultobj = SWIG_FromInt((int)result);
14768 return resultobj;
14769 fail:
14770 return NULL;
14771 }
14772
14773
14774 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14775 PyObject *resultobj;
14776 wxDC *arg1 = (wxDC *) 0 ;
14777 int result;
14778 PyObject * obj0 = 0 ;
14779 char *kwnames[] = {
14780 (char *) "self", NULL
14781 };
14782
14783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14786 {
14787 PyThreadState* __tstate = wxPyBeginAllowThreads();
14788 result = (int)((wxDC const *)arg1)->MinY();
14789
14790 wxPyEndAllowThreads(__tstate);
14791 if (PyErr_Occurred()) SWIG_fail;
14792 }
14793 resultobj = SWIG_FromInt((int)result);
14794 return resultobj;
14795 fail:
14796 return NULL;
14797 }
14798
14799
14800 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14801 PyObject *resultobj;
14802 wxDC *arg1 = (wxDC *) 0 ;
14803 int result;
14804 PyObject * obj0 = 0 ;
14805 char *kwnames[] = {
14806 (char *) "self", NULL
14807 };
14808
14809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14812 {
14813 PyThreadState* __tstate = wxPyBeginAllowThreads();
14814 result = (int)((wxDC const *)arg1)->MaxY();
14815
14816 wxPyEndAllowThreads(__tstate);
14817 if (PyErr_Occurred()) SWIG_fail;
14818 }
14819 resultobj = SWIG_FromInt((int)result);
14820 return resultobj;
14821 fail:
14822 return NULL;
14823 }
14824
14825
14826 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14827 PyObject *resultobj;
14828 wxDC *arg1 = (wxDC *) 0 ;
14829 int *arg2 = (int *) 0 ;
14830 int *arg3 = (int *) 0 ;
14831 int *arg4 = (int *) 0 ;
14832 int *arg5 = (int *) 0 ;
14833 int temp2 ;
14834 int temp3 ;
14835 int temp4 ;
14836 int temp5 ;
14837 PyObject * obj0 = 0 ;
14838 char *kwnames[] = {
14839 (char *) "self", NULL
14840 };
14841
14842 arg2 = &temp2;
14843 arg3 = &temp3;
14844 arg4 = &temp4;
14845 arg5 = &temp5;
14846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14849 {
14850 PyThreadState* __tstate = wxPyBeginAllowThreads();
14851 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14852
14853 wxPyEndAllowThreads(__tstate);
14854 if (PyErr_Occurred()) SWIG_fail;
14855 }
14856 Py_INCREF(Py_None); resultobj = Py_None;
14857 {
14858 PyObject *o = PyInt_FromLong((long) (*arg2));
14859 resultobj = t_output_helper(resultobj,o);
14860 }
14861 {
14862 PyObject *o = PyInt_FromLong((long) (*arg3));
14863 resultobj = t_output_helper(resultobj,o);
14864 }
14865 {
14866 PyObject *o = PyInt_FromLong((long) (*arg4));
14867 resultobj = t_output_helper(resultobj,o);
14868 }
14869 {
14870 PyObject *o = PyInt_FromLong((long) (*arg5));
14871 resultobj = t_output_helper(resultobj,o);
14872 }
14873 return resultobj;
14874 fail:
14875 return NULL;
14876 }
14877
14878
14879 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14880 PyObject *resultobj;
14881 wxDC *arg1 = (wxDC *) 0 ;
14882 PyObject *arg2 = (PyObject *) 0 ;
14883 PyObject *arg3 = (PyObject *) 0 ;
14884 PyObject *arg4 = (PyObject *) 0 ;
14885 PyObject *result;
14886 PyObject * obj0 = 0 ;
14887 PyObject * obj1 = 0 ;
14888 PyObject * obj2 = 0 ;
14889 PyObject * obj3 = 0 ;
14890 char *kwnames[] = {
14891 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14892 };
14893
14894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14897 arg2 = obj1;
14898 arg3 = obj2;
14899 arg4 = obj3;
14900 {
14901 PyThreadState* __tstate = wxPyBeginAllowThreads();
14902 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14903
14904 wxPyEndAllowThreads(__tstate);
14905 if (PyErr_Occurred()) SWIG_fail;
14906 }
14907 resultobj = result;
14908 return resultobj;
14909 fail:
14910 return NULL;
14911 }
14912
14913
14914 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14915 PyObject *resultobj;
14916 wxDC *arg1 = (wxDC *) 0 ;
14917 PyObject *arg2 = (PyObject *) 0 ;
14918 PyObject *arg3 = (PyObject *) 0 ;
14919 PyObject *arg4 = (PyObject *) 0 ;
14920 PyObject *result;
14921 PyObject * obj0 = 0 ;
14922 PyObject * obj1 = 0 ;
14923 PyObject * obj2 = 0 ;
14924 PyObject * obj3 = 0 ;
14925 char *kwnames[] = {
14926 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14927 };
14928
14929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14932 arg2 = obj1;
14933 arg3 = obj2;
14934 arg4 = obj3;
14935 {
14936 PyThreadState* __tstate = wxPyBeginAllowThreads();
14937 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14938
14939 wxPyEndAllowThreads(__tstate);
14940 if (PyErr_Occurred()) SWIG_fail;
14941 }
14942 resultobj = result;
14943 return resultobj;
14944 fail:
14945 return NULL;
14946 }
14947
14948
14949 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14950 PyObject *resultobj;
14951 wxDC *arg1 = (wxDC *) 0 ;
14952 PyObject *arg2 = (PyObject *) 0 ;
14953 PyObject *arg3 = (PyObject *) 0 ;
14954 PyObject *arg4 = (PyObject *) 0 ;
14955 PyObject *result;
14956 PyObject * obj0 = 0 ;
14957 PyObject * obj1 = 0 ;
14958 PyObject * obj2 = 0 ;
14959 PyObject * obj3 = 0 ;
14960 char *kwnames[] = {
14961 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14962 };
14963
14964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14967 arg2 = obj1;
14968 arg3 = obj2;
14969 arg4 = obj3;
14970 {
14971 PyThreadState* __tstate = wxPyBeginAllowThreads();
14972 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14973
14974 wxPyEndAllowThreads(__tstate);
14975 if (PyErr_Occurred()) SWIG_fail;
14976 }
14977 resultobj = result;
14978 return resultobj;
14979 fail:
14980 return NULL;
14981 }
14982
14983
14984 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14985 PyObject *resultobj;
14986 wxDC *arg1 = (wxDC *) 0 ;
14987 PyObject *arg2 = (PyObject *) 0 ;
14988 PyObject *arg3 = (PyObject *) 0 ;
14989 PyObject *arg4 = (PyObject *) 0 ;
14990 PyObject *result;
14991 PyObject * obj0 = 0 ;
14992 PyObject * obj1 = 0 ;
14993 PyObject * obj2 = 0 ;
14994 PyObject * obj3 = 0 ;
14995 char *kwnames[] = {
14996 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14997 };
14998
14999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15002 arg2 = obj1;
15003 arg3 = obj2;
15004 arg4 = obj3;
15005 {
15006 PyThreadState* __tstate = wxPyBeginAllowThreads();
15007 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
15008
15009 wxPyEndAllowThreads(__tstate);
15010 if (PyErr_Occurred()) SWIG_fail;
15011 }
15012 resultobj = result;
15013 return resultobj;
15014 fail:
15015 return NULL;
15016 }
15017
15018
15019 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
15020 PyObject *resultobj;
15021 wxDC *arg1 = (wxDC *) 0 ;
15022 PyObject *arg2 = (PyObject *) 0 ;
15023 PyObject *arg3 = (PyObject *) 0 ;
15024 PyObject *arg4 = (PyObject *) 0 ;
15025 PyObject *result;
15026 PyObject * obj0 = 0 ;
15027 PyObject * obj1 = 0 ;
15028 PyObject * obj2 = 0 ;
15029 PyObject * obj3 = 0 ;
15030 char *kwnames[] = {
15031 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15032 };
15033
15034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15037 arg2 = obj1;
15038 arg3 = obj2;
15039 arg4 = obj3;
15040 {
15041 PyThreadState* __tstate = wxPyBeginAllowThreads();
15042 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
15043
15044 wxPyEndAllowThreads(__tstate);
15045 if (PyErr_Occurred()) SWIG_fail;
15046 }
15047 resultobj = result;
15048 return resultobj;
15049 fail:
15050 return NULL;
15051 }
15052
15053
15054 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
15055 PyObject *resultobj;
15056 wxDC *arg1 = (wxDC *) 0 ;
15057 PyObject *arg2 = (PyObject *) 0 ;
15058 PyObject *arg3 = (PyObject *) 0 ;
15059 PyObject *arg4 = (PyObject *) 0 ;
15060 PyObject *arg5 = (PyObject *) 0 ;
15061 PyObject *result;
15062 PyObject * obj0 = 0 ;
15063 PyObject * obj1 = 0 ;
15064 PyObject * obj2 = 0 ;
15065 PyObject * obj3 = 0 ;
15066 PyObject * obj4 = 0 ;
15067 char *kwnames[] = {
15068 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
15069 };
15070
15071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15074 arg2 = obj1;
15075 arg3 = obj2;
15076 arg4 = obj3;
15077 arg5 = obj4;
15078 {
15079 PyThreadState* __tstate = wxPyBeginAllowThreads();
15080 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
15081
15082 wxPyEndAllowThreads(__tstate);
15083 if (PyErr_Occurred()) SWIG_fail;
15084 }
15085 resultobj = result;
15086 return resultobj;
15087 fail:
15088 return NULL;
15089 }
15090
15091
15092 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
15093 PyObject *obj;
15094 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15095 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15096 Py_INCREF(obj);
15097 return Py_BuildValue((char *)"");
15098 }
15099 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15100 PyObject *resultobj;
15101 wxMemoryDC *result;
15102 char *kwnames[] = {
15103 NULL
15104 };
15105
15106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15107 {
15108 PyThreadState* __tstate = wxPyBeginAllowThreads();
15109 result = (wxMemoryDC *)new wxMemoryDC();
15110
15111 wxPyEndAllowThreads(__tstate);
15112 if (PyErr_Occurred()) SWIG_fail;
15113 }
15114 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15115 return resultobj;
15116 fail:
15117 return NULL;
15118 }
15119
15120
15121 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15122 PyObject *resultobj;
15123 wxDC *arg1 = (wxDC *) 0 ;
15124 wxMemoryDC *result;
15125 PyObject * obj0 = 0 ;
15126 char *kwnames[] = {
15127 (char *) "oldDC", NULL
15128 };
15129
15130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15133 {
15134 PyThreadState* __tstate = wxPyBeginAllowThreads();
15135 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15136
15137 wxPyEndAllowThreads(__tstate);
15138 if (PyErr_Occurred()) SWIG_fail;
15139 }
15140 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15141 return resultobj;
15142 fail:
15143 return NULL;
15144 }
15145
15146
15147 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
15148 PyObject *resultobj;
15149 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15150 wxBitmap *arg2 = 0 ;
15151 PyObject * obj0 = 0 ;
15152 PyObject * obj1 = 0 ;
15153 char *kwnames[] = {
15154 (char *) "self",(char *) "bitmap", NULL
15155 };
15156
15157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15160 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15161 SWIG_POINTER_EXCEPTION | 0)) == -1)
15162 SWIG_fail;
15163 if (arg2 == NULL) {
15164 PyErr_SetString(PyExc_TypeError,"null reference");
15165 SWIG_fail;
15166 }
15167 {
15168 PyThreadState* __tstate = wxPyBeginAllowThreads();
15169 (arg1)->SelectObject((wxBitmap const &)*arg2);
15170
15171 wxPyEndAllowThreads(__tstate);
15172 if (PyErr_Occurred()) SWIG_fail;
15173 }
15174 Py_INCREF(Py_None); resultobj = Py_None;
15175 return resultobj;
15176 fail:
15177 return NULL;
15178 }
15179
15180
15181 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
15182 PyObject *obj;
15183 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15184 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15185 Py_INCREF(obj);
15186 return Py_BuildValue((char *)"");
15187 }
15188 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
15189 PyObject *resultobj;
15190 wxDC *arg1 = (wxDC *) 0 ;
15191 wxBitmap *arg2 = 0 ;
15192 wxBufferedDC *result;
15193 PyObject * obj0 = 0 ;
15194 PyObject * obj1 = 0 ;
15195
15196 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15199 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15200 SWIG_POINTER_EXCEPTION | 0)) == -1)
15201 SWIG_fail;
15202 if (arg2 == NULL) {
15203 PyErr_SetString(PyExc_TypeError,"null reference");
15204 SWIG_fail;
15205 }
15206 {
15207 PyThreadState* __tstate = wxPyBeginAllowThreads();
15208 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15209
15210 wxPyEndAllowThreads(__tstate);
15211 if (PyErr_Occurred()) SWIG_fail;
15212 }
15213 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15214 return resultobj;
15215 fail:
15216 return NULL;
15217 }
15218
15219
15220 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
15221 PyObject *resultobj;
15222 wxDC *arg1 = (wxDC *) 0 ;
15223 wxSize *arg2 = 0 ;
15224 wxBufferedDC *result;
15225 wxSize temp2 ;
15226 PyObject * obj0 = 0 ;
15227 PyObject * obj1 = 0 ;
15228
15229 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15232 {
15233 arg2 = &temp2;
15234 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15235 }
15236 {
15237 PyThreadState* __tstate = wxPyBeginAllowThreads();
15238 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15239
15240 wxPyEndAllowThreads(__tstate);
15241 if (PyErr_Occurred()) SWIG_fail;
15242 }
15243 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15244 return resultobj;
15245 fail:
15246 return NULL;
15247 }
15248
15249
15250 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15251 int argc;
15252 PyObject *argv[3];
15253 int ii;
15254
15255 argc = PyObject_Length(args);
15256 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15257 argv[ii] = PyTuple_GetItem(args,ii);
15258 }
15259 if (argc == 2) {
15260 int _v;
15261 {
15262 void *ptr;
15263 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15264 _v = 0;
15265 PyErr_Clear();
15266 } else {
15267 _v = 1;
15268 }
15269 }
15270 if (_v) {
15271 {
15272 void *ptr;
15273 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15274 _v = 0;
15275 PyErr_Clear();
15276 } else {
15277 _v = 1;
15278 }
15279 }
15280 if (_v) {
15281 return _wrap_new_BufferedDC__SWIG_0(self,args);
15282 }
15283 }
15284 }
15285 if (argc == 2) {
15286 int _v;
15287 {
15288 void *ptr;
15289 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15290 _v = 0;
15291 PyErr_Clear();
15292 } else {
15293 _v = 1;
15294 }
15295 }
15296 if (_v) {
15297 {
15298 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15299 }
15300 if (_v) {
15301 return _wrap_new_BufferedDC__SWIG_1(self,args);
15302 }
15303 }
15304 }
15305
15306 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15307 return NULL;
15308 }
15309
15310
15311 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
15312 PyObject *resultobj;
15313 wxDC *arg1 = (wxDC *) 0 ;
15314 wxSize *arg2 = 0 ;
15315 wxBufferedDC *result;
15316 wxSize temp2 ;
15317 PyObject * obj0 = 0 ;
15318 PyObject * obj1 = 0 ;
15319
15320 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
15321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15323 {
15324 arg2 = &temp2;
15325 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15326 }
15327 {
15328 PyThreadState* __tstate = wxPyBeginAllowThreads();
15329 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15330
15331 wxPyEndAllowThreads(__tstate);
15332 if (PyErr_Occurred()) SWIG_fail;
15333 }
15334 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15335 return resultobj;
15336 fail:
15337 return NULL;
15338 }
15339
15340
15341 static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15342 PyObject *resultobj;
15343 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15344 PyObject * obj0 = 0 ;
15345 char *kwnames[] = {
15346 (char *) "self", NULL
15347 };
15348
15349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15352 {
15353 PyThreadState* __tstate = wxPyBeginAllowThreads();
15354 delete arg1;
15355
15356 wxPyEndAllowThreads(__tstate);
15357 if (PyErr_Occurred()) SWIG_fail;
15358 }
15359 Py_INCREF(Py_None); resultobj = Py_None;
15360 return resultobj;
15361 fail:
15362 return NULL;
15363 }
15364
15365
15366 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15367 PyObject *resultobj;
15368 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15369 PyObject * obj0 = 0 ;
15370 char *kwnames[] = {
15371 (char *) "self", NULL
15372 };
15373
15374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15377 {
15378 PyThreadState* __tstate = wxPyBeginAllowThreads();
15379 (arg1)->UnMask();
15380
15381 wxPyEndAllowThreads(__tstate);
15382 if (PyErr_Occurred()) SWIG_fail;
15383 }
15384 Py_INCREF(Py_None); resultobj = Py_None;
15385 return resultobj;
15386 fail:
15387 return NULL;
15388 }
15389
15390
15391 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15392 PyObject *obj;
15393 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15394 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15395 Py_INCREF(obj);
15396 return Py_BuildValue((char *)"");
15397 }
15398 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15399 PyObject *resultobj;
15400 wxWindow *arg1 = (wxWindow *) 0 ;
15401 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15402 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15403 wxBufferedPaintDC *result;
15404 PyObject * obj0 = 0 ;
15405 PyObject * obj1 = 0 ;
15406 char *kwnames[] = {
15407 (char *) "window",(char *) "buffer", NULL
15408 };
15409
15410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15413 if (obj1) {
15414 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15415 SWIG_POINTER_EXCEPTION | 0)) == -1)
15416 SWIG_fail;
15417 if (arg2 == NULL) {
15418 PyErr_SetString(PyExc_TypeError,"null reference");
15419 SWIG_fail;
15420 }
15421 }
15422 {
15423 PyThreadState* __tstate = wxPyBeginAllowThreads();
15424 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15425
15426 wxPyEndAllowThreads(__tstate);
15427 if (PyErr_Occurred()) SWIG_fail;
15428 }
15429 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15430 return resultobj;
15431 fail:
15432 return NULL;
15433 }
15434
15435
15436 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15437 PyObject *obj;
15438 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15439 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15440 Py_INCREF(obj);
15441 return Py_BuildValue((char *)"");
15442 }
15443 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15444 PyObject *resultobj;
15445 wxScreenDC *result;
15446 char *kwnames[] = {
15447 NULL
15448 };
15449
15450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15451 {
15452 PyThreadState* __tstate = wxPyBeginAllowThreads();
15453 result = (wxScreenDC *)new wxScreenDC();
15454
15455 wxPyEndAllowThreads(__tstate);
15456 if (PyErr_Occurred()) SWIG_fail;
15457 }
15458 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15459 return resultobj;
15460 fail:
15461 return NULL;
15462 }
15463
15464
15465 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15466 PyObject *resultobj;
15467 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15468 wxWindow *arg2 = (wxWindow *) 0 ;
15469 bool result;
15470 PyObject * obj0 = 0 ;
15471 PyObject * obj1 = 0 ;
15472 char *kwnames[] = {
15473 (char *) "self",(char *) "window", NULL
15474 };
15475
15476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15479 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15481 {
15482 PyThreadState* __tstate = wxPyBeginAllowThreads();
15483 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15484
15485 wxPyEndAllowThreads(__tstate);
15486 if (PyErr_Occurred()) SWIG_fail;
15487 }
15488 {
15489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15490 }
15491 return resultobj;
15492 fail:
15493 return NULL;
15494 }
15495
15496
15497 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15498 PyObject *resultobj;
15499 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15500 wxRect *arg2 = (wxRect *) NULL ;
15501 bool result;
15502 PyObject * obj0 = 0 ;
15503 PyObject * obj1 = 0 ;
15504 char *kwnames[] = {
15505 (char *) "self",(char *) "rect", NULL
15506 };
15507
15508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15511 if (obj1) {
15512 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15514 }
15515 {
15516 PyThreadState* __tstate = wxPyBeginAllowThreads();
15517 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15518
15519 wxPyEndAllowThreads(__tstate);
15520 if (PyErr_Occurred()) SWIG_fail;
15521 }
15522 {
15523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15524 }
15525 return resultobj;
15526 fail:
15527 return NULL;
15528 }
15529
15530
15531 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15532 PyObject *resultobj;
15533 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15534 bool result;
15535 PyObject * obj0 = 0 ;
15536 char *kwnames[] = {
15537 (char *) "self", NULL
15538 };
15539
15540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15543 {
15544 PyThreadState* __tstate = wxPyBeginAllowThreads();
15545 result = (bool)(arg1)->EndDrawingOnTop();
15546
15547 wxPyEndAllowThreads(__tstate);
15548 if (PyErr_Occurred()) SWIG_fail;
15549 }
15550 {
15551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15552 }
15553 return resultobj;
15554 fail:
15555 return NULL;
15556 }
15557
15558
15559 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15560 PyObject *obj;
15561 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15562 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15563 Py_INCREF(obj);
15564 return Py_BuildValue((char *)"");
15565 }
15566 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15567 PyObject *resultobj;
15568 wxWindow *arg1 = (wxWindow *) 0 ;
15569 wxClientDC *result;
15570 PyObject * obj0 = 0 ;
15571 char *kwnames[] = {
15572 (char *) "win", NULL
15573 };
15574
15575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15578 {
15579 PyThreadState* __tstate = wxPyBeginAllowThreads();
15580 result = (wxClientDC *)new wxClientDC(arg1);
15581
15582 wxPyEndAllowThreads(__tstate);
15583 if (PyErr_Occurred()) SWIG_fail;
15584 }
15585 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
15586 return resultobj;
15587 fail:
15588 return NULL;
15589 }
15590
15591
15592 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15593 PyObject *obj;
15594 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15595 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15596 Py_INCREF(obj);
15597 return Py_BuildValue((char *)"");
15598 }
15599 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15600 PyObject *resultobj;
15601 wxWindow *arg1 = (wxWindow *) 0 ;
15602 wxPaintDC *result;
15603 PyObject * obj0 = 0 ;
15604 char *kwnames[] = {
15605 (char *) "win", NULL
15606 };
15607
15608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15611 {
15612 PyThreadState* __tstate = wxPyBeginAllowThreads();
15613 result = (wxPaintDC *)new wxPaintDC(arg1);
15614
15615 wxPyEndAllowThreads(__tstate);
15616 if (PyErr_Occurred()) SWIG_fail;
15617 }
15618 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
15619 return resultobj;
15620 fail:
15621 return NULL;
15622 }
15623
15624
15625 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15626 PyObject *obj;
15627 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15628 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15629 Py_INCREF(obj);
15630 return Py_BuildValue((char *)"");
15631 }
15632 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15633 PyObject *resultobj;
15634 wxWindow *arg1 = (wxWindow *) 0 ;
15635 wxWindowDC *result;
15636 PyObject * obj0 = 0 ;
15637 char *kwnames[] = {
15638 (char *) "win", NULL
15639 };
15640
15641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15644 {
15645 PyThreadState* __tstate = wxPyBeginAllowThreads();
15646 result = (wxWindowDC *)new wxWindowDC(arg1);
15647
15648 wxPyEndAllowThreads(__tstate);
15649 if (PyErr_Occurred()) SWIG_fail;
15650 }
15651 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
15652 return resultobj;
15653 fail:
15654 return NULL;
15655 }
15656
15657
15658 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
15659 PyObject *obj;
15660 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15661 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15662 Py_INCREF(obj);
15663 return Py_BuildValue((char *)"");
15664 }
15665 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15666 PyObject *resultobj;
15667 wxDC *arg1 = 0 ;
15668 bool arg2 ;
15669 wxMirrorDC *result;
15670 PyObject * obj0 = 0 ;
15671 PyObject * obj1 = 0 ;
15672 char *kwnames[] = {
15673 (char *) "dc",(char *) "mirror", NULL
15674 };
15675
15676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15678 SWIG_POINTER_EXCEPTION | 0)) == -1)
15679 SWIG_fail;
15680 if (arg1 == NULL) {
15681 PyErr_SetString(PyExc_TypeError,"null reference");
15682 SWIG_fail;
15683 }
15684 arg2 = (bool) SWIG_AsBool(obj1);
15685 if (PyErr_Occurred()) SWIG_fail;
15686 {
15687 PyThreadState* __tstate = wxPyBeginAllowThreads();
15688 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15689
15690 wxPyEndAllowThreads(__tstate);
15691 if (PyErr_Occurred()) SWIG_fail;
15692 }
15693 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
15694 return resultobj;
15695 fail:
15696 return NULL;
15697 }
15698
15699
15700 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
15701 PyObject *obj;
15702 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15703 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15704 Py_INCREF(obj);
15705 return Py_BuildValue((char *)"");
15706 }
15707 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15708 PyObject *resultobj;
15709 wxPrintData *arg1 = 0 ;
15710 wxPostScriptDC *result;
15711 PyObject * obj0 = 0 ;
15712 char *kwnames[] = {
15713 (char *) "printData", NULL
15714 };
15715
15716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15718 SWIG_POINTER_EXCEPTION | 0)) == -1)
15719 SWIG_fail;
15720 if (arg1 == NULL) {
15721 PyErr_SetString(PyExc_TypeError,"null reference");
15722 SWIG_fail;
15723 }
15724 {
15725 PyThreadState* __tstate = wxPyBeginAllowThreads();
15726 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15727
15728 wxPyEndAllowThreads(__tstate);
15729 if (PyErr_Occurred()) SWIG_fail;
15730 }
15731 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
15732 return resultobj;
15733 fail:
15734 return NULL;
15735 }
15736
15737
15738 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15739 PyObject *resultobj;
15740 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15741 wxPrintData *result;
15742 PyObject * obj0 = 0 ;
15743 char *kwnames[] = {
15744 (char *) "self", NULL
15745 };
15746
15747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15750 {
15751 PyThreadState* __tstate = wxPyBeginAllowThreads();
15752 {
15753 wxPrintData &_result_ref = (arg1)->GetPrintData();
15754 result = (wxPrintData *) &_result_ref;
15755 }
15756
15757 wxPyEndAllowThreads(__tstate);
15758 if (PyErr_Occurred()) SWIG_fail;
15759 }
15760 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
15761 return resultobj;
15762 fail:
15763 return NULL;
15764 }
15765
15766
15767 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15768 PyObject *resultobj;
15769 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15770 wxPrintData *arg2 = 0 ;
15771 PyObject * obj0 = 0 ;
15772 PyObject * obj1 = 0 ;
15773 char *kwnames[] = {
15774 (char *) "self",(char *) "data", NULL
15775 };
15776
15777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15780 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
15781 SWIG_POINTER_EXCEPTION | 0)) == -1)
15782 SWIG_fail;
15783 if (arg2 == NULL) {
15784 PyErr_SetString(PyExc_TypeError,"null reference");
15785 SWIG_fail;
15786 }
15787 {
15788 PyThreadState* __tstate = wxPyBeginAllowThreads();
15789 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15790
15791 wxPyEndAllowThreads(__tstate);
15792 if (PyErr_Occurred()) SWIG_fail;
15793 }
15794 Py_INCREF(Py_None); resultobj = Py_None;
15795 return resultobj;
15796 fail:
15797 return NULL;
15798 }
15799
15800
15801 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15802 PyObject *resultobj;
15803 int arg1 ;
15804 PyObject * obj0 = 0 ;
15805 char *kwnames[] = {
15806 (char *) "ppi", NULL
15807 };
15808
15809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15810 arg1 = (int) SWIG_AsInt(obj0);
15811 if (PyErr_Occurred()) SWIG_fail;
15812 {
15813 PyThreadState* __tstate = wxPyBeginAllowThreads();
15814 wxPostScriptDC::SetResolution(arg1);
15815
15816 wxPyEndAllowThreads(__tstate);
15817 if (PyErr_Occurred()) SWIG_fail;
15818 }
15819 Py_INCREF(Py_None); resultobj = Py_None;
15820 return resultobj;
15821 fail:
15822 return NULL;
15823 }
15824
15825
15826 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15827 PyObject *resultobj;
15828 int result;
15829 char *kwnames[] = {
15830 NULL
15831 };
15832
15833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15834 {
15835 PyThreadState* __tstate = wxPyBeginAllowThreads();
15836 result = (int)wxPostScriptDC::GetResolution();
15837
15838 wxPyEndAllowThreads(__tstate);
15839 if (PyErr_Occurred()) SWIG_fail;
15840 }
15841 resultobj = SWIG_FromInt((int)result);
15842 return resultobj;
15843 fail:
15844 return NULL;
15845 }
15846
15847
15848 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15849 PyObject *obj;
15850 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15851 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15852 Py_INCREF(obj);
15853 return Py_BuildValue((char *)"");
15854 }
15855 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15856 PyObject *resultobj;
15857 wxString const &arg1_defvalue = wxPyEmptyString ;
15858 wxString *arg1 = (wxString *) &arg1_defvalue ;
15859 wxMetaFile *result;
15860 bool temp1 = False ;
15861 PyObject * obj0 = 0 ;
15862 char *kwnames[] = {
15863 (char *) "filename", NULL
15864 };
15865
15866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15867 if (obj0) {
15868 {
15869 arg1 = wxString_in_helper(obj0);
15870 if (arg1 == NULL) SWIG_fail;
15871 temp1 = True;
15872 }
15873 }
15874 {
15875 PyThreadState* __tstate = wxPyBeginAllowThreads();
15876 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15877
15878 wxPyEndAllowThreads(__tstate);
15879 if (PyErr_Occurred()) SWIG_fail;
15880 }
15881 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
15882 {
15883 if (temp1)
15884 delete arg1;
15885 }
15886 return resultobj;
15887 fail:
15888 {
15889 if (temp1)
15890 delete arg1;
15891 }
15892 return NULL;
15893 }
15894
15895
15896 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
15897 PyObject *obj;
15898 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15899 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15900 Py_INCREF(obj);
15901 return Py_BuildValue((char *)"");
15902 }
15903 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15904 PyObject *resultobj;
15905 wxString const &arg1_defvalue = wxPyEmptyString ;
15906 wxString *arg1 = (wxString *) &arg1_defvalue ;
15907 int arg2 = (int) 0 ;
15908 int arg3 = (int) 0 ;
15909 wxString const &arg4_defvalue = wxPyEmptyString ;
15910 wxString *arg4 = (wxString *) &arg4_defvalue ;
15911 wxMetaFileDC *result;
15912 bool temp1 = False ;
15913 bool temp4 = False ;
15914 PyObject * obj0 = 0 ;
15915 PyObject * obj1 = 0 ;
15916 PyObject * obj2 = 0 ;
15917 PyObject * obj3 = 0 ;
15918 char *kwnames[] = {
15919 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
15920 };
15921
15922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15923 if (obj0) {
15924 {
15925 arg1 = wxString_in_helper(obj0);
15926 if (arg1 == NULL) SWIG_fail;
15927 temp1 = True;
15928 }
15929 }
15930 if (obj1) {
15931 arg2 = (int) SWIG_AsInt(obj1);
15932 if (PyErr_Occurred()) SWIG_fail;
15933 }
15934 if (obj2) {
15935 arg3 = (int) SWIG_AsInt(obj2);
15936 if (PyErr_Occurred()) SWIG_fail;
15937 }
15938 if (obj3) {
15939 {
15940 arg4 = wxString_in_helper(obj3);
15941 if (arg4 == NULL) SWIG_fail;
15942 temp4 = True;
15943 }
15944 }
15945 {
15946 PyThreadState* __tstate = wxPyBeginAllowThreads();
15947 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
15948
15949 wxPyEndAllowThreads(__tstate);
15950 if (PyErr_Occurred()) SWIG_fail;
15951 }
15952 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
15953 {
15954 if (temp1)
15955 delete arg1;
15956 }
15957 {
15958 if (temp4)
15959 delete arg4;
15960 }
15961 return resultobj;
15962 fail:
15963 {
15964 if (temp1)
15965 delete arg1;
15966 }
15967 {
15968 if (temp4)
15969 delete arg4;
15970 }
15971 return NULL;
15972 }
15973
15974
15975 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
15976 PyObject *obj;
15977 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15978 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
15979 Py_INCREF(obj);
15980 return Py_BuildValue((char *)"");
15981 }
15982 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15983 PyObject *resultobj;
15984 wxPrintData *arg1 = 0 ;
15985 wxPrinterDC *result;
15986 PyObject * obj0 = 0 ;
15987 char *kwnames[] = {
15988 (char *) "printData", NULL
15989 };
15990
15991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
15992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15993 SWIG_POINTER_EXCEPTION | 0)) == -1)
15994 SWIG_fail;
15995 if (arg1 == NULL) {
15996 PyErr_SetString(PyExc_TypeError,"null reference");
15997 SWIG_fail;
15998 }
15999 {
16000 PyThreadState* __tstate = wxPyBeginAllowThreads();
16001 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16002
16003 wxPyEndAllowThreads(__tstate);
16004 if (PyErr_Occurred()) SWIG_fail;
16005 }
16006 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
16007 return resultobj;
16008 fail:
16009 return NULL;
16010 }
16011
16012
16013 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
16014 PyObject *obj;
16015 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16016 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16017 Py_INCREF(obj);
16018 return Py_BuildValue((char *)"");
16019 }
16020 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16021 PyObject *resultobj;
16022 int arg1 ;
16023 int arg2 ;
16024 int arg3 = (int) True ;
16025 int arg4 = (int) 1 ;
16026 wxImageList *result;
16027 PyObject * obj0 = 0 ;
16028 PyObject * obj1 = 0 ;
16029 PyObject * obj2 = 0 ;
16030 PyObject * obj3 = 0 ;
16031 char *kwnames[] = {
16032 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16033 };
16034
16035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16036 arg1 = (int) SWIG_AsInt(obj0);
16037 if (PyErr_Occurred()) SWIG_fail;
16038 arg2 = (int) SWIG_AsInt(obj1);
16039 if (PyErr_Occurred()) SWIG_fail;
16040 if (obj2) {
16041 arg3 = (int) SWIG_AsInt(obj2);
16042 if (PyErr_Occurred()) SWIG_fail;
16043 }
16044 if (obj3) {
16045 arg4 = (int) SWIG_AsInt(obj3);
16046 if (PyErr_Occurred()) SWIG_fail;
16047 }
16048 {
16049 PyThreadState* __tstate = wxPyBeginAllowThreads();
16050 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16051
16052 wxPyEndAllowThreads(__tstate);
16053 if (PyErr_Occurred()) SWIG_fail;
16054 }
16055 {
16056 resultobj = wxPyMake_wxObject(result);
16057 }
16058 return resultobj;
16059 fail:
16060 return NULL;
16061 }
16062
16063
16064 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16065 PyObject *resultobj;
16066 wxImageList *arg1 = (wxImageList *) 0 ;
16067 PyObject * obj0 = 0 ;
16068 char *kwnames[] = {
16069 (char *) "self", NULL
16070 };
16071
16072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16075 {
16076 PyThreadState* __tstate = wxPyBeginAllowThreads();
16077 delete arg1;
16078
16079 wxPyEndAllowThreads(__tstate);
16080 if (PyErr_Occurred()) SWIG_fail;
16081 }
16082 Py_INCREF(Py_None); resultobj = Py_None;
16083 return resultobj;
16084 fail:
16085 return NULL;
16086 }
16087
16088
16089 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16090 PyObject *resultobj;
16091 wxImageList *arg1 = (wxImageList *) 0 ;
16092 wxBitmap *arg2 = 0 ;
16093 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16094 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16095 int result;
16096 PyObject * obj0 = 0 ;
16097 PyObject * obj1 = 0 ;
16098 PyObject * obj2 = 0 ;
16099 char *kwnames[] = {
16100 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16101 };
16102
16103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16106 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16107 SWIG_POINTER_EXCEPTION | 0)) == -1)
16108 SWIG_fail;
16109 if (arg2 == NULL) {
16110 PyErr_SetString(PyExc_TypeError,"null reference");
16111 SWIG_fail;
16112 }
16113 if (obj2) {
16114 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16115 SWIG_POINTER_EXCEPTION | 0)) == -1)
16116 SWIG_fail;
16117 if (arg3 == NULL) {
16118 PyErr_SetString(PyExc_TypeError,"null reference");
16119 SWIG_fail;
16120 }
16121 }
16122 {
16123 PyThreadState* __tstate = wxPyBeginAllowThreads();
16124 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16125
16126 wxPyEndAllowThreads(__tstate);
16127 if (PyErr_Occurred()) SWIG_fail;
16128 }
16129 resultobj = SWIG_FromInt((int)result);
16130 return resultobj;
16131 fail:
16132 return NULL;
16133 }
16134
16135
16136 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16137 PyObject *resultobj;
16138 wxImageList *arg1 = (wxImageList *) 0 ;
16139 wxBitmap *arg2 = 0 ;
16140 wxColour *arg3 = 0 ;
16141 int result;
16142 wxColour temp3 ;
16143 PyObject * obj0 = 0 ;
16144 PyObject * obj1 = 0 ;
16145 PyObject * obj2 = 0 ;
16146 char *kwnames[] = {
16147 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16148 };
16149
16150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16153 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16154 SWIG_POINTER_EXCEPTION | 0)) == -1)
16155 SWIG_fail;
16156 if (arg2 == NULL) {
16157 PyErr_SetString(PyExc_TypeError,"null reference");
16158 SWIG_fail;
16159 }
16160 {
16161 arg3 = &temp3;
16162 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16163 }
16164 {
16165 PyThreadState* __tstate = wxPyBeginAllowThreads();
16166 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16167
16168 wxPyEndAllowThreads(__tstate);
16169 if (PyErr_Occurred()) SWIG_fail;
16170 }
16171 resultobj = SWIG_FromInt((int)result);
16172 return resultobj;
16173 fail:
16174 return NULL;
16175 }
16176
16177
16178 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16179 PyObject *resultobj;
16180 wxImageList *arg1 = (wxImageList *) 0 ;
16181 wxIcon *arg2 = 0 ;
16182 int result;
16183 PyObject * obj0 = 0 ;
16184 PyObject * obj1 = 0 ;
16185 char *kwnames[] = {
16186 (char *) "self",(char *) "icon", NULL
16187 };
16188
16189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16192 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16193 SWIG_POINTER_EXCEPTION | 0)) == -1)
16194 SWIG_fail;
16195 if (arg2 == NULL) {
16196 PyErr_SetString(PyExc_TypeError,"null reference");
16197 SWIG_fail;
16198 }
16199 {
16200 PyThreadState* __tstate = wxPyBeginAllowThreads();
16201 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16202
16203 wxPyEndAllowThreads(__tstate);
16204 if (PyErr_Occurred()) SWIG_fail;
16205 }
16206 resultobj = SWIG_FromInt((int)result);
16207 return resultobj;
16208 fail:
16209 return NULL;
16210 }
16211
16212
16213 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16214 PyObject *resultobj;
16215 wxImageList *arg1 = (wxImageList *) 0 ;
16216 int arg2 ;
16217 wxBitmap *arg3 = 0 ;
16218 bool result;
16219 PyObject * obj0 = 0 ;
16220 PyObject * obj1 = 0 ;
16221 PyObject * obj2 = 0 ;
16222 char *kwnames[] = {
16223 (char *) "self",(char *) "index",(char *) "bitmap", NULL
16224 };
16225
16226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
16227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16229 arg2 = (int) SWIG_AsInt(obj1);
16230 if (PyErr_Occurred()) SWIG_fail;
16231 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16232 SWIG_POINTER_EXCEPTION | 0)) == -1)
16233 SWIG_fail;
16234 if (arg3 == NULL) {
16235 PyErr_SetString(PyExc_TypeError,"null reference");
16236 SWIG_fail;
16237 }
16238 {
16239 PyThreadState* __tstate = wxPyBeginAllowThreads();
16240 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
16241
16242 wxPyEndAllowThreads(__tstate);
16243 if (PyErr_Occurred()) SWIG_fail;
16244 }
16245 {
16246 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16247 }
16248 return resultobj;
16249 fail:
16250 return NULL;
16251 }
16252
16253
16254 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16255 PyObject *resultobj;
16256 wxImageList *arg1 = (wxImageList *) 0 ;
16257 int arg2 ;
16258 wxDC *arg3 = 0 ;
16259 int arg4 ;
16260 int arg5 ;
16261 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16262 bool arg7 = (bool) (bool)False ;
16263 bool result;
16264 PyObject * obj0 = 0 ;
16265 PyObject * obj1 = 0 ;
16266 PyObject * obj2 = 0 ;
16267 PyObject * obj3 = 0 ;
16268 PyObject * obj4 = 0 ;
16269 PyObject * obj5 = 0 ;
16270 PyObject * obj6 = 0 ;
16271 char *kwnames[] = {
16272 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16273 };
16274
16275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16278 arg2 = (int) SWIG_AsInt(obj1);
16279 if (PyErr_Occurred()) SWIG_fail;
16280 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16281 SWIG_POINTER_EXCEPTION | 0)) == -1)
16282 SWIG_fail;
16283 if (arg3 == NULL) {
16284 PyErr_SetString(PyExc_TypeError,"null reference");
16285 SWIG_fail;
16286 }
16287 arg4 = (int) SWIG_AsInt(obj3);
16288 if (PyErr_Occurred()) SWIG_fail;
16289 arg5 = (int) SWIG_AsInt(obj4);
16290 if (PyErr_Occurred()) SWIG_fail;
16291 if (obj5) {
16292 arg6 = (int) SWIG_AsInt(obj5);
16293 if (PyErr_Occurred()) SWIG_fail;
16294 }
16295 if (obj6) {
16296 arg7 = (bool const) SWIG_AsBool(obj6);
16297 if (PyErr_Occurred()) SWIG_fail;
16298 }
16299 {
16300 PyThreadState* __tstate = wxPyBeginAllowThreads();
16301 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16302
16303 wxPyEndAllowThreads(__tstate);
16304 if (PyErr_Occurred()) SWIG_fail;
16305 }
16306 {
16307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16308 }
16309 return resultobj;
16310 fail:
16311 return NULL;
16312 }
16313
16314
16315 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16316 PyObject *resultobj;
16317 wxImageList *arg1 = (wxImageList *) 0 ;
16318 int result;
16319 PyObject * obj0 = 0 ;
16320 char *kwnames[] = {
16321 (char *) "self", NULL
16322 };
16323
16324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16327 {
16328 PyThreadState* __tstate = wxPyBeginAllowThreads();
16329 result = (int)(arg1)->GetImageCount();
16330
16331 wxPyEndAllowThreads(__tstate);
16332 if (PyErr_Occurred()) SWIG_fail;
16333 }
16334 resultobj = SWIG_FromInt((int)result);
16335 return resultobj;
16336 fail:
16337 return NULL;
16338 }
16339
16340
16341 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
16342 PyObject *resultobj;
16343 wxImageList *arg1 = (wxImageList *) 0 ;
16344 int arg2 ;
16345 bool result;
16346 PyObject * obj0 = 0 ;
16347 PyObject * obj1 = 0 ;
16348 char *kwnames[] = {
16349 (char *) "self",(char *) "index", NULL
16350 };
16351
16352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16355 arg2 = (int) SWIG_AsInt(obj1);
16356 if (PyErr_Occurred()) SWIG_fail;
16357 {
16358 PyThreadState* __tstate = wxPyBeginAllowThreads();
16359 result = (bool)(arg1)->Remove(arg2);
16360
16361 wxPyEndAllowThreads(__tstate);
16362 if (PyErr_Occurred()) SWIG_fail;
16363 }
16364 {
16365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16366 }
16367 return resultobj;
16368 fail:
16369 return NULL;
16370 }
16371
16372
16373 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
16374 PyObject *resultobj;
16375 wxImageList *arg1 = (wxImageList *) 0 ;
16376 bool result;
16377 PyObject * obj0 = 0 ;
16378 char *kwnames[] = {
16379 (char *) "self", NULL
16380 };
16381
16382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16385 {
16386 PyThreadState* __tstate = wxPyBeginAllowThreads();
16387 result = (bool)(arg1)->RemoveAll();
16388
16389 wxPyEndAllowThreads(__tstate);
16390 if (PyErr_Occurred()) SWIG_fail;
16391 }
16392 {
16393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16394 }
16395 return resultobj;
16396 fail:
16397 return NULL;
16398 }
16399
16400
16401 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16402 PyObject *resultobj;
16403 wxImageList *arg1 = (wxImageList *) 0 ;
16404 int arg2 ;
16405 int *arg3 = 0 ;
16406 int *arg4 = 0 ;
16407 int temp3 ;
16408 int temp4 ;
16409 PyObject * obj0 = 0 ;
16410 PyObject * obj1 = 0 ;
16411 char *kwnames[] = {
16412 (char *) "self",(char *) "index", NULL
16413 };
16414
16415 arg3 = &temp3;
16416 arg4 = &temp4;
16417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16420 arg2 = (int) SWIG_AsInt(obj1);
16421 if (PyErr_Occurred()) SWIG_fail;
16422 {
16423 PyThreadState* __tstate = wxPyBeginAllowThreads();
16424 (arg1)->GetSize(arg2,*arg3,*arg4);
16425
16426 wxPyEndAllowThreads(__tstate);
16427 if (PyErr_Occurred()) SWIG_fail;
16428 }
16429 Py_INCREF(Py_None); resultobj = Py_None;
16430 {
16431 PyObject *o = PyInt_FromLong((long) (*arg3));
16432 resultobj = t_output_helper(resultobj,o);
16433 }
16434 {
16435 PyObject *o = PyInt_FromLong((long) (*arg4));
16436 resultobj = t_output_helper(resultobj,o);
16437 }
16438 return resultobj;
16439 fail:
16440 return NULL;
16441 }
16442
16443
16444 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
16445 PyObject *obj;
16446 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16447 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16448 Py_INCREF(obj);
16449 return Py_BuildValue((char *)"");
16450 }
16451 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
16452 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16453 return 1;
16454 }
16455
16456
16457 static PyObject *_wrap_NORMAL_FONT_get() {
16458 PyObject *pyobj;
16459
16460 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
16461 return pyobj;
16462 }
16463
16464
16465 static int _wrap_SMALL_FONT_set(PyObject *_val) {
16466 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16467 return 1;
16468 }
16469
16470
16471 static PyObject *_wrap_SMALL_FONT_get() {
16472 PyObject *pyobj;
16473
16474 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
16475 return pyobj;
16476 }
16477
16478
16479 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
16480 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16481 return 1;
16482 }
16483
16484
16485 static PyObject *_wrap_ITALIC_FONT_get() {
16486 PyObject *pyobj;
16487
16488 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
16489 return pyobj;
16490 }
16491
16492
16493 static int _wrap_SWISS_FONT_set(PyObject *_val) {
16494 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16495 return 1;
16496 }
16497
16498
16499 static PyObject *_wrap_SWISS_FONT_get() {
16500 PyObject *pyobj;
16501
16502 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
16503 return pyobj;
16504 }
16505
16506
16507 static int _wrap_RED_PEN_set(PyObject *_val) {
16508 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16509 return 1;
16510 }
16511
16512
16513 static PyObject *_wrap_RED_PEN_get() {
16514 PyObject *pyobj;
16515
16516 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
16517 return pyobj;
16518 }
16519
16520
16521 static int _wrap_CYAN_PEN_set(PyObject *_val) {
16522 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16523 return 1;
16524 }
16525
16526
16527 static PyObject *_wrap_CYAN_PEN_get() {
16528 PyObject *pyobj;
16529
16530 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
16531 return pyobj;
16532 }
16533
16534
16535 static int _wrap_GREEN_PEN_set(PyObject *_val) {
16536 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16537 return 1;
16538 }
16539
16540
16541 static PyObject *_wrap_GREEN_PEN_get() {
16542 PyObject *pyobj;
16543
16544 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
16545 return pyobj;
16546 }
16547
16548
16549 static int _wrap_BLACK_PEN_set(PyObject *_val) {
16550 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16551 return 1;
16552 }
16553
16554
16555 static PyObject *_wrap_BLACK_PEN_get() {
16556 PyObject *pyobj;
16557
16558 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
16559 return pyobj;
16560 }
16561
16562
16563 static int _wrap_WHITE_PEN_set(PyObject *_val) {
16564 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16565 return 1;
16566 }
16567
16568
16569 static PyObject *_wrap_WHITE_PEN_get() {
16570 PyObject *pyobj;
16571
16572 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
16573 return pyobj;
16574 }
16575
16576
16577 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
16578 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16579 return 1;
16580 }
16581
16582
16583 static PyObject *_wrap_TRANSPARENT_PEN_get() {
16584 PyObject *pyobj;
16585
16586 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
16587 return pyobj;
16588 }
16589
16590
16591 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
16592 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16593 return 1;
16594 }
16595
16596
16597 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16598 PyObject *pyobj;
16599
16600 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
16601 return pyobj;
16602 }
16603
16604
16605 static int _wrap_GREY_PEN_set(PyObject *_val) {
16606 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16607 return 1;
16608 }
16609
16610
16611 static PyObject *_wrap_GREY_PEN_get() {
16612 PyObject *pyobj;
16613
16614 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
16615 return pyobj;
16616 }
16617
16618
16619 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
16620 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16621 return 1;
16622 }
16623
16624
16625 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16626 PyObject *pyobj;
16627
16628 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16629 return pyobj;
16630 }
16631
16632
16633 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
16634 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16635 return 1;
16636 }
16637
16638
16639 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16640 PyObject *pyobj;
16641
16642 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16643 return pyobj;
16644 }
16645
16646
16647 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
16648 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16649 return 1;
16650 }
16651
16652
16653 static PyObject *_wrap_BLUE_BRUSH_get() {
16654 PyObject *pyobj;
16655
16656 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16657 return pyobj;
16658 }
16659
16660
16661 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
16662 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16663 return 1;
16664 }
16665
16666
16667 static PyObject *_wrap_GREEN_BRUSH_get() {
16668 PyObject *pyobj;
16669
16670 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16671 return pyobj;
16672 }
16673
16674
16675 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
16676 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16677 return 1;
16678 }
16679
16680
16681 static PyObject *_wrap_WHITE_BRUSH_get() {
16682 PyObject *pyobj;
16683
16684 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16685 return pyobj;
16686 }
16687
16688
16689 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
16690 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16691 return 1;
16692 }
16693
16694
16695 static PyObject *_wrap_BLACK_BRUSH_get() {
16696 PyObject *pyobj;
16697
16698 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
16699 return pyobj;
16700 }
16701
16702
16703 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
16704 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16705 return 1;
16706 }
16707
16708
16709 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16710 PyObject *pyobj;
16711
16712 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
16713 return pyobj;
16714 }
16715
16716
16717 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
16718 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16719 return 1;
16720 }
16721
16722
16723 static PyObject *_wrap_CYAN_BRUSH_get() {
16724 PyObject *pyobj;
16725
16726 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16727 return pyobj;
16728 }
16729
16730
16731 static int _wrap_RED_BRUSH_set(PyObject *_val) {
16732 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16733 return 1;
16734 }
16735
16736
16737 static PyObject *_wrap_RED_BRUSH_get() {
16738 PyObject *pyobj;
16739
16740 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
16741 return pyobj;
16742 }
16743
16744
16745 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
16746 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
16747 return 1;
16748 }
16749
16750
16751 static PyObject *_wrap_GREY_BRUSH_get() {
16752 PyObject *pyobj;
16753
16754 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16755 return pyobj;
16756 }
16757
16758
16759 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
16760 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
16761 return 1;
16762 }
16763
16764
16765 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
16766 PyObject *pyobj;
16767
16768 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16769 return pyobj;
16770 }
16771
16772
16773 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
16774 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
16775 return 1;
16776 }
16777
16778
16779 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
16780 PyObject *pyobj;
16781
16782 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16783 return pyobj;
16784 }
16785
16786
16787 static int _wrap_BLACK_set(PyObject *_val) {
16788 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
16789 return 1;
16790 }
16791
16792
16793 static PyObject *_wrap_BLACK_get() {
16794 PyObject *pyobj;
16795
16796 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
16797 return pyobj;
16798 }
16799
16800
16801 static int _wrap_WHITE_set(PyObject *_val) {
16802 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
16803 return 1;
16804 }
16805
16806
16807 static PyObject *_wrap_WHITE_get() {
16808 PyObject *pyobj;
16809
16810 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
16811 return pyobj;
16812 }
16813
16814
16815 static int _wrap_RED_set(PyObject *_val) {
16816 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
16817 return 1;
16818 }
16819
16820
16821 static PyObject *_wrap_RED_get() {
16822 PyObject *pyobj;
16823
16824 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
16825 return pyobj;
16826 }
16827
16828
16829 static int _wrap_BLUE_set(PyObject *_val) {
16830 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
16831 return 1;
16832 }
16833
16834
16835 static PyObject *_wrap_BLUE_get() {
16836 PyObject *pyobj;
16837
16838 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
16839 return pyobj;
16840 }
16841
16842
16843 static int _wrap_GREEN_set(PyObject *_val) {
16844 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
16845 return 1;
16846 }
16847
16848
16849 static PyObject *_wrap_GREEN_get() {
16850 PyObject *pyobj;
16851
16852 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
16853 return pyobj;
16854 }
16855
16856
16857 static int _wrap_CYAN_set(PyObject *_val) {
16858 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
16859 return 1;
16860 }
16861
16862
16863 static PyObject *_wrap_CYAN_get() {
16864 PyObject *pyobj;
16865
16866 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
16867 return pyobj;
16868 }
16869
16870
16871 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
16872 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
16873 return 1;
16874 }
16875
16876
16877 static PyObject *_wrap_LIGHT_GREY_get() {
16878 PyObject *pyobj;
16879
16880 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
16881 return pyobj;
16882 }
16883
16884
16885 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
16886 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
16887 return 1;
16888 }
16889
16890
16891 static PyObject *_wrap_STANDARD_CURSOR_get() {
16892 PyObject *pyobj;
16893
16894 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
16895 return pyobj;
16896 }
16897
16898
16899 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
16900 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
16901 return 1;
16902 }
16903
16904
16905 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
16906 PyObject *pyobj;
16907
16908 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16909 return pyobj;
16910 }
16911
16912
16913 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
16914 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
16915 return 1;
16916 }
16917
16918
16919 static PyObject *_wrap_CROSS_CURSOR_get() {
16920 PyObject *pyobj;
16921
16922 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16923 return pyobj;
16924 }
16925
16926
16927 static int _wrap_NullBitmap_set(PyObject *_val) {
16928 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
16929 return 1;
16930 }
16931
16932
16933 static PyObject *_wrap_NullBitmap_get() {
16934 PyObject *pyobj;
16935
16936 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
16937 return pyobj;
16938 }
16939
16940
16941 static int _wrap_NullIcon_set(PyObject *_val) {
16942 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
16943 return 1;
16944 }
16945
16946
16947 static PyObject *_wrap_NullIcon_get() {
16948 PyObject *pyobj;
16949
16950 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
16951 return pyobj;
16952 }
16953
16954
16955 static int _wrap_NullCursor_set(PyObject *_val) {
16956 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
16957 return 1;
16958 }
16959
16960
16961 static PyObject *_wrap_NullCursor_get() {
16962 PyObject *pyobj;
16963
16964 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
16965 return pyobj;
16966 }
16967
16968
16969 static int _wrap_NullPen_set(PyObject *_val) {
16970 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
16971 return 1;
16972 }
16973
16974
16975 static PyObject *_wrap_NullPen_get() {
16976 PyObject *pyobj;
16977
16978 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
16979 return pyobj;
16980 }
16981
16982
16983 static int _wrap_NullBrush_set(PyObject *_val) {
16984 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
16985 return 1;
16986 }
16987
16988
16989 static PyObject *_wrap_NullBrush_get() {
16990 PyObject *pyobj;
16991
16992 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
16993 return pyobj;
16994 }
16995
16996
16997 static int _wrap_NullPalette_set(PyObject *_val) {
16998 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
16999 return 1;
17000 }
17001
17002
17003 static PyObject *_wrap_NullPalette_get() {
17004 PyObject *pyobj;
17005
17006 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
17007 return pyobj;
17008 }
17009
17010
17011 static int _wrap_NullFont_set(PyObject *_val) {
17012 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17013 return 1;
17014 }
17015
17016
17017 static PyObject *_wrap_NullFont_get() {
17018 PyObject *pyobj;
17019
17020 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
17021 return pyobj;
17022 }
17023
17024
17025 static int _wrap_NullColour_set(PyObject *_val) {
17026 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17027 return 1;
17028 }
17029
17030
17031 static PyObject *_wrap_NullColour_get() {
17032 PyObject *pyobj;
17033
17034 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17035 return pyobj;
17036 }
17037
17038
17039 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
17040 PyObject *resultobj;
17041 wxPenList *arg1 = (wxPenList *) 0 ;
17042 wxPen *arg2 = (wxPen *) 0 ;
17043 PyObject * obj0 = 0 ;
17044 PyObject * obj1 = 0 ;
17045 char *kwnames[] = {
17046 (char *) "self",(char *) "pen", NULL
17047 };
17048
17049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17052 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17054 {
17055 PyThreadState* __tstate = wxPyBeginAllowThreads();
17056 (arg1)->AddPen(arg2);
17057
17058 wxPyEndAllowThreads(__tstate);
17059 if (PyErr_Occurred()) SWIG_fail;
17060 }
17061 Py_INCREF(Py_None); resultobj = Py_None;
17062 return resultobj;
17063 fail:
17064 return NULL;
17065 }
17066
17067
17068 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17069 PyObject *resultobj;
17070 wxPenList *arg1 = (wxPenList *) 0 ;
17071 wxColour *arg2 = 0 ;
17072 int arg3 ;
17073 int arg4 ;
17074 wxPen *result;
17075 wxColour temp2 ;
17076 PyObject * obj0 = 0 ;
17077 PyObject * obj1 = 0 ;
17078 PyObject * obj2 = 0 ;
17079 PyObject * obj3 = 0 ;
17080 char *kwnames[] = {
17081 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17082 };
17083
17084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17087 {
17088 arg2 = &temp2;
17089 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17090 }
17091 arg3 = (int) SWIG_AsInt(obj2);
17092 if (PyErr_Occurred()) SWIG_fail;
17093 arg4 = (int) SWIG_AsInt(obj3);
17094 if (PyErr_Occurred()) SWIG_fail;
17095 {
17096 PyThreadState* __tstate = wxPyBeginAllowThreads();
17097 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17098
17099 wxPyEndAllowThreads(__tstate);
17100 if (PyErr_Occurred()) SWIG_fail;
17101 }
17102 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17103 return resultobj;
17104 fail:
17105 return NULL;
17106 }
17107
17108
17109 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17110 PyObject *resultobj;
17111 wxPenList *arg1 = (wxPenList *) 0 ;
17112 wxPen *arg2 = (wxPen *) 0 ;
17113 PyObject * obj0 = 0 ;
17114 PyObject * obj1 = 0 ;
17115 char *kwnames[] = {
17116 (char *) "self",(char *) "pen", NULL
17117 };
17118
17119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17122 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17124 {
17125 PyThreadState* __tstate = wxPyBeginAllowThreads();
17126 (arg1)->RemovePen(arg2);
17127
17128 wxPyEndAllowThreads(__tstate);
17129 if (PyErr_Occurred()) SWIG_fail;
17130 }
17131 Py_INCREF(Py_None); resultobj = Py_None;
17132 return resultobj;
17133 fail:
17134 return NULL;
17135 }
17136
17137
17138 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17139 PyObject *resultobj;
17140 wxPenList *arg1 = (wxPenList *) 0 ;
17141 int result;
17142 PyObject * obj0 = 0 ;
17143 char *kwnames[] = {
17144 (char *) "self", NULL
17145 };
17146
17147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17150 {
17151 PyThreadState* __tstate = wxPyBeginAllowThreads();
17152 result = (int)(arg1)->GetCount();
17153
17154 wxPyEndAllowThreads(__tstate);
17155 if (PyErr_Occurred()) SWIG_fail;
17156 }
17157 resultobj = SWIG_FromInt((int)result);
17158 return resultobj;
17159 fail:
17160 return NULL;
17161 }
17162
17163
17164 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17165 PyObject *obj;
17166 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17167 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17168 Py_INCREF(obj);
17169 return Py_BuildValue((char *)"");
17170 }
17171 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17172 PyObject *resultobj;
17173 wxBrushList *arg1 = (wxBrushList *) 0 ;
17174 wxBrush *arg2 = (wxBrush *) 0 ;
17175 PyObject * obj0 = 0 ;
17176 PyObject * obj1 = 0 ;
17177 char *kwnames[] = {
17178 (char *) "self",(char *) "brush", NULL
17179 };
17180
17181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17184 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17186 {
17187 PyThreadState* __tstate = wxPyBeginAllowThreads();
17188 (arg1)->AddBrush(arg2);
17189
17190 wxPyEndAllowThreads(__tstate);
17191 if (PyErr_Occurred()) SWIG_fail;
17192 }
17193 Py_INCREF(Py_None); resultobj = Py_None;
17194 return resultobj;
17195 fail:
17196 return NULL;
17197 }
17198
17199
17200 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17201 PyObject *resultobj;
17202 wxBrushList *arg1 = (wxBrushList *) 0 ;
17203 wxColour *arg2 = 0 ;
17204 int arg3 ;
17205 wxBrush *result;
17206 wxColour temp2 ;
17207 PyObject * obj0 = 0 ;
17208 PyObject * obj1 = 0 ;
17209 PyObject * obj2 = 0 ;
17210 char *kwnames[] = {
17211 (char *) "self",(char *) "colour",(char *) "style", NULL
17212 };
17213
17214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17217 {
17218 arg2 = &temp2;
17219 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17220 }
17221 arg3 = (int) SWIG_AsInt(obj2);
17222 if (PyErr_Occurred()) SWIG_fail;
17223 {
17224 PyThreadState* __tstate = wxPyBeginAllowThreads();
17225 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17226
17227 wxPyEndAllowThreads(__tstate);
17228 if (PyErr_Occurred()) SWIG_fail;
17229 }
17230 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17231 return resultobj;
17232 fail:
17233 return NULL;
17234 }
17235
17236
17237 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17238 PyObject *resultobj;
17239 wxBrushList *arg1 = (wxBrushList *) 0 ;
17240 wxBrush *arg2 = (wxBrush *) 0 ;
17241 PyObject * obj0 = 0 ;
17242 PyObject * obj1 = 0 ;
17243 char *kwnames[] = {
17244 (char *) "self",(char *) "brush", NULL
17245 };
17246
17247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17250 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17252 {
17253 PyThreadState* __tstate = wxPyBeginAllowThreads();
17254 (arg1)->RemoveBrush(arg2);
17255
17256 wxPyEndAllowThreads(__tstate);
17257 if (PyErr_Occurred()) SWIG_fail;
17258 }
17259 Py_INCREF(Py_None); resultobj = Py_None;
17260 return resultobj;
17261 fail:
17262 return NULL;
17263 }
17264
17265
17266 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17267 PyObject *resultobj;
17268 wxBrushList *arg1 = (wxBrushList *) 0 ;
17269 int result;
17270 PyObject * obj0 = 0 ;
17271 char *kwnames[] = {
17272 (char *) "self", NULL
17273 };
17274
17275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17278 {
17279 PyThreadState* __tstate = wxPyBeginAllowThreads();
17280 result = (int)(arg1)->GetCount();
17281
17282 wxPyEndAllowThreads(__tstate);
17283 if (PyErr_Occurred()) SWIG_fail;
17284 }
17285 resultobj = SWIG_FromInt((int)result);
17286 return resultobj;
17287 fail:
17288 return NULL;
17289 }
17290
17291
17292 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17293 PyObject *obj;
17294 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17295 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17296 Py_INCREF(obj);
17297 return Py_BuildValue((char *)"");
17298 }
17299 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17300 PyObject *resultobj;
17301 wxColourDatabase *result;
17302 char *kwnames[] = {
17303 NULL
17304 };
17305
17306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17307 {
17308 PyThreadState* __tstate = wxPyBeginAllowThreads();
17309 result = (wxColourDatabase *)new wxColourDatabase();
17310
17311 wxPyEndAllowThreads(__tstate);
17312 if (PyErr_Occurred()) SWIG_fail;
17313 }
17314 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17315 return resultobj;
17316 fail:
17317 return NULL;
17318 }
17319
17320
17321 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17322 PyObject *resultobj;
17323 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17324 PyObject * obj0 = 0 ;
17325 char *kwnames[] = {
17326 (char *) "self", NULL
17327 };
17328
17329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17332 {
17333 PyThreadState* __tstate = wxPyBeginAllowThreads();
17334 delete arg1;
17335
17336 wxPyEndAllowThreads(__tstate);
17337 if (PyErr_Occurred()) SWIG_fail;
17338 }
17339 Py_INCREF(Py_None); resultobj = Py_None;
17340 return resultobj;
17341 fail:
17342 return NULL;
17343 }
17344
17345
17346 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
17347 PyObject *resultobj;
17348 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17349 wxString *arg2 = 0 ;
17350 wxColour result;
17351 bool temp2 = False ;
17352 PyObject * obj0 = 0 ;
17353 PyObject * obj1 = 0 ;
17354 char *kwnames[] = {
17355 (char *) "self",(char *) "name", NULL
17356 };
17357
17358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17361 {
17362 arg2 = wxString_in_helper(obj1);
17363 if (arg2 == NULL) SWIG_fail;
17364 temp2 = True;
17365 }
17366 {
17367 PyThreadState* __tstate = wxPyBeginAllowThreads();
17368 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17369
17370 wxPyEndAllowThreads(__tstate);
17371 if (PyErr_Occurred()) SWIG_fail;
17372 }
17373 {
17374 wxColour * resultptr;
17375 resultptr = new wxColour((wxColour &) result);
17376 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17377 }
17378 {
17379 if (temp2)
17380 delete arg2;
17381 }
17382 return resultobj;
17383 fail:
17384 {
17385 if (temp2)
17386 delete arg2;
17387 }
17388 return NULL;
17389 }
17390
17391
17392 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
17393 PyObject *resultobj;
17394 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17395 wxColour *arg2 = 0 ;
17396 wxString result;
17397 wxColour temp2 ;
17398 PyObject * obj0 = 0 ;
17399 PyObject * obj1 = 0 ;
17400 char *kwnames[] = {
17401 (char *) "self",(char *) "colour", NULL
17402 };
17403
17404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17407 {
17408 arg2 = &temp2;
17409 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17410 }
17411 {
17412 PyThreadState* __tstate = wxPyBeginAllowThreads();
17413 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17414
17415 wxPyEndAllowThreads(__tstate);
17416 if (PyErr_Occurred()) SWIG_fail;
17417 }
17418 {
17419 #if wxUSE_UNICODE
17420 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17421 #else
17422 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17423 #endif
17424 }
17425 return resultobj;
17426 fail:
17427 return NULL;
17428 }
17429
17430
17431 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17432 PyObject *resultobj;
17433 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17434 wxString *arg2 = 0 ;
17435 wxColour *arg3 = 0 ;
17436 bool temp2 = False ;
17437 wxColour temp3 ;
17438 PyObject * obj0 = 0 ;
17439 PyObject * obj1 = 0 ;
17440 PyObject * obj2 = 0 ;
17441 char *kwnames[] = {
17442 (char *) "self",(char *) "name",(char *) "colour", NULL
17443 };
17444
17445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17448 {
17449 arg2 = wxString_in_helper(obj1);
17450 if (arg2 == NULL) SWIG_fail;
17451 temp2 = True;
17452 }
17453 {
17454 arg3 = &temp3;
17455 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17456 }
17457 {
17458 PyThreadState* __tstate = wxPyBeginAllowThreads();
17459 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17460
17461 wxPyEndAllowThreads(__tstate);
17462 if (PyErr_Occurred()) SWIG_fail;
17463 }
17464 Py_INCREF(Py_None); resultobj = Py_None;
17465 {
17466 if (temp2)
17467 delete arg2;
17468 }
17469 return resultobj;
17470 fail:
17471 {
17472 if (temp2)
17473 delete arg2;
17474 }
17475 return NULL;
17476 }
17477
17478
17479 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
17480 PyObject *resultobj;
17481 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17482 wxString *arg2 = 0 ;
17483 int arg3 ;
17484 int arg4 ;
17485 int arg5 ;
17486 bool temp2 = False ;
17487 PyObject * obj0 = 0 ;
17488 PyObject * obj1 = 0 ;
17489 PyObject * obj2 = 0 ;
17490 PyObject * obj3 = 0 ;
17491 PyObject * obj4 = 0 ;
17492 char *kwnames[] = {
17493 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17494 };
17495
17496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17499 {
17500 arg2 = wxString_in_helper(obj1);
17501 if (arg2 == NULL) SWIG_fail;
17502 temp2 = True;
17503 }
17504 arg3 = (int) SWIG_AsInt(obj2);
17505 if (PyErr_Occurred()) SWIG_fail;
17506 arg4 = (int) SWIG_AsInt(obj3);
17507 if (PyErr_Occurred()) SWIG_fail;
17508 arg5 = (int) SWIG_AsInt(obj4);
17509 if (PyErr_Occurred()) SWIG_fail;
17510 {
17511 PyThreadState* __tstate = wxPyBeginAllowThreads();
17512 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17513
17514 wxPyEndAllowThreads(__tstate);
17515 if (PyErr_Occurred()) SWIG_fail;
17516 }
17517 Py_INCREF(Py_None); resultobj = Py_None;
17518 {
17519 if (temp2)
17520 delete arg2;
17521 }
17522 return resultobj;
17523 fail:
17524 {
17525 if (temp2)
17526 delete arg2;
17527 }
17528 return NULL;
17529 }
17530
17531
17532 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
17533 PyObject *obj;
17534 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17535 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17536 Py_INCREF(obj);
17537 return Py_BuildValue((char *)"");
17538 }
17539 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17540 PyObject *resultobj;
17541 wxFontList *arg1 = (wxFontList *) 0 ;
17542 wxFont *arg2 = (wxFont *) 0 ;
17543 PyObject * obj0 = 0 ;
17544 PyObject * obj1 = 0 ;
17545 char *kwnames[] = {
17546 (char *) "self",(char *) "font", NULL
17547 };
17548
17549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17552 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17554 {
17555 PyThreadState* __tstate = wxPyBeginAllowThreads();
17556 (arg1)->AddFont(arg2);
17557
17558 wxPyEndAllowThreads(__tstate);
17559 if (PyErr_Occurred()) SWIG_fail;
17560 }
17561 Py_INCREF(Py_None); resultobj = Py_None;
17562 return resultobj;
17563 fail:
17564 return NULL;
17565 }
17566
17567
17568 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17569 PyObject *resultobj;
17570 wxFontList *arg1 = (wxFontList *) 0 ;
17571 int arg2 ;
17572 int arg3 ;
17573 int arg4 ;
17574 int arg5 ;
17575 bool arg6 = (bool) False ;
17576 wxString const &arg7_defvalue = wxPyEmptyString ;
17577 wxString *arg7 = (wxString *) &arg7_defvalue ;
17578 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17579 wxFont *result;
17580 bool temp7 = False ;
17581 PyObject * obj0 = 0 ;
17582 PyObject * obj1 = 0 ;
17583 PyObject * obj2 = 0 ;
17584 PyObject * obj3 = 0 ;
17585 PyObject * obj4 = 0 ;
17586 PyObject * obj5 = 0 ;
17587 PyObject * obj6 = 0 ;
17588 PyObject * obj7 = 0 ;
17589 char *kwnames[] = {
17590 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17591 };
17592
17593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17596 arg2 = (int) SWIG_AsInt(obj1);
17597 if (PyErr_Occurred()) SWIG_fail;
17598 arg3 = (int) SWIG_AsInt(obj2);
17599 if (PyErr_Occurred()) SWIG_fail;
17600 arg4 = (int) SWIG_AsInt(obj3);
17601 if (PyErr_Occurred()) SWIG_fail;
17602 arg5 = (int) SWIG_AsInt(obj4);
17603 if (PyErr_Occurred()) SWIG_fail;
17604 if (obj5) {
17605 arg6 = (bool) SWIG_AsBool(obj5);
17606 if (PyErr_Occurred()) SWIG_fail;
17607 }
17608 if (obj6) {
17609 {
17610 arg7 = wxString_in_helper(obj6);
17611 if (arg7 == NULL) SWIG_fail;
17612 temp7 = True;
17613 }
17614 }
17615 if (obj7) {
17616 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
17617 if (PyErr_Occurred()) SWIG_fail;
17618 }
17619 {
17620 PyThreadState* __tstate = wxPyBeginAllowThreads();
17621 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17622
17623 wxPyEndAllowThreads(__tstate);
17624 if (PyErr_Occurred()) SWIG_fail;
17625 }
17626 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
17627 {
17628 if (temp7)
17629 delete arg7;
17630 }
17631 return resultobj;
17632 fail:
17633 {
17634 if (temp7)
17635 delete arg7;
17636 }
17637 return NULL;
17638 }
17639
17640
17641 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17642 PyObject *resultobj;
17643 wxFontList *arg1 = (wxFontList *) 0 ;
17644 wxFont *arg2 = (wxFont *) 0 ;
17645 PyObject * obj0 = 0 ;
17646 PyObject * obj1 = 0 ;
17647 char *kwnames[] = {
17648 (char *) "self",(char *) "font", NULL
17649 };
17650
17651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17654 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17656 {
17657 PyThreadState* __tstate = wxPyBeginAllowThreads();
17658 (arg1)->RemoveFont(arg2);
17659
17660 wxPyEndAllowThreads(__tstate);
17661 if (PyErr_Occurred()) SWIG_fail;
17662 }
17663 Py_INCREF(Py_None); resultobj = Py_None;
17664 return resultobj;
17665 fail:
17666 return NULL;
17667 }
17668
17669
17670 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17671 PyObject *resultobj;
17672 wxFontList *arg1 = (wxFontList *) 0 ;
17673 int result;
17674 PyObject * obj0 = 0 ;
17675 char *kwnames[] = {
17676 (char *) "self", NULL
17677 };
17678
17679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17682 {
17683 PyThreadState* __tstate = wxPyBeginAllowThreads();
17684 result = (int)(arg1)->GetCount();
17685
17686 wxPyEndAllowThreads(__tstate);
17687 if (PyErr_Occurred()) SWIG_fail;
17688 }
17689 resultobj = SWIG_FromInt((int)result);
17690 return resultobj;
17691 fail:
17692 return NULL;
17693 }
17694
17695
17696 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
17697 PyObject *obj;
17698 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17699 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17700 Py_INCREF(obj);
17701 return Py_BuildValue((char *)"");
17702 }
17703 static int _wrap_TheFontList_set(PyObject *_val) {
17704 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17705 return 1;
17706 }
17707
17708
17709 static PyObject *_wrap_TheFontList_get() {
17710 PyObject *pyobj;
17711
17712 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
17713 return pyobj;
17714 }
17715
17716
17717 static int _wrap_ThePenList_set(PyObject *_val) {
17718 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17719 return 1;
17720 }
17721
17722
17723 static PyObject *_wrap_ThePenList_get() {
17724 PyObject *pyobj;
17725
17726 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
17727 return pyobj;
17728 }
17729
17730
17731 static int _wrap_TheBrushList_set(PyObject *_val) {
17732 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17733 return 1;
17734 }
17735
17736
17737 static PyObject *_wrap_TheBrushList_get() {
17738 PyObject *pyobj;
17739
17740 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
17741 return pyobj;
17742 }
17743
17744
17745 static int _wrap_TheColourDatabase_set(PyObject *_val) {
17746 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17747 return 1;
17748 }
17749
17750
17751 static PyObject *_wrap_TheColourDatabase_get() {
17752 PyObject *pyobj;
17753
17754 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
17755 return pyobj;
17756 }
17757
17758
17759 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
17760 PyObject *resultobj;
17761 wxEffects *result;
17762 char *kwnames[] = {
17763 NULL
17764 };
17765
17766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
17767 {
17768 PyThreadState* __tstate = wxPyBeginAllowThreads();
17769 result = (wxEffects *)new wxEffects();
17770
17771 wxPyEndAllowThreads(__tstate);
17772 if (PyErr_Occurred()) SWIG_fail;
17773 }
17774 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
17775 return resultobj;
17776 fail:
17777 return NULL;
17778 }
17779
17780
17781 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17782 PyObject *resultobj;
17783 wxEffects *arg1 = (wxEffects *) 0 ;
17784 wxColour result;
17785 PyObject * obj0 = 0 ;
17786 char *kwnames[] = {
17787 (char *) "self", NULL
17788 };
17789
17790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
17791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17793 {
17794 PyThreadState* __tstate = wxPyBeginAllowThreads();
17795 result = ((wxEffects const *)arg1)->GetHighlightColour();
17796
17797 wxPyEndAllowThreads(__tstate);
17798 if (PyErr_Occurred()) SWIG_fail;
17799 }
17800 {
17801 wxColour * resultptr;
17802 resultptr = new wxColour((wxColour &) result);
17803 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17804 }
17805 return resultobj;
17806 fail:
17807 return NULL;
17808 }
17809
17810
17811 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17812 PyObject *resultobj;
17813 wxEffects *arg1 = (wxEffects *) 0 ;
17814 wxColour result;
17815 PyObject * obj0 = 0 ;
17816 char *kwnames[] = {
17817 (char *) "self", NULL
17818 };
17819
17820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
17821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17823 {
17824 PyThreadState* __tstate = wxPyBeginAllowThreads();
17825 result = ((wxEffects const *)arg1)->GetLightShadow();
17826
17827 wxPyEndAllowThreads(__tstate);
17828 if (PyErr_Occurred()) SWIG_fail;
17829 }
17830 {
17831 wxColour * resultptr;
17832 resultptr = new wxColour((wxColour &) result);
17833 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17834 }
17835 return resultobj;
17836 fail:
17837 return NULL;
17838 }
17839
17840
17841 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17842 PyObject *resultobj;
17843 wxEffects *arg1 = (wxEffects *) 0 ;
17844 wxColour result;
17845 PyObject * obj0 = 0 ;
17846 char *kwnames[] = {
17847 (char *) "self", NULL
17848 };
17849
17850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
17851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17853 {
17854 PyThreadState* __tstate = wxPyBeginAllowThreads();
17855 result = ((wxEffects const *)arg1)->GetFaceColour();
17856
17857 wxPyEndAllowThreads(__tstate);
17858 if (PyErr_Occurred()) SWIG_fail;
17859 }
17860 {
17861 wxColour * resultptr;
17862 resultptr = new wxColour((wxColour &) result);
17863 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17864 }
17865 return resultobj;
17866 fail:
17867 return NULL;
17868 }
17869
17870
17871 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17872 PyObject *resultobj;
17873 wxEffects *arg1 = (wxEffects *) 0 ;
17874 wxColour result;
17875 PyObject * obj0 = 0 ;
17876 char *kwnames[] = {
17877 (char *) "self", NULL
17878 };
17879
17880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
17881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17883 {
17884 PyThreadState* __tstate = wxPyBeginAllowThreads();
17885 result = ((wxEffects const *)arg1)->GetMediumShadow();
17886
17887 wxPyEndAllowThreads(__tstate);
17888 if (PyErr_Occurred()) SWIG_fail;
17889 }
17890 {
17891 wxColour * resultptr;
17892 resultptr = new wxColour((wxColour &) result);
17893 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17894 }
17895 return resultobj;
17896 fail:
17897 return NULL;
17898 }
17899
17900
17901 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17902 PyObject *resultobj;
17903 wxEffects *arg1 = (wxEffects *) 0 ;
17904 wxColour result;
17905 PyObject * obj0 = 0 ;
17906 char *kwnames[] = {
17907 (char *) "self", NULL
17908 };
17909
17910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
17911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17913 {
17914 PyThreadState* __tstate = wxPyBeginAllowThreads();
17915 result = ((wxEffects const *)arg1)->GetDarkShadow();
17916
17917 wxPyEndAllowThreads(__tstate);
17918 if (PyErr_Occurred()) SWIG_fail;
17919 }
17920 {
17921 wxColour * resultptr;
17922 resultptr = new wxColour((wxColour &) result);
17923 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17924 }
17925 return resultobj;
17926 fail:
17927 return NULL;
17928 }
17929
17930
17931 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17932 PyObject *resultobj;
17933 wxEffects *arg1 = (wxEffects *) 0 ;
17934 wxColour *arg2 = 0 ;
17935 wxColour temp2 ;
17936 PyObject * obj0 = 0 ;
17937 PyObject * obj1 = 0 ;
17938 char *kwnames[] = {
17939 (char *) "self",(char *) "c", NULL
17940 };
17941
17942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
17943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17945 {
17946 arg2 = &temp2;
17947 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17948 }
17949 {
17950 PyThreadState* __tstate = wxPyBeginAllowThreads();
17951 (arg1)->SetHighlightColour((wxColour const &)*arg2);
17952
17953 wxPyEndAllowThreads(__tstate);
17954 if (PyErr_Occurred()) SWIG_fail;
17955 }
17956 Py_INCREF(Py_None); resultobj = Py_None;
17957 return resultobj;
17958 fail:
17959 return NULL;
17960 }
17961
17962
17963 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17964 PyObject *resultobj;
17965 wxEffects *arg1 = (wxEffects *) 0 ;
17966 wxColour *arg2 = 0 ;
17967 wxColour temp2 ;
17968 PyObject * obj0 = 0 ;
17969 PyObject * obj1 = 0 ;
17970 char *kwnames[] = {
17971 (char *) "self",(char *) "c", NULL
17972 };
17973
17974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
17975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17977 {
17978 arg2 = &temp2;
17979 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17980 }
17981 {
17982 PyThreadState* __tstate = wxPyBeginAllowThreads();
17983 (arg1)->SetLightShadow((wxColour const &)*arg2);
17984
17985 wxPyEndAllowThreads(__tstate);
17986 if (PyErr_Occurred()) SWIG_fail;
17987 }
17988 Py_INCREF(Py_None); resultobj = Py_None;
17989 return resultobj;
17990 fail:
17991 return NULL;
17992 }
17993
17994
17995 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17996 PyObject *resultobj;
17997 wxEffects *arg1 = (wxEffects *) 0 ;
17998 wxColour *arg2 = 0 ;
17999 wxColour temp2 ;
18000 PyObject * obj0 = 0 ;
18001 PyObject * obj1 = 0 ;
18002 char *kwnames[] = {
18003 (char *) "self",(char *) "c", NULL
18004 };
18005
18006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18009 {
18010 arg2 = &temp2;
18011 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18012 }
18013 {
18014 PyThreadState* __tstate = wxPyBeginAllowThreads();
18015 (arg1)->SetFaceColour((wxColour const &)*arg2);
18016
18017 wxPyEndAllowThreads(__tstate);
18018 if (PyErr_Occurred()) SWIG_fail;
18019 }
18020 Py_INCREF(Py_None); resultobj = Py_None;
18021 return resultobj;
18022 fail:
18023 return NULL;
18024 }
18025
18026
18027 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18028 PyObject *resultobj;
18029 wxEffects *arg1 = (wxEffects *) 0 ;
18030 wxColour *arg2 = 0 ;
18031 wxColour temp2 ;
18032 PyObject * obj0 = 0 ;
18033 PyObject * obj1 = 0 ;
18034 char *kwnames[] = {
18035 (char *) "self",(char *) "c", NULL
18036 };
18037
18038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18041 {
18042 arg2 = &temp2;
18043 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18044 }
18045 {
18046 PyThreadState* __tstate = wxPyBeginAllowThreads();
18047 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18048
18049 wxPyEndAllowThreads(__tstate);
18050 if (PyErr_Occurred()) SWIG_fail;
18051 }
18052 Py_INCREF(Py_None); resultobj = Py_None;
18053 return resultobj;
18054 fail:
18055 return NULL;
18056 }
18057
18058
18059 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18060 PyObject *resultobj;
18061 wxEffects *arg1 = (wxEffects *) 0 ;
18062 wxColour *arg2 = 0 ;
18063 wxColour temp2 ;
18064 PyObject * obj0 = 0 ;
18065 PyObject * obj1 = 0 ;
18066 char *kwnames[] = {
18067 (char *) "self",(char *) "c", NULL
18068 };
18069
18070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) 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 PyThreadState* __tstate = wxPyBeginAllowThreads();
18079 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18080
18081 wxPyEndAllowThreads(__tstate);
18082 if (PyErr_Occurred()) SWIG_fail;
18083 }
18084 Py_INCREF(Py_None); resultobj = Py_None;
18085 return resultobj;
18086 fail:
18087 return NULL;
18088 }
18089
18090
18091 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18092 PyObject *resultobj;
18093 wxEffects *arg1 = (wxEffects *) 0 ;
18094 wxColour *arg2 = 0 ;
18095 wxColour *arg3 = 0 ;
18096 wxColour *arg4 = 0 ;
18097 wxColour *arg5 = 0 ;
18098 wxColour *arg6 = 0 ;
18099 wxColour temp2 ;
18100 wxColour temp3 ;
18101 wxColour temp4 ;
18102 wxColour temp5 ;
18103 wxColour temp6 ;
18104 PyObject * obj0 = 0 ;
18105 PyObject * obj1 = 0 ;
18106 PyObject * obj2 = 0 ;
18107 PyObject * obj3 = 0 ;
18108 PyObject * obj4 = 0 ;
18109 PyObject * obj5 = 0 ;
18110 char *kwnames[] = {
18111 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18112 };
18113
18114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18117 {
18118 arg2 = &temp2;
18119 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18120 }
18121 {
18122 arg3 = &temp3;
18123 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18124 }
18125 {
18126 arg4 = &temp4;
18127 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18128 }
18129 {
18130 arg5 = &temp5;
18131 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18132 }
18133 {
18134 arg6 = &temp6;
18135 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18136 }
18137 {
18138 PyThreadState* __tstate = wxPyBeginAllowThreads();
18139 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18140
18141 wxPyEndAllowThreads(__tstate);
18142 if (PyErr_Occurred()) SWIG_fail;
18143 }
18144 Py_INCREF(Py_None); resultobj = Py_None;
18145 return resultobj;
18146 fail:
18147 return NULL;
18148 }
18149
18150
18151 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18152 PyObject *resultobj;
18153 wxEffects *arg1 = (wxEffects *) 0 ;
18154 wxDC *arg2 = 0 ;
18155 wxRect *arg3 = 0 ;
18156 int arg4 = (int) 1 ;
18157 wxRect temp3 ;
18158 PyObject * obj0 = 0 ;
18159 PyObject * obj1 = 0 ;
18160 PyObject * obj2 = 0 ;
18161 PyObject * obj3 = 0 ;
18162 char *kwnames[] = {
18163 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18164 };
18165
18166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18169 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18170 SWIG_POINTER_EXCEPTION | 0)) == -1)
18171 SWIG_fail;
18172 if (arg2 == NULL) {
18173 PyErr_SetString(PyExc_TypeError,"null reference");
18174 SWIG_fail;
18175 }
18176 {
18177 arg3 = &temp3;
18178 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18179 }
18180 if (obj3) {
18181 arg4 = (int) SWIG_AsInt(obj3);
18182 if (PyErr_Occurred()) SWIG_fail;
18183 }
18184 {
18185 PyThreadState* __tstate = wxPyBeginAllowThreads();
18186 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18187
18188 wxPyEndAllowThreads(__tstate);
18189 if (PyErr_Occurred()) SWIG_fail;
18190 }
18191 Py_INCREF(Py_None); resultobj = Py_None;
18192 return resultobj;
18193 fail:
18194 return NULL;
18195 }
18196
18197
18198 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18199 PyObject *resultobj;
18200 wxEffects *arg1 = (wxEffects *) 0 ;
18201 wxRect *arg2 = 0 ;
18202 wxDC *arg3 = 0 ;
18203 wxBitmap *arg4 = 0 ;
18204 bool result;
18205 wxRect temp2 ;
18206 PyObject * obj0 = 0 ;
18207 PyObject * obj1 = 0 ;
18208 PyObject * obj2 = 0 ;
18209 PyObject * obj3 = 0 ;
18210 char *kwnames[] = {
18211 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18212 };
18213
18214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18217 {
18218 arg2 = &temp2;
18219 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18220 }
18221 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18222 SWIG_POINTER_EXCEPTION | 0)) == -1)
18223 SWIG_fail;
18224 if (arg3 == NULL) {
18225 PyErr_SetString(PyExc_TypeError,"null reference");
18226 SWIG_fail;
18227 }
18228 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18229 SWIG_POINTER_EXCEPTION | 0)) == -1)
18230 SWIG_fail;
18231 if (arg4 == NULL) {
18232 PyErr_SetString(PyExc_TypeError,"null reference");
18233 SWIG_fail;
18234 }
18235 {
18236 PyThreadState* __tstate = wxPyBeginAllowThreads();
18237 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18238
18239 wxPyEndAllowThreads(__tstate);
18240 if (PyErr_Occurred()) SWIG_fail;
18241 }
18242 {
18243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18244 }
18245 return resultobj;
18246 fail:
18247 return NULL;
18248 }
18249
18250
18251 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18252 PyObject *obj;
18253 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18254 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18255 Py_INCREF(obj);
18256 return Py_BuildValue((char *)"");
18257 }
18258 static PyMethodDef SwigMethods[] = {
18259 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18260 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18261 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18262 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18263 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18264 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18265 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
18266 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18267 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
18268 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
18269 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18270 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18271 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18272 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18273 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
18274 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
18275 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
18276 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
18277 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18278 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18279 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
18280 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
18281 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18282 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18283 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18284 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18285 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18286 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18287 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18288 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18289 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18290 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18291 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18292 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18293 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18294 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18295 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18296 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18297 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18298 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18299 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18300 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18301 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18302 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
18303 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
18304 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
18305 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
18306 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
18307 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
18308 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
18309 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18310 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
18311 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18312 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18313 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18314 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18315 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18316 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18317 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18318 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18319 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18320 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18321 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18322 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
18323 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18324 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18325 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
18326 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
18327 { (char *)"new_EmptyBitmap", _wrap_new_EmptyBitmap, METH_VARARGS },
18328 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
18329 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
18330 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
18331 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
18332 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS },
18333 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
18334 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
18335 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
18336 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
18337 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
18338 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
18339 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
18340 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
18341 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
18342 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
18343 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
18344 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
18345 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
18346 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
18347 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
18348 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
18349 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
18350 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
18351 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
18352 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
18353 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
18354 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
18355 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
18356 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
18357 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
18358 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
18359 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
18360 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
18361 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
18362 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
18363 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
18364 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
18365 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
18366 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
18367 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
18368 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
18369 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
18370 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
18371 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
18372 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
18373 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
18374 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
18375 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
18376 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
18377 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
18378 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
18379 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
18380 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
18381 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
18382 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
18383 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
18384 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
18385 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
18386 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
18387 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
18388 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
18389 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
18390 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
18391 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
18392 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
18393 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
18394 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
18395 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
18396 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
18397 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
18398 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
18399 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
18400 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
18401 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
18402 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
18403 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
18404 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
18405 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
18406 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
18407 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
18408 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
18409 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
18410 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
18411 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
18412 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
18413 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
18414 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
18415 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18416 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18417 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
18418 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
18419 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
18420 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
18421 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
18422 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
18423 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
18424 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
18425 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
18426 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
18427 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
18428 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
18429 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18430 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18431 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
18432 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
18433 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18434 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
18435 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
18436 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18437 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18438 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
18439 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18440 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18441 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
18442 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
18443 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18444 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18445 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
18446 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18447 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18448 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18449 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
18450 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
18451 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
18452 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
18453 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
18454 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
18455 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
18456 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
18457 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18458 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18459 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18460 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18461 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
18462 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
18463 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
18464 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
18465 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
18466 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
18467 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
18468 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
18469 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
18470 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18471 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
18472 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
18473 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS },
18474 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
18475 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
18476 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
18477 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
18478 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
18479 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
18480 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
18481 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
18482 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
18483 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
18484 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
18485 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
18486 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
18487 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
18488 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
18489 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
18490 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18491 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
18492 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
18493 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
18494 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18495 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18496 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18497 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18498 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
18499 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
18500 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18501 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18502 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
18503 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
18504 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
18505 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18506 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18507 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18508 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18509 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
18510 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18511 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
18512 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
18513 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
18514 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18515 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18516 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18517 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18518 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
18519 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18520 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18521 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
18522 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
18523 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
18524 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
18525 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
18526 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
18527 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
18528 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
18529 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
18530 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
18531 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
18532 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
18533 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
18534 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
18535 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
18536 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
18537 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
18538 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
18539 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
18540 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
18541 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
18542 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
18543 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
18544 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
18545 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
18546 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
18547 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
18548 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
18549 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18550 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
18551 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18552 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
18553 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
18554 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
18555 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
18556 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
18557 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
18558 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18559 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18560 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
18561 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
18562 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
18563 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
18564 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
18565 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
18566 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
18567 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
18568 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
18569 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
18570 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
18571 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
18572 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
18573 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
18574 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
18575 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
18576 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
18577 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
18578 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
18579 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
18580 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
18581 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
18582 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
18583 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
18584 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
18585 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
18586 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
18587 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
18588 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
18589 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
18590 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
18591 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
18592 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
18593 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
18594 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
18595 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
18596 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
18597 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
18598 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
18599 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
18600 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
18601 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
18602 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
18603 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
18604 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
18605 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
18606 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
18607 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
18608 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
18609 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
18610 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
18611 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
18612 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
18613 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
18614 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
18615 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
18616 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
18617 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
18618 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
18619 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
18620 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18621 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
18622 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
18623 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
18624 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
18625 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
18626 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
18627 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
18628 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
18629 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
18630 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
18631 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
18632 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
18633 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
18634 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
18635 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
18636 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
18637 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
18638 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
18639 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
18640 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
18641 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
18642 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
18643 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
18644 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
18645 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
18646 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
18647 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
18648 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
18649 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
18650 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
18651 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
18652 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18653 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
18654 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
18655 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
18656 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
18657 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
18658 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
18659 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
18660 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
18661 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
18662 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
18663 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
18664 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
18665 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18666 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18667 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18668 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
18669 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18670 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18671 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
18672 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18673 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
18674 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18675 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18676 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
18677 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
18678 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
18679 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18680 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
18681 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
18682 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
18683 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
18684 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18685 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
18686 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
18687 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
18688 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
18689 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
18690 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
18691 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
18692 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
18693 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
18694 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
18695 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
18696 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
18697 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
18698 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
18699 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
18700 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
18701 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
18702 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
18703 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
18704 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
18705 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18706 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18707 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
18708 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
18709 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
18710 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
18711 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
18712 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
18713 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
18714 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
18715 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
18716 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
18717 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
18718 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
18719 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
18720 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
18721 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
18722 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
18723 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
18724 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
18725 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
18726 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
18727 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
18728 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
18729 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
18730 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
18731 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
18732 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
18733 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
18734 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
18735 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
18736 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
18737 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
18738 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
18739 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
18740 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
18741 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
18742 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
18743 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
18744 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
18745 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
18746 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
18747 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
18748 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
18749 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
18750 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18751 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18752 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
18753 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
18754 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
18755 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
18756 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
18757 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
18758 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
18759 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
18760 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
18761 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
18762 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
18763 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18764 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
18765 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
18766 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18767 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18768 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18769 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
18770 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
18771 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18772 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18773 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
18774 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
18775 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
18776 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
18777 { NULL, NULL }
18778 };
18779
18780
18781 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
18782
18783 static void *_p_wxControlTo_p_wxWindow(void *x) {
18784 return (void *)((wxWindow *) ((wxControl *) x));
18785 }
18786 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
18787 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
18788 }
18789 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
18790 return (void *)((wxWindow *) ((wxMenuBar *) x));
18791 }
18792 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
18793 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
18794 }
18795 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
18796 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
18797 }
18798 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
18799 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
18800 }
18801 static void *_p_wxPenTo_p_wxObject(void *x) {
18802 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
18803 }
18804 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
18805 return (void *)((wxObject *) ((wxRegionIterator *) x));
18806 }
18807 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
18808 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
18809 }
18810 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
18811 return (void *)((wxObject *) ((wxSizerItem *) x));
18812 }
18813 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
18814 return (void *)((wxObject *) ((wxColourDatabase *) x));
18815 }
18816 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
18817 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
18818 }
18819 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
18820 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
18821 }
18822 static void *_p_wxIconTo_p_wxObject(void *x) {
18823 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
18824 }
18825 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
18826 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
18827 }
18828 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
18829 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
18830 }
18831 static void *_p_wxSizerTo_p_wxObject(void *x) {
18832 return (void *)((wxObject *) ((wxSizer *) x));
18833 }
18834 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
18835 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
18836 }
18837 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18838 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18839 }
18840 static void *_p_wxPenListTo_p_wxObject(void *x) {
18841 return (void *)((wxObject *) ((wxPenList *) x));
18842 }
18843 static void *_p_wxEventTo_p_wxObject(void *x) {
18844 return (void *)((wxObject *) ((wxEvent *) x));
18845 }
18846 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
18847 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
18848 }
18849 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
18850 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
18851 }
18852 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
18853 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
18854 }
18855 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
18856 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
18857 }
18858 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
18859 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
18860 }
18861 static void *_p_wxDCTo_p_wxObject(void *x) {
18862 return (void *)((wxObject *) ((wxDC *) x));
18863 }
18864 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
18865 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
18866 }
18867 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
18868 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
18869 }
18870 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
18871 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
18872 }
18873 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
18874 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
18875 }
18876 static void *_p_wxControlTo_p_wxObject(void *x) {
18877 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
18878 }
18879 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
18880 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
18881 }
18882 static void *_p_wxClientDCTo_p_wxObject(void *x) {
18883 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
18884 }
18885 static void *_p_wxFSFileTo_p_wxObject(void *x) {
18886 return (void *)((wxObject *) ((wxFSFile *) x));
18887 }
18888 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
18889 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
18890 }
18891 static void *_p_wxRegionTo_p_wxObject(void *x) {
18892 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
18893 }
18894 static void *_p_wxPySizerTo_p_wxObject(void *x) {
18895 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
18896 }
18897 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
18898 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
18899 }
18900 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
18901 return (void *)((wxObject *) ((wxGDIObject *) x));
18902 }
18903 static void *_p_wxEffectsTo_p_wxObject(void *x) {
18904 return (void *)((wxObject *) ((wxEffects *) x));
18905 }
18906 static void *_p_wxPyEventTo_p_wxObject(void *x) {
18907 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
18908 }
18909 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
18910 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
18911 }
18912 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
18913 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
18914 }
18915 static void *_p_wxShowEventTo_p_wxObject(void *x) {
18916 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
18917 }
18918 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
18919 return (void *)((wxObject *) ((wxMenuItem *) x));
18920 }
18921 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
18922 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
18923 }
18924 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
18925 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
18926 }
18927 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
18928 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
18929 }
18930 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
18931 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
18932 }
18933 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
18934 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
18935 }
18936 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
18937 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
18938 }
18939 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
18940 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
18941 }
18942 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
18943 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
18944 }
18945 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
18946 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
18947 }
18948 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
18949 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
18950 }
18951 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
18952 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
18953 }
18954 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
18955 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
18956 }
18957 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
18958 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
18959 }
18960 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
18961 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
18962 }
18963 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
18964 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
18965 }
18966 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
18967 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
18968 }
18969 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
18970 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
18971 }
18972 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
18973 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
18974 }
18975 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
18976 return (void *)((wxObject *) ((wxImageHandler *) x));
18977 }
18978 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
18979 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
18980 }
18981 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
18982 return (void *)((wxObject *) ((wxEvtHandler *) x));
18983 }
18984 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
18985 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18986 }
18987 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
18988 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
18989 }
18990 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
18991 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
18992 }
18993 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
18994 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
18995 }
18996 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
18997 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
18998 }
18999 static void *_p_wxImageTo_p_wxObject(void *x) {
19000 return (void *)((wxObject *) ((wxImage *) x));
19001 }
19002 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19003 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19004 }
19005 static void *_p_wxPaletteTo_p_wxObject(void *x) {
19006 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19007 }
19008 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19009 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19010 }
19011 static void *_p_wxImageListTo_p_wxObject(void *x) {
19012 return (void *)((wxObject *) ((wxImageList *) x));
19013 }
19014 static void *_p_wxCursorTo_p_wxObject(void *x) {
19015 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19016 }
19017 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19018 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19019 }
19020 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19021 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19022 }
19023 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19024 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19025 }
19026 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19027 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19028 }
19029 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19030 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19031 }
19032 static void *_p_wxWindowTo_p_wxObject(void *x) {
19033 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19034 }
19035 static void *_p_wxMenuTo_p_wxObject(void *x) {
19036 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19037 }
19038 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19039 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19040 }
19041 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19042 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19043 }
19044 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19045 return (void *)((wxObject *) ((wxBrushList *) x));
19046 }
19047 static void *_p_wxPyPenTo_p_wxObject(void *x) {
19048 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
19049 }
19050 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19051 return (void *)((wxObject *) ((wxFileSystem *) x));
19052 }
19053 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19054 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19055 }
19056 static void *_p_wxMaskTo_p_wxObject(void *x) {
19057 return (void *)((wxObject *) ((wxMask *) x));
19058 }
19059 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19060 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19061 }
19062 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19063 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19064 }
19065 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19066 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19067 }
19068 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19069 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19070 }
19071 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19072 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19073 }
19074 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19075 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19076 }
19077 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19078 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19079 }
19080 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19081 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19082 }
19083 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19084 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19085 }
19086 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19087 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19088 }
19089 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19090 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19091 }
19092 static void *_p_wxFontTo_p_wxObject(void *x) {
19093 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19094 }
19095 static void *_p_wxBrushTo_p_wxObject(void *x) {
19096 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19097 }
19098 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19099 return (void *)((wxObject *) ((wxMetaFile *) x));
19100 }
19101 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19102 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19103 }
19104 static void *_p_wxColourTo_p_wxObject(void *x) {
19105 return (void *)((wxObject *) ((wxColour *) x));
19106 }
19107 static void *_p_wxFontListTo_p_wxObject(void *x) {
19108 return (void *)((wxObject *) ((wxFontList *) x));
19109 }
19110 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19111 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19112 }
19113 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19114 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19115 }
19116 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19117 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19118 }
19119 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19120 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19121 }
19122 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19123 return (void *)((wxDC *) ((wxScreenDC *) x));
19124 }
19125 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19126 return (void *)((wxDC *) ((wxMirrorDC *) x));
19127 }
19128 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19129 return (void *)((wxDC *) ((wxMemoryDC *) x));
19130 }
19131 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19132 return (void *)((wxDC *) ((wxWindowDC *) x));
19133 }
19134 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19135 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19136 }
19137 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19138 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19139 }
19140 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19141 return (void *)((wxDC *) ((wxClientDC *) x));
19142 }
19143 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19144 return (void *)((wxDC *) ((wxPaintDC *) x));
19145 }
19146 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19147 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19148 }
19149 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19150 return (void *)((wxDC *) ((wxPrinterDC *) x));
19151 }
19152 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
19153 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
19154 }
19155 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19156 return (void *)((wxGDIObject *) ((wxIcon *) x));
19157 }
19158 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19159 return (void *)((wxGDIObject *) ((wxPalette *) x));
19160 }
19161 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19162 return (void *)((wxGDIObject *) ((wxPen *) x));
19163 }
19164 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19165 return (void *)((wxGDIObject *) ((wxFont *) x));
19166 }
19167 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19168 return (void *)((wxGDIObject *) ((wxCursor *) x));
19169 }
19170 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19171 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19172 }
19173 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19174 return (void *)((wxGDIObject *) ((wxRegion *) x));
19175 }
19176 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19177 return (void *)((wxGDIObject *) ((wxBrush *) x));
19178 }
19179 static void *_p_wxPyPenTo_p_wxPen(void *x) {
19180 return (void *)((wxPen *) ((wxPyPen *) x));
19181 }
19182 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}};
19183 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}};
19184 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}};
19185 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}};
19186 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}};
19187 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}};
19188 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}};
19189 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}};
19190 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}};
19191 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}};
19192 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}};
19193 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}};
19194 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}};
19195 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}};
19196 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}};
19197 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}};
19198 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}};
19199 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}};
19200 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}};
19201 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}};
19202 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}};
19203 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}};
19204 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}};
19205 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}};
19206 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}};
19207 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}};
19208 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}};
19209 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}};
19210 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}};
19211 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}};
19212 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}};
19213 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}};
19214 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}};
19215 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}};
19216 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}};
19217 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}};
19218 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}};
19219 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}};
19220 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}};
19221 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}};
19222 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}};
19223 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}};
19224 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}};
19225 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}};
19226 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}};
19227 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}};
19228 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}};
19229 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}};
19230 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}};
19231 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}};
19232 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}};
19233 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}};
19234 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}};
19235 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}};
19236 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}};
19237 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}};
19238
19239 static swig_type_info *swig_types_initial[] = {
19240 _swigt__p_wxPostScriptDC,
19241 _swigt__p_wxBrush,
19242 _swigt__p_wxColour,
19243 _swigt__p_wxDC,
19244 _swigt__p_wxMirrorDC,
19245 _swigt__p_byte,
19246 _swigt__p_wxPyFontEnumerator,
19247 _swigt__p_char,
19248 _swigt__p_wxIconLocation,
19249 _swigt__p_wxImage,
19250 _swigt__p_wxMetaFileDC,
19251 _swigt__p_wxMask,
19252 _swigt__p_wxSize,
19253 _swigt__p_wxFont,
19254 _swigt__p_wxWindow,
19255 _swigt__p_double,
19256 _swigt__p_wxMemoryDC,
19257 _swigt__p_wxFontMapper,
19258 _swigt__p_wxEffects,
19259 _swigt__p_wxNativeEncodingInfo,
19260 _swigt__p_wxPalette,
19261 _swigt__p_wxBitmap,
19262 _swigt__p_wxObject,
19263 _swigt__p_wxRegionIterator,
19264 _swigt__p_wxRect,
19265 _swigt__p_wxString,
19266 _swigt__p_wxPrinterDC,
19267 _swigt__p_wxIconBundle,
19268 _swigt__p_wxPoint,
19269 _swigt__p_wxDash,
19270 _swigt__p_wxScreenDC,
19271 _swigt__p_wxCursor,
19272 _swigt__p_wxClientDC,
19273 _swigt__p_wxBufferedDC,
19274 _swigt__p_wxImageList,
19275 _swigt__p_unsigned_char,
19276 _swigt__p_wxGDIObject,
19277 _swigt__p_wxIcon,
19278 _swigt__p_wxLocale,
19279 _swigt__p_wxRegion,
19280 _swigt__p_wxConfigBase,
19281 _swigt__p_wxLanguageInfo,
19282 _swigt__p_wxWindowDC,
19283 _swigt__p_wxPrintData,
19284 _swigt__p_wxBrushList,
19285 _swigt__p_wxFontList,
19286 _swigt__p_wxPen,
19287 _swigt__p_wxBufferedPaintDC,
19288 _swigt__p_wxPaintDC,
19289 _swigt__p_wxPenList,
19290 _swigt__p_wxPyPen,
19291 _swigt__p_int,
19292 _swigt__p_wxMetaFile,
19293 _swigt__p_wxNativeFontInfo,
19294 _swigt__p_wxEncodingConverter,
19295 _swigt__p_wxColourDatabase,
19296 0
19297 };
19298
19299
19300 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19301
19302 static swig_const_info swig_const_table[] = {
19303 {0}};
19304
19305 #ifdef __cplusplus
19306 }
19307 #endif
19308
19309 #ifdef __cplusplus
19310 extern "C"
19311 #endif
19312 SWIGEXPORT(void) SWIG_init(void) {
19313 static PyObject *SWIG_globals = 0;
19314 static int typeinit = 0;
19315 PyObject *m, *d;
19316 int i;
19317 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19318 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19319 d = PyModule_GetDict(m);
19320
19321 if (!typeinit) {
19322 for (i = 0; swig_types_initial[i]; i++) {
19323 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19324 }
19325 typeinit = 1;
19326 }
19327 SWIG_InstallConstants(d,swig_const_table);
19328
19329 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
19330 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
19331 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
19332 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
19333 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
19334 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
19335 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
19336 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
19337 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
19338 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
19339 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
19340 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
19341 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
19342 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
19343 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
19344 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
19345 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
19346 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
19347 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
19348 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
19349 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
19350 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
19351 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
19352 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
19353 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
19354 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
19355 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
19356 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
19357 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
19358 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
19359 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
19360 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
19361 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
19362 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
19363 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
19364 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
19365 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
19366 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
19367 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
19368 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
19369 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
19370 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
19371 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
19372 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
19373 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
19374 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
19375 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
19376 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
19377 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
19378 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U));
19379 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
19380 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
19381 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
19382 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
19383 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
19384 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
19385 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
19386 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
19387 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
19388 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
19389 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
19390 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
19391 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
19392 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
19393 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
19394 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
19395 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
19396 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
19397 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
19398 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
19399 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
19400 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
19401 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
19402 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
19403 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
19404 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
19405 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
19406 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
19407 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
19408 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
19409 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
19410 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
19411 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
19412 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
19413 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
19414 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
19415 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
19416 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
19417 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
19418 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
19419 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
19420 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
19421 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
19422 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
19423 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
19424 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
19425 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
19426 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
19427 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
19428 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
19429 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
19430 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
19431 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
19432 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
19433 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
19434 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
19435 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
19436 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
19437 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
19438 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
19439 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
19440 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
19441 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
19442 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
19443 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
19444 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
19445 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
19446 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
19447 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
19448 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
19449 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
19450 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
19451 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
19452 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
19453 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
19454 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
19455 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
19456
19457 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19458
19459 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
19460 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
19461 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
19462 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
19463 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
19464 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
19465 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
19466 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
19467 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
19468 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
19469 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
19470 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
19471 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
19472 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
19473 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
19474 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
19475 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
19476 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
19477 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
19478 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19479 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
19480 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
19481 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
19482 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
19483 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
19484 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
19485 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
19486 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
19487 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
19488 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
19489 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
19490 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
19491 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
19492 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
19493 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
19494 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
19495 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
19496 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
19497 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
19498 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
19499 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
19500 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
19501 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
19502 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
19503 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19504 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19505 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
19506 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
19507 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
19508 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
19509 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
19510 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
19511 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
19512 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
19513 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
19514 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
19515 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
19516 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
19517 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
19518 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19519 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
19520 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19521 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
19522 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19523 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
19524 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
19525 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
19526 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19527 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19528 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19529 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19530 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19531 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
19532 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
19533 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
19534 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
19535 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
19536 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
19537 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
19538 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
19539 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
19540 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19541 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
19542 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
19543 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
19544 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
19545 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
19546 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
19547 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19548 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
19549 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19550 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19551 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
19552 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
19553 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
19554 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
19555 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
19556 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
19557 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
19558 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
19559 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
19560 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
19561 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
19562 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
19563 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
19564 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
19565 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
19566 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
19567 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
19568 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19569 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
19570 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
19571 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
19572 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
19573 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19574 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
19575 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
19576 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
19577 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
19578 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
19579 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
19580 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
19581 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
19582 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
19583 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
19584 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
19585 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
19586 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
19587 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
19588 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
19589 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
19590 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
19591 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19592 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19593 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
19594 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
19595 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
19596 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
19597 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19598 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
19599 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
19600 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
19601 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
19602 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19603 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19604 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
19605 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
19606 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
19607 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
19608 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
19609 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
19610 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19611 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
19612 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
19613 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
19614 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
19615 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
19616 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19617 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
19618 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
19619 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
19620 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19621 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
19622 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19623 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19624 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19625 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
19626 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
19627 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
19628 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
19629 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
19630 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
19631 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
19632 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
19633 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
19634 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
19635 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19636 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19637 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19638 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19639 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19640 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19641 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19642 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19643 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19644 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19645 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19646 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19647 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19648 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19649 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19650 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19651 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19652 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19653 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
19654 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19655 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
19656 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
19657 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
19658 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19659 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
19660 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
19661 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
19662 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
19663 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
19664 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
19665 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
19666 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
19667 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
19668 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
19669 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
19670 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
19671 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
19672 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
19673 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
19674 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
19675 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
19676 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19677 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
19678 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19679 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19680 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
19681 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
19682 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
19683 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
19684 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
19685 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
19686 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
19687 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
19688 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
19689 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
19690 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
19691 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
19692 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
19693 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
19694 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19695 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
19696 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19697 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
19698 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
19699 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
19700 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
19701 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
19702 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
19703 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
19704 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
19705 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19706 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19707 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19708 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19709 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
19710 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
19711 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
19712 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19713 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19714 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19715 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19716 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19717 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19718 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19719 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19720 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19721 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19722 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19723 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19724 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19725 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19726 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19727 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19728 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19729 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19730 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19731 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19732 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19733 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19734 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19735 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19736 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19737 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19738 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19739 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19740 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19741 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19742 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19743 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19744 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19745 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19746 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19747 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19748 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19749 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19750 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19751 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19752 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19753 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19754 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19755 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19756 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19757 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19758 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
19759
19760 // Work around a chicken/egg problem in drawlist.cpp
19761 wxPyDrawList_SetAPIPtr();
19762
19763 }
19764