]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/gdi_wrap.cpp
Various tweaks, docstring fixes, etc.
[wxWidgets.git] / wxPython / src / msw / 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
610 SWIGSTATICINLINE(int)
611 SWIG_CheckLong(PyObject* obj)
612 {
613 SWIG_AsLong(obj);
614 if (PyErr_Occurred()) {
615 PyErr_Clear();
616 return 0;
617 } else {
618 return 1;
619 }
620 }
621
622 void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
623 wxSize wxBitmap_GetSize(wxBitmap *self){
624 wxSize size(self->GetWidth(), self->GetHeight());
625 return size;
626 }
627 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
628 wxMask *mask = new wxMask(*self, colour);
629 self->SetMask(mask);
630 }
631 void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
632 self->SetWidth(size.x);
633 self->SetHeight(size.y);
634 }
635 bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; }
636 bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; }
637 wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
638 if ( !colour.Ok() )
639 return new wxMask(bitmap, *wxBLACK);
640 else
641 return new wxMask(bitmap, colour);
642 }
643
644 #include <wx/iconbndl.h>
645
646 wxIcon *new_wxIcon(wxBitmap const &bmp){
647 wxIcon* icon = new wxIcon();
648 icon->CopyFromBitmap(bmp);
649 return icon;
650 }
651 wxIcon *new_wxIcon(PyObject *listOfStrings){
652 char** cArray = NULL;
653 wxIcon* icon;
654
655 cArray = ConvertListOfStrings(listOfStrings);
656 if (! cArray)
657 return NULL;
658 icon = new wxIcon(cArray);
659 delete [] cArray;
660 return icon;
661 }
662 void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
663 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
664
665 return new wxIconLocation(*filename, num);
666
667
668
669 }
670 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
671
672 self->SetIndex(num);
673
674
675
676 }
677 int wxIconLocation_GetIndex(wxIconLocation *self){
678
679 return self->GetIndex();
680
681
682
683 }
684 wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
685 #ifdef __WXGTK__
686 wxCHECK_MSG(False, NULL,
687 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
688 #else
689 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
690 #endif
691 }
692 void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
693
694
695 void wxRegionIterator_Next(wxRegionIterator *self){
696 (*self) ++;
697 }
698 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
699 return self->operator bool();
700 }
701
702 #include <wx/fontutil.h>
703 #include <wx/fontmap.h>
704 #include <wx/fontenum.h>
705
706 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
707 return self->ToString();
708 }
709
710 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
711 { wxPyRaiseNotImplemented(); return NULL; }
712
713 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
714 { wxPyRaiseNotImplemented(); return False; }
715
716 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
717 wxFontEncoding alt_enc;
718 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
719 return PyInt_FromLong(alt_enc);
720 else {
721 Py_INCREF(Py_None);
722 return Py_None;
723 }
724 }
725 wxFont *new_wxFont(wxString const &info){
726 wxNativeFontInfo nfi;
727 nfi.FromString(info);
728 return new wxFont(nfi);
729 }
730 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
731 return wxFont::New(pointSize, family, flags, face, encoding);
732 }
733 bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
734 bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
735
736 class wxPyFontEnumerator : public wxFontEnumerator {
737 public:
738 wxPyFontEnumerator() {}
739 ~wxPyFontEnumerator() {}
740
741 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
742 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
743
744 PYPRIVATE;
745 };
746
747 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
748 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
749
750
751 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
752 wxArrayString* arr = self->GetEncodings();
753 return wxArrayString2PyList_helper(*arr);
754 }
755 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
756 wxArrayString* arr = self->GetFacenames();
757 return wxArrayString2PyList_helper(*arr);
758 }
759
760
761
762 #include "wx/wxPython/pydrawxxx.h"
763
764 wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
765 wxColour col;
766 self->GetPixel(x, y, &col);
767 return col;
768 }
769 wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
770 wxColour col;
771 self->GetPixel(pt, &col);
772 return col;
773 }
774
775 SWIGSTATICINLINE(double)
776 SWIG_AsDouble(PyObject *obj)
777 {
778 if (PyNumber_Check(obj))
779 return PyFloat_AsDouble(obj);
780 else {
781 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
782 obj->ob_type->tp_name);
783 PyErr_SetObject(PyExc_TypeError, errmsg);
784 Py_DECREF(errmsg);
785 return 0;
786 }
787 }
788
789
790 SWIGSTATICINLINE(int)
791 SWIG_CheckDouble(PyObject* obj)
792 {
793 SWIG_AsDouble(obj);
794 if (PyErr_Occurred()) {
795 PyErr_Clear();
796 return 0;
797 } else {
798 return 1;
799 }
800 }
801
802 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
803 wxRect rv;
804 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
805 return rv;
806 }
807 wxRect wxDC_GetClippingRect(wxDC *self){
808 wxRect rect;
809 self->GetClippingBox(rect);
810 return rect;
811 }
812 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
813 wxArrayInt widths;
814 self->GetPartialTextExtents(text, widths);
815 return widths;
816 }
817 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
818 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
819 }
820 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
821 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
822 }
823 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
824 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
825 }
826 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
827 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
828 }
829 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
830 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
831 }
832 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
833 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
834 }
835
836 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
837 *x1 = dc->MinX();
838 *y1 = dc->MinY();
839 *x2 = dc->MaxX();
840 *y2 = dc->MaxY();
841 }
842
843
844 //-=-=-=-=-=-=-=-=-=-=-
845
846 #if 1
847 // Use the standard wxBufferedDC
848 #include <wx/dcbuffer.h>
849
850 #else
851
852 // Or, temporarily put a set of classes here similar to the old buffered DC
853 // classes until the real ones can be fixed to work "correctly" again.
854
855 class wxBufferedDC : public wxMemoryDC
856 {
857 private:
858 wxDC *m_dc;
859 wxBitmap m_buffer;
860
861 public:
862
863 wxBufferedDC() : m_dc( 0 ) {}
864
865 wxBufferedDC( wxDC *dc, const wxBitmap &buffer )
866 : m_dc( dc ), m_buffer( buffer )
867 {
868 SelectObject( m_buffer );
869 }
870
871 wxBufferedDC( wxDC *dc, const wxSize &area )
872 : m_dc( dc ), m_buffer( area.GetWidth(), area.GetHeight() )
873 {
874 SelectObject( m_buffer );
875 }
876
877 ~wxBufferedDC() {
878 if( m_dc != 0 )
879 UnMask();
880 }
881
882
883 void Init( wxDC *dc, const wxBitmap &buffer ) {
884 wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap,
885 _T("wxBufferedDC already initialised") );
886 m_dc = dc;
887 m_buffer = buffer;
888 SelectObject( m_buffer );
889 }
890
891 void Init( wxDC *dc, const wxSize &area ) {
892 wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap,
893 _T("wxBufferedDC already initialised") );
894 m_dc = dc;
895 m_buffer = wxBitmap( area.GetWidth(), area.GetHeight() );
896 SelectObject( m_buffer );
897 }
898
899 void UnMask() {
900 wxASSERT_MSG( m_dc != 0, _T("No low level DC associated with buffer (anymore)") );
901 m_dc->Blit( 0, 0, m_buffer.GetWidth(), m_buffer.GetHeight(), this, 0, 0 );
902 m_dc = 0;
903 }
904 };
905
906
907 class wxBufferedPaintDC : public wxBufferedDC
908 {
909 private:
910 wxPaintDC m_paintdc;
911
912 public:
913 wxBufferedPaintDC( wxWindow *window, const wxBitmap &buffer = wxNullBitmap )
914 : m_paintdc( window )
915 {
916 window->PrepareDC( m_paintdc );
917
918 if( buffer != wxNullBitmap )
919 Init( &m_paintdc, buffer );
920 else
921 Init( &m_paintdc, window->GetClientSize() );
922 }
923
924 ~wxBufferedPaintDC() {
925 UnMask();
926 }
927 };
928
929 #endif
930 //-=-=-=-=-=-=-=-=-=-=-
931
932
933 #include <wx/dcps.h>
934
935
936 #include <wx/metafile.h>
937
938
939
940 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
941 self->AddColour(name, wxColour(red, green, blue));
942 }
943
944 #include <wx/effects.h>
945
946 #ifdef __cplusplus
947 extern "C" {
948 #endif
949 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
950 PyObject *resultobj;
951 wxGDIObject *result;
952 char *kwnames[] = {
953 NULL
954 };
955
956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
957 {
958 PyThreadState* __tstate = wxPyBeginAllowThreads();
959 result = (wxGDIObject *)new wxGDIObject();
960
961 wxPyEndAllowThreads(__tstate);
962 if (PyErr_Occurred()) SWIG_fail;
963 }
964 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
965 return resultobj;
966 fail:
967 return NULL;
968 }
969
970
971 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
972 PyObject *resultobj;
973 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
974 PyObject * obj0 = 0 ;
975 char *kwnames[] = {
976 (char *) "self", NULL
977 };
978
979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
982 {
983 PyThreadState* __tstate = wxPyBeginAllowThreads();
984 delete arg1;
985
986 wxPyEndAllowThreads(__tstate);
987 if (PyErr_Occurred()) SWIG_fail;
988 }
989 Py_INCREF(Py_None); resultobj = Py_None;
990 return resultobj;
991 fail:
992 return NULL;
993 }
994
995
996 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
997 PyObject *resultobj;
998 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
999 bool result;
1000 PyObject * obj0 = 0 ;
1001 char *kwnames[] = {
1002 (char *) "self", NULL
1003 };
1004
1005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
1006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1008 {
1009 PyThreadState* __tstate = wxPyBeginAllowThreads();
1010 result = (bool)(arg1)->GetVisible();
1011
1012 wxPyEndAllowThreads(__tstate);
1013 if (PyErr_Occurred()) SWIG_fail;
1014 }
1015 {
1016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1017 }
1018 return resultobj;
1019 fail:
1020 return NULL;
1021 }
1022
1023
1024 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1025 PyObject *resultobj;
1026 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1027 bool arg2 ;
1028 PyObject * obj0 = 0 ;
1029 PyObject * obj1 = 0 ;
1030 char *kwnames[] = {
1031 (char *) "self",(char *) "visible", NULL
1032 };
1033
1034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
1035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1037 arg2 = (bool) SWIG_AsBool(obj1);
1038 if (PyErr_Occurred()) SWIG_fail;
1039 {
1040 PyThreadState* __tstate = wxPyBeginAllowThreads();
1041 (arg1)->SetVisible(arg2);
1042
1043 wxPyEndAllowThreads(__tstate);
1044 if (PyErr_Occurred()) SWIG_fail;
1045 }
1046 Py_INCREF(Py_None); resultobj = Py_None;
1047 return resultobj;
1048 fail:
1049 return NULL;
1050 }
1051
1052
1053 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1054 PyObject *resultobj;
1055 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1056 bool result;
1057 PyObject * obj0 = 0 ;
1058 char *kwnames[] = {
1059 (char *) "self", NULL
1060 };
1061
1062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
1063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1065 {
1066 PyThreadState* __tstate = wxPyBeginAllowThreads();
1067 result = (bool)(arg1)->IsNull();
1068
1069 wxPyEndAllowThreads(__tstate);
1070 if (PyErr_Occurred()) SWIG_fail;
1071 }
1072 {
1073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1074 }
1075 return resultobj;
1076 fail:
1077 return NULL;
1078 }
1079
1080
1081 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
1082 PyObject *obj;
1083 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1084 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1085 Py_INCREF(obj);
1086 return Py_BuildValue((char *)"");
1087 }
1088 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1089 PyObject *resultobj;
1090 unsigned char arg1 = (unsigned char) 0 ;
1091 unsigned char arg2 = (unsigned char) 0 ;
1092 unsigned char arg3 = (unsigned char) 0 ;
1093 wxColour *result;
1094 PyObject * obj0 = 0 ;
1095 PyObject * obj1 = 0 ;
1096 PyObject * obj2 = 0 ;
1097 char *kwnames[] = {
1098 (char *) "red",(char *) "green",(char *) "blue", NULL
1099 };
1100
1101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1102 if (obj0) {
1103 arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0);
1104 if (PyErr_Occurred()) SWIG_fail;
1105 }
1106 if (obj1) {
1107 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1108 if (PyErr_Occurred()) SWIG_fail;
1109 }
1110 if (obj2) {
1111 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1112 if (PyErr_Occurred()) SWIG_fail;
1113 }
1114 {
1115 PyThreadState* __tstate = wxPyBeginAllowThreads();
1116 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1117
1118 wxPyEndAllowThreads(__tstate);
1119 if (PyErr_Occurred()) SWIG_fail;
1120 }
1121 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1122 return resultobj;
1123 fail:
1124 return NULL;
1125 }
1126
1127
1128 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1129 PyObject *resultobj;
1130 wxString *arg1 = 0 ;
1131 wxColour *result;
1132 bool temp1 = False ;
1133 PyObject * obj0 = 0 ;
1134 char *kwnames[] = {
1135 (char *) "colorName", NULL
1136 };
1137
1138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1139 {
1140 arg1 = wxString_in_helper(obj0);
1141 if (arg1 == NULL) SWIG_fail;
1142 temp1 = True;
1143 }
1144 {
1145 PyThreadState* __tstate = wxPyBeginAllowThreads();
1146 result = (wxColour *)new wxColour((wxString const &)*arg1);
1147
1148 wxPyEndAllowThreads(__tstate);
1149 if (PyErr_Occurred()) SWIG_fail;
1150 }
1151 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1152 {
1153 if (temp1)
1154 delete arg1;
1155 }
1156 return resultobj;
1157 fail:
1158 {
1159 if (temp1)
1160 delete arg1;
1161 }
1162 return NULL;
1163 }
1164
1165
1166 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1167 PyObject *resultobj;
1168 unsigned long arg1 ;
1169 wxColour *result;
1170 PyObject * obj0 = 0 ;
1171 char *kwnames[] = {
1172 (char *) "colRGB", NULL
1173 };
1174
1175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1176 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1177 if (PyErr_Occurred()) SWIG_fail;
1178 {
1179 PyThreadState* __tstate = wxPyBeginAllowThreads();
1180 result = (wxColour *)new wxColour(arg1);
1181
1182 wxPyEndAllowThreads(__tstate);
1183 if (PyErr_Occurred()) SWIG_fail;
1184 }
1185 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1186 return resultobj;
1187 fail:
1188 return NULL;
1189 }
1190
1191
1192 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1193 PyObject *resultobj;
1194 wxColour *arg1 = (wxColour *) 0 ;
1195 PyObject * obj0 = 0 ;
1196 char *kwnames[] = {
1197 (char *) "self", NULL
1198 };
1199
1200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1203 {
1204 PyThreadState* __tstate = wxPyBeginAllowThreads();
1205 delete arg1;
1206
1207 wxPyEndAllowThreads(__tstate);
1208 if (PyErr_Occurred()) SWIG_fail;
1209 }
1210 Py_INCREF(Py_None); resultobj = Py_None;
1211 return resultobj;
1212 fail:
1213 return NULL;
1214 }
1215
1216
1217 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1218 PyObject *resultobj;
1219 wxColour *arg1 = (wxColour *) 0 ;
1220 unsigned char result;
1221 PyObject * obj0 = 0 ;
1222 char *kwnames[] = {
1223 (char *) "self", NULL
1224 };
1225
1226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1229 {
1230 PyThreadState* __tstate = wxPyBeginAllowThreads();
1231 result = (unsigned char)(arg1)->Red();
1232
1233 wxPyEndAllowThreads(__tstate);
1234 if (PyErr_Occurred()) SWIG_fail;
1235 }
1236 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1237 return resultobj;
1238 fail:
1239 return NULL;
1240 }
1241
1242
1243 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1244 PyObject *resultobj;
1245 wxColour *arg1 = (wxColour *) 0 ;
1246 unsigned char result;
1247 PyObject * obj0 = 0 ;
1248 char *kwnames[] = {
1249 (char *) "self", NULL
1250 };
1251
1252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1255 {
1256 PyThreadState* __tstate = wxPyBeginAllowThreads();
1257 result = (unsigned char)(arg1)->Green();
1258
1259 wxPyEndAllowThreads(__tstate);
1260 if (PyErr_Occurred()) SWIG_fail;
1261 }
1262 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1263 return resultobj;
1264 fail:
1265 return NULL;
1266 }
1267
1268
1269 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1270 PyObject *resultobj;
1271 wxColour *arg1 = (wxColour *) 0 ;
1272 unsigned char result;
1273 PyObject * obj0 = 0 ;
1274 char *kwnames[] = {
1275 (char *) "self", NULL
1276 };
1277
1278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1281 {
1282 PyThreadState* __tstate = wxPyBeginAllowThreads();
1283 result = (unsigned char)(arg1)->Blue();
1284
1285 wxPyEndAllowThreads(__tstate);
1286 if (PyErr_Occurred()) SWIG_fail;
1287 }
1288 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1289 return resultobj;
1290 fail:
1291 return NULL;
1292 }
1293
1294
1295 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1296 PyObject *resultobj;
1297 wxColour *arg1 = (wxColour *) 0 ;
1298 bool result;
1299 PyObject * obj0 = 0 ;
1300 char *kwnames[] = {
1301 (char *) "self", NULL
1302 };
1303
1304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1307 {
1308 PyThreadState* __tstate = wxPyBeginAllowThreads();
1309 result = (bool)(arg1)->Ok();
1310
1311 wxPyEndAllowThreads(__tstate);
1312 if (PyErr_Occurred()) SWIG_fail;
1313 }
1314 {
1315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1316 }
1317 return resultobj;
1318 fail:
1319 return NULL;
1320 }
1321
1322
1323 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1324 PyObject *resultobj;
1325 wxColour *arg1 = (wxColour *) 0 ;
1326 unsigned char arg2 ;
1327 unsigned char arg3 ;
1328 unsigned char arg4 ;
1329 PyObject * obj0 = 0 ;
1330 PyObject * obj1 = 0 ;
1331 PyObject * obj2 = 0 ;
1332 PyObject * obj3 = 0 ;
1333 char *kwnames[] = {
1334 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1335 };
1336
1337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1340 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1341 if (PyErr_Occurred()) SWIG_fail;
1342 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1343 if (PyErr_Occurred()) SWIG_fail;
1344 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
1345 if (PyErr_Occurred()) SWIG_fail;
1346 {
1347 PyThreadState* __tstate = wxPyBeginAllowThreads();
1348 (arg1)->Set(arg2,arg3,arg4);
1349
1350 wxPyEndAllowThreads(__tstate);
1351 if (PyErr_Occurred()) SWIG_fail;
1352 }
1353 Py_INCREF(Py_None); resultobj = Py_None;
1354 return resultobj;
1355 fail:
1356 return NULL;
1357 }
1358
1359
1360 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1361 PyObject *resultobj;
1362 wxColour *arg1 = (wxColour *) 0 ;
1363 unsigned long arg2 ;
1364 PyObject * obj0 = 0 ;
1365 PyObject * obj1 = 0 ;
1366 char *kwnames[] = {
1367 (char *) "self",(char *) "colRGB", NULL
1368 };
1369
1370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1373 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1374 if (PyErr_Occurred()) SWIG_fail;
1375 {
1376 PyThreadState* __tstate = wxPyBeginAllowThreads();
1377 (arg1)->Set(arg2);
1378
1379 wxPyEndAllowThreads(__tstate);
1380 if (PyErr_Occurred()) SWIG_fail;
1381 }
1382 Py_INCREF(Py_None); resultobj = Py_None;
1383 return resultobj;
1384 fail:
1385 return NULL;
1386 }
1387
1388
1389 static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1390 PyObject *resultobj;
1391 wxColour *arg1 = (wxColour *) 0 ;
1392 wxString *arg2 = 0 ;
1393 bool temp2 = False ;
1394 PyObject * obj0 = 0 ;
1395 PyObject * obj1 = 0 ;
1396 char *kwnames[] = {
1397 (char *) "self",(char *) "colourName", NULL
1398 };
1399
1400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1403 {
1404 arg2 = wxString_in_helper(obj1);
1405 if (arg2 == NULL) SWIG_fail;
1406 temp2 = True;
1407 }
1408 {
1409 PyThreadState* __tstate = wxPyBeginAllowThreads();
1410 (arg1)->InitFromName((wxString const &)*arg2);
1411
1412 wxPyEndAllowThreads(__tstate);
1413 if (PyErr_Occurred()) SWIG_fail;
1414 }
1415 Py_INCREF(Py_None); resultobj = Py_None;
1416 {
1417 if (temp2)
1418 delete arg2;
1419 }
1420 return resultobj;
1421 fail:
1422 {
1423 if (temp2)
1424 delete arg2;
1425 }
1426 return NULL;
1427 }
1428
1429
1430 static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1431 PyObject *resultobj;
1432 wxColour *arg1 = (wxColour *) 0 ;
1433 long result;
1434 PyObject * obj0 = 0 ;
1435 char *kwnames[] = {
1436 (char *) "self", NULL
1437 };
1438
1439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1442 {
1443 PyThreadState* __tstate = wxPyBeginAllowThreads();
1444 result = (long)((wxColour const *)arg1)->GetPixel();
1445
1446 wxPyEndAllowThreads(__tstate);
1447 if (PyErr_Occurred()) SWIG_fail;
1448 }
1449 resultobj = SWIG_FromLong((long)result);
1450 return resultobj;
1451 fail:
1452 return NULL;
1453 }
1454
1455
1456 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1457 PyObject *resultobj;
1458 wxColour *arg1 = (wxColour *) 0 ;
1459 wxColour *arg2 = 0 ;
1460 bool result;
1461 wxColour temp2 ;
1462 PyObject * obj0 = 0 ;
1463 PyObject * obj1 = 0 ;
1464 char *kwnames[] = {
1465 (char *) "self",(char *) "colour", NULL
1466 };
1467
1468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1471 {
1472 arg2 = &temp2;
1473 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1474 }
1475 {
1476 PyThreadState* __tstate = wxPyBeginAllowThreads();
1477 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1478
1479 wxPyEndAllowThreads(__tstate);
1480 if (PyErr_Occurred()) SWIG_fail;
1481 }
1482 {
1483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1484 }
1485 return resultobj;
1486 fail:
1487 return NULL;
1488 }
1489
1490
1491 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1492 PyObject *resultobj;
1493 wxColour *arg1 = (wxColour *) 0 ;
1494 wxColour *arg2 = 0 ;
1495 bool result;
1496 wxColour temp2 ;
1497 PyObject * obj0 = 0 ;
1498 PyObject * obj1 = 0 ;
1499 char *kwnames[] = {
1500 (char *) "self",(char *) "colour", NULL
1501 };
1502
1503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1506 {
1507 arg2 = &temp2;
1508 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1509 }
1510 {
1511 PyThreadState* __tstate = wxPyBeginAllowThreads();
1512 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1513
1514 wxPyEndAllowThreads(__tstate);
1515 if (PyErr_Occurred()) SWIG_fail;
1516 }
1517 {
1518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1519 }
1520 return resultobj;
1521 fail:
1522 return NULL;
1523 }
1524
1525
1526 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1527 PyObject *resultobj;
1528 wxColour *arg1 = (wxColour *) 0 ;
1529 PyObject *result;
1530 PyObject * obj0 = 0 ;
1531 char *kwnames[] = {
1532 (char *) "self", NULL
1533 };
1534
1535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1538 {
1539 PyThreadState* __tstate = wxPyBeginAllowThreads();
1540 result = (PyObject *)wxColour_Get(arg1);
1541
1542 wxPyEndAllowThreads(__tstate);
1543 if (PyErr_Occurred()) SWIG_fail;
1544 }
1545 resultobj = result;
1546 return resultobj;
1547 fail:
1548 return NULL;
1549 }
1550
1551
1552 static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1553 PyObject *resultobj;
1554 wxColour *arg1 = (wxColour *) 0 ;
1555 unsigned long result;
1556 PyObject * obj0 = 0 ;
1557 char *kwnames[] = {
1558 (char *) "self", NULL
1559 };
1560
1561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1564 {
1565 PyThreadState* __tstate = wxPyBeginAllowThreads();
1566 result = (unsigned long)wxColour_GetRGB(arg1);
1567
1568 wxPyEndAllowThreads(__tstate);
1569 if (PyErr_Occurred()) SWIG_fail;
1570 }
1571 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
1572 return resultobj;
1573 fail:
1574 return NULL;
1575 }
1576
1577
1578 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1579 PyObject *obj;
1580 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1581 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1582 Py_INCREF(obj);
1583 return Py_BuildValue((char *)"");
1584 }
1585 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1586 PyObject *resultobj;
1587 int arg1 ;
1588 unsigned char *arg2 = (unsigned char *) 0 ;
1589 unsigned char *arg3 = (unsigned char *) 0 ;
1590 unsigned char *arg4 = (unsigned char *) 0 ;
1591 wxPalette *result;
1592 PyObject * obj0 = 0 ;
1593 PyObject * obj1 = 0 ;
1594 PyObject * obj2 = 0 ;
1595 PyObject * obj3 = 0 ;
1596 char *kwnames[] = {
1597 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1598 };
1599
1600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1601 arg1 = (int) SWIG_AsInt(obj0);
1602 if (PyErr_Occurred()) SWIG_fail;
1603 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1605 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1607 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1609 {
1610 PyThreadState* __tstate = wxPyBeginAllowThreads();
1611 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1612
1613 wxPyEndAllowThreads(__tstate);
1614 if (PyErr_Occurred()) SWIG_fail;
1615 }
1616 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1617 return resultobj;
1618 fail:
1619 return NULL;
1620 }
1621
1622
1623 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1624 PyObject *resultobj;
1625 wxPalette *arg1 = (wxPalette *) 0 ;
1626 PyObject * obj0 = 0 ;
1627 char *kwnames[] = {
1628 (char *) "self", NULL
1629 };
1630
1631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1634 {
1635 PyThreadState* __tstate = wxPyBeginAllowThreads();
1636 delete arg1;
1637
1638 wxPyEndAllowThreads(__tstate);
1639 if (PyErr_Occurred()) SWIG_fail;
1640 }
1641 Py_INCREF(Py_None); resultobj = Py_None;
1642 return resultobj;
1643 fail:
1644 return NULL;
1645 }
1646
1647
1648 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1649 PyObject *resultobj;
1650 wxPalette *arg1 = (wxPalette *) 0 ;
1651 byte arg2 ;
1652 byte arg3 ;
1653 byte arg4 ;
1654 int result;
1655 PyObject * obj0 = 0 ;
1656 PyObject * obj1 = 0 ;
1657 PyObject * obj2 = 0 ;
1658 PyObject * obj3 = 0 ;
1659 char *kwnames[] = {
1660 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1661 };
1662
1663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1666 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1667 if (PyErr_Occurred()) SWIG_fail;
1668 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1669 if (PyErr_Occurred()) SWIG_fail;
1670 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1671 if (PyErr_Occurred()) SWIG_fail;
1672 {
1673 PyThreadState* __tstate = wxPyBeginAllowThreads();
1674 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1675
1676 wxPyEndAllowThreads(__tstate);
1677 if (PyErr_Occurred()) SWIG_fail;
1678 }
1679 resultobj = SWIG_FromInt((int)result);
1680 return resultobj;
1681 fail:
1682 return NULL;
1683 }
1684
1685
1686 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1687 PyObject *resultobj;
1688 wxPalette *arg1 = (wxPalette *) 0 ;
1689 int arg2 ;
1690 byte *arg3 = (byte *) 0 ;
1691 byte *arg4 = (byte *) 0 ;
1692 byte *arg5 = (byte *) 0 ;
1693 bool result;
1694 byte temp3 ;
1695 byte temp4 ;
1696 byte temp5 ;
1697 PyObject * obj0 = 0 ;
1698 PyObject * obj1 = 0 ;
1699 char *kwnames[] = {
1700 (char *) "self",(char *) "pixel", NULL
1701 };
1702
1703 arg3 = &temp3;
1704 arg4 = &temp4;
1705 arg5 = &temp5;
1706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1709 arg2 = (int) SWIG_AsInt(obj1);
1710 if (PyErr_Occurred()) SWIG_fail;
1711 {
1712 PyThreadState* __tstate = wxPyBeginAllowThreads();
1713 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1714
1715 wxPyEndAllowThreads(__tstate);
1716 if (PyErr_Occurred()) SWIG_fail;
1717 }
1718 {
1719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1720 }
1721 {
1722 PyObject *o = PyInt_FromLong((long) (*arg3));
1723 resultobj = t_output_helper(resultobj,o);
1724 }
1725 {
1726 PyObject *o = PyInt_FromLong((long) (*arg4));
1727 resultobj = t_output_helper(resultobj,o);
1728 }
1729 {
1730 PyObject *o = PyInt_FromLong((long) (*arg5));
1731 resultobj = t_output_helper(resultobj,o);
1732 }
1733 return resultobj;
1734 fail:
1735 return NULL;
1736 }
1737
1738
1739 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1740 PyObject *resultobj;
1741 wxPalette *arg1 = (wxPalette *) 0 ;
1742 bool result;
1743 PyObject * obj0 = 0 ;
1744 char *kwnames[] = {
1745 (char *) "self", NULL
1746 };
1747
1748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1751 {
1752 PyThreadState* __tstate = wxPyBeginAllowThreads();
1753 result = (bool)(arg1)->Ok();
1754
1755 wxPyEndAllowThreads(__tstate);
1756 if (PyErr_Occurred()) SWIG_fail;
1757 }
1758 {
1759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1760 }
1761 return resultobj;
1762 fail:
1763 return NULL;
1764 }
1765
1766
1767 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1768 PyObject *obj;
1769 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1770 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1771 Py_INCREF(obj);
1772 return Py_BuildValue((char *)"");
1773 }
1774 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1775 PyObject *resultobj;
1776 wxColour *arg1 = 0 ;
1777 int arg2 = (int) 1 ;
1778 int arg3 = (int) wxSOLID ;
1779 wxPen *result;
1780 wxColour temp1 ;
1781 PyObject * obj0 = 0 ;
1782 PyObject * obj1 = 0 ;
1783 PyObject * obj2 = 0 ;
1784 char *kwnames[] = {
1785 (char *) "colour",(char *) "width",(char *) "style", NULL
1786 };
1787
1788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1789 {
1790 arg1 = &temp1;
1791 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1792 }
1793 if (obj1) {
1794 arg2 = (int) SWIG_AsInt(obj1);
1795 if (PyErr_Occurred()) SWIG_fail;
1796 }
1797 if (obj2) {
1798 arg3 = (int) SWIG_AsInt(obj2);
1799 if (PyErr_Occurred()) SWIG_fail;
1800 }
1801 {
1802 PyThreadState* __tstate = wxPyBeginAllowThreads();
1803 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1804
1805 wxPyEndAllowThreads(__tstate);
1806 if (PyErr_Occurred()) SWIG_fail;
1807 }
1808 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1809 return resultobj;
1810 fail:
1811 return NULL;
1812 }
1813
1814
1815 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1816 PyObject *resultobj;
1817 wxPen *arg1 = (wxPen *) 0 ;
1818 PyObject * obj0 = 0 ;
1819 char *kwnames[] = {
1820 (char *) "self", NULL
1821 };
1822
1823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1826 {
1827 PyThreadState* __tstate = wxPyBeginAllowThreads();
1828 delete arg1;
1829
1830 wxPyEndAllowThreads(__tstate);
1831 if (PyErr_Occurred()) SWIG_fail;
1832 }
1833 Py_INCREF(Py_None); resultobj = Py_None;
1834 return resultobj;
1835 fail:
1836 return NULL;
1837 }
1838
1839
1840 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1841 PyObject *resultobj;
1842 wxPen *arg1 = (wxPen *) 0 ;
1843 int result;
1844 PyObject * obj0 = 0 ;
1845 char *kwnames[] = {
1846 (char *) "self", NULL
1847 };
1848
1849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1852 {
1853 PyThreadState* __tstate = wxPyBeginAllowThreads();
1854 result = (int)(arg1)->GetCap();
1855
1856 wxPyEndAllowThreads(__tstate);
1857 if (PyErr_Occurred()) SWIG_fail;
1858 }
1859 resultobj = SWIG_FromInt((int)result);
1860 return resultobj;
1861 fail:
1862 return NULL;
1863 }
1864
1865
1866 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1867 PyObject *resultobj;
1868 wxPen *arg1 = (wxPen *) 0 ;
1869 wxColour result;
1870 PyObject * obj0 = 0 ;
1871 char *kwnames[] = {
1872 (char *) "self", NULL
1873 };
1874
1875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1878 {
1879 PyThreadState* __tstate = wxPyBeginAllowThreads();
1880 result = (arg1)->GetColour();
1881
1882 wxPyEndAllowThreads(__tstate);
1883 if (PyErr_Occurred()) SWIG_fail;
1884 }
1885 {
1886 wxColour * resultptr;
1887 resultptr = new wxColour((wxColour &) result);
1888 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1889 }
1890 return resultobj;
1891 fail:
1892 return NULL;
1893 }
1894
1895
1896 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1897 PyObject *resultobj;
1898 wxPen *arg1 = (wxPen *) 0 ;
1899 int result;
1900 PyObject * obj0 = 0 ;
1901 char *kwnames[] = {
1902 (char *) "self", NULL
1903 };
1904
1905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1908 {
1909 PyThreadState* __tstate = wxPyBeginAllowThreads();
1910 result = (int)(arg1)->GetJoin();
1911
1912 wxPyEndAllowThreads(__tstate);
1913 if (PyErr_Occurred()) SWIG_fail;
1914 }
1915 resultobj = SWIG_FromInt((int)result);
1916 return resultobj;
1917 fail:
1918 return NULL;
1919 }
1920
1921
1922 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1923 PyObject *resultobj;
1924 wxPen *arg1 = (wxPen *) 0 ;
1925 int result;
1926 PyObject * obj0 = 0 ;
1927 char *kwnames[] = {
1928 (char *) "self", NULL
1929 };
1930
1931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1934 {
1935 PyThreadState* __tstate = wxPyBeginAllowThreads();
1936 result = (int)(arg1)->GetStyle();
1937
1938 wxPyEndAllowThreads(__tstate);
1939 if (PyErr_Occurred()) SWIG_fail;
1940 }
1941 resultobj = SWIG_FromInt((int)result);
1942 return resultobj;
1943 fail:
1944 return NULL;
1945 }
1946
1947
1948 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1949 PyObject *resultobj;
1950 wxPen *arg1 = (wxPen *) 0 ;
1951 int result;
1952 PyObject * obj0 = 0 ;
1953 char *kwnames[] = {
1954 (char *) "self", NULL
1955 };
1956
1957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1960 {
1961 PyThreadState* __tstate = wxPyBeginAllowThreads();
1962 result = (int)(arg1)->GetWidth();
1963
1964 wxPyEndAllowThreads(__tstate);
1965 if (PyErr_Occurred()) SWIG_fail;
1966 }
1967 resultobj = SWIG_FromInt((int)result);
1968 return resultobj;
1969 fail:
1970 return NULL;
1971 }
1972
1973
1974 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1975 PyObject *resultobj;
1976 wxPen *arg1 = (wxPen *) 0 ;
1977 bool result;
1978 PyObject * obj0 = 0 ;
1979 char *kwnames[] = {
1980 (char *) "self", NULL
1981 };
1982
1983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1986 {
1987 PyThreadState* __tstate = wxPyBeginAllowThreads();
1988 result = (bool)(arg1)->Ok();
1989
1990 wxPyEndAllowThreads(__tstate);
1991 if (PyErr_Occurred()) SWIG_fail;
1992 }
1993 {
1994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1995 }
1996 return resultobj;
1997 fail:
1998 return NULL;
1999 }
2000
2001
2002 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
2003 PyObject *resultobj;
2004 wxPen *arg1 = (wxPen *) 0 ;
2005 int arg2 ;
2006 PyObject * obj0 = 0 ;
2007 PyObject * obj1 = 0 ;
2008 char *kwnames[] = {
2009 (char *) "self",(char *) "cap_style", NULL
2010 };
2011
2012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
2013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2015 arg2 = (int) SWIG_AsInt(obj1);
2016 if (PyErr_Occurred()) SWIG_fail;
2017 {
2018 PyThreadState* __tstate = wxPyBeginAllowThreads();
2019 (arg1)->SetCap(arg2);
2020
2021 wxPyEndAllowThreads(__tstate);
2022 if (PyErr_Occurred()) SWIG_fail;
2023 }
2024 Py_INCREF(Py_None); resultobj = Py_None;
2025 return resultobj;
2026 fail:
2027 return NULL;
2028 }
2029
2030
2031 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2032 PyObject *resultobj;
2033 wxPen *arg1 = (wxPen *) 0 ;
2034 wxColour *arg2 = 0 ;
2035 wxColour temp2 ;
2036 PyObject * obj0 = 0 ;
2037 PyObject * obj1 = 0 ;
2038 char *kwnames[] = {
2039 (char *) "self",(char *) "colour", NULL
2040 };
2041
2042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
2043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2045 {
2046 arg2 = &temp2;
2047 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2048 }
2049 {
2050 PyThreadState* __tstate = wxPyBeginAllowThreads();
2051 (arg1)->SetColour(*arg2);
2052
2053 wxPyEndAllowThreads(__tstate);
2054 if (PyErr_Occurred()) SWIG_fail;
2055 }
2056 Py_INCREF(Py_None); resultobj = Py_None;
2057 return resultobj;
2058 fail:
2059 return NULL;
2060 }
2061
2062
2063 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
2064 PyObject *resultobj;
2065 wxPen *arg1 = (wxPen *) 0 ;
2066 int arg2 ;
2067 PyObject * obj0 = 0 ;
2068 PyObject * obj1 = 0 ;
2069 char *kwnames[] = {
2070 (char *) "self",(char *) "join_style", NULL
2071 };
2072
2073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2076 arg2 = (int) SWIG_AsInt(obj1);
2077 if (PyErr_Occurred()) SWIG_fail;
2078 {
2079 PyThreadState* __tstate = wxPyBeginAllowThreads();
2080 (arg1)->SetJoin(arg2);
2081
2082 wxPyEndAllowThreads(__tstate);
2083 if (PyErr_Occurred()) SWIG_fail;
2084 }
2085 Py_INCREF(Py_None); resultobj = Py_None;
2086 return resultobj;
2087 fail:
2088 return NULL;
2089 }
2090
2091
2092 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2093 PyObject *resultobj;
2094 wxPen *arg1 = (wxPen *) 0 ;
2095 int arg2 ;
2096 PyObject * obj0 = 0 ;
2097 PyObject * obj1 = 0 ;
2098 char *kwnames[] = {
2099 (char *) "self",(char *) "style", NULL
2100 };
2101
2102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2105 arg2 = (int) SWIG_AsInt(obj1);
2106 if (PyErr_Occurred()) SWIG_fail;
2107 {
2108 PyThreadState* __tstate = wxPyBeginAllowThreads();
2109 (arg1)->SetStyle(arg2);
2110
2111 wxPyEndAllowThreads(__tstate);
2112 if (PyErr_Occurred()) SWIG_fail;
2113 }
2114 Py_INCREF(Py_None); resultobj = Py_None;
2115 return resultobj;
2116 fail:
2117 return NULL;
2118 }
2119
2120
2121 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2122 PyObject *resultobj;
2123 wxPen *arg1 = (wxPen *) 0 ;
2124 int arg2 ;
2125 PyObject * obj0 = 0 ;
2126 PyObject * obj1 = 0 ;
2127 char *kwnames[] = {
2128 (char *) "self",(char *) "width", NULL
2129 };
2130
2131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2134 arg2 = (int) SWIG_AsInt(obj1);
2135 if (PyErr_Occurred()) SWIG_fail;
2136 {
2137 PyThreadState* __tstate = wxPyBeginAllowThreads();
2138 (arg1)->SetWidth(arg2);
2139
2140 wxPyEndAllowThreads(__tstate);
2141 if (PyErr_Occurred()) SWIG_fail;
2142 }
2143 Py_INCREF(Py_None); resultobj = Py_None;
2144 return resultobj;
2145 fail:
2146 return NULL;
2147 }
2148
2149
2150 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2151 PyObject *resultobj;
2152 wxPen *arg1 = (wxPen *) 0 ;
2153 int arg2 ;
2154 wxDash *arg3 = (wxDash *) 0 ;
2155 PyObject * obj0 = 0 ;
2156 PyObject * obj1 = 0 ;
2157 char *kwnames[] = {
2158 (char *) "self",(char *) "dashes", NULL
2159 };
2160
2161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2164 {
2165 arg2 = PyList_Size(obj1);
2166 arg3 = (wxDash*)byte_LIST_helper(obj1);
2167 if (arg3 == NULL) SWIG_fail;
2168 }
2169 {
2170 PyThreadState* __tstate = wxPyBeginAllowThreads();
2171 (arg1)->SetDashes(arg2,arg3);
2172
2173 wxPyEndAllowThreads(__tstate);
2174 if (PyErr_Occurred()) SWIG_fail;
2175 }
2176 Py_INCREF(Py_None); resultobj = Py_None;
2177 {
2178 if (arg3) delete [] arg3;
2179 }
2180 return resultobj;
2181 fail:
2182 {
2183 if (arg3) delete [] arg3;
2184 }
2185 return NULL;
2186 }
2187
2188
2189 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2190 PyObject *resultobj;
2191 wxPen *arg1 = (wxPen *) 0 ;
2192 PyObject *result;
2193 PyObject * obj0 = 0 ;
2194 char *kwnames[] = {
2195 (char *) "self", NULL
2196 };
2197
2198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2201 {
2202 PyThreadState* __tstate = wxPyBeginAllowThreads();
2203 result = (PyObject *)wxPen_GetDashes(arg1);
2204
2205 wxPyEndAllowThreads(__tstate);
2206 if (PyErr_Occurred()) SWIG_fail;
2207 }
2208 resultobj = result;
2209 return resultobj;
2210 fail:
2211 return NULL;
2212 }
2213
2214
2215 static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2216 PyObject *resultobj;
2217 wxPen *arg1 = (wxPen *) 0 ;
2218 wxPen *arg2 = (wxPen *) 0 ;
2219 bool result;
2220 PyObject * obj0 = 0 ;
2221 PyObject * obj1 = 0 ;
2222 char *kwnames[] = {
2223 (char *) "self",(char *) "other", NULL
2224 };
2225
2226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2229 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2231 {
2232 PyThreadState* __tstate = wxPyBeginAllowThreads();
2233 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2234
2235 wxPyEndAllowThreads(__tstate);
2236 if (PyErr_Occurred()) SWIG_fail;
2237 }
2238 {
2239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2240 }
2241 return resultobj;
2242 fail:
2243 return NULL;
2244 }
2245
2246
2247 static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2248 PyObject *resultobj;
2249 wxPen *arg1 = (wxPen *) 0 ;
2250 wxPen *arg2 = (wxPen *) 0 ;
2251 bool result;
2252 PyObject * obj0 = 0 ;
2253 PyObject * obj1 = 0 ;
2254 char *kwnames[] = {
2255 (char *) "self",(char *) "other", NULL
2256 };
2257
2258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2261 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2263 {
2264 PyThreadState* __tstate = wxPyBeginAllowThreads();
2265 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2266
2267 wxPyEndAllowThreads(__tstate);
2268 if (PyErr_Occurred()) SWIG_fail;
2269 }
2270 {
2271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2272 }
2273 return resultobj;
2274 fail:
2275 return NULL;
2276 }
2277
2278
2279 static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
2280 PyObject *resultobj;
2281 wxPen *arg1 = (wxPen *) 0 ;
2282 int result;
2283 PyObject * obj0 = 0 ;
2284 char *kwnames[] = {
2285 (char *) "self", NULL
2286 };
2287
2288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
2289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2291 {
2292 PyThreadState* __tstate = wxPyBeginAllowThreads();
2293 result = (int)((wxPen const *)arg1)->GetDashCount();
2294
2295 wxPyEndAllowThreads(__tstate);
2296 if (PyErr_Occurred()) SWIG_fail;
2297 }
2298 resultobj = SWIG_FromInt((int)result);
2299 return resultobj;
2300 fail:
2301 return NULL;
2302 }
2303
2304
2305 static PyObject *_wrap_Pen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2306 PyObject *resultobj;
2307 wxPen *arg1 = (wxPen *) 0 ;
2308 wxBitmap *result;
2309 PyObject * obj0 = 0 ;
2310 char *kwnames[] = {
2311 (char *) "self", NULL
2312 };
2313
2314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail;
2315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2317 {
2318 PyThreadState* __tstate = wxPyBeginAllowThreads();
2319 result = (wxBitmap *)(arg1)->GetStipple();
2320
2321 wxPyEndAllowThreads(__tstate);
2322 if (PyErr_Occurred()) SWIG_fail;
2323 }
2324 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2325 return resultobj;
2326 fail:
2327 return NULL;
2328 }
2329
2330
2331 static PyObject *_wrap_Pen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2332 PyObject *resultobj;
2333 wxPen *arg1 = (wxPen *) 0 ;
2334 wxBitmap *arg2 = 0 ;
2335 PyObject * obj0 = 0 ;
2336 PyObject * obj1 = 0 ;
2337 char *kwnames[] = {
2338 (char *) "self",(char *) "stipple", NULL
2339 };
2340
2341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2344 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2345 SWIG_POINTER_EXCEPTION | 0)) == -1)
2346 SWIG_fail;
2347 if (arg2 == NULL) {
2348 PyErr_SetString(PyExc_TypeError,"null reference");
2349 SWIG_fail;
2350 }
2351 {
2352 PyThreadState* __tstate = wxPyBeginAllowThreads();
2353 (arg1)->SetStipple(*arg2);
2354
2355 wxPyEndAllowThreads(__tstate);
2356 if (PyErr_Occurred()) SWIG_fail;
2357 }
2358 Py_INCREF(Py_None); resultobj = Py_None;
2359 return resultobj;
2360 fail:
2361 return NULL;
2362 }
2363
2364
2365 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
2366 PyObject *obj;
2367 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2368 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2369 Py_INCREF(obj);
2370 return Py_BuildValue((char *)"");
2371 }
2372 static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2373 PyObject *resultobj;
2374 wxColour *arg1 = 0 ;
2375 int arg2 = (int) 1 ;
2376 int arg3 = (int) wxSOLID ;
2377 wxPyPen *result;
2378 wxColour temp1 ;
2379 PyObject * obj0 = 0 ;
2380 PyObject * obj1 = 0 ;
2381 PyObject * obj2 = 0 ;
2382 char *kwnames[] = {
2383 (char *) "colour",(char *) "width",(char *) "style", NULL
2384 };
2385
2386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail;
2387 {
2388 arg1 = &temp1;
2389 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2390 }
2391 if (obj1) {
2392 arg2 = (int) SWIG_AsInt(obj1);
2393 if (PyErr_Occurred()) SWIG_fail;
2394 }
2395 if (obj2) {
2396 arg3 = (int) SWIG_AsInt(obj2);
2397 if (PyErr_Occurred()) SWIG_fail;
2398 }
2399 {
2400 PyThreadState* __tstate = wxPyBeginAllowThreads();
2401 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
2402
2403 wxPyEndAllowThreads(__tstate);
2404 if (PyErr_Occurred()) SWIG_fail;
2405 }
2406 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPen, 1);
2407 return resultobj;
2408 fail:
2409 return NULL;
2410 }
2411
2412
2413 static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2414 PyObject *resultobj;
2415 wxPyPen *arg1 = (wxPyPen *) 0 ;
2416 PyObject * obj0 = 0 ;
2417 char *kwnames[] = {
2418 (char *) "self", NULL
2419 };
2420
2421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
2422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2424 {
2425 PyThreadState* __tstate = wxPyBeginAllowThreads();
2426 delete arg1;
2427
2428 wxPyEndAllowThreads(__tstate);
2429 if (PyErr_Occurred()) SWIG_fail;
2430 }
2431 Py_INCREF(Py_None); resultobj = Py_None;
2432 return resultobj;
2433 fail:
2434 return NULL;
2435 }
2436
2437
2438 static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2439 PyObject *resultobj;
2440 wxPyPen *arg1 = (wxPyPen *) 0 ;
2441 int arg2 ;
2442 wxDash *arg3 = (wxDash *) 0 ;
2443 PyObject * obj0 = 0 ;
2444 PyObject * obj1 = 0 ;
2445 char *kwnames[] = {
2446 (char *) "self",(char *) "dashes", NULL
2447 };
2448
2449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2452 {
2453 arg2 = PyList_Size(obj1);
2454 arg3 = (wxDash*)byte_LIST_helper(obj1);
2455 if (arg3 == NULL) SWIG_fail;
2456 }
2457 {
2458 PyThreadState* __tstate = wxPyBeginAllowThreads();
2459 (arg1)->SetDashes(arg2,arg3);
2460
2461 wxPyEndAllowThreads(__tstate);
2462 if (PyErr_Occurred()) SWIG_fail;
2463 }
2464 Py_INCREF(Py_None); resultobj = Py_None;
2465 {
2466 if (arg3) delete [] arg3;
2467 }
2468 return resultobj;
2469 fail:
2470 {
2471 if (arg3) delete [] arg3;
2472 }
2473 return NULL;
2474 }
2475
2476
2477 static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
2478 PyObject *obj;
2479 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2480 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
2481 Py_INCREF(obj);
2482 return Py_BuildValue((char *)"");
2483 }
2484 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2485 PyObject *resultobj;
2486 wxColour *arg1 = 0 ;
2487 int arg2 = (int) wxSOLID ;
2488 wxBrush *result;
2489 wxColour temp1 ;
2490 PyObject * obj0 = 0 ;
2491 PyObject * obj1 = 0 ;
2492 char *kwnames[] = {
2493 (char *) "colour",(char *) "style", NULL
2494 };
2495
2496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2497 {
2498 arg1 = &temp1;
2499 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2500 }
2501 if (obj1) {
2502 arg2 = (int) SWIG_AsInt(obj1);
2503 if (PyErr_Occurred()) SWIG_fail;
2504 }
2505 {
2506 PyThreadState* __tstate = wxPyBeginAllowThreads();
2507 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2508
2509 wxPyEndAllowThreads(__tstate);
2510 if (PyErr_Occurred()) SWIG_fail;
2511 }
2512 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2513 return resultobj;
2514 fail:
2515 return NULL;
2516 }
2517
2518
2519 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2520 PyObject *resultobj;
2521 wxBrush *arg1 = (wxBrush *) 0 ;
2522 PyObject * obj0 = 0 ;
2523 char *kwnames[] = {
2524 (char *) "self", NULL
2525 };
2526
2527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2530 {
2531 PyThreadState* __tstate = wxPyBeginAllowThreads();
2532 delete arg1;
2533
2534 wxPyEndAllowThreads(__tstate);
2535 if (PyErr_Occurred()) SWIG_fail;
2536 }
2537 Py_INCREF(Py_None); resultobj = Py_None;
2538 return resultobj;
2539 fail:
2540 return NULL;
2541 }
2542
2543
2544 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2545 PyObject *resultobj;
2546 wxBrush *arg1 = (wxBrush *) 0 ;
2547 wxColour *arg2 = 0 ;
2548 wxColour temp2 ;
2549 PyObject * obj0 = 0 ;
2550 PyObject * obj1 = 0 ;
2551 char *kwnames[] = {
2552 (char *) "self",(char *) "col", NULL
2553 };
2554
2555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2558 {
2559 arg2 = &temp2;
2560 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2561 }
2562 {
2563 PyThreadState* __tstate = wxPyBeginAllowThreads();
2564 (arg1)->SetColour((wxColour const &)*arg2);
2565
2566 wxPyEndAllowThreads(__tstate);
2567 if (PyErr_Occurred()) SWIG_fail;
2568 }
2569 Py_INCREF(Py_None); resultobj = Py_None;
2570 return resultobj;
2571 fail:
2572 return NULL;
2573 }
2574
2575
2576 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2577 PyObject *resultobj;
2578 wxBrush *arg1 = (wxBrush *) 0 ;
2579 int arg2 ;
2580 PyObject * obj0 = 0 ;
2581 PyObject * obj1 = 0 ;
2582 char *kwnames[] = {
2583 (char *) "self",(char *) "style", NULL
2584 };
2585
2586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2589 arg2 = (int) SWIG_AsInt(obj1);
2590 if (PyErr_Occurred()) SWIG_fail;
2591 {
2592 PyThreadState* __tstate = wxPyBeginAllowThreads();
2593 (arg1)->SetStyle(arg2);
2594
2595 wxPyEndAllowThreads(__tstate);
2596 if (PyErr_Occurred()) SWIG_fail;
2597 }
2598 Py_INCREF(Py_None); resultobj = Py_None;
2599 return resultobj;
2600 fail:
2601 return NULL;
2602 }
2603
2604
2605 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2606 PyObject *resultobj;
2607 wxBrush *arg1 = (wxBrush *) 0 ;
2608 wxBitmap *arg2 = 0 ;
2609 PyObject * obj0 = 0 ;
2610 PyObject * obj1 = 0 ;
2611 char *kwnames[] = {
2612 (char *) "self",(char *) "stipple", NULL
2613 };
2614
2615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2618 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2619 SWIG_POINTER_EXCEPTION | 0)) == -1)
2620 SWIG_fail;
2621 if (arg2 == NULL) {
2622 PyErr_SetString(PyExc_TypeError,"null reference");
2623 SWIG_fail;
2624 }
2625 {
2626 PyThreadState* __tstate = wxPyBeginAllowThreads();
2627 (arg1)->SetStipple((wxBitmap const &)*arg2);
2628
2629 wxPyEndAllowThreads(__tstate);
2630 if (PyErr_Occurred()) SWIG_fail;
2631 }
2632 Py_INCREF(Py_None); resultobj = Py_None;
2633 return resultobj;
2634 fail:
2635 return NULL;
2636 }
2637
2638
2639 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2640 PyObject *resultobj;
2641 wxBrush *arg1 = (wxBrush *) 0 ;
2642 wxColour result;
2643 PyObject * obj0 = 0 ;
2644 char *kwnames[] = {
2645 (char *) "self", NULL
2646 };
2647
2648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2651 {
2652 PyThreadState* __tstate = wxPyBeginAllowThreads();
2653 result = ((wxBrush const *)arg1)->GetColour();
2654
2655 wxPyEndAllowThreads(__tstate);
2656 if (PyErr_Occurred()) SWIG_fail;
2657 }
2658 {
2659 wxColour * resultptr;
2660 resultptr = new wxColour((wxColour &) result);
2661 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2662 }
2663 return resultobj;
2664 fail:
2665 return NULL;
2666 }
2667
2668
2669 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2670 PyObject *resultobj;
2671 wxBrush *arg1 = (wxBrush *) 0 ;
2672 int result;
2673 PyObject * obj0 = 0 ;
2674 char *kwnames[] = {
2675 (char *) "self", NULL
2676 };
2677
2678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2681 {
2682 PyThreadState* __tstate = wxPyBeginAllowThreads();
2683 result = (int)((wxBrush const *)arg1)->GetStyle();
2684
2685 wxPyEndAllowThreads(__tstate);
2686 if (PyErr_Occurred()) SWIG_fail;
2687 }
2688 resultobj = SWIG_FromInt((int)result);
2689 return resultobj;
2690 fail:
2691 return NULL;
2692 }
2693
2694
2695 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2696 PyObject *resultobj;
2697 wxBrush *arg1 = (wxBrush *) 0 ;
2698 wxBitmap *result;
2699 PyObject * obj0 = 0 ;
2700 char *kwnames[] = {
2701 (char *) "self", NULL
2702 };
2703
2704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2707 {
2708 PyThreadState* __tstate = wxPyBeginAllowThreads();
2709 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2710
2711 wxPyEndAllowThreads(__tstate);
2712 if (PyErr_Occurred()) SWIG_fail;
2713 }
2714 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2715 return resultobj;
2716 fail:
2717 return NULL;
2718 }
2719
2720
2721 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2722 PyObject *resultobj;
2723 wxBrush *arg1 = (wxBrush *) 0 ;
2724 bool result;
2725 PyObject * obj0 = 0 ;
2726 char *kwnames[] = {
2727 (char *) "self", NULL
2728 };
2729
2730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2733 {
2734 PyThreadState* __tstate = wxPyBeginAllowThreads();
2735 result = (bool)(arg1)->Ok();
2736
2737 wxPyEndAllowThreads(__tstate);
2738 if (PyErr_Occurred()) SWIG_fail;
2739 }
2740 {
2741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2742 }
2743 return resultobj;
2744 fail:
2745 return NULL;
2746 }
2747
2748
2749 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2750 PyObject *obj;
2751 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2752 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2753 Py_INCREF(obj);
2754 return Py_BuildValue((char *)"");
2755 }
2756 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2757 PyObject *resultobj;
2758 wxString *arg1 = 0 ;
2759 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2760 wxBitmap *result;
2761 bool temp1 = False ;
2762 PyObject * obj0 = 0 ;
2763 PyObject * obj1 = 0 ;
2764 char *kwnames[] = {
2765 (char *) "name",(char *) "type", NULL
2766 };
2767
2768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2769 {
2770 arg1 = wxString_in_helper(obj0);
2771 if (arg1 == NULL) SWIG_fail;
2772 temp1 = True;
2773 }
2774 if (obj1) {
2775 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2776 if (PyErr_Occurred()) SWIG_fail;
2777 }
2778 {
2779 PyThreadState* __tstate = wxPyBeginAllowThreads();
2780 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2781
2782 wxPyEndAllowThreads(__tstate);
2783 if (PyErr_Occurred()) SWIG_fail;
2784 }
2785 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2786 {
2787 if (temp1)
2788 delete arg1;
2789 }
2790 return resultobj;
2791 fail:
2792 {
2793 if (temp1)
2794 delete arg1;
2795 }
2796 return NULL;
2797 }
2798
2799
2800 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2801 PyObject *resultobj;
2802 wxBitmap *arg1 = (wxBitmap *) 0 ;
2803 PyObject * obj0 = 0 ;
2804 char *kwnames[] = {
2805 (char *) "self", NULL
2806 };
2807
2808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2811 {
2812 PyThreadState* __tstate = wxPyBeginAllowThreads();
2813 delete arg1;
2814
2815 wxPyEndAllowThreads(__tstate);
2816 if (PyErr_Occurred()) SWIG_fail;
2817 }
2818 Py_INCREF(Py_None); resultobj = Py_None;
2819 return resultobj;
2820 fail:
2821 return NULL;
2822 }
2823
2824
2825 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2826 PyObject *resultobj;
2827 wxIcon *arg1 = 0 ;
2828 wxBitmap *result;
2829 PyObject * obj0 = 0 ;
2830 char *kwnames[] = {
2831 (char *) "icon", NULL
2832 };
2833
2834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2836 SWIG_POINTER_EXCEPTION | 0)) == -1)
2837 SWIG_fail;
2838 if (arg1 == NULL) {
2839 PyErr_SetString(PyExc_TypeError,"null reference");
2840 SWIG_fail;
2841 }
2842 {
2843 PyThreadState* __tstate = wxPyBeginAllowThreads();
2844 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2845
2846 wxPyEndAllowThreads(__tstate);
2847 if (PyErr_Occurred()) SWIG_fail;
2848 }
2849 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2850 return resultobj;
2851 fail:
2852 return NULL;
2853 }
2854
2855
2856 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2857 PyObject *resultobj;
2858 wxImage *arg1 = 0 ;
2859 int arg2 = (int) -1 ;
2860 wxBitmap *result;
2861 PyObject * obj0 = 0 ;
2862 PyObject * obj1 = 0 ;
2863 char *kwnames[] = {
2864 (char *) "image",(char *) "depth", NULL
2865 };
2866
2867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2869 SWIG_POINTER_EXCEPTION | 0)) == -1)
2870 SWIG_fail;
2871 if (arg1 == NULL) {
2872 PyErr_SetString(PyExc_TypeError,"null reference");
2873 SWIG_fail;
2874 }
2875 if (obj1) {
2876 arg2 = (int) SWIG_AsInt(obj1);
2877 if (PyErr_Occurred()) SWIG_fail;
2878 }
2879 {
2880 PyThreadState* __tstate = wxPyBeginAllowThreads();
2881 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2882
2883 wxPyEndAllowThreads(__tstate);
2884 if (PyErr_Occurred()) SWIG_fail;
2885 }
2886 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2887 return resultobj;
2888 fail:
2889 return NULL;
2890 }
2891
2892
2893 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2894 PyObject *resultobj;
2895 PyObject *arg1 = (PyObject *) 0 ;
2896 wxBitmap *result;
2897 PyObject * obj0 = 0 ;
2898 char *kwnames[] = {
2899 (char *) "listOfStrings", NULL
2900 };
2901
2902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2903 arg1 = obj0;
2904 {
2905 PyThreadState* __tstate = wxPyBeginAllowThreads();
2906 result = (wxBitmap *)new_wxBitmap(arg1);
2907
2908 wxPyEndAllowThreads(__tstate);
2909 if (PyErr_Occurred()) SWIG_fail;
2910 }
2911 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2912 return resultobj;
2913 fail:
2914 return NULL;
2915 }
2916
2917
2918 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2919 PyObject *resultobj;
2920 PyObject *arg1 = (PyObject *) 0 ;
2921 int arg2 ;
2922 int arg3 ;
2923 int arg4 = (int) 1 ;
2924 wxBitmap *result;
2925 PyObject * obj0 = 0 ;
2926 PyObject * obj1 = 0 ;
2927 PyObject * obj2 = 0 ;
2928 PyObject * obj3 = 0 ;
2929 char *kwnames[] = {
2930 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2931 };
2932
2933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2934 arg1 = obj0;
2935 arg2 = (int) SWIG_AsInt(obj1);
2936 if (PyErr_Occurred()) SWIG_fail;
2937 arg3 = (int) SWIG_AsInt(obj2);
2938 if (PyErr_Occurred()) SWIG_fail;
2939 if (obj3) {
2940 arg4 = (int) SWIG_AsInt(obj3);
2941 if (PyErr_Occurred()) SWIG_fail;
2942 }
2943 {
2944 PyThreadState* __tstate = wxPyBeginAllowThreads();
2945 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2946
2947 wxPyEndAllowThreads(__tstate);
2948 if (PyErr_Occurred()) SWIG_fail;
2949 }
2950 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2951 return resultobj;
2952 fail:
2953 return NULL;
2954 }
2955
2956
2957 static PyObject *_wrap_new_EmptyBitmap__SWIG_0(PyObject *self, PyObject *args) {
2958 PyObject *resultobj;
2959 int arg1 ;
2960 int arg2 ;
2961 int arg3 = (int) -1 ;
2962 wxBitmap *result;
2963 PyObject * obj0 = 0 ;
2964 PyObject * obj1 = 0 ;
2965 PyObject * obj2 = 0 ;
2966
2967 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_EmptyBitmap",&obj0,&obj1,&obj2)) goto fail;
2968 arg1 = (int) SWIG_AsInt(obj0);
2969 if (PyErr_Occurred()) SWIG_fail;
2970 arg2 = (int) SWIG_AsInt(obj1);
2971 if (PyErr_Occurred()) SWIG_fail;
2972 if (obj2) {
2973 arg3 = (int) SWIG_AsInt(obj2);
2974 if (PyErr_Occurred()) SWIG_fail;
2975 }
2976 {
2977 PyThreadState* __tstate = wxPyBeginAllowThreads();
2978 result = (wxBitmap *)new_wxBitmap__SWIG_0(arg1,arg2,arg3);
2979
2980 wxPyEndAllowThreads(__tstate);
2981 if (PyErr_Occurred()) SWIG_fail;
2982 }
2983 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2984 return resultobj;
2985 fail:
2986 return NULL;
2987 }
2988
2989
2990 static PyObject *_wrap_new_EmptyBitmap__SWIG_1(PyObject *self, PyObject *args) {
2991 PyObject *resultobj;
2992 wxSize *arg1 = 0 ;
2993 int arg2 = (int) -1 ;
2994 wxBitmap *result;
2995 wxSize temp1 ;
2996 PyObject * obj0 = 0 ;
2997 PyObject * obj1 = 0 ;
2998
2999 if(!PyArg_ParseTuple(args,(char *)"O|O:new_EmptyBitmap",&obj0,&obj1)) goto fail;
3000 {
3001 arg1 = &temp1;
3002 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
3003 }
3004 if (obj1) {
3005 arg2 = (int) SWIG_AsInt(obj1);
3006 if (PyErr_Occurred()) SWIG_fail;
3007 }
3008 {
3009 PyThreadState* __tstate = wxPyBeginAllowThreads();
3010 result = (wxBitmap *)new_wxBitmap__SWIG_1((wxSize const &)*arg1,arg2);
3011
3012 wxPyEndAllowThreads(__tstate);
3013 if (PyErr_Occurred()) SWIG_fail;
3014 }
3015 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
3016 return resultobj;
3017 fail:
3018 return NULL;
3019 }
3020
3021
3022 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args) {
3023 int argc;
3024 PyObject *argv[4];
3025 int ii;
3026
3027 argc = PyObject_Length(args);
3028 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
3029 argv[ii] = PyTuple_GetItem(args,ii);
3030 }
3031 if ((argc >= 1) && (argc <= 2)) {
3032 int _v;
3033 {
3034 _v = wxPySimple_typecheck(argv[0], wxT("wxSize"), 2);
3035 }
3036 if (_v) {
3037 if (argc <= 1) {
3038 return _wrap_new_EmptyBitmap__SWIG_1(self,args);
3039 }
3040 _v = SWIG_CheckInt(argv[1]);
3041 if (_v) {
3042 return _wrap_new_EmptyBitmap__SWIG_1(self,args);
3043 }
3044 }
3045 }
3046 if ((argc >= 2) && (argc <= 3)) {
3047 int _v;
3048 _v = SWIG_CheckInt(argv[0]);
3049 if (_v) {
3050 _v = SWIG_CheckInt(argv[1]);
3051 if (_v) {
3052 if (argc <= 2) {
3053 return _wrap_new_EmptyBitmap__SWIG_0(self,args);
3054 }
3055 _v = SWIG_CheckInt(argv[2]);
3056 if (_v) {
3057 return _wrap_new_EmptyBitmap__SWIG_0(self,args);
3058 }
3059 }
3060 }
3061 }
3062
3063 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_EmptyBitmap'");
3064 return NULL;
3065 }
3066
3067
3068 static PyObject *_wrap_Bitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
3069 PyObject *resultobj;
3070 wxBitmap *arg1 = (wxBitmap *) 0 ;
3071 wxPalette *arg2 = 0 ;
3072 PyObject * obj0 = 0 ;
3073 PyObject * obj1 = 0 ;
3074 char *kwnames[] = {
3075 (char *) "self",(char *) "palette", NULL
3076 };
3077
3078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail;
3079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3081 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
3082 SWIG_POINTER_EXCEPTION | 0)) == -1)
3083 SWIG_fail;
3084 if (arg2 == NULL) {
3085 PyErr_SetString(PyExc_TypeError,"null reference");
3086 SWIG_fail;
3087 }
3088 {
3089 PyThreadState* __tstate = wxPyBeginAllowThreads();
3090 (arg1)->SetPalette(*arg2);
3091
3092 wxPyEndAllowThreads(__tstate);
3093 if (PyErr_Occurred()) SWIG_fail;
3094 }
3095 Py_INCREF(Py_None); resultobj = Py_None;
3096 return resultobj;
3097 fail:
3098 return NULL;
3099 }
3100
3101
3102 static PyObject *_wrap_Bitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3103 PyObject *resultobj;
3104 wxBitmap *arg1 = (wxBitmap *) 0 ;
3105 long result;
3106 PyObject * obj0 = 0 ;
3107 char *kwnames[] = {
3108 (char *) "self", NULL
3109 };
3110
3111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail;
3112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3114 {
3115 PyThreadState* __tstate = wxPyBeginAllowThreads();
3116 result = (long)(arg1)->GetHandle();
3117
3118 wxPyEndAllowThreads(__tstate);
3119 if (PyErr_Occurred()) SWIG_fail;
3120 }
3121 resultobj = SWIG_FromLong((long)result);
3122 return resultobj;
3123 fail:
3124 return NULL;
3125 }
3126
3127
3128 static PyObject *_wrap_Bitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3129 PyObject *resultobj;
3130 wxBitmap *arg1 = (wxBitmap *) 0 ;
3131 long arg2 ;
3132 PyObject * obj0 = 0 ;
3133 PyObject * obj1 = 0 ;
3134 char *kwnames[] = {
3135 (char *) "self",(char *) "handle", NULL
3136 };
3137
3138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail;
3139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3141 arg2 = (long) SWIG_AsLong(obj1);
3142 if (PyErr_Occurred()) SWIG_fail;
3143 {
3144 PyThreadState* __tstate = wxPyBeginAllowThreads();
3145 wxBitmap_SetHandle(arg1,arg2);
3146
3147 wxPyEndAllowThreads(__tstate);
3148 if (PyErr_Occurred()) SWIG_fail;
3149 }
3150 Py_INCREF(Py_None); resultobj = Py_None;
3151 return resultobj;
3152 fail:
3153 return NULL;
3154 }
3155
3156
3157 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3158 PyObject *resultobj;
3159 wxBitmap *arg1 = (wxBitmap *) 0 ;
3160 bool result;
3161 PyObject * obj0 = 0 ;
3162 char *kwnames[] = {
3163 (char *) "self", NULL
3164 };
3165
3166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
3167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3169 {
3170 PyThreadState* __tstate = wxPyBeginAllowThreads();
3171 result = (bool)(arg1)->Ok();
3172
3173 wxPyEndAllowThreads(__tstate);
3174 if (PyErr_Occurred()) SWIG_fail;
3175 }
3176 {
3177 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3178 }
3179 return resultobj;
3180 fail:
3181 return NULL;
3182 }
3183
3184
3185 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3186 PyObject *resultobj;
3187 wxBitmap *arg1 = (wxBitmap *) 0 ;
3188 int result;
3189 PyObject * obj0 = 0 ;
3190 char *kwnames[] = {
3191 (char *) "self", NULL
3192 };
3193
3194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
3195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3197 {
3198 PyThreadState* __tstate = wxPyBeginAllowThreads();
3199 result = (int)(arg1)->GetWidth();
3200
3201 wxPyEndAllowThreads(__tstate);
3202 if (PyErr_Occurred()) SWIG_fail;
3203 }
3204 resultobj = SWIG_FromInt((int)result);
3205 return resultobj;
3206 fail:
3207 return NULL;
3208 }
3209
3210
3211 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3212 PyObject *resultobj;
3213 wxBitmap *arg1 = (wxBitmap *) 0 ;
3214 int result;
3215 PyObject * obj0 = 0 ;
3216 char *kwnames[] = {
3217 (char *) "self", NULL
3218 };
3219
3220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
3221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3223 {
3224 PyThreadState* __tstate = wxPyBeginAllowThreads();
3225 result = (int)(arg1)->GetHeight();
3226
3227 wxPyEndAllowThreads(__tstate);
3228 if (PyErr_Occurred()) SWIG_fail;
3229 }
3230 resultobj = SWIG_FromInt((int)result);
3231 return resultobj;
3232 fail:
3233 return NULL;
3234 }
3235
3236
3237 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3238 PyObject *resultobj;
3239 wxBitmap *arg1 = (wxBitmap *) 0 ;
3240 int result;
3241 PyObject * obj0 = 0 ;
3242 char *kwnames[] = {
3243 (char *) "self", NULL
3244 };
3245
3246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
3247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3249 {
3250 PyThreadState* __tstate = wxPyBeginAllowThreads();
3251 result = (int)(arg1)->GetDepth();
3252
3253 wxPyEndAllowThreads(__tstate);
3254 if (PyErr_Occurred()) SWIG_fail;
3255 }
3256 resultobj = SWIG_FromInt((int)result);
3257 return resultobj;
3258 fail:
3259 return NULL;
3260 }
3261
3262
3263 static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3264 PyObject *resultobj;
3265 wxBitmap *arg1 = (wxBitmap *) 0 ;
3266 wxSize result;
3267 PyObject * obj0 = 0 ;
3268 char *kwnames[] = {
3269 (char *) "self", NULL
3270 };
3271
3272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
3273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3275 {
3276 PyThreadState* __tstate = wxPyBeginAllowThreads();
3277 result = wxBitmap_GetSize(arg1);
3278
3279 wxPyEndAllowThreads(__tstate);
3280 if (PyErr_Occurred()) SWIG_fail;
3281 }
3282 {
3283 wxSize * resultptr;
3284 resultptr = new wxSize((wxSize &) result);
3285 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3286 }
3287 return resultobj;
3288 fail:
3289 return NULL;
3290 }
3291
3292
3293 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3294 PyObject *resultobj;
3295 wxBitmap *arg1 = (wxBitmap *) 0 ;
3296 SwigValueWrapper< wxImage > result;
3297 PyObject * obj0 = 0 ;
3298 char *kwnames[] = {
3299 (char *) "self", NULL
3300 };
3301
3302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
3303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3305 {
3306 PyThreadState* __tstate = wxPyBeginAllowThreads();
3307 result = ((wxBitmap const *)arg1)->ConvertToImage();
3308
3309 wxPyEndAllowThreads(__tstate);
3310 if (PyErr_Occurred()) SWIG_fail;
3311 }
3312 {
3313 wxImage * resultptr;
3314 resultptr = new wxImage((wxImage &) result);
3315 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3316 }
3317 return resultobj;
3318 fail:
3319 return NULL;
3320 }
3321
3322
3323 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3324 PyObject *resultobj;
3325 wxBitmap *arg1 = (wxBitmap *) 0 ;
3326 wxMask *result;
3327 PyObject * obj0 = 0 ;
3328 char *kwnames[] = {
3329 (char *) "self", NULL
3330 };
3331
3332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3335 {
3336 PyThreadState* __tstate = wxPyBeginAllowThreads();
3337 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3338
3339 wxPyEndAllowThreads(__tstate);
3340 if (PyErr_Occurred()) SWIG_fail;
3341 }
3342 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3343 return resultobj;
3344 fail:
3345 return NULL;
3346 }
3347
3348
3349 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3350 PyObject *resultobj;
3351 wxBitmap *arg1 = (wxBitmap *) 0 ;
3352 wxMask *arg2 = (wxMask *) 0 ;
3353 PyObject * obj0 = 0 ;
3354 PyObject * obj1 = 0 ;
3355 char *kwnames[] = {
3356 (char *) "self",(char *) "mask", NULL
3357 };
3358
3359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3362 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3364 {
3365 PyThreadState* __tstate = wxPyBeginAllowThreads();
3366 (arg1)->SetMask(arg2);
3367
3368 wxPyEndAllowThreads(__tstate);
3369 if (PyErr_Occurred()) SWIG_fail;
3370 }
3371 Py_INCREF(Py_None); resultobj = Py_None;
3372 return resultobj;
3373 fail:
3374 return NULL;
3375 }
3376
3377
3378 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3379 PyObject *resultobj;
3380 wxBitmap *arg1 = (wxBitmap *) 0 ;
3381 wxColour *arg2 = 0 ;
3382 wxColour temp2 ;
3383 PyObject * obj0 = 0 ;
3384 PyObject * obj1 = 0 ;
3385 char *kwnames[] = {
3386 (char *) "self",(char *) "colour", NULL
3387 };
3388
3389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3392 {
3393 arg2 = &temp2;
3394 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3395 }
3396 {
3397 PyThreadState* __tstate = wxPyBeginAllowThreads();
3398 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3399
3400 wxPyEndAllowThreads(__tstate);
3401 if (PyErr_Occurred()) SWIG_fail;
3402 }
3403 Py_INCREF(Py_None); resultobj = Py_None;
3404 return resultobj;
3405 fail:
3406 return NULL;
3407 }
3408
3409
3410 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3411 PyObject *resultobj;
3412 wxBitmap *arg1 = (wxBitmap *) 0 ;
3413 wxRect *arg2 = 0 ;
3414 SwigValueWrapper< wxBitmap > result;
3415 wxRect temp2 ;
3416 PyObject * obj0 = 0 ;
3417 PyObject * obj1 = 0 ;
3418 char *kwnames[] = {
3419 (char *) "self",(char *) "rect", NULL
3420 };
3421
3422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3425 {
3426 arg2 = &temp2;
3427 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3428 }
3429 {
3430 PyThreadState* __tstate = wxPyBeginAllowThreads();
3431 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3432
3433 wxPyEndAllowThreads(__tstate);
3434 if (PyErr_Occurred()) SWIG_fail;
3435 }
3436 {
3437 wxBitmap * resultptr;
3438 resultptr = new wxBitmap((wxBitmap &) result);
3439 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3440 }
3441 return resultobj;
3442 fail:
3443 return NULL;
3444 }
3445
3446
3447 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3448 PyObject *resultobj;
3449 wxBitmap *arg1 = (wxBitmap *) 0 ;
3450 wxString *arg2 = 0 ;
3451 int arg3 ;
3452 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
3453 bool result;
3454 bool temp2 = False ;
3455 PyObject * obj0 = 0 ;
3456 PyObject * obj1 = 0 ;
3457 PyObject * obj2 = 0 ;
3458 PyObject * obj3 = 0 ;
3459 char *kwnames[] = {
3460 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3461 };
3462
3463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3466 {
3467 arg2 = wxString_in_helper(obj1);
3468 if (arg2 == NULL) SWIG_fail;
3469 temp2 = True;
3470 }
3471 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3472 if (PyErr_Occurred()) SWIG_fail;
3473 if (obj3) {
3474 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3476 }
3477 {
3478 PyThreadState* __tstate = wxPyBeginAllowThreads();
3479 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3480
3481 wxPyEndAllowThreads(__tstate);
3482 if (PyErr_Occurred()) SWIG_fail;
3483 }
3484 {
3485 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3486 }
3487 {
3488 if (temp2)
3489 delete arg2;
3490 }
3491 return resultobj;
3492 fail:
3493 {
3494 if (temp2)
3495 delete arg2;
3496 }
3497 return NULL;
3498 }
3499
3500
3501 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3502 PyObject *resultobj;
3503 wxBitmap *arg1 = (wxBitmap *) 0 ;
3504 wxString *arg2 = 0 ;
3505 int arg3 ;
3506 bool result;
3507 bool temp2 = False ;
3508 PyObject * obj0 = 0 ;
3509 PyObject * obj1 = 0 ;
3510 PyObject * obj2 = 0 ;
3511 char *kwnames[] = {
3512 (char *) "self",(char *) "name",(char *) "type", NULL
3513 };
3514
3515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3518 {
3519 arg2 = wxString_in_helper(obj1);
3520 if (arg2 == NULL) SWIG_fail;
3521 temp2 = True;
3522 }
3523 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3524 if (PyErr_Occurred()) SWIG_fail;
3525 {
3526 PyThreadState* __tstate = wxPyBeginAllowThreads();
3527 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3528
3529 wxPyEndAllowThreads(__tstate);
3530 if (PyErr_Occurred()) SWIG_fail;
3531 }
3532 {
3533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3534 }
3535 {
3536 if (temp2)
3537 delete arg2;
3538 }
3539 return resultobj;
3540 fail:
3541 {
3542 if (temp2)
3543 delete arg2;
3544 }
3545 return NULL;
3546 }
3547
3548
3549 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3550 PyObject *resultobj;
3551 wxBitmap *arg1 = (wxBitmap *) 0 ;
3552 wxIcon *arg2 = 0 ;
3553 bool result;
3554 PyObject * obj0 = 0 ;
3555 PyObject * obj1 = 0 ;
3556 char *kwnames[] = {
3557 (char *) "self",(char *) "icon", NULL
3558 };
3559
3560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3563 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3564 SWIG_POINTER_EXCEPTION | 0)) == -1)
3565 SWIG_fail;
3566 if (arg2 == NULL) {
3567 PyErr_SetString(PyExc_TypeError,"null reference");
3568 SWIG_fail;
3569 }
3570 {
3571 PyThreadState* __tstate = wxPyBeginAllowThreads();
3572 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3573
3574 wxPyEndAllowThreads(__tstate);
3575 if (PyErr_Occurred()) SWIG_fail;
3576 }
3577 {
3578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3579 }
3580 return resultobj;
3581 fail:
3582 return NULL;
3583 }
3584
3585
3586 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3587 PyObject *resultobj;
3588 wxBitmap *arg1 = (wxBitmap *) 0 ;
3589 int arg2 ;
3590 PyObject * obj0 = 0 ;
3591 PyObject * obj1 = 0 ;
3592 char *kwnames[] = {
3593 (char *) "self",(char *) "height", NULL
3594 };
3595
3596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3599 arg2 = (int) SWIG_AsInt(obj1);
3600 if (PyErr_Occurred()) SWIG_fail;
3601 {
3602 PyThreadState* __tstate = wxPyBeginAllowThreads();
3603 (arg1)->SetHeight(arg2);
3604
3605 wxPyEndAllowThreads(__tstate);
3606 if (PyErr_Occurred()) SWIG_fail;
3607 }
3608 Py_INCREF(Py_None); resultobj = Py_None;
3609 return resultobj;
3610 fail:
3611 return NULL;
3612 }
3613
3614
3615 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3616 PyObject *resultobj;
3617 wxBitmap *arg1 = (wxBitmap *) 0 ;
3618 int arg2 ;
3619 PyObject * obj0 = 0 ;
3620 PyObject * obj1 = 0 ;
3621 char *kwnames[] = {
3622 (char *) "self",(char *) "width", NULL
3623 };
3624
3625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3628 arg2 = (int) SWIG_AsInt(obj1);
3629 if (PyErr_Occurred()) SWIG_fail;
3630 {
3631 PyThreadState* __tstate = wxPyBeginAllowThreads();
3632 (arg1)->SetWidth(arg2);
3633
3634 wxPyEndAllowThreads(__tstate);
3635 if (PyErr_Occurred()) SWIG_fail;
3636 }
3637 Py_INCREF(Py_None); resultobj = Py_None;
3638 return resultobj;
3639 fail:
3640 return NULL;
3641 }
3642
3643
3644 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3645 PyObject *resultobj;
3646 wxBitmap *arg1 = (wxBitmap *) 0 ;
3647 int arg2 ;
3648 PyObject * obj0 = 0 ;
3649 PyObject * obj1 = 0 ;
3650 char *kwnames[] = {
3651 (char *) "self",(char *) "depth", NULL
3652 };
3653
3654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3657 arg2 = (int) SWIG_AsInt(obj1);
3658 if (PyErr_Occurred()) SWIG_fail;
3659 {
3660 PyThreadState* __tstate = wxPyBeginAllowThreads();
3661 (arg1)->SetDepth(arg2);
3662
3663 wxPyEndAllowThreads(__tstate);
3664 if (PyErr_Occurred()) SWIG_fail;
3665 }
3666 Py_INCREF(Py_None); resultobj = Py_None;
3667 return resultobj;
3668 fail:
3669 return NULL;
3670 }
3671
3672
3673 static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3674 PyObject *resultobj;
3675 wxBitmap *arg1 = (wxBitmap *) 0 ;
3676 wxSize *arg2 = 0 ;
3677 wxSize temp2 ;
3678 PyObject * obj0 = 0 ;
3679 PyObject * obj1 = 0 ;
3680 char *kwnames[] = {
3681 (char *) "self",(char *) "size", NULL
3682 };
3683
3684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3687 {
3688 arg2 = &temp2;
3689 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3690 }
3691 {
3692 PyThreadState* __tstate = wxPyBeginAllowThreads();
3693 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3694
3695 wxPyEndAllowThreads(__tstate);
3696 if (PyErr_Occurred()) SWIG_fail;
3697 }
3698 Py_INCREF(Py_None); resultobj = Py_None;
3699 return resultobj;
3700 fail:
3701 return NULL;
3702 }
3703
3704
3705 static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3706 PyObject *resultobj;
3707 wxBitmap *arg1 = (wxBitmap *) 0 ;
3708 wxCursor *arg2 = 0 ;
3709 bool result;
3710 PyObject * obj0 = 0 ;
3711 PyObject * obj1 = 0 ;
3712 char *kwnames[] = {
3713 (char *) "self",(char *) "cursor", NULL
3714 };
3715
3716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail;
3717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3719 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
3720 SWIG_POINTER_EXCEPTION | 0)) == -1)
3721 SWIG_fail;
3722 if (arg2 == NULL) {
3723 PyErr_SetString(PyExc_TypeError,"null reference");
3724 SWIG_fail;
3725 }
3726 {
3727 PyThreadState* __tstate = wxPyBeginAllowThreads();
3728 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
3729
3730 wxPyEndAllowThreads(__tstate);
3731 if (PyErr_Occurred()) SWIG_fail;
3732 }
3733 {
3734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3735 }
3736 return resultobj;
3737 fail:
3738 return NULL;
3739 }
3740
3741
3742 static PyObject *_wrap_Bitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3743 PyObject *resultobj;
3744 wxBitmap *arg1 = (wxBitmap *) 0 ;
3745 int result;
3746 PyObject * obj0 = 0 ;
3747 char *kwnames[] = {
3748 (char *) "self", NULL
3749 };
3750
3751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail;
3752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3754 {
3755 PyThreadState* __tstate = wxPyBeginAllowThreads();
3756 result = (int)(arg1)->GetQuality();
3757
3758 wxPyEndAllowThreads(__tstate);
3759 if (PyErr_Occurred()) SWIG_fail;
3760 }
3761 resultobj = SWIG_FromInt((int)result);
3762 return resultobj;
3763 fail:
3764 return NULL;
3765 }
3766
3767
3768 static PyObject *_wrap_Bitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3769 PyObject *resultobj;
3770 wxBitmap *arg1 = (wxBitmap *) 0 ;
3771 int arg2 ;
3772 PyObject * obj0 = 0 ;
3773 PyObject * obj1 = 0 ;
3774 char *kwnames[] = {
3775 (char *) "self",(char *) "q", NULL
3776 };
3777
3778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetQuality",kwnames,&obj0,&obj1)) goto fail;
3779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3781 arg2 = (int) SWIG_AsInt(obj1);
3782 if (PyErr_Occurred()) SWIG_fail;
3783 {
3784 PyThreadState* __tstate = wxPyBeginAllowThreads();
3785 (arg1)->SetQuality(arg2);
3786
3787 wxPyEndAllowThreads(__tstate);
3788 if (PyErr_Occurred()) SWIG_fail;
3789 }
3790 Py_INCREF(Py_None); resultobj = Py_None;
3791 return resultobj;
3792 fail:
3793 return NULL;
3794 }
3795
3796
3797 static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3798 PyObject *resultobj;
3799 wxBitmap *arg1 = (wxBitmap *) 0 ;
3800 wxBitmap *arg2 = (wxBitmap *) 0 ;
3801 bool result;
3802 PyObject * obj0 = 0 ;
3803 PyObject * obj1 = 0 ;
3804 char *kwnames[] = {
3805 (char *) "self",(char *) "other", NULL
3806 };
3807
3808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3811 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3813 {
3814 PyThreadState* __tstate = wxPyBeginAllowThreads();
3815 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3816
3817 wxPyEndAllowThreads(__tstate);
3818 if (PyErr_Occurred()) SWIG_fail;
3819 }
3820 {
3821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3822 }
3823 return resultobj;
3824 fail:
3825 return NULL;
3826 }
3827
3828
3829 static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3830 PyObject *resultobj;
3831 wxBitmap *arg1 = (wxBitmap *) 0 ;
3832 wxBitmap *arg2 = (wxBitmap *) 0 ;
3833 bool result;
3834 PyObject * obj0 = 0 ;
3835 PyObject * obj1 = 0 ;
3836 char *kwnames[] = {
3837 (char *) "self",(char *) "other", NULL
3838 };
3839
3840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3843 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3845 {
3846 PyThreadState* __tstate = wxPyBeginAllowThreads();
3847 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3848
3849 wxPyEndAllowThreads(__tstate);
3850 if (PyErr_Occurred()) SWIG_fail;
3851 }
3852 {
3853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3854 }
3855 return resultobj;
3856 fail:
3857 return NULL;
3858 }
3859
3860
3861 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3862 PyObject *obj;
3863 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3864 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3865 Py_INCREF(obj);
3866 return Py_BuildValue((char *)"");
3867 }
3868 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3869 PyObject *resultobj;
3870 wxBitmap *arg1 = 0 ;
3871 wxColour const &arg2_defvalue = wxNullColour ;
3872 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3873 wxMask *result;
3874 wxColour temp2 ;
3875 PyObject * obj0 = 0 ;
3876 PyObject * obj1 = 0 ;
3877 char *kwnames[] = {
3878 (char *) "bitmap",(char *) "colour", NULL
3879 };
3880
3881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3883 SWIG_POINTER_EXCEPTION | 0)) == -1)
3884 SWIG_fail;
3885 if (arg1 == NULL) {
3886 PyErr_SetString(PyExc_TypeError,"null reference");
3887 SWIG_fail;
3888 }
3889 if (obj1) {
3890 {
3891 arg2 = &temp2;
3892 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3893 }
3894 }
3895 {
3896 PyThreadState* __tstate = wxPyBeginAllowThreads();
3897 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3898
3899 wxPyEndAllowThreads(__tstate);
3900 if (PyErr_Occurred()) SWIG_fail;
3901 }
3902 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3903 return resultobj;
3904 fail:
3905 return NULL;
3906 }
3907
3908
3909 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3910 PyObject *obj;
3911 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3912 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3913 Py_INCREF(obj);
3914 return Py_BuildValue((char *)"");
3915 }
3916 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3917 PyObject *resultobj;
3918 wxString *arg1 = 0 ;
3919 int arg2 ;
3920 int arg3 = (int) -1 ;
3921 int arg4 = (int) -1 ;
3922 wxIcon *result;
3923 bool temp1 = False ;
3924 PyObject * obj0 = 0 ;
3925 PyObject * obj1 = 0 ;
3926 PyObject * obj2 = 0 ;
3927 PyObject * obj3 = 0 ;
3928 char *kwnames[] = {
3929 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3930 };
3931
3932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3933 {
3934 arg1 = wxString_in_helper(obj0);
3935 if (arg1 == NULL) SWIG_fail;
3936 temp1 = True;
3937 }
3938 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3939 if (PyErr_Occurred()) SWIG_fail;
3940 if (obj2) {
3941 arg3 = (int) SWIG_AsInt(obj2);
3942 if (PyErr_Occurred()) SWIG_fail;
3943 }
3944 if (obj3) {
3945 arg4 = (int) SWIG_AsInt(obj3);
3946 if (PyErr_Occurred()) SWIG_fail;
3947 }
3948 {
3949 PyThreadState* __tstate = wxPyBeginAllowThreads();
3950 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3951
3952 wxPyEndAllowThreads(__tstate);
3953 if (PyErr_Occurred()) SWIG_fail;
3954 }
3955 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3956 {
3957 if (temp1)
3958 delete arg1;
3959 }
3960 return resultobj;
3961 fail:
3962 {
3963 if (temp1)
3964 delete arg1;
3965 }
3966 return NULL;
3967 }
3968
3969
3970 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3971 PyObject *resultobj;
3972 wxIcon *arg1 = (wxIcon *) 0 ;
3973 PyObject * obj0 = 0 ;
3974 char *kwnames[] = {
3975 (char *) "self", NULL
3976 };
3977
3978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3981 {
3982 PyThreadState* __tstate = wxPyBeginAllowThreads();
3983 delete arg1;
3984
3985 wxPyEndAllowThreads(__tstate);
3986 if (PyErr_Occurred()) SWIG_fail;
3987 }
3988 Py_INCREF(Py_None); resultobj = Py_None;
3989 return resultobj;
3990 fail:
3991 return NULL;
3992 }
3993
3994
3995 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3996 PyObject *resultobj;
3997 wxIcon *result;
3998 char *kwnames[] = {
3999 NULL
4000 };
4001
4002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
4003 {
4004 PyThreadState* __tstate = wxPyBeginAllowThreads();
4005 result = (wxIcon *)new wxIcon();
4006
4007 wxPyEndAllowThreads(__tstate);
4008 if (PyErr_Occurred()) SWIG_fail;
4009 }
4010 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
4011 return resultobj;
4012 fail:
4013 return NULL;
4014 }
4015
4016
4017 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4018 PyObject *resultobj;
4019 wxIconLocation *arg1 = 0 ;
4020 wxIcon *result;
4021 PyObject * obj0 = 0 ;
4022 char *kwnames[] = {
4023 (char *) "loc", NULL
4024 };
4025
4026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
4027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4028 SWIG_POINTER_EXCEPTION | 0)) == -1)
4029 SWIG_fail;
4030 if (arg1 == NULL) {
4031 PyErr_SetString(PyExc_TypeError,"null reference");
4032 SWIG_fail;
4033 }
4034 {
4035 PyThreadState* __tstate = wxPyBeginAllowThreads();
4036 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
4037
4038 wxPyEndAllowThreads(__tstate);
4039 if (PyErr_Occurred()) SWIG_fail;
4040 }
4041 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
4042 return resultobj;
4043 fail:
4044 return NULL;
4045 }
4046
4047
4048 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4049 PyObject *resultobj;
4050 wxBitmap *arg1 = 0 ;
4051 wxIcon *result;
4052 PyObject * obj0 = 0 ;
4053 char *kwnames[] = {
4054 (char *) "bmp", NULL
4055 };
4056
4057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
4058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4059 SWIG_POINTER_EXCEPTION | 0)) == -1)
4060 SWIG_fail;
4061 if (arg1 == NULL) {
4062 PyErr_SetString(PyExc_TypeError,"null reference");
4063 SWIG_fail;
4064 }
4065 {
4066 PyThreadState* __tstate = wxPyBeginAllowThreads();
4067 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
4068
4069 wxPyEndAllowThreads(__tstate);
4070 if (PyErr_Occurred()) SWIG_fail;
4071 }
4072 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
4073 return resultobj;
4074 fail:
4075 return NULL;
4076 }
4077
4078
4079 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
4080 PyObject *resultobj;
4081 PyObject *arg1 = (PyObject *) 0 ;
4082 wxIcon *result;
4083 PyObject * obj0 = 0 ;
4084 char *kwnames[] = {
4085 (char *) "listOfStrings", NULL
4086 };
4087
4088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
4089 arg1 = obj0;
4090 {
4091 PyThreadState* __tstate = wxPyBeginAllowThreads();
4092 result = (wxIcon *)new_wxIcon(arg1);
4093
4094 wxPyEndAllowThreads(__tstate);
4095 if (PyErr_Occurred()) SWIG_fail;
4096 }
4097 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
4098 return resultobj;
4099 fail:
4100 return NULL;
4101 }
4102
4103
4104 static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4105 PyObject *resultobj;
4106 wxIcon *arg1 = (wxIcon *) 0 ;
4107 wxString *arg2 = 0 ;
4108 int arg3 ;
4109 bool result;
4110 bool temp2 = False ;
4111 PyObject * obj0 = 0 ;
4112 PyObject * obj1 = 0 ;
4113 PyObject * obj2 = 0 ;
4114 char *kwnames[] = {
4115 (char *) "self",(char *) "name",(char *) "type", NULL
4116 };
4117
4118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4121 {
4122 arg2 = wxString_in_helper(obj1);
4123 if (arg2 == NULL) SWIG_fail;
4124 temp2 = True;
4125 }
4126 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
4127 if (PyErr_Occurred()) SWIG_fail;
4128 {
4129 PyThreadState* __tstate = wxPyBeginAllowThreads();
4130 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
4131
4132 wxPyEndAllowThreads(__tstate);
4133 if (PyErr_Occurred()) SWIG_fail;
4134 }
4135 {
4136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4137 }
4138 {
4139 if (temp2)
4140 delete arg2;
4141 }
4142 return resultobj;
4143 fail:
4144 {
4145 if (temp2)
4146 delete arg2;
4147 }
4148 return NULL;
4149 }
4150
4151
4152 static PyObject *_wrap_Icon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4153 PyObject *resultobj;
4154 wxIcon *arg1 = (wxIcon *) 0 ;
4155 long result;
4156 PyObject * obj0 = 0 ;
4157 char *kwnames[] = {
4158 (char *) "self", NULL
4159 };
4160
4161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail;
4162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4164 {
4165 PyThreadState* __tstate = wxPyBeginAllowThreads();
4166 result = (long)(arg1)->GetHandle();
4167
4168 wxPyEndAllowThreads(__tstate);
4169 if (PyErr_Occurred()) SWIG_fail;
4170 }
4171 resultobj = SWIG_FromLong((long)result);
4172 return resultobj;
4173 fail:
4174 return NULL;
4175 }
4176
4177
4178 static PyObject *_wrap_Icon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4179 PyObject *resultobj;
4180 wxIcon *arg1 = (wxIcon *) 0 ;
4181 long arg2 ;
4182 PyObject * obj0 = 0 ;
4183 PyObject * obj1 = 0 ;
4184 char *kwnames[] = {
4185 (char *) "self",(char *) "handle", NULL
4186 };
4187
4188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail;
4189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4191 arg2 = (long) SWIG_AsLong(obj1);
4192 if (PyErr_Occurred()) SWIG_fail;
4193 {
4194 PyThreadState* __tstate = wxPyBeginAllowThreads();
4195 wxIcon_SetHandle(arg1,arg2);
4196
4197 wxPyEndAllowThreads(__tstate);
4198 if (PyErr_Occurred()) SWIG_fail;
4199 }
4200 Py_INCREF(Py_None); resultobj = Py_None;
4201 return resultobj;
4202 fail:
4203 return NULL;
4204 }
4205
4206
4207 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4208 PyObject *resultobj;
4209 wxIcon *arg1 = (wxIcon *) 0 ;
4210 bool result;
4211 PyObject * obj0 = 0 ;
4212 char *kwnames[] = {
4213 (char *) "self", NULL
4214 };
4215
4216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
4217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4219 {
4220 PyThreadState* __tstate = wxPyBeginAllowThreads();
4221 result = (bool)(arg1)->Ok();
4222
4223 wxPyEndAllowThreads(__tstate);
4224 if (PyErr_Occurred()) SWIG_fail;
4225 }
4226 {
4227 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4228 }
4229 return resultobj;
4230 fail:
4231 return NULL;
4232 }
4233
4234
4235 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4236 PyObject *resultobj;
4237 wxIcon *arg1 = (wxIcon *) 0 ;
4238 int result;
4239 PyObject * obj0 = 0 ;
4240 char *kwnames[] = {
4241 (char *) "self", NULL
4242 };
4243
4244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
4245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4247 {
4248 PyThreadState* __tstate = wxPyBeginAllowThreads();
4249 result = (int)(arg1)->GetWidth();
4250
4251 wxPyEndAllowThreads(__tstate);
4252 if (PyErr_Occurred()) SWIG_fail;
4253 }
4254 resultobj = SWIG_FromInt((int)result);
4255 return resultobj;
4256 fail:
4257 return NULL;
4258 }
4259
4260
4261 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4262 PyObject *resultobj;
4263 wxIcon *arg1 = (wxIcon *) 0 ;
4264 int result;
4265 PyObject * obj0 = 0 ;
4266 char *kwnames[] = {
4267 (char *) "self", NULL
4268 };
4269
4270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
4271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4273 {
4274 PyThreadState* __tstate = wxPyBeginAllowThreads();
4275 result = (int)(arg1)->GetHeight();
4276
4277 wxPyEndAllowThreads(__tstate);
4278 if (PyErr_Occurred()) SWIG_fail;
4279 }
4280 resultobj = SWIG_FromInt((int)result);
4281 return resultobj;
4282 fail:
4283 return NULL;
4284 }
4285
4286
4287 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4288 PyObject *resultobj;
4289 wxIcon *arg1 = (wxIcon *) 0 ;
4290 int result;
4291 PyObject * obj0 = 0 ;
4292 char *kwnames[] = {
4293 (char *) "self", NULL
4294 };
4295
4296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
4297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4299 {
4300 PyThreadState* __tstate = wxPyBeginAllowThreads();
4301 result = (int)(arg1)->GetDepth();
4302
4303 wxPyEndAllowThreads(__tstate);
4304 if (PyErr_Occurred()) SWIG_fail;
4305 }
4306 resultobj = SWIG_FromInt((int)result);
4307 return resultobj;
4308 fail:
4309 return NULL;
4310 }
4311
4312
4313 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4314 PyObject *resultobj;
4315 wxIcon *arg1 = (wxIcon *) 0 ;
4316 int arg2 ;
4317 PyObject * obj0 = 0 ;
4318 PyObject * obj1 = 0 ;
4319 char *kwnames[] = {
4320 (char *) "self",(char *) "w", NULL
4321 };
4322
4323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
4324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4326 arg2 = (int) SWIG_AsInt(obj1);
4327 if (PyErr_Occurred()) SWIG_fail;
4328 {
4329 PyThreadState* __tstate = wxPyBeginAllowThreads();
4330 (arg1)->SetWidth(arg2);
4331
4332 wxPyEndAllowThreads(__tstate);
4333 if (PyErr_Occurred()) SWIG_fail;
4334 }
4335 Py_INCREF(Py_None); resultobj = Py_None;
4336 return resultobj;
4337 fail:
4338 return NULL;
4339 }
4340
4341
4342 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4343 PyObject *resultobj;
4344 wxIcon *arg1 = (wxIcon *) 0 ;
4345 int arg2 ;
4346 PyObject * obj0 = 0 ;
4347 PyObject * obj1 = 0 ;
4348 char *kwnames[] = {
4349 (char *) "self",(char *) "h", NULL
4350 };
4351
4352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4355 arg2 = (int) SWIG_AsInt(obj1);
4356 if (PyErr_Occurred()) SWIG_fail;
4357 {
4358 PyThreadState* __tstate = wxPyBeginAllowThreads();
4359 (arg1)->SetHeight(arg2);
4360
4361 wxPyEndAllowThreads(__tstate);
4362 if (PyErr_Occurred()) SWIG_fail;
4363 }
4364 Py_INCREF(Py_None); resultobj = Py_None;
4365 return resultobj;
4366 fail:
4367 return NULL;
4368 }
4369
4370
4371 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4372 PyObject *resultobj;
4373 wxIcon *arg1 = (wxIcon *) 0 ;
4374 int arg2 ;
4375 PyObject * obj0 = 0 ;
4376 PyObject * obj1 = 0 ;
4377 char *kwnames[] = {
4378 (char *) "self",(char *) "d", NULL
4379 };
4380
4381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4384 arg2 = (int) SWIG_AsInt(obj1);
4385 if (PyErr_Occurred()) SWIG_fail;
4386 {
4387 PyThreadState* __tstate = wxPyBeginAllowThreads();
4388 (arg1)->SetDepth(arg2);
4389
4390 wxPyEndAllowThreads(__tstate);
4391 if (PyErr_Occurred()) SWIG_fail;
4392 }
4393 Py_INCREF(Py_None); resultobj = Py_None;
4394 return resultobj;
4395 fail:
4396 return NULL;
4397 }
4398
4399
4400 static PyObject *_wrap_Icon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4401 PyObject *resultobj;
4402 wxIcon *arg1 = (wxIcon *) 0 ;
4403 wxSize *arg2 = 0 ;
4404 wxSize temp2 ;
4405 PyObject * obj0 = 0 ;
4406 PyObject * obj1 = 0 ;
4407 char *kwnames[] = {
4408 (char *) "self",(char *) "size", NULL
4409 };
4410
4411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail;
4412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4414 {
4415 arg2 = &temp2;
4416 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4417 }
4418 {
4419 PyThreadState* __tstate = wxPyBeginAllowThreads();
4420 (arg1)->SetSize((wxSize const &)*arg2);
4421
4422 wxPyEndAllowThreads(__tstate);
4423 if (PyErr_Occurred()) SWIG_fail;
4424 }
4425 Py_INCREF(Py_None); resultobj = Py_None;
4426 return resultobj;
4427 fail:
4428 return NULL;
4429 }
4430
4431
4432 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4433 PyObject *resultobj;
4434 wxIcon *arg1 = (wxIcon *) 0 ;
4435 wxBitmap *arg2 = 0 ;
4436 PyObject * obj0 = 0 ;
4437 PyObject * obj1 = 0 ;
4438 char *kwnames[] = {
4439 (char *) "self",(char *) "bmp", NULL
4440 };
4441
4442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
4443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4445 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4446 SWIG_POINTER_EXCEPTION | 0)) == -1)
4447 SWIG_fail;
4448 if (arg2 == NULL) {
4449 PyErr_SetString(PyExc_TypeError,"null reference");
4450 SWIG_fail;
4451 }
4452 {
4453 PyThreadState* __tstate = wxPyBeginAllowThreads();
4454 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
4455
4456 wxPyEndAllowThreads(__tstate);
4457 if (PyErr_Occurred()) SWIG_fail;
4458 }
4459 Py_INCREF(Py_None); resultobj = Py_None;
4460 return resultobj;
4461 fail:
4462 return NULL;
4463 }
4464
4465
4466 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
4467 PyObject *obj;
4468 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4469 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
4470 Py_INCREF(obj);
4471 return Py_BuildValue((char *)"");
4472 }
4473 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4474 PyObject *resultobj;
4475 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4476 int arg2 = (int) 0 ;
4477 wxIconLocation *result;
4478 bool temp1 = False ;
4479 PyObject * obj0 = 0 ;
4480 PyObject * obj1 = 0 ;
4481 char *kwnames[] = {
4482 (char *) "filename",(char *) "num", NULL
4483 };
4484
4485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
4486 if (obj0) {
4487 {
4488 arg1 = wxString_in_helper(obj0);
4489 if (arg1 == NULL) SWIG_fail;
4490 temp1 = True;
4491 }
4492 }
4493 if (obj1) {
4494 arg2 = (int) SWIG_AsInt(obj1);
4495 if (PyErr_Occurred()) SWIG_fail;
4496 }
4497 {
4498 PyThreadState* __tstate = wxPyBeginAllowThreads();
4499 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4500
4501 wxPyEndAllowThreads(__tstate);
4502 if (PyErr_Occurred()) SWIG_fail;
4503 }
4504 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
4505 {
4506 if (temp1)
4507 delete arg1;
4508 }
4509 return resultobj;
4510 fail:
4511 {
4512 if (temp1)
4513 delete arg1;
4514 }
4515 return NULL;
4516 }
4517
4518
4519 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4520 PyObject *resultobj;
4521 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4522 PyObject * obj0 = 0 ;
4523 char *kwnames[] = {
4524 (char *) "self", NULL
4525 };
4526
4527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
4528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4530 {
4531 PyThreadState* __tstate = wxPyBeginAllowThreads();
4532 delete arg1;
4533
4534 wxPyEndAllowThreads(__tstate);
4535 if (PyErr_Occurred()) SWIG_fail;
4536 }
4537 Py_INCREF(Py_None); resultobj = Py_None;
4538 return resultobj;
4539 fail:
4540 return NULL;
4541 }
4542
4543
4544 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4545 PyObject *resultobj;
4546 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4547 bool result;
4548 PyObject * obj0 = 0 ;
4549 char *kwnames[] = {
4550 (char *) "self", NULL
4551 };
4552
4553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4556 {
4557 PyThreadState* __tstate = wxPyBeginAllowThreads();
4558 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4559
4560 wxPyEndAllowThreads(__tstate);
4561 if (PyErr_Occurred()) SWIG_fail;
4562 }
4563 {
4564 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4565 }
4566 return resultobj;
4567 fail:
4568 return NULL;
4569 }
4570
4571
4572 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4573 PyObject *resultobj;
4574 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4575 wxString *arg2 = 0 ;
4576 bool temp2 = False ;
4577 PyObject * obj0 = 0 ;
4578 PyObject * obj1 = 0 ;
4579 char *kwnames[] = {
4580 (char *) "self",(char *) "filename", NULL
4581 };
4582
4583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4586 {
4587 arg2 = wxString_in_helper(obj1);
4588 if (arg2 == NULL) SWIG_fail;
4589 temp2 = True;
4590 }
4591 {
4592 PyThreadState* __tstate = wxPyBeginAllowThreads();
4593 (arg1)->SetFileName((wxString const &)*arg2);
4594
4595 wxPyEndAllowThreads(__tstate);
4596 if (PyErr_Occurred()) SWIG_fail;
4597 }
4598 Py_INCREF(Py_None); resultobj = Py_None;
4599 {
4600 if (temp2)
4601 delete arg2;
4602 }
4603 return resultobj;
4604 fail:
4605 {
4606 if (temp2)
4607 delete arg2;
4608 }
4609 return NULL;
4610 }
4611
4612
4613 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4614 PyObject *resultobj;
4615 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4616 wxString *result;
4617 PyObject * obj0 = 0 ;
4618 char *kwnames[] = {
4619 (char *) "self", NULL
4620 };
4621
4622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4625 {
4626 PyThreadState* __tstate = wxPyBeginAllowThreads();
4627 {
4628 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4629 result = (wxString *) &_result_ref;
4630 }
4631
4632 wxPyEndAllowThreads(__tstate);
4633 if (PyErr_Occurred()) SWIG_fail;
4634 }
4635 {
4636 #if wxUSE_UNICODE
4637 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4638 #else
4639 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4640 #endif
4641 }
4642 return resultobj;
4643 fail:
4644 return NULL;
4645 }
4646
4647
4648 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4649 PyObject *resultobj;
4650 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4651 int arg2 ;
4652 PyObject * obj0 = 0 ;
4653 PyObject * obj1 = 0 ;
4654 char *kwnames[] = {
4655 (char *) "self",(char *) "num", NULL
4656 };
4657
4658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4661 arg2 = (int) SWIG_AsInt(obj1);
4662 if (PyErr_Occurred()) SWIG_fail;
4663 {
4664 PyThreadState* __tstate = wxPyBeginAllowThreads();
4665 wxIconLocation_SetIndex(arg1,arg2);
4666
4667 wxPyEndAllowThreads(__tstate);
4668 if (PyErr_Occurred()) SWIG_fail;
4669 }
4670 Py_INCREF(Py_None); resultobj = Py_None;
4671 return resultobj;
4672 fail:
4673 return NULL;
4674 }
4675
4676
4677 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4678 PyObject *resultobj;
4679 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4680 int result;
4681 PyObject * obj0 = 0 ;
4682 char *kwnames[] = {
4683 (char *) "self", NULL
4684 };
4685
4686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4689 {
4690 PyThreadState* __tstate = wxPyBeginAllowThreads();
4691 result = (int)wxIconLocation_GetIndex(arg1);
4692
4693 wxPyEndAllowThreads(__tstate);
4694 if (PyErr_Occurred()) SWIG_fail;
4695 }
4696 resultobj = SWIG_FromInt((int)result);
4697 return resultobj;
4698 fail:
4699 return NULL;
4700 }
4701
4702
4703 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4704 PyObject *obj;
4705 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4706 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4707 Py_INCREF(obj);
4708 return Py_BuildValue((char *)"");
4709 }
4710 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4711 PyObject *resultobj;
4712 wxIconBundle *result;
4713 char *kwnames[] = {
4714 NULL
4715 };
4716
4717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4718 {
4719 PyThreadState* __tstate = wxPyBeginAllowThreads();
4720 result = (wxIconBundle *)new wxIconBundle();
4721
4722 wxPyEndAllowThreads(__tstate);
4723 if (PyErr_Occurred()) SWIG_fail;
4724 }
4725 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4726 return resultobj;
4727 fail:
4728 return NULL;
4729 }
4730
4731
4732 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4733 PyObject *resultobj;
4734 wxString *arg1 = 0 ;
4735 long arg2 ;
4736 wxIconBundle *result;
4737 bool temp1 = False ;
4738 PyObject * obj0 = 0 ;
4739 PyObject * obj1 = 0 ;
4740 char *kwnames[] = {
4741 (char *) "file",(char *) "type", NULL
4742 };
4743
4744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4745 {
4746 arg1 = wxString_in_helper(obj0);
4747 if (arg1 == NULL) SWIG_fail;
4748 temp1 = True;
4749 }
4750 arg2 = (long) SWIG_AsLong(obj1);
4751 if (PyErr_Occurred()) SWIG_fail;
4752 {
4753 PyThreadState* __tstate = wxPyBeginAllowThreads();
4754 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4755
4756 wxPyEndAllowThreads(__tstate);
4757 if (PyErr_Occurred()) SWIG_fail;
4758 }
4759 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4760 {
4761 if (temp1)
4762 delete arg1;
4763 }
4764 return resultobj;
4765 fail:
4766 {
4767 if (temp1)
4768 delete arg1;
4769 }
4770 return NULL;
4771 }
4772
4773
4774 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4775 PyObject *resultobj;
4776 wxIcon *arg1 = 0 ;
4777 wxIconBundle *result;
4778 PyObject * obj0 = 0 ;
4779 char *kwnames[] = {
4780 (char *) "icon", NULL
4781 };
4782
4783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4785 SWIG_POINTER_EXCEPTION | 0)) == -1)
4786 SWIG_fail;
4787 if (arg1 == NULL) {
4788 PyErr_SetString(PyExc_TypeError,"null reference");
4789 SWIG_fail;
4790 }
4791 {
4792 PyThreadState* __tstate = wxPyBeginAllowThreads();
4793 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4794
4795 wxPyEndAllowThreads(__tstate);
4796 if (PyErr_Occurred()) SWIG_fail;
4797 }
4798 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4799 return resultobj;
4800 fail:
4801 return NULL;
4802 }
4803
4804
4805 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4806 PyObject *resultobj;
4807 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4808 PyObject * obj0 = 0 ;
4809 char *kwnames[] = {
4810 (char *) "self", NULL
4811 };
4812
4813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4816 {
4817 PyThreadState* __tstate = wxPyBeginAllowThreads();
4818 delete arg1;
4819
4820 wxPyEndAllowThreads(__tstate);
4821 if (PyErr_Occurred()) SWIG_fail;
4822 }
4823 Py_INCREF(Py_None); resultobj = Py_None;
4824 return resultobj;
4825 fail:
4826 return NULL;
4827 }
4828
4829
4830 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4831 PyObject *resultobj;
4832 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4833 wxIcon *arg2 = 0 ;
4834 PyObject * obj0 = 0 ;
4835 PyObject * obj1 = 0 ;
4836 char *kwnames[] = {
4837 (char *) "self",(char *) "icon", NULL
4838 };
4839
4840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4843 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4844 SWIG_POINTER_EXCEPTION | 0)) == -1)
4845 SWIG_fail;
4846 if (arg2 == NULL) {
4847 PyErr_SetString(PyExc_TypeError,"null reference");
4848 SWIG_fail;
4849 }
4850 {
4851 PyThreadState* __tstate = wxPyBeginAllowThreads();
4852 (arg1)->AddIcon((wxIcon const &)*arg2);
4853
4854 wxPyEndAllowThreads(__tstate);
4855 if (PyErr_Occurred()) SWIG_fail;
4856 }
4857 Py_INCREF(Py_None); resultobj = Py_None;
4858 return resultobj;
4859 fail:
4860 return NULL;
4861 }
4862
4863
4864 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4865 PyObject *resultobj;
4866 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4867 wxString *arg2 = 0 ;
4868 long arg3 ;
4869 bool temp2 = False ;
4870 PyObject * obj0 = 0 ;
4871 PyObject * obj1 = 0 ;
4872 PyObject * obj2 = 0 ;
4873 char *kwnames[] = {
4874 (char *) "self",(char *) "file",(char *) "type", NULL
4875 };
4876
4877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4880 {
4881 arg2 = wxString_in_helper(obj1);
4882 if (arg2 == NULL) SWIG_fail;
4883 temp2 = True;
4884 }
4885 arg3 = (long) SWIG_AsLong(obj2);
4886 if (PyErr_Occurred()) SWIG_fail;
4887 {
4888 PyThreadState* __tstate = wxPyBeginAllowThreads();
4889 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4890
4891 wxPyEndAllowThreads(__tstate);
4892 if (PyErr_Occurred()) SWIG_fail;
4893 }
4894 Py_INCREF(Py_None); resultobj = Py_None;
4895 {
4896 if (temp2)
4897 delete arg2;
4898 }
4899 return resultobj;
4900 fail:
4901 {
4902 if (temp2)
4903 delete arg2;
4904 }
4905 return NULL;
4906 }
4907
4908
4909 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4910 PyObject *resultobj;
4911 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4912 wxSize *arg2 = 0 ;
4913 wxIcon *result;
4914 wxSize temp2 ;
4915 PyObject * obj0 = 0 ;
4916 PyObject * obj1 = 0 ;
4917 char *kwnames[] = {
4918 (char *) "self",(char *) "size", NULL
4919 };
4920
4921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4924 {
4925 arg2 = &temp2;
4926 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4927 }
4928 {
4929 PyThreadState* __tstate = wxPyBeginAllowThreads();
4930 {
4931 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4932 result = (wxIcon *) &_result_ref;
4933 }
4934
4935 wxPyEndAllowThreads(__tstate);
4936 if (PyErr_Occurred()) SWIG_fail;
4937 }
4938 {
4939 wxIcon* resultptr = new wxIcon(*result);
4940 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4941 }
4942 return resultobj;
4943 fail:
4944 return NULL;
4945 }
4946
4947
4948 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4949 PyObject *obj;
4950 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4951 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4952 Py_INCREF(obj);
4953 return Py_BuildValue((char *)"");
4954 }
4955 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4956 PyObject *resultobj;
4957 wxString *arg1 = (wxString *) 0 ;
4958 long arg2 ;
4959 int arg3 = (int) 0 ;
4960 int arg4 = (int) 0 ;
4961 wxCursor *result;
4962 bool temp1 = False ;
4963 PyObject * obj0 = 0 ;
4964 PyObject * obj1 = 0 ;
4965 PyObject * obj2 = 0 ;
4966 PyObject * obj3 = 0 ;
4967 char *kwnames[] = {
4968 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4969 };
4970
4971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4972 {
4973 arg1 = wxString_in_helper(obj0);
4974 if (arg1 == NULL) SWIG_fail;
4975 temp1 = True;
4976 }
4977 arg2 = (long) SWIG_AsLong(obj1);
4978 if (PyErr_Occurred()) SWIG_fail;
4979 if (obj2) {
4980 arg3 = (int) SWIG_AsInt(obj2);
4981 if (PyErr_Occurred()) SWIG_fail;
4982 }
4983 if (obj3) {
4984 arg4 = (int) SWIG_AsInt(obj3);
4985 if (PyErr_Occurred()) SWIG_fail;
4986 }
4987 {
4988 PyThreadState* __tstate = wxPyBeginAllowThreads();
4989 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4990
4991 wxPyEndAllowThreads(__tstate);
4992 if (PyErr_Occurred()) SWIG_fail;
4993 }
4994 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4995 {
4996 if (temp1)
4997 delete arg1;
4998 }
4999 return resultobj;
5000 fail:
5001 {
5002 if (temp1)
5003 delete arg1;
5004 }
5005 return NULL;
5006 }
5007
5008
5009 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5010 PyObject *resultobj;
5011 wxCursor *arg1 = (wxCursor *) 0 ;
5012 PyObject * obj0 = 0 ;
5013 char *kwnames[] = {
5014 (char *) "self", NULL
5015 };
5016
5017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
5018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5020 {
5021 PyThreadState* __tstate = wxPyBeginAllowThreads();
5022 delete arg1;
5023
5024 wxPyEndAllowThreads(__tstate);
5025 if (PyErr_Occurred()) SWIG_fail;
5026 }
5027 Py_INCREF(Py_None); resultobj = Py_None;
5028 return resultobj;
5029 fail:
5030 return NULL;
5031 }
5032
5033
5034 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5035 PyObject *resultobj;
5036 int arg1 ;
5037 wxCursor *result;
5038 PyObject * obj0 = 0 ;
5039 char *kwnames[] = {
5040 (char *) "id", NULL
5041 };
5042
5043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
5044 arg1 = (int) SWIG_AsInt(obj0);
5045 if (PyErr_Occurred()) SWIG_fail;
5046 {
5047 PyThreadState* __tstate = wxPyBeginAllowThreads();
5048 result = (wxCursor *)new wxCursor(arg1);
5049
5050 wxPyEndAllowThreads(__tstate);
5051 if (PyErr_Occurred()) SWIG_fail;
5052 }
5053 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
5054 return resultobj;
5055 fail:
5056 return NULL;
5057 }
5058
5059
5060 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
5061 PyObject *resultobj;
5062 wxImage *arg1 = 0 ;
5063 wxCursor *result;
5064 PyObject * obj0 = 0 ;
5065 char *kwnames[] = {
5066 (char *) "image", NULL
5067 };
5068
5069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
5070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
5071 SWIG_POINTER_EXCEPTION | 0)) == -1)
5072 SWIG_fail;
5073 if (arg1 == NULL) {
5074 PyErr_SetString(PyExc_TypeError,"null reference");
5075 SWIG_fail;
5076 }
5077 {
5078 PyThreadState* __tstate = wxPyBeginAllowThreads();
5079 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
5080
5081 wxPyEndAllowThreads(__tstate);
5082 if (PyErr_Occurred()) SWIG_fail;
5083 }
5084 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
5085 return resultobj;
5086 fail:
5087 return NULL;
5088 }
5089
5090
5091 static PyObject *_wrap_Cursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
5092 PyObject *resultobj;
5093 wxCursor *arg1 = (wxCursor *) 0 ;
5094 long result;
5095 PyObject * obj0 = 0 ;
5096 char *kwnames[] = {
5097 (char *) "self", NULL
5098 };
5099
5100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail;
5101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5103 {
5104 PyThreadState* __tstate = wxPyBeginAllowThreads();
5105 result = (long)(arg1)->GetHandle();
5106
5107 wxPyEndAllowThreads(__tstate);
5108 if (PyErr_Occurred()) SWIG_fail;
5109 }
5110 resultobj = SWIG_FromLong((long)result);
5111 return resultobj;
5112 fail:
5113 return NULL;
5114 }
5115
5116
5117 static PyObject *_wrap_Cursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
5118 PyObject *resultobj;
5119 wxCursor *arg1 = (wxCursor *) 0 ;
5120 long arg2 ;
5121 PyObject * obj0 = 0 ;
5122 PyObject * obj1 = 0 ;
5123 char *kwnames[] = {
5124 (char *) "self",(char *) "handle", NULL
5125 };
5126
5127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail;
5128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5130 arg2 = (long) SWIG_AsLong(obj1);
5131 if (PyErr_Occurred()) SWIG_fail;
5132 {
5133 PyThreadState* __tstate = wxPyBeginAllowThreads();
5134 wxCursor_SetHandle(arg1,arg2);
5135
5136 wxPyEndAllowThreads(__tstate);
5137 if (PyErr_Occurred()) SWIG_fail;
5138 }
5139 Py_INCREF(Py_None); resultobj = Py_None;
5140 return resultobj;
5141 fail:
5142 return NULL;
5143 }
5144
5145
5146 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
5147 PyObject *resultobj;
5148 wxCursor *arg1 = (wxCursor *) 0 ;
5149 bool result;
5150 PyObject * obj0 = 0 ;
5151 char *kwnames[] = {
5152 (char *) "self", NULL
5153 };
5154
5155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
5156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5158 {
5159 PyThreadState* __tstate = wxPyBeginAllowThreads();
5160 result = (bool)(arg1)->Ok();
5161
5162 wxPyEndAllowThreads(__tstate);
5163 if (PyErr_Occurred()) SWIG_fail;
5164 }
5165 {
5166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5167 }
5168 return resultobj;
5169 fail:
5170 return NULL;
5171 }
5172
5173
5174 static PyObject *_wrap_Cursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5175 PyObject *resultobj;
5176 wxCursor *arg1 = (wxCursor *) 0 ;
5177 int result;
5178 PyObject * obj0 = 0 ;
5179 char *kwnames[] = {
5180 (char *) "self", NULL
5181 };
5182
5183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail;
5184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5186 {
5187 PyThreadState* __tstate = wxPyBeginAllowThreads();
5188 result = (int)(arg1)->GetWidth();
5189
5190 wxPyEndAllowThreads(__tstate);
5191 if (PyErr_Occurred()) SWIG_fail;
5192 }
5193 resultobj = SWIG_FromInt((int)result);
5194 return resultobj;
5195 fail:
5196 return NULL;
5197 }
5198
5199
5200 static PyObject *_wrap_Cursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5201 PyObject *resultobj;
5202 wxCursor *arg1 = (wxCursor *) 0 ;
5203 int result;
5204 PyObject * obj0 = 0 ;
5205 char *kwnames[] = {
5206 (char *) "self", NULL
5207 };
5208
5209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail;
5210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5212 {
5213 PyThreadState* __tstate = wxPyBeginAllowThreads();
5214 result = (int)(arg1)->GetHeight();
5215
5216 wxPyEndAllowThreads(__tstate);
5217 if (PyErr_Occurred()) SWIG_fail;
5218 }
5219 resultobj = SWIG_FromInt((int)result);
5220 return resultobj;
5221 fail:
5222 return NULL;
5223 }
5224
5225
5226 static PyObject *_wrap_Cursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
5227 PyObject *resultobj;
5228 wxCursor *arg1 = (wxCursor *) 0 ;
5229 int result;
5230 PyObject * obj0 = 0 ;
5231 char *kwnames[] = {
5232 (char *) "self", NULL
5233 };
5234
5235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail;
5236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5238 {
5239 PyThreadState* __tstate = wxPyBeginAllowThreads();
5240 result = (int)(arg1)->GetDepth();
5241
5242 wxPyEndAllowThreads(__tstate);
5243 if (PyErr_Occurred()) SWIG_fail;
5244 }
5245 resultobj = SWIG_FromInt((int)result);
5246 return resultobj;
5247 fail:
5248 return NULL;
5249 }
5250
5251
5252 static PyObject *_wrap_Cursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5253 PyObject *resultobj;
5254 wxCursor *arg1 = (wxCursor *) 0 ;
5255 int arg2 ;
5256 PyObject * obj0 = 0 ;
5257 PyObject * obj1 = 0 ;
5258 char *kwnames[] = {
5259 (char *) "self",(char *) "w", NULL
5260 };
5261
5262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail;
5263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5265 arg2 = (int) SWIG_AsInt(obj1);
5266 if (PyErr_Occurred()) SWIG_fail;
5267 {
5268 PyThreadState* __tstate = wxPyBeginAllowThreads();
5269 (arg1)->SetWidth(arg2);
5270
5271 wxPyEndAllowThreads(__tstate);
5272 if (PyErr_Occurred()) SWIG_fail;
5273 }
5274 Py_INCREF(Py_None); resultobj = Py_None;
5275 return resultobj;
5276 fail:
5277 return NULL;
5278 }
5279
5280
5281 static PyObject *_wrap_Cursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5282 PyObject *resultobj;
5283 wxCursor *arg1 = (wxCursor *) 0 ;
5284 int arg2 ;
5285 PyObject * obj0 = 0 ;
5286 PyObject * obj1 = 0 ;
5287 char *kwnames[] = {
5288 (char *) "self",(char *) "h", NULL
5289 };
5290
5291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail;
5292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5294 arg2 = (int) SWIG_AsInt(obj1);
5295 if (PyErr_Occurred()) SWIG_fail;
5296 {
5297 PyThreadState* __tstate = wxPyBeginAllowThreads();
5298 (arg1)->SetHeight(arg2);
5299
5300 wxPyEndAllowThreads(__tstate);
5301 if (PyErr_Occurred()) SWIG_fail;
5302 }
5303 Py_INCREF(Py_None); resultobj = Py_None;
5304 return resultobj;
5305 fail:
5306 return NULL;
5307 }
5308
5309
5310 static PyObject *_wrap_Cursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
5311 PyObject *resultobj;
5312 wxCursor *arg1 = (wxCursor *) 0 ;
5313 int arg2 ;
5314 PyObject * obj0 = 0 ;
5315 PyObject * obj1 = 0 ;
5316 char *kwnames[] = {
5317 (char *) "self",(char *) "d", NULL
5318 };
5319
5320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail;
5321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5323 arg2 = (int) SWIG_AsInt(obj1);
5324 if (PyErr_Occurred()) SWIG_fail;
5325 {
5326 PyThreadState* __tstate = wxPyBeginAllowThreads();
5327 (arg1)->SetDepth(arg2);
5328
5329 wxPyEndAllowThreads(__tstate);
5330 if (PyErr_Occurred()) SWIG_fail;
5331 }
5332 Py_INCREF(Py_None); resultobj = Py_None;
5333 return resultobj;
5334 fail:
5335 return NULL;
5336 }
5337
5338
5339 static PyObject *_wrap_Cursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5340 PyObject *resultobj;
5341 wxCursor *arg1 = (wxCursor *) 0 ;
5342 wxSize *arg2 = 0 ;
5343 wxSize temp2 ;
5344 PyObject * obj0 = 0 ;
5345 PyObject * obj1 = 0 ;
5346 char *kwnames[] = {
5347 (char *) "self",(char *) "size", NULL
5348 };
5349
5350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail;
5351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5353 {
5354 arg2 = &temp2;
5355 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5356 }
5357 {
5358 PyThreadState* __tstate = wxPyBeginAllowThreads();
5359 (arg1)->SetSize((wxSize const &)*arg2);
5360
5361 wxPyEndAllowThreads(__tstate);
5362 if (PyErr_Occurred()) SWIG_fail;
5363 }
5364 Py_INCREF(Py_None); resultobj = Py_None;
5365 return resultobj;
5366 fail:
5367 return NULL;
5368 }
5369
5370
5371 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
5372 PyObject *obj;
5373 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5374 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
5375 Py_INCREF(obj);
5376 return Py_BuildValue((char *)"");
5377 }
5378 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
5379 PyObject *resultobj;
5380 int arg1 = (int) 0 ;
5381 int arg2 = (int) 0 ;
5382 int arg3 = (int) 0 ;
5383 int arg4 = (int) 0 ;
5384 wxRegion *result;
5385 PyObject * obj0 = 0 ;
5386 PyObject * obj1 = 0 ;
5387 PyObject * obj2 = 0 ;
5388 PyObject * obj3 = 0 ;
5389 char *kwnames[] = {
5390 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5391 };
5392
5393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5394 if (obj0) {
5395 arg1 = (int) SWIG_AsInt(obj0);
5396 if (PyErr_Occurred()) SWIG_fail;
5397 }
5398 if (obj1) {
5399 arg2 = (int) SWIG_AsInt(obj1);
5400 if (PyErr_Occurred()) SWIG_fail;
5401 }
5402 if (obj2) {
5403 arg3 = (int) SWIG_AsInt(obj2);
5404 if (PyErr_Occurred()) SWIG_fail;
5405 }
5406 if (obj3) {
5407 arg4 = (int) SWIG_AsInt(obj3);
5408 if (PyErr_Occurred()) SWIG_fail;
5409 }
5410 {
5411 PyThreadState* __tstate = wxPyBeginAllowThreads();
5412 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
5413
5414 wxPyEndAllowThreads(__tstate);
5415 if (PyErr_Occurred()) SWIG_fail;
5416 }
5417 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5418 return resultobj;
5419 fail:
5420 return NULL;
5421 }
5422
5423
5424 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5425 PyObject *resultobj;
5426 wxBitmap *arg1 = 0 ;
5427 wxColour const &arg2_defvalue = wxNullColour ;
5428 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
5429 int arg3 = (int) 0 ;
5430 wxRegion *result;
5431 wxColour temp2 ;
5432 PyObject * obj0 = 0 ;
5433 PyObject * obj1 = 0 ;
5434 PyObject * obj2 = 0 ;
5435 char *kwnames[] = {
5436 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5437 };
5438
5439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
5440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
5441 SWIG_POINTER_EXCEPTION | 0)) == -1)
5442 SWIG_fail;
5443 if (arg1 == NULL) {
5444 PyErr_SetString(PyExc_TypeError,"null reference");
5445 SWIG_fail;
5446 }
5447 if (obj1) {
5448 {
5449 arg2 = &temp2;
5450 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5451 }
5452 }
5453 if (obj2) {
5454 arg3 = (int) SWIG_AsInt(obj2);
5455 if (PyErr_Occurred()) SWIG_fail;
5456 }
5457 {
5458 PyThreadState* __tstate = wxPyBeginAllowThreads();
5459 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
5460
5461 wxPyEndAllowThreads(__tstate);
5462 if (PyErr_Occurred()) SWIG_fail;
5463 }
5464 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5465 return resultobj;
5466 fail:
5467 return NULL;
5468 }
5469
5470
5471 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
5472 PyObject *resultobj;
5473 int arg1 ;
5474 wxPoint *arg2 = (wxPoint *) 0 ;
5475 int arg3 = (int) wxWINDING_RULE ;
5476 wxRegion *result;
5477 PyObject * obj0 = 0 ;
5478 PyObject * obj1 = 0 ;
5479 char *kwnames[] = {
5480 (char *) "points",(char *) "fillStyle", NULL
5481 };
5482
5483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
5484 {
5485 arg2 = wxPoint_LIST_helper(obj0, &arg1);
5486 if (arg2 == NULL) SWIG_fail;
5487 }
5488 if (obj1) {
5489 arg3 = (int) SWIG_AsInt(obj1);
5490 if (PyErr_Occurred()) SWIG_fail;
5491 }
5492 {
5493 PyThreadState* __tstate = wxPyBeginAllowThreads();
5494 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
5495
5496 wxPyEndAllowThreads(__tstate);
5497 if (PyErr_Occurred()) SWIG_fail;
5498 }
5499 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5500 {
5501 if (arg2) delete [] arg2;
5502 }
5503 return resultobj;
5504 fail:
5505 {
5506 if (arg2) delete [] arg2;
5507 }
5508 return NULL;
5509 }
5510
5511
5512 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
5513 PyObject *resultobj;
5514 wxRegion *arg1 = (wxRegion *) 0 ;
5515 PyObject * obj0 = 0 ;
5516 char *kwnames[] = {
5517 (char *) "self", NULL
5518 };
5519
5520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
5521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5523 {
5524 PyThreadState* __tstate = wxPyBeginAllowThreads();
5525 delete arg1;
5526
5527 wxPyEndAllowThreads(__tstate);
5528 if (PyErr_Occurred()) SWIG_fail;
5529 }
5530 Py_INCREF(Py_None); resultobj = Py_None;
5531 return resultobj;
5532 fail:
5533 return NULL;
5534 }
5535
5536
5537 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
5538 PyObject *resultobj;
5539 wxRegion *arg1 = (wxRegion *) 0 ;
5540 PyObject * obj0 = 0 ;
5541 char *kwnames[] = {
5542 (char *) "self", NULL
5543 };
5544
5545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
5546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5548 {
5549 PyThreadState* __tstate = wxPyBeginAllowThreads();
5550 (arg1)->Clear();
5551
5552 wxPyEndAllowThreads(__tstate);
5553 if (PyErr_Occurred()) SWIG_fail;
5554 }
5555 Py_INCREF(Py_None); resultobj = Py_None;
5556 return resultobj;
5557 fail:
5558 return NULL;
5559 }
5560
5561
5562 static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
5563 PyObject *resultobj;
5564 wxRegion *arg1 = (wxRegion *) 0 ;
5565 int arg2 ;
5566 int arg3 ;
5567 bool result;
5568 PyObject * obj0 = 0 ;
5569 PyObject * obj1 = 0 ;
5570 PyObject * obj2 = 0 ;
5571 char *kwnames[] = {
5572 (char *) "self",(char *) "x",(char *) "y", NULL
5573 };
5574
5575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
5576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5578 arg2 = (int) SWIG_AsInt(obj1);
5579 if (PyErr_Occurred()) SWIG_fail;
5580 arg3 = (int) SWIG_AsInt(obj2);
5581 if (PyErr_Occurred()) SWIG_fail;
5582 {
5583 PyThreadState* __tstate = wxPyBeginAllowThreads();
5584 result = (bool)(arg1)->Offset(arg2,arg3);
5585
5586 wxPyEndAllowThreads(__tstate);
5587 if (PyErr_Occurred()) SWIG_fail;
5588 }
5589 {
5590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5591 }
5592 return resultobj;
5593 fail:
5594 return NULL;
5595 }
5596
5597
5598 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
5599 PyObject *resultobj;
5600 wxRegion *arg1 = (wxRegion *) 0 ;
5601 int arg2 ;
5602 int arg3 ;
5603 int result;
5604 PyObject * obj0 = 0 ;
5605 PyObject * obj1 = 0 ;
5606 PyObject * obj2 = 0 ;
5607 char *kwnames[] = {
5608 (char *) "self",(char *) "x",(char *) "y", NULL
5609 };
5610
5611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
5612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5614 arg2 = (int) SWIG_AsInt(obj1);
5615 if (PyErr_Occurred()) SWIG_fail;
5616 arg3 = (int) SWIG_AsInt(obj2);
5617 if (PyErr_Occurred()) SWIG_fail;
5618 {
5619 PyThreadState* __tstate = wxPyBeginAllowThreads();
5620 result = (int)(arg1)->Contains(arg2,arg3);
5621
5622 wxPyEndAllowThreads(__tstate);
5623 if (PyErr_Occurred()) SWIG_fail;
5624 }
5625 resultobj = SWIG_FromInt((int)result);
5626 return resultobj;
5627 fail:
5628 return NULL;
5629 }
5630
5631
5632 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
5633 PyObject *resultobj;
5634 wxRegion *arg1 = (wxRegion *) 0 ;
5635 wxPoint *arg2 = 0 ;
5636 int result;
5637 wxPoint temp2 ;
5638 PyObject * obj0 = 0 ;
5639 PyObject * obj1 = 0 ;
5640 char *kwnames[] = {
5641 (char *) "self",(char *) "pt", NULL
5642 };
5643
5644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
5645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5647 {
5648 arg2 = &temp2;
5649 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5650 }
5651 {
5652 PyThreadState* __tstate = wxPyBeginAllowThreads();
5653 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5654
5655 wxPyEndAllowThreads(__tstate);
5656 if (PyErr_Occurred()) SWIG_fail;
5657 }
5658 resultobj = SWIG_FromInt((int)result);
5659 return resultobj;
5660 fail:
5661 return NULL;
5662 }
5663
5664
5665 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5666 PyObject *resultobj;
5667 wxRegion *arg1 = (wxRegion *) 0 ;
5668 wxRect *arg2 = 0 ;
5669 int result;
5670 wxRect temp2 ;
5671 PyObject * obj0 = 0 ;
5672 PyObject * obj1 = 0 ;
5673 char *kwnames[] = {
5674 (char *) "self",(char *) "rect", NULL
5675 };
5676
5677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
5678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5680 {
5681 arg2 = &temp2;
5682 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5683 }
5684 {
5685 PyThreadState* __tstate = wxPyBeginAllowThreads();
5686 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5687
5688 wxPyEndAllowThreads(__tstate);
5689 if (PyErr_Occurred()) SWIG_fail;
5690 }
5691 resultobj = SWIG_FromInt((int)result);
5692 return resultobj;
5693 fail:
5694 return NULL;
5695 }
5696
5697
5698 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
5699 PyObject *resultobj;
5700 wxRegion *arg1 = (wxRegion *) 0 ;
5701 int arg2 ;
5702 int arg3 ;
5703 int arg4 ;
5704 int arg5 ;
5705 int result;
5706 PyObject * obj0 = 0 ;
5707 PyObject * obj1 = 0 ;
5708 PyObject * obj2 = 0 ;
5709 PyObject * obj3 = 0 ;
5710 PyObject * obj4 = 0 ;
5711 char *kwnames[] = {
5712 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5713 };
5714
5715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5718 arg2 = (int) SWIG_AsInt(obj1);
5719 if (PyErr_Occurred()) SWIG_fail;
5720 arg3 = (int) SWIG_AsInt(obj2);
5721 if (PyErr_Occurred()) SWIG_fail;
5722 arg4 = (int) SWIG_AsInt(obj3);
5723 if (PyErr_Occurred()) SWIG_fail;
5724 arg5 = (int) SWIG_AsInt(obj4);
5725 if (PyErr_Occurred()) SWIG_fail;
5726 {
5727 PyThreadState* __tstate = wxPyBeginAllowThreads();
5728 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5729
5730 wxPyEndAllowThreads(__tstate);
5731 if (PyErr_Occurred()) SWIG_fail;
5732 }
5733 resultobj = SWIG_FromInt((int)result);
5734 return resultobj;
5735 fail:
5736 return NULL;
5737 }
5738
5739
5740 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5741 PyObject *resultobj;
5742 wxRegion *arg1 = (wxRegion *) 0 ;
5743 wxRect result;
5744 PyObject * obj0 = 0 ;
5745 char *kwnames[] = {
5746 (char *) "self", NULL
5747 };
5748
5749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5752 {
5753 PyThreadState* __tstate = wxPyBeginAllowThreads();
5754 result = (arg1)->GetBox();
5755
5756 wxPyEndAllowThreads(__tstate);
5757 if (PyErr_Occurred()) SWIG_fail;
5758 }
5759 {
5760 wxRect * resultptr;
5761 resultptr = new wxRect((wxRect &) result);
5762 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5763 }
5764 return resultobj;
5765 fail:
5766 return NULL;
5767 }
5768
5769
5770 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
5771 PyObject *resultobj;
5772 wxRegion *arg1 = (wxRegion *) 0 ;
5773 int arg2 ;
5774 int arg3 ;
5775 int arg4 ;
5776 int arg5 ;
5777 bool result;
5778 PyObject * obj0 = 0 ;
5779 PyObject * obj1 = 0 ;
5780 PyObject * obj2 = 0 ;
5781 PyObject * obj3 = 0 ;
5782 PyObject * obj4 = 0 ;
5783 char *kwnames[] = {
5784 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5785 };
5786
5787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5790 arg2 = (int) SWIG_AsInt(obj1);
5791 if (PyErr_Occurred()) SWIG_fail;
5792 arg3 = (int) SWIG_AsInt(obj2);
5793 if (PyErr_Occurred()) SWIG_fail;
5794 arg4 = (int) SWIG_AsInt(obj3);
5795 if (PyErr_Occurred()) SWIG_fail;
5796 arg5 = (int) SWIG_AsInt(obj4);
5797 if (PyErr_Occurred()) SWIG_fail;
5798 {
5799 PyThreadState* __tstate = wxPyBeginAllowThreads();
5800 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5801
5802 wxPyEndAllowThreads(__tstate);
5803 if (PyErr_Occurred()) SWIG_fail;
5804 }
5805 {
5806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5807 }
5808 return resultobj;
5809 fail:
5810 return NULL;
5811 }
5812
5813
5814 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5815 PyObject *resultobj;
5816 wxRegion *arg1 = (wxRegion *) 0 ;
5817 wxRect *arg2 = 0 ;
5818 bool result;
5819 wxRect temp2 ;
5820 PyObject * obj0 = 0 ;
5821 PyObject * obj1 = 0 ;
5822 char *kwnames[] = {
5823 (char *) "self",(char *) "rect", NULL
5824 };
5825
5826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5829 {
5830 arg2 = &temp2;
5831 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5832 }
5833 {
5834 PyThreadState* __tstate = wxPyBeginAllowThreads();
5835 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5836
5837 wxPyEndAllowThreads(__tstate);
5838 if (PyErr_Occurred()) SWIG_fail;
5839 }
5840 {
5841 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5842 }
5843 return resultobj;
5844 fail:
5845 return NULL;
5846 }
5847
5848
5849 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5850 PyObject *resultobj;
5851 wxRegion *arg1 = (wxRegion *) 0 ;
5852 wxRegion *arg2 = 0 ;
5853 bool result;
5854 PyObject * obj0 = 0 ;
5855 PyObject * obj1 = 0 ;
5856 char *kwnames[] = {
5857 (char *) "self",(char *) "region", NULL
5858 };
5859
5860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5863 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5864 SWIG_POINTER_EXCEPTION | 0)) == -1)
5865 SWIG_fail;
5866 if (arg2 == NULL) {
5867 PyErr_SetString(PyExc_TypeError,"null reference");
5868 SWIG_fail;
5869 }
5870 {
5871 PyThreadState* __tstate = wxPyBeginAllowThreads();
5872 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5873
5874 wxPyEndAllowThreads(__tstate);
5875 if (PyErr_Occurred()) SWIG_fail;
5876 }
5877 {
5878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5879 }
5880 return resultobj;
5881 fail:
5882 return NULL;
5883 }
5884
5885
5886 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5887 PyObject *resultobj;
5888 wxRegion *arg1 = (wxRegion *) 0 ;
5889 bool result;
5890 PyObject * obj0 = 0 ;
5891 char *kwnames[] = {
5892 (char *) "self", NULL
5893 };
5894
5895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5898 {
5899 PyThreadState* __tstate = wxPyBeginAllowThreads();
5900 result = (bool)(arg1)->IsEmpty();
5901
5902 wxPyEndAllowThreads(__tstate);
5903 if (PyErr_Occurred()) SWIG_fail;
5904 }
5905 {
5906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5907 }
5908 return resultobj;
5909 fail:
5910 return NULL;
5911 }
5912
5913
5914 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5915 PyObject *resultobj;
5916 wxRegion *arg1 = (wxRegion *) 0 ;
5917 int arg2 ;
5918 int arg3 ;
5919 int arg4 ;
5920 int arg5 ;
5921 bool result;
5922 PyObject * obj0 = 0 ;
5923 PyObject * obj1 = 0 ;
5924 PyObject * obj2 = 0 ;
5925 PyObject * obj3 = 0 ;
5926 PyObject * obj4 = 0 ;
5927 char *kwnames[] = {
5928 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5929 };
5930
5931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5934 arg2 = (int) SWIG_AsInt(obj1);
5935 if (PyErr_Occurred()) SWIG_fail;
5936 arg3 = (int) SWIG_AsInt(obj2);
5937 if (PyErr_Occurred()) SWIG_fail;
5938 arg4 = (int) SWIG_AsInt(obj3);
5939 if (PyErr_Occurred()) SWIG_fail;
5940 arg5 = (int) SWIG_AsInt(obj4);
5941 if (PyErr_Occurred()) SWIG_fail;
5942 {
5943 PyThreadState* __tstate = wxPyBeginAllowThreads();
5944 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5945
5946 wxPyEndAllowThreads(__tstate);
5947 if (PyErr_Occurred()) SWIG_fail;
5948 }
5949 {
5950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5951 }
5952 return resultobj;
5953 fail:
5954 return NULL;
5955 }
5956
5957
5958 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5959 PyObject *resultobj;
5960 wxRegion *arg1 = (wxRegion *) 0 ;
5961 wxRect *arg2 = 0 ;
5962 bool result;
5963 wxRect temp2 ;
5964 PyObject * obj0 = 0 ;
5965 PyObject * obj1 = 0 ;
5966 char *kwnames[] = {
5967 (char *) "self",(char *) "rect", NULL
5968 };
5969
5970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5973 {
5974 arg2 = &temp2;
5975 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5976 }
5977 {
5978 PyThreadState* __tstate = wxPyBeginAllowThreads();
5979 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5980
5981 wxPyEndAllowThreads(__tstate);
5982 if (PyErr_Occurred()) SWIG_fail;
5983 }
5984 {
5985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5986 }
5987 return resultobj;
5988 fail:
5989 return NULL;
5990 }
5991
5992
5993 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5994 PyObject *resultobj;
5995 wxRegion *arg1 = (wxRegion *) 0 ;
5996 wxRegion *arg2 = 0 ;
5997 bool result;
5998 PyObject * obj0 = 0 ;
5999 PyObject * obj1 = 0 ;
6000 char *kwnames[] = {
6001 (char *) "self",(char *) "region", NULL
6002 };
6003
6004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
6005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6007 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
6008 SWIG_POINTER_EXCEPTION | 0)) == -1)
6009 SWIG_fail;
6010 if (arg2 == NULL) {
6011 PyErr_SetString(PyExc_TypeError,"null reference");
6012 SWIG_fail;
6013 }
6014 {
6015 PyThreadState* __tstate = wxPyBeginAllowThreads();
6016 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
6017
6018 wxPyEndAllowThreads(__tstate);
6019 if (PyErr_Occurred()) SWIG_fail;
6020 }
6021 {
6022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6023 }
6024 return resultobj;
6025 fail:
6026 return NULL;
6027 }
6028
6029
6030 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
6031 PyObject *resultobj;
6032 wxRegion *arg1 = (wxRegion *) 0 ;
6033 int arg2 ;
6034 int arg3 ;
6035 int arg4 ;
6036 int arg5 ;
6037 bool result;
6038 PyObject * obj0 = 0 ;
6039 PyObject * obj1 = 0 ;
6040 PyObject * obj2 = 0 ;
6041 PyObject * obj3 = 0 ;
6042 PyObject * obj4 = 0 ;
6043 char *kwnames[] = {
6044 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
6045 };
6046
6047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6050 arg2 = (int) SWIG_AsInt(obj1);
6051 if (PyErr_Occurred()) SWIG_fail;
6052 arg3 = (int) SWIG_AsInt(obj2);
6053 if (PyErr_Occurred()) SWIG_fail;
6054 arg4 = (int) SWIG_AsInt(obj3);
6055 if (PyErr_Occurred()) SWIG_fail;
6056 arg5 = (int) SWIG_AsInt(obj4);
6057 if (PyErr_Occurred()) SWIG_fail;
6058 {
6059 PyThreadState* __tstate = wxPyBeginAllowThreads();
6060 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
6061
6062 wxPyEndAllowThreads(__tstate);
6063 if (PyErr_Occurred()) SWIG_fail;
6064 }
6065 {
6066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6067 }
6068 return resultobj;
6069 fail:
6070 return NULL;
6071 }
6072
6073
6074 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
6075 PyObject *resultobj;
6076 wxRegion *arg1 = (wxRegion *) 0 ;
6077 wxRect *arg2 = 0 ;
6078 bool result;
6079 wxRect temp2 ;
6080 PyObject * obj0 = 0 ;
6081 PyObject * obj1 = 0 ;
6082 char *kwnames[] = {
6083 (char *) "self",(char *) "rect", NULL
6084 };
6085
6086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
6087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6089 {
6090 arg2 = &temp2;
6091 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6092 }
6093 {
6094 PyThreadState* __tstate = wxPyBeginAllowThreads();
6095 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
6096
6097 wxPyEndAllowThreads(__tstate);
6098 if (PyErr_Occurred()) SWIG_fail;
6099 }
6100 {
6101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6102 }
6103 return resultobj;
6104 fail:
6105 return NULL;
6106 }
6107
6108
6109 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
6110 PyObject *resultobj;
6111 wxRegion *arg1 = (wxRegion *) 0 ;
6112 wxRegion *arg2 = 0 ;
6113 bool result;
6114 PyObject * obj0 = 0 ;
6115 PyObject * obj1 = 0 ;
6116 char *kwnames[] = {
6117 (char *) "self",(char *) "region", NULL
6118 };
6119
6120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
6121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6123 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
6124 SWIG_POINTER_EXCEPTION | 0)) == -1)
6125 SWIG_fail;
6126 if (arg2 == NULL) {
6127 PyErr_SetString(PyExc_TypeError,"null reference");
6128 SWIG_fail;
6129 }
6130 {
6131 PyThreadState* __tstate = wxPyBeginAllowThreads();
6132 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
6133
6134 wxPyEndAllowThreads(__tstate);
6135 if (PyErr_Occurred()) SWIG_fail;
6136 }
6137 {
6138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6139 }
6140 return resultobj;
6141 fail:
6142 return NULL;
6143 }
6144
6145
6146 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
6147 PyObject *resultobj;
6148 wxRegion *arg1 = (wxRegion *) 0 ;
6149 int arg2 ;
6150 int arg3 ;
6151 int arg4 ;
6152 int arg5 ;
6153 bool result;
6154 PyObject * obj0 = 0 ;
6155 PyObject * obj1 = 0 ;
6156 PyObject * obj2 = 0 ;
6157 PyObject * obj3 = 0 ;
6158 PyObject * obj4 = 0 ;
6159 char *kwnames[] = {
6160 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
6161 };
6162
6163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6166 arg2 = (int) SWIG_AsInt(obj1);
6167 if (PyErr_Occurred()) SWIG_fail;
6168 arg3 = (int) SWIG_AsInt(obj2);
6169 if (PyErr_Occurred()) SWIG_fail;
6170 arg4 = (int) SWIG_AsInt(obj3);
6171 if (PyErr_Occurred()) SWIG_fail;
6172 arg5 = (int) SWIG_AsInt(obj4);
6173 if (PyErr_Occurred()) SWIG_fail;
6174 {
6175 PyThreadState* __tstate = wxPyBeginAllowThreads();
6176 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
6177
6178 wxPyEndAllowThreads(__tstate);
6179 if (PyErr_Occurred()) SWIG_fail;
6180 }
6181 {
6182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6183 }
6184 return resultobj;
6185 fail:
6186 return NULL;
6187 }
6188
6189
6190 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
6191 PyObject *resultobj;
6192 wxRegion *arg1 = (wxRegion *) 0 ;
6193 wxRect *arg2 = 0 ;
6194 bool result;
6195 wxRect temp2 ;
6196 PyObject * obj0 = 0 ;
6197 PyObject * obj1 = 0 ;
6198 char *kwnames[] = {
6199 (char *) "self",(char *) "rect", NULL
6200 };
6201
6202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
6203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6205 {
6206 arg2 = &temp2;
6207 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6208 }
6209 {
6210 PyThreadState* __tstate = wxPyBeginAllowThreads();
6211 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
6212
6213 wxPyEndAllowThreads(__tstate);
6214 if (PyErr_Occurred()) SWIG_fail;
6215 }
6216 {
6217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6218 }
6219 return resultobj;
6220 fail:
6221 return NULL;
6222 }
6223
6224
6225 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
6226 PyObject *resultobj;
6227 wxRegion *arg1 = (wxRegion *) 0 ;
6228 wxRegion *arg2 = 0 ;
6229 bool result;
6230 PyObject * obj0 = 0 ;
6231 PyObject * obj1 = 0 ;
6232 char *kwnames[] = {
6233 (char *) "self",(char *) "region", NULL
6234 };
6235
6236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
6237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6239 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
6240 SWIG_POINTER_EXCEPTION | 0)) == -1)
6241 SWIG_fail;
6242 if (arg2 == NULL) {
6243 PyErr_SetString(PyExc_TypeError,"null reference");
6244 SWIG_fail;
6245 }
6246 {
6247 PyThreadState* __tstate = wxPyBeginAllowThreads();
6248 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
6249
6250 wxPyEndAllowThreads(__tstate);
6251 if (PyErr_Occurred()) SWIG_fail;
6252 }
6253 {
6254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6255 }
6256 return resultobj;
6257 fail:
6258 return NULL;
6259 }
6260
6261
6262 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
6263 PyObject *resultobj;
6264 wxRegion *arg1 = (wxRegion *) 0 ;
6265 SwigValueWrapper< wxBitmap > result;
6266 PyObject * obj0 = 0 ;
6267 char *kwnames[] = {
6268 (char *) "self", NULL
6269 };
6270
6271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
6272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6274 {
6275 PyThreadState* __tstate = wxPyBeginAllowThreads();
6276 result = (arg1)->ConvertToBitmap();
6277
6278 wxPyEndAllowThreads(__tstate);
6279 if (PyErr_Occurred()) SWIG_fail;
6280 }
6281 {
6282 wxBitmap * resultptr;
6283 resultptr = new wxBitmap((wxBitmap &) result);
6284 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
6285 }
6286 return resultobj;
6287 fail:
6288 return NULL;
6289 }
6290
6291
6292 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
6293 PyObject *resultobj;
6294 wxRegion *arg1 = (wxRegion *) 0 ;
6295 wxBitmap *arg2 = 0 ;
6296 wxColour const &arg3_defvalue = wxNullColour ;
6297 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
6298 int arg4 = (int) 0 ;
6299 bool result;
6300 wxColour temp3 ;
6301 PyObject * obj0 = 0 ;
6302 PyObject * obj1 = 0 ;
6303 PyObject * obj2 = 0 ;
6304 PyObject * obj3 = 0 ;
6305 char *kwnames[] = {
6306 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
6307 };
6308
6309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6312 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
6313 SWIG_POINTER_EXCEPTION | 0)) == -1)
6314 SWIG_fail;
6315 if (arg2 == NULL) {
6316 PyErr_SetString(PyExc_TypeError,"null reference");
6317 SWIG_fail;
6318 }
6319 if (obj2) {
6320 {
6321 arg3 = &temp3;
6322 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6323 }
6324 }
6325 if (obj3) {
6326 arg4 = (int) SWIG_AsInt(obj3);
6327 if (PyErr_Occurred()) SWIG_fail;
6328 }
6329 {
6330 PyThreadState* __tstate = wxPyBeginAllowThreads();
6331 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
6332
6333 wxPyEndAllowThreads(__tstate);
6334 if (PyErr_Occurred()) SWIG_fail;
6335 }
6336 {
6337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6338 }
6339 return resultobj;
6340 fail:
6341 return NULL;
6342 }
6343
6344
6345 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
6346 PyObject *obj;
6347 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6348 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
6349 Py_INCREF(obj);
6350 return Py_BuildValue((char *)"");
6351 }
6352 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
6353 PyObject *resultobj;
6354 wxRegion *arg1 = 0 ;
6355 wxRegionIterator *result;
6356 PyObject * obj0 = 0 ;
6357 char *kwnames[] = {
6358 (char *) "region", NULL
6359 };
6360
6361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
6362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6363 SWIG_POINTER_EXCEPTION | 0)) == -1)
6364 SWIG_fail;
6365 if (arg1 == NULL) {
6366 PyErr_SetString(PyExc_TypeError,"null reference");
6367 SWIG_fail;
6368 }
6369 {
6370 PyThreadState* __tstate = wxPyBeginAllowThreads();
6371 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
6372
6373 wxPyEndAllowThreads(__tstate);
6374 if (PyErr_Occurred()) SWIG_fail;
6375 }
6376 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
6377 return resultobj;
6378 fail:
6379 return NULL;
6380 }
6381
6382
6383 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
6384 PyObject *resultobj;
6385 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6386 PyObject * obj0 = 0 ;
6387 char *kwnames[] = {
6388 (char *) "self", NULL
6389 };
6390
6391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
6392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6394 {
6395 PyThreadState* __tstate = wxPyBeginAllowThreads();
6396 delete arg1;
6397
6398 wxPyEndAllowThreads(__tstate);
6399 if (PyErr_Occurred()) SWIG_fail;
6400 }
6401 Py_INCREF(Py_None); resultobj = Py_None;
6402 return resultobj;
6403 fail:
6404 return NULL;
6405 }
6406
6407
6408 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
6409 PyObject *resultobj;
6410 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6411 int result;
6412 PyObject * obj0 = 0 ;
6413 char *kwnames[] = {
6414 (char *) "self", NULL
6415 };
6416
6417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
6418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6420 {
6421 PyThreadState* __tstate = wxPyBeginAllowThreads();
6422 result = (int)(arg1)->GetX();
6423
6424 wxPyEndAllowThreads(__tstate);
6425 if (PyErr_Occurred()) SWIG_fail;
6426 }
6427 resultobj = SWIG_FromInt((int)result);
6428 return resultobj;
6429 fail:
6430 return NULL;
6431 }
6432
6433
6434 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
6435 PyObject *resultobj;
6436 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6437 int result;
6438 PyObject * obj0 = 0 ;
6439 char *kwnames[] = {
6440 (char *) "self", NULL
6441 };
6442
6443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
6444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6446 {
6447 PyThreadState* __tstate = wxPyBeginAllowThreads();
6448 result = (int)(arg1)->GetY();
6449
6450 wxPyEndAllowThreads(__tstate);
6451 if (PyErr_Occurred()) SWIG_fail;
6452 }
6453 resultobj = SWIG_FromInt((int)result);
6454 return resultobj;
6455 fail:
6456 return NULL;
6457 }
6458
6459
6460 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
6461 PyObject *resultobj;
6462 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6463 int result;
6464 PyObject * obj0 = 0 ;
6465 char *kwnames[] = {
6466 (char *) "self", NULL
6467 };
6468
6469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
6470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6472 {
6473 PyThreadState* __tstate = wxPyBeginAllowThreads();
6474 result = (int)(arg1)->GetW();
6475
6476 wxPyEndAllowThreads(__tstate);
6477 if (PyErr_Occurred()) SWIG_fail;
6478 }
6479 resultobj = SWIG_FromInt((int)result);
6480 return resultobj;
6481 fail:
6482 return NULL;
6483 }
6484
6485
6486 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6487 PyObject *resultobj;
6488 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6489 int result;
6490 PyObject * obj0 = 0 ;
6491 char *kwnames[] = {
6492 (char *) "self", NULL
6493 };
6494
6495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
6496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6498 {
6499 PyThreadState* __tstate = wxPyBeginAllowThreads();
6500 result = (int)(arg1)->GetWidth();
6501
6502 wxPyEndAllowThreads(__tstate);
6503 if (PyErr_Occurred()) SWIG_fail;
6504 }
6505 resultobj = SWIG_FromInt((int)result);
6506 return resultobj;
6507 fail:
6508 return NULL;
6509 }
6510
6511
6512 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
6513 PyObject *resultobj;
6514 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6515 int result;
6516 PyObject * obj0 = 0 ;
6517 char *kwnames[] = {
6518 (char *) "self", NULL
6519 };
6520
6521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
6522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6524 {
6525 PyThreadState* __tstate = wxPyBeginAllowThreads();
6526 result = (int)(arg1)->GetH();
6527
6528 wxPyEndAllowThreads(__tstate);
6529 if (PyErr_Occurred()) SWIG_fail;
6530 }
6531 resultobj = SWIG_FromInt((int)result);
6532 return resultobj;
6533 fail:
6534 return NULL;
6535 }
6536
6537
6538 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6539 PyObject *resultobj;
6540 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6541 int result;
6542 PyObject * obj0 = 0 ;
6543 char *kwnames[] = {
6544 (char *) "self", NULL
6545 };
6546
6547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
6548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6550 {
6551 PyThreadState* __tstate = wxPyBeginAllowThreads();
6552 result = (int)(arg1)->GetHeight();
6553
6554 wxPyEndAllowThreads(__tstate);
6555 if (PyErr_Occurred()) SWIG_fail;
6556 }
6557 resultobj = SWIG_FromInt((int)result);
6558 return resultobj;
6559 fail:
6560 return NULL;
6561 }
6562
6563
6564 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
6565 PyObject *resultobj;
6566 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6567 wxRect result;
6568 PyObject * obj0 = 0 ;
6569 char *kwnames[] = {
6570 (char *) "self", NULL
6571 };
6572
6573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
6574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6576 {
6577 PyThreadState* __tstate = wxPyBeginAllowThreads();
6578 result = (arg1)->GetRect();
6579
6580 wxPyEndAllowThreads(__tstate);
6581 if (PyErr_Occurred()) SWIG_fail;
6582 }
6583 {
6584 wxRect * resultptr;
6585 resultptr = new wxRect((wxRect &) result);
6586 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
6587 }
6588 return resultobj;
6589 fail:
6590 return NULL;
6591 }
6592
6593
6594 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
6595 PyObject *resultobj;
6596 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6597 bool result;
6598 PyObject * obj0 = 0 ;
6599 char *kwnames[] = {
6600 (char *) "self", NULL
6601 };
6602
6603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
6604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6606 {
6607 PyThreadState* __tstate = wxPyBeginAllowThreads();
6608 result = (bool)(arg1)->HaveRects();
6609
6610 wxPyEndAllowThreads(__tstate);
6611 if (PyErr_Occurred()) SWIG_fail;
6612 }
6613 {
6614 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6615 }
6616 return resultobj;
6617 fail:
6618 return NULL;
6619 }
6620
6621
6622 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
6623 PyObject *resultobj;
6624 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6625 PyObject * obj0 = 0 ;
6626 char *kwnames[] = {
6627 (char *) "self", NULL
6628 };
6629
6630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
6631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6633 {
6634 PyThreadState* __tstate = wxPyBeginAllowThreads();
6635 (arg1)->Reset();
6636
6637 wxPyEndAllowThreads(__tstate);
6638 if (PyErr_Occurred()) SWIG_fail;
6639 }
6640 Py_INCREF(Py_None); resultobj = Py_None;
6641 return resultobj;
6642 fail:
6643 return NULL;
6644 }
6645
6646
6647 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
6648 PyObject *resultobj;
6649 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6650 PyObject * obj0 = 0 ;
6651 char *kwnames[] = {
6652 (char *) "self", NULL
6653 };
6654
6655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
6656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6658 {
6659 PyThreadState* __tstate = wxPyBeginAllowThreads();
6660 wxRegionIterator_Next(arg1);
6661
6662 wxPyEndAllowThreads(__tstate);
6663 if (PyErr_Occurred()) SWIG_fail;
6664 }
6665 Py_INCREF(Py_None); resultobj = Py_None;
6666 return resultobj;
6667 fail:
6668 return NULL;
6669 }
6670
6671
6672 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
6673 PyObject *resultobj;
6674 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6675 bool result;
6676 PyObject * obj0 = 0 ;
6677 char *kwnames[] = {
6678 (char *) "self", NULL
6679 };
6680
6681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
6682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6684 {
6685 PyThreadState* __tstate = wxPyBeginAllowThreads();
6686 result = (bool)wxRegionIterator___nonzero__(arg1);
6687
6688 wxPyEndAllowThreads(__tstate);
6689 if (PyErr_Occurred()) SWIG_fail;
6690 }
6691 {
6692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6693 }
6694 return resultobj;
6695 fail:
6696 return NULL;
6697 }
6698
6699
6700 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
6701 PyObject *obj;
6702 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6703 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6704 Py_INCREF(obj);
6705 return Py_BuildValue((char *)"");
6706 }
6707 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6708 PyObject *resultobj;
6709 wxNativeFontInfo *result;
6710 char *kwnames[] = {
6711 NULL
6712 };
6713
6714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6715 {
6716 PyThreadState* __tstate = wxPyBeginAllowThreads();
6717 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6718
6719 wxPyEndAllowThreads(__tstate);
6720 if (PyErr_Occurred()) SWIG_fail;
6721 }
6722 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
6723 return resultobj;
6724 fail:
6725 return NULL;
6726 }
6727
6728
6729 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6730 PyObject *resultobj;
6731 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6732 PyObject * obj0 = 0 ;
6733 char *kwnames[] = {
6734 (char *) "self", NULL
6735 };
6736
6737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6740 {
6741 PyThreadState* __tstate = wxPyBeginAllowThreads();
6742 delete arg1;
6743
6744 wxPyEndAllowThreads(__tstate);
6745 if (PyErr_Occurred()) SWIG_fail;
6746 }
6747 Py_INCREF(Py_None); resultobj = Py_None;
6748 return resultobj;
6749 fail:
6750 return NULL;
6751 }
6752
6753
6754 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6755 PyObject *resultobj;
6756 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6757 PyObject * obj0 = 0 ;
6758 char *kwnames[] = {
6759 (char *) "self", NULL
6760 };
6761
6762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6765 {
6766 PyThreadState* __tstate = wxPyBeginAllowThreads();
6767 (arg1)->Init();
6768
6769 wxPyEndAllowThreads(__tstate);
6770 if (PyErr_Occurred()) SWIG_fail;
6771 }
6772 Py_INCREF(Py_None); resultobj = Py_None;
6773 return resultobj;
6774 fail:
6775 return NULL;
6776 }
6777
6778
6779 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6780 PyObject *resultobj;
6781 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6782 wxFont *arg2 = 0 ;
6783 PyObject * obj0 = 0 ;
6784 PyObject * obj1 = 0 ;
6785 char *kwnames[] = {
6786 (char *) "self",(char *) "font", NULL
6787 };
6788
6789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6792 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6793 SWIG_POINTER_EXCEPTION | 0)) == -1)
6794 SWIG_fail;
6795 if (arg2 == NULL) {
6796 PyErr_SetString(PyExc_TypeError,"null reference");
6797 SWIG_fail;
6798 }
6799 {
6800 PyThreadState* __tstate = wxPyBeginAllowThreads();
6801 (arg1)->InitFromFont((wxFont const &)*arg2);
6802
6803 wxPyEndAllowThreads(__tstate);
6804 if (PyErr_Occurred()) SWIG_fail;
6805 }
6806 Py_INCREF(Py_None); resultobj = Py_None;
6807 return resultobj;
6808 fail:
6809 return NULL;
6810 }
6811
6812
6813 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6814 PyObject *resultobj;
6815 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6816 int result;
6817 PyObject * obj0 = 0 ;
6818 char *kwnames[] = {
6819 (char *) "self", NULL
6820 };
6821
6822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6825 {
6826 PyThreadState* __tstate = wxPyBeginAllowThreads();
6827 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6828
6829 wxPyEndAllowThreads(__tstate);
6830 if (PyErr_Occurred()) SWIG_fail;
6831 }
6832 resultobj = SWIG_FromInt((int)result);
6833 return resultobj;
6834 fail:
6835 return NULL;
6836 }
6837
6838
6839 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6840 PyObject *resultobj;
6841 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6842 int result;
6843 PyObject * obj0 = 0 ;
6844 char *kwnames[] = {
6845 (char *) "self", NULL
6846 };
6847
6848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6851 {
6852 PyThreadState* __tstate = wxPyBeginAllowThreads();
6853 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6854
6855 wxPyEndAllowThreads(__tstate);
6856 if (PyErr_Occurred()) SWIG_fail;
6857 }
6858 resultobj = SWIG_FromInt((int)result);
6859 return resultobj;
6860 fail:
6861 return NULL;
6862 }
6863
6864
6865 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6866 PyObject *resultobj;
6867 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6868 int result;
6869 PyObject * obj0 = 0 ;
6870 char *kwnames[] = {
6871 (char *) "self", NULL
6872 };
6873
6874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6877 {
6878 PyThreadState* __tstate = wxPyBeginAllowThreads();
6879 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6880
6881 wxPyEndAllowThreads(__tstate);
6882 if (PyErr_Occurred()) SWIG_fail;
6883 }
6884 resultobj = SWIG_FromInt((int)result);
6885 return resultobj;
6886 fail:
6887 return NULL;
6888 }
6889
6890
6891 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6892 PyObject *resultobj;
6893 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6894 bool result;
6895 PyObject * obj0 = 0 ;
6896 char *kwnames[] = {
6897 (char *) "self", NULL
6898 };
6899
6900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6903 {
6904 PyThreadState* __tstate = wxPyBeginAllowThreads();
6905 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6906
6907 wxPyEndAllowThreads(__tstate);
6908 if (PyErr_Occurred()) SWIG_fail;
6909 }
6910 {
6911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6912 }
6913 return resultobj;
6914 fail:
6915 return NULL;
6916 }
6917
6918
6919 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6920 PyObject *resultobj;
6921 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6922 wxString result;
6923 PyObject * obj0 = 0 ;
6924 char *kwnames[] = {
6925 (char *) "self", NULL
6926 };
6927
6928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6931 {
6932 PyThreadState* __tstate = wxPyBeginAllowThreads();
6933 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6934
6935 wxPyEndAllowThreads(__tstate);
6936 if (PyErr_Occurred()) SWIG_fail;
6937 }
6938 {
6939 #if wxUSE_UNICODE
6940 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6941 #else
6942 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6943 #endif
6944 }
6945 return resultobj;
6946 fail:
6947 return NULL;
6948 }
6949
6950
6951 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6952 PyObject *resultobj;
6953 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6954 int result;
6955 PyObject * obj0 = 0 ;
6956 char *kwnames[] = {
6957 (char *) "self", NULL
6958 };
6959
6960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6963 {
6964 PyThreadState* __tstate = wxPyBeginAllowThreads();
6965 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6966
6967 wxPyEndAllowThreads(__tstate);
6968 if (PyErr_Occurred()) SWIG_fail;
6969 }
6970 resultobj = SWIG_FromInt((int)result);
6971 return resultobj;
6972 fail:
6973 return NULL;
6974 }
6975
6976
6977 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6978 PyObject *resultobj;
6979 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6980 int result;
6981 PyObject * obj0 = 0 ;
6982 char *kwnames[] = {
6983 (char *) "self", NULL
6984 };
6985
6986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6989 {
6990 PyThreadState* __tstate = wxPyBeginAllowThreads();
6991 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6992
6993 wxPyEndAllowThreads(__tstate);
6994 if (PyErr_Occurred()) SWIG_fail;
6995 }
6996 resultobj = SWIG_FromInt((int)result);
6997 return resultobj;
6998 fail:
6999 return NULL;
7000 }
7001
7002
7003 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7004 PyObject *resultobj;
7005 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7006 int arg2 ;
7007 PyObject * obj0 = 0 ;
7008 PyObject * obj1 = 0 ;
7009 char *kwnames[] = {
7010 (char *) "self",(char *) "pointsize", NULL
7011 };
7012
7013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
7014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7016 arg2 = (int) SWIG_AsInt(obj1);
7017 if (PyErr_Occurred()) SWIG_fail;
7018 {
7019 PyThreadState* __tstate = wxPyBeginAllowThreads();
7020 (arg1)->SetPointSize(arg2);
7021
7022 wxPyEndAllowThreads(__tstate);
7023 if (PyErr_Occurred()) SWIG_fail;
7024 }
7025 Py_INCREF(Py_None); resultobj = Py_None;
7026 return resultobj;
7027 fail:
7028 return NULL;
7029 }
7030
7031
7032 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7033 PyObject *resultobj;
7034 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7035 int arg2 ;
7036 PyObject * obj0 = 0 ;
7037 PyObject * obj1 = 0 ;
7038 char *kwnames[] = {
7039 (char *) "self",(char *) "style", NULL
7040 };
7041
7042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
7043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7045 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
7046 if (PyErr_Occurred()) SWIG_fail;
7047 {
7048 PyThreadState* __tstate = wxPyBeginAllowThreads();
7049 (arg1)->SetStyle((wxFontStyle )arg2);
7050
7051 wxPyEndAllowThreads(__tstate);
7052 if (PyErr_Occurred()) SWIG_fail;
7053 }
7054 Py_INCREF(Py_None); resultobj = Py_None;
7055 return resultobj;
7056 fail:
7057 return NULL;
7058 }
7059
7060
7061 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7062 PyObject *resultobj;
7063 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7064 int arg2 ;
7065 PyObject * obj0 = 0 ;
7066 PyObject * obj1 = 0 ;
7067 char *kwnames[] = {
7068 (char *) "self",(char *) "weight", NULL
7069 };
7070
7071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
7072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7074 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
7075 if (PyErr_Occurred()) SWIG_fail;
7076 {
7077 PyThreadState* __tstate = wxPyBeginAllowThreads();
7078 (arg1)->SetWeight((wxFontWeight )arg2);
7079
7080 wxPyEndAllowThreads(__tstate);
7081 if (PyErr_Occurred()) SWIG_fail;
7082 }
7083 Py_INCREF(Py_None); resultobj = Py_None;
7084 return resultobj;
7085 fail:
7086 return NULL;
7087 }
7088
7089
7090 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7091 PyObject *resultobj;
7092 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7093 bool arg2 ;
7094 PyObject * obj0 = 0 ;
7095 PyObject * obj1 = 0 ;
7096 char *kwnames[] = {
7097 (char *) "self",(char *) "underlined", NULL
7098 };
7099
7100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
7101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7103 arg2 = (bool) SWIG_AsBool(obj1);
7104 if (PyErr_Occurred()) SWIG_fail;
7105 {
7106 PyThreadState* __tstate = wxPyBeginAllowThreads();
7107 (arg1)->SetUnderlined(arg2);
7108
7109 wxPyEndAllowThreads(__tstate);
7110 if (PyErr_Occurred()) SWIG_fail;
7111 }
7112 Py_INCREF(Py_None); resultobj = Py_None;
7113 return resultobj;
7114 fail:
7115 return NULL;
7116 }
7117
7118
7119 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7120 PyObject *resultobj;
7121 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7122 wxString arg2 ;
7123 PyObject * obj0 = 0 ;
7124 PyObject * obj1 = 0 ;
7125 char *kwnames[] = {
7126 (char *) "self",(char *) "facename", NULL
7127 };
7128
7129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
7130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7132 {
7133 wxString* sptr = wxString_in_helper(obj1);
7134 if (sptr == NULL) SWIG_fail;
7135 arg2 = *sptr;
7136 delete sptr;
7137 }
7138 {
7139 PyThreadState* __tstate = wxPyBeginAllowThreads();
7140 (arg1)->SetFaceName(arg2);
7141
7142 wxPyEndAllowThreads(__tstate);
7143 if (PyErr_Occurred()) SWIG_fail;
7144 }
7145 Py_INCREF(Py_None); resultobj = Py_None;
7146 return resultobj;
7147 fail:
7148 return NULL;
7149 }
7150
7151
7152 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7153 PyObject *resultobj;
7154 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7155 int arg2 ;
7156 PyObject * obj0 = 0 ;
7157 PyObject * obj1 = 0 ;
7158 char *kwnames[] = {
7159 (char *) "self",(char *) "family", NULL
7160 };
7161
7162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
7163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7165 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
7166 if (PyErr_Occurred()) SWIG_fail;
7167 {
7168 PyThreadState* __tstate = wxPyBeginAllowThreads();
7169 (arg1)->SetFamily((wxFontFamily )arg2);
7170
7171 wxPyEndAllowThreads(__tstate);
7172 if (PyErr_Occurred()) SWIG_fail;
7173 }
7174 Py_INCREF(Py_None); resultobj = Py_None;
7175 return resultobj;
7176 fail:
7177 return NULL;
7178 }
7179
7180
7181 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7182 PyObject *resultobj;
7183 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7184 int arg2 ;
7185 PyObject * obj0 = 0 ;
7186 PyObject * obj1 = 0 ;
7187 char *kwnames[] = {
7188 (char *) "self",(char *) "encoding", NULL
7189 };
7190
7191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
7192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7194 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7195 if (PyErr_Occurred()) SWIG_fail;
7196 {
7197 PyThreadState* __tstate = wxPyBeginAllowThreads();
7198 (arg1)->SetEncoding((wxFontEncoding )arg2);
7199
7200 wxPyEndAllowThreads(__tstate);
7201 if (PyErr_Occurred()) SWIG_fail;
7202 }
7203 Py_INCREF(Py_None); resultobj = Py_None;
7204 return resultobj;
7205 fail:
7206 return NULL;
7207 }
7208
7209
7210 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7211 PyObject *resultobj;
7212 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7213 wxString *arg2 = 0 ;
7214 bool result;
7215 bool temp2 = False ;
7216 PyObject * obj0 = 0 ;
7217 PyObject * obj1 = 0 ;
7218 char *kwnames[] = {
7219 (char *) "self",(char *) "s", NULL
7220 };
7221
7222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
7223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7225 {
7226 arg2 = wxString_in_helper(obj1);
7227 if (arg2 == NULL) SWIG_fail;
7228 temp2 = True;
7229 }
7230 {
7231 PyThreadState* __tstate = wxPyBeginAllowThreads();
7232 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7233
7234 wxPyEndAllowThreads(__tstate);
7235 if (PyErr_Occurred()) SWIG_fail;
7236 }
7237 {
7238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7239 }
7240 {
7241 if (temp2)
7242 delete arg2;
7243 }
7244 return resultobj;
7245 fail:
7246 {
7247 if (temp2)
7248 delete arg2;
7249 }
7250 return NULL;
7251 }
7252
7253
7254 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
7255 PyObject *resultobj;
7256 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7257 wxString result;
7258 PyObject * obj0 = 0 ;
7259 char *kwnames[] = {
7260 (char *) "self", NULL
7261 };
7262
7263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
7264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7266 {
7267 PyThreadState* __tstate = wxPyBeginAllowThreads();
7268 result = ((wxNativeFontInfo const *)arg1)->ToString();
7269
7270 wxPyEndAllowThreads(__tstate);
7271 if (PyErr_Occurred()) SWIG_fail;
7272 }
7273 {
7274 #if wxUSE_UNICODE
7275 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7276 #else
7277 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7278 #endif
7279 }
7280 return resultobj;
7281 fail:
7282 return NULL;
7283 }
7284
7285
7286 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
7287 PyObject *resultobj;
7288 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7289 wxString result;
7290 PyObject * obj0 = 0 ;
7291 char *kwnames[] = {
7292 (char *) "self", NULL
7293 };
7294
7295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
7296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7298 {
7299 PyThreadState* __tstate = wxPyBeginAllowThreads();
7300 result = wxNativeFontInfo___str__(arg1);
7301
7302 wxPyEndAllowThreads(__tstate);
7303 if (PyErr_Occurred()) SWIG_fail;
7304 }
7305 {
7306 #if wxUSE_UNICODE
7307 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7308 #else
7309 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7310 #endif
7311 }
7312 return resultobj;
7313 fail:
7314 return NULL;
7315 }
7316
7317
7318 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
7319 PyObject *resultobj;
7320 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7321 wxString *arg2 = 0 ;
7322 bool result;
7323 bool temp2 = False ;
7324 PyObject * obj0 = 0 ;
7325 PyObject * obj1 = 0 ;
7326 char *kwnames[] = {
7327 (char *) "self",(char *) "s", NULL
7328 };
7329
7330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
7331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7333 {
7334 arg2 = wxString_in_helper(obj1);
7335 if (arg2 == NULL) SWIG_fail;
7336 temp2 = True;
7337 }
7338 {
7339 PyThreadState* __tstate = wxPyBeginAllowThreads();
7340 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
7341
7342 wxPyEndAllowThreads(__tstate);
7343 if (PyErr_Occurred()) SWIG_fail;
7344 }
7345 {
7346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7347 }
7348 {
7349 if (temp2)
7350 delete arg2;
7351 }
7352 return resultobj;
7353 fail:
7354 {
7355 if (temp2)
7356 delete arg2;
7357 }
7358 return NULL;
7359 }
7360
7361
7362 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
7363 PyObject *resultobj;
7364 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7365 wxString result;
7366 PyObject * obj0 = 0 ;
7367 char *kwnames[] = {
7368 (char *) "self", NULL
7369 };
7370
7371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
7372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7374 {
7375 PyThreadState* __tstate = wxPyBeginAllowThreads();
7376 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
7377
7378 wxPyEndAllowThreads(__tstate);
7379 if (PyErr_Occurred()) SWIG_fail;
7380 }
7381 {
7382 #if wxUSE_UNICODE
7383 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7384 #else
7385 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7386 #endif
7387 }
7388 return resultobj;
7389 fail:
7390 return NULL;
7391 }
7392
7393
7394 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
7395 PyObject *obj;
7396 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7397 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
7398 Py_INCREF(obj);
7399 return Py_BuildValue((char *)"");
7400 }
7401 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7402 PyObject *resultobj;
7403 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7404 wxString *arg2 = (wxString *) 0 ;
7405 bool temp2 = False ;
7406 PyObject * obj0 = 0 ;
7407 PyObject * obj1 = 0 ;
7408 char *kwnames[] = {
7409 (char *) "self",(char *) "facename", NULL
7410 };
7411
7412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
7413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7415 {
7416 arg2 = wxString_in_helper(obj1);
7417 if (arg2 == NULL) SWIG_fail;
7418 temp2 = True;
7419 }
7420 if (arg1) (arg1)->facename = *arg2;
7421
7422 Py_INCREF(Py_None); resultobj = Py_None;
7423 {
7424 if (temp2)
7425 delete arg2;
7426 }
7427 return resultobj;
7428 fail:
7429 {
7430 if (temp2)
7431 delete arg2;
7432 }
7433 return NULL;
7434 }
7435
7436
7437 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7438 PyObject *resultobj;
7439 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7440 wxString *result;
7441 PyObject * obj0 = 0 ;
7442 char *kwnames[] = {
7443 (char *) "self", NULL
7444 };
7445
7446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
7447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7449 result = (wxString *)& ((arg1)->facename);
7450
7451 {
7452 #if wxUSE_UNICODE
7453 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7454 #else
7455 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7456 #endif
7457 }
7458 return resultobj;
7459 fail:
7460 return NULL;
7461 }
7462
7463
7464 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7465 PyObject *resultobj;
7466 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7467 int arg2 ;
7468 PyObject * obj0 = 0 ;
7469 PyObject * obj1 = 0 ;
7470 char *kwnames[] = {
7471 (char *) "self",(char *) "encoding", NULL
7472 };
7473
7474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
7475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7477 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7478 if (PyErr_Occurred()) SWIG_fail;
7479 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
7480
7481 Py_INCREF(Py_None); resultobj = Py_None;
7482 return resultobj;
7483 fail:
7484 return NULL;
7485 }
7486
7487
7488 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7489 PyObject *resultobj;
7490 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7491 int result;
7492 PyObject * obj0 = 0 ;
7493 char *kwnames[] = {
7494 (char *) "self", NULL
7495 };
7496
7497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
7498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7500 result = (int) ((arg1)->encoding);
7501
7502 resultobj = SWIG_FromInt((int)result);
7503 return resultobj;
7504 fail:
7505 return NULL;
7506 }
7507
7508
7509 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7510 PyObject *resultobj;
7511 wxNativeEncodingInfo *result;
7512 char *kwnames[] = {
7513 NULL
7514 };
7515
7516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
7517 {
7518 PyThreadState* __tstate = wxPyBeginAllowThreads();
7519 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
7520
7521 wxPyEndAllowThreads(__tstate);
7522 if (PyErr_Occurred()) SWIG_fail;
7523 }
7524 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
7525 return resultobj;
7526 fail:
7527 return NULL;
7528 }
7529
7530
7531 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7532 PyObject *resultobj;
7533 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7534 PyObject * obj0 = 0 ;
7535 char *kwnames[] = {
7536 (char *) "self", NULL
7537 };
7538
7539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
7540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7542 {
7543 PyThreadState* __tstate = wxPyBeginAllowThreads();
7544 delete arg1;
7545
7546 wxPyEndAllowThreads(__tstate);
7547 if (PyErr_Occurred()) SWIG_fail;
7548 }
7549 Py_INCREF(Py_None); resultobj = Py_None;
7550 return resultobj;
7551 fail:
7552 return NULL;
7553 }
7554
7555
7556 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7557 PyObject *resultobj;
7558 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7559 wxString *arg2 = 0 ;
7560 bool result;
7561 bool temp2 = False ;
7562 PyObject * obj0 = 0 ;
7563 PyObject * obj1 = 0 ;
7564 char *kwnames[] = {
7565 (char *) "self",(char *) "s", NULL
7566 };
7567
7568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
7569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7571 {
7572 arg2 = wxString_in_helper(obj1);
7573 if (arg2 == NULL) SWIG_fail;
7574 temp2 = True;
7575 }
7576 {
7577 PyThreadState* __tstate = wxPyBeginAllowThreads();
7578 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7579
7580 wxPyEndAllowThreads(__tstate);
7581 if (PyErr_Occurred()) SWIG_fail;
7582 }
7583 {
7584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7585 }
7586 {
7587 if (temp2)
7588 delete arg2;
7589 }
7590 return resultobj;
7591 fail:
7592 {
7593 if (temp2)
7594 delete arg2;
7595 }
7596 return NULL;
7597 }
7598
7599
7600 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
7601 PyObject *resultobj;
7602 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7603 wxString result;
7604 PyObject * obj0 = 0 ;
7605 char *kwnames[] = {
7606 (char *) "self", NULL
7607 };
7608
7609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
7610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7612 {
7613 PyThreadState* __tstate = wxPyBeginAllowThreads();
7614 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
7615
7616 wxPyEndAllowThreads(__tstate);
7617 if (PyErr_Occurred()) SWIG_fail;
7618 }
7619 {
7620 #if wxUSE_UNICODE
7621 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7622 #else
7623 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7624 #endif
7625 }
7626 return resultobj;
7627 fail:
7628 return NULL;
7629 }
7630
7631
7632 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
7633 PyObject *obj;
7634 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7635 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
7636 Py_INCREF(obj);
7637 return Py_BuildValue((char *)"");
7638 }
7639 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7640 PyObject *resultobj;
7641 int arg1 ;
7642 wxNativeEncodingInfo *result;
7643 PyObject * obj0 = 0 ;
7644 char *kwnames[] = {
7645 (char *) "encoding", NULL
7646 };
7647
7648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
7649 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7650 if (PyErr_Occurred()) SWIG_fail;
7651 {
7652 PyThreadState* __tstate = wxPyBeginAllowThreads();
7653 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7654
7655 wxPyEndAllowThreads(__tstate);
7656 if (PyErr_Occurred()) SWIG_fail;
7657 }
7658 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
7659 return resultobj;
7660 fail:
7661 return NULL;
7662 }
7663
7664
7665 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7666 PyObject *resultobj;
7667 wxNativeEncodingInfo *arg1 = 0 ;
7668 bool result;
7669 PyObject * obj0 = 0 ;
7670 char *kwnames[] = {
7671 (char *) "info", NULL
7672 };
7673
7674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
7675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7676 SWIG_POINTER_EXCEPTION | 0)) == -1)
7677 SWIG_fail;
7678 if (arg1 == NULL) {
7679 PyErr_SetString(PyExc_TypeError,"null reference");
7680 SWIG_fail;
7681 }
7682 {
7683 PyThreadState* __tstate = wxPyBeginAllowThreads();
7684 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7685
7686 wxPyEndAllowThreads(__tstate);
7687 if (PyErr_Occurred()) SWIG_fail;
7688 }
7689 {
7690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7691 }
7692 return resultobj;
7693 fail:
7694 return NULL;
7695 }
7696
7697
7698 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7699 PyObject *resultobj;
7700 wxFontMapper *result;
7701 char *kwnames[] = {
7702 NULL
7703 };
7704
7705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7706 {
7707 PyThreadState* __tstate = wxPyBeginAllowThreads();
7708 result = (wxFontMapper *)new wxFontMapper();
7709
7710 wxPyEndAllowThreads(__tstate);
7711 if (PyErr_Occurred()) SWIG_fail;
7712 }
7713 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
7714 return resultobj;
7715 fail:
7716 return NULL;
7717 }
7718
7719
7720 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7721 PyObject *resultobj;
7722 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7723 PyObject * obj0 = 0 ;
7724 char *kwnames[] = {
7725 (char *) "self", NULL
7726 };
7727
7728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7731 {
7732 PyThreadState* __tstate = wxPyBeginAllowThreads();
7733 delete arg1;
7734
7735 wxPyEndAllowThreads(__tstate);
7736 if (PyErr_Occurred()) SWIG_fail;
7737 }
7738 Py_INCREF(Py_None); resultobj = Py_None;
7739 return resultobj;
7740 fail:
7741 return NULL;
7742 }
7743
7744
7745 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
7746 PyObject *resultobj;
7747 wxFontMapper *result;
7748 char *kwnames[] = {
7749 NULL
7750 };
7751
7752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7753 {
7754 PyThreadState* __tstate = wxPyBeginAllowThreads();
7755 result = (wxFontMapper *)wxFontMapper::Get();
7756
7757 wxPyEndAllowThreads(__tstate);
7758 if (PyErr_Occurred()) SWIG_fail;
7759 }
7760 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7761 return resultobj;
7762 fail:
7763 return NULL;
7764 }
7765
7766
7767 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7768 PyObject *resultobj;
7769 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7770 wxFontMapper *result;
7771 PyObject * obj0 = 0 ;
7772 char *kwnames[] = {
7773 (char *) "mapper", NULL
7774 };
7775
7776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7779 {
7780 PyThreadState* __tstate = wxPyBeginAllowThreads();
7781 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7782
7783 wxPyEndAllowThreads(__tstate);
7784 if (PyErr_Occurred()) SWIG_fail;
7785 }
7786 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7787 return resultobj;
7788 fail:
7789 return NULL;
7790 }
7791
7792
7793 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7794 PyObject *resultobj;
7795 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7796 wxString *arg2 = 0 ;
7797 bool arg3 = (bool) True ;
7798 int result;
7799 bool temp2 = False ;
7800 PyObject * obj0 = 0 ;
7801 PyObject * obj1 = 0 ;
7802 PyObject * obj2 = 0 ;
7803 char *kwnames[] = {
7804 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7805 };
7806
7807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7810 {
7811 arg2 = wxString_in_helper(obj1);
7812 if (arg2 == NULL) SWIG_fail;
7813 temp2 = True;
7814 }
7815 if (obj2) {
7816 arg3 = (bool) SWIG_AsBool(obj2);
7817 if (PyErr_Occurred()) SWIG_fail;
7818 }
7819 {
7820 PyThreadState* __tstate = wxPyBeginAllowThreads();
7821 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7822
7823 wxPyEndAllowThreads(__tstate);
7824 if (PyErr_Occurred()) SWIG_fail;
7825 }
7826 resultobj = SWIG_FromInt((int)result);
7827 {
7828 if (temp2)
7829 delete arg2;
7830 }
7831 return resultobj;
7832 fail:
7833 {
7834 if (temp2)
7835 delete arg2;
7836 }
7837 return NULL;
7838 }
7839
7840
7841 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7842 PyObject *resultobj;
7843 size_t result;
7844 char *kwnames[] = {
7845 NULL
7846 };
7847
7848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7849 {
7850 PyThreadState* __tstate = wxPyBeginAllowThreads();
7851 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7852
7853 wxPyEndAllowThreads(__tstate);
7854 if (PyErr_Occurred()) SWIG_fail;
7855 }
7856 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7857 return resultobj;
7858 fail:
7859 return NULL;
7860 }
7861
7862
7863 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7864 PyObject *resultobj;
7865 size_t arg1 ;
7866 int result;
7867 PyObject * obj0 = 0 ;
7868 char *kwnames[] = {
7869 (char *) "n", NULL
7870 };
7871
7872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7873 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7874 if (PyErr_Occurred()) SWIG_fail;
7875 {
7876 PyThreadState* __tstate = wxPyBeginAllowThreads();
7877 result = (int)wxFontMapper::GetEncoding(arg1);
7878
7879 wxPyEndAllowThreads(__tstate);
7880 if (PyErr_Occurred()) SWIG_fail;
7881 }
7882 resultobj = SWIG_FromInt((int)result);
7883 return resultobj;
7884 fail:
7885 return NULL;
7886 }
7887
7888
7889 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7890 PyObject *resultobj;
7891 int arg1 ;
7892 wxString result;
7893 PyObject * obj0 = 0 ;
7894 char *kwnames[] = {
7895 (char *) "encoding", NULL
7896 };
7897
7898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7899 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7900 if (PyErr_Occurred()) SWIG_fail;
7901 {
7902 PyThreadState* __tstate = wxPyBeginAllowThreads();
7903 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7904
7905 wxPyEndAllowThreads(__tstate);
7906 if (PyErr_Occurred()) SWIG_fail;
7907 }
7908 {
7909 #if wxUSE_UNICODE
7910 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7911 #else
7912 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7913 #endif
7914 }
7915 return resultobj;
7916 fail:
7917 return NULL;
7918 }
7919
7920
7921 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7922 PyObject *resultobj;
7923 int arg1 ;
7924 wxString result;
7925 PyObject * obj0 = 0 ;
7926 char *kwnames[] = {
7927 (char *) "encoding", NULL
7928 };
7929
7930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7931 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7932 if (PyErr_Occurred()) SWIG_fail;
7933 {
7934 PyThreadState* __tstate = wxPyBeginAllowThreads();
7935 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7936
7937 wxPyEndAllowThreads(__tstate);
7938 if (PyErr_Occurred()) SWIG_fail;
7939 }
7940 {
7941 #if wxUSE_UNICODE
7942 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7943 #else
7944 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7945 #endif
7946 }
7947 return resultobj;
7948 fail:
7949 return NULL;
7950 }
7951
7952
7953 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
7954 PyObject *resultobj;
7955 wxString *arg1 = 0 ;
7956 int result;
7957 bool temp1 = False ;
7958 PyObject * obj0 = 0 ;
7959 char *kwnames[] = {
7960 (char *) "name", NULL
7961 };
7962
7963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7964 {
7965 arg1 = wxString_in_helper(obj0);
7966 if (arg1 == NULL) SWIG_fail;
7967 temp1 = True;
7968 }
7969 {
7970 PyThreadState* __tstate = wxPyBeginAllowThreads();
7971 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7972
7973 wxPyEndAllowThreads(__tstate);
7974 if (PyErr_Occurred()) SWIG_fail;
7975 }
7976 resultobj = SWIG_FromInt((int)result);
7977 {
7978 if (temp1)
7979 delete arg1;
7980 }
7981 return resultobj;
7982 fail:
7983 {
7984 if (temp1)
7985 delete arg1;
7986 }
7987 return NULL;
7988 }
7989
7990
7991 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7992 PyObject *resultobj;
7993 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7994 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7995 PyObject * obj0 = 0 ;
7996 PyObject * obj1 = 0 ;
7997 char *kwnames[] = {
7998 (char *) "self",(char *) "config", NULL
7999 };
8000
8001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
8002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8004 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
8005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8006 {
8007 PyThreadState* __tstate = wxPyBeginAllowThreads();
8008 (arg1)->SetConfig(arg2);
8009
8010 wxPyEndAllowThreads(__tstate);
8011 if (PyErr_Occurred()) SWIG_fail;
8012 }
8013 Py_INCREF(Py_None); resultobj = Py_None;
8014 return resultobj;
8015 fail:
8016 return NULL;
8017 }
8018
8019
8020 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
8021 PyObject *resultobj;
8022 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8023 wxString *arg2 = 0 ;
8024 bool temp2 = False ;
8025 PyObject * obj0 = 0 ;
8026 PyObject * obj1 = 0 ;
8027 char *kwnames[] = {
8028 (char *) "self",(char *) "prefix", NULL
8029 };
8030
8031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
8032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8034 {
8035 arg2 = wxString_in_helper(obj1);
8036 if (arg2 == NULL) SWIG_fail;
8037 temp2 = True;
8038 }
8039 {
8040 PyThreadState* __tstate = wxPyBeginAllowThreads();
8041 (arg1)->SetConfigPath((wxString const &)*arg2);
8042
8043 wxPyEndAllowThreads(__tstate);
8044 if (PyErr_Occurred()) SWIG_fail;
8045 }
8046 Py_INCREF(Py_None); resultobj = Py_None;
8047 {
8048 if (temp2)
8049 delete arg2;
8050 }
8051 return resultobj;
8052 fail:
8053 {
8054 if (temp2)
8055 delete arg2;
8056 }
8057 return NULL;
8058 }
8059
8060
8061 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
8062 PyObject *resultobj;
8063 wxString result;
8064 char *kwnames[] = {
8065 NULL
8066 };
8067
8068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
8069 {
8070 PyThreadState* __tstate = wxPyBeginAllowThreads();
8071 result = wxFontMapper::GetDefaultConfigPath();
8072
8073 wxPyEndAllowThreads(__tstate);
8074 if (PyErr_Occurred()) SWIG_fail;
8075 }
8076 {
8077 #if wxUSE_UNICODE
8078 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8079 #else
8080 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8081 #endif
8082 }
8083 return resultobj;
8084 fail:
8085 return NULL;
8086 }
8087
8088
8089 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8090 PyObject *resultobj;
8091 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8092 int arg2 ;
8093 wxString const &arg3_defvalue = wxPyEmptyString ;
8094 wxString *arg3 = (wxString *) &arg3_defvalue ;
8095 bool arg4 = (bool) True ;
8096 PyObject *result;
8097 bool temp3 = False ;
8098 PyObject * obj0 = 0 ;
8099 PyObject * obj1 = 0 ;
8100 PyObject * obj2 = 0 ;
8101 PyObject * obj3 = 0 ;
8102 char *kwnames[] = {
8103 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
8104 };
8105
8106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8109 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8110 if (PyErr_Occurred()) SWIG_fail;
8111 if (obj2) {
8112 {
8113 arg3 = wxString_in_helper(obj2);
8114 if (arg3 == NULL) SWIG_fail;
8115 temp3 = True;
8116 }
8117 }
8118 if (obj3) {
8119 arg4 = (bool) SWIG_AsBool(obj3);
8120 if (PyErr_Occurred()) SWIG_fail;
8121 }
8122 {
8123 PyThreadState* __tstate = wxPyBeginAllowThreads();
8124 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
8125
8126 wxPyEndAllowThreads(__tstate);
8127 if (PyErr_Occurred()) SWIG_fail;
8128 }
8129 resultobj = result;
8130 {
8131 if (temp3)
8132 delete arg3;
8133 }
8134 return resultobj;
8135 fail:
8136 {
8137 if (temp3)
8138 delete arg3;
8139 }
8140 return NULL;
8141 }
8142
8143
8144 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
8145 PyObject *resultobj;
8146 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8147 int arg2 ;
8148 wxString const &arg3_defvalue = wxPyEmptyString ;
8149 wxString *arg3 = (wxString *) &arg3_defvalue ;
8150 bool result;
8151 bool temp3 = False ;
8152 PyObject * obj0 = 0 ;
8153 PyObject * obj1 = 0 ;
8154 PyObject * obj2 = 0 ;
8155 char *kwnames[] = {
8156 (char *) "self",(char *) "encoding",(char *) "facename", NULL
8157 };
8158
8159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
8160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8162 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8163 if (PyErr_Occurred()) SWIG_fail;
8164 if (obj2) {
8165 {
8166 arg3 = wxString_in_helper(obj2);
8167 if (arg3 == NULL) SWIG_fail;
8168 temp3 = True;
8169 }
8170 }
8171 {
8172 PyThreadState* __tstate = wxPyBeginAllowThreads();
8173 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
8174
8175 wxPyEndAllowThreads(__tstate);
8176 if (PyErr_Occurred()) SWIG_fail;
8177 }
8178 {
8179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8180 }
8181 {
8182 if (temp3)
8183 delete arg3;
8184 }
8185 return resultobj;
8186 fail:
8187 {
8188 if (temp3)
8189 delete arg3;
8190 }
8191 return NULL;
8192 }
8193
8194
8195 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
8196 PyObject *resultobj;
8197 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8198 wxWindow *arg2 = (wxWindow *) 0 ;
8199 PyObject * obj0 = 0 ;
8200 PyObject * obj1 = 0 ;
8201 char *kwnames[] = {
8202 (char *) "self",(char *) "parent", NULL
8203 };
8204
8205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
8206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8208 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
8209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8210 {
8211 PyThreadState* __tstate = wxPyBeginAllowThreads();
8212 (arg1)->SetDialogParent(arg2);
8213
8214 wxPyEndAllowThreads(__tstate);
8215 if (PyErr_Occurred()) SWIG_fail;
8216 }
8217 Py_INCREF(Py_None); resultobj = Py_None;
8218 return resultobj;
8219 fail:
8220 return NULL;
8221 }
8222
8223
8224 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
8225 PyObject *resultobj;
8226 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8227 wxString *arg2 = 0 ;
8228 bool temp2 = False ;
8229 PyObject * obj0 = 0 ;
8230 PyObject * obj1 = 0 ;
8231 char *kwnames[] = {
8232 (char *) "self",(char *) "title", NULL
8233 };
8234
8235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
8236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8238 {
8239 arg2 = wxString_in_helper(obj1);
8240 if (arg2 == NULL) SWIG_fail;
8241 temp2 = True;
8242 }
8243 {
8244 PyThreadState* __tstate = wxPyBeginAllowThreads();
8245 (arg1)->SetDialogTitle((wxString const &)*arg2);
8246
8247 wxPyEndAllowThreads(__tstate);
8248 if (PyErr_Occurred()) SWIG_fail;
8249 }
8250 Py_INCREF(Py_None); resultobj = Py_None;
8251 {
8252 if (temp2)
8253 delete arg2;
8254 }
8255 return resultobj;
8256 fail:
8257 {
8258 if (temp2)
8259 delete arg2;
8260 }
8261 return NULL;
8262 }
8263
8264
8265 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
8266 PyObject *obj;
8267 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8268 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
8269 Py_INCREF(obj);
8270 return Py_BuildValue((char *)"");
8271 }
8272 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
8273 PyObject *resultobj;
8274 int arg1 ;
8275 int arg2 ;
8276 int arg3 ;
8277 int arg4 ;
8278 bool arg5 = (bool) False ;
8279 wxString const &arg6_defvalue = wxPyEmptyString ;
8280 wxString *arg6 = (wxString *) &arg6_defvalue ;
8281 int arg7 = (int) wxFONTENCODING_DEFAULT ;
8282 wxFont *result;
8283 bool temp6 = False ;
8284 PyObject * obj0 = 0 ;
8285 PyObject * obj1 = 0 ;
8286 PyObject * obj2 = 0 ;
8287 PyObject * obj3 = 0 ;
8288 PyObject * obj4 = 0 ;
8289 PyObject * obj5 = 0 ;
8290 PyObject * obj6 = 0 ;
8291 char *kwnames[] = {
8292 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
8293 };
8294
8295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
8296 arg1 = (int) SWIG_AsInt(obj0);
8297 if (PyErr_Occurred()) SWIG_fail;
8298 arg2 = (int) SWIG_AsInt(obj1);
8299 if (PyErr_Occurred()) SWIG_fail;
8300 arg3 = (int) SWIG_AsInt(obj2);
8301 if (PyErr_Occurred()) SWIG_fail;
8302 arg4 = (int) SWIG_AsInt(obj3);
8303 if (PyErr_Occurred()) SWIG_fail;
8304 if (obj4) {
8305 arg5 = (bool) SWIG_AsBool(obj4);
8306 if (PyErr_Occurred()) SWIG_fail;
8307 }
8308 if (obj5) {
8309 {
8310 arg6 = wxString_in_helper(obj5);
8311 if (arg6 == NULL) SWIG_fail;
8312 temp6 = True;
8313 }
8314 }
8315 if (obj6) {
8316 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
8317 if (PyErr_Occurred()) SWIG_fail;
8318 }
8319 {
8320 PyThreadState* __tstate = wxPyBeginAllowThreads();
8321 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
8322
8323 wxPyEndAllowThreads(__tstate);
8324 if (PyErr_Occurred()) SWIG_fail;
8325 }
8326 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8327 {
8328 if (temp6)
8329 delete arg6;
8330 }
8331 return resultobj;
8332 fail:
8333 {
8334 if (temp6)
8335 delete arg6;
8336 }
8337 return NULL;
8338 }
8339
8340
8341 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
8342 PyObject *resultobj;
8343 wxFont *arg1 = (wxFont *) 0 ;
8344 PyObject * obj0 = 0 ;
8345 char *kwnames[] = {
8346 (char *) "self", NULL
8347 };
8348
8349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
8350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8352 {
8353 PyThreadState* __tstate = wxPyBeginAllowThreads();
8354 delete arg1;
8355
8356 wxPyEndAllowThreads(__tstate);
8357 if (PyErr_Occurred()) SWIG_fail;
8358 }
8359 Py_INCREF(Py_None); resultobj = Py_None;
8360 return resultobj;
8361 fail:
8362 return NULL;
8363 }
8364
8365
8366 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8367 PyObject *resultobj;
8368 wxNativeFontInfo *arg1 = 0 ;
8369 wxFont *result;
8370 PyObject * obj0 = 0 ;
8371 char *kwnames[] = {
8372 (char *) "info", NULL
8373 };
8374
8375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
8376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
8377 SWIG_POINTER_EXCEPTION | 0)) == -1)
8378 SWIG_fail;
8379 if (arg1 == NULL) {
8380 PyErr_SetString(PyExc_TypeError,"null reference");
8381 SWIG_fail;
8382 }
8383 {
8384 PyThreadState* __tstate = wxPyBeginAllowThreads();
8385 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
8386
8387 wxPyEndAllowThreads(__tstate);
8388 if (PyErr_Occurred()) SWIG_fail;
8389 }
8390 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8391 return resultobj;
8392 fail:
8393 return NULL;
8394 }
8395
8396
8397 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
8398 PyObject *resultobj;
8399 wxString *arg1 = 0 ;
8400 wxFont *result;
8401 bool temp1 = False ;
8402 PyObject * obj0 = 0 ;
8403 char *kwnames[] = {
8404 (char *) "info", NULL
8405 };
8406
8407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
8408 {
8409 arg1 = wxString_in_helper(obj0);
8410 if (arg1 == NULL) SWIG_fail;
8411 temp1 = True;
8412 }
8413 {
8414 PyThreadState* __tstate = wxPyBeginAllowThreads();
8415 result = (wxFont *)new_wxFont((wxString const &)*arg1);
8416
8417 wxPyEndAllowThreads(__tstate);
8418 if (PyErr_Occurred()) SWIG_fail;
8419 }
8420 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8421 {
8422 if (temp1)
8423 delete arg1;
8424 }
8425 return resultobj;
8426 fail:
8427 {
8428 if (temp1)
8429 delete arg1;
8430 }
8431 return NULL;
8432 }
8433
8434
8435 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
8436 PyObject *resultobj;
8437 int arg1 ;
8438 int arg2 ;
8439 int arg3 = (int) wxFONTFLAG_DEFAULT ;
8440 wxString const &arg4_defvalue = wxPyEmptyString ;
8441 wxString *arg4 = (wxString *) &arg4_defvalue ;
8442 int arg5 = (int) wxFONTENCODING_DEFAULT ;
8443 wxFont *result;
8444 bool temp4 = False ;
8445 PyObject * obj0 = 0 ;
8446 PyObject * obj1 = 0 ;
8447 PyObject * obj2 = 0 ;
8448 PyObject * obj3 = 0 ;
8449 PyObject * obj4 = 0 ;
8450 char *kwnames[] = {
8451 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
8452 };
8453
8454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
8455 arg1 = (int) SWIG_AsInt(obj0);
8456 if (PyErr_Occurred()) SWIG_fail;
8457 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
8458 if (PyErr_Occurred()) SWIG_fail;
8459 if (obj2) {
8460 arg3 = (int) SWIG_AsInt(obj2);
8461 if (PyErr_Occurred()) SWIG_fail;
8462 }
8463 if (obj3) {
8464 {
8465 arg4 = wxString_in_helper(obj3);
8466 if (arg4 == NULL) SWIG_fail;
8467 temp4 = True;
8468 }
8469 }
8470 if (obj4) {
8471 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
8472 if (PyErr_Occurred()) SWIG_fail;
8473 }
8474 {
8475 PyThreadState* __tstate = wxPyBeginAllowThreads();
8476 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
8477
8478 wxPyEndAllowThreads(__tstate);
8479 if (PyErr_Occurred()) SWIG_fail;
8480 }
8481 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8482 {
8483 if (temp4)
8484 delete arg4;
8485 }
8486 return resultobj;
8487 fail:
8488 {
8489 if (temp4)
8490 delete arg4;
8491 }
8492 return NULL;
8493 }
8494
8495
8496 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
8497 PyObject *resultobj;
8498 wxFont *arg1 = (wxFont *) 0 ;
8499 bool result;
8500 PyObject * obj0 = 0 ;
8501 char *kwnames[] = {
8502 (char *) "self", NULL
8503 };
8504
8505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
8506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8508 {
8509 PyThreadState* __tstate = wxPyBeginAllowThreads();
8510 result = (bool)((wxFont const *)arg1)->Ok();
8511
8512 wxPyEndAllowThreads(__tstate);
8513 if (PyErr_Occurred()) SWIG_fail;
8514 }
8515 {
8516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8517 }
8518 return resultobj;
8519 fail:
8520 return NULL;
8521 }
8522
8523
8524 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
8525 PyObject *resultobj;
8526 wxFont *arg1 = (wxFont *) 0 ;
8527 wxFont *arg2 = (wxFont *) 0 ;
8528 bool result;
8529 PyObject * obj0 = 0 ;
8530 PyObject * obj1 = 0 ;
8531 char *kwnames[] = {
8532 (char *) "self",(char *) "other", NULL
8533 };
8534
8535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
8536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8538 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8540 {
8541 PyThreadState* __tstate = wxPyBeginAllowThreads();
8542 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
8543
8544 wxPyEndAllowThreads(__tstate);
8545 if (PyErr_Occurred()) SWIG_fail;
8546 }
8547 {
8548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8549 }
8550 return resultobj;
8551 fail:
8552 return NULL;
8553 }
8554
8555
8556 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
8557 PyObject *resultobj;
8558 wxFont *arg1 = (wxFont *) 0 ;
8559 wxFont *arg2 = (wxFont *) 0 ;
8560 bool result;
8561 PyObject * obj0 = 0 ;
8562 PyObject * obj1 = 0 ;
8563 char *kwnames[] = {
8564 (char *) "self",(char *) "other", NULL
8565 };
8566
8567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
8568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8570 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8572 {
8573 PyThreadState* __tstate = wxPyBeginAllowThreads();
8574 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
8575
8576 wxPyEndAllowThreads(__tstate);
8577 if (PyErr_Occurred()) SWIG_fail;
8578 }
8579 {
8580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8581 }
8582 return resultobj;
8583 fail:
8584 return NULL;
8585 }
8586
8587
8588 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8589 PyObject *resultobj;
8590 wxFont *arg1 = (wxFont *) 0 ;
8591 int result;
8592 PyObject * obj0 = 0 ;
8593 char *kwnames[] = {
8594 (char *) "self", NULL
8595 };
8596
8597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
8598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8600 {
8601 PyThreadState* __tstate = wxPyBeginAllowThreads();
8602 result = (int)((wxFont const *)arg1)->GetPointSize();
8603
8604 wxPyEndAllowThreads(__tstate);
8605 if (PyErr_Occurred()) SWIG_fail;
8606 }
8607 resultobj = SWIG_FromInt((int)result);
8608 return resultobj;
8609 fail:
8610 return NULL;
8611 }
8612
8613
8614 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8615 PyObject *resultobj;
8616 wxFont *arg1 = (wxFont *) 0 ;
8617 int result;
8618 PyObject * obj0 = 0 ;
8619 char *kwnames[] = {
8620 (char *) "self", NULL
8621 };
8622
8623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
8624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8626 {
8627 PyThreadState* __tstate = wxPyBeginAllowThreads();
8628 result = (int)((wxFont const *)arg1)->GetFamily();
8629
8630 wxPyEndAllowThreads(__tstate);
8631 if (PyErr_Occurred()) SWIG_fail;
8632 }
8633 resultobj = SWIG_FromInt((int)result);
8634 return resultobj;
8635 fail:
8636 return NULL;
8637 }
8638
8639
8640 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8641 PyObject *resultobj;
8642 wxFont *arg1 = (wxFont *) 0 ;
8643 int result;
8644 PyObject * obj0 = 0 ;
8645 char *kwnames[] = {
8646 (char *) "self", NULL
8647 };
8648
8649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
8650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8652 {
8653 PyThreadState* __tstate = wxPyBeginAllowThreads();
8654 result = (int)((wxFont const *)arg1)->GetStyle();
8655
8656 wxPyEndAllowThreads(__tstate);
8657 if (PyErr_Occurred()) SWIG_fail;
8658 }
8659 resultobj = SWIG_FromInt((int)result);
8660 return resultobj;
8661 fail:
8662 return NULL;
8663 }
8664
8665
8666 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8667 PyObject *resultobj;
8668 wxFont *arg1 = (wxFont *) 0 ;
8669 int result;
8670 PyObject * obj0 = 0 ;
8671 char *kwnames[] = {
8672 (char *) "self", NULL
8673 };
8674
8675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
8676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8678 {
8679 PyThreadState* __tstate = wxPyBeginAllowThreads();
8680 result = (int)((wxFont const *)arg1)->GetWeight();
8681
8682 wxPyEndAllowThreads(__tstate);
8683 if (PyErr_Occurred()) SWIG_fail;
8684 }
8685 resultobj = SWIG_FromInt((int)result);
8686 return resultobj;
8687 fail:
8688 return NULL;
8689 }
8690
8691
8692 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8693 PyObject *resultobj;
8694 wxFont *arg1 = (wxFont *) 0 ;
8695 bool result;
8696 PyObject * obj0 = 0 ;
8697 char *kwnames[] = {
8698 (char *) "self", NULL
8699 };
8700
8701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
8702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8704 {
8705 PyThreadState* __tstate = wxPyBeginAllowThreads();
8706 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8707
8708 wxPyEndAllowThreads(__tstate);
8709 if (PyErr_Occurred()) SWIG_fail;
8710 }
8711 {
8712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8713 }
8714 return resultobj;
8715 fail:
8716 return NULL;
8717 }
8718
8719
8720 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8721 PyObject *resultobj;
8722 wxFont *arg1 = (wxFont *) 0 ;
8723 wxString result;
8724 PyObject * obj0 = 0 ;
8725 char *kwnames[] = {
8726 (char *) "self", NULL
8727 };
8728
8729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
8730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8732 {
8733 PyThreadState* __tstate = wxPyBeginAllowThreads();
8734 result = ((wxFont const *)arg1)->GetFaceName();
8735
8736 wxPyEndAllowThreads(__tstate);
8737 if (PyErr_Occurred()) SWIG_fail;
8738 }
8739 {
8740 #if wxUSE_UNICODE
8741 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8742 #else
8743 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8744 #endif
8745 }
8746 return resultobj;
8747 fail:
8748 return NULL;
8749 }
8750
8751
8752 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8753 PyObject *resultobj;
8754 wxFont *arg1 = (wxFont *) 0 ;
8755 int result;
8756 PyObject * obj0 = 0 ;
8757 char *kwnames[] = {
8758 (char *) "self", NULL
8759 };
8760
8761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8764 {
8765 PyThreadState* __tstate = wxPyBeginAllowThreads();
8766 result = (int)((wxFont const *)arg1)->GetEncoding();
8767
8768 wxPyEndAllowThreads(__tstate);
8769 if (PyErr_Occurred()) SWIG_fail;
8770 }
8771 resultobj = SWIG_FromInt((int)result);
8772 return resultobj;
8773 fail:
8774 return NULL;
8775 }
8776
8777
8778 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8779 PyObject *resultobj;
8780 wxFont *arg1 = (wxFont *) 0 ;
8781 wxNativeFontInfo *result;
8782 PyObject * obj0 = 0 ;
8783 char *kwnames[] = {
8784 (char *) "self", NULL
8785 };
8786
8787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8790 {
8791 PyThreadState* __tstate = wxPyBeginAllowThreads();
8792 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8793
8794 wxPyEndAllowThreads(__tstate);
8795 if (PyErr_Occurred()) SWIG_fail;
8796 }
8797 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8798 return resultobj;
8799 fail:
8800 return NULL;
8801 }
8802
8803
8804 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8805 PyObject *resultobj;
8806 wxFont *arg1 = (wxFont *) 0 ;
8807 bool result;
8808 PyObject * obj0 = 0 ;
8809 char *kwnames[] = {
8810 (char *) "self", NULL
8811 };
8812
8813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8816 {
8817 PyThreadState* __tstate = wxPyBeginAllowThreads();
8818 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8819
8820 wxPyEndAllowThreads(__tstate);
8821 if (PyErr_Occurred()) SWIG_fail;
8822 }
8823 {
8824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8825 }
8826 return resultobj;
8827 fail:
8828 return NULL;
8829 }
8830
8831
8832 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8833 PyObject *resultobj;
8834 wxFont *arg1 = (wxFont *) 0 ;
8835 wxString result;
8836 PyObject * obj0 = 0 ;
8837 char *kwnames[] = {
8838 (char *) "self", NULL
8839 };
8840
8841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8844 {
8845 PyThreadState* __tstate = wxPyBeginAllowThreads();
8846 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8847
8848 wxPyEndAllowThreads(__tstate);
8849 if (PyErr_Occurred()) SWIG_fail;
8850 }
8851 {
8852 #if wxUSE_UNICODE
8853 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8854 #else
8855 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8856 #endif
8857 }
8858 return resultobj;
8859 fail:
8860 return NULL;
8861 }
8862
8863
8864 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8865 PyObject *resultobj;
8866 wxFont *arg1 = (wxFont *) 0 ;
8867 wxString result;
8868 PyObject * obj0 = 0 ;
8869 char *kwnames[] = {
8870 (char *) "self", NULL
8871 };
8872
8873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8876 {
8877 PyThreadState* __tstate = wxPyBeginAllowThreads();
8878 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8879
8880 wxPyEndAllowThreads(__tstate);
8881 if (PyErr_Occurred()) SWIG_fail;
8882 }
8883 {
8884 #if wxUSE_UNICODE
8885 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8886 #else
8887 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8888 #endif
8889 }
8890 return resultobj;
8891 fail:
8892 return NULL;
8893 }
8894
8895
8896 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8897 PyObject *resultobj;
8898 wxFont *arg1 = (wxFont *) 0 ;
8899 int arg2 ;
8900 PyObject * obj0 = 0 ;
8901 PyObject * obj1 = 0 ;
8902 char *kwnames[] = {
8903 (char *) "self",(char *) "pointSize", NULL
8904 };
8905
8906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8909 arg2 = (int) SWIG_AsInt(obj1);
8910 if (PyErr_Occurred()) SWIG_fail;
8911 {
8912 PyThreadState* __tstate = wxPyBeginAllowThreads();
8913 (arg1)->SetPointSize(arg2);
8914
8915 wxPyEndAllowThreads(__tstate);
8916 if (PyErr_Occurred()) SWIG_fail;
8917 }
8918 Py_INCREF(Py_None); resultobj = Py_None;
8919 return resultobj;
8920 fail:
8921 return NULL;
8922 }
8923
8924
8925 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8926 PyObject *resultobj;
8927 wxFont *arg1 = (wxFont *) 0 ;
8928 int arg2 ;
8929 PyObject * obj0 = 0 ;
8930 PyObject * obj1 = 0 ;
8931 char *kwnames[] = {
8932 (char *) "self",(char *) "family", NULL
8933 };
8934
8935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8938 arg2 = (int) SWIG_AsInt(obj1);
8939 if (PyErr_Occurred()) SWIG_fail;
8940 {
8941 PyThreadState* __tstate = wxPyBeginAllowThreads();
8942 (arg1)->SetFamily(arg2);
8943
8944 wxPyEndAllowThreads(__tstate);
8945 if (PyErr_Occurred()) SWIG_fail;
8946 }
8947 Py_INCREF(Py_None); resultobj = Py_None;
8948 return resultobj;
8949 fail:
8950 return NULL;
8951 }
8952
8953
8954 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8955 PyObject *resultobj;
8956 wxFont *arg1 = (wxFont *) 0 ;
8957 int arg2 ;
8958 PyObject * obj0 = 0 ;
8959 PyObject * obj1 = 0 ;
8960 char *kwnames[] = {
8961 (char *) "self",(char *) "style", NULL
8962 };
8963
8964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8967 arg2 = (int) SWIG_AsInt(obj1);
8968 if (PyErr_Occurred()) SWIG_fail;
8969 {
8970 PyThreadState* __tstate = wxPyBeginAllowThreads();
8971 (arg1)->SetStyle(arg2);
8972
8973 wxPyEndAllowThreads(__tstate);
8974 if (PyErr_Occurred()) SWIG_fail;
8975 }
8976 Py_INCREF(Py_None); resultobj = Py_None;
8977 return resultobj;
8978 fail:
8979 return NULL;
8980 }
8981
8982
8983 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8984 PyObject *resultobj;
8985 wxFont *arg1 = (wxFont *) 0 ;
8986 int arg2 ;
8987 PyObject * obj0 = 0 ;
8988 PyObject * obj1 = 0 ;
8989 char *kwnames[] = {
8990 (char *) "self",(char *) "weight", NULL
8991 };
8992
8993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8996 arg2 = (int) SWIG_AsInt(obj1);
8997 if (PyErr_Occurred()) SWIG_fail;
8998 {
8999 PyThreadState* __tstate = wxPyBeginAllowThreads();
9000 (arg1)->SetWeight(arg2);
9001
9002 wxPyEndAllowThreads(__tstate);
9003 if (PyErr_Occurred()) SWIG_fail;
9004 }
9005 Py_INCREF(Py_None); resultobj = Py_None;
9006 return resultobj;
9007 fail:
9008 return NULL;
9009 }
9010
9011
9012 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
9013 PyObject *resultobj;
9014 wxFont *arg1 = (wxFont *) 0 ;
9015 wxString *arg2 = 0 ;
9016 bool temp2 = False ;
9017 PyObject * obj0 = 0 ;
9018 PyObject * obj1 = 0 ;
9019 char *kwnames[] = {
9020 (char *) "self",(char *) "faceName", NULL
9021 };
9022
9023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
9024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9026 {
9027 arg2 = wxString_in_helper(obj1);
9028 if (arg2 == NULL) SWIG_fail;
9029 temp2 = True;
9030 }
9031 {
9032 PyThreadState* __tstate = wxPyBeginAllowThreads();
9033 (arg1)->SetFaceName((wxString const &)*arg2);
9034
9035 wxPyEndAllowThreads(__tstate);
9036 if (PyErr_Occurred()) SWIG_fail;
9037 }
9038 Py_INCREF(Py_None); resultobj = Py_None;
9039 {
9040 if (temp2)
9041 delete arg2;
9042 }
9043 return resultobj;
9044 fail:
9045 {
9046 if (temp2)
9047 delete arg2;
9048 }
9049 return NULL;
9050 }
9051
9052
9053 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
9054 PyObject *resultobj;
9055 wxFont *arg1 = (wxFont *) 0 ;
9056 bool arg2 ;
9057 PyObject * obj0 = 0 ;
9058 PyObject * obj1 = 0 ;
9059 char *kwnames[] = {
9060 (char *) "self",(char *) "underlined", NULL
9061 };
9062
9063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
9064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9066 arg2 = (bool) SWIG_AsBool(obj1);
9067 if (PyErr_Occurred()) SWIG_fail;
9068 {
9069 PyThreadState* __tstate = wxPyBeginAllowThreads();
9070 (arg1)->SetUnderlined(arg2);
9071
9072 wxPyEndAllowThreads(__tstate);
9073 if (PyErr_Occurred()) SWIG_fail;
9074 }
9075 Py_INCREF(Py_None); resultobj = Py_None;
9076 return resultobj;
9077 fail:
9078 return NULL;
9079 }
9080
9081
9082 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9083 PyObject *resultobj;
9084 wxFont *arg1 = (wxFont *) 0 ;
9085 int arg2 ;
9086 PyObject * obj0 = 0 ;
9087 PyObject * obj1 = 0 ;
9088 char *kwnames[] = {
9089 (char *) "self",(char *) "encoding", NULL
9090 };
9091
9092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
9093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9095 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
9096 if (PyErr_Occurred()) SWIG_fail;
9097 {
9098 PyThreadState* __tstate = wxPyBeginAllowThreads();
9099 (arg1)->SetEncoding((wxFontEncoding )arg2);
9100
9101 wxPyEndAllowThreads(__tstate);
9102 if (PyErr_Occurred()) SWIG_fail;
9103 }
9104 Py_INCREF(Py_None); resultobj = Py_None;
9105 return resultobj;
9106 fail:
9107 return NULL;
9108 }
9109
9110
9111 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9112 PyObject *resultobj;
9113 wxFont *arg1 = (wxFont *) 0 ;
9114 wxNativeFontInfo *arg2 = 0 ;
9115 PyObject * obj0 = 0 ;
9116 PyObject * obj1 = 0 ;
9117 char *kwnames[] = {
9118 (char *) "self",(char *) "info", NULL
9119 };
9120
9121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
9122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9124 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
9125 SWIG_POINTER_EXCEPTION | 0)) == -1)
9126 SWIG_fail;
9127 if (arg2 == NULL) {
9128 PyErr_SetString(PyExc_TypeError,"null reference");
9129 SWIG_fail;
9130 }
9131 {
9132 PyThreadState* __tstate = wxPyBeginAllowThreads();
9133 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
9134
9135 wxPyEndAllowThreads(__tstate);
9136 if (PyErr_Occurred()) SWIG_fail;
9137 }
9138 Py_INCREF(Py_None); resultobj = Py_None;
9139 return resultobj;
9140 fail:
9141 return NULL;
9142 }
9143
9144
9145 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
9146 PyObject *resultobj;
9147 wxFont *arg1 = (wxFont *) 0 ;
9148 wxString *arg2 = 0 ;
9149 bool temp2 = False ;
9150 PyObject * obj0 = 0 ;
9151 PyObject * obj1 = 0 ;
9152 char *kwnames[] = {
9153 (char *) "self",(char *) "info", NULL
9154 };
9155
9156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
9157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9159 {
9160 arg2 = wxString_in_helper(obj1);
9161 if (arg2 == NULL) SWIG_fail;
9162 temp2 = True;
9163 }
9164 {
9165 PyThreadState* __tstate = wxPyBeginAllowThreads();
9166 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
9167
9168 wxPyEndAllowThreads(__tstate);
9169 if (PyErr_Occurred()) SWIG_fail;
9170 }
9171 Py_INCREF(Py_None); resultobj = Py_None;
9172 {
9173 if (temp2)
9174 delete arg2;
9175 }
9176 return resultobj;
9177 fail:
9178 {
9179 if (temp2)
9180 delete arg2;
9181 }
9182 return NULL;
9183 }
9184
9185
9186 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
9187 PyObject *resultobj;
9188 wxFont *arg1 = (wxFont *) 0 ;
9189 wxString *arg2 = 0 ;
9190 bool temp2 = False ;
9191 PyObject * obj0 = 0 ;
9192 PyObject * obj1 = 0 ;
9193 char *kwnames[] = {
9194 (char *) "self",(char *) "info", NULL
9195 };
9196
9197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
9198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9200 {
9201 arg2 = wxString_in_helper(obj1);
9202 if (arg2 == NULL) SWIG_fail;
9203 temp2 = True;
9204 }
9205 {
9206 PyThreadState* __tstate = wxPyBeginAllowThreads();
9207 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
9208
9209 wxPyEndAllowThreads(__tstate);
9210 if (PyErr_Occurred()) SWIG_fail;
9211 }
9212 Py_INCREF(Py_None); resultobj = Py_None;
9213 {
9214 if (temp2)
9215 delete arg2;
9216 }
9217 return resultobj;
9218 fail:
9219 {
9220 if (temp2)
9221 delete arg2;
9222 }
9223 return NULL;
9224 }
9225
9226
9227 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
9228 PyObject *resultobj;
9229 wxFont *arg1 = (wxFont *) 0 ;
9230 wxString result;
9231 PyObject * obj0 = 0 ;
9232 char *kwnames[] = {
9233 (char *) "self", NULL
9234 };
9235
9236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
9237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9239 {
9240 PyThreadState* __tstate = wxPyBeginAllowThreads();
9241 result = ((wxFont const *)arg1)->GetFamilyString();
9242
9243 wxPyEndAllowThreads(__tstate);
9244 if (PyErr_Occurred()) SWIG_fail;
9245 }
9246 {
9247 #if wxUSE_UNICODE
9248 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9249 #else
9250 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9251 #endif
9252 }
9253 return resultobj;
9254 fail:
9255 return NULL;
9256 }
9257
9258
9259 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
9260 PyObject *resultobj;
9261 wxFont *arg1 = (wxFont *) 0 ;
9262 wxString result;
9263 PyObject * obj0 = 0 ;
9264 char *kwnames[] = {
9265 (char *) "self", NULL
9266 };
9267
9268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
9269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9271 {
9272 PyThreadState* __tstate = wxPyBeginAllowThreads();
9273 result = ((wxFont const *)arg1)->GetStyleString();
9274
9275 wxPyEndAllowThreads(__tstate);
9276 if (PyErr_Occurred()) SWIG_fail;
9277 }
9278 {
9279 #if wxUSE_UNICODE
9280 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9281 #else
9282 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9283 #endif
9284 }
9285 return resultobj;
9286 fail:
9287 return NULL;
9288 }
9289
9290
9291 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
9292 PyObject *resultobj;
9293 wxFont *arg1 = (wxFont *) 0 ;
9294 wxString result;
9295 PyObject * obj0 = 0 ;
9296 char *kwnames[] = {
9297 (char *) "self", NULL
9298 };
9299
9300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
9301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9303 {
9304 PyThreadState* __tstate = wxPyBeginAllowThreads();
9305 result = ((wxFont const *)arg1)->GetWeightString();
9306
9307 wxPyEndAllowThreads(__tstate);
9308 if (PyErr_Occurred()) SWIG_fail;
9309 }
9310 {
9311 #if wxUSE_UNICODE
9312 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9313 #else
9314 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9315 #endif
9316 }
9317 return resultobj;
9318 fail:
9319 return NULL;
9320 }
9321
9322
9323 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
9324 PyObject *resultobj;
9325 wxFont *arg1 = (wxFont *) 0 ;
9326 bool arg2 = (bool) True ;
9327 PyObject * obj0 = 0 ;
9328 PyObject * obj1 = 0 ;
9329 char *kwnames[] = {
9330 (char *) "self",(char *) "no", NULL
9331 };
9332
9333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
9334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9336 if (obj1) {
9337 arg2 = (bool) SWIG_AsBool(obj1);
9338 if (PyErr_Occurred()) SWIG_fail;
9339 }
9340 {
9341 PyThreadState* __tstate = wxPyBeginAllowThreads();
9342 (arg1)->SetNoAntiAliasing(arg2);
9343
9344 wxPyEndAllowThreads(__tstate);
9345 if (PyErr_Occurred()) SWIG_fail;
9346 }
9347 Py_INCREF(Py_None); resultobj = Py_None;
9348 return resultobj;
9349 fail:
9350 return NULL;
9351 }
9352
9353
9354 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
9355 PyObject *resultobj;
9356 wxFont *arg1 = (wxFont *) 0 ;
9357 bool result;
9358 PyObject * obj0 = 0 ;
9359 char *kwnames[] = {
9360 (char *) "self", NULL
9361 };
9362
9363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
9364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9366 {
9367 PyThreadState* __tstate = wxPyBeginAllowThreads();
9368 result = (bool)(arg1)->GetNoAntiAliasing();
9369
9370 wxPyEndAllowThreads(__tstate);
9371 if (PyErr_Occurred()) SWIG_fail;
9372 }
9373 {
9374 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9375 }
9376 return resultobj;
9377 fail:
9378 return NULL;
9379 }
9380
9381
9382 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9383 PyObject *resultobj;
9384 int result;
9385 char *kwnames[] = {
9386 NULL
9387 };
9388
9389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
9390 {
9391 PyThreadState* __tstate = wxPyBeginAllowThreads();
9392 result = (int)wxFont::GetDefaultEncoding();
9393
9394 wxPyEndAllowThreads(__tstate);
9395 if (PyErr_Occurred()) SWIG_fail;
9396 }
9397 resultobj = SWIG_FromInt((int)result);
9398 return resultobj;
9399 fail:
9400 return NULL;
9401 }
9402
9403
9404 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9405 PyObject *resultobj;
9406 int arg1 ;
9407 PyObject * obj0 = 0 ;
9408 char *kwnames[] = {
9409 (char *) "encoding", NULL
9410 };
9411
9412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
9413 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
9414 if (PyErr_Occurred()) SWIG_fail;
9415 {
9416 PyThreadState* __tstate = wxPyBeginAllowThreads();
9417 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
9418
9419 wxPyEndAllowThreads(__tstate);
9420 if (PyErr_Occurred()) SWIG_fail;
9421 }
9422 Py_INCREF(Py_None); resultobj = Py_None;
9423 return resultobj;
9424 fail:
9425 return NULL;
9426 }
9427
9428
9429 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
9430 PyObject *obj;
9431 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9432 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
9433 Py_INCREF(obj);
9434 return Py_BuildValue((char *)"");
9435 }
9436 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
9437 PyObject *resultobj;
9438 wxPyFontEnumerator *result;
9439 char *kwnames[] = {
9440 NULL
9441 };
9442
9443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
9444 {
9445 PyThreadState* __tstate = wxPyBeginAllowThreads();
9446 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
9447
9448 wxPyEndAllowThreads(__tstate);
9449 if (PyErr_Occurred()) SWIG_fail;
9450 }
9451 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
9452 return resultobj;
9453 fail:
9454 return NULL;
9455 }
9456
9457
9458 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
9459 PyObject *resultobj;
9460 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9461 PyObject * obj0 = 0 ;
9462 char *kwnames[] = {
9463 (char *) "self", NULL
9464 };
9465
9466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
9467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9469 {
9470 PyThreadState* __tstate = wxPyBeginAllowThreads();
9471 delete arg1;
9472
9473 wxPyEndAllowThreads(__tstate);
9474 if (PyErr_Occurred()) SWIG_fail;
9475 }
9476 Py_INCREF(Py_None); resultobj = Py_None;
9477 return resultobj;
9478 fail:
9479 return NULL;
9480 }
9481
9482
9483 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9484 PyObject *resultobj;
9485 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9486 PyObject *arg2 = (PyObject *) 0 ;
9487 PyObject *arg3 = (PyObject *) 0 ;
9488 bool arg4 ;
9489 PyObject * obj0 = 0 ;
9490 PyObject * obj1 = 0 ;
9491 PyObject * obj2 = 0 ;
9492 PyObject * obj3 = 0 ;
9493 char *kwnames[] = {
9494 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
9495 };
9496
9497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9500 arg2 = obj1;
9501 arg3 = obj2;
9502 arg4 = (bool) SWIG_AsBool(obj3);
9503 if (PyErr_Occurred()) SWIG_fail;
9504 {
9505 PyThreadState* __tstate = wxPyBeginAllowThreads();
9506 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
9507
9508 wxPyEndAllowThreads(__tstate);
9509 if (PyErr_Occurred()) SWIG_fail;
9510 }
9511 Py_INCREF(Py_None); resultobj = Py_None;
9512 return resultobj;
9513 fail:
9514 return NULL;
9515 }
9516
9517
9518 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
9519 PyObject *resultobj;
9520 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9521 int arg2 = (int) wxFONTENCODING_SYSTEM ;
9522 bool arg3 = (bool) False ;
9523 bool result;
9524 PyObject * obj0 = 0 ;
9525 PyObject * obj1 = 0 ;
9526 PyObject * obj2 = 0 ;
9527 char *kwnames[] = {
9528 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
9529 };
9530
9531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
9532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9534 if (obj1) {
9535 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
9536 if (PyErr_Occurred()) SWIG_fail;
9537 }
9538 if (obj2) {
9539 arg3 = (bool) SWIG_AsBool(obj2);
9540 if (PyErr_Occurred()) SWIG_fail;
9541 }
9542 {
9543 PyThreadState* __tstate = wxPyBeginAllowThreads();
9544 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
9545
9546 wxPyEndAllowThreads(__tstate);
9547 if (PyErr_Occurred()) SWIG_fail;
9548 }
9549 {
9550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9551 }
9552 return resultobj;
9553 fail:
9554 return NULL;
9555 }
9556
9557
9558 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
9559 PyObject *resultobj;
9560 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9561 wxString const &arg2_defvalue = wxPyEmptyString ;
9562 wxString *arg2 = (wxString *) &arg2_defvalue ;
9563 bool result;
9564 bool temp2 = False ;
9565 PyObject * obj0 = 0 ;
9566 PyObject * obj1 = 0 ;
9567 char *kwnames[] = {
9568 (char *) "self",(char *) "facename", NULL
9569 };
9570
9571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
9572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9574 if (obj1) {
9575 {
9576 arg2 = wxString_in_helper(obj1);
9577 if (arg2 == NULL) SWIG_fail;
9578 temp2 = True;
9579 }
9580 }
9581 {
9582 PyThreadState* __tstate = wxPyBeginAllowThreads();
9583 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
9584
9585 wxPyEndAllowThreads(__tstate);
9586 if (PyErr_Occurred()) SWIG_fail;
9587 }
9588 {
9589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9590 }
9591 {
9592 if (temp2)
9593 delete arg2;
9594 }
9595 return resultobj;
9596 fail:
9597 {
9598 if (temp2)
9599 delete arg2;
9600 }
9601 return NULL;
9602 }
9603
9604
9605 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
9606 PyObject *resultobj;
9607 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9608 PyObject *result;
9609 PyObject * obj0 = 0 ;
9610 char *kwnames[] = {
9611 (char *) "self", NULL
9612 };
9613
9614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
9615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9617 {
9618 PyThreadState* __tstate = wxPyBeginAllowThreads();
9619 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
9620
9621 wxPyEndAllowThreads(__tstate);
9622 if (PyErr_Occurred()) SWIG_fail;
9623 }
9624 resultobj = result;
9625 return resultobj;
9626 fail:
9627 return NULL;
9628 }
9629
9630
9631 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
9632 PyObject *resultobj;
9633 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9634 PyObject *result;
9635 PyObject * obj0 = 0 ;
9636 char *kwnames[] = {
9637 (char *) "self", NULL
9638 };
9639
9640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
9641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9643 {
9644 PyThreadState* __tstate = wxPyBeginAllowThreads();
9645 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
9646
9647 wxPyEndAllowThreads(__tstate);
9648 if (PyErr_Occurred()) SWIG_fail;
9649 }
9650 resultobj = result;
9651 return resultobj;
9652 fail:
9653 return NULL;
9654 }
9655
9656
9657 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
9658 PyObject *obj;
9659 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9660 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9661 Py_INCREF(obj);
9662 return Py_BuildValue((char *)"");
9663 }
9664 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9665 PyObject *resultobj;
9666 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9667 int arg2 ;
9668 PyObject * obj0 = 0 ;
9669 PyObject * obj1 = 0 ;
9670 char *kwnames[] = {
9671 (char *) "self",(char *) "Language", NULL
9672 };
9673
9674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
9675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9677 arg2 = (int) SWIG_AsInt(obj1);
9678 if (PyErr_Occurred()) SWIG_fail;
9679 if (arg1) (arg1)->Language = arg2;
9680
9681 Py_INCREF(Py_None); resultobj = Py_None;
9682 return resultobj;
9683 fail:
9684 return NULL;
9685 }
9686
9687
9688 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9689 PyObject *resultobj;
9690 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9691 int result;
9692 PyObject * obj0 = 0 ;
9693 char *kwnames[] = {
9694 (char *) "self", NULL
9695 };
9696
9697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
9698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9700 result = (int) ((arg1)->Language);
9701
9702 resultobj = SWIG_FromInt((int)result);
9703 return resultobj;
9704 fail:
9705 return NULL;
9706 }
9707
9708
9709 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9710 PyObject *resultobj;
9711 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9712 wxString *arg2 = (wxString *) 0 ;
9713 bool temp2 = False ;
9714 PyObject * obj0 = 0 ;
9715 PyObject * obj1 = 0 ;
9716 char *kwnames[] = {
9717 (char *) "self",(char *) "CanonicalName", NULL
9718 };
9719
9720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
9721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9723 {
9724 arg2 = wxString_in_helper(obj1);
9725 if (arg2 == NULL) SWIG_fail;
9726 temp2 = True;
9727 }
9728 if (arg1) (arg1)->CanonicalName = *arg2;
9729
9730 Py_INCREF(Py_None); resultobj = Py_None;
9731 {
9732 if (temp2)
9733 delete arg2;
9734 }
9735 return resultobj;
9736 fail:
9737 {
9738 if (temp2)
9739 delete arg2;
9740 }
9741 return NULL;
9742 }
9743
9744
9745 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9746 PyObject *resultobj;
9747 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9748 wxString *result;
9749 PyObject * obj0 = 0 ;
9750 char *kwnames[] = {
9751 (char *) "self", NULL
9752 };
9753
9754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9757 result = (wxString *)& ((arg1)->CanonicalName);
9758
9759 {
9760 #if wxUSE_UNICODE
9761 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9762 #else
9763 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9764 #endif
9765 }
9766 return resultobj;
9767 fail:
9768 return NULL;
9769 }
9770
9771
9772 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9773 PyObject *resultobj;
9774 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9775 wxString *arg2 = (wxString *) 0 ;
9776 bool temp2 = False ;
9777 PyObject * obj0 = 0 ;
9778 PyObject * obj1 = 0 ;
9779 char *kwnames[] = {
9780 (char *) "self",(char *) "Description", NULL
9781 };
9782
9783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9786 {
9787 arg2 = wxString_in_helper(obj1);
9788 if (arg2 == NULL) SWIG_fail;
9789 temp2 = True;
9790 }
9791 if (arg1) (arg1)->Description = *arg2;
9792
9793 Py_INCREF(Py_None); resultobj = Py_None;
9794 {
9795 if (temp2)
9796 delete arg2;
9797 }
9798 return resultobj;
9799 fail:
9800 {
9801 if (temp2)
9802 delete arg2;
9803 }
9804 return NULL;
9805 }
9806
9807
9808 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9809 PyObject *resultobj;
9810 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9811 wxString *result;
9812 PyObject * obj0 = 0 ;
9813 char *kwnames[] = {
9814 (char *) "self", NULL
9815 };
9816
9817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9820 result = (wxString *)& ((arg1)->Description);
9821
9822 {
9823 #if wxUSE_UNICODE
9824 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9825 #else
9826 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9827 #endif
9828 }
9829 return resultobj;
9830 fail:
9831 return NULL;
9832 }
9833
9834
9835 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9836 PyObject *obj;
9837 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9838 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9839 Py_INCREF(obj);
9840 return Py_BuildValue((char *)"");
9841 }
9842 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9843 PyObject *resultobj;
9844 int arg1 = (int) wxLANGUAGE_DEFAULT ;
9845 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9846 wxLocale *result;
9847 PyObject * obj0 = 0 ;
9848 PyObject * obj1 = 0 ;
9849 char *kwnames[] = {
9850 (char *) "language",(char *) "flags", NULL
9851 };
9852
9853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9854 if (obj0) {
9855 arg1 = (int) SWIG_AsInt(obj0);
9856 if (PyErr_Occurred()) SWIG_fail;
9857 }
9858 if (obj1) {
9859 arg2 = (int) SWIG_AsInt(obj1);
9860 if (PyErr_Occurred()) SWIG_fail;
9861 }
9862 {
9863 PyThreadState* __tstate = wxPyBeginAllowThreads();
9864 result = (wxLocale *)new wxLocale(arg1,arg2);
9865
9866 wxPyEndAllowThreads(__tstate);
9867 if (PyErr_Occurred()) SWIG_fail;
9868 }
9869 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9870 return resultobj;
9871 fail:
9872 return NULL;
9873 }
9874
9875
9876 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9877 PyObject *resultobj;
9878 wxLocale *arg1 = (wxLocale *) 0 ;
9879 PyObject * obj0 = 0 ;
9880 char *kwnames[] = {
9881 (char *) "self", NULL
9882 };
9883
9884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9887 {
9888 PyThreadState* __tstate = wxPyBeginAllowThreads();
9889 delete arg1;
9890
9891 wxPyEndAllowThreads(__tstate);
9892 if (PyErr_Occurred()) SWIG_fail;
9893 }
9894 Py_INCREF(Py_None); resultobj = Py_None;
9895 return resultobj;
9896 fail:
9897 return NULL;
9898 }
9899
9900
9901 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9902 PyObject *resultobj;
9903 wxLocale *arg1 = (wxLocale *) 0 ;
9904 wxString *arg2 = 0 ;
9905 wxString const &arg3_defvalue = wxPyEmptyString ;
9906 wxString *arg3 = (wxString *) &arg3_defvalue ;
9907 wxString const &arg4_defvalue = wxPyEmptyString ;
9908 wxString *arg4 = (wxString *) &arg4_defvalue ;
9909 bool arg5 = (bool) True ;
9910 bool arg6 = (bool) False ;
9911 bool result;
9912 bool temp2 = False ;
9913 bool temp3 = False ;
9914 bool temp4 = False ;
9915 PyObject * obj0 = 0 ;
9916 PyObject * obj1 = 0 ;
9917 PyObject * obj2 = 0 ;
9918 PyObject * obj3 = 0 ;
9919 PyObject * obj4 = 0 ;
9920 PyObject * obj5 = 0 ;
9921 char *kwnames[] = {
9922 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9923 };
9924
9925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9928 {
9929 arg2 = wxString_in_helper(obj1);
9930 if (arg2 == NULL) SWIG_fail;
9931 temp2 = True;
9932 }
9933 if (obj2) {
9934 {
9935 arg3 = wxString_in_helper(obj2);
9936 if (arg3 == NULL) SWIG_fail;
9937 temp3 = True;
9938 }
9939 }
9940 if (obj3) {
9941 {
9942 arg4 = wxString_in_helper(obj3);
9943 if (arg4 == NULL) SWIG_fail;
9944 temp4 = True;
9945 }
9946 }
9947 if (obj4) {
9948 arg5 = (bool) SWIG_AsBool(obj4);
9949 if (PyErr_Occurred()) SWIG_fail;
9950 }
9951 if (obj5) {
9952 arg6 = (bool) SWIG_AsBool(obj5);
9953 if (PyErr_Occurred()) SWIG_fail;
9954 }
9955 {
9956 PyThreadState* __tstate = wxPyBeginAllowThreads();
9957 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9958
9959 wxPyEndAllowThreads(__tstate);
9960 if (PyErr_Occurred()) SWIG_fail;
9961 }
9962 {
9963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9964 }
9965 {
9966 if (temp2)
9967 delete arg2;
9968 }
9969 {
9970 if (temp3)
9971 delete arg3;
9972 }
9973 {
9974 if (temp4)
9975 delete arg4;
9976 }
9977 return resultobj;
9978 fail:
9979 {
9980 if (temp2)
9981 delete arg2;
9982 }
9983 {
9984 if (temp3)
9985 delete arg3;
9986 }
9987 {
9988 if (temp4)
9989 delete arg4;
9990 }
9991 return NULL;
9992 }
9993
9994
9995 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9996 PyObject *resultobj;
9997 wxLocale *arg1 = (wxLocale *) 0 ;
9998 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9999 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
10000 bool result;
10001 PyObject * obj0 = 0 ;
10002 PyObject * obj1 = 0 ;
10003 PyObject * obj2 = 0 ;
10004 char *kwnames[] = {
10005 (char *) "self",(char *) "language",(char *) "flags", NULL
10006 };
10007
10008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
10009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10011 if (obj1) {
10012 arg2 = (int) SWIG_AsInt(obj1);
10013 if (PyErr_Occurred()) SWIG_fail;
10014 }
10015 if (obj2) {
10016 arg3 = (int) SWIG_AsInt(obj2);
10017 if (PyErr_Occurred()) SWIG_fail;
10018 }
10019 {
10020 PyThreadState* __tstate = wxPyBeginAllowThreads();
10021 result = (bool)(arg1)->Init(arg2,arg3);
10022
10023 wxPyEndAllowThreads(__tstate);
10024 if (PyErr_Occurred()) SWIG_fail;
10025 }
10026 {
10027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10028 }
10029 return resultobj;
10030 fail:
10031 return NULL;
10032 }
10033
10034
10035 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
10036 PyObject *resultobj;
10037 int result;
10038 char *kwnames[] = {
10039 NULL
10040 };
10041
10042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
10043 {
10044 PyThreadState* __tstate = wxPyBeginAllowThreads();
10045 result = (int)wxLocale::GetSystemLanguage();
10046
10047 wxPyEndAllowThreads(__tstate);
10048 if (PyErr_Occurred()) SWIG_fail;
10049 }
10050 resultobj = SWIG_FromInt((int)result);
10051 return resultobj;
10052 fail:
10053 return NULL;
10054 }
10055
10056
10057 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
10058 PyObject *resultobj;
10059 int result;
10060 char *kwnames[] = {
10061 NULL
10062 };
10063
10064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
10065 {
10066 PyThreadState* __tstate = wxPyBeginAllowThreads();
10067 result = (int)wxLocale::GetSystemEncoding();
10068
10069 wxPyEndAllowThreads(__tstate);
10070 if (PyErr_Occurred()) SWIG_fail;
10071 }
10072 resultobj = SWIG_FromInt((int)result);
10073 return resultobj;
10074 fail:
10075 return NULL;
10076 }
10077
10078
10079 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
10080 PyObject *resultobj;
10081 wxString result;
10082 char *kwnames[] = {
10083 NULL
10084 };
10085
10086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
10087 {
10088 PyThreadState* __tstate = wxPyBeginAllowThreads();
10089 result = wxLocale::GetSystemEncodingName();
10090
10091 wxPyEndAllowThreads(__tstate);
10092 if (PyErr_Occurred()) SWIG_fail;
10093 }
10094 {
10095 #if wxUSE_UNICODE
10096 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10097 #else
10098 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10099 #endif
10100 }
10101 return resultobj;
10102 fail:
10103 return NULL;
10104 }
10105
10106
10107 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
10108 PyObject *resultobj;
10109 wxLocale *arg1 = (wxLocale *) 0 ;
10110 bool result;
10111 PyObject * obj0 = 0 ;
10112 char *kwnames[] = {
10113 (char *) "self", NULL
10114 };
10115
10116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
10117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10119 {
10120 PyThreadState* __tstate = wxPyBeginAllowThreads();
10121 result = (bool)((wxLocale const *)arg1)->IsOk();
10122
10123 wxPyEndAllowThreads(__tstate);
10124 if (PyErr_Occurred()) SWIG_fail;
10125 }
10126 {
10127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10128 }
10129 return resultobj;
10130 fail:
10131 return NULL;
10132 }
10133
10134
10135 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
10136 PyObject *resultobj;
10137 wxLocale *arg1 = (wxLocale *) 0 ;
10138 wxString result;
10139 PyObject * obj0 = 0 ;
10140 char *kwnames[] = {
10141 (char *) "self", NULL
10142 };
10143
10144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
10145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10147 {
10148 PyThreadState* __tstate = wxPyBeginAllowThreads();
10149 result = ((wxLocale const *)arg1)->GetLocale();
10150
10151 wxPyEndAllowThreads(__tstate);
10152 if (PyErr_Occurred()) SWIG_fail;
10153 }
10154 {
10155 #if wxUSE_UNICODE
10156 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10157 #else
10158 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10159 #endif
10160 }
10161 return resultobj;
10162 fail:
10163 return NULL;
10164 }
10165
10166
10167 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
10168 PyObject *resultobj;
10169 wxLocale *arg1 = (wxLocale *) 0 ;
10170 int result;
10171 PyObject * obj0 = 0 ;
10172 char *kwnames[] = {
10173 (char *) "self", NULL
10174 };
10175
10176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
10177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10179 {
10180 PyThreadState* __tstate = wxPyBeginAllowThreads();
10181 result = (int)((wxLocale const *)arg1)->GetLanguage();
10182
10183 wxPyEndAllowThreads(__tstate);
10184 if (PyErr_Occurred()) SWIG_fail;
10185 }
10186 resultobj = SWIG_FromInt((int)result);
10187 return resultobj;
10188 fail:
10189 return NULL;
10190 }
10191
10192
10193 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
10194 PyObject *resultobj;
10195 wxLocale *arg1 = (wxLocale *) 0 ;
10196 wxString result;
10197 PyObject * obj0 = 0 ;
10198 char *kwnames[] = {
10199 (char *) "self", NULL
10200 };
10201
10202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
10203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10205 {
10206 PyThreadState* __tstate = wxPyBeginAllowThreads();
10207 result = ((wxLocale const *)arg1)->GetSysName();
10208
10209 wxPyEndAllowThreads(__tstate);
10210 if (PyErr_Occurred()) SWIG_fail;
10211 }
10212 {
10213 #if wxUSE_UNICODE
10214 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10215 #else
10216 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10217 #endif
10218 }
10219 return resultobj;
10220 fail:
10221 return NULL;
10222 }
10223
10224
10225 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
10226 PyObject *resultobj;
10227 wxLocale *arg1 = (wxLocale *) 0 ;
10228 wxString result;
10229 PyObject * obj0 = 0 ;
10230 char *kwnames[] = {
10231 (char *) "self", NULL
10232 };
10233
10234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
10235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10237 {
10238 PyThreadState* __tstate = wxPyBeginAllowThreads();
10239 result = ((wxLocale const *)arg1)->GetCanonicalName();
10240
10241 wxPyEndAllowThreads(__tstate);
10242 if (PyErr_Occurred()) SWIG_fail;
10243 }
10244 {
10245 #if wxUSE_UNICODE
10246 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10247 #else
10248 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10249 #endif
10250 }
10251 return resultobj;
10252 fail:
10253 return NULL;
10254 }
10255
10256
10257 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
10258 PyObject *resultobj;
10259 wxString *arg1 = 0 ;
10260 bool temp1 = False ;
10261 PyObject * obj0 = 0 ;
10262 char *kwnames[] = {
10263 (char *) "prefix", NULL
10264 };
10265
10266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
10267 {
10268 arg1 = wxString_in_helper(obj0);
10269 if (arg1 == NULL) SWIG_fail;
10270 temp1 = True;
10271 }
10272 {
10273 PyThreadState* __tstate = wxPyBeginAllowThreads();
10274 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
10275
10276 wxPyEndAllowThreads(__tstate);
10277 if (PyErr_Occurred()) SWIG_fail;
10278 }
10279 Py_INCREF(Py_None); resultobj = Py_None;
10280 {
10281 if (temp1)
10282 delete arg1;
10283 }
10284 return resultobj;
10285 fail:
10286 {
10287 if (temp1)
10288 delete arg1;
10289 }
10290 return NULL;
10291 }
10292
10293
10294 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
10295 PyObject *resultobj;
10296 wxLocale *arg1 = (wxLocale *) 0 ;
10297 wxString *arg2 = 0 ;
10298 bool result;
10299 bool temp2 = False ;
10300 PyObject * obj0 = 0 ;
10301 PyObject * obj1 = 0 ;
10302 char *kwnames[] = {
10303 (char *) "self",(char *) "szDomain", NULL
10304 };
10305
10306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
10307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10309 {
10310 arg2 = wxString_in_helper(obj1);
10311 if (arg2 == NULL) SWIG_fail;
10312 temp2 = True;
10313 }
10314 {
10315 PyThreadState* __tstate = wxPyBeginAllowThreads();
10316 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
10317
10318 wxPyEndAllowThreads(__tstate);
10319 if (PyErr_Occurred()) SWIG_fail;
10320 }
10321 {
10322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10323 }
10324 {
10325 if (temp2)
10326 delete arg2;
10327 }
10328 return resultobj;
10329 fail:
10330 {
10331 if (temp2)
10332 delete arg2;
10333 }
10334 return NULL;
10335 }
10336
10337
10338 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
10339 PyObject *resultobj;
10340 wxLocale *arg1 = (wxLocale *) 0 ;
10341 wxString *arg2 = 0 ;
10342 bool result;
10343 bool temp2 = False ;
10344 PyObject * obj0 = 0 ;
10345 PyObject * obj1 = 0 ;
10346 char *kwnames[] = {
10347 (char *) "self",(char *) "szDomain", NULL
10348 };
10349
10350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
10351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10353 {
10354 arg2 = wxString_in_helper(obj1);
10355 if (arg2 == NULL) SWIG_fail;
10356 temp2 = True;
10357 }
10358 {
10359 PyThreadState* __tstate = wxPyBeginAllowThreads();
10360 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
10361
10362 wxPyEndAllowThreads(__tstate);
10363 if (PyErr_Occurred()) SWIG_fail;
10364 }
10365 {
10366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10367 }
10368 {
10369 if (temp2)
10370 delete arg2;
10371 }
10372 return resultobj;
10373 fail:
10374 {
10375 if (temp2)
10376 delete arg2;
10377 }
10378 return NULL;
10379 }
10380
10381
10382 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
10383 PyObject *resultobj;
10384 int arg1 ;
10385 wxLanguageInfo *result;
10386 PyObject * obj0 = 0 ;
10387 char *kwnames[] = {
10388 (char *) "lang", NULL
10389 };
10390
10391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
10392 arg1 = (int) SWIG_AsInt(obj0);
10393 if (PyErr_Occurred()) SWIG_fail;
10394 {
10395 PyThreadState* __tstate = wxPyBeginAllowThreads();
10396 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
10397
10398 wxPyEndAllowThreads(__tstate);
10399 if (PyErr_Occurred()) SWIG_fail;
10400 }
10401 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10402 return resultobj;
10403 fail:
10404 return NULL;
10405 }
10406
10407
10408 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
10409 PyObject *resultobj;
10410 int arg1 ;
10411 wxString result;
10412 PyObject * obj0 = 0 ;
10413 char *kwnames[] = {
10414 (char *) "lang", NULL
10415 };
10416
10417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
10418 arg1 = (int) SWIG_AsInt(obj0);
10419 if (PyErr_Occurred()) SWIG_fail;
10420 {
10421 PyThreadState* __tstate = wxPyBeginAllowThreads();
10422 result = wxLocale::GetLanguageName(arg1);
10423
10424 wxPyEndAllowThreads(__tstate);
10425 if (PyErr_Occurred()) SWIG_fail;
10426 }
10427 {
10428 #if wxUSE_UNICODE
10429 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10430 #else
10431 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10432 #endif
10433 }
10434 return resultobj;
10435 fail:
10436 return NULL;
10437 }
10438
10439
10440 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
10441 PyObject *resultobj;
10442 wxString *arg1 = 0 ;
10443 wxLanguageInfo *result;
10444 bool temp1 = False ;
10445 PyObject * obj0 = 0 ;
10446 char *kwnames[] = {
10447 (char *) "locale", NULL
10448 };
10449
10450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
10451 {
10452 arg1 = wxString_in_helper(obj0);
10453 if (arg1 == NULL) SWIG_fail;
10454 temp1 = True;
10455 }
10456 {
10457 PyThreadState* __tstate = wxPyBeginAllowThreads();
10458 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
10459
10460 wxPyEndAllowThreads(__tstate);
10461 if (PyErr_Occurred()) SWIG_fail;
10462 }
10463 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10464 {
10465 if (temp1)
10466 delete arg1;
10467 }
10468 return resultobj;
10469 fail:
10470 {
10471 if (temp1)
10472 delete arg1;
10473 }
10474 return NULL;
10475 }
10476
10477
10478 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
10479 PyObject *resultobj;
10480 wxLanguageInfo *arg1 = 0 ;
10481 PyObject * obj0 = 0 ;
10482 char *kwnames[] = {
10483 (char *) "info", NULL
10484 };
10485
10486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
10487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
10488 SWIG_POINTER_EXCEPTION | 0)) == -1)
10489 SWIG_fail;
10490 if (arg1 == NULL) {
10491 PyErr_SetString(PyExc_TypeError,"null reference");
10492 SWIG_fail;
10493 }
10494 {
10495 PyThreadState* __tstate = wxPyBeginAllowThreads();
10496 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
10497
10498 wxPyEndAllowThreads(__tstate);
10499 if (PyErr_Occurred()) SWIG_fail;
10500 }
10501 Py_INCREF(Py_None); resultobj = Py_None;
10502 return resultobj;
10503 fail:
10504 return NULL;
10505 }
10506
10507
10508 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
10509 PyObject *resultobj;
10510 wxLocale *arg1 = (wxLocale *) 0 ;
10511 wxString *arg2 = 0 ;
10512 wxString const &arg3_defvalue = wxPyEmptyString ;
10513 wxString *arg3 = (wxString *) &arg3_defvalue ;
10514 wxString result;
10515 bool temp2 = False ;
10516 bool temp3 = False ;
10517 PyObject * obj0 = 0 ;
10518 PyObject * obj1 = 0 ;
10519 PyObject * obj2 = 0 ;
10520 char *kwnames[] = {
10521 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
10522 };
10523
10524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
10525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10527 {
10528 arg2 = wxString_in_helper(obj1);
10529 if (arg2 == NULL) SWIG_fail;
10530 temp2 = True;
10531 }
10532 if (obj2) {
10533 {
10534 arg3 = wxString_in_helper(obj2);
10535 if (arg3 == NULL) SWIG_fail;
10536 temp3 = True;
10537 }
10538 }
10539 {
10540 PyThreadState* __tstate = wxPyBeginAllowThreads();
10541 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
10542
10543 wxPyEndAllowThreads(__tstate);
10544 if (PyErr_Occurred()) SWIG_fail;
10545 }
10546 {
10547 #if wxUSE_UNICODE
10548 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10549 #else
10550 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10551 #endif
10552 }
10553 {
10554 if (temp2)
10555 delete arg2;
10556 }
10557 {
10558 if (temp3)
10559 delete arg3;
10560 }
10561 return resultobj;
10562 fail:
10563 {
10564 if (temp2)
10565 delete arg2;
10566 }
10567 {
10568 if (temp3)
10569 delete arg3;
10570 }
10571 return NULL;
10572 }
10573
10574
10575 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
10576 PyObject *resultobj;
10577 wxLocale *arg1 = (wxLocale *) 0 ;
10578 wxString *result;
10579 PyObject * obj0 = 0 ;
10580 char *kwnames[] = {
10581 (char *) "self", NULL
10582 };
10583
10584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
10585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10587 {
10588 PyThreadState* __tstate = wxPyBeginAllowThreads();
10589 {
10590 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
10591 result = (wxString *) &_result_ref;
10592 }
10593
10594 wxPyEndAllowThreads(__tstate);
10595 if (PyErr_Occurred()) SWIG_fail;
10596 }
10597 {
10598 #if wxUSE_UNICODE
10599 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10600 #else
10601 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10602 #endif
10603 }
10604 return resultobj;
10605 fail:
10606 return NULL;
10607 }
10608
10609
10610 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
10611 PyObject *obj;
10612 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10613 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
10614 Py_INCREF(obj);
10615 return Py_BuildValue((char *)"");
10616 }
10617 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
10618 PyObject *resultobj;
10619 wxLocale *result;
10620 char *kwnames[] = {
10621 NULL
10622 };
10623
10624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
10625 {
10626 PyThreadState* __tstate = wxPyBeginAllowThreads();
10627 result = (wxLocale *)wxGetLocale();
10628
10629 wxPyEndAllowThreads(__tstate);
10630 if (PyErr_Occurred()) SWIG_fail;
10631 }
10632 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
10633 return resultobj;
10634 fail:
10635 return NULL;
10636 }
10637
10638
10639 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
10640 PyObject *resultobj;
10641 wxString *arg1 = 0 ;
10642 wxString result;
10643 bool temp1 = False ;
10644 PyObject * obj0 = 0 ;
10645
10646 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
10647 {
10648 arg1 = wxString_in_helper(obj0);
10649 if (arg1 == NULL) SWIG_fail;
10650 temp1 = True;
10651 }
10652 {
10653 PyThreadState* __tstate = wxPyBeginAllowThreads();
10654 result = wxGetTranslation((wxString const &)*arg1);
10655
10656 wxPyEndAllowThreads(__tstate);
10657 if (PyErr_Occurred()) SWIG_fail;
10658 }
10659 {
10660 #if wxUSE_UNICODE
10661 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10662 #else
10663 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10664 #endif
10665 }
10666 {
10667 if (temp1)
10668 delete arg1;
10669 }
10670 return resultobj;
10671 fail:
10672 {
10673 if (temp1)
10674 delete arg1;
10675 }
10676 return NULL;
10677 }
10678
10679
10680 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
10681 PyObject *resultobj;
10682 wxString *arg1 = 0 ;
10683 wxString *arg2 = 0 ;
10684 size_t arg3 ;
10685 wxString result;
10686 bool temp1 = False ;
10687 bool temp2 = False ;
10688 PyObject * obj0 = 0 ;
10689 PyObject * obj1 = 0 ;
10690 PyObject * obj2 = 0 ;
10691
10692 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10693 {
10694 arg1 = wxString_in_helper(obj0);
10695 if (arg1 == NULL) SWIG_fail;
10696 temp1 = True;
10697 }
10698 {
10699 arg2 = wxString_in_helper(obj1);
10700 if (arg2 == NULL) SWIG_fail;
10701 temp2 = True;
10702 }
10703 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
10704 if (PyErr_Occurred()) SWIG_fail;
10705 {
10706 PyThreadState* __tstate = wxPyBeginAllowThreads();
10707 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10708
10709 wxPyEndAllowThreads(__tstate);
10710 if (PyErr_Occurred()) SWIG_fail;
10711 }
10712 {
10713 #if wxUSE_UNICODE
10714 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10715 #else
10716 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10717 #endif
10718 }
10719 {
10720 if (temp1)
10721 delete arg1;
10722 }
10723 {
10724 if (temp2)
10725 delete arg2;
10726 }
10727 return resultobj;
10728 fail:
10729 {
10730 if (temp1)
10731 delete arg1;
10732 }
10733 {
10734 if (temp2)
10735 delete arg2;
10736 }
10737 return NULL;
10738 }
10739
10740
10741 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10742 int argc;
10743 PyObject *argv[4];
10744 int ii;
10745
10746 argc = PyObject_Length(args);
10747 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10748 argv[ii] = PyTuple_GetItem(args,ii);
10749 }
10750 if (argc == 1) {
10751 int _v;
10752 {
10753 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10754 }
10755 if (_v) {
10756 return _wrap_GetTranslation__SWIG_0(self,args);
10757 }
10758 }
10759 if (argc == 3) {
10760 int _v;
10761 {
10762 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10763 }
10764 if (_v) {
10765 {
10766 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10767 }
10768 if (_v) {
10769 _v = SWIG_CheckUnsignedLong(argv[2]);
10770 if (_v) {
10771 return _wrap_GetTranslation__SWIG_1(self,args);
10772 }
10773 }
10774 }
10775 }
10776
10777 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10778 return NULL;
10779 }
10780
10781
10782 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10783 PyObject *resultobj;
10784 wxEncodingConverter *result;
10785 char *kwnames[] = {
10786 NULL
10787 };
10788
10789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10790 {
10791 PyThreadState* __tstate = wxPyBeginAllowThreads();
10792 result = (wxEncodingConverter *)new wxEncodingConverter();
10793
10794 wxPyEndAllowThreads(__tstate);
10795 if (PyErr_Occurred()) SWIG_fail;
10796 }
10797 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10798 return resultobj;
10799 fail:
10800 return NULL;
10801 }
10802
10803
10804 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10805 PyObject *resultobj;
10806 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10807 PyObject * obj0 = 0 ;
10808 char *kwnames[] = {
10809 (char *) "self", NULL
10810 };
10811
10812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10815 {
10816 PyThreadState* __tstate = wxPyBeginAllowThreads();
10817 delete arg1;
10818
10819 wxPyEndAllowThreads(__tstate);
10820 if (PyErr_Occurred()) SWIG_fail;
10821 }
10822 Py_INCREF(Py_None); resultobj = Py_None;
10823 return resultobj;
10824 fail:
10825 return NULL;
10826 }
10827
10828
10829 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10830 PyObject *resultobj;
10831 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10832 int arg2 ;
10833 int arg3 ;
10834 int arg4 = (int) wxCONVERT_STRICT ;
10835 bool result;
10836 PyObject * obj0 = 0 ;
10837 PyObject * obj1 = 0 ;
10838 PyObject * obj2 = 0 ;
10839 PyObject * obj3 = 0 ;
10840 char *kwnames[] = {
10841 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10842 };
10843
10844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10847 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10848 if (PyErr_Occurred()) SWIG_fail;
10849 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10850 if (PyErr_Occurred()) SWIG_fail;
10851 if (obj3) {
10852 arg4 = (int) SWIG_AsInt(obj3);
10853 if (PyErr_Occurred()) SWIG_fail;
10854 }
10855 {
10856 PyThreadState* __tstate = wxPyBeginAllowThreads();
10857 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10858
10859 wxPyEndAllowThreads(__tstate);
10860 if (PyErr_Occurred()) SWIG_fail;
10861 }
10862 {
10863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10864 }
10865 return resultobj;
10866 fail:
10867 return NULL;
10868 }
10869
10870
10871 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10872 PyObject *resultobj;
10873 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10874 wxString *arg2 = 0 ;
10875 wxString result;
10876 bool temp2 = False ;
10877 PyObject * obj0 = 0 ;
10878 PyObject * obj1 = 0 ;
10879 char *kwnames[] = {
10880 (char *) "self",(char *) "input", NULL
10881 };
10882
10883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10886 {
10887 arg2 = wxString_in_helper(obj1);
10888 if (arg2 == NULL) SWIG_fail;
10889 temp2 = True;
10890 }
10891 {
10892 PyThreadState* __tstate = wxPyBeginAllowThreads();
10893 result = (arg1)->Convert((wxString const &)*arg2);
10894
10895 wxPyEndAllowThreads(__tstate);
10896 if (PyErr_Occurred()) SWIG_fail;
10897 }
10898 {
10899 #if wxUSE_UNICODE
10900 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10901 #else
10902 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10903 #endif
10904 }
10905 {
10906 if (temp2)
10907 delete arg2;
10908 }
10909 return resultobj;
10910 fail:
10911 {
10912 if (temp2)
10913 delete arg2;
10914 }
10915 return NULL;
10916 }
10917
10918
10919 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10920 PyObject *resultobj;
10921 int arg1 ;
10922 int arg2 = (int) wxPLATFORM_CURRENT ;
10923 wxFontEncodingArray result;
10924 PyObject * obj0 = 0 ;
10925 PyObject * obj1 = 0 ;
10926 char *kwnames[] = {
10927 (char *) "enc",(char *) "platform", NULL
10928 };
10929
10930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10931 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10932 if (PyErr_Occurred()) SWIG_fail;
10933 if (obj1) {
10934 arg2 = (int) SWIG_AsInt(obj1);
10935 if (PyErr_Occurred()) SWIG_fail;
10936 }
10937 {
10938 PyThreadState* __tstate = wxPyBeginAllowThreads();
10939 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10940
10941 wxPyEndAllowThreads(__tstate);
10942 if (PyErr_Occurred()) SWIG_fail;
10943 }
10944 {
10945 resultobj = PyList_New(0);
10946 for (size_t i=0; i < (&result)->GetCount(); i++) {
10947 PyObject* number = PyInt_FromLong((&result)->Item(i));
10948 PyList_Append(resultobj, number);
10949 Py_DECREF(number);
10950 }
10951 }
10952 return resultobj;
10953 fail:
10954 return NULL;
10955 }
10956
10957
10958 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10959 PyObject *resultobj;
10960 int arg1 ;
10961 wxFontEncodingArray result;
10962 PyObject * obj0 = 0 ;
10963 char *kwnames[] = {
10964 (char *) "enc", NULL
10965 };
10966
10967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10968 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10969 if (PyErr_Occurred()) SWIG_fail;
10970 {
10971 PyThreadState* __tstate = wxPyBeginAllowThreads();
10972 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10973
10974 wxPyEndAllowThreads(__tstate);
10975 if (PyErr_Occurred()) SWIG_fail;
10976 }
10977 {
10978 resultobj = PyList_New(0);
10979 for (size_t i=0; i < (&result)->GetCount(); i++) {
10980 PyObject* number = PyInt_FromLong((&result)->Item(i));
10981 PyList_Append(resultobj, number);
10982 Py_DECREF(number);
10983 }
10984 }
10985 return resultobj;
10986 fail:
10987 return NULL;
10988 }
10989
10990
10991 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10992 PyObject *resultobj;
10993 int arg1 ;
10994 int arg2 ;
10995 bool result;
10996 PyObject * obj0 = 0 ;
10997 PyObject * obj1 = 0 ;
10998 char *kwnames[] = {
10999 (char *) "encIn",(char *) "encOut", NULL
11000 };
11001
11002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
11003 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
11004 if (PyErr_Occurred()) SWIG_fail;
11005 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
11006 if (PyErr_Occurred()) SWIG_fail;
11007 {
11008 PyThreadState* __tstate = wxPyBeginAllowThreads();
11009 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
11010
11011 wxPyEndAllowThreads(__tstate);
11012 if (PyErr_Occurred()) SWIG_fail;
11013 }
11014 {
11015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11016 }
11017 return resultobj;
11018 fail:
11019 return NULL;
11020 }
11021
11022
11023 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
11024 PyObject *obj;
11025 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11026 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
11027 Py_INCREF(obj);
11028 return Py_BuildValue((char *)"");
11029 }
11030 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
11031 PyObject *resultobj;
11032 wxDC *arg1 = (wxDC *) 0 ;
11033 PyObject * obj0 = 0 ;
11034 char *kwnames[] = {
11035 (char *) "self", NULL
11036 };
11037
11038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
11039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11041 {
11042 PyThreadState* __tstate = wxPyBeginAllowThreads();
11043 delete arg1;
11044
11045 wxPyEndAllowThreads(__tstate);
11046 if (PyErr_Occurred()) SWIG_fail;
11047 }
11048 Py_INCREF(Py_None); resultobj = Py_None;
11049 return resultobj;
11050 fail:
11051 return NULL;
11052 }
11053
11054
11055 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
11056 PyObject *resultobj;
11057 wxDC *arg1 = (wxDC *) 0 ;
11058 PyObject * obj0 = 0 ;
11059 char *kwnames[] = {
11060 (char *) "self", NULL
11061 };
11062
11063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
11064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11066 {
11067 PyThreadState* __tstate = wxPyBeginAllowThreads();
11068 (arg1)->BeginDrawing();
11069
11070 wxPyEndAllowThreads(__tstate);
11071 if (PyErr_Occurred()) SWIG_fail;
11072 }
11073 Py_INCREF(Py_None); resultobj = Py_None;
11074 return resultobj;
11075 fail:
11076 return NULL;
11077 }
11078
11079
11080 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
11081 PyObject *resultobj;
11082 wxDC *arg1 = (wxDC *) 0 ;
11083 PyObject * obj0 = 0 ;
11084 char *kwnames[] = {
11085 (char *) "self", NULL
11086 };
11087
11088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
11089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11091 {
11092 PyThreadState* __tstate = wxPyBeginAllowThreads();
11093 (arg1)->EndDrawing();
11094
11095 wxPyEndAllowThreads(__tstate);
11096 if (PyErr_Occurred()) SWIG_fail;
11097 }
11098 Py_INCREF(Py_None); resultobj = Py_None;
11099 return resultobj;
11100 fail:
11101 return NULL;
11102 }
11103
11104
11105 static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11106 PyObject *resultobj;
11107 wxDC *arg1 = (wxDC *) 0 ;
11108 int arg2 ;
11109 int arg3 ;
11110 wxColour *arg4 = 0 ;
11111 int arg5 = (int) wxFLOOD_SURFACE ;
11112 bool result;
11113 wxColour temp4 ;
11114 PyObject * obj0 = 0 ;
11115 PyObject * obj1 = 0 ;
11116 PyObject * obj2 = 0 ;
11117 PyObject * obj3 = 0 ;
11118 PyObject * obj4 = 0 ;
11119 char *kwnames[] = {
11120 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
11121 };
11122
11123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11126 arg2 = (int) SWIG_AsInt(obj1);
11127 if (PyErr_Occurred()) SWIG_fail;
11128 arg3 = (int) SWIG_AsInt(obj2);
11129 if (PyErr_Occurred()) SWIG_fail;
11130 {
11131 arg4 = &temp4;
11132 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
11133 }
11134 if (obj4) {
11135 arg5 = (int) SWIG_AsInt(obj4);
11136 if (PyErr_Occurred()) SWIG_fail;
11137 }
11138 {
11139 PyThreadState* __tstate = wxPyBeginAllowThreads();
11140 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
11141
11142 wxPyEndAllowThreads(__tstate);
11143 if (PyErr_Occurred()) SWIG_fail;
11144 }
11145 {
11146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11147 }
11148 return resultobj;
11149 fail:
11150 return NULL;
11151 }
11152
11153
11154 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
11155 PyObject *resultobj;
11156 wxDC *arg1 = (wxDC *) 0 ;
11157 wxPoint *arg2 = 0 ;
11158 wxColour *arg3 = 0 ;
11159 int arg4 = (int) wxFLOOD_SURFACE ;
11160 bool result;
11161 wxPoint temp2 ;
11162 wxColour temp3 ;
11163 PyObject * obj0 = 0 ;
11164 PyObject * obj1 = 0 ;
11165 PyObject * obj2 = 0 ;
11166 PyObject * obj3 = 0 ;
11167 char *kwnames[] = {
11168 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
11169 };
11170
11171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11174 {
11175 arg2 = &temp2;
11176 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11177 }
11178 {
11179 arg3 = &temp3;
11180 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11181 }
11182 if (obj3) {
11183 arg4 = (int) SWIG_AsInt(obj3);
11184 if (PyErr_Occurred()) SWIG_fail;
11185 }
11186 {
11187 PyThreadState* __tstate = wxPyBeginAllowThreads();
11188 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
11189
11190 wxPyEndAllowThreads(__tstate);
11191 if (PyErr_Occurred()) SWIG_fail;
11192 }
11193 {
11194 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11195 }
11196 return resultobj;
11197 fail:
11198 return NULL;
11199 }
11200
11201
11202 static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11203 PyObject *resultobj;
11204 wxDC *arg1 = (wxDC *) 0 ;
11205 int arg2 ;
11206 int arg3 ;
11207 wxColour result;
11208 PyObject * obj0 = 0 ;
11209 PyObject * obj1 = 0 ;
11210 PyObject * obj2 = 0 ;
11211 char *kwnames[] = {
11212 (char *) "self",(char *) "x",(char *) "y", NULL
11213 };
11214
11215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
11216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11218 arg2 = (int) SWIG_AsInt(obj1);
11219 if (PyErr_Occurred()) SWIG_fail;
11220 arg3 = (int) SWIG_AsInt(obj2);
11221 if (PyErr_Occurred()) SWIG_fail;
11222 {
11223 PyThreadState* __tstate = wxPyBeginAllowThreads();
11224 result = wxDC_GetPixelXY(arg1,arg2,arg3);
11225
11226 wxPyEndAllowThreads(__tstate);
11227 if (PyErr_Occurred()) SWIG_fail;
11228 }
11229 {
11230 wxColour * resultptr;
11231 resultptr = new wxColour((wxColour &) result);
11232 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11233 }
11234 return resultobj;
11235 fail:
11236 return NULL;
11237 }
11238
11239
11240 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
11241 PyObject *resultobj;
11242 wxDC *arg1 = (wxDC *) 0 ;
11243 wxPoint *arg2 = 0 ;
11244 wxColour result;
11245 wxPoint temp2 ;
11246 PyObject * obj0 = 0 ;
11247 PyObject * obj1 = 0 ;
11248 char *kwnames[] = {
11249 (char *) "self",(char *) "pt", NULL
11250 };
11251
11252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
11253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11255 {
11256 arg2 = &temp2;
11257 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11258 }
11259 {
11260 PyThreadState* __tstate = wxPyBeginAllowThreads();
11261 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
11262
11263 wxPyEndAllowThreads(__tstate);
11264 if (PyErr_Occurred()) SWIG_fail;
11265 }
11266 {
11267 wxColour * resultptr;
11268 resultptr = new wxColour((wxColour &) result);
11269 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11270 }
11271 return resultobj;
11272 fail:
11273 return NULL;
11274 }
11275
11276
11277 static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11278 PyObject *resultobj;
11279 wxDC *arg1 = (wxDC *) 0 ;
11280 int arg2 ;
11281 int arg3 ;
11282 int arg4 ;
11283 int arg5 ;
11284 PyObject * obj0 = 0 ;
11285 PyObject * obj1 = 0 ;
11286 PyObject * obj2 = 0 ;
11287 PyObject * obj3 = 0 ;
11288 PyObject * obj4 = 0 ;
11289 char *kwnames[] = {
11290 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
11291 };
11292
11293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11296 arg2 = (int) SWIG_AsInt(obj1);
11297 if (PyErr_Occurred()) SWIG_fail;
11298 arg3 = (int) SWIG_AsInt(obj2);
11299 if (PyErr_Occurred()) SWIG_fail;
11300 arg4 = (int) SWIG_AsInt(obj3);
11301 if (PyErr_Occurred()) SWIG_fail;
11302 arg5 = (int) SWIG_AsInt(obj4);
11303 if (PyErr_Occurred()) SWIG_fail;
11304 {
11305 PyThreadState* __tstate = wxPyBeginAllowThreads();
11306 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
11307
11308 wxPyEndAllowThreads(__tstate);
11309 if (PyErr_Occurred()) SWIG_fail;
11310 }
11311 Py_INCREF(Py_None); resultobj = Py_None;
11312 return resultobj;
11313 fail:
11314 return NULL;
11315 }
11316
11317
11318 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
11319 PyObject *resultobj;
11320 wxDC *arg1 = (wxDC *) 0 ;
11321 wxPoint *arg2 = 0 ;
11322 wxPoint *arg3 = 0 ;
11323 wxPoint temp2 ;
11324 wxPoint temp3 ;
11325 PyObject * obj0 = 0 ;
11326 PyObject * obj1 = 0 ;
11327 PyObject * obj2 = 0 ;
11328 char *kwnames[] = {
11329 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
11330 };
11331
11332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
11333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11335 {
11336 arg2 = &temp2;
11337 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11338 }
11339 {
11340 arg3 = &temp3;
11341 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11342 }
11343 {
11344 PyThreadState* __tstate = wxPyBeginAllowThreads();
11345 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
11346
11347 wxPyEndAllowThreads(__tstate);
11348 if (PyErr_Occurred()) SWIG_fail;
11349 }
11350 Py_INCREF(Py_None); resultobj = Py_None;
11351 return resultobj;
11352 fail:
11353 return NULL;
11354 }
11355
11356
11357 static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11358 PyObject *resultobj;
11359 wxDC *arg1 = (wxDC *) 0 ;
11360 int arg2 ;
11361 int arg3 ;
11362 PyObject * obj0 = 0 ;
11363 PyObject * obj1 = 0 ;
11364 PyObject * obj2 = 0 ;
11365 char *kwnames[] = {
11366 (char *) "self",(char *) "x",(char *) "y", NULL
11367 };
11368
11369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
11370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11372 arg2 = (int) SWIG_AsInt(obj1);
11373 if (PyErr_Occurred()) SWIG_fail;
11374 arg3 = (int) SWIG_AsInt(obj2);
11375 if (PyErr_Occurred()) SWIG_fail;
11376 {
11377 PyThreadState* __tstate = wxPyBeginAllowThreads();
11378 (arg1)->CrossHair(arg2,arg3);
11379
11380 wxPyEndAllowThreads(__tstate);
11381 if (PyErr_Occurred()) SWIG_fail;
11382 }
11383 Py_INCREF(Py_None); resultobj = Py_None;
11384 return resultobj;
11385 fail:
11386 return NULL;
11387 }
11388
11389
11390 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
11391 PyObject *resultobj;
11392 wxDC *arg1 = (wxDC *) 0 ;
11393 wxPoint *arg2 = 0 ;
11394 wxPoint temp2 ;
11395 PyObject * obj0 = 0 ;
11396 PyObject * obj1 = 0 ;
11397 char *kwnames[] = {
11398 (char *) "self",(char *) "pt", NULL
11399 };
11400
11401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
11402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11404 {
11405 arg2 = &temp2;
11406 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11407 }
11408 {
11409 PyThreadState* __tstate = wxPyBeginAllowThreads();
11410 (arg1)->CrossHair((wxPoint const &)*arg2);
11411
11412 wxPyEndAllowThreads(__tstate);
11413 if (PyErr_Occurred()) SWIG_fail;
11414 }
11415 Py_INCREF(Py_None); resultobj = Py_None;
11416 return resultobj;
11417 fail:
11418 return NULL;
11419 }
11420
11421
11422 static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11423 PyObject *resultobj;
11424 wxDC *arg1 = (wxDC *) 0 ;
11425 int arg2 ;
11426 int arg3 ;
11427 int arg4 ;
11428 int arg5 ;
11429 int arg6 ;
11430 int arg7 ;
11431 PyObject * obj0 = 0 ;
11432 PyObject * obj1 = 0 ;
11433 PyObject * obj2 = 0 ;
11434 PyObject * obj3 = 0 ;
11435 PyObject * obj4 = 0 ;
11436 PyObject * obj5 = 0 ;
11437 PyObject * obj6 = 0 ;
11438 char *kwnames[] = {
11439 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
11440 };
11441
11442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11445 arg2 = (int) SWIG_AsInt(obj1);
11446 if (PyErr_Occurred()) SWIG_fail;
11447 arg3 = (int) SWIG_AsInt(obj2);
11448 if (PyErr_Occurred()) SWIG_fail;
11449 arg4 = (int) SWIG_AsInt(obj3);
11450 if (PyErr_Occurred()) SWIG_fail;
11451 arg5 = (int) SWIG_AsInt(obj4);
11452 if (PyErr_Occurred()) SWIG_fail;
11453 arg6 = (int) SWIG_AsInt(obj5);
11454 if (PyErr_Occurred()) SWIG_fail;
11455 arg7 = (int) SWIG_AsInt(obj6);
11456 if (PyErr_Occurred()) SWIG_fail;
11457 {
11458 PyThreadState* __tstate = wxPyBeginAllowThreads();
11459 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
11460
11461 wxPyEndAllowThreads(__tstate);
11462 if (PyErr_Occurred()) SWIG_fail;
11463 }
11464 Py_INCREF(Py_None); resultobj = Py_None;
11465 return resultobj;
11466 fail:
11467 return NULL;
11468 }
11469
11470
11471 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
11472 PyObject *resultobj;
11473 wxDC *arg1 = (wxDC *) 0 ;
11474 wxPoint *arg2 = 0 ;
11475 wxPoint *arg3 = 0 ;
11476 wxPoint *arg4 = 0 ;
11477 wxPoint temp2 ;
11478 wxPoint temp3 ;
11479 wxPoint temp4 ;
11480 PyObject * obj0 = 0 ;
11481 PyObject * obj1 = 0 ;
11482 PyObject * obj2 = 0 ;
11483 PyObject * obj3 = 0 ;
11484 char *kwnames[] = {
11485 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
11486 };
11487
11488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11491 {
11492 arg2 = &temp2;
11493 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11494 }
11495 {
11496 arg3 = &temp3;
11497 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11498 }
11499 {
11500 arg4 = &temp4;
11501 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11502 }
11503 {
11504 PyThreadState* __tstate = wxPyBeginAllowThreads();
11505 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
11506
11507 wxPyEndAllowThreads(__tstate);
11508 if (PyErr_Occurred()) SWIG_fail;
11509 }
11510 Py_INCREF(Py_None); resultobj = Py_None;
11511 return resultobj;
11512 fail:
11513 return NULL;
11514 }
11515
11516
11517 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11518 PyObject *resultobj;
11519 wxDC *arg1 = (wxDC *) 0 ;
11520 int arg2 ;
11521 int arg3 ;
11522 int arg4 ;
11523 int arg5 ;
11524 PyObject * obj0 = 0 ;
11525 PyObject * obj1 = 0 ;
11526 PyObject * obj2 = 0 ;
11527 PyObject * obj3 = 0 ;
11528 PyObject * obj4 = 0 ;
11529 char *kwnames[] = {
11530 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11531 };
11532
11533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11536 arg2 = (int) SWIG_AsInt(obj1);
11537 if (PyErr_Occurred()) SWIG_fail;
11538 arg3 = (int) SWIG_AsInt(obj2);
11539 if (PyErr_Occurred()) SWIG_fail;
11540 arg4 = (int) SWIG_AsInt(obj3);
11541 if (PyErr_Occurred()) SWIG_fail;
11542 arg5 = (int) SWIG_AsInt(obj4);
11543 if (PyErr_Occurred()) SWIG_fail;
11544 {
11545 PyThreadState* __tstate = wxPyBeginAllowThreads();
11546 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
11547
11548 wxPyEndAllowThreads(__tstate);
11549 if (PyErr_Occurred()) SWIG_fail;
11550 }
11551 Py_INCREF(Py_None); resultobj = Py_None;
11552 return resultobj;
11553 fail:
11554 return NULL;
11555 }
11556
11557
11558 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
11559 PyObject *resultobj;
11560 wxDC *arg1 = (wxDC *) 0 ;
11561 wxRect *arg2 = 0 ;
11562 wxRect temp2 ;
11563 PyObject * obj0 = 0 ;
11564 PyObject * obj1 = 0 ;
11565 char *kwnames[] = {
11566 (char *) "self",(char *) "rect", NULL
11567 };
11568
11569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
11570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11572 {
11573 arg2 = &temp2;
11574 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11575 }
11576 {
11577 PyThreadState* __tstate = wxPyBeginAllowThreads();
11578 (arg1)->DrawCheckMark((wxRect const &)*arg2);
11579
11580 wxPyEndAllowThreads(__tstate);
11581 if (PyErr_Occurred()) SWIG_fail;
11582 }
11583 Py_INCREF(Py_None); resultobj = Py_None;
11584 return resultobj;
11585 fail:
11586 return NULL;
11587 }
11588
11589
11590 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11591 PyObject *resultobj;
11592 wxDC *arg1 = (wxDC *) 0 ;
11593 int arg2 ;
11594 int arg3 ;
11595 int arg4 ;
11596 int arg5 ;
11597 double arg6 ;
11598 double arg7 ;
11599 PyObject * obj0 = 0 ;
11600 PyObject * obj1 = 0 ;
11601 PyObject * obj2 = 0 ;
11602 PyObject * obj3 = 0 ;
11603 PyObject * obj4 = 0 ;
11604 PyObject * obj5 = 0 ;
11605 PyObject * obj6 = 0 ;
11606 char *kwnames[] = {
11607 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
11608 };
11609
11610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11613 arg2 = (int) SWIG_AsInt(obj1);
11614 if (PyErr_Occurred()) SWIG_fail;
11615 arg3 = (int) SWIG_AsInt(obj2);
11616 if (PyErr_Occurred()) SWIG_fail;
11617 arg4 = (int) SWIG_AsInt(obj3);
11618 if (PyErr_Occurred()) SWIG_fail;
11619 arg5 = (int) SWIG_AsInt(obj4);
11620 if (PyErr_Occurred()) SWIG_fail;
11621 arg6 = (double) SWIG_AsDouble(obj5);
11622 if (PyErr_Occurred()) SWIG_fail;
11623 arg7 = (double) SWIG_AsDouble(obj6);
11624 if (PyErr_Occurred()) SWIG_fail;
11625 {
11626 PyThreadState* __tstate = wxPyBeginAllowThreads();
11627 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
11628
11629 wxPyEndAllowThreads(__tstate);
11630 if (PyErr_Occurred()) SWIG_fail;
11631 }
11632 Py_INCREF(Py_None); resultobj = Py_None;
11633 return resultobj;
11634 fail:
11635 return NULL;
11636 }
11637
11638
11639 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
11640 PyObject *resultobj;
11641 wxDC *arg1 = (wxDC *) 0 ;
11642 wxPoint *arg2 = 0 ;
11643 wxSize *arg3 = 0 ;
11644 double arg4 ;
11645 double arg5 ;
11646 wxPoint temp2 ;
11647 wxSize temp3 ;
11648 PyObject * obj0 = 0 ;
11649 PyObject * obj1 = 0 ;
11650 PyObject * obj2 = 0 ;
11651 PyObject * obj3 = 0 ;
11652 PyObject * obj4 = 0 ;
11653 char *kwnames[] = {
11654 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
11655 };
11656
11657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11660 {
11661 arg2 = &temp2;
11662 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11663 }
11664 {
11665 arg3 = &temp3;
11666 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11667 }
11668 arg4 = (double) SWIG_AsDouble(obj3);
11669 if (PyErr_Occurred()) SWIG_fail;
11670 arg5 = (double) SWIG_AsDouble(obj4);
11671 if (PyErr_Occurred()) SWIG_fail;
11672 {
11673 PyThreadState* __tstate = wxPyBeginAllowThreads();
11674 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
11675
11676 wxPyEndAllowThreads(__tstate);
11677 if (PyErr_Occurred()) SWIG_fail;
11678 }
11679 Py_INCREF(Py_None); resultobj = Py_None;
11680 return resultobj;
11681 fail:
11682 return NULL;
11683 }
11684
11685
11686 static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11687 PyObject *resultobj;
11688 wxDC *arg1 = (wxDC *) 0 ;
11689 int arg2 ;
11690 int arg3 ;
11691 PyObject * obj0 = 0 ;
11692 PyObject * obj1 = 0 ;
11693 PyObject * obj2 = 0 ;
11694 char *kwnames[] = {
11695 (char *) "self",(char *) "x",(char *) "y", NULL
11696 };
11697
11698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
11699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11701 arg2 = (int) SWIG_AsInt(obj1);
11702 if (PyErr_Occurred()) SWIG_fail;
11703 arg3 = (int) SWIG_AsInt(obj2);
11704 if (PyErr_Occurred()) SWIG_fail;
11705 {
11706 PyThreadState* __tstate = wxPyBeginAllowThreads();
11707 (arg1)->DrawPoint(arg2,arg3);
11708
11709 wxPyEndAllowThreads(__tstate);
11710 if (PyErr_Occurred()) SWIG_fail;
11711 }
11712 Py_INCREF(Py_None); resultobj = Py_None;
11713 return resultobj;
11714 fail:
11715 return NULL;
11716 }
11717
11718
11719 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11720 PyObject *resultobj;
11721 wxDC *arg1 = (wxDC *) 0 ;
11722 wxPoint *arg2 = 0 ;
11723 wxPoint temp2 ;
11724 PyObject * obj0 = 0 ;
11725 PyObject * obj1 = 0 ;
11726 char *kwnames[] = {
11727 (char *) "self",(char *) "pt", NULL
11728 };
11729
11730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
11731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11733 {
11734 arg2 = &temp2;
11735 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11736 }
11737 {
11738 PyThreadState* __tstate = wxPyBeginAllowThreads();
11739 (arg1)->DrawPoint((wxPoint const &)*arg2);
11740
11741 wxPyEndAllowThreads(__tstate);
11742 if (PyErr_Occurred()) SWIG_fail;
11743 }
11744 Py_INCREF(Py_None); resultobj = Py_None;
11745 return resultobj;
11746 fail:
11747 return NULL;
11748 }
11749
11750
11751 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11752 PyObject *resultobj;
11753 wxDC *arg1 = (wxDC *) 0 ;
11754 int arg2 ;
11755 int arg3 ;
11756 int arg4 ;
11757 int arg5 ;
11758 PyObject * obj0 = 0 ;
11759 PyObject * obj1 = 0 ;
11760 PyObject * obj2 = 0 ;
11761 PyObject * obj3 = 0 ;
11762 PyObject * obj4 = 0 ;
11763 char *kwnames[] = {
11764 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11765 };
11766
11767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11770 arg2 = (int) SWIG_AsInt(obj1);
11771 if (PyErr_Occurred()) SWIG_fail;
11772 arg3 = (int) SWIG_AsInt(obj2);
11773 if (PyErr_Occurred()) SWIG_fail;
11774 arg4 = (int) SWIG_AsInt(obj3);
11775 if (PyErr_Occurred()) SWIG_fail;
11776 arg5 = (int) SWIG_AsInt(obj4);
11777 if (PyErr_Occurred()) SWIG_fail;
11778 {
11779 PyThreadState* __tstate = wxPyBeginAllowThreads();
11780 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11781
11782 wxPyEndAllowThreads(__tstate);
11783 if (PyErr_Occurred()) SWIG_fail;
11784 }
11785 Py_INCREF(Py_None); resultobj = Py_None;
11786 return resultobj;
11787 fail:
11788 return NULL;
11789 }
11790
11791
11792 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11793 PyObject *resultobj;
11794 wxDC *arg1 = (wxDC *) 0 ;
11795 wxPoint *arg2 = 0 ;
11796 wxSize *arg3 = 0 ;
11797 wxPoint temp2 ;
11798 wxSize temp3 ;
11799 PyObject * obj0 = 0 ;
11800 PyObject * obj1 = 0 ;
11801 PyObject * obj2 = 0 ;
11802 char *kwnames[] = {
11803 (char *) "self",(char *) "pt",(char *) "sz", NULL
11804 };
11805
11806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11809 {
11810 arg2 = &temp2;
11811 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11812 }
11813 {
11814 arg3 = &temp3;
11815 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11816 }
11817 {
11818 PyThreadState* __tstate = wxPyBeginAllowThreads();
11819 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11820
11821 wxPyEndAllowThreads(__tstate);
11822 if (PyErr_Occurred()) SWIG_fail;
11823 }
11824 Py_INCREF(Py_None); resultobj = Py_None;
11825 return resultobj;
11826 fail:
11827 return NULL;
11828 }
11829
11830
11831 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11832 PyObject *resultobj;
11833 wxDC *arg1 = (wxDC *) 0 ;
11834 wxRect *arg2 = 0 ;
11835 wxRect temp2 ;
11836 PyObject * obj0 = 0 ;
11837 PyObject * obj1 = 0 ;
11838 char *kwnames[] = {
11839 (char *) "self",(char *) "rect", NULL
11840 };
11841
11842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11845 {
11846 arg2 = &temp2;
11847 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11848 }
11849 {
11850 PyThreadState* __tstate = wxPyBeginAllowThreads();
11851 (arg1)->DrawRectangle((wxRect const &)*arg2);
11852
11853 wxPyEndAllowThreads(__tstate);
11854 if (PyErr_Occurred()) SWIG_fail;
11855 }
11856 Py_INCREF(Py_None); resultobj = Py_None;
11857 return resultobj;
11858 fail:
11859 return NULL;
11860 }
11861
11862
11863 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11864 PyObject *resultobj;
11865 wxDC *arg1 = (wxDC *) 0 ;
11866 int arg2 ;
11867 int arg3 ;
11868 int arg4 ;
11869 int arg5 ;
11870 double arg6 ;
11871 PyObject * obj0 = 0 ;
11872 PyObject * obj1 = 0 ;
11873 PyObject * obj2 = 0 ;
11874 PyObject * obj3 = 0 ;
11875 PyObject * obj4 = 0 ;
11876 PyObject * obj5 = 0 ;
11877 char *kwnames[] = {
11878 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11879 };
11880
11881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11884 arg2 = (int) SWIG_AsInt(obj1);
11885 if (PyErr_Occurred()) SWIG_fail;
11886 arg3 = (int) SWIG_AsInt(obj2);
11887 if (PyErr_Occurred()) SWIG_fail;
11888 arg4 = (int) SWIG_AsInt(obj3);
11889 if (PyErr_Occurred()) SWIG_fail;
11890 arg5 = (int) SWIG_AsInt(obj4);
11891 if (PyErr_Occurred()) SWIG_fail;
11892 arg6 = (double) SWIG_AsDouble(obj5);
11893 if (PyErr_Occurred()) SWIG_fail;
11894 {
11895 PyThreadState* __tstate = wxPyBeginAllowThreads();
11896 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11897
11898 wxPyEndAllowThreads(__tstate);
11899 if (PyErr_Occurred()) SWIG_fail;
11900 }
11901 Py_INCREF(Py_None); resultobj = Py_None;
11902 return resultobj;
11903 fail:
11904 return NULL;
11905 }
11906
11907
11908 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11909 PyObject *resultobj;
11910 wxDC *arg1 = (wxDC *) 0 ;
11911 wxPoint *arg2 = 0 ;
11912 wxSize *arg3 = 0 ;
11913 double arg4 ;
11914 wxPoint temp2 ;
11915 wxSize temp3 ;
11916 PyObject * obj0 = 0 ;
11917 PyObject * obj1 = 0 ;
11918 PyObject * obj2 = 0 ;
11919 PyObject * obj3 = 0 ;
11920 char *kwnames[] = {
11921 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11922 };
11923
11924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11927 {
11928 arg2 = &temp2;
11929 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11930 }
11931 {
11932 arg3 = &temp3;
11933 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11934 }
11935 arg4 = (double) SWIG_AsDouble(obj3);
11936 if (PyErr_Occurred()) SWIG_fail;
11937 {
11938 PyThreadState* __tstate = wxPyBeginAllowThreads();
11939 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11940
11941 wxPyEndAllowThreads(__tstate);
11942 if (PyErr_Occurred()) SWIG_fail;
11943 }
11944 Py_INCREF(Py_None); resultobj = Py_None;
11945 return resultobj;
11946 fail:
11947 return NULL;
11948 }
11949
11950
11951 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11952 PyObject *resultobj;
11953 wxDC *arg1 = (wxDC *) 0 ;
11954 wxRect *arg2 = 0 ;
11955 double arg3 ;
11956 wxRect temp2 ;
11957 PyObject * obj0 = 0 ;
11958 PyObject * obj1 = 0 ;
11959 PyObject * obj2 = 0 ;
11960 char *kwnames[] = {
11961 (char *) "self",(char *) "r",(char *) "radius", NULL
11962 };
11963
11964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11967 {
11968 arg2 = &temp2;
11969 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11970 }
11971 arg3 = (double) SWIG_AsDouble(obj2);
11972 if (PyErr_Occurred()) SWIG_fail;
11973 {
11974 PyThreadState* __tstate = wxPyBeginAllowThreads();
11975 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11976
11977 wxPyEndAllowThreads(__tstate);
11978 if (PyErr_Occurred()) SWIG_fail;
11979 }
11980 Py_INCREF(Py_None); resultobj = Py_None;
11981 return resultobj;
11982 fail:
11983 return NULL;
11984 }
11985
11986
11987 static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11988 PyObject *resultobj;
11989 wxDC *arg1 = (wxDC *) 0 ;
11990 int arg2 ;
11991 int arg3 ;
11992 int arg4 ;
11993 PyObject * obj0 = 0 ;
11994 PyObject * obj1 = 0 ;
11995 PyObject * obj2 = 0 ;
11996 PyObject * obj3 = 0 ;
11997 char *kwnames[] = {
11998 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11999 };
12000
12001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12004 arg2 = (int) SWIG_AsInt(obj1);
12005 if (PyErr_Occurred()) SWIG_fail;
12006 arg3 = (int) SWIG_AsInt(obj2);
12007 if (PyErr_Occurred()) SWIG_fail;
12008 arg4 = (int) SWIG_AsInt(obj3);
12009 if (PyErr_Occurred()) SWIG_fail;
12010 {
12011 PyThreadState* __tstate = wxPyBeginAllowThreads();
12012 (arg1)->DrawCircle(arg2,arg3,arg4);
12013
12014 wxPyEndAllowThreads(__tstate);
12015 if (PyErr_Occurred()) SWIG_fail;
12016 }
12017 Py_INCREF(Py_None); resultobj = Py_None;
12018 return resultobj;
12019 fail:
12020 return NULL;
12021 }
12022
12023
12024 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
12025 PyObject *resultobj;
12026 wxDC *arg1 = (wxDC *) 0 ;
12027 wxPoint *arg2 = 0 ;
12028 int arg3 ;
12029 wxPoint temp2 ;
12030 PyObject * obj0 = 0 ;
12031 PyObject * obj1 = 0 ;
12032 PyObject * obj2 = 0 ;
12033 char *kwnames[] = {
12034 (char *) "self",(char *) "pt",(char *) "radius", NULL
12035 };
12036
12037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail;
12038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12040 {
12041 arg2 = &temp2;
12042 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12043 }
12044 arg3 = (int) SWIG_AsInt(obj2);
12045 if (PyErr_Occurred()) SWIG_fail;
12046 {
12047 PyThreadState* __tstate = wxPyBeginAllowThreads();
12048 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
12049
12050 wxPyEndAllowThreads(__tstate);
12051 if (PyErr_Occurred()) SWIG_fail;
12052 }
12053 Py_INCREF(Py_None); resultobj = Py_None;
12054 return resultobj;
12055 fail:
12056 return NULL;
12057 }
12058
12059
12060 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12061 PyObject *resultobj;
12062 wxDC *arg1 = (wxDC *) 0 ;
12063 int arg2 ;
12064 int arg3 ;
12065 int arg4 ;
12066 int arg5 ;
12067 PyObject * obj0 = 0 ;
12068 PyObject * obj1 = 0 ;
12069 PyObject * obj2 = 0 ;
12070 PyObject * obj3 = 0 ;
12071 PyObject * obj4 = 0 ;
12072 char *kwnames[] = {
12073 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12074 };
12075
12076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12079 arg2 = (int) SWIG_AsInt(obj1);
12080 if (PyErr_Occurred()) SWIG_fail;
12081 arg3 = (int) SWIG_AsInt(obj2);
12082 if (PyErr_Occurred()) SWIG_fail;
12083 arg4 = (int) SWIG_AsInt(obj3);
12084 if (PyErr_Occurred()) SWIG_fail;
12085 arg5 = (int) SWIG_AsInt(obj4);
12086 if (PyErr_Occurred()) SWIG_fail;
12087 {
12088 PyThreadState* __tstate = wxPyBeginAllowThreads();
12089 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
12090
12091 wxPyEndAllowThreads(__tstate);
12092 if (PyErr_Occurred()) SWIG_fail;
12093 }
12094 Py_INCREF(Py_None); resultobj = Py_None;
12095 return resultobj;
12096 fail:
12097 return NULL;
12098 }
12099
12100
12101 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
12102 PyObject *resultobj;
12103 wxDC *arg1 = (wxDC *) 0 ;
12104 wxPoint *arg2 = 0 ;
12105 wxSize *arg3 = 0 ;
12106 wxPoint temp2 ;
12107 wxSize temp3 ;
12108 PyObject * obj0 = 0 ;
12109 PyObject * obj1 = 0 ;
12110 PyObject * obj2 = 0 ;
12111 char *kwnames[] = {
12112 (char *) "self",(char *) "pt",(char *) "sz", NULL
12113 };
12114
12115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
12116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12118 {
12119 arg2 = &temp2;
12120 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12121 }
12122 {
12123 arg3 = &temp3;
12124 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12125 }
12126 {
12127 PyThreadState* __tstate = wxPyBeginAllowThreads();
12128 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
12129
12130 wxPyEndAllowThreads(__tstate);
12131 if (PyErr_Occurred()) SWIG_fail;
12132 }
12133 Py_INCREF(Py_None); resultobj = Py_None;
12134 return resultobj;
12135 fail:
12136 return NULL;
12137 }
12138
12139
12140 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12141 PyObject *resultobj;
12142 wxDC *arg1 = (wxDC *) 0 ;
12143 wxRect *arg2 = 0 ;
12144 wxRect temp2 ;
12145 PyObject * obj0 = 0 ;
12146 PyObject * obj1 = 0 ;
12147 char *kwnames[] = {
12148 (char *) "self",(char *) "rect", NULL
12149 };
12150
12151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
12152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12154 {
12155 arg2 = &temp2;
12156 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12157 }
12158 {
12159 PyThreadState* __tstate = wxPyBeginAllowThreads();
12160 (arg1)->DrawEllipse((wxRect const &)*arg2);
12161
12162 wxPyEndAllowThreads(__tstate);
12163 if (PyErr_Occurred()) SWIG_fail;
12164 }
12165 Py_INCREF(Py_None); resultobj = Py_None;
12166 return resultobj;
12167 fail:
12168 return NULL;
12169 }
12170
12171
12172 static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12173 PyObject *resultobj;
12174 wxDC *arg1 = (wxDC *) 0 ;
12175 wxIcon *arg2 = 0 ;
12176 int arg3 ;
12177 int arg4 ;
12178 PyObject * obj0 = 0 ;
12179 PyObject * obj1 = 0 ;
12180 PyObject * obj2 = 0 ;
12181 PyObject * obj3 = 0 ;
12182 char *kwnames[] = {
12183 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
12184 };
12185
12186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12189 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
12190 SWIG_POINTER_EXCEPTION | 0)) == -1)
12191 SWIG_fail;
12192 if (arg2 == NULL) {
12193 PyErr_SetString(PyExc_TypeError,"null reference");
12194 SWIG_fail;
12195 }
12196 arg3 = (int) SWIG_AsInt(obj2);
12197 if (PyErr_Occurred()) SWIG_fail;
12198 arg4 = (int) SWIG_AsInt(obj3);
12199 if (PyErr_Occurred()) SWIG_fail;
12200 {
12201 PyThreadState* __tstate = wxPyBeginAllowThreads();
12202 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
12203
12204 wxPyEndAllowThreads(__tstate);
12205 if (PyErr_Occurred()) SWIG_fail;
12206 }
12207 Py_INCREF(Py_None); resultobj = Py_None;
12208 return resultobj;
12209 fail:
12210 return NULL;
12211 }
12212
12213
12214 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12215 PyObject *resultobj;
12216 wxDC *arg1 = (wxDC *) 0 ;
12217 wxIcon *arg2 = 0 ;
12218 wxPoint *arg3 = 0 ;
12219 wxPoint temp3 ;
12220 PyObject * obj0 = 0 ;
12221 PyObject * obj1 = 0 ;
12222 PyObject * obj2 = 0 ;
12223 char *kwnames[] = {
12224 (char *) "self",(char *) "icon",(char *) "pt", NULL
12225 };
12226
12227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12230 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
12231 SWIG_POINTER_EXCEPTION | 0)) == -1)
12232 SWIG_fail;
12233 if (arg2 == NULL) {
12234 PyErr_SetString(PyExc_TypeError,"null reference");
12235 SWIG_fail;
12236 }
12237 {
12238 arg3 = &temp3;
12239 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12240 }
12241 {
12242 PyThreadState* __tstate = wxPyBeginAllowThreads();
12243 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
12244
12245 wxPyEndAllowThreads(__tstate);
12246 if (PyErr_Occurred()) SWIG_fail;
12247 }
12248 Py_INCREF(Py_None); resultobj = Py_None;
12249 return resultobj;
12250 fail:
12251 return NULL;
12252 }
12253
12254
12255 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12256 PyObject *resultobj;
12257 wxDC *arg1 = (wxDC *) 0 ;
12258 wxBitmap *arg2 = 0 ;
12259 int arg3 ;
12260 int arg4 ;
12261 bool arg5 = (bool) False ;
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 *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
12269 };
12270
12271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",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 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
12275 SWIG_POINTER_EXCEPTION | 0)) == -1)
12276 SWIG_fail;
12277 if (arg2 == NULL) {
12278 PyErr_SetString(PyExc_TypeError,"null reference");
12279 SWIG_fail;
12280 }
12281 arg3 = (int) SWIG_AsInt(obj2);
12282 if (PyErr_Occurred()) SWIG_fail;
12283 arg4 = (int) SWIG_AsInt(obj3);
12284 if (PyErr_Occurred()) SWIG_fail;
12285 if (obj4) {
12286 arg5 = (bool) SWIG_AsBool(obj4);
12287 if (PyErr_Occurred()) SWIG_fail;
12288 }
12289 {
12290 PyThreadState* __tstate = wxPyBeginAllowThreads();
12291 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
12292
12293 wxPyEndAllowThreads(__tstate);
12294 if (PyErr_Occurred()) SWIG_fail;
12295 }
12296 Py_INCREF(Py_None); resultobj = Py_None;
12297 return resultobj;
12298 fail:
12299 return NULL;
12300 }
12301
12302
12303 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
12304 PyObject *resultobj;
12305 wxDC *arg1 = (wxDC *) 0 ;
12306 wxBitmap *arg2 = 0 ;
12307 wxPoint *arg3 = 0 ;
12308 bool arg4 = (bool) False ;
12309 wxPoint temp3 ;
12310 PyObject * obj0 = 0 ;
12311 PyObject * obj1 = 0 ;
12312 PyObject * obj2 = 0 ;
12313 PyObject * obj3 = 0 ;
12314 char *kwnames[] = {
12315 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
12316 };
12317
12318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12321 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
12322 SWIG_POINTER_EXCEPTION | 0)) == -1)
12323 SWIG_fail;
12324 if (arg2 == NULL) {
12325 PyErr_SetString(PyExc_TypeError,"null reference");
12326 SWIG_fail;
12327 }
12328 {
12329 arg3 = &temp3;
12330 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12331 }
12332 if (obj3) {
12333 arg4 = (bool) SWIG_AsBool(obj3);
12334 if (PyErr_Occurred()) SWIG_fail;
12335 }
12336 {
12337 PyThreadState* __tstate = wxPyBeginAllowThreads();
12338 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
12339
12340 wxPyEndAllowThreads(__tstate);
12341 if (PyErr_Occurred()) SWIG_fail;
12342 }
12343 Py_INCREF(Py_None); resultobj = Py_None;
12344 return resultobj;
12345 fail:
12346 return NULL;
12347 }
12348
12349
12350 static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12351 PyObject *resultobj;
12352 wxDC *arg1 = (wxDC *) 0 ;
12353 wxString *arg2 = 0 ;
12354 int arg3 ;
12355 int arg4 ;
12356 bool temp2 = False ;
12357 PyObject * obj0 = 0 ;
12358 PyObject * obj1 = 0 ;
12359 PyObject * obj2 = 0 ;
12360 PyObject * obj3 = 0 ;
12361 char *kwnames[] = {
12362 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
12363 };
12364
12365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12368 {
12369 arg2 = wxString_in_helper(obj1);
12370 if (arg2 == NULL) SWIG_fail;
12371 temp2 = True;
12372 }
12373 arg3 = (int) SWIG_AsInt(obj2);
12374 if (PyErr_Occurred()) SWIG_fail;
12375 arg4 = (int) SWIG_AsInt(obj3);
12376 if (PyErr_Occurred()) SWIG_fail;
12377 {
12378 PyThreadState* __tstate = wxPyBeginAllowThreads();
12379 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
12380
12381 wxPyEndAllowThreads(__tstate);
12382 if (PyErr_Occurred()) SWIG_fail;
12383 }
12384 Py_INCREF(Py_None); resultobj = Py_None;
12385 {
12386 if (temp2)
12387 delete arg2;
12388 }
12389 return resultobj;
12390 fail:
12391 {
12392 if (temp2)
12393 delete arg2;
12394 }
12395 return NULL;
12396 }
12397
12398
12399 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
12400 PyObject *resultobj;
12401 wxDC *arg1 = (wxDC *) 0 ;
12402 wxString *arg2 = 0 ;
12403 wxPoint *arg3 = 0 ;
12404 bool temp2 = False ;
12405 wxPoint temp3 ;
12406 PyObject * obj0 = 0 ;
12407 PyObject * obj1 = 0 ;
12408 PyObject * obj2 = 0 ;
12409 char *kwnames[] = {
12410 (char *) "self",(char *) "text",(char *) "pt", NULL
12411 };
12412
12413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
12414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12416 {
12417 arg2 = wxString_in_helper(obj1);
12418 if (arg2 == NULL) SWIG_fail;
12419 temp2 = True;
12420 }
12421 {
12422 arg3 = &temp3;
12423 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12424 }
12425 {
12426 PyThreadState* __tstate = wxPyBeginAllowThreads();
12427 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
12428
12429 wxPyEndAllowThreads(__tstate);
12430 if (PyErr_Occurred()) SWIG_fail;
12431 }
12432 Py_INCREF(Py_None); resultobj = Py_None;
12433 {
12434 if (temp2)
12435 delete arg2;
12436 }
12437 return resultobj;
12438 fail:
12439 {
12440 if (temp2)
12441 delete arg2;
12442 }
12443 return NULL;
12444 }
12445
12446
12447 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12448 PyObject *resultobj;
12449 wxDC *arg1 = (wxDC *) 0 ;
12450 wxString *arg2 = 0 ;
12451 int arg3 ;
12452 int arg4 ;
12453 double arg5 ;
12454 bool temp2 = False ;
12455 PyObject * obj0 = 0 ;
12456 PyObject * obj1 = 0 ;
12457 PyObject * obj2 = 0 ;
12458 PyObject * obj3 = 0 ;
12459 PyObject * obj4 = 0 ;
12460 char *kwnames[] = {
12461 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
12462 };
12463
12464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12467 {
12468 arg2 = wxString_in_helper(obj1);
12469 if (arg2 == NULL) SWIG_fail;
12470 temp2 = True;
12471 }
12472 arg3 = (int) SWIG_AsInt(obj2);
12473 if (PyErr_Occurred()) SWIG_fail;
12474 arg4 = (int) SWIG_AsInt(obj3);
12475 if (PyErr_Occurred()) SWIG_fail;
12476 arg5 = (double) SWIG_AsDouble(obj4);
12477 if (PyErr_Occurred()) SWIG_fail;
12478 {
12479 PyThreadState* __tstate = wxPyBeginAllowThreads();
12480 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
12481
12482 wxPyEndAllowThreads(__tstate);
12483 if (PyErr_Occurred()) SWIG_fail;
12484 }
12485 Py_INCREF(Py_None); resultobj = Py_None;
12486 {
12487 if (temp2)
12488 delete arg2;
12489 }
12490 return resultobj;
12491 fail:
12492 {
12493 if (temp2)
12494 delete arg2;
12495 }
12496 return NULL;
12497 }
12498
12499
12500 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
12501 PyObject *resultobj;
12502 wxDC *arg1 = (wxDC *) 0 ;
12503 wxString *arg2 = 0 ;
12504 wxPoint *arg3 = 0 ;
12505 double arg4 ;
12506 bool temp2 = False ;
12507 wxPoint temp3 ;
12508 PyObject * obj0 = 0 ;
12509 PyObject * obj1 = 0 ;
12510 PyObject * obj2 = 0 ;
12511 PyObject * obj3 = 0 ;
12512 char *kwnames[] = {
12513 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
12514 };
12515
12516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12519 {
12520 arg2 = wxString_in_helper(obj1);
12521 if (arg2 == NULL) SWIG_fail;
12522 temp2 = True;
12523 }
12524 {
12525 arg3 = &temp3;
12526 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12527 }
12528 arg4 = (double) SWIG_AsDouble(obj3);
12529 if (PyErr_Occurred()) SWIG_fail;
12530 {
12531 PyThreadState* __tstate = wxPyBeginAllowThreads();
12532 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
12533
12534 wxPyEndAllowThreads(__tstate);
12535 if (PyErr_Occurred()) SWIG_fail;
12536 }
12537 Py_INCREF(Py_None); resultobj = Py_None;
12538 {
12539 if (temp2)
12540 delete arg2;
12541 }
12542 return resultobj;
12543 fail:
12544 {
12545 if (temp2)
12546 delete arg2;
12547 }
12548 return NULL;
12549 }
12550
12551
12552 static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12553 PyObject *resultobj;
12554 wxDC *arg1 = (wxDC *) 0 ;
12555 int arg2 ;
12556 int arg3 ;
12557 int arg4 ;
12558 int arg5 ;
12559 wxDC *arg6 = (wxDC *) 0 ;
12560 int arg7 ;
12561 int arg8 ;
12562 int arg9 = (int) wxCOPY ;
12563 bool arg10 = (bool) False ;
12564 int arg11 = (int) -1 ;
12565 int arg12 = (int) -1 ;
12566 bool result;
12567 PyObject * obj0 = 0 ;
12568 PyObject * obj1 = 0 ;
12569 PyObject * obj2 = 0 ;
12570 PyObject * obj3 = 0 ;
12571 PyObject * obj4 = 0 ;
12572 PyObject * obj5 = 0 ;
12573 PyObject * obj6 = 0 ;
12574 PyObject * obj7 = 0 ;
12575 PyObject * obj8 = 0 ;
12576 PyObject * obj9 = 0 ;
12577 PyObject * obj10 = 0 ;
12578 PyObject * obj11 = 0 ;
12579 char *kwnames[] = {
12580 (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
12581 };
12582
12583 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;
12584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12586 arg2 = (int) SWIG_AsInt(obj1);
12587 if (PyErr_Occurred()) SWIG_fail;
12588 arg3 = (int) SWIG_AsInt(obj2);
12589 if (PyErr_Occurred()) SWIG_fail;
12590 arg4 = (int) SWIG_AsInt(obj3);
12591 if (PyErr_Occurred()) SWIG_fail;
12592 arg5 = (int) SWIG_AsInt(obj4);
12593 if (PyErr_Occurred()) SWIG_fail;
12594 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
12595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12596 arg7 = (int) SWIG_AsInt(obj6);
12597 if (PyErr_Occurred()) SWIG_fail;
12598 arg8 = (int) SWIG_AsInt(obj7);
12599 if (PyErr_Occurred()) SWIG_fail;
12600 if (obj8) {
12601 arg9 = (int) SWIG_AsInt(obj8);
12602 if (PyErr_Occurred()) SWIG_fail;
12603 }
12604 if (obj9) {
12605 arg10 = (bool) SWIG_AsBool(obj9);
12606 if (PyErr_Occurred()) SWIG_fail;
12607 }
12608 if (obj10) {
12609 arg11 = (int) SWIG_AsInt(obj10);
12610 if (PyErr_Occurred()) SWIG_fail;
12611 }
12612 if (obj11) {
12613 arg12 = (int) SWIG_AsInt(obj11);
12614 if (PyErr_Occurred()) SWIG_fail;
12615 }
12616 {
12617 PyThreadState* __tstate = wxPyBeginAllowThreads();
12618 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12619
12620 wxPyEndAllowThreads(__tstate);
12621 if (PyErr_Occurred()) SWIG_fail;
12622 }
12623 {
12624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12625 }
12626 return resultobj;
12627 fail:
12628 return NULL;
12629 }
12630
12631
12632 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
12633 PyObject *resultobj;
12634 wxDC *arg1 = (wxDC *) 0 ;
12635 wxPoint *arg2 = 0 ;
12636 wxSize *arg3 = 0 ;
12637 wxDC *arg4 = (wxDC *) 0 ;
12638 wxPoint *arg5 = 0 ;
12639 int arg6 = (int) wxCOPY ;
12640 bool arg7 = (bool) False ;
12641 wxPoint const &arg8_defvalue = wxDefaultPosition ;
12642 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
12643 bool result;
12644 wxPoint temp2 ;
12645 wxSize temp3 ;
12646 wxPoint temp5 ;
12647 wxPoint temp8 ;
12648 PyObject * obj0 = 0 ;
12649 PyObject * obj1 = 0 ;
12650 PyObject * obj2 = 0 ;
12651 PyObject * obj3 = 0 ;
12652 PyObject * obj4 = 0 ;
12653 PyObject * obj5 = 0 ;
12654 PyObject * obj6 = 0 ;
12655 PyObject * obj7 = 0 ;
12656 char *kwnames[] = {
12657 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12658 };
12659
12660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12663 {
12664 arg2 = &temp2;
12665 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12666 }
12667 {
12668 arg3 = &temp3;
12669 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12670 }
12671 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
12672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12673 {
12674 arg5 = &temp5;
12675 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12676 }
12677 if (obj5) {
12678 arg6 = (int) SWIG_AsInt(obj5);
12679 if (PyErr_Occurred()) SWIG_fail;
12680 }
12681 if (obj6) {
12682 arg7 = (bool) SWIG_AsBool(obj6);
12683 if (PyErr_Occurred()) SWIG_fail;
12684 }
12685 if (obj7) {
12686 {
12687 arg8 = &temp8;
12688 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
12689 }
12690 }
12691 {
12692 PyThreadState* __tstate = wxPyBeginAllowThreads();
12693 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12694
12695 wxPyEndAllowThreads(__tstate);
12696 if (PyErr_Occurred()) SWIG_fail;
12697 }
12698 {
12699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12700 }
12701 return resultobj;
12702 fail:
12703 return NULL;
12704 }
12705
12706
12707 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12708 PyObject *resultobj;
12709 wxDC *arg1 = (wxDC *) 0 ;
12710 int arg2 ;
12711 wxPoint *arg3 = (wxPoint *) 0 ;
12712 int arg4 = (int) 0 ;
12713 int arg5 = (int) 0 ;
12714 PyObject * obj0 = 0 ;
12715 PyObject * obj1 = 0 ;
12716 PyObject * obj2 = 0 ;
12717 PyObject * obj3 = 0 ;
12718 char *kwnames[] = {
12719 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12720 };
12721
12722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12725 {
12726 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12727 if (arg3 == NULL) SWIG_fail;
12728 }
12729 if (obj2) {
12730 arg4 = (int) SWIG_AsInt(obj2);
12731 if (PyErr_Occurred()) SWIG_fail;
12732 }
12733 if (obj3) {
12734 arg5 = (int) SWIG_AsInt(obj3);
12735 if (PyErr_Occurred()) SWIG_fail;
12736 }
12737 {
12738 PyThreadState* __tstate = wxPyBeginAllowThreads();
12739 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12740
12741 wxPyEndAllowThreads(__tstate);
12742 if (PyErr_Occurred()) SWIG_fail;
12743 }
12744 Py_INCREF(Py_None); resultobj = Py_None;
12745 {
12746 if (arg3) delete [] arg3;
12747 }
12748 return resultobj;
12749 fail:
12750 {
12751 if (arg3) delete [] arg3;
12752 }
12753 return NULL;
12754 }
12755
12756
12757 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12758 PyObject *resultobj;
12759 wxDC *arg1 = (wxDC *) 0 ;
12760 int arg2 ;
12761 wxPoint *arg3 = (wxPoint *) 0 ;
12762 int arg4 = (int) 0 ;
12763 int arg5 = (int) 0 ;
12764 int arg6 = (int) wxODDEVEN_RULE ;
12765 PyObject * obj0 = 0 ;
12766 PyObject * obj1 = 0 ;
12767 PyObject * obj2 = 0 ;
12768 PyObject * obj3 = 0 ;
12769 PyObject * obj4 = 0 ;
12770 char *kwnames[] = {
12771 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12772 };
12773
12774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12777 {
12778 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12779 if (arg3 == NULL) SWIG_fail;
12780 }
12781 if (obj2) {
12782 arg4 = (int) SWIG_AsInt(obj2);
12783 if (PyErr_Occurred()) SWIG_fail;
12784 }
12785 if (obj3) {
12786 arg5 = (int) SWIG_AsInt(obj3);
12787 if (PyErr_Occurred()) SWIG_fail;
12788 }
12789 if (obj4) {
12790 arg6 = (int) SWIG_AsInt(obj4);
12791 if (PyErr_Occurred()) SWIG_fail;
12792 }
12793 {
12794 PyThreadState* __tstate = wxPyBeginAllowThreads();
12795 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12796
12797 wxPyEndAllowThreads(__tstate);
12798 if (PyErr_Occurred()) SWIG_fail;
12799 }
12800 Py_INCREF(Py_None); resultobj = Py_None;
12801 {
12802 if (arg3) delete [] arg3;
12803 }
12804 return resultobj;
12805 fail:
12806 {
12807 if (arg3) delete [] arg3;
12808 }
12809 return NULL;
12810 }
12811
12812
12813 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12814 PyObject *resultobj;
12815 wxDC *arg1 = (wxDC *) 0 ;
12816 wxString *arg2 = 0 ;
12817 wxRect *arg3 = 0 ;
12818 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12819 int arg5 = (int) -1 ;
12820 bool temp2 = False ;
12821 wxRect temp3 ;
12822 PyObject * obj0 = 0 ;
12823 PyObject * obj1 = 0 ;
12824 PyObject * obj2 = 0 ;
12825 PyObject * obj3 = 0 ;
12826 PyObject * obj4 = 0 ;
12827 char *kwnames[] = {
12828 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12829 };
12830
12831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12834 {
12835 arg2 = wxString_in_helper(obj1);
12836 if (arg2 == NULL) SWIG_fail;
12837 temp2 = True;
12838 }
12839 {
12840 arg3 = &temp3;
12841 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12842 }
12843 if (obj3) {
12844 arg4 = (int) SWIG_AsInt(obj3);
12845 if (PyErr_Occurred()) SWIG_fail;
12846 }
12847 if (obj4) {
12848 arg5 = (int) SWIG_AsInt(obj4);
12849 if (PyErr_Occurred()) SWIG_fail;
12850 }
12851 {
12852 PyThreadState* __tstate = wxPyBeginAllowThreads();
12853 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12854
12855 wxPyEndAllowThreads(__tstate);
12856 if (PyErr_Occurred()) SWIG_fail;
12857 }
12858 Py_INCREF(Py_None); resultobj = Py_None;
12859 {
12860 if (temp2)
12861 delete arg2;
12862 }
12863 return resultobj;
12864 fail:
12865 {
12866 if (temp2)
12867 delete arg2;
12868 }
12869 return NULL;
12870 }
12871
12872
12873 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12874 PyObject *resultobj;
12875 wxDC *arg1 = (wxDC *) 0 ;
12876 wxString *arg2 = 0 ;
12877 wxBitmap *arg3 = 0 ;
12878 wxRect *arg4 = 0 ;
12879 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12880 int arg6 = (int) -1 ;
12881 wxRect result;
12882 bool temp2 = False ;
12883 wxRect temp4 ;
12884 PyObject * obj0 = 0 ;
12885 PyObject * obj1 = 0 ;
12886 PyObject * obj2 = 0 ;
12887 PyObject * obj3 = 0 ;
12888 PyObject * obj4 = 0 ;
12889 PyObject * obj5 = 0 ;
12890 char *kwnames[] = {
12891 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12892 };
12893
12894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12897 {
12898 arg2 = wxString_in_helper(obj1);
12899 if (arg2 == NULL) SWIG_fail;
12900 temp2 = True;
12901 }
12902 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12903 SWIG_POINTER_EXCEPTION | 0)) == -1)
12904 SWIG_fail;
12905 if (arg3 == NULL) {
12906 PyErr_SetString(PyExc_TypeError,"null reference");
12907 SWIG_fail;
12908 }
12909 {
12910 arg4 = &temp4;
12911 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12912 }
12913 if (obj4) {
12914 arg5 = (int) SWIG_AsInt(obj4);
12915 if (PyErr_Occurred()) SWIG_fail;
12916 }
12917 if (obj5) {
12918 arg6 = (int) SWIG_AsInt(obj5);
12919 if (PyErr_Occurred()) SWIG_fail;
12920 }
12921 {
12922 PyThreadState* __tstate = wxPyBeginAllowThreads();
12923 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12924
12925 wxPyEndAllowThreads(__tstate);
12926 if (PyErr_Occurred()) SWIG_fail;
12927 }
12928 {
12929 wxRect * resultptr;
12930 resultptr = new wxRect((wxRect &) result);
12931 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12932 }
12933 {
12934 if (temp2)
12935 delete arg2;
12936 }
12937 return resultobj;
12938 fail:
12939 {
12940 if (temp2)
12941 delete arg2;
12942 }
12943 return NULL;
12944 }
12945
12946
12947 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12948 PyObject *resultobj;
12949 wxDC *arg1 = (wxDC *) 0 ;
12950 int arg2 ;
12951 wxPoint *arg3 = (wxPoint *) 0 ;
12952 PyObject * obj0 = 0 ;
12953 PyObject * obj1 = 0 ;
12954 char *kwnames[] = {
12955 (char *) "self",(char *) "points", NULL
12956 };
12957
12958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12961 {
12962 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12963 if (arg3 == NULL) SWIG_fail;
12964 }
12965 {
12966 PyThreadState* __tstate = wxPyBeginAllowThreads();
12967 (arg1)->DrawSpline(arg2,arg3);
12968
12969 wxPyEndAllowThreads(__tstate);
12970 if (PyErr_Occurred()) SWIG_fail;
12971 }
12972 Py_INCREF(Py_None); resultobj = Py_None;
12973 {
12974 if (arg3) delete [] arg3;
12975 }
12976 return resultobj;
12977 fail:
12978 {
12979 if (arg3) delete [] arg3;
12980 }
12981 return NULL;
12982 }
12983
12984
12985 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12986 PyObject *resultobj;
12987 wxDC *arg1 = (wxDC *) 0 ;
12988 PyObject * obj0 = 0 ;
12989 char *kwnames[] = {
12990 (char *) "self", NULL
12991 };
12992
12993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12996 {
12997 PyThreadState* __tstate = wxPyBeginAllowThreads();
12998 (arg1)->Clear();
12999
13000 wxPyEndAllowThreads(__tstate);
13001 if (PyErr_Occurred()) SWIG_fail;
13002 }
13003 Py_INCREF(Py_None); resultobj = Py_None;
13004 return resultobj;
13005 fail:
13006 return NULL;
13007 }
13008
13009
13010 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
13011 PyObject *resultobj;
13012 wxDC *arg1 = (wxDC *) 0 ;
13013 wxString *arg2 = 0 ;
13014 bool result;
13015 bool temp2 = False ;
13016 PyObject * obj0 = 0 ;
13017 PyObject * obj1 = 0 ;
13018 char *kwnames[] = {
13019 (char *) "self",(char *) "message", NULL
13020 };
13021
13022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
13023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13025 {
13026 arg2 = wxString_in_helper(obj1);
13027 if (arg2 == NULL) SWIG_fail;
13028 temp2 = True;
13029 }
13030 {
13031 PyThreadState* __tstate = wxPyBeginAllowThreads();
13032 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
13033
13034 wxPyEndAllowThreads(__tstate);
13035 if (PyErr_Occurred()) SWIG_fail;
13036 }
13037 {
13038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13039 }
13040 {
13041 if (temp2)
13042 delete arg2;
13043 }
13044 return resultobj;
13045 fail:
13046 {
13047 if (temp2)
13048 delete arg2;
13049 }
13050 return NULL;
13051 }
13052
13053
13054 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
13055 PyObject *resultobj;
13056 wxDC *arg1 = (wxDC *) 0 ;
13057 PyObject * obj0 = 0 ;
13058 char *kwnames[] = {
13059 (char *) "self", NULL
13060 };
13061
13062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
13063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13065 {
13066 PyThreadState* __tstate = wxPyBeginAllowThreads();
13067 (arg1)->EndDoc();
13068
13069 wxPyEndAllowThreads(__tstate);
13070 if (PyErr_Occurred()) SWIG_fail;
13071 }
13072 Py_INCREF(Py_None); resultobj = Py_None;
13073 return resultobj;
13074 fail:
13075 return NULL;
13076 }
13077
13078
13079 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13080 PyObject *resultobj;
13081 wxDC *arg1 = (wxDC *) 0 ;
13082 PyObject * obj0 = 0 ;
13083 char *kwnames[] = {
13084 (char *) "self", NULL
13085 };
13086
13087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
13088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13090 {
13091 PyThreadState* __tstate = wxPyBeginAllowThreads();
13092 (arg1)->StartPage();
13093
13094 wxPyEndAllowThreads(__tstate);
13095 if (PyErr_Occurred()) SWIG_fail;
13096 }
13097 Py_INCREF(Py_None); resultobj = Py_None;
13098 return resultobj;
13099 fail:
13100 return NULL;
13101 }
13102
13103
13104 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13105 PyObject *resultobj;
13106 wxDC *arg1 = (wxDC *) 0 ;
13107 PyObject * obj0 = 0 ;
13108 char *kwnames[] = {
13109 (char *) "self", NULL
13110 };
13111
13112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
13113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13115 {
13116 PyThreadState* __tstate = wxPyBeginAllowThreads();
13117 (arg1)->EndPage();
13118
13119 wxPyEndAllowThreads(__tstate);
13120 if (PyErr_Occurred()) SWIG_fail;
13121 }
13122 Py_INCREF(Py_None); resultobj = Py_None;
13123 return resultobj;
13124 fail:
13125 return NULL;
13126 }
13127
13128
13129 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13130 PyObject *resultobj;
13131 wxDC *arg1 = (wxDC *) 0 ;
13132 wxFont *arg2 = 0 ;
13133 PyObject * obj0 = 0 ;
13134 PyObject * obj1 = 0 ;
13135 char *kwnames[] = {
13136 (char *) "self",(char *) "font", NULL
13137 };
13138
13139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
13140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13142 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
13143 SWIG_POINTER_EXCEPTION | 0)) == -1)
13144 SWIG_fail;
13145 if (arg2 == NULL) {
13146 PyErr_SetString(PyExc_TypeError,"null reference");
13147 SWIG_fail;
13148 }
13149 {
13150 PyThreadState* __tstate = wxPyBeginAllowThreads();
13151 (arg1)->SetFont((wxFont const &)*arg2);
13152
13153 wxPyEndAllowThreads(__tstate);
13154 if (PyErr_Occurred()) SWIG_fail;
13155 }
13156 Py_INCREF(Py_None); resultobj = Py_None;
13157 return resultobj;
13158 fail:
13159 return NULL;
13160 }
13161
13162
13163 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13164 PyObject *resultobj;
13165 wxDC *arg1 = (wxDC *) 0 ;
13166 wxPen *arg2 = 0 ;
13167 PyObject * obj0 = 0 ;
13168 PyObject * obj1 = 0 ;
13169 char *kwnames[] = {
13170 (char *) "self",(char *) "pen", NULL
13171 };
13172
13173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
13174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13176 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
13177 SWIG_POINTER_EXCEPTION | 0)) == -1)
13178 SWIG_fail;
13179 if (arg2 == NULL) {
13180 PyErr_SetString(PyExc_TypeError,"null reference");
13181 SWIG_fail;
13182 }
13183 {
13184 PyThreadState* __tstate = wxPyBeginAllowThreads();
13185 (arg1)->SetPen((wxPen const &)*arg2);
13186
13187 wxPyEndAllowThreads(__tstate);
13188 if (PyErr_Occurred()) SWIG_fail;
13189 }
13190 Py_INCREF(Py_None); resultobj = Py_None;
13191 return resultobj;
13192 fail:
13193 return NULL;
13194 }
13195
13196
13197 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13198 PyObject *resultobj;
13199 wxDC *arg1 = (wxDC *) 0 ;
13200 wxBrush *arg2 = 0 ;
13201 PyObject * obj0 = 0 ;
13202 PyObject * obj1 = 0 ;
13203 char *kwnames[] = {
13204 (char *) "self",(char *) "brush", NULL
13205 };
13206
13207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
13208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13210 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13211 SWIG_POINTER_EXCEPTION | 0)) == -1)
13212 SWIG_fail;
13213 if (arg2 == NULL) {
13214 PyErr_SetString(PyExc_TypeError,"null reference");
13215 SWIG_fail;
13216 }
13217 {
13218 PyThreadState* __tstate = wxPyBeginAllowThreads();
13219 (arg1)->SetBrush((wxBrush const &)*arg2);
13220
13221 wxPyEndAllowThreads(__tstate);
13222 if (PyErr_Occurred()) SWIG_fail;
13223 }
13224 Py_INCREF(Py_None); resultobj = Py_None;
13225 return resultobj;
13226 fail:
13227 return NULL;
13228 }
13229
13230
13231 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13232 PyObject *resultobj;
13233 wxDC *arg1 = (wxDC *) 0 ;
13234 wxBrush *arg2 = 0 ;
13235 PyObject * obj0 = 0 ;
13236 PyObject * obj1 = 0 ;
13237 char *kwnames[] = {
13238 (char *) "self",(char *) "brush", NULL
13239 };
13240
13241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
13242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13244 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13245 SWIG_POINTER_EXCEPTION | 0)) == -1)
13246 SWIG_fail;
13247 if (arg2 == NULL) {
13248 PyErr_SetString(PyExc_TypeError,"null reference");
13249 SWIG_fail;
13250 }
13251 {
13252 PyThreadState* __tstate = wxPyBeginAllowThreads();
13253 (arg1)->SetBackground((wxBrush const &)*arg2);
13254
13255 wxPyEndAllowThreads(__tstate);
13256 if (PyErr_Occurred()) SWIG_fail;
13257 }
13258 Py_INCREF(Py_None); resultobj = Py_None;
13259 return resultobj;
13260 fail:
13261 return NULL;
13262 }
13263
13264
13265 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13266 PyObject *resultobj;
13267 wxDC *arg1 = (wxDC *) 0 ;
13268 int arg2 ;
13269 PyObject * obj0 = 0 ;
13270 PyObject * obj1 = 0 ;
13271 char *kwnames[] = {
13272 (char *) "self",(char *) "mode", NULL
13273 };
13274
13275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
13276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13278 arg2 = (int) SWIG_AsInt(obj1);
13279 if (PyErr_Occurred()) SWIG_fail;
13280 {
13281 PyThreadState* __tstate = wxPyBeginAllowThreads();
13282 (arg1)->SetBackgroundMode(arg2);
13283
13284 wxPyEndAllowThreads(__tstate);
13285 if (PyErr_Occurred()) SWIG_fail;
13286 }
13287 Py_INCREF(Py_None); resultobj = Py_None;
13288 return resultobj;
13289 fail:
13290 return NULL;
13291 }
13292
13293
13294 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
13295 PyObject *resultobj;
13296 wxDC *arg1 = (wxDC *) 0 ;
13297 wxPalette *arg2 = 0 ;
13298 PyObject * obj0 = 0 ;
13299 PyObject * obj1 = 0 ;
13300 char *kwnames[] = {
13301 (char *) "self",(char *) "palette", NULL
13302 };
13303
13304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
13305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13307 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
13308 SWIG_POINTER_EXCEPTION | 0)) == -1)
13309 SWIG_fail;
13310 if (arg2 == NULL) {
13311 PyErr_SetString(PyExc_TypeError,"null reference");
13312 SWIG_fail;
13313 }
13314 {
13315 PyThreadState* __tstate = wxPyBeginAllowThreads();
13316 (arg1)->SetPalette((wxPalette const &)*arg2);
13317
13318 wxPyEndAllowThreads(__tstate);
13319 if (PyErr_Occurred()) SWIG_fail;
13320 }
13321 Py_INCREF(Py_None); resultobj = Py_None;
13322 return resultobj;
13323 fail:
13324 return NULL;
13325 }
13326
13327
13328 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
13329 PyObject *resultobj;
13330 wxDC *arg1 = (wxDC *) 0 ;
13331 int arg2 ;
13332 int arg3 ;
13333 int arg4 ;
13334 int arg5 ;
13335 PyObject * obj0 = 0 ;
13336 PyObject * obj1 = 0 ;
13337 PyObject * obj2 = 0 ;
13338 PyObject * obj3 = 0 ;
13339 PyObject * obj4 = 0 ;
13340 char *kwnames[] = {
13341 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
13342 };
13343
13344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13347 arg2 = (int) SWIG_AsInt(obj1);
13348 if (PyErr_Occurred()) SWIG_fail;
13349 arg3 = (int) SWIG_AsInt(obj2);
13350 if (PyErr_Occurred()) SWIG_fail;
13351 arg4 = (int) SWIG_AsInt(obj3);
13352 if (PyErr_Occurred()) SWIG_fail;
13353 arg5 = (int) SWIG_AsInt(obj4);
13354 if (PyErr_Occurred()) SWIG_fail;
13355 {
13356 PyThreadState* __tstate = wxPyBeginAllowThreads();
13357 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
13358
13359 wxPyEndAllowThreads(__tstate);
13360 if (PyErr_Occurred()) SWIG_fail;
13361 }
13362 Py_INCREF(Py_None); resultobj = Py_None;
13363 return resultobj;
13364 fail:
13365 return NULL;
13366 }
13367
13368
13369 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
13370 PyObject *resultobj;
13371 wxDC *arg1 = (wxDC *) 0 ;
13372 wxPoint *arg2 = 0 ;
13373 wxSize *arg3 = 0 ;
13374 wxPoint temp2 ;
13375 wxSize temp3 ;
13376 PyObject * obj0 = 0 ;
13377 PyObject * obj1 = 0 ;
13378 PyObject * obj2 = 0 ;
13379 char *kwnames[] = {
13380 (char *) "self",(char *) "pt",(char *) "sz", NULL
13381 };
13382
13383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
13384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13386 {
13387 arg2 = &temp2;
13388 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13389 }
13390 {
13391 arg3 = &temp3;
13392 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13393 }
13394 {
13395 PyThreadState* __tstate = wxPyBeginAllowThreads();
13396 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
13397
13398 wxPyEndAllowThreads(__tstate);
13399 if (PyErr_Occurred()) SWIG_fail;
13400 }
13401 Py_INCREF(Py_None); resultobj = Py_None;
13402 return resultobj;
13403 fail:
13404 return NULL;
13405 }
13406
13407
13408 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
13409 PyObject *resultobj;
13410 wxDC *arg1 = (wxDC *) 0 ;
13411 wxRect *arg2 = 0 ;
13412 wxRect temp2 ;
13413 PyObject * obj0 = 0 ;
13414 PyObject * obj1 = 0 ;
13415 char *kwnames[] = {
13416 (char *) "self",(char *) "rect", NULL
13417 };
13418
13419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
13420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13422 {
13423 arg2 = &temp2;
13424 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
13425 }
13426 {
13427 PyThreadState* __tstate = wxPyBeginAllowThreads();
13428 (arg1)->SetClippingRegion((wxRect const &)*arg2);
13429
13430 wxPyEndAllowThreads(__tstate);
13431 if (PyErr_Occurred()) SWIG_fail;
13432 }
13433 Py_INCREF(Py_None); resultobj = Py_None;
13434 return resultobj;
13435 fail:
13436 return NULL;
13437 }
13438
13439
13440 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
13441 PyObject *resultobj;
13442 wxDC *arg1 = (wxDC *) 0 ;
13443 wxRegion *arg2 = 0 ;
13444 PyObject * obj0 = 0 ;
13445 PyObject * obj1 = 0 ;
13446 char *kwnames[] = {
13447 (char *) "self",(char *) "region", NULL
13448 };
13449
13450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
13451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13453 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
13454 SWIG_POINTER_EXCEPTION | 0)) == -1)
13455 SWIG_fail;
13456 if (arg2 == NULL) {
13457 PyErr_SetString(PyExc_TypeError,"null reference");
13458 SWIG_fail;
13459 }
13460 {
13461 PyThreadState* __tstate = wxPyBeginAllowThreads();
13462 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
13463
13464 wxPyEndAllowThreads(__tstate);
13465 if (PyErr_Occurred()) SWIG_fail;
13466 }
13467 Py_INCREF(Py_None); resultobj = Py_None;
13468 return resultobj;
13469 fail:
13470 return NULL;
13471 }
13472
13473
13474 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
13475 PyObject *resultobj;
13476 wxDC *arg1 = (wxDC *) 0 ;
13477 PyObject * obj0 = 0 ;
13478 char *kwnames[] = {
13479 (char *) "self", NULL
13480 };
13481
13482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
13483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13485 {
13486 PyThreadState* __tstate = wxPyBeginAllowThreads();
13487 (arg1)->DestroyClippingRegion();
13488
13489 wxPyEndAllowThreads(__tstate);
13490 if (PyErr_Occurred()) SWIG_fail;
13491 }
13492 Py_INCREF(Py_None); resultobj = Py_None;
13493 return resultobj;
13494 fail:
13495 return NULL;
13496 }
13497
13498
13499 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
13500 PyObject *resultobj;
13501 wxDC *arg1 = (wxDC *) 0 ;
13502 int *arg2 = (int *) 0 ;
13503 int *arg3 = (int *) 0 ;
13504 int *arg4 = (int *) 0 ;
13505 int *arg5 = (int *) 0 ;
13506 int temp2 ;
13507 int temp3 ;
13508 int temp4 ;
13509 int temp5 ;
13510 PyObject * obj0 = 0 ;
13511 char *kwnames[] = {
13512 (char *) "self", NULL
13513 };
13514
13515 arg2 = &temp2;
13516 arg3 = &temp3;
13517 arg4 = &temp4;
13518 arg5 = &temp5;
13519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
13520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13522 {
13523 PyThreadState* __tstate = wxPyBeginAllowThreads();
13524 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
13525
13526 wxPyEndAllowThreads(__tstate);
13527 if (PyErr_Occurred()) SWIG_fail;
13528 }
13529 Py_INCREF(Py_None); resultobj = Py_None;
13530 {
13531 PyObject *o = PyInt_FromLong((long) (*arg2));
13532 resultobj = t_output_helper(resultobj,o);
13533 }
13534 {
13535 PyObject *o = PyInt_FromLong((long) (*arg3));
13536 resultobj = t_output_helper(resultobj,o);
13537 }
13538 {
13539 PyObject *o = PyInt_FromLong((long) (*arg4));
13540 resultobj = t_output_helper(resultobj,o);
13541 }
13542 {
13543 PyObject *o = PyInt_FromLong((long) (*arg5));
13544 resultobj = t_output_helper(resultobj,o);
13545 }
13546 return resultobj;
13547 fail:
13548 return NULL;
13549 }
13550
13551
13552 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
13553 PyObject *resultobj;
13554 wxDC *arg1 = (wxDC *) 0 ;
13555 wxRect result;
13556 PyObject * obj0 = 0 ;
13557 char *kwnames[] = {
13558 (char *) "self", NULL
13559 };
13560
13561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
13562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13564 {
13565 PyThreadState* __tstate = wxPyBeginAllowThreads();
13566 result = wxDC_GetClippingRect(arg1);
13567
13568 wxPyEndAllowThreads(__tstate);
13569 if (PyErr_Occurred()) SWIG_fail;
13570 }
13571 {
13572 wxRect * resultptr;
13573 resultptr = new wxRect((wxRect &) result);
13574 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
13575 }
13576 return resultobj;
13577 fail:
13578 return NULL;
13579 }
13580
13581
13582 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
13583 PyObject *resultobj;
13584 wxDC *arg1 = (wxDC *) 0 ;
13585 int result;
13586 PyObject * obj0 = 0 ;
13587 char *kwnames[] = {
13588 (char *) "self", NULL
13589 };
13590
13591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
13592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13594 {
13595 PyThreadState* __tstate = wxPyBeginAllowThreads();
13596 result = (int)((wxDC const *)arg1)->GetCharHeight();
13597
13598 wxPyEndAllowThreads(__tstate);
13599 if (PyErr_Occurred()) SWIG_fail;
13600 }
13601 resultobj = SWIG_FromInt((int)result);
13602 return resultobj;
13603 fail:
13604 return NULL;
13605 }
13606
13607
13608 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
13609 PyObject *resultobj;
13610 wxDC *arg1 = (wxDC *) 0 ;
13611 int result;
13612 PyObject * obj0 = 0 ;
13613 char *kwnames[] = {
13614 (char *) "self", NULL
13615 };
13616
13617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
13618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13620 {
13621 PyThreadState* __tstate = wxPyBeginAllowThreads();
13622 result = (int)((wxDC const *)arg1)->GetCharWidth();
13623
13624 wxPyEndAllowThreads(__tstate);
13625 if (PyErr_Occurred()) SWIG_fail;
13626 }
13627 resultobj = SWIG_FromInt((int)result);
13628 return resultobj;
13629 fail:
13630 return NULL;
13631 }
13632
13633
13634 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13635 PyObject *resultobj;
13636 wxDC *arg1 = (wxDC *) 0 ;
13637 wxString *arg2 = 0 ;
13638 int *arg3 = (int *) 0 ;
13639 int *arg4 = (int *) 0 ;
13640 bool temp2 = False ;
13641 int temp3 ;
13642 int temp4 ;
13643 PyObject * obj0 = 0 ;
13644 PyObject * obj1 = 0 ;
13645 char *kwnames[] = {
13646 (char *) "self",(char *) "string", NULL
13647 };
13648
13649 arg3 = &temp3;
13650 arg4 = &temp4;
13651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
13652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13654 {
13655 arg2 = wxString_in_helper(obj1);
13656 if (arg2 == NULL) SWIG_fail;
13657 temp2 = True;
13658 }
13659 {
13660 PyThreadState* __tstate = wxPyBeginAllowThreads();
13661 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13662
13663 wxPyEndAllowThreads(__tstate);
13664 if (PyErr_Occurred()) SWIG_fail;
13665 }
13666 Py_INCREF(Py_None); resultobj = Py_None;
13667 {
13668 PyObject *o = PyInt_FromLong((long) (*arg3));
13669 resultobj = t_output_helper(resultobj,o);
13670 }
13671 {
13672 PyObject *o = PyInt_FromLong((long) (*arg4));
13673 resultobj = t_output_helper(resultobj,o);
13674 }
13675 {
13676 if (temp2)
13677 delete arg2;
13678 }
13679 return resultobj;
13680 fail:
13681 {
13682 if (temp2)
13683 delete arg2;
13684 }
13685 return NULL;
13686 }
13687
13688
13689 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13690 PyObject *resultobj;
13691 wxDC *arg1 = (wxDC *) 0 ;
13692 wxString *arg2 = 0 ;
13693 int *arg3 = (int *) 0 ;
13694 int *arg4 = (int *) 0 ;
13695 int *arg5 = (int *) 0 ;
13696 int *arg6 = (int *) 0 ;
13697 wxFont *arg7 = (wxFont *) NULL ;
13698 bool temp2 = False ;
13699 int temp3 ;
13700 int temp4 ;
13701 int temp5 ;
13702 int temp6 ;
13703 PyObject * obj0 = 0 ;
13704 PyObject * obj1 = 0 ;
13705 PyObject * obj2 = 0 ;
13706 char *kwnames[] = {
13707 (char *) "self",(char *) "string",(char *) "font", NULL
13708 };
13709
13710 arg3 = &temp3;
13711 arg4 = &temp4;
13712 arg5 = &temp5;
13713 arg6 = &temp6;
13714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13717 {
13718 arg2 = wxString_in_helper(obj1);
13719 if (arg2 == NULL) SWIG_fail;
13720 temp2 = True;
13721 }
13722 if (obj2) {
13723 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
13724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13725 }
13726 {
13727 PyThreadState* __tstate = wxPyBeginAllowThreads();
13728 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13729
13730 wxPyEndAllowThreads(__tstate);
13731 if (PyErr_Occurred()) SWIG_fail;
13732 }
13733 Py_INCREF(Py_None); resultobj = Py_None;
13734 {
13735 PyObject *o = PyInt_FromLong((long) (*arg3));
13736 resultobj = t_output_helper(resultobj,o);
13737 }
13738 {
13739 PyObject *o = PyInt_FromLong((long) (*arg4));
13740 resultobj = t_output_helper(resultobj,o);
13741 }
13742 {
13743 PyObject *o = PyInt_FromLong((long) (*arg5));
13744 resultobj = t_output_helper(resultobj,o);
13745 }
13746 {
13747 PyObject *o = PyInt_FromLong((long) (*arg6));
13748 resultobj = t_output_helper(resultobj,o);
13749 }
13750 {
13751 if (temp2)
13752 delete arg2;
13753 }
13754 return resultobj;
13755 fail:
13756 {
13757 if (temp2)
13758 delete arg2;
13759 }
13760 return NULL;
13761 }
13762
13763
13764 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13765 PyObject *resultobj;
13766 wxDC *arg1 = (wxDC *) 0 ;
13767 wxString *arg2 = 0 ;
13768 int *arg3 = (int *) 0 ;
13769 int *arg4 = (int *) 0 ;
13770 int *arg5 = (int *) 0 ;
13771 wxFont *arg6 = (wxFont *) NULL ;
13772 bool temp2 = False ;
13773 int temp3 ;
13774 int temp4 ;
13775 int temp5 ;
13776 PyObject * obj0 = 0 ;
13777 PyObject * obj1 = 0 ;
13778 PyObject * obj2 = 0 ;
13779 char *kwnames[] = {
13780 (char *) "self",(char *) "text",(char *) "font", NULL
13781 };
13782
13783 arg3 = &temp3;
13784 arg4 = &temp4;
13785 arg5 = &temp5;
13786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13789 {
13790 arg2 = wxString_in_helper(obj1);
13791 if (arg2 == NULL) SWIG_fail;
13792 temp2 = True;
13793 }
13794 if (obj2) {
13795 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13797 }
13798 {
13799 PyThreadState* __tstate = wxPyBeginAllowThreads();
13800 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13801
13802 wxPyEndAllowThreads(__tstate);
13803 if (PyErr_Occurred()) SWIG_fail;
13804 }
13805 Py_INCREF(Py_None); resultobj = Py_None;
13806 {
13807 PyObject *o = PyInt_FromLong((long) (*arg3));
13808 resultobj = t_output_helper(resultobj,o);
13809 }
13810 {
13811 PyObject *o = PyInt_FromLong((long) (*arg4));
13812 resultobj = t_output_helper(resultobj,o);
13813 }
13814 {
13815 PyObject *o = PyInt_FromLong((long) (*arg5));
13816 resultobj = t_output_helper(resultobj,o);
13817 }
13818 {
13819 if (temp2)
13820 delete arg2;
13821 }
13822 return resultobj;
13823 fail:
13824 {
13825 if (temp2)
13826 delete arg2;
13827 }
13828 return NULL;
13829 }
13830
13831
13832 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
13833 PyObject *resultobj;
13834 wxDC *arg1 = (wxDC *) 0 ;
13835 wxString *arg2 = 0 ;
13836 wxArrayInt result;
13837 bool temp2 = False ;
13838 PyObject * obj0 = 0 ;
13839 PyObject * obj1 = 0 ;
13840 char *kwnames[] = {
13841 (char *) "self",(char *) "text", NULL
13842 };
13843
13844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13847 {
13848 arg2 = wxString_in_helper(obj1);
13849 if (arg2 == NULL) SWIG_fail;
13850 temp2 = True;
13851 }
13852 {
13853 PyThreadState* __tstate = wxPyBeginAllowThreads();
13854 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13855
13856 wxPyEndAllowThreads(__tstate);
13857 if (PyErr_Occurred()) SWIG_fail;
13858 }
13859 {
13860 resultobj = PyList_New(0);
13861 size_t idx;
13862 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13863 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13864 PyList_Append(resultobj, val);
13865 Py_DECREF(val);
13866 }
13867 }
13868 {
13869 if (temp2)
13870 delete arg2;
13871 }
13872 return resultobj;
13873 fail:
13874 {
13875 if (temp2)
13876 delete arg2;
13877 }
13878 return NULL;
13879 }
13880
13881
13882 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13883 PyObject *resultobj;
13884 wxDC *arg1 = (wxDC *) 0 ;
13885 wxSize result;
13886 PyObject * obj0 = 0 ;
13887 char *kwnames[] = {
13888 (char *) "self", NULL
13889 };
13890
13891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13894 {
13895 PyThreadState* __tstate = wxPyBeginAllowThreads();
13896 result = (arg1)->GetSize();
13897
13898 wxPyEndAllowThreads(__tstate);
13899 if (PyErr_Occurred()) SWIG_fail;
13900 }
13901 {
13902 wxSize * resultptr;
13903 resultptr = new wxSize((wxSize &) result);
13904 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13905 }
13906 return resultobj;
13907 fail:
13908 return NULL;
13909 }
13910
13911
13912 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13913 PyObject *resultobj;
13914 wxDC *arg1 = (wxDC *) 0 ;
13915 int *arg2 = (int *) 0 ;
13916 int *arg3 = (int *) 0 ;
13917 int temp2 ;
13918 int temp3 ;
13919 PyObject * obj0 = 0 ;
13920 char *kwnames[] = {
13921 (char *) "self", NULL
13922 };
13923
13924 arg2 = &temp2;
13925 arg3 = &temp3;
13926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13929 {
13930 PyThreadState* __tstate = wxPyBeginAllowThreads();
13931 (arg1)->GetSize(arg2,arg3);
13932
13933 wxPyEndAllowThreads(__tstate);
13934 if (PyErr_Occurred()) SWIG_fail;
13935 }
13936 Py_INCREF(Py_None); resultobj = Py_None;
13937 {
13938 PyObject *o = PyInt_FromLong((long) (*arg2));
13939 resultobj = t_output_helper(resultobj,o);
13940 }
13941 {
13942 PyObject *o = PyInt_FromLong((long) (*arg3));
13943 resultobj = t_output_helper(resultobj,o);
13944 }
13945 return resultobj;
13946 fail:
13947 return NULL;
13948 }
13949
13950
13951 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13952 PyObject *resultobj;
13953 wxDC *arg1 = (wxDC *) 0 ;
13954 wxSize result;
13955 PyObject * obj0 = 0 ;
13956 char *kwnames[] = {
13957 (char *) "self", NULL
13958 };
13959
13960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13963 {
13964 PyThreadState* __tstate = wxPyBeginAllowThreads();
13965 result = ((wxDC const *)arg1)->GetSizeMM();
13966
13967 wxPyEndAllowThreads(__tstate);
13968 if (PyErr_Occurred()) SWIG_fail;
13969 }
13970 {
13971 wxSize * resultptr;
13972 resultptr = new wxSize((wxSize &) result);
13973 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13974 }
13975 return resultobj;
13976 fail:
13977 return NULL;
13978 }
13979
13980
13981 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13982 PyObject *resultobj;
13983 wxDC *arg1 = (wxDC *) 0 ;
13984 int *arg2 = (int *) 0 ;
13985 int *arg3 = (int *) 0 ;
13986 int temp2 ;
13987 int temp3 ;
13988 PyObject * obj0 = 0 ;
13989 char *kwnames[] = {
13990 (char *) "self", NULL
13991 };
13992
13993 arg2 = &temp2;
13994 arg3 = &temp3;
13995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13998 {
13999 PyThreadState* __tstate = wxPyBeginAllowThreads();
14000 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
14001
14002 wxPyEndAllowThreads(__tstate);
14003 if (PyErr_Occurred()) SWIG_fail;
14004 }
14005 Py_INCREF(Py_None); resultobj = Py_None;
14006 {
14007 PyObject *o = PyInt_FromLong((long) (*arg2));
14008 resultobj = t_output_helper(resultobj,o);
14009 }
14010 {
14011 PyObject *o = PyInt_FromLong((long) (*arg3));
14012 resultobj = t_output_helper(resultobj,o);
14013 }
14014 return resultobj;
14015 fail:
14016 return NULL;
14017 }
14018
14019
14020 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
14021 PyObject *resultobj;
14022 wxDC *arg1 = (wxDC *) 0 ;
14023 int arg2 ;
14024 int result;
14025 PyObject * obj0 = 0 ;
14026 PyObject * obj1 = 0 ;
14027 char *kwnames[] = {
14028 (char *) "self",(char *) "x", NULL
14029 };
14030
14031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
14032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14034 arg2 = (int) SWIG_AsInt(obj1);
14035 if (PyErr_Occurred()) SWIG_fail;
14036 {
14037 PyThreadState* __tstate = wxPyBeginAllowThreads();
14038 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
14039
14040 wxPyEndAllowThreads(__tstate);
14041 if (PyErr_Occurred()) SWIG_fail;
14042 }
14043 resultobj = SWIG_FromInt((int)result);
14044 return resultobj;
14045 fail:
14046 return NULL;
14047 }
14048
14049
14050 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
14051 PyObject *resultobj;
14052 wxDC *arg1 = (wxDC *) 0 ;
14053 int arg2 ;
14054 int result;
14055 PyObject * obj0 = 0 ;
14056 PyObject * obj1 = 0 ;
14057 char *kwnames[] = {
14058 (char *) "self",(char *) "y", NULL
14059 };
14060
14061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
14062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14064 arg2 = (int) SWIG_AsInt(obj1);
14065 if (PyErr_Occurred()) SWIG_fail;
14066 {
14067 PyThreadState* __tstate = wxPyBeginAllowThreads();
14068 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
14069
14070 wxPyEndAllowThreads(__tstate);
14071 if (PyErr_Occurred()) SWIG_fail;
14072 }
14073 resultobj = SWIG_FromInt((int)result);
14074 return resultobj;
14075 fail:
14076 return NULL;
14077 }
14078
14079
14080 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
14081 PyObject *resultobj;
14082 wxDC *arg1 = (wxDC *) 0 ;
14083 int arg2 ;
14084 int result;
14085 PyObject * obj0 = 0 ;
14086 PyObject * obj1 = 0 ;
14087 char *kwnames[] = {
14088 (char *) "self",(char *) "x", NULL
14089 };
14090
14091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
14092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14094 arg2 = (int) SWIG_AsInt(obj1);
14095 if (PyErr_Occurred()) SWIG_fail;
14096 {
14097 PyThreadState* __tstate = wxPyBeginAllowThreads();
14098 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
14099
14100 wxPyEndAllowThreads(__tstate);
14101 if (PyErr_Occurred()) SWIG_fail;
14102 }
14103 resultobj = SWIG_FromInt((int)result);
14104 return resultobj;
14105 fail:
14106 return NULL;
14107 }
14108
14109
14110 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
14111 PyObject *resultobj;
14112 wxDC *arg1 = (wxDC *) 0 ;
14113 int arg2 ;
14114 int result;
14115 PyObject * obj0 = 0 ;
14116 PyObject * obj1 = 0 ;
14117 char *kwnames[] = {
14118 (char *) "self",(char *) "y", NULL
14119 };
14120
14121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
14122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14124 arg2 = (int) SWIG_AsInt(obj1);
14125 if (PyErr_Occurred()) SWIG_fail;
14126 {
14127 PyThreadState* __tstate = wxPyBeginAllowThreads();
14128 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
14129
14130 wxPyEndAllowThreads(__tstate);
14131 if (PyErr_Occurred()) SWIG_fail;
14132 }
14133 resultobj = SWIG_FromInt((int)result);
14134 return resultobj;
14135 fail:
14136 return NULL;
14137 }
14138
14139
14140 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
14141 PyObject *resultobj;
14142 wxDC *arg1 = (wxDC *) 0 ;
14143 int arg2 ;
14144 int result;
14145 PyObject * obj0 = 0 ;
14146 PyObject * obj1 = 0 ;
14147 char *kwnames[] = {
14148 (char *) "self",(char *) "x", NULL
14149 };
14150
14151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
14152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14154 arg2 = (int) SWIG_AsInt(obj1);
14155 if (PyErr_Occurred()) SWIG_fail;
14156 {
14157 PyThreadState* __tstate = wxPyBeginAllowThreads();
14158 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
14159
14160 wxPyEndAllowThreads(__tstate);
14161 if (PyErr_Occurred()) SWIG_fail;
14162 }
14163 resultobj = SWIG_FromInt((int)result);
14164 return resultobj;
14165 fail:
14166 return NULL;
14167 }
14168
14169
14170 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
14171 PyObject *resultobj;
14172 wxDC *arg1 = (wxDC *) 0 ;
14173 int arg2 ;
14174 int result;
14175 PyObject * obj0 = 0 ;
14176 PyObject * obj1 = 0 ;
14177 char *kwnames[] = {
14178 (char *) "self",(char *) "y", NULL
14179 };
14180
14181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
14182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14184 arg2 = (int) SWIG_AsInt(obj1);
14185 if (PyErr_Occurred()) SWIG_fail;
14186 {
14187 PyThreadState* __tstate = wxPyBeginAllowThreads();
14188 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
14189
14190 wxPyEndAllowThreads(__tstate);
14191 if (PyErr_Occurred()) SWIG_fail;
14192 }
14193 resultobj = SWIG_FromInt((int)result);
14194 return resultobj;
14195 fail:
14196 return NULL;
14197 }
14198
14199
14200 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
14201 PyObject *resultobj;
14202 wxDC *arg1 = (wxDC *) 0 ;
14203 int arg2 ;
14204 int result;
14205 PyObject * obj0 = 0 ;
14206 PyObject * obj1 = 0 ;
14207 char *kwnames[] = {
14208 (char *) "self",(char *) "x", NULL
14209 };
14210
14211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
14212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14214 arg2 = (int) SWIG_AsInt(obj1);
14215 if (PyErr_Occurred()) SWIG_fail;
14216 {
14217 PyThreadState* __tstate = wxPyBeginAllowThreads();
14218 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
14219
14220 wxPyEndAllowThreads(__tstate);
14221 if (PyErr_Occurred()) SWIG_fail;
14222 }
14223 resultobj = SWIG_FromInt((int)result);
14224 return resultobj;
14225 fail:
14226 return NULL;
14227 }
14228
14229
14230 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
14231 PyObject *resultobj;
14232 wxDC *arg1 = (wxDC *) 0 ;
14233 int arg2 ;
14234 int result;
14235 PyObject * obj0 = 0 ;
14236 PyObject * obj1 = 0 ;
14237 char *kwnames[] = {
14238 (char *) "self",(char *) "y", NULL
14239 };
14240
14241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
14242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14244 arg2 = (int) SWIG_AsInt(obj1);
14245 if (PyErr_Occurred()) SWIG_fail;
14246 {
14247 PyThreadState* __tstate = wxPyBeginAllowThreads();
14248 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
14249
14250 wxPyEndAllowThreads(__tstate);
14251 if (PyErr_Occurred()) SWIG_fail;
14252 }
14253 resultobj = SWIG_FromInt((int)result);
14254 return resultobj;
14255 fail:
14256 return NULL;
14257 }
14258
14259
14260 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
14261 PyObject *resultobj;
14262 wxDC *arg1 = (wxDC *) 0 ;
14263 bool result;
14264 PyObject * obj0 = 0 ;
14265 char *kwnames[] = {
14266 (char *) "self", NULL
14267 };
14268
14269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
14270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14272 {
14273 PyThreadState* __tstate = wxPyBeginAllowThreads();
14274 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
14275
14276 wxPyEndAllowThreads(__tstate);
14277 if (PyErr_Occurred()) SWIG_fail;
14278 }
14279 {
14280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14281 }
14282 return resultobj;
14283 fail:
14284 return NULL;
14285 }
14286
14287
14288 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
14289 PyObject *resultobj;
14290 wxDC *arg1 = (wxDC *) 0 ;
14291 bool result;
14292 PyObject * obj0 = 0 ;
14293 char *kwnames[] = {
14294 (char *) "self", NULL
14295 };
14296
14297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
14298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14300 {
14301 PyThreadState* __tstate = wxPyBeginAllowThreads();
14302 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
14303
14304 wxPyEndAllowThreads(__tstate);
14305 if (PyErr_Occurred()) SWIG_fail;
14306 }
14307 {
14308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14309 }
14310 return resultobj;
14311 fail:
14312 return NULL;
14313 }
14314
14315
14316 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
14317 PyObject *resultobj;
14318 wxDC *arg1 = (wxDC *) 0 ;
14319 int result;
14320 PyObject * obj0 = 0 ;
14321 char *kwnames[] = {
14322 (char *) "self", NULL
14323 };
14324
14325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
14326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14328 {
14329 PyThreadState* __tstate = wxPyBeginAllowThreads();
14330 result = (int)((wxDC const *)arg1)->GetDepth();
14331
14332 wxPyEndAllowThreads(__tstate);
14333 if (PyErr_Occurred()) SWIG_fail;
14334 }
14335 resultobj = SWIG_FromInt((int)result);
14336 return resultobj;
14337 fail:
14338 return NULL;
14339 }
14340
14341
14342 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
14343 PyObject *resultobj;
14344 wxDC *arg1 = (wxDC *) 0 ;
14345 wxSize result;
14346 PyObject * obj0 = 0 ;
14347 char *kwnames[] = {
14348 (char *) "self", NULL
14349 };
14350
14351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
14352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14354 {
14355 PyThreadState* __tstate = wxPyBeginAllowThreads();
14356 result = ((wxDC const *)arg1)->GetPPI();
14357
14358 wxPyEndAllowThreads(__tstate);
14359 if (PyErr_Occurred()) SWIG_fail;
14360 }
14361 {
14362 wxSize * resultptr;
14363 resultptr = new wxSize((wxSize &) result);
14364 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14365 }
14366 return resultobj;
14367 fail:
14368 return NULL;
14369 }
14370
14371
14372 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
14373 PyObject *resultobj;
14374 wxDC *arg1 = (wxDC *) 0 ;
14375 bool result;
14376 PyObject * obj0 = 0 ;
14377 char *kwnames[] = {
14378 (char *) "self", NULL
14379 };
14380
14381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
14382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14384 {
14385 PyThreadState* __tstate = wxPyBeginAllowThreads();
14386 result = (bool)((wxDC const *)arg1)->Ok();
14387
14388 wxPyEndAllowThreads(__tstate);
14389 if (PyErr_Occurred()) SWIG_fail;
14390 }
14391 {
14392 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14393 }
14394 return resultobj;
14395 fail:
14396 return NULL;
14397 }
14398
14399
14400 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14401 PyObject *resultobj;
14402 wxDC *arg1 = (wxDC *) 0 ;
14403 int result;
14404 PyObject * obj0 = 0 ;
14405 char *kwnames[] = {
14406 (char *) "self", NULL
14407 };
14408
14409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
14410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14412 {
14413 PyThreadState* __tstate = wxPyBeginAllowThreads();
14414 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
14415
14416 wxPyEndAllowThreads(__tstate);
14417 if (PyErr_Occurred()) SWIG_fail;
14418 }
14419 resultobj = SWIG_FromInt((int)result);
14420 return resultobj;
14421 fail:
14422 return NULL;
14423 }
14424
14425
14426 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14427 PyObject *resultobj;
14428 wxDC *arg1 = (wxDC *) 0 ;
14429 wxBrush *result;
14430 PyObject * obj0 = 0 ;
14431 char *kwnames[] = {
14432 (char *) "self", NULL
14433 };
14434
14435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
14436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14438 {
14439 PyThreadState* __tstate = wxPyBeginAllowThreads();
14440 {
14441 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
14442 result = (wxBrush *) &_result_ref;
14443 }
14444
14445 wxPyEndAllowThreads(__tstate);
14446 if (PyErr_Occurred()) SWIG_fail;
14447 }
14448 {
14449 wxBrush* resultptr = new wxBrush(*result);
14450 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14451 }
14452 return resultobj;
14453 fail:
14454 return NULL;
14455 }
14456
14457
14458 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14459 PyObject *resultobj;
14460 wxDC *arg1 = (wxDC *) 0 ;
14461 wxBrush *result;
14462 PyObject * obj0 = 0 ;
14463 char *kwnames[] = {
14464 (char *) "self", NULL
14465 };
14466
14467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
14468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14470 {
14471 PyThreadState* __tstate = wxPyBeginAllowThreads();
14472 {
14473 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
14474 result = (wxBrush *) &_result_ref;
14475 }
14476
14477 wxPyEndAllowThreads(__tstate);
14478 if (PyErr_Occurred()) SWIG_fail;
14479 }
14480 {
14481 wxBrush* resultptr = new wxBrush(*result);
14482 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14483 }
14484 return resultobj;
14485 fail:
14486 return NULL;
14487 }
14488
14489
14490 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14491 PyObject *resultobj;
14492 wxDC *arg1 = (wxDC *) 0 ;
14493 wxFont *result;
14494 PyObject * obj0 = 0 ;
14495 char *kwnames[] = {
14496 (char *) "self", NULL
14497 };
14498
14499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
14500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14502 {
14503 PyThreadState* __tstate = wxPyBeginAllowThreads();
14504 {
14505 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
14506 result = (wxFont *) &_result_ref;
14507 }
14508
14509 wxPyEndAllowThreads(__tstate);
14510 if (PyErr_Occurred()) SWIG_fail;
14511 }
14512 {
14513 wxFont* resultptr = new wxFont(*result);
14514 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
14515 }
14516 return resultobj;
14517 fail:
14518 return NULL;
14519 }
14520
14521
14522 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
14523 PyObject *resultobj;
14524 wxDC *arg1 = (wxDC *) 0 ;
14525 wxPen *result;
14526 PyObject * obj0 = 0 ;
14527 char *kwnames[] = {
14528 (char *) "self", NULL
14529 };
14530
14531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
14532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14534 {
14535 PyThreadState* __tstate = wxPyBeginAllowThreads();
14536 {
14537 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
14538 result = (wxPen *) &_result_ref;
14539 }
14540
14541 wxPyEndAllowThreads(__tstate);
14542 if (PyErr_Occurred()) SWIG_fail;
14543 }
14544 {
14545 wxPen* resultptr = new wxPen(*result);
14546 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
14547 }
14548 return resultobj;
14549 fail:
14550 return NULL;
14551 }
14552
14553
14554 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14555 PyObject *resultobj;
14556 wxDC *arg1 = (wxDC *) 0 ;
14557 wxColour *result;
14558 PyObject * obj0 = 0 ;
14559 char *kwnames[] = {
14560 (char *) "self", NULL
14561 };
14562
14563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
14564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14566 {
14567 PyThreadState* __tstate = wxPyBeginAllowThreads();
14568 {
14569 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
14570 result = (wxColour *) &_result_ref;
14571 }
14572
14573 wxPyEndAllowThreads(__tstate);
14574 if (PyErr_Occurred()) SWIG_fail;
14575 }
14576 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14577 return resultobj;
14578 fail:
14579 return NULL;
14580 }
14581
14582
14583 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14584 PyObject *resultobj;
14585 wxDC *arg1 = (wxDC *) 0 ;
14586 wxColour *result;
14587 PyObject * obj0 = 0 ;
14588 char *kwnames[] = {
14589 (char *) "self", NULL
14590 };
14591
14592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
14593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14595 {
14596 PyThreadState* __tstate = wxPyBeginAllowThreads();
14597 {
14598 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
14599 result = (wxColour *) &_result_ref;
14600 }
14601
14602 wxPyEndAllowThreads(__tstate);
14603 if (PyErr_Occurred()) SWIG_fail;
14604 }
14605 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14606 return resultobj;
14607 fail:
14608 return NULL;
14609 }
14610
14611
14612 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14613 PyObject *resultobj;
14614 wxDC *arg1 = (wxDC *) 0 ;
14615 wxColour *arg2 = 0 ;
14616 wxColour temp2 ;
14617 PyObject * obj0 = 0 ;
14618 PyObject * obj1 = 0 ;
14619 char *kwnames[] = {
14620 (char *) "self",(char *) "colour", NULL
14621 };
14622
14623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
14624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14626 {
14627 arg2 = &temp2;
14628 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14629 }
14630 {
14631 PyThreadState* __tstate = wxPyBeginAllowThreads();
14632 (arg1)->SetTextForeground((wxColour const &)*arg2);
14633
14634 wxPyEndAllowThreads(__tstate);
14635 if (PyErr_Occurred()) SWIG_fail;
14636 }
14637 Py_INCREF(Py_None); resultobj = Py_None;
14638 return resultobj;
14639 fail:
14640 return NULL;
14641 }
14642
14643
14644 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14645 PyObject *resultobj;
14646 wxDC *arg1 = (wxDC *) 0 ;
14647 wxColour *arg2 = 0 ;
14648 wxColour temp2 ;
14649 PyObject * obj0 = 0 ;
14650 PyObject * obj1 = 0 ;
14651 char *kwnames[] = {
14652 (char *) "self",(char *) "colour", NULL
14653 };
14654
14655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
14656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14658 {
14659 arg2 = &temp2;
14660 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14661 }
14662 {
14663 PyThreadState* __tstate = wxPyBeginAllowThreads();
14664 (arg1)->SetTextBackground((wxColour const &)*arg2);
14665
14666 wxPyEndAllowThreads(__tstate);
14667 if (PyErr_Occurred()) SWIG_fail;
14668 }
14669 Py_INCREF(Py_None); resultobj = Py_None;
14670 return resultobj;
14671 fail:
14672 return NULL;
14673 }
14674
14675
14676 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14677 PyObject *resultobj;
14678 wxDC *arg1 = (wxDC *) 0 ;
14679 int result;
14680 PyObject * obj0 = 0 ;
14681 char *kwnames[] = {
14682 (char *) "self", NULL
14683 };
14684
14685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
14686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14688 {
14689 PyThreadState* __tstate = wxPyBeginAllowThreads();
14690 result = (int)((wxDC const *)arg1)->GetMapMode();
14691
14692 wxPyEndAllowThreads(__tstate);
14693 if (PyErr_Occurred()) SWIG_fail;
14694 }
14695 resultobj = SWIG_FromInt((int)result);
14696 return resultobj;
14697 fail:
14698 return NULL;
14699 }
14700
14701
14702 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14703 PyObject *resultobj;
14704 wxDC *arg1 = (wxDC *) 0 ;
14705 int arg2 ;
14706 PyObject * obj0 = 0 ;
14707 PyObject * obj1 = 0 ;
14708 char *kwnames[] = {
14709 (char *) "self",(char *) "mode", NULL
14710 };
14711
14712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
14713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14715 arg2 = (int) SWIG_AsInt(obj1);
14716 if (PyErr_Occurred()) SWIG_fail;
14717 {
14718 PyThreadState* __tstate = wxPyBeginAllowThreads();
14719 (arg1)->SetMapMode(arg2);
14720
14721 wxPyEndAllowThreads(__tstate);
14722 if (PyErr_Occurred()) SWIG_fail;
14723 }
14724 Py_INCREF(Py_None); resultobj = Py_None;
14725 return resultobj;
14726 fail:
14727 return NULL;
14728 }
14729
14730
14731 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14732 PyObject *resultobj;
14733 wxDC *arg1 = (wxDC *) 0 ;
14734 double *arg2 = (double *) 0 ;
14735 double *arg3 = (double *) 0 ;
14736 double temp2 ;
14737 double temp3 ;
14738 PyObject * obj0 = 0 ;
14739 char *kwnames[] = {
14740 (char *) "self", NULL
14741 };
14742
14743 arg2 = &temp2;
14744 arg3 = &temp3;
14745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14748 {
14749 PyThreadState* __tstate = wxPyBeginAllowThreads();
14750 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14751
14752 wxPyEndAllowThreads(__tstate);
14753 if (PyErr_Occurred()) SWIG_fail;
14754 }
14755 Py_INCREF(Py_None); resultobj = Py_None;
14756 {
14757 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14758 resultobj = t_output_helper(resultobj,o);
14759 }
14760 {
14761 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14762 resultobj = t_output_helper(resultobj,o);
14763 }
14764 return resultobj;
14765 fail:
14766 return NULL;
14767 }
14768
14769
14770 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14771 PyObject *resultobj;
14772 wxDC *arg1 = (wxDC *) 0 ;
14773 double arg2 ;
14774 double arg3 ;
14775 PyObject * obj0 = 0 ;
14776 PyObject * obj1 = 0 ;
14777 PyObject * obj2 = 0 ;
14778 char *kwnames[] = {
14779 (char *) "self",(char *) "x",(char *) "y", NULL
14780 };
14781
14782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14785 arg2 = (double) SWIG_AsDouble(obj1);
14786 if (PyErr_Occurred()) SWIG_fail;
14787 arg3 = (double) SWIG_AsDouble(obj2);
14788 if (PyErr_Occurred()) SWIG_fail;
14789 {
14790 PyThreadState* __tstate = wxPyBeginAllowThreads();
14791 (arg1)->SetUserScale(arg2,arg3);
14792
14793 wxPyEndAllowThreads(__tstate);
14794 if (PyErr_Occurred()) SWIG_fail;
14795 }
14796 Py_INCREF(Py_None); resultobj = Py_None;
14797 return resultobj;
14798 fail:
14799 return NULL;
14800 }
14801
14802
14803 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14804 PyObject *resultobj;
14805 wxDC *arg1 = (wxDC *) 0 ;
14806 double *arg2 = (double *) 0 ;
14807 double *arg3 = (double *) 0 ;
14808 double temp2 ;
14809 double temp3 ;
14810 PyObject * obj0 = 0 ;
14811 char *kwnames[] = {
14812 (char *) "self", NULL
14813 };
14814
14815 arg2 = &temp2;
14816 arg3 = &temp3;
14817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14820 {
14821 PyThreadState* __tstate = wxPyBeginAllowThreads();
14822 (arg1)->GetLogicalScale(arg2,arg3);
14823
14824 wxPyEndAllowThreads(__tstate);
14825 if (PyErr_Occurred()) SWIG_fail;
14826 }
14827 Py_INCREF(Py_None); resultobj = Py_None;
14828 {
14829 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14830 resultobj = t_output_helper(resultobj,o);
14831 }
14832 {
14833 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14834 resultobj = t_output_helper(resultobj,o);
14835 }
14836 return resultobj;
14837 fail:
14838 return NULL;
14839 }
14840
14841
14842 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14843 PyObject *resultobj;
14844 wxDC *arg1 = (wxDC *) 0 ;
14845 double arg2 ;
14846 double arg3 ;
14847 PyObject * obj0 = 0 ;
14848 PyObject * obj1 = 0 ;
14849 PyObject * obj2 = 0 ;
14850 char *kwnames[] = {
14851 (char *) "self",(char *) "x",(char *) "y", NULL
14852 };
14853
14854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14857 arg2 = (double) SWIG_AsDouble(obj1);
14858 if (PyErr_Occurred()) SWIG_fail;
14859 arg3 = (double) SWIG_AsDouble(obj2);
14860 if (PyErr_Occurred()) SWIG_fail;
14861 {
14862 PyThreadState* __tstate = wxPyBeginAllowThreads();
14863 (arg1)->SetLogicalScale(arg2,arg3);
14864
14865 wxPyEndAllowThreads(__tstate);
14866 if (PyErr_Occurred()) SWIG_fail;
14867 }
14868 Py_INCREF(Py_None); resultobj = Py_None;
14869 return resultobj;
14870 fail:
14871 return NULL;
14872 }
14873
14874
14875 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14876 PyObject *resultobj;
14877 wxDC *arg1 = (wxDC *) 0 ;
14878 wxPoint result;
14879 PyObject * obj0 = 0 ;
14880 char *kwnames[] = {
14881 (char *) "self", NULL
14882 };
14883
14884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14887 {
14888 PyThreadState* __tstate = wxPyBeginAllowThreads();
14889 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14890
14891 wxPyEndAllowThreads(__tstate);
14892 if (PyErr_Occurred()) SWIG_fail;
14893 }
14894 {
14895 wxPoint * resultptr;
14896 resultptr = new wxPoint((wxPoint &) result);
14897 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14898 }
14899 return resultobj;
14900 fail:
14901 return NULL;
14902 }
14903
14904
14905 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14906 PyObject *resultobj;
14907 wxDC *arg1 = (wxDC *) 0 ;
14908 int *arg2 = (int *) 0 ;
14909 int *arg3 = (int *) 0 ;
14910 int temp2 ;
14911 int temp3 ;
14912 PyObject * obj0 = 0 ;
14913 char *kwnames[] = {
14914 (char *) "self", NULL
14915 };
14916
14917 arg2 = &temp2;
14918 arg3 = &temp3;
14919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14922 {
14923 PyThreadState* __tstate = wxPyBeginAllowThreads();
14924 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14925
14926 wxPyEndAllowThreads(__tstate);
14927 if (PyErr_Occurred()) SWIG_fail;
14928 }
14929 Py_INCREF(Py_None); resultobj = Py_None;
14930 {
14931 PyObject *o = PyInt_FromLong((long) (*arg2));
14932 resultobj = t_output_helper(resultobj,o);
14933 }
14934 {
14935 PyObject *o = PyInt_FromLong((long) (*arg3));
14936 resultobj = t_output_helper(resultobj,o);
14937 }
14938 return resultobj;
14939 fail:
14940 return NULL;
14941 }
14942
14943
14944 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14945 PyObject *resultobj;
14946 wxDC *arg1 = (wxDC *) 0 ;
14947 int arg2 ;
14948 int arg3 ;
14949 PyObject * obj0 = 0 ;
14950 PyObject * obj1 = 0 ;
14951 PyObject * obj2 = 0 ;
14952 char *kwnames[] = {
14953 (char *) "self",(char *) "x",(char *) "y", NULL
14954 };
14955
14956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14959 arg2 = (int) SWIG_AsInt(obj1);
14960 if (PyErr_Occurred()) SWIG_fail;
14961 arg3 = (int) SWIG_AsInt(obj2);
14962 if (PyErr_Occurred()) SWIG_fail;
14963 {
14964 PyThreadState* __tstate = wxPyBeginAllowThreads();
14965 (arg1)->SetLogicalOrigin(arg2,arg3);
14966
14967 wxPyEndAllowThreads(__tstate);
14968 if (PyErr_Occurred()) SWIG_fail;
14969 }
14970 Py_INCREF(Py_None); resultobj = Py_None;
14971 return resultobj;
14972 fail:
14973 return NULL;
14974 }
14975
14976
14977 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14978 PyObject *resultobj;
14979 wxDC *arg1 = (wxDC *) 0 ;
14980 wxPoint result;
14981 PyObject * obj0 = 0 ;
14982 char *kwnames[] = {
14983 (char *) "self", NULL
14984 };
14985
14986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14989 {
14990 PyThreadState* __tstate = wxPyBeginAllowThreads();
14991 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14992
14993 wxPyEndAllowThreads(__tstate);
14994 if (PyErr_Occurred()) SWIG_fail;
14995 }
14996 {
14997 wxPoint * resultptr;
14998 resultptr = new wxPoint((wxPoint &) result);
14999 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
15000 }
15001 return resultobj;
15002 fail:
15003 return NULL;
15004 }
15005
15006
15007 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
15008 PyObject *resultobj;
15009 wxDC *arg1 = (wxDC *) 0 ;
15010 int *arg2 = (int *) 0 ;
15011 int *arg3 = (int *) 0 ;
15012 int temp2 ;
15013 int temp3 ;
15014 PyObject * obj0 = 0 ;
15015 char *kwnames[] = {
15016 (char *) "self", NULL
15017 };
15018
15019 arg2 = &temp2;
15020 arg3 = &temp3;
15021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
15022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15024 {
15025 PyThreadState* __tstate = wxPyBeginAllowThreads();
15026 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
15027
15028 wxPyEndAllowThreads(__tstate);
15029 if (PyErr_Occurred()) SWIG_fail;
15030 }
15031 Py_INCREF(Py_None); resultobj = Py_None;
15032 {
15033 PyObject *o = PyInt_FromLong((long) (*arg2));
15034 resultobj = t_output_helper(resultobj,o);
15035 }
15036 {
15037 PyObject *o = PyInt_FromLong((long) (*arg3));
15038 resultobj = t_output_helper(resultobj,o);
15039 }
15040 return resultobj;
15041 fail:
15042 return NULL;
15043 }
15044
15045
15046 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
15047 PyObject *resultobj;
15048 wxDC *arg1 = (wxDC *) 0 ;
15049 int arg2 ;
15050 int arg3 ;
15051 PyObject * obj0 = 0 ;
15052 PyObject * obj1 = 0 ;
15053 PyObject * obj2 = 0 ;
15054 char *kwnames[] = {
15055 (char *) "self",(char *) "x",(char *) "y", NULL
15056 };
15057
15058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
15059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15061 arg2 = (int) SWIG_AsInt(obj1);
15062 if (PyErr_Occurred()) SWIG_fail;
15063 arg3 = (int) SWIG_AsInt(obj2);
15064 if (PyErr_Occurred()) SWIG_fail;
15065 {
15066 PyThreadState* __tstate = wxPyBeginAllowThreads();
15067 (arg1)->SetDeviceOrigin(arg2,arg3);
15068
15069 wxPyEndAllowThreads(__tstate);
15070 if (PyErr_Occurred()) SWIG_fail;
15071 }
15072 Py_INCREF(Py_None); resultobj = Py_None;
15073 return resultobj;
15074 fail:
15075 return NULL;
15076 }
15077
15078
15079 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
15080 PyObject *resultobj;
15081 wxDC *arg1 = (wxDC *) 0 ;
15082 bool arg2 ;
15083 bool arg3 ;
15084 PyObject * obj0 = 0 ;
15085 PyObject * obj1 = 0 ;
15086 PyObject * obj2 = 0 ;
15087 char *kwnames[] = {
15088 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
15089 };
15090
15091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
15092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15094 arg2 = (bool) SWIG_AsBool(obj1);
15095 if (PyErr_Occurred()) SWIG_fail;
15096 arg3 = (bool) SWIG_AsBool(obj2);
15097 if (PyErr_Occurred()) SWIG_fail;
15098 {
15099 PyThreadState* __tstate = wxPyBeginAllowThreads();
15100 (arg1)->SetAxisOrientation(arg2,arg3);
15101
15102 wxPyEndAllowThreads(__tstate);
15103 if (PyErr_Occurred()) SWIG_fail;
15104 }
15105 Py_INCREF(Py_None); resultobj = Py_None;
15106 return resultobj;
15107 fail:
15108 return NULL;
15109 }
15110
15111
15112 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
15113 PyObject *resultobj;
15114 wxDC *arg1 = (wxDC *) 0 ;
15115 int result;
15116 PyObject * obj0 = 0 ;
15117 char *kwnames[] = {
15118 (char *) "self", NULL
15119 };
15120
15121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
15122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15124 {
15125 PyThreadState* __tstate = wxPyBeginAllowThreads();
15126 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
15127
15128 wxPyEndAllowThreads(__tstate);
15129 if (PyErr_Occurred()) SWIG_fail;
15130 }
15131 resultobj = SWIG_FromInt((int)result);
15132 return resultobj;
15133 fail:
15134 return NULL;
15135 }
15136
15137
15138 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
15139 PyObject *resultobj;
15140 wxDC *arg1 = (wxDC *) 0 ;
15141 int arg2 ;
15142 PyObject * obj0 = 0 ;
15143 PyObject * obj1 = 0 ;
15144 char *kwnames[] = {
15145 (char *) "self",(char *) "function", NULL
15146 };
15147
15148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
15149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15151 arg2 = (int) SWIG_AsInt(obj1);
15152 if (PyErr_Occurred()) SWIG_fail;
15153 {
15154 PyThreadState* __tstate = wxPyBeginAllowThreads();
15155 (arg1)->SetLogicalFunction(arg2);
15156
15157 wxPyEndAllowThreads(__tstate);
15158 if (PyErr_Occurred()) SWIG_fail;
15159 }
15160 Py_INCREF(Py_None); resultobj = Py_None;
15161 return resultobj;
15162 fail:
15163 return NULL;
15164 }
15165
15166
15167 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
15168 PyObject *resultobj;
15169 wxDC *arg1 = (wxDC *) 0 ;
15170 bool arg2 ;
15171 PyObject * obj0 = 0 ;
15172 PyObject * obj1 = 0 ;
15173 char *kwnames[] = {
15174 (char *) "self",(char *) "opt", NULL
15175 };
15176
15177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
15178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15180 arg2 = (bool) SWIG_AsBool(obj1);
15181 if (PyErr_Occurred()) SWIG_fail;
15182 {
15183 PyThreadState* __tstate = wxPyBeginAllowThreads();
15184 (arg1)->SetOptimization(arg2);
15185
15186 wxPyEndAllowThreads(__tstate);
15187 if (PyErr_Occurred()) SWIG_fail;
15188 }
15189 Py_INCREF(Py_None); resultobj = Py_None;
15190 return resultobj;
15191 fail:
15192 return NULL;
15193 }
15194
15195
15196 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
15197 PyObject *resultobj;
15198 wxDC *arg1 = (wxDC *) 0 ;
15199 bool result;
15200 PyObject * obj0 = 0 ;
15201 char *kwnames[] = {
15202 (char *) "self", NULL
15203 };
15204
15205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
15206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15208 {
15209 PyThreadState* __tstate = wxPyBeginAllowThreads();
15210 result = (bool)(arg1)->GetOptimization();
15211
15212 wxPyEndAllowThreads(__tstate);
15213 if (PyErr_Occurred()) SWIG_fail;
15214 }
15215 {
15216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15217 }
15218 return resultobj;
15219 fail:
15220 return NULL;
15221 }
15222
15223
15224 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15225 PyObject *resultobj;
15226 wxDC *arg1 = (wxDC *) 0 ;
15227 int arg2 ;
15228 int arg3 ;
15229 PyObject * obj0 = 0 ;
15230 PyObject * obj1 = 0 ;
15231 PyObject * obj2 = 0 ;
15232 char *kwnames[] = {
15233 (char *) "self",(char *) "x",(char *) "y", NULL
15234 };
15235
15236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
15237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15239 arg2 = (int) SWIG_AsInt(obj1);
15240 if (PyErr_Occurred()) SWIG_fail;
15241 arg3 = (int) SWIG_AsInt(obj2);
15242 if (PyErr_Occurred()) SWIG_fail;
15243 {
15244 PyThreadState* __tstate = wxPyBeginAllowThreads();
15245 (arg1)->CalcBoundingBox(arg2,arg3);
15246
15247 wxPyEndAllowThreads(__tstate);
15248 if (PyErr_Occurred()) SWIG_fail;
15249 }
15250 Py_INCREF(Py_None); resultobj = Py_None;
15251 return resultobj;
15252 fail:
15253 return NULL;
15254 }
15255
15256
15257 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15258 PyObject *resultobj;
15259 wxDC *arg1 = (wxDC *) 0 ;
15260 PyObject * obj0 = 0 ;
15261 char *kwnames[] = {
15262 (char *) "self", NULL
15263 };
15264
15265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
15266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15268 {
15269 PyThreadState* __tstate = wxPyBeginAllowThreads();
15270 (arg1)->ResetBoundingBox();
15271
15272 wxPyEndAllowThreads(__tstate);
15273 if (PyErr_Occurred()) SWIG_fail;
15274 }
15275 Py_INCREF(Py_None); resultobj = Py_None;
15276 return resultobj;
15277 fail:
15278 return NULL;
15279 }
15280
15281
15282 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
15283 PyObject *resultobj;
15284 wxDC *arg1 = (wxDC *) 0 ;
15285 int result;
15286 PyObject * obj0 = 0 ;
15287 char *kwnames[] = {
15288 (char *) "self", NULL
15289 };
15290
15291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
15292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15294 {
15295 PyThreadState* __tstate = wxPyBeginAllowThreads();
15296 result = (int)((wxDC const *)arg1)->MinX();
15297
15298 wxPyEndAllowThreads(__tstate);
15299 if (PyErr_Occurred()) SWIG_fail;
15300 }
15301 resultobj = SWIG_FromInt((int)result);
15302 return resultobj;
15303 fail:
15304 return NULL;
15305 }
15306
15307
15308 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
15309 PyObject *resultobj;
15310 wxDC *arg1 = (wxDC *) 0 ;
15311 int result;
15312 PyObject * obj0 = 0 ;
15313 char *kwnames[] = {
15314 (char *) "self", NULL
15315 };
15316
15317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
15318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15320 {
15321 PyThreadState* __tstate = wxPyBeginAllowThreads();
15322 result = (int)((wxDC const *)arg1)->MaxX();
15323
15324 wxPyEndAllowThreads(__tstate);
15325 if (PyErr_Occurred()) SWIG_fail;
15326 }
15327 resultobj = SWIG_FromInt((int)result);
15328 return resultobj;
15329 fail:
15330 return NULL;
15331 }
15332
15333
15334 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
15335 PyObject *resultobj;
15336 wxDC *arg1 = (wxDC *) 0 ;
15337 int result;
15338 PyObject * obj0 = 0 ;
15339 char *kwnames[] = {
15340 (char *) "self", NULL
15341 };
15342
15343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
15344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15346 {
15347 PyThreadState* __tstate = wxPyBeginAllowThreads();
15348 result = (int)((wxDC const *)arg1)->MinY();
15349
15350 wxPyEndAllowThreads(__tstate);
15351 if (PyErr_Occurred()) SWIG_fail;
15352 }
15353 resultobj = SWIG_FromInt((int)result);
15354 return resultobj;
15355 fail:
15356 return NULL;
15357 }
15358
15359
15360 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
15361 PyObject *resultobj;
15362 wxDC *arg1 = (wxDC *) 0 ;
15363 int result;
15364 PyObject * obj0 = 0 ;
15365 char *kwnames[] = {
15366 (char *) "self", NULL
15367 };
15368
15369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
15370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15372 {
15373 PyThreadState* __tstate = wxPyBeginAllowThreads();
15374 result = (int)((wxDC const *)arg1)->MaxY();
15375
15376 wxPyEndAllowThreads(__tstate);
15377 if (PyErr_Occurred()) SWIG_fail;
15378 }
15379 resultobj = SWIG_FromInt((int)result);
15380 return resultobj;
15381 fail:
15382 return NULL;
15383 }
15384
15385
15386 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15387 PyObject *resultobj;
15388 wxDC *arg1 = (wxDC *) 0 ;
15389 int *arg2 = (int *) 0 ;
15390 int *arg3 = (int *) 0 ;
15391 int *arg4 = (int *) 0 ;
15392 int *arg5 = (int *) 0 ;
15393 int temp2 ;
15394 int temp3 ;
15395 int temp4 ;
15396 int temp5 ;
15397 PyObject * obj0 = 0 ;
15398 char *kwnames[] = {
15399 (char *) "self", NULL
15400 };
15401
15402 arg2 = &temp2;
15403 arg3 = &temp3;
15404 arg4 = &temp4;
15405 arg5 = &temp5;
15406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
15407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15409 {
15410 PyThreadState* __tstate = wxPyBeginAllowThreads();
15411 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
15412
15413 wxPyEndAllowThreads(__tstate);
15414 if (PyErr_Occurred()) SWIG_fail;
15415 }
15416 Py_INCREF(Py_None); resultobj = Py_None;
15417 {
15418 PyObject *o = PyInt_FromLong((long) (*arg2));
15419 resultobj = t_output_helper(resultobj,o);
15420 }
15421 {
15422 PyObject *o = PyInt_FromLong((long) (*arg3));
15423 resultobj = t_output_helper(resultobj,o);
15424 }
15425 {
15426 PyObject *o = PyInt_FromLong((long) (*arg4));
15427 resultobj = t_output_helper(resultobj,o);
15428 }
15429 {
15430 PyObject *o = PyInt_FromLong((long) (*arg5));
15431 resultobj = t_output_helper(resultobj,o);
15432 }
15433 return resultobj;
15434 fail:
15435 return NULL;
15436 }
15437
15438
15439 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
15440 PyObject *resultobj;
15441 wxDC *arg1 = (wxDC *) 0 ;
15442 PyObject *arg2 = (PyObject *) 0 ;
15443 PyObject *arg3 = (PyObject *) 0 ;
15444 PyObject *arg4 = (PyObject *) 0 ;
15445 PyObject *result;
15446 PyObject * obj0 = 0 ;
15447 PyObject * obj1 = 0 ;
15448 PyObject * obj2 = 0 ;
15449 PyObject * obj3 = 0 ;
15450 char *kwnames[] = {
15451 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15452 };
15453
15454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15457 arg2 = obj1;
15458 arg3 = obj2;
15459 arg4 = obj3;
15460 {
15461 PyThreadState* __tstate = wxPyBeginAllowThreads();
15462 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
15463
15464 wxPyEndAllowThreads(__tstate);
15465 if (PyErr_Occurred()) SWIG_fail;
15466 }
15467 resultobj = result;
15468 return resultobj;
15469 fail:
15470 return NULL;
15471 }
15472
15473
15474 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
15475 PyObject *resultobj;
15476 wxDC *arg1 = (wxDC *) 0 ;
15477 PyObject *arg2 = (PyObject *) 0 ;
15478 PyObject *arg3 = (PyObject *) 0 ;
15479 PyObject *arg4 = (PyObject *) 0 ;
15480 PyObject *result;
15481 PyObject * obj0 = 0 ;
15482 PyObject * obj1 = 0 ;
15483 PyObject * obj2 = 0 ;
15484 PyObject * obj3 = 0 ;
15485 char *kwnames[] = {
15486 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15487 };
15488
15489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15492 arg2 = obj1;
15493 arg3 = obj2;
15494 arg4 = obj3;
15495 {
15496 PyThreadState* __tstate = wxPyBeginAllowThreads();
15497 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
15498
15499 wxPyEndAllowThreads(__tstate);
15500 if (PyErr_Occurred()) SWIG_fail;
15501 }
15502 resultobj = result;
15503 return resultobj;
15504 fail:
15505 return NULL;
15506 }
15507
15508
15509 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
15510 PyObject *resultobj;
15511 wxDC *arg1 = (wxDC *) 0 ;
15512 PyObject *arg2 = (PyObject *) 0 ;
15513 PyObject *arg3 = (PyObject *) 0 ;
15514 PyObject *arg4 = (PyObject *) 0 ;
15515 PyObject *result;
15516 PyObject * obj0 = 0 ;
15517 PyObject * obj1 = 0 ;
15518 PyObject * obj2 = 0 ;
15519 PyObject * obj3 = 0 ;
15520 char *kwnames[] = {
15521 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15522 };
15523
15524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15527 arg2 = obj1;
15528 arg3 = obj2;
15529 arg4 = obj3;
15530 {
15531 PyThreadState* __tstate = wxPyBeginAllowThreads();
15532 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
15533
15534 wxPyEndAllowThreads(__tstate);
15535 if (PyErr_Occurred()) SWIG_fail;
15536 }
15537 resultobj = result;
15538 return resultobj;
15539 fail:
15540 return NULL;
15541 }
15542
15543
15544 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
15545 PyObject *resultobj;
15546 wxDC *arg1 = (wxDC *) 0 ;
15547 PyObject *arg2 = (PyObject *) 0 ;
15548 PyObject *arg3 = (PyObject *) 0 ;
15549 PyObject *arg4 = (PyObject *) 0 ;
15550 PyObject *result;
15551 PyObject * obj0 = 0 ;
15552 PyObject * obj1 = 0 ;
15553 PyObject * obj2 = 0 ;
15554 PyObject * obj3 = 0 ;
15555 char *kwnames[] = {
15556 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15557 };
15558
15559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15562 arg2 = obj1;
15563 arg3 = obj2;
15564 arg4 = obj3;
15565 {
15566 PyThreadState* __tstate = wxPyBeginAllowThreads();
15567 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
15568
15569 wxPyEndAllowThreads(__tstate);
15570 if (PyErr_Occurred()) SWIG_fail;
15571 }
15572 resultobj = result;
15573 return resultobj;
15574 fail:
15575 return NULL;
15576 }
15577
15578
15579 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
15580 PyObject *resultobj;
15581 wxDC *arg1 = (wxDC *) 0 ;
15582 PyObject *arg2 = (PyObject *) 0 ;
15583 PyObject *arg3 = (PyObject *) 0 ;
15584 PyObject *arg4 = (PyObject *) 0 ;
15585 PyObject *result;
15586 PyObject * obj0 = 0 ;
15587 PyObject * obj1 = 0 ;
15588 PyObject * obj2 = 0 ;
15589 PyObject * obj3 = 0 ;
15590 char *kwnames[] = {
15591 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15592 };
15593
15594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15597 arg2 = obj1;
15598 arg3 = obj2;
15599 arg4 = obj3;
15600 {
15601 PyThreadState* __tstate = wxPyBeginAllowThreads();
15602 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
15603
15604 wxPyEndAllowThreads(__tstate);
15605 if (PyErr_Occurred()) SWIG_fail;
15606 }
15607 resultobj = result;
15608 return resultobj;
15609 fail:
15610 return NULL;
15611 }
15612
15613
15614 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
15615 PyObject *resultobj;
15616 wxDC *arg1 = (wxDC *) 0 ;
15617 PyObject *arg2 = (PyObject *) 0 ;
15618 PyObject *arg3 = (PyObject *) 0 ;
15619 PyObject *arg4 = (PyObject *) 0 ;
15620 PyObject *arg5 = (PyObject *) 0 ;
15621 PyObject *result;
15622 PyObject * obj0 = 0 ;
15623 PyObject * obj1 = 0 ;
15624 PyObject * obj2 = 0 ;
15625 PyObject * obj3 = 0 ;
15626 PyObject * obj4 = 0 ;
15627 char *kwnames[] = {
15628 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
15629 };
15630
15631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15634 arg2 = obj1;
15635 arg3 = obj2;
15636 arg4 = obj3;
15637 arg5 = obj4;
15638 {
15639 PyThreadState* __tstate = wxPyBeginAllowThreads();
15640 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
15641
15642 wxPyEndAllowThreads(__tstate);
15643 if (PyErr_Occurred()) SWIG_fail;
15644 }
15645 resultobj = result;
15646 return resultobj;
15647 fail:
15648 return NULL;
15649 }
15650
15651
15652 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
15653 PyObject *obj;
15654 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15655 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15656 Py_INCREF(obj);
15657 return Py_BuildValue((char *)"");
15658 }
15659 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15660 PyObject *resultobj;
15661 wxMemoryDC *result;
15662 char *kwnames[] = {
15663 NULL
15664 };
15665
15666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15667 {
15668 PyThreadState* __tstate = wxPyBeginAllowThreads();
15669 result = (wxMemoryDC *)new wxMemoryDC();
15670
15671 wxPyEndAllowThreads(__tstate);
15672 if (PyErr_Occurred()) SWIG_fail;
15673 }
15674 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15675 return resultobj;
15676 fail:
15677 return NULL;
15678 }
15679
15680
15681 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15682 PyObject *resultobj;
15683 wxDC *arg1 = (wxDC *) 0 ;
15684 wxMemoryDC *result;
15685 PyObject * obj0 = 0 ;
15686 char *kwnames[] = {
15687 (char *) "oldDC", NULL
15688 };
15689
15690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15693 {
15694 PyThreadState* __tstate = wxPyBeginAllowThreads();
15695 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15696
15697 wxPyEndAllowThreads(__tstate);
15698 if (PyErr_Occurred()) SWIG_fail;
15699 }
15700 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15701 return resultobj;
15702 fail:
15703 return NULL;
15704 }
15705
15706
15707 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
15708 PyObject *resultobj;
15709 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15710 wxBitmap *arg2 = 0 ;
15711 PyObject * obj0 = 0 ;
15712 PyObject * obj1 = 0 ;
15713 char *kwnames[] = {
15714 (char *) "self",(char *) "bitmap", NULL
15715 };
15716
15717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15720 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15721 SWIG_POINTER_EXCEPTION | 0)) == -1)
15722 SWIG_fail;
15723 if (arg2 == NULL) {
15724 PyErr_SetString(PyExc_TypeError,"null reference");
15725 SWIG_fail;
15726 }
15727 {
15728 PyThreadState* __tstate = wxPyBeginAllowThreads();
15729 (arg1)->SelectObject((wxBitmap const &)*arg2);
15730
15731 wxPyEndAllowThreads(__tstate);
15732 if (PyErr_Occurred()) SWIG_fail;
15733 }
15734 Py_INCREF(Py_None); resultobj = Py_None;
15735 return resultobj;
15736 fail:
15737 return NULL;
15738 }
15739
15740
15741 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
15742 PyObject *obj;
15743 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15744 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15745 Py_INCREF(obj);
15746 return Py_BuildValue((char *)"");
15747 }
15748 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
15749 PyObject *resultobj;
15750 wxDC *arg1 = (wxDC *) 0 ;
15751 wxBitmap *arg2 = 0 ;
15752 wxBufferedDC *result;
15753 PyObject * obj0 = 0 ;
15754 PyObject * obj1 = 0 ;
15755
15756 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15759 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15760 SWIG_POINTER_EXCEPTION | 0)) == -1)
15761 SWIG_fail;
15762 if (arg2 == NULL) {
15763 PyErr_SetString(PyExc_TypeError,"null reference");
15764 SWIG_fail;
15765 }
15766 {
15767 PyThreadState* __tstate = wxPyBeginAllowThreads();
15768 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15769
15770 wxPyEndAllowThreads(__tstate);
15771 if (PyErr_Occurred()) SWIG_fail;
15772 }
15773 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15774 return resultobj;
15775 fail:
15776 return NULL;
15777 }
15778
15779
15780 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
15781 PyObject *resultobj;
15782 wxDC *arg1 = (wxDC *) 0 ;
15783 wxSize *arg2 = 0 ;
15784 wxBufferedDC *result;
15785 wxSize temp2 ;
15786 PyObject * obj0 = 0 ;
15787 PyObject * obj1 = 0 ;
15788
15789 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15792 {
15793 arg2 = &temp2;
15794 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15795 }
15796 {
15797 PyThreadState* __tstate = wxPyBeginAllowThreads();
15798 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15799
15800 wxPyEndAllowThreads(__tstate);
15801 if (PyErr_Occurred()) SWIG_fail;
15802 }
15803 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15804 return resultobj;
15805 fail:
15806 return NULL;
15807 }
15808
15809
15810 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15811 int argc;
15812 PyObject *argv[3];
15813 int ii;
15814
15815 argc = PyObject_Length(args);
15816 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15817 argv[ii] = PyTuple_GetItem(args,ii);
15818 }
15819 if (argc == 2) {
15820 int _v;
15821 {
15822 void *ptr;
15823 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15824 _v = 0;
15825 PyErr_Clear();
15826 } else {
15827 _v = 1;
15828 }
15829 }
15830 if (_v) {
15831 {
15832 void *ptr;
15833 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15834 _v = 0;
15835 PyErr_Clear();
15836 } else {
15837 _v = 1;
15838 }
15839 }
15840 if (_v) {
15841 return _wrap_new_BufferedDC__SWIG_0(self,args);
15842 }
15843 }
15844 }
15845 if (argc == 2) {
15846 int _v;
15847 {
15848 void *ptr;
15849 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15850 _v = 0;
15851 PyErr_Clear();
15852 } else {
15853 _v = 1;
15854 }
15855 }
15856 if (_v) {
15857 {
15858 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15859 }
15860 if (_v) {
15861 return _wrap_new_BufferedDC__SWIG_1(self,args);
15862 }
15863 }
15864 }
15865
15866 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15867 return NULL;
15868 }
15869
15870
15871 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
15872 PyObject *resultobj;
15873 wxDC *arg1 = (wxDC *) 0 ;
15874 wxSize *arg2 = 0 ;
15875 wxBufferedDC *result;
15876 wxSize temp2 ;
15877 PyObject * obj0 = 0 ;
15878 PyObject * obj1 = 0 ;
15879
15880 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
15881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15883 {
15884 arg2 = &temp2;
15885 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15886 }
15887 {
15888 PyThreadState* __tstate = wxPyBeginAllowThreads();
15889 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15890
15891 wxPyEndAllowThreads(__tstate);
15892 if (PyErr_Occurred()) SWIG_fail;
15893 }
15894 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15895 return resultobj;
15896 fail:
15897 return NULL;
15898 }
15899
15900
15901 static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15902 PyObject *resultobj;
15903 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15904 PyObject * obj0 = 0 ;
15905 char *kwnames[] = {
15906 (char *) "self", NULL
15907 };
15908
15909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15912 {
15913 PyThreadState* __tstate = wxPyBeginAllowThreads();
15914 delete arg1;
15915
15916 wxPyEndAllowThreads(__tstate);
15917 if (PyErr_Occurred()) SWIG_fail;
15918 }
15919 Py_INCREF(Py_None); resultobj = Py_None;
15920 return resultobj;
15921 fail:
15922 return NULL;
15923 }
15924
15925
15926 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15927 PyObject *resultobj;
15928 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15929 PyObject * obj0 = 0 ;
15930 char *kwnames[] = {
15931 (char *) "self", NULL
15932 };
15933
15934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15937 {
15938 PyThreadState* __tstate = wxPyBeginAllowThreads();
15939 (arg1)->UnMask();
15940
15941 wxPyEndAllowThreads(__tstate);
15942 if (PyErr_Occurred()) SWIG_fail;
15943 }
15944 Py_INCREF(Py_None); resultobj = Py_None;
15945 return resultobj;
15946 fail:
15947 return NULL;
15948 }
15949
15950
15951 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15952 PyObject *obj;
15953 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15954 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15955 Py_INCREF(obj);
15956 return Py_BuildValue((char *)"");
15957 }
15958 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15959 PyObject *resultobj;
15960 wxWindow *arg1 = (wxWindow *) 0 ;
15961 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15962 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15963 wxBufferedPaintDC *result;
15964 PyObject * obj0 = 0 ;
15965 PyObject * obj1 = 0 ;
15966 char *kwnames[] = {
15967 (char *) "window",(char *) "buffer", NULL
15968 };
15969
15970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15973 if (obj1) {
15974 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15975 SWIG_POINTER_EXCEPTION | 0)) == -1)
15976 SWIG_fail;
15977 if (arg2 == NULL) {
15978 PyErr_SetString(PyExc_TypeError,"null reference");
15979 SWIG_fail;
15980 }
15981 }
15982 {
15983 PyThreadState* __tstate = wxPyBeginAllowThreads();
15984 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15985
15986 wxPyEndAllowThreads(__tstate);
15987 if (PyErr_Occurred()) SWIG_fail;
15988 }
15989 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15990 return resultobj;
15991 fail:
15992 return NULL;
15993 }
15994
15995
15996 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15997 PyObject *obj;
15998 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15999 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
16000 Py_INCREF(obj);
16001 return Py_BuildValue((char *)"");
16002 }
16003 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16004 PyObject *resultobj;
16005 wxScreenDC *result;
16006 char *kwnames[] = {
16007 NULL
16008 };
16009
16010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
16011 {
16012 PyThreadState* __tstate = wxPyBeginAllowThreads();
16013 result = (wxScreenDC *)new wxScreenDC();
16014
16015 wxPyEndAllowThreads(__tstate);
16016 if (PyErr_Occurred()) SWIG_fail;
16017 }
16018 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
16019 return resultobj;
16020 fail:
16021 return NULL;
16022 }
16023
16024
16025 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
16026 PyObject *resultobj;
16027 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
16028 wxWindow *arg2 = (wxWindow *) 0 ;
16029 bool result;
16030 PyObject * obj0 = 0 ;
16031 PyObject * obj1 = 0 ;
16032 char *kwnames[] = {
16033 (char *) "self",(char *) "window", NULL
16034 };
16035
16036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
16037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
16038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16039 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
16040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16041 {
16042 PyThreadState* __tstate = wxPyBeginAllowThreads();
16043 result = (bool)(arg1)->StartDrawingOnTop(arg2);
16044
16045 wxPyEndAllowThreads(__tstate);
16046 if (PyErr_Occurred()) SWIG_fail;
16047 }
16048 {
16049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16050 }
16051 return resultobj;
16052 fail:
16053 return NULL;
16054 }
16055
16056
16057 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
16058 PyObject *resultobj;
16059 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
16060 wxRect *arg2 = (wxRect *) NULL ;
16061 bool result;
16062 PyObject * obj0 = 0 ;
16063 PyObject * obj1 = 0 ;
16064 char *kwnames[] = {
16065 (char *) "self",(char *) "rect", NULL
16066 };
16067
16068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
16069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
16070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16071 if (obj1) {
16072 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
16073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16074 }
16075 {
16076 PyThreadState* __tstate = wxPyBeginAllowThreads();
16077 result = (bool)(arg1)->StartDrawingOnTop(arg2);
16078
16079 wxPyEndAllowThreads(__tstate);
16080 if (PyErr_Occurred()) SWIG_fail;
16081 }
16082 {
16083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16084 }
16085 return resultobj;
16086 fail:
16087 return NULL;
16088 }
16089
16090
16091 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
16092 PyObject *resultobj;
16093 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
16094 bool result;
16095 PyObject * obj0 = 0 ;
16096 char *kwnames[] = {
16097 (char *) "self", NULL
16098 };
16099
16100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
16101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
16102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16103 {
16104 PyThreadState* __tstate = wxPyBeginAllowThreads();
16105 result = (bool)(arg1)->EndDrawingOnTop();
16106
16107 wxPyEndAllowThreads(__tstate);
16108 if (PyErr_Occurred()) SWIG_fail;
16109 }
16110 {
16111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16112 }
16113 return resultobj;
16114 fail:
16115 return NULL;
16116 }
16117
16118
16119 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
16120 PyObject *obj;
16121 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16122 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
16123 Py_INCREF(obj);
16124 return Py_BuildValue((char *)"");
16125 }
16126 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16127 PyObject *resultobj;
16128 wxWindow *arg1 = (wxWindow *) 0 ;
16129 wxClientDC *result;
16130 PyObject * obj0 = 0 ;
16131 char *kwnames[] = {
16132 (char *) "win", NULL
16133 };
16134
16135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
16136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16138 {
16139 PyThreadState* __tstate = wxPyBeginAllowThreads();
16140 result = (wxClientDC *)new wxClientDC(arg1);
16141
16142 wxPyEndAllowThreads(__tstate);
16143 if (PyErr_Occurred()) SWIG_fail;
16144 }
16145 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
16146 return resultobj;
16147 fail:
16148 return NULL;
16149 }
16150
16151
16152 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
16153 PyObject *obj;
16154 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16155 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
16156 Py_INCREF(obj);
16157 return Py_BuildValue((char *)"");
16158 }
16159 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16160 PyObject *resultobj;
16161 wxWindow *arg1 = (wxWindow *) 0 ;
16162 wxPaintDC *result;
16163 PyObject * obj0 = 0 ;
16164 char *kwnames[] = {
16165 (char *) "win", NULL
16166 };
16167
16168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
16169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16171 {
16172 PyThreadState* __tstate = wxPyBeginAllowThreads();
16173 result = (wxPaintDC *)new wxPaintDC(arg1);
16174
16175 wxPyEndAllowThreads(__tstate);
16176 if (PyErr_Occurred()) SWIG_fail;
16177 }
16178 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
16179 return resultobj;
16180 fail:
16181 return NULL;
16182 }
16183
16184
16185 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
16186 PyObject *obj;
16187 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16188 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
16189 Py_INCREF(obj);
16190 return Py_BuildValue((char *)"");
16191 }
16192 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16193 PyObject *resultobj;
16194 wxWindow *arg1 = (wxWindow *) 0 ;
16195 wxWindowDC *result;
16196 PyObject * obj0 = 0 ;
16197 char *kwnames[] = {
16198 (char *) "win", NULL
16199 };
16200
16201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
16202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16204 {
16205 PyThreadState* __tstate = wxPyBeginAllowThreads();
16206 result = (wxWindowDC *)new wxWindowDC(arg1);
16207
16208 wxPyEndAllowThreads(__tstate);
16209 if (PyErr_Occurred()) SWIG_fail;
16210 }
16211 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
16212 return resultobj;
16213 fail:
16214 return NULL;
16215 }
16216
16217
16218 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
16219 PyObject *obj;
16220 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16221 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
16222 Py_INCREF(obj);
16223 return Py_BuildValue((char *)"");
16224 }
16225 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16226 PyObject *resultobj;
16227 wxDC *arg1 = 0 ;
16228 bool arg2 ;
16229 wxMirrorDC *result;
16230 PyObject * obj0 = 0 ;
16231 PyObject * obj1 = 0 ;
16232 char *kwnames[] = {
16233 (char *) "dc",(char *) "mirror", NULL
16234 };
16235
16236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
16237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
16238 SWIG_POINTER_EXCEPTION | 0)) == -1)
16239 SWIG_fail;
16240 if (arg1 == NULL) {
16241 PyErr_SetString(PyExc_TypeError,"null reference");
16242 SWIG_fail;
16243 }
16244 arg2 = (bool) SWIG_AsBool(obj1);
16245 if (PyErr_Occurred()) SWIG_fail;
16246 {
16247 PyThreadState* __tstate = wxPyBeginAllowThreads();
16248 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
16249
16250 wxPyEndAllowThreads(__tstate);
16251 if (PyErr_Occurred()) SWIG_fail;
16252 }
16253 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
16254 return resultobj;
16255 fail:
16256 return NULL;
16257 }
16258
16259
16260 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
16261 PyObject *obj;
16262 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16263 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
16264 Py_INCREF(obj);
16265 return Py_BuildValue((char *)"");
16266 }
16267 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16268 PyObject *resultobj;
16269 wxPrintData *arg1 = 0 ;
16270 wxPostScriptDC *result;
16271 PyObject * obj0 = 0 ;
16272 char *kwnames[] = {
16273 (char *) "printData", NULL
16274 };
16275
16276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
16277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16278 SWIG_POINTER_EXCEPTION | 0)) == -1)
16279 SWIG_fail;
16280 if (arg1 == NULL) {
16281 PyErr_SetString(PyExc_TypeError,"null reference");
16282 SWIG_fail;
16283 }
16284 {
16285 PyThreadState* __tstate = wxPyBeginAllowThreads();
16286 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
16287
16288 wxPyEndAllowThreads(__tstate);
16289 if (PyErr_Occurred()) SWIG_fail;
16290 }
16291 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
16292 return resultobj;
16293 fail:
16294 return NULL;
16295 }
16296
16297
16298 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
16299 PyObject *resultobj;
16300 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16301 wxPrintData *result;
16302 PyObject * obj0 = 0 ;
16303 char *kwnames[] = {
16304 (char *) "self", NULL
16305 };
16306
16307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
16308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16310 {
16311 PyThreadState* __tstate = wxPyBeginAllowThreads();
16312 {
16313 wxPrintData &_result_ref = (arg1)->GetPrintData();
16314 result = (wxPrintData *) &_result_ref;
16315 }
16316
16317 wxPyEndAllowThreads(__tstate);
16318 if (PyErr_Occurred()) SWIG_fail;
16319 }
16320 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
16321 return resultobj;
16322 fail:
16323 return NULL;
16324 }
16325
16326
16327 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
16328 PyObject *resultobj;
16329 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16330 wxPrintData *arg2 = 0 ;
16331 PyObject * obj0 = 0 ;
16332 PyObject * obj1 = 0 ;
16333 char *kwnames[] = {
16334 (char *) "self",(char *) "data", NULL
16335 };
16336
16337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
16338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16340 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
16341 SWIG_POINTER_EXCEPTION | 0)) == -1)
16342 SWIG_fail;
16343 if (arg2 == NULL) {
16344 PyErr_SetString(PyExc_TypeError,"null reference");
16345 SWIG_fail;
16346 }
16347 {
16348 PyThreadState* __tstate = wxPyBeginAllowThreads();
16349 (arg1)->SetPrintData((wxPrintData const &)*arg2);
16350
16351 wxPyEndAllowThreads(__tstate);
16352 if (PyErr_Occurred()) SWIG_fail;
16353 }
16354 Py_INCREF(Py_None); resultobj = Py_None;
16355 return resultobj;
16356 fail:
16357 return NULL;
16358 }
16359
16360
16361 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
16362 PyObject *resultobj;
16363 int arg1 ;
16364 PyObject * obj0 = 0 ;
16365 char *kwnames[] = {
16366 (char *) "ppi", NULL
16367 };
16368
16369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
16370 arg1 = (int) SWIG_AsInt(obj0);
16371 if (PyErr_Occurred()) SWIG_fail;
16372 {
16373 PyThreadState* __tstate = wxPyBeginAllowThreads();
16374 wxPostScriptDC::SetResolution(arg1);
16375
16376 wxPyEndAllowThreads(__tstate);
16377 if (PyErr_Occurred()) SWIG_fail;
16378 }
16379 Py_INCREF(Py_None); resultobj = Py_None;
16380 return resultobj;
16381 fail:
16382 return NULL;
16383 }
16384
16385
16386 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
16387 PyObject *resultobj;
16388 int result;
16389 char *kwnames[] = {
16390 NULL
16391 };
16392
16393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
16394 {
16395 PyThreadState* __tstate = wxPyBeginAllowThreads();
16396 result = (int)wxPostScriptDC::GetResolution();
16397
16398 wxPyEndAllowThreads(__tstate);
16399 if (PyErr_Occurred()) SWIG_fail;
16400 }
16401 resultobj = SWIG_FromInt((int)result);
16402 return resultobj;
16403 fail:
16404 return NULL;
16405 }
16406
16407
16408 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
16409 PyObject *obj;
16410 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16411 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
16412 Py_INCREF(obj);
16413 return Py_BuildValue((char *)"");
16414 }
16415 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
16416 PyObject *resultobj;
16417 wxString const &arg1_defvalue = wxPyEmptyString ;
16418 wxString *arg1 = (wxString *) &arg1_defvalue ;
16419 wxMetaFile *result;
16420 bool temp1 = False ;
16421 PyObject * obj0 = 0 ;
16422 char *kwnames[] = {
16423 (char *) "filename", NULL
16424 };
16425
16426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
16427 if (obj0) {
16428 {
16429 arg1 = wxString_in_helper(obj0);
16430 if (arg1 == NULL) SWIG_fail;
16431 temp1 = True;
16432 }
16433 }
16434 {
16435 PyThreadState* __tstate = wxPyBeginAllowThreads();
16436 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
16437
16438 wxPyEndAllowThreads(__tstate);
16439 if (PyErr_Occurred()) SWIG_fail;
16440 }
16441 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
16442 {
16443 if (temp1)
16444 delete arg1;
16445 }
16446 return resultobj;
16447 fail:
16448 {
16449 if (temp1)
16450 delete arg1;
16451 }
16452 return NULL;
16453 }
16454
16455
16456 static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
16457 PyObject *resultobj;
16458 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16459 PyObject * obj0 = 0 ;
16460 char *kwnames[] = {
16461 (char *) "self", NULL
16462 };
16463
16464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
16465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16467 {
16468 PyThreadState* __tstate = wxPyBeginAllowThreads();
16469 delete arg1;
16470
16471 wxPyEndAllowThreads(__tstate);
16472 if (PyErr_Occurred()) SWIG_fail;
16473 }
16474 Py_INCREF(Py_None); resultobj = Py_None;
16475 return resultobj;
16476 fail:
16477 return NULL;
16478 }
16479
16480
16481 static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
16482 PyObject *resultobj;
16483 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16484 bool result;
16485 PyObject * obj0 = 0 ;
16486 char *kwnames[] = {
16487 (char *) "self", NULL
16488 };
16489
16490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
16491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16493 {
16494 PyThreadState* __tstate = wxPyBeginAllowThreads();
16495 result = (bool)(arg1)->Ok();
16496
16497 wxPyEndAllowThreads(__tstate);
16498 if (PyErr_Occurred()) SWIG_fail;
16499 }
16500 {
16501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16502 }
16503 return resultobj;
16504 fail:
16505 return NULL;
16506 }
16507
16508
16509 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
16510 PyObject *resultobj;
16511 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16512 int arg2 = (int) 0 ;
16513 int arg3 = (int) 0 ;
16514 bool result;
16515 PyObject * obj0 = 0 ;
16516 PyObject * obj1 = 0 ;
16517 PyObject * obj2 = 0 ;
16518 char *kwnames[] = {
16519 (char *) "self",(char *) "width",(char *) "height", NULL
16520 };
16521
16522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
16523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16525 if (obj1) {
16526 arg2 = (int) SWIG_AsInt(obj1);
16527 if (PyErr_Occurred()) SWIG_fail;
16528 }
16529 if (obj2) {
16530 arg3 = (int) SWIG_AsInt(obj2);
16531 if (PyErr_Occurred()) SWIG_fail;
16532 }
16533 {
16534 PyThreadState* __tstate = wxPyBeginAllowThreads();
16535 result = (bool)(arg1)->SetClipboard(arg2,arg3);
16536
16537 wxPyEndAllowThreads(__tstate);
16538 if (PyErr_Occurred()) SWIG_fail;
16539 }
16540 {
16541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16542 }
16543 return resultobj;
16544 fail:
16545 return NULL;
16546 }
16547
16548
16549 static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16550 PyObject *resultobj;
16551 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16552 wxSize result;
16553 PyObject * obj0 = 0 ;
16554 char *kwnames[] = {
16555 (char *) "self", NULL
16556 };
16557
16558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
16559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16561 {
16562 PyThreadState* __tstate = wxPyBeginAllowThreads();
16563 result = (arg1)->GetSize();
16564
16565 wxPyEndAllowThreads(__tstate);
16566 if (PyErr_Occurred()) SWIG_fail;
16567 }
16568 {
16569 wxSize * resultptr;
16570 resultptr = new wxSize((wxSize &) result);
16571 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16572 }
16573 return resultobj;
16574 fail:
16575 return NULL;
16576 }
16577
16578
16579 static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
16580 PyObject *resultobj;
16581 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16582 int result;
16583 PyObject * obj0 = 0 ;
16584 char *kwnames[] = {
16585 (char *) "self", NULL
16586 };
16587
16588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
16589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16591 {
16592 PyThreadState* __tstate = wxPyBeginAllowThreads();
16593 result = (int)(arg1)->GetWidth();
16594
16595 wxPyEndAllowThreads(__tstate);
16596 if (PyErr_Occurred()) SWIG_fail;
16597 }
16598 resultobj = SWIG_FromInt((int)result);
16599 return resultobj;
16600 fail:
16601 return NULL;
16602 }
16603
16604
16605 static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
16606 PyObject *resultobj;
16607 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16608 int result;
16609 PyObject * obj0 = 0 ;
16610 char *kwnames[] = {
16611 (char *) "self", NULL
16612 };
16613
16614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
16615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16617 {
16618 PyThreadState* __tstate = wxPyBeginAllowThreads();
16619 result = (int)(arg1)->GetHeight();
16620
16621 wxPyEndAllowThreads(__tstate);
16622 if (PyErr_Occurred()) SWIG_fail;
16623 }
16624 resultobj = SWIG_FromInt((int)result);
16625 return resultobj;
16626 fail:
16627 return NULL;
16628 }
16629
16630
16631 static PyObject *_wrap_MetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
16632 PyObject *resultobj;
16633 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16634 wxString *result;
16635 PyObject * obj0 = 0 ;
16636 char *kwnames[] = {
16637 (char *) "self", NULL
16638 };
16639
16640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail;
16641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16643 {
16644 PyThreadState* __tstate = wxPyBeginAllowThreads();
16645 {
16646 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
16647 result = (wxString *) &_result_ref;
16648 }
16649
16650 wxPyEndAllowThreads(__tstate);
16651 if (PyErr_Occurred()) SWIG_fail;
16652 }
16653 {
16654 #if wxUSE_UNICODE
16655 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16656 #else
16657 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16658 #endif
16659 }
16660 return resultobj;
16661 fail:
16662 return NULL;
16663 }
16664
16665
16666 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
16667 PyObject *obj;
16668 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16669 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
16670 Py_INCREF(obj);
16671 return Py_BuildValue((char *)"");
16672 }
16673 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16674 PyObject *resultobj;
16675 wxString const &arg1_defvalue = wxPyEmptyString ;
16676 wxString *arg1 = (wxString *) &arg1_defvalue ;
16677 int arg2 = (int) 0 ;
16678 int arg3 = (int) 0 ;
16679 wxString const &arg4_defvalue = wxPyEmptyString ;
16680 wxString *arg4 = (wxString *) &arg4_defvalue ;
16681 wxMetaFileDC *result;
16682 bool temp1 = False ;
16683 bool temp4 = False ;
16684 PyObject * obj0 = 0 ;
16685 PyObject * obj1 = 0 ;
16686 PyObject * obj2 = 0 ;
16687 PyObject * obj3 = 0 ;
16688 char *kwnames[] = {
16689 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
16690 };
16691
16692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16693 if (obj0) {
16694 {
16695 arg1 = wxString_in_helper(obj0);
16696 if (arg1 == NULL) SWIG_fail;
16697 temp1 = True;
16698 }
16699 }
16700 if (obj1) {
16701 arg2 = (int) SWIG_AsInt(obj1);
16702 if (PyErr_Occurred()) SWIG_fail;
16703 }
16704 if (obj2) {
16705 arg3 = (int) SWIG_AsInt(obj2);
16706 if (PyErr_Occurred()) SWIG_fail;
16707 }
16708 if (obj3) {
16709 {
16710 arg4 = wxString_in_helper(obj3);
16711 if (arg4 == NULL) SWIG_fail;
16712 temp4 = True;
16713 }
16714 }
16715 {
16716 PyThreadState* __tstate = wxPyBeginAllowThreads();
16717 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
16718
16719 wxPyEndAllowThreads(__tstate);
16720 if (PyErr_Occurred()) SWIG_fail;
16721 }
16722 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
16723 {
16724 if (temp1)
16725 delete arg1;
16726 }
16727 {
16728 if (temp4)
16729 delete arg4;
16730 }
16731 return resultobj;
16732 fail:
16733 {
16734 if (temp1)
16735 delete arg1;
16736 }
16737 {
16738 if (temp4)
16739 delete arg4;
16740 }
16741 return NULL;
16742 }
16743
16744
16745 static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
16746 PyObject *resultobj;
16747 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
16748 wxMetaFile *result;
16749 PyObject * obj0 = 0 ;
16750 char *kwnames[] = {
16751 (char *) "self", NULL
16752 };
16753
16754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
16755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
16756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16757 {
16758 PyThreadState* __tstate = wxPyBeginAllowThreads();
16759 result = (wxMetaFile *)(arg1)->Close();
16760
16761 wxPyEndAllowThreads(__tstate);
16762 if (PyErr_Occurred()) SWIG_fail;
16763 }
16764 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
16765 return resultobj;
16766 fail:
16767 return NULL;
16768 }
16769
16770
16771 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
16772 PyObject *obj;
16773 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16774 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16775 Py_INCREF(obj);
16776 return Py_BuildValue((char *)"");
16777 }
16778 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16779 PyObject *resultobj;
16780 wxPrintData *arg1 = 0 ;
16781 wxPrinterDC *result;
16782 PyObject * obj0 = 0 ;
16783 char *kwnames[] = {
16784 (char *) "printData", NULL
16785 };
16786
16787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16789 SWIG_POINTER_EXCEPTION | 0)) == -1)
16790 SWIG_fail;
16791 if (arg1 == NULL) {
16792 PyErr_SetString(PyExc_TypeError,"null reference");
16793 SWIG_fail;
16794 }
16795 {
16796 PyThreadState* __tstate = wxPyBeginAllowThreads();
16797 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16798
16799 wxPyEndAllowThreads(__tstate);
16800 if (PyErr_Occurred()) SWIG_fail;
16801 }
16802 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
16803 return resultobj;
16804 fail:
16805 return NULL;
16806 }
16807
16808
16809 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
16810 PyObject *obj;
16811 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16812 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16813 Py_INCREF(obj);
16814 return Py_BuildValue((char *)"");
16815 }
16816 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16817 PyObject *resultobj;
16818 int arg1 ;
16819 int arg2 ;
16820 int arg3 = (int) True ;
16821 int arg4 = (int) 1 ;
16822 wxImageList *result;
16823 PyObject * obj0 = 0 ;
16824 PyObject * obj1 = 0 ;
16825 PyObject * obj2 = 0 ;
16826 PyObject * obj3 = 0 ;
16827 char *kwnames[] = {
16828 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16829 };
16830
16831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16832 arg1 = (int) SWIG_AsInt(obj0);
16833 if (PyErr_Occurred()) SWIG_fail;
16834 arg2 = (int) SWIG_AsInt(obj1);
16835 if (PyErr_Occurred()) SWIG_fail;
16836 if (obj2) {
16837 arg3 = (int) SWIG_AsInt(obj2);
16838 if (PyErr_Occurred()) SWIG_fail;
16839 }
16840 if (obj3) {
16841 arg4 = (int) SWIG_AsInt(obj3);
16842 if (PyErr_Occurred()) SWIG_fail;
16843 }
16844 {
16845 PyThreadState* __tstate = wxPyBeginAllowThreads();
16846 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16847
16848 wxPyEndAllowThreads(__tstate);
16849 if (PyErr_Occurred()) SWIG_fail;
16850 }
16851 {
16852 resultobj = wxPyMake_wxObject(result);
16853 }
16854 return resultobj;
16855 fail:
16856 return NULL;
16857 }
16858
16859
16860 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16861 PyObject *resultobj;
16862 wxImageList *arg1 = (wxImageList *) 0 ;
16863 PyObject * obj0 = 0 ;
16864 char *kwnames[] = {
16865 (char *) "self", NULL
16866 };
16867
16868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16871 {
16872 PyThreadState* __tstate = wxPyBeginAllowThreads();
16873 delete arg1;
16874
16875 wxPyEndAllowThreads(__tstate);
16876 if (PyErr_Occurred()) SWIG_fail;
16877 }
16878 Py_INCREF(Py_None); resultobj = Py_None;
16879 return resultobj;
16880 fail:
16881 return NULL;
16882 }
16883
16884
16885 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16886 PyObject *resultobj;
16887 wxImageList *arg1 = (wxImageList *) 0 ;
16888 wxBitmap *arg2 = 0 ;
16889 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16890 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16891 int result;
16892 PyObject * obj0 = 0 ;
16893 PyObject * obj1 = 0 ;
16894 PyObject * obj2 = 0 ;
16895 char *kwnames[] = {
16896 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16897 };
16898
16899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16902 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16903 SWIG_POINTER_EXCEPTION | 0)) == -1)
16904 SWIG_fail;
16905 if (arg2 == NULL) {
16906 PyErr_SetString(PyExc_TypeError,"null reference");
16907 SWIG_fail;
16908 }
16909 if (obj2) {
16910 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16911 SWIG_POINTER_EXCEPTION | 0)) == -1)
16912 SWIG_fail;
16913 if (arg3 == NULL) {
16914 PyErr_SetString(PyExc_TypeError,"null reference");
16915 SWIG_fail;
16916 }
16917 }
16918 {
16919 PyThreadState* __tstate = wxPyBeginAllowThreads();
16920 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16921
16922 wxPyEndAllowThreads(__tstate);
16923 if (PyErr_Occurred()) SWIG_fail;
16924 }
16925 resultobj = SWIG_FromInt((int)result);
16926 return resultobj;
16927 fail:
16928 return NULL;
16929 }
16930
16931
16932 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16933 PyObject *resultobj;
16934 wxImageList *arg1 = (wxImageList *) 0 ;
16935 wxBitmap *arg2 = 0 ;
16936 wxColour *arg3 = 0 ;
16937 int result;
16938 wxColour temp3 ;
16939 PyObject * obj0 = 0 ;
16940 PyObject * obj1 = 0 ;
16941 PyObject * obj2 = 0 ;
16942 char *kwnames[] = {
16943 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16944 };
16945
16946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16949 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16950 SWIG_POINTER_EXCEPTION | 0)) == -1)
16951 SWIG_fail;
16952 if (arg2 == NULL) {
16953 PyErr_SetString(PyExc_TypeError,"null reference");
16954 SWIG_fail;
16955 }
16956 {
16957 arg3 = &temp3;
16958 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16959 }
16960 {
16961 PyThreadState* __tstate = wxPyBeginAllowThreads();
16962 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16963
16964 wxPyEndAllowThreads(__tstate);
16965 if (PyErr_Occurred()) SWIG_fail;
16966 }
16967 resultobj = SWIG_FromInt((int)result);
16968 return resultobj;
16969 fail:
16970 return NULL;
16971 }
16972
16973
16974 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16975 PyObject *resultobj;
16976 wxImageList *arg1 = (wxImageList *) 0 ;
16977 wxIcon *arg2 = 0 ;
16978 int result;
16979 PyObject * obj0 = 0 ;
16980 PyObject * obj1 = 0 ;
16981 char *kwnames[] = {
16982 (char *) "self",(char *) "icon", NULL
16983 };
16984
16985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16988 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16989 SWIG_POINTER_EXCEPTION | 0)) == -1)
16990 SWIG_fail;
16991 if (arg2 == NULL) {
16992 PyErr_SetString(PyExc_TypeError,"null reference");
16993 SWIG_fail;
16994 }
16995 {
16996 PyThreadState* __tstate = wxPyBeginAllowThreads();
16997 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16998
16999 wxPyEndAllowThreads(__tstate);
17000 if (PyErr_Occurred()) SWIG_fail;
17001 }
17002 resultobj = SWIG_FromInt((int)result);
17003 return resultobj;
17004 fail:
17005 return NULL;
17006 }
17007
17008
17009 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
17010 PyObject *resultobj;
17011 wxImageList *arg1 = (wxImageList *) 0 ;
17012 int arg2 ;
17013 wxBitmap *arg3 = 0 ;
17014 wxBitmap const &arg4_defvalue = wxNullBitmap ;
17015 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
17016 bool result;
17017 PyObject * obj0 = 0 ;
17018 PyObject * obj1 = 0 ;
17019 PyObject * obj2 = 0 ;
17020 PyObject * obj3 = 0 ;
17021 char *kwnames[] = {
17022 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
17023 };
17024
17025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17028 arg2 = (int) SWIG_AsInt(obj1);
17029 if (PyErr_Occurred()) SWIG_fail;
17030 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
17031 SWIG_POINTER_EXCEPTION | 0)) == -1)
17032 SWIG_fail;
17033 if (arg3 == NULL) {
17034 PyErr_SetString(PyExc_TypeError,"null reference");
17035 SWIG_fail;
17036 }
17037 if (obj3) {
17038 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
17039 SWIG_POINTER_EXCEPTION | 0)) == -1)
17040 SWIG_fail;
17041 if (arg4 == NULL) {
17042 PyErr_SetString(PyExc_TypeError,"null reference");
17043 SWIG_fail;
17044 }
17045 }
17046 {
17047 PyThreadState* __tstate = wxPyBeginAllowThreads();
17048 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
17049
17050 wxPyEndAllowThreads(__tstate);
17051 if (PyErr_Occurred()) SWIG_fail;
17052 }
17053 {
17054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17055 }
17056 return resultobj;
17057 fail:
17058 return NULL;
17059 }
17060
17061
17062 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
17063 PyObject *resultobj;
17064 wxImageList *arg1 = (wxImageList *) 0 ;
17065 int arg2 ;
17066 wxDC *arg3 = 0 ;
17067 int arg4 ;
17068 int arg5 ;
17069 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
17070 bool arg7 = (bool) (bool)False ;
17071 bool result;
17072 PyObject * obj0 = 0 ;
17073 PyObject * obj1 = 0 ;
17074 PyObject * obj2 = 0 ;
17075 PyObject * obj3 = 0 ;
17076 PyObject * obj4 = 0 ;
17077 PyObject * obj5 = 0 ;
17078 PyObject * obj6 = 0 ;
17079 char *kwnames[] = {
17080 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
17081 };
17082
17083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17086 arg2 = (int) SWIG_AsInt(obj1);
17087 if (PyErr_Occurred()) SWIG_fail;
17088 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
17089 SWIG_POINTER_EXCEPTION | 0)) == -1)
17090 SWIG_fail;
17091 if (arg3 == NULL) {
17092 PyErr_SetString(PyExc_TypeError,"null reference");
17093 SWIG_fail;
17094 }
17095 arg4 = (int) SWIG_AsInt(obj3);
17096 if (PyErr_Occurred()) SWIG_fail;
17097 arg5 = (int) SWIG_AsInt(obj4);
17098 if (PyErr_Occurred()) SWIG_fail;
17099 if (obj5) {
17100 arg6 = (int) SWIG_AsInt(obj5);
17101 if (PyErr_Occurred()) SWIG_fail;
17102 }
17103 if (obj6) {
17104 arg7 = (bool const) SWIG_AsBool(obj6);
17105 if (PyErr_Occurred()) SWIG_fail;
17106 }
17107 {
17108 PyThreadState* __tstate = wxPyBeginAllowThreads();
17109 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
17110
17111 wxPyEndAllowThreads(__tstate);
17112 if (PyErr_Occurred()) SWIG_fail;
17113 }
17114 {
17115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17116 }
17117 return resultobj;
17118 fail:
17119 return NULL;
17120 }
17121
17122
17123 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17124 PyObject *resultobj;
17125 wxImageList *arg1 = (wxImageList *) 0 ;
17126 int result;
17127 PyObject * obj0 = 0 ;
17128 char *kwnames[] = {
17129 (char *) "self", NULL
17130 };
17131
17132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
17133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17135 {
17136 PyThreadState* __tstate = wxPyBeginAllowThreads();
17137 result = (int)(arg1)->GetImageCount();
17138
17139 wxPyEndAllowThreads(__tstate);
17140 if (PyErr_Occurred()) SWIG_fail;
17141 }
17142 resultobj = SWIG_FromInt((int)result);
17143 return resultobj;
17144 fail:
17145 return NULL;
17146 }
17147
17148
17149 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
17150 PyObject *resultobj;
17151 wxImageList *arg1 = (wxImageList *) 0 ;
17152 int arg2 ;
17153 bool result;
17154 PyObject * obj0 = 0 ;
17155 PyObject * obj1 = 0 ;
17156 char *kwnames[] = {
17157 (char *) "self",(char *) "index", NULL
17158 };
17159
17160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
17161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17163 arg2 = (int) SWIG_AsInt(obj1);
17164 if (PyErr_Occurred()) SWIG_fail;
17165 {
17166 PyThreadState* __tstate = wxPyBeginAllowThreads();
17167 result = (bool)(arg1)->Remove(arg2);
17168
17169 wxPyEndAllowThreads(__tstate);
17170 if (PyErr_Occurred()) SWIG_fail;
17171 }
17172 {
17173 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17174 }
17175 return resultobj;
17176 fail:
17177 return NULL;
17178 }
17179
17180
17181 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
17182 PyObject *resultobj;
17183 wxImageList *arg1 = (wxImageList *) 0 ;
17184 bool result;
17185 PyObject * obj0 = 0 ;
17186 char *kwnames[] = {
17187 (char *) "self", NULL
17188 };
17189
17190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
17191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17193 {
17194 PyThreadState* __tstate = wxPyBeginAllowThreads();
17195 result = (bool)(arg1)->RemoveAll();
17196
17197 wxPyEndAllowThreads(__tstate);
17198 if (PyErr_Occurred()) SWIG_fail;
17199 }
17200 {
17201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17202 }
17203 return resultobj;
17204 fail:
17205 return NULL;
17206 }
17207
17208
17209 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
17210 PyObject *resultobj;
17211 wxImageList *arg1 = (wxImageList *) 0 ;
17212 int arg2 ;
17213 int *arg3 = 0 ;
17214 int *arg4 = 0 ;
17215 int temp3 ;
17216 int temp4 ;
17217 PyObject * obj0 = 0 ;
17218 PyObject * obj1 = 0 ;
17219 char *kwnames[] = {
17220 (char *) "self",(char *) "index", NULL
17221 };
17222
17223 arg3 = &temp3;
17224 arg4 = &temp4;
17225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
17226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17228 arg2 = (int) SWIG_AsInt(obj1);
17229 if (PyErr_Occurred()) SWIG_fail;
17230 {
17231 PyThreadState* __tstate = wxPyBeginAllowThreads();
17232 (arg1)->GetSize(arg2,*arg3,*arg4);
17233
17234 wxPyEndAllowThreads(__tstate);
17235 if (PyErr_Occurred()) SWIG_fail;
17236 }
17237 Py_INCREF(Py_None); resultobj = Py_None;
17238 {
17239 PyObject *o = PyInt_FromLong((long) (*arg3));
17240 resultobj = t_output_helper(resultobj,o);
17241 }
17242 {
17243 PyObject *o = PyInt_FromLong((long) (*arg4));
17244 resultobj = t_output_helper(resultobj,o);
17245 }
17246 return resultobj;
17247 fail:
17248 return NULL;
17249 }
17250
17251
17252 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
17253 PyObject *obj;
17254 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17255 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
17256 Py_INCREF(obj);
17257 return Py_BuildValue((char *)"");
17258 }
17259 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
17260 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
17261 return 1;
17262 }
17263
17264
17265 static PyObject *_wrap_NORMAL_FONT_get() {
17266 PyObject *pyobj;
17267
17268 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
17269 return pyobj;
17270 }
17271
17272
17273 static int _wrap_SMALL_FONT_set(PyObject *_val) {
17274 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
17275 return 1;
17276 }
17277
17278
17279 static PyObject *_wrap_SMALL_FONT_get() {
17280 PyObject *pyobj;
17281
17282 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
17283 return pyobj;
17284 }
17285
17286
17287 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
17288 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
17289 return 1;
17290 }
17291
17292
17293 static PyObject *_wrap_ITALIC_FONT_get() {
17294 PyObject *pyobj;
17295
17296 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
17297 return pyobj;
17298 }
17299
17300
17301 static int _wrap_SWISS_FONT_set(PyObject *_val) {
17302 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
17303 return 1;
17304 }
17305
17306
17307 static PyObject *_wrap_SWISS_FONT_get() {
17308 PyObject *pyobj;
17309
17310 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
17311 return pyobj;
17312 }
17313
17314
17315 static int _wrap_RED_PEN_set(PyObject *_val) {
17316 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
17317 return 1;
17318 }
17319
17320
17321 static PyObject *_wrap_RED_PEN_get() {
17322 PyObject *pyobj;
17323
17324 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
17325 return pyobj;
17326 }
17327
17328
17329 static int _wrap_CYAN_PEN_set(PyObject *_val) {
17330 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
17331 return 1;
17332 }
17333
17334
17335 static PyObject *_wrap_CYAN_PEN_get() {
17336 PyObject *pyobj;
17337
17338 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
17339 return pyobj;
17340 }
17341
17342
17343 static int _wrap_GREEN_PEN_set(PyObject *_val) {
17344 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
17345 return 1;
17346 }
17347
17348
17349 static PyObject *_wrap_GREEN_PEN_get() {
17350 PyObject *pyobj;
17351
17352 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
17353 return pyobj;
17354 }
17355
17356
17357 static int _wrap_BLACK_PEN_set(PyObject *_val) {
17358 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
17359 return 1;
17360 }
17361
17362
17363 static PyObject *_wrap_BLACK_PEN_get() {
17364 PyObject *pyobj;
17365
17366 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
17367 return pyobj;
17368 }
17369
17370
17371 static int _wrap_WHITE_PEN_set(PyObject *_val) {
17372 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
17373 return 1;
17374 }
17375
17376
17377 static PyObject *_wrap_WHITE_PEN_get() {
17378 PyObject *pyobj;
17379
17380 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
17381 return pyobj;
17382 }
17383
17384
17385 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
17386 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
17387 return 1;
17388 }
17389
17390
17391 static PyObject *_wrap_TRANSPARENT_PEN_get() {
17392 PyObject *pyobj;
17393
17394 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
17395 return pyobj;
17396 }
17397
17398
17399 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
17400 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
17401 return 1;
17402 }
17403
17404
17405 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
17406 PyObject *pyobj;
17407
17408 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
17409 return pyobj;
17410 }
17411
17412
17413 static int _wrap_GREY_PEN_set(PyObject *_val) {
17414 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
17415 return 1;
17416 }
17417
17418
17419 static PyObject *_wrap_GREY_PEN_get() {
17420 PyObject *pyobj;
17421
17422 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
17423 return pyobj;
17424 }
17425
17426
17427 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
17428 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
17429 return 1;
17430 }
17431
17432
17433 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
17434 PyObject *pyobj;
17435
17436 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17437 return pyobj;
17438 }
17439
17440
17441 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
17442 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
17443 return 1;
17444 }
17445
17446
17447 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
17448 PyObject *pyobj;
17449
17450 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17451 return pyobj;
17452 }
17453
17454
17455 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
17456 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
17457 return 1;
17458 }
17459
17460
17461 static PyObject *_wrap_BLUE_BRUSH_get() {
17462 PyObject *pyobj;
17463
17464 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17465 return pyobj;
17466 }
17467
17468
17469 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
17470 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
17471 return 1;
17472 }
17473
17474
17475 static PyObject *_wrap_GREEN_BRUSH_get() {
17476 PyObject *pyobj;
17477
17478 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17479 return pyobj;
17480 }
17481
17482
17483 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
17484 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
17485 return 1;
17486 }
17487
17488
17489 static PyObject *_wrap_WHITE_BRUSH_get() {
17490 PyObject *pyobj;
17491
17492 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17493 return pyobj;
17494 }
17495
17496
17497 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
17498 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
17499 return 1;
17500 }
17501
17502
17503 static PyObject *_wrap_BLACK_BRUSH_get() {
17504 PyObject *pyobj;
17505
17506 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
17507 return pyobj;
17508 }
17509
17510
17511 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
17512 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
17513 return 1;
17514 }
17515
17516
17517 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
17518 PyObject *pyobj;
17519
17520 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
17521 return pyobj;
17522 }
17523
17524
17525 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
17526 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
17527 return 1;
17528 }
17529
17530
17531 static PyObject *_wrap_CYAN_BRUSH_get() {
17532 PyObject *pyobj;
17533
17534 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17535 return pyobj;
17536 }
17537
17538
17539 static int _wrap_RED_BRUSH_set(PyObject *_val) {
17540 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
17541 return 1;
17542 }
17543
17544
17545 static PyObject *_wrap_RED_BRUSH_get() {
17546 PyObject *pyobj;
17547
17548 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
17549 return pyobj;
17550 }
17551
17552
17553 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
17554 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
17555 return 1;
17556 }
17557
17558
17559 static PyObject *_wrap_GREY_BRUSH_get() {
17560 PyObject *pyobj;
17561
17562 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17563 return pyobj;
17564 }
17565
17566
17567 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
17568 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
17569 return 1;
17570 }
17571
17572
17573 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
17574 PyObject *pyobj;
17575
17576 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17577 return pyobj;
17578 }
17579
17580
17581 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
17582 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
17583 return 1;
17584 }
17585
17586
17587 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
17588 PyObject *pyobj;
17589
17590 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17591 return pyobj;
17592 }
17593
17594
17595 static int _wrap_BLACK_set(PyObject *_val) {
17596 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
17597 return 1;
17598 }
17599
17600
17601 static PyObject *_wrap_BLACK_get() {
17602 PyObject *pyobj;
17603
17604 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
17605 return pyobj;
17606 }
17607
17608
17609 static int _wrap_WHITE_set(PyObject *_val) {
17610 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
17611 return 1;
17612 }
17613
17614
17615 static PyObject *_wrap_WHITE_get() {
17616 PyObject *pyobj;
17617
17618 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
17619 return pyobj;
17620 }
17621
17622
17623 static int _wrap_RED_set(PyObject *_val) {
17624 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
17625 return 1;
17626 }
17627
17628
17629 static PyObject *_wrap_RED_get() {
17630 PyObject *pyobj;
17631
17632 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
17633 return pyobj;
17634 }
17635
17636
17637 static int _wrap_BLUE_set(PyObject *_val) {
17638 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
17639 return 1;
17640 }
17641
17642
17643 static PyObject *_wrap_BLUE_get() {
17644 PyObject *pyobj;
17645
17646 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
17647 return pyobj;
17648 }
17649
17650
17651 static int _wrap_GREEN_set(PyObject *_val) {
17652 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
17653 return 1;
17654 }
17655
17656
17657 static PyObject *_wrap_GREEN_get() {
17658 PyObject *pyobj;
17659
17660 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
17661 return pyobj;
17662 }
17663
17664
17665 static int _wrap_CYAN_set(PyObject *_val) {
17666 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
17667 return 1;
17668 }
17669
17670
17671 static PyObject *_wrap_CYAN_get() {
17672 PyObject *pyobj;
17673
17674 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
17675 return pyobj;
17676 }
17677
17678
17679 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
17680 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
17681 return 1;
17682 }
17683
17684
17685 static PyObject *_wrap_LIGHT_GREY_get() {
17686 PyObject *pyobj;
17687
17688 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
17689 return pyobj;
17690 }
17691
17692
17693 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
17694 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
17695 return 1;
17696 }
17697
17698
17699 static PyObject *_wrap_STANDARD_CURSOR_get() {
17700 PyObject *pyobj;
17701
17702 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
17703 return pyobj;
17704 }
17705
17706
17707 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
17708 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
17709 return 1;
17710 }
17711
17712
17713 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
17714 PyObject *pyobj;
17715
17716 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17717 return pyobj;
17718 }
17719
17720
17721 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
17722 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
17723 return 1;
17724 }
17725
17726
17727 static PyObject *_wrap_CROSS_CURSOR_get() {
17728 PyObject *pyobj;
17729
17730 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17731 return pyobj;
17732 }
17733
17734
17735 static int _wrap_NullBitmap_set(PyObject *_val) {
17736 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
17737 return 1;
17738 }
17739
17740
17741 static PyObject *_wrap_NullBitmap_get() {
17742 PyObject *pyobj;
17743
17744 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
17745 return pyobj;
17746 }
17747
17748
17749 static int _wrap_NullIcon_set(PyObject *_val) {
17750 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
17751 return 1;
17752 }
17753
17754
17755 static PyObject *_wrap_NullIcon_get() {
17756 PyObject *pyobj;
17757
17758 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
17759 return pyobj;
17760 }
17761
17762
17763 static int _wrap_NullCursor_set(PyObject *_val) {
17764 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
17765 return 1;
17766 }
17767
17768
17769 static PyObject *_wrap_NullCursor_get() {
17770 PyObject *pyobj;
17771
17772 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
17773 return pyobj;
17774 }
17775
17776
17777 static int _wrap_NullPen_set(PyObject *_val) {
17778 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
17779 return 1;
17780 }
17781
17782
17783 static PyObject *_wrap_NullPen_get() {
17784 PyObject *pyobj;
17785
17786 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
17787 return pyobj;
17788 }
17789
17790
17791 static int _wrap_NullBrush_set(PyObject *_val) {
17792 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
17793 return 1;
17794 }
17795
17796
17797 static PyObject *_wrap_NullBrush_get() {
17798 PyObject *pyobj;
17799
17800 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
17801 return pyobj;
17802 }
17803
17804
17805 static int _wrap_NullPalette_set(PyObject *_val) {
17806 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17807 return 1;
17808 }
17809
17810
17811 static PyObject *_wrap_NullPalette_get() {
17812 PyObject *pyobj;
17813
17814 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
17815 return pyobj;
17816 }
17817
17818
17819 static int _wrap_NullFont_set(PyObject *_val) {
17820 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17821 return 1;
17822 }
17823
17824
17825 static PyObject *_wrap_NullFont_get() {
17826 PyObject *pyobj;
17827
17828 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
17829 return pyobj;
17830 }
17831
17832
17833 static int _wrap_NullColour_set(PyObject *_val) {
17834 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17835 return 1;
17836 }
17837
17838
17839 static PyObject *_wrap_NullColour_get() {
17840 PyObject *pyobj;
17841
17842 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17843 return pyobj;
17844 }
17845
17846
17847 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
17848 PyObject *resultobj;
17849 wxPenList *arg1 = (wxPenList *) 0 ;
17850 wxPen *arg2 = (wxPen *) 0 ;
17851 PyObject * obj0 = 0 ;
17852 PyObject * obj1 = 0 ;
17853 char *kwnames[] = {
17854 (char *) "self",(char *) "pen", NULL
17855 };
17856
17857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17860 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17862 {
17863 PyThreadState* __tstate = wxPyBeginAllowThreads();
17864 (arg1)->AddPen(arg2);
17865
17866 wxPyEndAllowThreads(__tstate);
17867 if (PyErr_Occurred()) SWIG_fail;
17868 }
17869 Py_INCREF(Py_None); resultobj = Py_None;
17870 return resultobj;
17871 fail:
17872 return NULL;
17873 }
17874
17875
17876 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17877 PyObject *resultobj;
17878 wxPenList *arg1 = (wxPenList *) 0 ;
17879 wxColour *arg2 = 0 ;
17880 int arg3 ;
17881 int arg4 ;
17882 wxPen *result;
17883 wxColour temp2 ;
17884 PyObject * obj0 = 0 ;
17885 PyObject * obj1 = 0 ;
17886 PyObject * obj2 = 0 ;
17887 PyObject * obj3 = 0 ;
17888 char *kwnames[] = {
17889 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17890 };
17891
17892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17895 {
17896 arg2 = &temp2;
17897 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17898 }
17899 arg3 = (int) SWIG_AsInt(obj2);
17900 if (PyErr_Occurred()) SWIG_fail;
17901 arg4 = (int) SWIG_AsInt(obj3);
17902 if (PyErr_Occurred()) SWIG_fail;
17903 {
17904 PyThreadState* __tstate = wxPyBeginAllowThreads();
17905 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17906
17907 wxPyEndAllowThreads(__tstate);
17908 if (PyErr_Occurred()) SWIG_fail;
17909 }
17910 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17911 return resultobj;
17912 fail:
17913 return NULL;
17914 }
17915
17916
17917 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17918 PyObject *resultobj;
17919 wxPenList *arg1 = (wxPenList *) 0 ;
17920 wxPen *arg2 = (wxPen *) 0 ;
17921 PyObject * obj0 = 0 ;
17922 PyObject * obj1 = 0 ;
17923 char *kwnames[] = {
17924 (char *) "self",(char *) "pen", NULL
17925 };
17926
17927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17930 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17932 {
17933 PyThreadState* __tstate = wxPyBeginAllowThreads();
17934 (arg1)->RemovePen(arg2);
17935
17936 wxPyEndAllowThreads(__tstate);
17937 if (PyErr_Occurred()) SWIG_fail;
17938 }
17939 Py_INCREF(Py_None); resultobj = Py_None;
17940 return resultobj;
17941 fail:
17942 return NULL;
17943 }
17944
17945
17946 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17947 PyObject *resultobj;
17948 wxPenList *arg1 = (wxPenList *) 0 ;
17949 int result;
17950 PyObject * obj0 = 0 ;
17951 char *kwnames[] = {
17952 (char *) "self", NULL
17953 };
17954
17955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17958 {
17959 PyThreadState* __tstate = wxPyBeginAllowThreads();
17960 result = (int)(arg1)->GetCount();
17961
17962 wxPyEndAllowThreads(__tstate);
17963 if (PyErr_Occurred()) SWIG_fail;
17964 }
17965 resultobj = SWIG_FromInt((int)result);
17966 return resultobj;
17967 fail:
17968 return NULL;
17969 }
17970
17971
17972 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17973 PyObject *obj;
17974 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17975 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17976 Py_INCREF(obj);
17977 return Py_BuildValue((char *)"");
17978 }
17979 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17980 PyObject *resultobj;
17981 wxBrushList *arg1 = (wxBrushList *) 0 ;
17982 wxBrush *arg2 = (wxBrush *) 0 ;
17983 PyObject * obj0 = 0 ;
17984 PyObject * obj1 = 0 ;
17985 char *kwnames[] = {
17986 (char *) "self",(char *) "brush", NULL
17987 };
17988
17989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17992 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17994 {
17995 PyThreadState* __tstate = wxPyBeginAllowThreads();
17996 (arg1)->AddBrush(arg2);
17997
17998 wxPyEndAllowThreads(__tstate);
17999 if (PyErr_Occurred()) SWIG_fail;
18000 }
18001 Py_INCREF(Py_None); resultobj = Py_None;
18002 return resultobj;
18003 fail:
18004 return NULL;
18005 }
18006
18007
18008 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
18009 PyObject *resultobj;
18010 wxBrushList *arg1 = (wxBrushList *) 0 ;
18011 wxColour *arg2 = 0 ;
18012 int arg3 ;
18013 wxBrush *result;
18014 wxColour temp2 ;
18015 PyObject * obj0 = 0 ;
18016 PyObject * obj1 = 0 ;
18017 PyObject * obj2 = 0 ;
18018 char *kwnames[] = {
18019 (char *) "self",(char *) "colour",(char *) "style", NULL
18020 };
18021
18022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
18023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
18024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18025 {
18026 arg2 = &temp2;
18027 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18028 }
18029 arg3 = (int) SWIG_AsInt(obj2);
18030 if (PyErr_Occurred()) SWIG_fail;
18031 {
18032 PyThreadState* __tstate = wxPyBeginAllowThreads();
18033 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
18034
18035 wxPyEndAllowThreads(__tstate);
18036 if (PyErr_Occurred()) SWIG_fail;
18037 }
18038 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
18039 return resultobj;
18040 fail:
18041 return NULL;
18042 }
18043
18044
18045 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
18046 PyObject *resultobj;
18047 wxBrushList *arg1 = (wxBrushList *) 0 ;
18048 wxBrush *arg2 = (wxBrush *) 0 ;
18049 PyObject * obj0 = 0 ;
18050 PyObject * obj1 = 0 ;
18051 char *kwnames[] = {
18052 (char *) "self",(char *) "brush", NULL
18053 };
18054
18055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
18056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
18057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18058 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
18059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18060 {
18061 PyThreadState* __tstate = wxPyBeginAllowThreads();
18062 (arg1)->RemoveBrush(arg2);
18063
18064 wxPyEndAllowThreads(__tstate);
18065 if (PyErr_Occurred()) SWIG_fail;
18066 }
18067 Py_INCREF(Py_None); resultobj = Py_None;
18068 return resultobj;
18069 fail:
18070 return NULL;
18071 }
18072
18073
18074 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
18075 PyObject *resultobj;
18076 wxBrushList *arg1 = (wxBrushList *) 0 ;
18077 int result;
18078 PyObject * obj0 = 0 ;
18079 char *kwnames[] = {
18080 (char *) "self", NULL
18081 };
18082
18083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
18084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
18085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18086 {
18087 PyThreadState* __tstate = wxPyBeginAllowThreads();
18088 result = (int)(arg1)->GetCount();
18089
18090 wxPyEndAllowThreads(__tstate);
18091 if (PyErr_Occurred()) SWIG_fail;
18092 }
18093 resultobj = SWIG_FromInt((int)result);
18094 return resultobj;
18095 fail:
18096 return NULL;
18097 }
18098
18099
18100 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
18101 PyObject *obj;
18102 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18103 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
18104 Py_INCREF(obj);
18105 return Py_BuildValue((char *)"");
18106 }
18107 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
18108 PyObject *resultobj;
18109 wxColourDatabase *result;
18110 char *kwnames[] = {
18111 NULL
18112 };
18113
18114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
18115 {
18116 PyThreadState* __tstate = wxPyBeginAllowThreads();
18117 result = (wxColourDatabase *)new wxColourDatabase();
18118
18119 wxPyEndAllowThreads(__tstate);
18120 if (PyErr_Occurred()) SWIG_fail;
18121 }
18122 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
18123 return resultobj;
18124 fail:
18125 return NULL;
18126 }
18127
18128
18129 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
18130 PyObject *resultobj;
18131 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18132 PyObject * obj0 = 0 ;
18133 char *kwnames[] = {
18134 (char *) "self", NULL
18135 };
18136
18137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
18138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18140 {
18141 PyThreadState* __tstate = wxPyBeginAllowThreads();
18142 delete arg1;
18143
18144 wxPyEndAllowThreads(__tstate);
18145 if (PyErr_Occurred()) SWIG_fail;
18146 }
18147 Py_INCREF(Py_None); resultobj = Py_None;
18148 return resultobj;
18149 fail:
18150 return NULL;
18151 }
18152
18153
18154 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
18155 PyObject *resultobj;
18156 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18157 wxString *arg2 = 0 ;
18158 wxColour result;
18159 bool temp2 = False ;
18160 PyObject * obj0 = 0 ;
18161 PyObject * obj1 = 0 ;
18162 char *kwnames[] = {
18163 (char *) "self",(char *) "name", NULL
18164 };
18165
18166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
18167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18169 {
18170 arg2 = wxString_in_helper(obj1);
18171 if (arg2 == NULL) SWIG_fail;
18172 temp2 = True;
18173 }
18174 {
18175 PyThreadState* __tstate = wxPyBeginAllowThreads();
18176 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
18177
18178 wxPyEndAllowThreads(__tstate);
18179 if (PyErr_Occurred()) SWIG_fail;
18180 }
18181 {
18182 wxColour * resultptr;
18183 resultptr = new wxColour((wxColour &) result);
18184 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18185 }
18186 {
18187 if (temp2)
18188 delete arg2;
18189 }
18190 return resultobj;
18191 fail:
18192 {
18193 if (temp2)
18194 delete arg2;
18195 }
18196 return NULL;
18197 }
18198
18199
18200 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
18201 PyObject *resultobj;
18202 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18203 wxColour *arg2 = 0 ;
18204 wxString result;
18205 wxColour temp2 ;
18206 PyObject * obj0 = 0 ;
18207 PyObject * obj1 = 0 ;
18208 char *kwnames[] = {
18209 (char *) "self",(char *) "colour", NULL
18210 };
18211
18212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
18213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18215 {
18216 arg2 = &temp2;
18217 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18218 }
18219 {
18220 PyThreadState* __tstate = wxPyBeginAllowThreads();
18221 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
18222
18223 wxPyEndAllowThreads(__tstate);
18224 if (PyErr_Occurred()) SWIG_fail;
18225 }
18226 {
18227 #if wxUSE_UNICODE
18228 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18229 #else
18230 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18231 #endif
18232 }
18233 return resultobj;
18234 fail:
18235 return NULL;
18236 }
18237
18238
18239 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18240 PyObject *resultobj;
18241 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18242 wxString *arg2 = 0 ;
18243 wxColour *arg3 = 0 ;
18244 bool temp2 = False ;
18245 wxColour temp3 ;
18246 PyObject * obj0 = 0 ;
18247 PyObject * obj1 = 0 ;
18248 PyObject * obj2 = 0 ;
18249 char *kwnames[] = {
18250 (char *) "self",(char *) "name",(char *) "colour", NULL
18251 };
18252
18253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
18254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18256 {
18257 arg2 = wxString_in_helper(obj1);
18258 if (arg2 == NULL) SWIG_fail;
18259 temp2 = True;
18260 }
18261 {
18262 arg3 = &temp3;
18263 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18264 }
18265 {
18266 PyThreadState* __tstate = wxPyBeginAllowThreads();
18267 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
18268
18269 wxPyEndAllowThreads(__tstate);
18270 if (PyErr_Occurred()) SWIG_fail;
18271 }
18272 Py_INCREF(Py_None); resultobj = Py_None;
18273 {
18274 if (temp2)
18275 delete arg2;
18276 }
18277 return resultobj;
18278 fail:
18279 {
18280 if (temp2)
18281 delete arg2;
18282 }
18283 return NULL;
18284 }
18285
18286
18287 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
18288 PyObject *resultobj;
18289 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18290 wxString *arg2 = 0 ;
18291 int arg3 ;
18292 int arg4 ;
18293 int arg5 ;
18294 bool temp2 = False ;
18295 PyObject * obj0 = 0 ;
18296 PyObject * obj1 = 0 ;
18297 PyObject * obj2 = 0 ;
18298 PyObject * obj3 = 0 ;
18299 PyObject * obj4 = 0 ;
18300 char *kwnames[] = {
18301 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
18302 };
18303
18304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18307 {
18308 arg2 = wxString_in_helper(obj1);
18309 if (arg2 == NULL) SWIG_fail;
18310 temp2 = True;
18311 }
18312 arg3 = (int) SWIG_AsInt(obj2);
18313 if (PyErr_Occurred()) SWIG_fail;
18314 arg4 = (int) SWIG_AsInt(obj3);
18315 if (PyErr_Occurred()) SWIG_fail;
18316 arg5 = (int) SWIG_AsInt(obj4);
18317 if (PyErr_Occurred()) SWIG_fail;
18318 {
18319 PyThreadState* __tstate = wxPyBeginAllowThreads();
18320 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
18321
18322 wxPyEndAllowThreads(__tstate);
18323 if (PyErr_Occurred()) SWIG_fail;
18324 }
18325 Py_INCREF(Py_None); resultobj = Py_None;
18326 {
18327 if (temp2)
18328 delete arg2;
18329 }
18330 return resultobj;
18331 fail:
18332 {
18333 if (temp2)
18334 delete arg2;
18335 }
18336 return NULL;
18337 }
18338
18339
18340 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
18341 PyObject *obj;
18342 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18343 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
18344 Py_INCREF(obj);
18345 return Py_BuildValue((char *)"");
18346 }
18347 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18348 PyObject *resultobj;
18349 wxFontList *arg1 = (wxFontList *) 0 ;
18350 wxFont *arg2 = (wxFont *) 0 ;
18351 PyObject * obj0 = 0 ;
18352 PyObject * obj1 = 0 ;
18353 char *kwnames[] = {
18354 (char *) "self",(char *) "font", NULL
18355 };
18356
18357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
18358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18360 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18362 {
18363 PyThreadState* __tstate = wxPyBeginAllowThreads();
18364 (arg1)->AddFont(arg2);
18365
18366 wxPyEndAllowThreads(__tstate);
18367 if (PyErr_Occurred()) SWIG_fail;
18368 }
18369 Py_INCREF(Py_None); resultobj = Py_None;
18370 return resultobj;
18371 fail:
18372 return NULL;
18373 }
18374
18375
18376 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18377 PyObject *resultobj;
18378 wxFontList *arg1 = (wxFontList *) 0 ;
18379 int arg2 ;
18380 int arg3 ;
18381 int arg4 ;
18382 int arg5 ;
18383 bool arg6 = (bool) False ;
18384 wxString const &arg7_defvalue = wxPyEmptyString ;
18385 wxString *arg7 = (wxString *) &arg7_defvalue ;
18386 int arg8 = (int) wxFONTENCODING_DEFAULT ;
18387 wxFont *result;
18388 bool temp7 = False ;
18389 PyObject * obj0 = 0 ;
18390 PyObject * obj1 = 0 ;
18391 PyObject * obj2 = 0 ;
18392 PyObject * obj3 = 0 ;
18393 PyObject * obj4 = 0 ;
18394 PyObject * obj5 = 0 ;
18395 PyObject * obj6 = 0 ;
18396 PyObject * obj7 = 0 ;
18397 char *kwnames[] = {
18398 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
18399 };
18400
18401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
18402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18404 arg2 = (int) SWIG_AsInt(obj1);
18405 if (PyErr_Occurred()) SWIG_fail;
18406 arg3 = (int) SWIG_AsInt(obj2);
18407 if (PyErr_Occurred()) SWIG_fail;
18408 arg4 = (int) SWIG_AsInt(obj3);
18409 if (PyErr_Occurred()) SWIG_fail;
18410 arg5 = (int) SWIG_AsInt(obj4);
18411 if (PyErr_Occurred()) SWIG_fail;
18412 if (obj5) {
18413 arg6 = (bool) SWIG_AsBool(obj5);
18414 if (PyErr_Occurred()) SWIG_fail;
18415 }
18416 if (obj6) {
18417 {
18418 arg7 = wxString_in_helper(obj6);
18419 if (arg7 == NULL) SWIG_fail;
18420 temp7 = True;
18421 }
18422 }
18423 if (obj7) {
18424 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
18425 if (PyErr_Occurred()) SWIG_fail;
18426 }
18427 {
18428 PyThreadState* __tstate = wxPyBeginAllowThreads();
18429 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
18430
18431 wxPyEndAllowThreads(__tstate);
18432 if (PyErr_Occurred()) SWIG_fail;
18433 }
18434 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
18435 {
18436 if (temp7)
18437 delete arg7;
18438 }
18439 return resultobj;
18440 fail:
18441 {
18442 if (temp7)
18443 delete arg7;
18444 }
18445 return NULL;
18446 }
18447
18448
18449 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18450 PyObject *resultobj;
18451 wxFontList *arg1 = (wxFontList *) 0 ;
18452 wxFont *arg2 = (wxFont *) 0 ;
18453 PyObject * obj0 = 0 ;
18454 PyObject * obj1 = 0 ;
18455 char *kwnames[] = {
18456 (char *) "self",(char *) "font", NULL
18457 };
18458
18459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
18460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18462 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18464 {
18465 PyThreadState* __tstate = wxPyBeginAllowThreads();
18466 (arg1)->RemoveFont(arg2);
18467
18468 wxPyEndAllowThreads(__tstate);
18469 if (PyErr_Occurred()) SWIG_fail;
18470 }
18471 Py_INCREF(Py_None); resultobj = Py_None;
18472 return resultobj;
18473 fail:
18474 return NULL;
18475 }
18476
18477
18478 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
18479 PyObject *resultobj;
18480 wxFontList *arg1 = (wxFontList *) 0 ;
18481 int result;
18482 PyObject * obj0 = 0 ;
18483 char *kwnames[] = {
18484 (char *) "self", NULL
18485 };
18486
18487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
18488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18490 {
18491 PyThreadState* __tstate = wxPyBeginAllowThreads();
18492 result = (int)(arg1)->GetCount();
18493
18494 wxPyEndAllowThreads(__tstate);
18495 if (PyErr_Occurred()) SWIG_fail;
18496 }
18497 resultobj = SWIG_FromInt((int)result);
18498 return resultobj;
18499 fail:
18500 return NULL;
18501 }
18502
18503
18504 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
18505 PyObject *obj;
18506 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18507 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
18508 Py_INCREF(obj);
18509 return Py_BuildValue((char *)"");
18510 }
18511 static int _wrap_TheFontList_set(PyObject *_val) {
18512 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
18513 return 1;
18514 }
18515
18516
18517 static PyObject *_wrap_TheFontList_get() {
18518 PyObject *pyobj;
18519
18520 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
18521 return pyobj;
18522 }
18523
18524
18525 static int _wrap_ThePenList_set(PyObject *_val) {
18526 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
18527 return 1;
18528 }
18529
18530
18531 static PyObject *_wrap_ThePenList_get() {
18532 PyObject *pyobj;
18533
18534 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
18535 return pyobj;
18536 }
18537
18538
18539 static int _wrap_TheBrushList_set(PyObject *_val) {
18540 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
18541 return 1;
18542 }
18543
18544
18545 static PyObject *_wrap_TheBrushList_get() {
18546 PyObject *pyobj;
18547
18548 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
18549 return pyobj;
18550 }
18551
18552
18553 static int _wrap_TheColourDatabase_set(PyObject *_val) {
18554 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
18555 return 1;
18556 }
18557
18558
18559 static PyObject *_wrap_TheColourDatabase_get() {
18560 PyObject *pyobj;
18561
18562 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
18563 return pyobj;
18564 }
18565
18566
18567 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
18568 PyObject *resultobj;
18569 wxEffects *result;
18570 char *kwnames[] = {
18571 NULL
18572 };
18573
18574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
18575 {
18576 PyThreadState* __tstate = wxPyBeginAllowThreads();
18577 result = (wxEffects *)new wxEffects();
18578
18579 wxPyEndAllowThreads(__tstate);
18580 if (PyErr_Occurred()) SWIG_fail;
18581 }
18582 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
18583 return resultobj;
18584 fail:
18585 return NULL;
18586 }
18587
18588
18589 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18590 PyObject *resultobj;
18591 wxEffects *arg1 = (wxEffects *) 0 ;
18592 wxColour result;
18593 PyObject * obj0 = 0 ;
18594 char *kwnames[] = {
18595 (char *) "self", NULL
18596 };
18597
18598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
18599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18601 {
18602 PyThreadState* __tstate = wxPyBeginAllowThreads();
18603 result = ((wxEffects const *)arg1)->GetHighlightColour();
18604
18605 wxPyEndAllowThreads(__tstate);
18606 if (PyErr_Occurred()) SWIG_fail;
18607 }
18608 {
18609 wxColour * resultptr;
18610 resultptr = new wxColour((wxColour &) result);
18611 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18612 }
18613 return resultobj;
18614 fail:
18615 return NULL;
18616 }
18617
18618
18619 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18620 PyObject *resultobj;
18621 wxEffects *arg1 = (wxEffects *) 0 ;
18622 wxColour result;
18623 PyObject * obj0 = 0 ;
18624 char *kwnames[] = {
18625 (char *) "self", NULL
18626 };
18627
18628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
18629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18631 {
18632 PyThreadState* __tstate = wxPyBeginAllowThreads();
18633 result = ((wxEffects const *)arg1)->GetLightShadow();
18634
18635 wxPyEndAllowThreads(__tstate);
18636 if (PyErr_Occurred()) SWIG_fail;
18637 }
18638 {
18639 wxColour * resultptr;
18640 resultptr = new wxColour((wxColour &) result);
18641 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18642 }
18643 return resultobj;
18644 fail:
18645 return NULL;
18646 }
18647
18648
18649 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18650 PyObject *resultobj;
18651 wxEffects *arg1 = (wxEffects *) 0 ;
18652 wxColour result;
18653 PyObject * obj0 = 0 ;
18654 char *kwnames[] = {
18655 (char *) "self", NULL
18656 };
18657
18658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
18659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18661 {
18662 PyThreadState* __tstate = wxPyBeginAllowThreads();
18663 result = ((wxEffects const *)arg1)->GetFaceColour();
18664
18665 wxPyEndAllowThreads(__tstate);
18666 if (PyErr_Occurred()) SWIG_fail;
18667 }
18668 {
18669 wxColour * resultptr;
18670 resultptr = new wxColour((wxColour &) result);
18671 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18672 }
18673 return resultobj;
18674 fail:
18675 return NULL;
18676 }
18677
18678
18679 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18680 PyObject *resultobj;
18681 wxEffects *arg1 = (wxEffects *) 0 ;
18682 wxColour result;
18683 PyObject * obj0 = 0 ;
18684 char *kwnames[] = {
18685 (char *) "self", NULL
18686 };
18687
18688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
18689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18691 {
18692 PyThreadState* __tstate = wxPyBeginAllowThreads();
18693 result = ((wxEffects const *)arg1)->GetMediumShadow();
18694
18695 wxPyEndAllowThreads(__tstate);
18696 if (PyErr_Occurred()) SWIG_fail;
18697 }
18698 {
18699 wxColour * resultptr;
18700 resultptr = new wxColour((wxColour &) result);
18701 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18702 }
18703 return resultobj;
18704 fail:
18705 return NULL;
18706 }
18707
18708
18709 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18710 PyObject *resultobj;
18711 wxEffects *arg1 = (wxEffects *) 0 ;
18712 wxColour result;
18713 PyObject * obj0 = 0 ;
18714 char *kwnames[] = {
18715 (char *) "self", NULL
18716 };
18717
18718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
18719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18721 {
18722 PyThreadState* __tstate = wxPyBeginAllowThreads();
18723 result = ((wxEffects const *)arg1)->GetDarkShadow();
18724
18725 wxPyEndAllowThreads(__tstate);
18726 if (PyErr_Occurred()) SWIG_fail;
18727 }
18728 {
18729 wxColour * resultptr;
18730 resultptr = new wxColour((wxColour &) result);
18731 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18732 }
18733 return resultobj;
18734 fail:
18735 return NULL;
18736 }
18737
18738
18739 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18740 PyObject *resultobj;
18741 wxEffects *arg1 = (wxEffects *) 0 ;
18742 wxColour *arg2 = 0 ;
18743 wxColour temp2 ;
18744 PyObject * obj0 = 0 ;
18745 PyObject * obj1 = 0 ;
18746 char *kwnames[] = {
18747 (char *) "self",(char *) "c", NULL
18748 };
18749
18750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
18751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18753 {
18754 arg2 = &temp2;
18755 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18756 }
18757 {
18758 PyThreadState* __tstate = wxPyBeginAllowThreads();
18759 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18760
18761 wxPyEndAllowThreads(__tstate);
18762 if (PyErr_Occurred()) SWIG_fail;
18763 }
18764 Py_INCREF(Py_None); resultobj = Py_None;
18765 return resultobj;
18766 fail:
18767 return NULL;
18768 }
18769
18770
18771 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18772 PyObject *resultobj;
18773 wxEffects *arg1 = (wxEffects *) 0 ;
18774 wxColour *arg2 = 0 ;
18775 wxColour temp2 ;
18776 PyObject * obj0 = 0 ;
18777 PyObject * obj1 = 0 ;
18778 char *kwnames[] = {
18779 (char *) "self",(char *) "c", NULL
18780 };
18781
18782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
18783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18785 {
18786 arg2 = &temp2;
18787 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18788 }
18789 {
18790 PyThreadState* __tstate = wxPyBeginAllowThreads();
18791 (arg1)->SetLightShadow((wxColour const &)*arg2);
18792
18793 wxPyEndAllowThreads(__tstate);
18794 if (PyErr_Occurred()) SWIG_fail;
18795 }
18796 Py_INCREF(Py_None); resultobj = Py_None;
18797 return resultobj;
18798 fail:
18799 return NULL;
18800 }
18801
18802
18803 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18804 PyObject *resultobj;
18805 wxEffects *arg1 = (wxEffects *) 0 ;
18806 wxColour *arg2 = 0 ;
18807 wxColour temp2 ;
18808 PyObject * obj0 = 0 ;
18809 PyObject * obj1 = 0 ;
18810 char *kwnames[] = {
18811 (char *) "self",(char *) "c", NULL
18812 };
18813
18814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18817 {
18818 arg2 = &temp2;
18819 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18820 }
18821 {
18822 PyThreadState* __tstate = wxPyBeginAllowThreads();
18823 (arg1)->SetFaceColour((wxColour const &)*arg2);
18824
18825 wxPyEndAllowThreads(__tstate);
18826 if (PyErr_Occurred()) SWIG_fail;
18827 }
18828 Py_INCREF(Py_None); resultobj = Py_None;
18829 return resultobj;
18830 fail:
18831 return NULL;
18832 }
18833
18834
18835 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18836 PyObject *resultobj;
18837 wxEffects *arg1 = (wxEffects *) 0 ;
18838 wxColour *arg2 = 0 ;
18839 wxColour temp2 ;
18840 PyObject * obj0 = 0 ;
18841 PyObject * obj1 = 0 ;
18842 char *kwnames[] = {
18843 (char *) "self",(char *) "c", NULL
18844 };
18845
18846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18849 {
18850 arg2 = &temp2;
18851 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18852 }
18853 {
18854 PyThreadState* __tstate = wxPyBeginAllowThreads();
18855 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18856
18857 wxPyEndAllowThreads(__tstate);
18858 if (PyErr_Occurred()) SWIG_fail;
18859 }
18860 Py_INCREF(Py_None); resultobj = Py_None;
18861 return resultobj;
18862 fail:
18863 return NULL;
18864 }
18865
18866
18867 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18868 PyObject *resultobj;
18869 wxEffects *arg1 = (wxEffects *) 0 ;
18870 wxColour *arg2 = 0 ;
18871 wxColour temp2 ;
18872 PyObject * obj0 = 0 ;
18873 PyObject * obj1 = 0 ;
18874 char *kwnames[] = {
18875 (char *) "self",(char *) "c", NULL
18876 };
18877
18878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18881 {
18882 arg2 = &temp2;
18883 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18884 }
18885 {
18886 PyThreadState* __tstate = wxPyBeginAllowThreads();
18887 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18888
18889 wxPyEndAllowThreads(__tstate);
18890 if (PyErr_Occurred()) SWIG_fail;
18891 }
18892 Py_INCREF(Py_None); resultobj = Py_None;
18893 return resultobj;
18894 fail:
18895 return NULL;
18896 }
18897
18898
18899 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18900 PyObject *resultobj;
18901 wxEffects *arg1 = (wxEffects *) 0 ;
18902 wxColour *arg2 = 0 ;
18903 wxColour *arg3 = 0 ;
18904 wxColour *arg4 = 0 ;
18905 wxColour *arg5 = 0 ;
18906 wxColour *arg6 = 0 ;
18907 wxColour temp2 ;
18908 wxColour temp3 ;
18909 wxColour temp4 ;
18910 wxColour temp5 ;
18911 wxColour temp6 ;
18912 PyObject * obj0 = 0 ;
18913 PyObject * obj1 = 0 ;
18914 PyObject * obj2 = 0 ;
18915 PyObject * obj3 = 0 ;
18916 PyObject * obj4 = 0 ;
18917 PyObject * obj5 = 0 ;
18918 char *kwnames[] = {
18919 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18920 };
18921
18922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18925 {
18926 arg2 = &temp2;
18927 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18928 }
18929 {
18930 arg3 = &temp3;
18931 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18932 }
18933 {
18934 arg4 = &temp4;
18935 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18936 }
18937 {
18938 arg5 = &temp5;
18939 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18940 }
18941 {
18942 arg6 = &temp6;
18943 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18944 }
18945 {
18946 PyThreadState* __tstate = wxPyBeginAllowThreads();
18947 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18948
18949 wxPyEndAllowThreads(__tstate);
18950 if (PyErr_Occurred()) SWIG_fail;
18951 }
18952 Py_INCREF(Py_None); resultobj = Py_None;
18953 return resultobj;
18954 fail:
18955 return NULL;
18956 }
18957
18958
18959 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18960 PyObject *resultobj;
18961 wxEffects *arg1 = (wxEffects *) 0 ;
18962 wxDC *arg2 = 0 ;
18963 wxRect *arg3 = 0 ;
18964 int arg4 = (int) 1 ;
18965 wxRect temp3 ;
18966 PyObject * obj0 = 0 ;
18967 PyObject * obj1 = 0 ;
18968 PyObject * obj2 = 0 ;
18969 PyObject * obj3 = 0 ;
18970 char *kwnames[] = {
18971 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18972 };
18973
18974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18977 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18978 SWIG_POINTER_EXCEPTION | 0)) == -1)
18979 SWIG_fail;
18980 if (arg2 == NULL) {
18981 PyErr_SetString(PyExc_TypeError,"null reference");
18982 SWIG_fail;
18983 }
18984 {
18985 arg3 = &temp3;
18986 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18987 }
18988 if (obj3) {
18989 arg4 = (int) SWIG_AsInt(obj3);
18990 if (PyErr_Occurred()) SWIG_fail;
18991 }
18992 {
18993 PyThreadState* __tstate = wxPyBeginAllowThreads();
18994 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18995
18996 wxPyEndAllowThreads(__tstate);
18997 if (PyErr_Occurred()) SWIG_fail;
18998 }
18999 Py_INCREF(Py_None); resultobj = Py_None;
19000 return resultobj;
19001 fail:
19002 return NULL;
19003 }
19004
19005
19006 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
19007 PyObject *resultobj;
19008 wxEffects *arg1 = (wxEffects *) 0 ;
19009 wxRect *arg2 = 0 ;
19010 wxDC *arg3 = 0 ;
19011 wxBitmap *arg4 = 0 ;
19012 bool result;
19013 wxRect temp2 ;
19014 PyObject * obj0 = 0 ;
19015 PyObject * obj1 = 0 ;
19016 PyObject * obj2 = 0 ;
19017 PyObject * obj3 = 0 ;
19018 char *kwnames[] = {
19019 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
19020 };
19021
19022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
19023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
19024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19025 {
19026 arg2 = &temp2;
19027 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19028 }
19029 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
19030 SWIG_POINTER_EXCEPTION | 0)) == -1)
19031 SWIG_fail;
19032 if (arg3 == NULL) {
19033 PyErr_SetString(PyExc_TypeError,"null reference");
19034 SWIG_fail;
19035 }
19036 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
19037 SWIG_POINTER_EXCEPTION | 0)) == -1)
19038 SWIG_fail;
19039 if (arg4 == NULL) {
19040 PyErr_SetString(PyExc_TypeError,"null reference");
19041 SWIG_fail;
19042 }
19043 {
19044 PyThreadState* __tstate = wxPyBeginAllowThreads();
19045 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
19046
19047 wxPyEndAllowThreads(__tstate);
19048 if (PyErr_Occurred()) SWIG_fail;
19049 }
19050 {
19051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19052 }
19053 return resultobj;
19054 fail:
19055 return NULL;
19056 }
19057
19058
19059 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
19060 PyObject *obj;
19061 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19062 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
19063 Py_INCREF(obj);
19064 return Py_BuildValue((char *)"");
19065 }
19066 static PyMethodDef SwigMethods[] = {
19067 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
19068 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
19069 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
19070 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
19071 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
19072 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
19073 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
19074 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
19075 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
19076 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
19077 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
19078 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
19079 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
19080 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
19081 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
19082 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
19083 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
19084 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
19085 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
19086 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
19087 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
19088 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
19089 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
19090 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
19091 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
19092 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
19093 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
19094 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
19095 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
19096 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
19097 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
19098 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
19099 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
19100 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
19101 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
19102 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
19103 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
19104 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
19105 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
19106 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
19107 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
19108 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
19109 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
19110 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
19111 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
19112 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
19113 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
19114 { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS },
19115 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS },
19116 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
19117 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
19118 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
19119 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
19120 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
19121 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
19122 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
19123 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
19124 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
19125 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
19126 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
19127 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
19128 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
19129 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
19130 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
19131 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
19132 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
19133 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
19134 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
19135 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
19136 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
19137 { (char *)"new_EmptyBitmap", _wrap_new_EmptyBitmap, METH_VARARGS },
19138 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
19139 { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
19140 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
19141 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
19142 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
19143 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
19144 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
19145 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS },
19146 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
19147 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
19148 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
19149 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
19150 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
19151 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
19152 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
19153 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
19154 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
19155 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
19156 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
19157 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
19158 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
19159 { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
19160 { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
19161 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
19162 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
19163 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
19164 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
19165 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
19166 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
19167 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
19168 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
19169 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
19170 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
19171 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
19172 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
19173 { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS },
19174 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS },
19175 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
19176 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
19177 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
19178 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
19179 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
19180 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
19181 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
19182 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS },
19183 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
19184 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
19185 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
19186 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
19187 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
19188 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
19189 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
19190 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
19191 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
19192 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
19193 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
19194 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
19195 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
19196 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
19197 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
19198 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
19199 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
19200 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
19201 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
19202 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
19203 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
19204 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
19205 { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS },
19206 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS },
19207 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
19208 { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS },
19209 { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS },
19210 { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS },
19211 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS },
19212 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
19213 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
19214 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS },
19215 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
19216 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
19217 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
19218 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
19219 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
19220 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
19221 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
19222 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
19223 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
19224 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
19225 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
19226 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
19227 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
19228 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
19229 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
19230 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
19231 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
19232 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
19233 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
19234 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
19235 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
19236 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
19237 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
19238 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
19239 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
19240 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
19241 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
19242 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
19243 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
19244 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
19245 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
19246 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
19247 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
19248 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
19249 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
19250 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
19251 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
19252 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
19253 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
19254 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
19255 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
19256 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
19257 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19258 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19259 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
19260 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
19261 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
19262 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
19263 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
19264 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
19265 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
19266 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
19267 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
19268 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
19269 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
19270 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
19271 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
19272 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
19273 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
19274 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
19275 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
19276 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
19277 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
19278 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
19279 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
19280 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
19281 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
19282 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
19283 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
19284 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
19285 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
19286 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
19287 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
19288 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
19289 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
19290 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
19291 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
19292 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
19293 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
19294 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
19295 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
19296 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
19297 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
19298 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
19299 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
19300 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
19301 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS },
19302 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
19303 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
19304 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
19305 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
19306 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
19307 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
19308 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
19309 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
19310 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
19311 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
19312 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
19313 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
19314 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
19315 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
19316 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
19317 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
19318 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
19319 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
19320 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
19321 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
19322 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
19323 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
19324 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
19325 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19326 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
19327 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
19328 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
19329 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
19330 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
19331 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
19332 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
19333 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
19334 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
19335 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
19336 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19337 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
19338 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
19339 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
19340 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
19341 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
19342 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
19343 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
19344 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
19345 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
19346 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
19347 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
19348 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
19349 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
19350 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
19351 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
19352 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
19353 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
19354 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
19355 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
19356 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
19357 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
19358 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
19359 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
19360 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
19361 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
19362 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
19363 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
19364 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
19365 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
19366 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
19367 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
19368 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
19369 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
19370 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
19371 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
19372 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
19373 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
19374 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
19375 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
19376 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
19377 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
19378 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
19379 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
19380 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
19381 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
19382 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
19383 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
19384 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
19385 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
19386 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
19387 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
19388 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
19389 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
19390 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
19391 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
19392 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
19393 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
19394 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
19395 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
19396 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
19397 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
19398 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
19399 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
19400 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
19401 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
19402 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
19403 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
19404 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
19405 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
19406 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
19407 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
19408 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
19409 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
19410 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
19411 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
19412 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
19413 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
19414 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
19415 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
19416 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
19417 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
19418 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
19419 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
19420 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
19421 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
19422 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
19423 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
19424 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
19425 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
19426 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
19427 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
19428 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
19429 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
19430 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
19431 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
19432 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
19433 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
19434 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
19435 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
19436 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
19437 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
19438 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
19439 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
19440 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
19441 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
19442 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
19443 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
19444 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
19445 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
19446 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
19447 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
19448 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
19449 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
19450 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
19451 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
19452 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
19453 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
19454 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
19455 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
19456 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
19457 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
19458 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
19459 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
19460 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
19461 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
19462 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
19463 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
19464 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
19465 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
19466 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
19467 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
19468 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
19469 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
19470 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
19471 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
19472 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
19473 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
19474 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
19475 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
19476 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
19477 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
19478 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
19479 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
19480 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
19481 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
19482 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
19483 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
19484 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
19485 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
19486 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
19487 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
19488 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
19489 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
19490 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
19491 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
19492 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
19493 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
19494 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
19495 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
19496 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
19497 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
19498 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
19499 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
19500 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
19501 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
19502 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
19503 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
19504 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
19505 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
19506 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
19507 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
19508 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
19509 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
19510 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
19511 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
19512 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
19513 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
19514 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
19515 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
19516 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
19517 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
19518 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
19519 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
19520 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
19521 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
19522 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
19523 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
19524 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
19525 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
19526 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
19527 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
19528 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
19529 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
19530 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
19531 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
19532 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
19533 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
19534 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
19535 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
19536 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
19537 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
19538 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
19539 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
19540 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
19541 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
19542 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
19543 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
19544 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
19545 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
19546 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
19547 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
19548 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
19549 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
19550 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
19551 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS },
19552 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
19553 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
19554 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
19555 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
19556 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
19557 { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
19558 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
19559 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
19560 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
19561 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
19562 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
19563 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
19564 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
19565 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
19566 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
19567 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
19568 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
19569 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
19570 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
19571 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
19572 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
19573 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
19574 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
19575 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
19576 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
19577 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
19578 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
19579 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
19580 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
19581 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
19582 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
19583 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
19584 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
19585 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
19586 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
19587 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
19588 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
19589 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
19590 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
19591 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
19592 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
19593 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
19594 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
19595 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
19596 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
19597 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
19598 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
19599 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
19600 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
19601 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
19602 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
19603 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
19604 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
19605 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
19606 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
19607 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
19608 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
19609 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
19610 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
19611 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
19612 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
19613 { NULL, NULL }
19614 };
19615
19616
19617 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
19618
19619 static void *_p_wxControlTo_p_wxWindow(void *x) {
19620 return (void *)((wxWindow *) ((wxControl *) x));
19621 }
19622 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
19623 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
19624 }
19625 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
19626 return (void *)((wxWindow *) ((wxMenuBar *) x));
19627 }
19628 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
19629 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
19630 }
19631 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
19632 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
19633 }
19634 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
19635 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
19636 }
19637 static void *_p_wxPenTo_p_wxObject(void *x) {
19638 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
19639 }
19640 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
19641 return (void *)((wxObject *) ((wxRegionIterator *) x));
19642 }
19643 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
19644 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
19645 }
19646 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
19647 return (void *)((wxObject *) ((wxSizerItem *) x));
19648 }
19649 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
19650 return (void *)((wxObject *) ((wxColourDatabase *) x));
19651 }
19652 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
19653 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
19654 }
19655 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
19656 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
19657 }
19658 static void *_p_wxIconTo_p_wxObject(void *x) {
19659 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
19660 }
19661 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
19662 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
19663 }
19664 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
19665 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
19666 }
19667 static void *_p_wxSizerTo_p_wxObject(void *x) {
19668 return (void *)((wxObject *) ((wxSizer *) x));
19669 }
19670 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
19671 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
19672 }
19673 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
19674 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
19675 }
19676 static void *_p_wxPenListTo_p_wxObject(void *x) {
19677 return (void *)((wxObject *) ((wxPenList *) x));
19678 }
19679 static void *_p_wxEventTo_p_wxObject(void *x) {
19680 return (void *)((wxObject *) ((wxEvent *) x));
19681 }
19682 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
19683 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
19684 }
19685 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
19686 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
19687 }
19688 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
19689 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
19690 }
19691 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
19692 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
19693 }
19694 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
19695 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
19696 }
19697 static void *_p_wxDCTo_p_wxObject(void *x) {
19698 return (void *)((wxObject *) ((wxDC *) x));
19699 }
19700 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
19701 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
19702 }
19703 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
19704 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
19705 }
19706 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
19707 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
19708 }
19709 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
19710 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
19711 }
19712 static void *_p_wxControlTo_p_wxObject(void *x) {
19713 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
19714 }
19715 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
19716 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
19717 }
19718 static void *_p_wxClientDCTo_p_wxObject(void *x) {
19719 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
19720 }
19721 static void *_p_wxFSFileTo_p_wxObject(void *x) {
19722 return (void *)((wxObject *) ((wxFSFile *) x));
19723 }
19724 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
19725 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
19726 }
19727 static void *_p_wxRegionTo_p_wxObject(void *x) {
19728 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
19729 }
19730 static void *_p_wxPySizerTo_p_wxObject(void *x) {
19731 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
19732 }
19733 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
19734 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
19735 }
19736 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
19737 return (void *)((wxObject *) ((wxGDIObject *) x));
19738 }
19739 static void *_p_wxEffectsTo_p_wxObject(void *x) {
19740 return (void *)((wxObject *) ((wxEffects *) x));
19741 }
19742 static void *_p_wxPyEventTo_p_wxObject(void *x) {
19743 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
19744 }
19745 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
19746 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
19747 }
19748 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
19749 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
19750 }
19751 static void *_p_wxShowEventTo_p_wxObject(void *x) {
19752 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
19753 }
19754 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
19755 return (void *)((wxObject *) ((wxMenuItem *) x));
19756 }
19757 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
19758 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
19759 }
19760 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
19761 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
19762 }
19763 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
19764 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
19765 }
19766 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
19767 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
19768 }
19769 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
19770 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
19771 }
19772 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
19773 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
19774 }
19775 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
19776 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
19777 }
19778 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
19779 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
19780 }
19781 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
19782 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19783 }
19784 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19785 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19786 }
19787 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19788 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19789 }
19790 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19791 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19792 }
19793 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19794 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19795 }
19796 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19797 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19798 }
19799 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19800 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19801 }
19802 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19803 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19804 }
19805 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19806 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19807 }
19808 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19809 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19810 }
19811 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19812 return (void *)((wxObject *) ((wxImageHandler *) x));
19813 }
19814 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19815 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19816 }
19817 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19818 return (void *)((wxObject *) ((wxEvtHandler *) x));
19819 }
19820 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19821 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19822 }
19823 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19824 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19825 }
19826 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19827 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19828 }
19829 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19830 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19831 }
19832 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19833 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19834 }
19835 static void *_p_wxImageTo_p_wxObject(void *x) {
19836 return (void *)((wxObject *) ((wxImage *) x));
19837 }
19838 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19839 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19840 }
19841 static void *_p_wxPaletteTo_p_wxObject(void *x) {
19842 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19843 }
19844 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19845 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19846 }
19847 static void *_p_wxImageListTo_p_wxObject(void *x) {
19848 return (void *)((wxObject *) ((wxImageList *) x));
19849 }
19850 static void *_p_wxCursorTo_p_wxObject(void *x) {
19851 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19852 }
19853 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19854 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19855 }
19856 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19857 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19858 }
19859 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19860 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19861 }
19862 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19863 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19864 }
19865 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19866 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19867 }
19868 static void *_p_wxWindowTo_p_wxObject(void *x) {
19869 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19870 }
19871 static void *_p_wxMenuTo_p_wxObject(void *x) {
19872 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19873 }
19874 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19875 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19876 }
19877 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19878 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19879 }
19880 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19881 return (void *)((wxObject *) ((wxBrushList *) x));
19882 }
19883 static void *_p_wxPyPenTo_p_wxObject(void *x) {
19884 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
19885 }
19886 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19887 return (void *)((wxObject *) ((wxFileSystem *) x));
19888 }
19889 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19890 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19891 }
19892 static void *_p_wxMaskTo_p_wxObject(void *x) {
19893 return (void *)((wxObject *) ((wxMask *) x));
19894 }
19895 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19896 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19897 }
19898 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19899 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19900 }
19901 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19902 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19903 }
19904 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19905 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19906 }
19907 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19908 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19909 }
19910 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19911 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19912 }
19913 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19914 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19915 }
19916 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19917 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19918 }
19919 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19920 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19921 }
19922 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19923 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19924 }
19925 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19926 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19927 }
19928 static void *_p_wxFontTo_p_wxObject(void *x) {
19929 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19930 }
19931 static void *_p_wxBrushTo_p_wxObject(void *x) {
19932 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19933 }
19934 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19935 return (void *)((wxObject *) ((wxMetaFile *) x));
19936 }
19937 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19938 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19939 }
19940 static void *_p_wxColourTo_p_wxObject(void *x) {
19941 return (void *)((wxObject *) ((wxColour *) x));
19942 }
19943 static void *_p_wxFontListTo_p_wxObject(void *x) {
19944 return (void *)((wxObject *) ((wxFontList *) x));
19945 }
19946 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19947 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19948 }
19949 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19950 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19951 }
19952 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19953 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19954 }
19955 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19956 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19957 }
19958 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19959 return (void *)((wxDC *) ((wxScreenDC *) x));
19960 }
19961 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19962 return (void *)((wxDC *) ((wxMirrorDC *) x));
19963 }
19964 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19965 return (void *)((wxDC *) ((wxMemoryDC *) x));
19966 }
19967 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19968 return (void *)((wxDC *) ((wxWindowDC *) x));
19969 }
19970 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19971 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19972 }
19973 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19974 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19975 }
19976 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19977 return (void *)((wxDC *) ((wxClientDC *) x));
19978 }
19979 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19980 return (void *)((wxDC *) ((wxPaintDC *) x));
19981 }
19982 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19983 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19984 }
19985 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19986 return (void *)((wxDC *) ((wxPrinterDC *) x));
19987 }
19988 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
19989 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
19990 }
19991 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19992 return (void *)((wxGDIObject *) ((wxIcon *) x));
19993 }
19994 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19995 return (void *)((wxGDIObject *) ((wxPalette *) x));
19996 }
19997 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19998 return (void *)((wxGDIObject *) ((wxPen *) x));
19999 }
20000 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
20001 return (void *)((wxGDIObject *) ((wxFont *) x));
20002 }
20003 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
20004 return (void *)((wxGDIObject *) ((wxCursor *) x));
20005 }
20006 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
20007 return (void *)((wxGDIObject *) ((wxBitmap *) x));
20008 }
20009 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
20010 return (void *)((wxGDIObject *) ((wxRegion *) x));
20011 }
20012 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
20013 return (void *)((wxGDIObject *) ((wxBrush *) x));
20014 }
20015 static void *_p_wxPyPenTo_p_wxPen(void *x) {
20016 return (void *)((wxPen *) ((wxPyPen *) x));
20017 }
20018 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}};
20019 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}};
20020 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}};
20021 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}};
20022 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}};
20023 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}};
20024 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}};
20025 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}};
20026 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}};
20027 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}};
20028 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}};
20029 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}};
20030 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}};
20031 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}};
20032 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}};
20033 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}};
20034 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}};
20035 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}};
20036 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}};
20037 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}};
20038 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}};
20039 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}};
20040 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}};
20041 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}};
20042 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}};
20043 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}};
20044 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}};
20045 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}};
20046 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}};
20047 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}};
20048 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}};
20049 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}};
20050 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}};
20051 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}};
20052 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}};
20053 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}};
20054 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}};
20055 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}};
20056 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}};
20057 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}};
20058 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}};
20059 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}};
20060 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}};
20061 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}};
20062 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}};
20063 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}};
20064 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}};
20065 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}};
20066 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}};
20067 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}};
20068 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}};
20069 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}};
20070 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}};
20071 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}};
20072 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}};
20073 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}};
20074
20075 static swig_type_info *swig_types_initial[] = {
20076 _swigt__p_wxPostScriptDC,
20077 _swigt__p_wxBrush,
20078 _swigt__p_wxColour,
20079 _swigt__p_wxDC,
20080 _swigt__p_wxMirrorDC,
20081 _swigt__p_byte,
20082 _swigt__p_wxPyFontEnumerator,
20083 _swigt__p_char,
20084 _swigt__p_wxIconLocation,
20085 _swigt__p_wxImage,
20086 _swigt__p_wxMetaFileDC,
20087 _swigt__p_wxMask,
20088 _swigt__p_wxSize,
20089 _swigt__p_wxFont,
20090 _swigt__p_wxWindow,
20091 _swigt__p_double,
20092 _swigt__p_wxMemoryDC,
20093 _swigt__p_wxFontMapper,
20094 _swigt__p_wxEffects,
20095 _swigt__p_wxNativeEncodingInfo,
20096 _swigt__p_wxPalette,
20097 _swigt__p_wxBitmap,
20098 _swigt__p_wxObject,
20099 _swigt__p_wxRegionIterator,
20100 _swigt__p_wxRect,
20101 _swigt__p_wxString,
20102 _swigt__p_wxPrinterDC,
20103 _swigt__p_wxIconBundle,
20104 _swigt__p_wxPoint,
20105 _swigt__p_wxDash,
20106 _swigt__p_wxScreenDC,
20107 _swigt__p_wxCursor,
20108 _swigt__p_wxClientDC,
20109 _swigt__p_wxBufferedDC,
20110 _swigt__p_wxImageList,
20111 _swigt__p_unsigned_char,
20112 _swigt__p_wxGDIObject,
20113 _swigt__p_wxIcon,
20114 _swigt__p_wxLocale,
20115 _swigt__p_wxRegion,
20116 _swigt__p_wxConfigBase,
20117 _swigt__p_wxLanguageInfo,
20118 _swigt__p_wxWindowDC,
20119 _swigt__p_wxPrintData,
20120 _swigt__p_wxBrushList,
20121 _swigt__p_wxFontList,
20122 _swigt__p_wxPen,
20123 _swigt__p_wxBufferedPaintDC,
20124 _swigt__p_wxPaintDC,
20125 _swigt__p_wxPenList,
20126 _swigt__p_wxPyPen,
20127 _swigt__p_int,
20128 _swigt__p_wxMetaFile,
20129 _swigt__p_wxNativeFontInfo,
20130 _swigt__p_wxEncodingConverter,
20131 _swigt__p_wxColourDatabase,
20132 0
20133 };
20134
20135
20136 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
20137
20138 static swig_const_info swig_const_table[] = {
20139 {0}};
20140
20141 #ifdef __cplusplus
20142 }
20143 #endif
20144
20145 #ifdef __cplusplus
20146 extern "C"
20147 #endif
20148 SWIGEXPORT(void) SWIG_init(void) {
20149 static PyObject *SWIG_globals = 0;
20150 static int typeinit = 0;
20151 PyObject *m, *d;
20152 int i;
20153 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
20154 m = Py_InitModule((char *) SWIG_name, SwigMethods);
20155 d = PyModule_GetDict(m);
20156
20157 if (!typeinit) {
20158 for (i = 0; swig_types_initial[i]; i++) {
20159 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
20160 }
20161 typeinit = 1;
20162 }
20163 SWIG_InstallConstants(d,swig_const_table);
20164
20165 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
20166 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
20167 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
20168 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
20169 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
20170 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
20171 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
20172 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
20173 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
20174 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
20175 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
20176 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
20177 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
20178 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
20179 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
20180 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
20181 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
20182 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
20183 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
20184 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
20185 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
20186 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
20187 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
20188 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
20189 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
20190 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
20191 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
20192 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
20193 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
20194 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
20195 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
20196 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
20197 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
20198 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
20199 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
20200 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
20201 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
20202 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
20203 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
20204 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
20205 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
20206 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
20207 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
20208 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
20209 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
20210 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
20211 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
20212 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
20213 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
20214 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U));
20215 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
20216 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
20217 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
20218 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
20219 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
20220 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
20221 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
20222 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
20223 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
20224 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
20225 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
20226 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
20227 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
20228 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
20229 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
20230 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
20231 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
20232 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
20233 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
20234 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
20235 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
20236 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
20237 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
20238 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
20239 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
20240 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
20241 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
20242 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
20243 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
20244 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
20245 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
20246 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
20247 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
20248 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
20249 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
20250 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
20251 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
20252 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
20253 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
20254 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
20255 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
20256 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
20257 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
20258 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
20259 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
20260 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
20261 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
20262 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
20263 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
20264 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
20265 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
20266 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
20267 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
20268 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
20269 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
20270 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
20271 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
20272 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
20273 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
20274 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
20275 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
20276 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
20277 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
20278 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
20279 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
20280 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
20281 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
20282 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
20283 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
20284 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
20285 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
20286 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
20287 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
20288 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
20289 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
20290 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
20291 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
20292
20293 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
20294
20295 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
20296 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
20297 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
20298 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
20299 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
20300 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
20301 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
20302 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
20303 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
20304 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
20305 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
20306 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
20307 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
20308 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
20309 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
20310 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
20311 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
20312 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
20313 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
20314 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
20315 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
20316 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
20317 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
20318 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
20319 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
20320 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
20321 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
20322 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
20323 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
20324 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
20325 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
20326 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
20327 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
20328 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
20329 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
20330 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
20331 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
20332 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
20333 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
20334 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
20335 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
20336 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
20337 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
20338 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
20339 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
20340 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
20341 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
20342 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
20343 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
20344 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
20345 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
20346 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
20347 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
20348 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
20349 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
20350 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
20351 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
20352 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
20353 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
20354 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
20355 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
20356 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
20357 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
20358 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
20359 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
20360 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
20361 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
20362 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
20363 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
20364 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
20365 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
20366 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
20367 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
20368 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
20369 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
20370 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
20371 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
20372 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
20373 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
20374 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
20375 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
20376 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
20377 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
20378 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
20379 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
20380 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
20381 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
20382 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
20383 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
20384 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
20385 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
20386 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
20387 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
20388 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
20389 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
20390 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
20391 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
20392 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
20393 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
20394 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
20395 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
20396 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
20397 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
20398 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
20399 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
20400 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
20401 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
20402 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
20403 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
20404 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
20405 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
20406 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
20407 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
20408 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
20409 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
20410 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
20411 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
20412 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
20413 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
20414 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
20415 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
20416 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
20417 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
20418 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
20419 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
20420 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
20421 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
20422 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
20423 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
20424 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
20425 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
20426 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
20427 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
20428 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
20429 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
20430 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
20431 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
20432 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
20433 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
20434 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
20435 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
20436 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
20437 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
20438 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
20439 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
20440 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
20441 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
20442 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
20443 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
20444 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
20445 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
20446 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
20447 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
20448 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
20449 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
20450 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
20451 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
20452 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
20453 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
20454 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
20455 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
20456 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
20457 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
20458 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
20459 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
20460 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
20461 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
20462 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
20463 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
20464 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
20465 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
20466 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
20467 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
20468 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
20469 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
20470 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
20471 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
20472 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
20473 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
20474 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
20475 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
20476 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
20477 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
20478 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
20479 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
20480 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
20481 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
20482 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
20483 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
20484 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
20485 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
20486 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
20487 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
20488 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
20489 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
20490 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
20491 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
20492 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
20493 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
20494 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
20495 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
20496 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
20497 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
20498 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
20499 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
20500 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
20501 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
20502 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
20503 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
20504 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
20505 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
20506 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
20507 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
20508 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
20509 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
20510 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
20511 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
20512 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
20513 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
20514 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
20515 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
20516 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
20517 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
20518 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
20519 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
20520 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
20521 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
20522 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
20523 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
20524 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
20525 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
20526 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
20527 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
20528 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
20529 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
20530 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
20531 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
20532 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
20533 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
20534 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
20535 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
20536 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
20537 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
20538 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
20539 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
20540 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
20541 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
20542 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
20543 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
20544 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
20545 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
20546 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
20547 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
20548 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
20549 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
20550 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
20551 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
20552 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
20553 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
20554 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
20555 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
20556 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
20557 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
20558 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
20559 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
20560 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
20561 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
20562 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
20563 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
20564 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
20565 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
20566 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
20567 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
20568 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
20569 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
20570 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
20571 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
20572 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
20573 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
20574 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
20575 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
20576 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
20577 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
20578 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
20579 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
20580 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
20581 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
20582 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
20583 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
20584 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
20585 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
20586 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
20587 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
20588 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
20589 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
20590 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
20591 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
20592 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
20593 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
20594 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
20595
20596 // Work around a chicken/egg problem in drawlist.cpp
20597 wxPyDrawList_SetAPIPtr();
20598
20599 }
20600