]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
make it easier to do a gtk2 build
[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 #include <wx/dcbuffer.h>
845
846
847 #include <wx/dcps.h>
848
849
850 #include <wx/metafile.h>
851
852
853
854 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
855 self->AddColour(name, wxColour(red, green, blue));
856 }
857
858 #include <wx/effects.h>
859
860 #ifdef __cplusplus
861 extern "C" {
862 #endif
863 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
864 PyObject *resultobj;
865 wxGDIObject *result;
866 char *kwnames[] = {
867 NULL
868 };
869
870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
871 {
872 PyThreadState* __tstate = wxPyBeginAllowThreads();
873 result = (wxGDIObject *)new wxGDIObject();
874
875 wxPyEndAllowThreads(__tstate);
876 if (PyErr_Occurred()) SWIG_fail;
877 }
878 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
879 return resultobj;
880 fail:
881 return NULL;
882 }
883
884
885 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
886 PyObject *resultobj;
887 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
888 PyObject * obj0 = 0 ;
889 char *kwnames[] = {
890 (char *) "self", NULL
891 };
892
893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
896 {
897 PyThreadState* __tstate = wxPyBeginAllowThreads();
898 delete arg1;
899
900 wxPyEndAllowThreads(__tstate);
901 if (PyErr_Occurred()) SWIG_fail;
902 }
903 Py_INCREF(Py_None); resultobj = Py_None;
904 return resultobj;
905 fail:
906 return NULL;
907 }
908
909
910 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
911 PyObject *resultobj;
912 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
913 bool result;
914 PyObject * obj0 = 0 ;
915 char *kwnames[] = {
916 (char *) "self", NULL
917 };
918
919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
922 {
923 PyThreadState* __tstate = wxPyBeginAllowThreads();
924 result = (bool)(arg1)->GetVisible();
925
926 wxPyEndAllowThreads(__tstate);
927 if (PyErr_Occurred()) SWIG_fail;
928 }
929 {
930 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
931 }
932 return resultobj;
933 fail:
934 return NULL;
935 }
936
937
938 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
939 PyObject *resultobj;
940 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
941 bool arg2 ;
942 PyObject * obj0 = 0 ;
943 PyObject * obj1 = 0 ;
944 char *kwnames[] = {
945 (char *) "self",(char *) "visible", NULL
946 };
947
948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
951 arg2 = (bool) SWIG_AsBool(obj1);
952 if (PyErr_Occurred()) SWIG_fail;
953 {
954 PyThreadState* __tstate = wxPyBeginAllowThreads();
955 (arg1)->SetVisible(arg2);
956
957 wxPyEndAllowThreads(__tstate);
958 if (PyErr_Occurred()) SWIG_fail;
959 }
960 Py_INCREF(Py_None); resultobj = Py_None;
961 return resultobj;
962 fail:
963 return NULL;
964 }
965
966
967 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
968 PyObject *resultobj;
969 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
970 bool result;
971 PyObject * obj0 = 0 ;
972 char *kwnames[] = {
973 (char *) "self", NULL
974 };
975
976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
979 {
980 PyThreadState* __tstate = wxPyBeginAllowThreads();
981 result = (bool)(arg1)->IsNull();
982
983 wxPyEndAllowThreads(__tstate);
984 if (PyErr_Occurred()) SWIG_fail;
985 }
986 {
987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
988 }
989 return resultobj;
990 fail:
991 return NULL;
992 }
993
994
995 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
996 PyObject *obj;
997 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
998 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
999 Py_INCREF(obj);
1000 return Py_BuildValue((char *)"");
1001 }
1002 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1003 PyObject *resultobj;
1004 unsigned char arg1 = (unsigned char) 0 ;
1005 unsigned char arg2 = (unsigned char) 0 ;
1006 unsigned char arg3 = (unsigned char) 0 ;
1007 wxColour *result;
1008 PyObject * obj0 = 0 ;
1009 PyObject * obj1 = 0 ;
1010 PyObject * obj2 = 0 ;
1011 char *kwnames[] = {
1012 (char *) "red",(char *) "green",(char *) "blue", NULL
1013 };
1014
1015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1016 if (obj0) {
1017 arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0);
1018 if (PyErr_Occurred()) SWIG_fail;
1019 }
1020 if (obj1) {
1021 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1022 if (PyErr_Occurred()) SWIG_fail;
1023 }
1024 if (obj2) {
1025 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1026 if (PyErr_Occurred()) SWIG_fail;
1027 }
1028 {
1029 PyThreadState* __tstate = wxPyBeginAllowThreads();
1030 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1031
1032 wxPyEndAllowThreads(__tstate);
1033 if (PyErr_Occurred()) SWIG_fail;
1034 }
1035 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1036 return resultobj;
1037 fail:
1038 return NULL;
1039 }
1040
1041
1042 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1043 PyObject *resultobj;
1044 wxString *arg1 = 0 ;
1045 wxColour *result;
1046 bool temp1 = False ;
1047 PyObject * obj0 = 0 ;
1048 char *kwnames[] = {
1049 (char *) "colorName", NULL
1050 };
1051
1052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1053 {
1054 arg1 = wxString_in_helper(obj0);
1055 if (arg1 == NULL) SWIG_fail;
1056 temp1 = True;
1057 }
1058 {
1059 PyThreadState* __tstate = wxPyBeginAllowThreads();
1060 result = (wxColour *)new wxColour((wxString const &)*arg1);
1061
1062 wxPyEndAllowThreads(__tstate);
1063 if (PyErr_Occurred()) SWIG_fail;
1064 }
1065 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1066 {
1067 if (temp1)
1068 delete arg1;
1069 }
1070 return resultobj;
1071 fail:
1072 {
1073 if (temp1)
1074 delete arg1;
1075 }
1076 return NULL;
1077 }
1078
1079
1080 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1081 PyObject *resultobj;
1082 unsigned long arg1 ;
1083 wxColour *result;
1084 PyObject * obj0 = 0 ;
1085 char *kwnames[] = {
1086 (char *) "colRGB", NULL
1087 };
1088
1089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1090 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1091 if (PyErr_Occurred()) SWIG_fail;
1092 {
1093 PyThreadState* __tstate = wxPyBeginAllowThreads();
1094 result = (wxColour *)new wxColour(arg1);
1095
1096 wxPyEndAllowThreads(__tstate);
1097 if (PyErr_Occurred()) SWIG_fail;
1098 }
1099 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1100 return resultobj;
1101 fail:
1102 return NULL;
1103 }
1104
1105
1106 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1107 PyObject *resultobj;
1108 wxColour *arg1 = (wxColour *) 0 ;
1109 PyObject * obj0 = 0 ;
1110 char *kwnames[] = {
1111 (char *) "self", NULL
1112 };
1113
1114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1117 {
1118 PyThreadState* __tstate = wxPyBeginAllowThreads();
1119 delete arg1;
1120
1121 wxPyEndAllowThreads(__tstate);
1122 if (PyErr_Occurred()) SWIG_fail;
1123 }
1124 Py_INCREF(Py_None); resultobj = Py_None;
1125 return resultobj;
1126 fail:
1127 return NULL;
1128 }
1129
1130
1131 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1132 PyObject *resultobj;
1133 wxColour *arg1 = (wxColour *) 0 ;
1134 unsigned char result;
1135 PyObject * obj0 = 0 ;
1136 char *kwnames[] = {
1137 (char *) "self", NULL
1138 };
1139
1140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1143 {
1144 PyThreadState* __tstate = wxPyBeginAllowThreads();
1145 result = (unsigned char)(arg1)->Red();
1146
1147 wxPyEndAllowThreads(__tstate);
1148 if (PyErr_Occurred()) SWIG_fail;
1149 }
1150 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1151 return resultobj;
1152 fail:
1153 return NULL;
1154 }
1155
1156
1157 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1158 PyObject *resultobj;
1159 wxColour *arg1 = (wxColour *) 0 ;
1160 unsigned char result;
1161 PyObject * obj0 = 0 ;
1162 char *kwnames[] = {
1163 (char *) "self", NULL
1164 };
1165
1166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1169 {
1170 PyThreadState* __tstate = wxPyBeginAllowThreads();
1171 result = (unsigned char)(arg1)->Green();
1172
1173 wxPyEndAllowThreads(__tstate);
1174 if (PyErr_Occurred()) SWIG_fail;
1175 }
1176 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1177 return resultobj;
1178 fail:
1179 return NULL;
1180 }
1181
1182
1183 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1184 PyObject *resultobj;
1185 wxColour *arg1 = (wxColour *) 0 ;
1186 unsigned char result;
1187 PyObject * obj0 = 0 ;
1188 char *kwnames[] = {
1189 (char *) "self", NULL
1190 };
1191
1192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1195 {
1196 PyThreadState* __tstate = wxPyBeginAllowThreads();
1197 result = (unsigned char)(arg1)->Blue();
1198
1199 wxPyEndAllowThreads(__tstate);
1200 if (PyErr_Occurred()) SWIG_fail;
1201 }
1202 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1203 return resultobj;
1204 fail:
1205 return NULL;
1206 }
1207
1208
1209 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1210 PyObject *resultobj;
1211 wxColour *arg1 = (wxColour *) 0 ;
1212 bool result;
1213 PyObject * obj0 = 0 ;
1214 char *kwnames[] = {
1215 (char *) "self", NULL
1216 };
1217
1218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1221 {
1222 PyThreadState* __tstate = wxPyBeginAllowThreads();
1223 result = (bool)(arg1)->Ok();
1224
1225 wxPyEndAllowThreads(__tstate);
1226 if (PyErr_Occurred()) SWIG_fail;
1227 }
1228 {
1229 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1230 }
1231 return resultobj;
1232 fail:
1233 return NULL;
1234 }
1235
1236
1237 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1238 PyObject *resultobj;
1239 wxColour *arg1 = (wxColour *) 0 ;
1240 unsigned char arg2 ;
1241 unsigned char arg3 ;
1242 unsigned char arg4 ;
1243 PyObject * obj0 = 0 ;
1244 PyObject * obj1 = 0 ;
1245 PyObject * obj2 = 0 ;
1246 PyObject * obj3 = 0 ;
1247 char *kwnames[] = {
1248 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1249 };
1250
1251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1254 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1255 if (PyErr_Occurred()) SWIG_fail;
1256 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1257 if (PyErr_Occurred()) SWIG_fail;
1258 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
1259 if (PyErr_Occurred()) SWIG_fail;
1260 {
1261 PyThreadState* __tstate = wxPyBeginAllowThreads();
1262 (arg1)->Set(arg2,arg3,arg4);
1263
1264 wxPyEndAllowThreads(__tstate);
1265 if (PyErr_Occurred()) SWIG_fail;
1266 }
1267 Py_INCREF(Py_None); resultobj = Py_None;
1268 return resultobj;
1269 fail:
1270 return NULL;
1271 }
1272
1273
1274 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1275 PyObject *resultobj;
1276 wxColour *arg1 = (wxColour *) 0 ;
1277 unsigned long arg2 ;
1278 PyObject * obj0 = 0 ;
1279 PyObject * obj1 = 0 ;
1280 char *kwnames[] = {
1281 (char *) "self",(char *) "colRGB", NULL
1282 };
1283
1284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1287 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1288 if (PyErr_Occurred()) SWIG_fail;
1289 {
1290 PyThreadState* __tstate = wxPyBeginAllowThreads();
1291 (arg1)->Set(arg2);
1292
1293 wxPyEndAllowThreads(__tstate);
1294 if (PyErr_Occurred()) SWIG_fail;
1295 }
1296 Py_INCREF(Py_None); resultobj = Py_None;
1297 return resultobj;
1298 fail:
1299 return NULL;
1300 }
1301
1302
1303 static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1304 PyObject *resultobj;
1305 wxColour *arg1 = (wxColour *) 0 ;
1306 wxString *arg2 = 0 ;
1307 bool temp2 = False ;
1308 PyObject * obj0 = 0 ;
1309 PyObject * obj1 = 0 ;
1310 char *kwnames[] = {
1311 (char *) "self",(char *) "colourName", NULL
1312 };
1313
1314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1317 {
1318 arg2 = wxString_in_helper(obj1);
1319 if (arg2 == NULL) SWIG_fail;
1320 temp2 = True;
1321 }
1322 {
1323 PyThreadState* __tstate = wxPyBeginAllowThreads();
1324 (arg1)->InitFromName((wxString const &)*arg2);
1325
1326 wxPyEndAllowThreads(__tstate);
1327 if (PyErr_Occurred()) SWIG_fail;
1328 }
1329 Py_INCREF(Py_None); resultobj = Py_None;
1330 {
1331 if (temp2)
1332 delete arg2;
1333 }
1334 return resultobj;
1335 fail:
1336 {
1337 if (temp2)
1338 delete arg2;
1339 }
1340 return NULL;
1341 }
1342
1343
1344 static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1345 PyObject *resultobj;
1346 wxColour *arg1 = (wxColour *) 0 ;
1347 long result;
1348 PyObject * obj0 = 0 ;
1349 char *kwnames[] = {
1350 (char *) "self", NULL
1351 };
1352
1353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1356 {
1357 PyThreadState* __tstate = wxPyBeginAllowThreads();
1358 result = (long)((wxColour const *)arg1)->GetPixel();
1359
1360 wxPyEndAllowThreads(__tstate);
1361 if (PyErr_Occurred()) SWIG_fail;
1362 }
1363 resultobj = SWIG_FromLong((long)result);
1364 return resultobj;
1365 fail:
1366 return NULL;
1367 }
1368
1369
1370 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1371 PyObject *resultobj;
1372 wxColour *arg1 = (wxColour *) 0 ;
1373 wxColour *arg2 = 0 ;
1374 bool result;
1375 wxColour temp2 ;
1376 PyObject * obj0 = 0 ;
1377 PyObject * obj1 = 0 ;
1378 char *kwnames[] = {
1379 (char *) "self",(char *) "colour", NULL
1380 };
1381
1382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1385 {
1386 arg2 = &temp2;
1387 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1388 }
1389 {
1390 PyThreadState* __tstate = wxPyBeginAllowThreads();
1391 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1392
1393 wxPyEndAllowThreads(__tstate);
1394 if (PyErr_Occurred()) SWIG_fail;
1395 }
1396 {
1397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1398 }
1399 return resultobj;
1400 fail:
1401 return NULL;
1402 }
1403
1404
1405 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1406 PyObject *resultobj;
1407 wxColour *arg1 = (wxColour *) 0 ;
1408 wxColour *arg2 = 0 ;
1409 bool result;
1410 wxColour temp2 ;
1411 PyObject * obj0 = 0 ;
1412 PyObject * obj1 = 0 ;
1413 char *kwnames[] = {
1414 (char *) "self",(char *) "colour", NULL
1415 };
1416
1417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1420 {
1421 arg2 = &temp2;
1422 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1423 }
1424 {
1425 PyThreadState* __tstate = wxPyBeginAllowThreads();
1426 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1427
1428 wxPyEndAllowThreads(__tstate);
1429 if (PyErr_Occurred()) SWIG_fail;
1430 }
1431 {
1432 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1433 }
1434 return resultobj;
1435 fail:
1436 return NULL;
1437 }
1438
1439
1440 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1441 PyObject *resultobj;
1442 wxColour *arg1 = (wxColour *) 0 ;
1443 PyObject *result;
1444 PyObject * obj0 = 0 ;
1445 char *kwnames[] = {
1446 (char *) "self", NULL
1447 };
1448
1449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1452 {
1453 PyThreadState* __tstate = wxPyBeginAllowThreads();
1454 result = (PyObject *)wxColour_Get(arg1);
1455
1456 wxPyEndAllowThreads(__tstate);
1457 if (PyErr_Occurred()) SWIG_fail;
1458 }
1459 resultobj = result;
1460 return resultobj;
1461 fail:
1462 return NULL;
1463 }
1464
1465
1466 static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1467 PyObject *resultobj;
1468 wxColour *arg1 = (wxColour *) 0 ;
1469 unsigned long result;
1470 PyObject * obj0 = 0 ;
1471 char *kwnames[] = {
1472 (char *) "self", NULL
1473 };
1474
1475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1478 {
1479 PyThreadState* __tstate = wxPyBeginAllowThreads();
1480 result = (unsigned long)wxColour_GetRGB(arg1);
1481
1482 wxPyEndAllowThreads(__tstate);
1483 if (PyErr_Occurred()) SWIG_fail;
1484 }
1485 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
1486 return resultobj;
1487 fail:
1488 return NULL;
1489 }
1490
1491
1492 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1493 PyObject *obj;
1494 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1495 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1496 Py_INCREF(obj);
1497 return Py_BuildValue((char *)"");
1498 }
1499 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1500 PyObject *resultobj;
1501 int arg1 ;
1502 unsigned char *arg2 = (unsigned char *) 0 ;
1503 unsigned char *arg3 = (unsigned char *) 0 ;
1504 unsigned char *arg4 = (unsigned char *) 0 ;
1505 wxPalette *result;
1506 PyObject * obj0 = 0 ;
1507 PyObject * obj1 = 0 ;
1508 PyObject * obj2 = 0 ;
1509 PyObject * obj3 = 0 ;
1510 char *kwnames[] = {
1511 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1512 };
1513
1514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1515 arg1 = (int) SWIG_AsInt(obj0);
1516 if (PyErr_Occurred()) SWIG_fail;
1517 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1519 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1521 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1523 {
1524 PyThreadState* __tstate = wxPyBeginAllowThreads();
1525 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1526
1527 wxPyEndAllowThreads(__tstate);
1528 if (PyErr_Occurred()) SWIG_fail;
1529 }
1530 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1531 return resultobj;
1532 fail:
1533 return NULL;
1534 }
1535
1536
1537 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1538 PyObject *resultobj;
1539 wxPalette *arg1 = (wxPalette *) 0 ;
1540 PyObject * obj0 = 0 ;
1541 char *kwnames[] = {
1542 (char *) "self", NULL
1543 };
1544
1545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1548 {
1549 PyThreadState* __tstate = wxPyBeginAllowThreads();
1550 delete arg1;
1551
1552 wxPyEndAllowThreads(__tstate);
1553 if (PyErr_Occurred()) SWIG_fail;
1554 }
1555 Py_INCREF(Py_None); resultobj = Py_None;
1556 return resultobj;
1557 fail:
1558 return NULL;
1559 }
1560
1561
1562 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1563 PyObject *resultobj;
1564 wxPalette *arg1 = (wxPalette *) 0 ;
1565 byte arg2 ;
1566 byte arg3 ;
1567 byte arg4 ;
1568 int result;
1569 PyObject * obj0 = 0 ;
1570 PyObject * obj1 = 0 ;
1571 PyObject * obj2 = 0 ;
1572 PyObject * obj3 = 0 ;
1573 char *kwnames[] = {
1574 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1575 };
1576
1577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1580 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1581 if (PyErr_Occurred()) SWIG_fail;
1582 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1583 if (PyErr_Occurred()) SWIG_fail;
1584 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1585 if (PyErr_Occurred()) SWIG_fail;
1586 {
1587 PyThreadState* __tstate = wxPyBeginAllowThreads();
1588 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1589
1590 wxPyEndAllowThreads(__tstate);
1591 if (PyErr_Occurred()) SWIG_fail;
1592 }
1593 resultobj = SWIG_FromInt((int)result);
1594 return resultobj;
1595 fail:
1596 return NULL;
1597 }
1598
1599
1600 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1601 PyObject *resultobj;
1602 wxPalette *arg1 = (wxPalette *) 0 ;
1603 int arg2 ;
1604 byte *arg3 = (byte *) 0 ;
1605 byte *arg4 = (byte *) 0 ;
1606 byte *arg5 = (byte *) 0 ;
1607 bool result;
1608 byte temp3 ;
1609 byte temp4 ;
1610 byte temp5 ;
1611 PyObject * obj0 = 0 ;
1612 PyObject * obj1 = 0 ;
1613 char *kwnames[] = {
1614 (char *) "self",(char *) "pixel", NULL
1615 };
1616
1617 arg3 = &temp3;
1618 arg4 = &temp4;
1619 arg5 = &temp5;
1620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1623 arg2 = (int) SWIG_AsInt(obj1);
1624 if (PyErr_Occurred()) SWIG_fail;
1625 {
1626 PyThreadState* __tstate = wxPyBeginAllowThreads();
1627 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1628
1629 wxPyEndAllowThreads(__tstate);
1630 if (PyErr_Occurred()) SWIG_fail;
1631 }
1632 {
1633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1634 }
1635 {
1636 PyObject *o = PyInt_FromLong((long) (*arg3));
1637 resultobj = t_output_helper(resultobj,o);
1638 }
1639 {
1640 PyObject *o = PyInt_FromLong((long) (*arg4));
1641 resultobj = t_output_helper(resultobj,o);
1642 }
1643 {
1644 PyObject *o = PyInt_FromLong((long) (*arg5));
1645 resultobj = t_output_helper(resultobj,o);
1646 }
1647 return resultobj;
1648 fail:
1649 return NULL;
1650 }
1651
1652
1653 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1654 PyObject *resultobj;
1655 wxPalette *arg1 = (wxPalette *) 0 ;
1656 bool result;
1657 PyObject * obj0 = 0 ;
1658 char *kwnames[] = {
1659 (char *) "self", NULL
1660 };
1661
1662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1665 {
1666 PyThreadState* __tstate = wxPyBeginAllowThreads();
1667 result = (bool)(arg1)->Ok();
1668
1669 wxPyEndAllowThreads(__tstate);
1670 if (PyErr_Occurred()) SWIG_fail;
1671 }
1672 {
1673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1674 }
1675 return resultobj;
1676 fail:
1677 return NULL;
1678 }
1679
1680
1681 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1682 PyObject *obj;
1683 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1684 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1685 Py_INCREF(obj);
1686 return Py_BuildValue((char *)"");
1687 }
1688 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1689 PyObject *resultobj;
1690 wxColour *arg1 = 0 ;
1691 int arg2 = (int) 1 ;
1692 int arg3 = (int) wxSOLID ;
1693 wxPen *result;
1694 wxColour temp1 ;
1695 PyObject * obj0 = 0 ;
1696 PyObject * obj1 = 0 ;
1697 PyObject * obj2 = 0 ;
1698 char *kwnames[] = {
1699 (char *) "colour",(char *) "width",(char *) "style", NULL
1700 };
1701
1702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1703 {
1704 arg1 = &temp1;
1705 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1706 }
1707 if (obj1) {
1708 arg2 = (int) SWIG_AsInt(obj1);
1709 if (PyErr_Occurred()) SWIG_fail;
1710 }
1711 if (obj2) {
1712 arg3 = (int) SWIG_AsInt(obj2);
1713 if (PyErr_Occurred()) SWIG_fail;
1714 }
1715 {
1716 PyThreadState* __tstate = wxPyBeginAllowThreads();
1717 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1718
1719 wxPyEndAllowThreads(__tstate);
1720 if (PyErr_Occurred()) SWIG_fail;
1721 }
1722 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1723 return resultobj;
1724 fail:
1725 return NULL;
1726 }
1727
1728
1729 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1730 PyObject *resultobj;
1731 wxPen *arg1 = (wxPen *) 0 ;
1732 PyObject * obj0 = 0 ;
1733 char *kwnames[] = {
1734 (char *) "self", NULL
1735 };
1736
1737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1740 {
1741 PyThreadState* __tstate = wxPyBeginAllowThreads();
1742 delete arg1;
1743
1744 wxPyEndAllowThreads(__tstate);
1745 if (PyErr_Occurred()) SWIG_fail;
1746 }
1747 Py_INCREF(Py_None); resultobj = Py_None;
1748 return resultobj;
1749 fail:
1750 return NULL;
1751 }
1752
1753
1754 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1755 PyObject *resultobj;
1756 wxPen *arg1 = (wxPen *) 0 ;
1757 int result;
1758 PyObject * obj0 = 0 ;
1759 char *kwnames[] = {
1760 (char *) "self", NULL
1761 };
1762
1763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1766 {
1767 PyThreadState* __tstate = wxPyBeginAllowThreads();
1768 result = (int)(arg1)->GetCap();
1769
1770 wxPyEndAllowThreads(__tstate);
1771 if (PyErr_Occurred()) SWIG_fail;
1772 }
1773 resultobj = SWIG_FromInt((int)result);
1774 return resultobj;
1775 fail:
1776 return NULL;
1777 }
1778
1779
1780 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1781 PyObject *resultobj;
1782 wxPen *arg1 = (wxPen *) 0 ;
1783 wxColour result;
1784 PyObject * obj0 = 0 ;
1785 char *kwnames[] = {
1786 (char *) "self", NULL
1787 };
1788
1789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1792 {
1793 PyThreadState* __tstate = wxPyBeginAllowThreads();
1794 result = (arg1)->GetColour();
1795
1796 wxPyEndAllowThreads(__tstate);
1797 if (PyErr_Occurred()) SWIG_fail;
1798 }
1799 {
1800 wxColour * resultptr;
1801 resultptr = new wxColour((wxColour &) result);
1802 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1803 }
1804 return resultobj;
1805 fail:
1806 return NULL;
1807 }
1808
1809
1810 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1811 PyObject *resultobj;
1812 wxPen *arg1 = (wxPen *) 0 ;
1813 int result;
1814 PyObject * obj0 = 0 ;
1815 char *kwnames[] = {
1816 (char *) "self", NULL
1817 };
1818
1819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1822 {
1823 PyThreadState* __tstate = wxPyBeginAllowThreads();
1824 result = (int)(arg1)->GetJoin();
1825
1826 wxPyEndAllowThreads(__tstate);
1827 if (PyErr_Occurred()) SWIG_fail;
1828 }
1829 resultobj = SWIG_FromInt((int)result);
1830 return resultobj;
1831 fail:
1832 return NULL;
1833 }
1834
1835
1836 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1837 PyObject *resultobj;
1838 wxPen *arg1 = (wxPen *) 0 ;
1839 int result;
1840 PyObject * obj0 = 0 ;
1841 char *kwnames[] = {
1842 (char *) "self", NULL
1843 };
1844
1845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1848 {
1849 PyThreadState* __tstate = wxPyBeginAllowThreads();
1850 result = (int)(arg1)->GetStyle();
1851
1852 wxPyEndAllowThreads(__tstate);
1853 if (PyErr_Occurred()) SWIG_fail;
1854 }
1855 resultobj = SWIG_FromInt((int)result);
1856 return resultobj;
1857 fail:
1858 return NULL;
1859 }
1860
1861
1862 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1863 PyObject *resultobj;
1864 wxPen *arg1 = (wxPen *) 0 ;
1865 int result;
1866 PyObject * obj0 = 0 ;
1867 char *kwnames[] = {
1868 (char *) "self", NULL
1869 };
1870
1871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1874 {
1875 PyThreadState* __tstate = wxPyBeginAllowThreads();
1876 result = (int)(arg1)->GetWidth();
1877
1878 wxPyEndAllowThreads(__tstate);
1879 if (PyErr_Occurred()) SWIG_fail;
1880 }
1881 resultobj = SWIG_FromInt((int)result);
1882 return resultobj;
1883 fail:
1884 return NULL;
1885 }
1886
1887
1888 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1889 PyObject *resultobj;
1890 wxPen *arg1 = (wxPen *) 0 ;
1891 bool result;
1892 PyObject * obj0 = 0 ;
1893 char *kwnames[] = {
1894 (char *) "self", NULL
1895 };
1896
1897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1900 {
1901 PyThreadState* __tstate = wxPyBeginAllowThreads();
1902 result = (bool)(arg1)->Ok();
1903
1904 wxPyEndAllowThreads(__tstate);
1905 if (PyErr_Occurred()) SWIG_fail;
1906 }
1907 {
1908 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1909 }
1910 return resultobj;
1911 fail:
1912 return NULL;
1913 }
1914
1915
1916 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1917 PyObject *resultobj;
1918 wxPen *arg1 = (wxPen *) 0 ;
1919 int arg2 ;
1920 PyObject * obj0 = 0 ;
1921 PyObject * obj1 = 0 ;
1922 char *kwnames[] = {
1923 (char *) "self",(char *) "cap_style", NULL
1924 };
1925
1926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1929 arg2 = (int) SWIG_AsInt(obj1);
1930 if (PyErr_Occurred()) SWIG_fail;
1931 {
1932 PyThreadState* __tstate = wxPyBeginAllowThreads();
1933 (arg1)->SetCap(arg2);
1934
1935 wxPyEndAllowThreads(__tstate);
1936 if (PyErr_Occurred()) SWIG_fail;
1937 }
1938 Py_INCREF(Py_None); resultobj = Py_None;
1939 return resultobj;
1940 fail:
1941 return NULL;
1942 }
1943
1944
1945 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1946 PyObject *resultobj;
1947 wxPen *arg1 = (wxPen *) 0 ;
1948 wxColour *arg2 = 0 ;
1949 wxColour temp2 ;
1950 PyObject * obj0 = 0 ;
1951 PyObject * obj1 = 0 ;
1952 char *kwnames[] = {
1953 (char *) "self",(char *) "colour", NULL
1954 };
1955
1956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1959 {
1960 arg2 = &temp2;
1961 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1962 }
1963 {
1964 PyThreadState* __tstate = wxPyBeginAllowThreads();
1965 (arg1)->SetColour(*arg2);
1966
1967 wxPyEndAllowThreads(__tstate);
1968 if (PyErr_Occurred()) SWIG_fail;
1969 }
1970 Py_INCREF(Py_None); resultobj = Py_None;
1971 return resultobj;
1972 fail:
1973 return NULL;
1974 }
1975
1976
1977 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1978 PyObject *resultobj;
1979 wxPen *arg1 = (wxPen *) 0 ;
1980 int arg2 ;
1981 PyObject * obj0 = 0 ;
1982 PyObject * obj1 = 0 ;
1983 char *kwnames[] = {
1984 (char *) "self",(char *) "join_style", NULL
1985 };
1986
1987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
1988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1990 arg2 = (int) SWIG_AsInt(obj1);
1991 if (PyErr_Occurred()) SWIG_fail;
1992 {
1993 PyThreadState* __tstate = wxPyBeginAllowThreads();
1994 (arg1)->SetJoin(arg2);
1995
1996 wxPyEndAllowThreads(__tstate);
1997 if (PyErr_Occurred()) SWIG_fail;
1998 }
1999 Py_INCREF(Py_None); resultobj = Py_None;
2000 return resultobj;
2001 fail:
2002 return NULL;
2003 }
2004
2005
2006 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2007 PyObject *resultobj;
2008 wxPen *arg1 = (wxPen *) 0 ;
2009 int arg2 ;
2010 PyObject * obj0 = 0 ;
2011 PyObject * obj1 = 0 ;
2012 char *kwnames[] = {
2013 (char *) "self",(char *) "style", NULL
2014 };
2015
2016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2019 arg2 = (int) SWIG_AsInt(obj1);
2020 if (PyErr_Occurred()) SWIG_fail;
2021 {
2022 PyThreadState* __tstate = wxPyBeginAllowThreads();
2023 (arg1)->SetStyle(arg2);
2024
2025 wxPyEndAllowThreads(__tstate);
2026 if (PyErr_Occurred()) SWIG_fail;
2027 }
2028 Py_INCREF(Py_None); resultobj = Py_None;
2029 return resultobj;
2030 fail:
2031 return NULL;
2032 }
2033
2034
2035 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2036 PyObject *resultobj;
2037 wxPen *arg1 = (wxPen *) 0 ;
2038 int arg2 ;
2039 PyObject * obj0 = 0 ;
2040 PyObject * obj1 = 0 ;
2041 char *kwnames[] = {
2042 (char *) "self",(char *) "width", NULL
2043 };
2044
2045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2048 arg2 = (int) SWIG_AsInt(obj1);
2049 if (PyErr_Occurred()) SWIG_fail;
2050 {
2051 PyThreadState* __tstate = wxPyBeginAllowThreads();
2052 (arg1)->SetWidth(arg2);
2053
2054 wxPyEndAllowThreads(__tstate);
2055 if (PyErr_Occurred()) SWIG_fail;
2056 }
2057 Py_INCREF(Py_None); resultobj = Py_None;
2058 return resultobj;
2059 fail:
2060 return NULL;
2061 }
2062
2063
2064 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2065 PyObject *resultobj;
2066 wxPen *arg1 = (wxPen *) 0 ;
2067 int arg2 ;
2068 wxDash *arg3 = (wxDash *) 0 ;
2069 PyObject * obj0 = 0 ;
2070 PyObject * obj1 = 0 ;
2071 char *kwnames[] = {
2072 (char *) "self",(char *) "dashes", NULL
2073 };
2074
2075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2078 {
2079 arg2 = PyList_Size(obj1);
2080 arg3 = (wxDash*)byte_LIST_helper(obj1);
2081 if (arg3 == NULL) SWIG_fail;
2082 }
2083 {
2084 PyThreadState* __tstate = wxPyBeginAllowThreads();
2085 (arg1)->SetDashes(arg2,arg3);
2086
2087 wxPyEndAllowThreads(__tstate);
2088 if (PyErr_Occurred()) SWIG_fail;
2089 }
2090 Py_INCREF(Py_None); resultobj = Py_None;
2091 {
2092 if (arg3) delete [] arg3;
2093 }
2094 return resultobj;
2095 fail:
2096 {
2097 if (arg3) delete [] arg3;
2098 }
2099 return NULL;
2100 }
2101
2102
2103 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2104 PyObject *resultobj;
2105 wxPen *arg1 = (wxPen *) 0 ;
2106 PyObject *result;
2107 PyObject * obj0 = 0 ;
2108 char *kwnames[] = {
2109 (char *) "self", NULL
2110 };
2111
2112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2115 {
2116 PyThreadState* __tstate = wxPyBeginAllowThreads();
2117 result = (PyObject *)wxPen_GetDashes(arg1);
2118
2119 wxPyEndAllowThreads(__tstate);
2120 if (PyErr_Occurred()) SWIG_fail;
2121 }
2122 resultobj = result;
2123 return resultobj;
2124 fail:
2125 return NULL;
2126 }
2127
2128
2129 static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2130 PyObject *resultobj;
2131 wxPen *arg1 = (wxPen *) 0 ;
2132 wxPen *arg2 = (wxPen *) 0 ;
2133 bool result;
2134 PyObject * obj0 = 0 ;
2135 PyObject * obj1 = 0 ;
2136 char *kwnames[] = {
2137 (char *) "self",(char *) "other", NULL
2138 };
2139
2140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2143 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2145 {
2146 PyThreadState* __tstate = wxPyBeginAllowThreads();
2147 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2148
2149 wxPyEndAllowThreads(__tstate);
2150 if (PyErr_Occurred()) SWIG_fail;
2151 }
2152 {
2153 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2154 }
2155 return resultobj;
2156 fail:
2157 return NULL;
2158 }
2159
2160
2161 static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2162 PyObject *resultobj;
2163 wxPen *arg1 = (wxPen *) 0 ;
2164 wxPen *arg2 = (wxPen *) 0 ;
2165 bool result;
2166 PyObject * obj0 = 0 ;
2167 PyObject * obj1 = 0 ;
2168 char *kwnames[] = {
2169 (char *) "self",(char *) "other", NULL
2170 };
2171
2172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2175 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2177 {
2178 PyThreadState* __tstate = wxPyBeginAllowThreads();
2179 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2180
2181 wxPyEndAllowThreads(__tstate);
2182 if (PyErr_Occurred()) SWIG_fail;
2183 }
2184 {
2185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2186 }
2187 return resultobj;
2188 fail:
2189 return NULL;
2190 }
2191
2192
2193 static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
2194 PyObject *resultobj;
2195 wxPen *arg1 = (wxPen *) 0 ;
2196 int result;
2197 PyObject * obj0 = 0 ;
2198 char *kwnames[] = {
2199 (char *) "self", NULL
2200 };
2201
2202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
2203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2205 {
2206 PyThreadState* __tstate = wxPyBeginAllowThreads();
2207 result = (int)((wxPen const *)arg1)->GetDashCount();
2208
2209 wxPyEndAllowThreads(__tstate);
2210 if (PyErr_Occurred()) SWIG_fail;
2211 }
2212 resultobj = SWIG_FromInt((int)result);
2213 return resultobj;
2214 fail:
2215 return NULL;
2216 }
2217
2218
2219 static PyObject *_wrap_Pen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2220 PyObject *resultobj;
2221 wxPen *arg1 = (wxPen *) 0 ;
2222 wxBitmap *result;
2223 PyObject * obj0 = 0 ;
2224 char *kwnames[] = {
2225 (char *) "self", NULL
2226 };
2227
2228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail;
2229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2231 {
2232 PyThreadState* __tstate = wxPyBeginAllowThreads();
2233 result = (wxBitmap *)(arg1)->GetStipple();
2234
2235 wxPyEndAllowThreads(__tstate);
2236 if (PyErr_Occurred()) SWIG_fail;
2237 }
2238 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2239 return resultobj;
2240 fail:
2241 return NULL;
2242 }
2243
2244
2245 static PyObject *_wrap_Pen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2246 PyObject *resultobj;
2247 wxPen *arg1 = (wxPen *) 0 ;
2248 wxBitmap *arg2 = 0 ;
2249 PyObject * obj0 = 0 ;
2250 PyObject * obj1 = 0 ;
2251 char *kwnames[] = {
2252 (char *) "self",(char *) "stipple", NULL
2253 };
2254
2255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2258 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2259 SWIG_POINTER_EXCEPTION | 0)) == -1)
2260 SWIG_fail;
2261 if (arg2 == NULL) {
2262 PyErr_SetString(PyExc_TypeError,"null reference");
2263 SWIG_fail;
2264 }
2265 {
2266 PyThreadState* __tstate = wxPyBeginAllowThreads();
2267 (arg1)->SetStipple(*arg2);
2268
2269 wxPyEndAllowThreads(__tstate);
2270 if (PyErr_Occurred()) SWIG_fail;
2271 }
2272 Py_INCREF(Py_None); resultobj = Py_None;
2273 return resultobj;
2274 fail:
2275 return NULL;
2276 }
2277
2278
2279 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
2280 PyObject *obj;
2281 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2282 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2283 Py_INCREF(obj);
2284 return Py_BuildValue((char *)"");
2285 }
2286 static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2287 PyObject *resultobj;
2288 wxColour *arg1 = 0 ;
2289 int arg2 = (int) 1 ;
2290 int arg3 = (int) wxSOLID ;
2291 wxPyPen *result;
2292 wxColour temp1 ;
2293 PyObject * obj0 = 0 ;
2294 PyObject * obj1 = 0 ;
2295 PyObject * obj2 = 0 ;
2296 char *kwnames[] = {
2297 (char *) "colour",(char *) "width",(char *) "style", NULL
2298 };
2299
2300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail;
2301 {
2302 arg1 = &temp1;
2303 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2304 }
2305 if (obj1) {
2306 arg2 = (int) SWIG_AsInt(obj1);
2307 if (PyErr_Occurred()) SWIG_fail;
2308 }
2309 if (obj2) {
2310 arg3 = (int) SWIG_AsInt(obj2);
2311 if (PyErr_Occurred()) SWIG_fail;
2312 }
2313 {
2314 PyThreadState* __tstate = wxPyBeginAllowThreads();
2315 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
2316
2317 wxPyEndAllowThreads(__tstate);
2318 if (PyErr_Occurred()) SWIG_fail;
2319 }
2320 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPen, 1);
2321 return resultobj;
2322 fail:
2323 return NULL;
2324 }
2325
2326
2327 static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2328 PyObject *resultobj;
2329 wxPyPen *arg1 = (wxPyPen *) 0 ;
2330 PyObject * obj0 = 0 ;
2331 char *kwnames[] = {
2332 (char *) "self", NULL
2333 };
2334
2335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
2336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2338 {
2339 PyThreadState* __tstate = wxPyBeginAllowThreads();
2340 delete arg1;
2341
2342 wxPyEndAllowThreads(__tstate);
2343 if (PyErr_Occurred()) SWIG_fail;
2344 }
2345 Py_INCREF(Py_None); resultobj = Py_None;
2346 return resultobj;
2347 fail:
2348 return NULL;
2349 }
2350
2351
2352 static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2353 PyObject *resultobj;
2354 wxPyPen *arg1 = (wxPyPen *) 0 ;
2355 int arg2 ;
2356 wxDash *arg3 = (wxDash *) 0 ;
2357 PyObject * obj0 = 0 ;
2358 PyObject * obj1 = 0 ;
2359 char *kwnames[] = {
2360 (char *) "self",(char *) "dashes", NULL
2361 };
2362
2363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2366 {
2367 arg2 = PyList_Size(obj1);
2368 arg3 = (wxDash*)byte_LIST_helper(obj1);
2369 if (arg3 == NULL) SWIG_fail;
2370 }
2371 {
2372 PyThreadState* __tstate = wxPyBeginAllowThreads();
2373 (arg1)->SetDashes(arg2,arg3);
2374
2375 wxPyEndAllowThreads(__tstate);
2376 if (PyErr_Occurred()) SWIG_fail;
2377 }
2378 Py_INCREF(Py_None); resultobj = Py_None;
2379 {
2380 if (arg3) delete [] arg3;
2381 }
2382 return resultobj;
2383 fail:
2384 {
2385 if (arg3) delete [] arg3;
2386 }
2387 return NULL;
2388 }
2389
2390
2391 static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
2392 PyObject *obj;
2393 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2394 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
2395 Py_INCREF(obj);
2396 return Py_BuildValue((char *)"");
2397 }
2398 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2399 PyObject *resultobj;
2400 wxColour *arg1 = 0 ;
2401 int arg2 = (int) wxSOLID ;
2402 wxBrush *result;
2403 wxColour temp1 ;
2404 PyObject * obj0 = 0 ;
2405 PyObject * obj1 = 0 ;
2406 char *kwnames[] = {
2407 (char *) "colour",(char *) "style", NULL
2408 };
2409
2410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2411 {
2412 arg1 = &temp1;
2413 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2414 }
2415 if (obj1) {
2416 arg2 = (int) SWIG_AsInt(obj1);
2417 if (PyErr_Occurred()) SWIG_fail;
2418 }
2419 {
2420 PyThreadState* __tstate = wxPyBeginAllowThreads();
2421 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2422
2423 wxPyEndAllowThreads(__tstate);
2424 if (PyErr_Occurred()) SWIG_fail;
2425 }
2426 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2427 return resultobj;
2428 fail:
2429 return NULL;
2430 }
2431
2432
2433 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2434 PyObject *resultobj;
2435 wxBrush *arg1 = (wxBrush *) 0 ;
2436 PyObject * obj0 = 0 ;
2437 char *kwnames[] = {
2438 (char *) "self", NULL
2439 };
2440
2441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2444 {
2445 PyThreadState* __tstate = wxPyBeginAllowThreads();
2446 delete arg1;
2447
2448 wxPyEndAllowThreads(__tstate);
2449 if (PyErr_Occurred()) SWIG_fail;
2450 }
2451 Py_INCREF(Py_None); resultobj = Py_None;
2452 return resultobj;
2453 fail:
2454 return NULL;
2455 }
2456
2457
2458 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2459 PyObject *resultobj;
2460 wxBrush *arg1 = (wxBrush *) 0 ;
2461 wxColour *arg2 = 0 ;
2462 wxColour temp2 ;
2463 PyObject * obj0 = 0 ;
2464 PyObject * obj1 = 0 ;
2465 char *kwnames[] = {
2466 (char *) "self",(char *) "col", NULL
2467 };
2468
2469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2472 {
2473 arg2 = &temp2;
2474 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2475 }
2476 {
2477 PyThreadState* __tstate = wxPyBeginAllowThreads();
2478 (arg1)->SetColour((wxColour const &)*arg2);
2479
2480 wxPyEndAllowThreads(__tstate);
2481 if (PyErr_Occurred()) SWIG_fail;
2482 }
2483 Py_INCREF(Py_None); resultobj = Py_None;
2484 return resultobj;
2485 fail:
2486 return NULL;
2487 }
2488
2489
2490 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2491 PyObject *resultobj;
2492 wxBrush *arg1 = (wxBrush *) 0 ;
2493 int arg2 ;
2494 PyObject * obj0 = 0 ;
2495 PyObject * obj1 = 0 ;
2496 char *kwnames[] = {
2497 (char *) "self",(char *) "style", NULL
2498 };
2499
2500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2503 arg2 = (int) SWIG_AsInt(obj1);
2504 if (PyErr_Occurred()) SWIG_fail;
2505 {
2506 PyThreadState* __tstate = wxPyBeginAllowThreads();
2507 (arg1)->SetStyle(arg2);
2508
2509 wxPyEndAllowThreads(__tstate);
2510 if (PyErr_Occurred()) SWIG_fail;
2511 }
2512 Py_INCREF(Py_None); resultobj = Py_None;
2513 return resultobj;
2514 fail:
2515 return NULL;
2516 }
2517
2518
2519 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2520 PyObject *resultobj;
2521 wxBrush *arg1 = (wxBrush *) 0 ;
2522 wxBitmap *arg2 = 0 ;
2523 PyObject * obj0 = 0 ;
2524 PyObject * obj1 = 0 ;
2525 char *kwnames[] = {
2526 (char *) "self",(char *) "stipple", NULL
2527 };
2528
2529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2532 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2533 SWIG_POINTER_EXCEPTION | 0)) == -1)
2534 SWIG_fail;
2535 if (arg2 == NULL) {
2536 PyErr_SetString(PyExc_TypeError,"null reference");
2537 SWIG_fail;
2538 }
2539 {
2540 PyThreadState* __tstate = wxPyBeginAllowThreads();
2541 (arg1)->SetStipple((wxBitmap const &)*arg2);
2542
2543 wxPyEndAllowThreads(__tstate);
2544 if (PyErr_Occurred()) SWIG_fail;
2545 }
2546 Py_INCREF(Py_None); resultobj = Py_None;
2547 return resultobj;
2548 fail:
2549 return NULL;
2550 }
2551
2552
2553 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2554 PyObject *resultobj;
2555 wxBrush *arg1 = (wxBrush *) 0 ;
2556 wxColour result;
2557 PyObject * obj0 = 0 ;
2558 char *kwnames[] = {
2559 (char *) "self", NULL
2560 };
2561
2562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2565 {
2566 PyThreadState* __tstate = wxPyBeginAllowThreads();
2567 result = ((wxBrush const *)arg1)->GetColour();
2568
2569 wxPyEndAllowThreads(__tstate);
2570 if (PyErr_Occurred()) SWIG_fail;
2571 }
2572 {
2573 wxColour * resultptr;
2574 resultptr = new wxColour((wxColour &) result);
2575 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2576 }
2577 return resultobj;
2578 fail:
2579 return NULL;
2580 }
2581
2582
2583 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2584 PyObject *resultobj;
2585 wxBrush *arg1 = (wxBrush *) 0 ;
2586 int result;
2587 PyObject * obj0 = 0 ;
2588 char *kwnames[] = {
2589 (char *) "self", NULL
2590 };
2591
2592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2595 {
2596 PyThreadState* __tstate = wxPyBeginAllowThreads();
2597 result = (int)((wxBrush const *)arg1)->GetStyle();
2598
2599 wxPyEndAllowThreads(__tstate);
2600 if (PyErr_Occurred()) SWIG_fail;
2601 }
2602 resultobj = SWIG_FromInt((int)result);
2603 return resultobj;
2604 fail:
2605 return NULL;
2606 }
2607
2608
2609 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2610 PyObject *resultobj;
2611 wxBrush *arg1 = (wxBrush *) 0 ;
2612 wxBitmap *result;
2613 PyObject * obj0 = 0 ;
2614 char *kwnames[] = {
2615 (char *) "self", NULL
2616 };
2617
2618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2621 {
2622 PyThreadState* __tstate = wxPyBeginAllowThreads();
2623 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2624
2625 wxPyEndAllowThreads(__tstate);
2626 if (PyErr_Occurred()) SWIG_fail;
2627 }
2628 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2629 return resultobj;
2630 fail:
2631 return NULL;
2632 }
2633
2634
2635 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2636 PyObject *resultobj;
2637 wxBrush *arg1 = (wxBrush *) 0 ;
2638 bool result;
2639 PyObject * obj0 = 0 ;
2640 char *kwnames[] = {
2641 (char *) "self", NULL
2642 };
2643
2644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2647 {
2648 PyThreadState* __tstate = wxPyBeginAllowThreads();
2649 result = (bool)(arg1)->Ok();
2650
2651 wxPyEndAllowThreads(__tstate);
2652 if (PyErr_Occurred()) SWIG_fail;
2653 }
2654 {
2655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2656 }
2657 return resultobj;
2658 fail:
2659 return NULL;
2660 }
2661
2662
2663 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2664 PyObject *obj;
2665 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2666 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2667 Py_INCREF(obj);
2668 return Py_BuildValue((char *)"");
2669 }
2670 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2671 PyObject *resultobj;
2672 wxString *arg1 = 0 ;
2673 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2674 wxBitmap *result;
2675 bool temp1 = False ;
2676 PyObject * obj0 = 0 ;
2677 PyObject * obj1 = 0 ;
2678 char *kwnames[] = {
2679 (char *) "name",(char *) "type", NULL
2680 };
2681
2682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2683 {
2684 arg1 = wxString_in_helper(obj0);
2685 if (arg1 == NULL) SWIG_fail;
2686 temp1 = True;
2687 }
2688 if (obj1) {
2689 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2690 if (PyErr_Occurred()) SWIG_fail;
2691 }
2692 {
2693 PyThreadState* __tstate = wxPyBeginAllowThreads();
2694 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2695
2696 wxPyEndAllowThreads(__tstate);
2697 if (PyErr_Occurred()) SWIG_fail;
2698 }
2699 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2700 {
2701 if (temp1)
2702 delete arg1;
2703 }
2704 return resultobj;
2705 fail:
2706 {
2707 if (temp1)
2708 delete arg1;
2709 }
2710 return NULL;
2711 }
2712
2713
2714 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2715 PyObject *resultobj;
2716 wxBitmap *arg1 = (wxBitmap *) 0 ;
2717 PyObject * obj0 = 0 ;
2718 char *kwnames[] = {
2719 (char *) "self", NULL
2720 };
2721
2722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2725 {
2726 PyThreadState* __tstate = wxPyBeginAllowThreads();
2727 delete arg1;
2728
2729 wxPyEndAllowThreads(__tstate);
2730 if (PyErr_Occurred()) SWIG_fail;
2731 }
2732 Py_INCREF(Py_None); resultobj = Py_None;
2733 return resultobj;
2734 fail:
2735 return NULL;
2736 }
2737
2738
2739 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2740 PyObject *resultobj;
2741 wxIcon *arg1 = 0 ;
2742 wxBitmap *result;
2743 PyObject * obj0 = 0 ;
2744 char *kwnames[] = {
2745 (char *) "icon", NULL
2746 };
2747
2748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2750 SWIG_POINTER_EXCEPTION | 0)) == -1)
2751 SWIG_fail;
2752 if (arg1 == NULL) {
2753 PyErr_SetString(PyExc_TypeError,"null reference");
2754 SWIG_fail;
2755 }
2756 {
2757 PyThreadState* __tstate = wxPyBeginAllowThreads();
2758 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2759
2760 wxPyEndAllowThreads(__tstate);
2761 if (PyErr_Occurred()) SWIG_fail;
2762 }
2763 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2764 return resultobj;
2765 fail:
2766 return NULL;
2767 }
2768
2769
2770 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2771 PyObject *resultobj;
2772 wxImage *arg1 = 0 ;
2773 int arg2 = (int) -1 ;
2774 wxBitmap *result;
2775 PyObject * obj0 = 0 ;
2776 PyObject * obj1 = 0 ;
2777 char *kwnames[] = {
2778 (char *) "image",(char *) "depth", NULL
2779 };
2780
2781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2783 SWIG_POINTER_EXCEPTION | 0)) == -1)
2784 SWIG_fail;
2785 if (arg1 == NULL) {
2786 PyErr_SetString(PyExc_TypeError,"null reference");
2787 SWIG_fail;
2788 }
2789 if (obj1) {
2790 arg2 = (int) SWIG_AsInt(obj1);
2791 if (PyErr_Occurred()) SWIG_fail;
2792 }
2793 {
2794 PyThreadState* __tstate = wxPyBeginAllowThreads();
2795 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2796
2797 wxPyEndAllowThreads(__tstate);
2798 if (PyErr_Occurred()) SWIG_fail;
2799 }
2800 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2801 return resultobj;
2802 fail:
2803 return NULL;
2804 }
2805
2806
2807 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2808 PyObject *resultobj;
2809 PyObject *arg1 = (PyObject *) 0 ;
2810 wxBitmap *result;
2811 PyObject * obj0 = 0 ;
2812 char *kwnames[] = {
2813 (char *) "listOfStrings", NULL
2814 };
2815
2816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2817 arg1 = obj0;
2818 {
2819 PyThreadState* __tstate = wxPyBeginAllowThreads();
2820 result = (wxBitmap *)new_wxBitmap(arg1);
2821
2822 wxPyEndAllowThreads(__tstate);
2823 if (PyErr_Occurred()) SWIG_fail;
2824 }
2825 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2826 return resultobj;
2827 fail:
2828 return NULL;
2829 }
2830
2831
2832 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2833 PyObject *resultobj;
2834 PyObject *arg1 = (PyObject *) 0 ;
2835 int arg2 ;
2836 int arg3 ;
2837 int arg4 = (int) 1 ;
2838 wxBitmap *result;
2839 PyObject * obj0 = 0 ;
2840 PyObject * obj1 = 0 ;
2841 PyObject * obj2 = 0 ;
2842 PyObject * obj3 = 0 ;
2843 char *kwnames[] = {
2844 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2845 };
2846
2847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2848 arg1 = obj0;
2849 arg2 = (int) SWIG_AsInt(obj1);
2850 if (PyErr_Occurred()) SWIG_fail;
2851 arg3 = (int) SWIG_AsInt(obj2);
2852 if (PyErr_Occurred()) SWIG_fail;
2853 if (obj3) {
2854 arg4 = (int) SWIG_AsInt(obj3);
2855 if (PyErr_Occurred()) SWIG_fail;
2856 }
2857 {
2858 PyThreadState* __tstate = wxPyBeginAllowThreads();
2859 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2860
2861 wxPyEndAllowThreads(__tstate);
2862 if (PyErr_Occurred()) SWIG_fail;
2863 }
2864 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2865 return resultobj;
2866 fail:
2867 return NULL;
2868 }
2869
2870
2871 static PyObject *_wrap_new_EmptyBitmap__SWIG_0(PyObject *self, PyObject *args) {
2872 PyObject *resultobj;
2873 int arg1 ;
2874 int arg2 ;
2875 int arg3 = (int) -1 ;
2876 wxBitmap *result;
2877 PyObject * obj0 = 0 ;
2878 PyObject * obj1 = 0 ;
2879 PyObject * obj2 = 0 ;
2880
2881 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_EmptyBitmap",&obj0,&obj1,&obj2)) goto fail;
2882 arg1 = (int) SWIG_AsInt(obj0);
2883 if (PyErr_Occurred()) SWIG_fail;
2884 arg2 = (int) SWIG_AsInt(obj1);
2885 if (PyErr_Occurred()) SWIG_fail;
2886 if (obj2) {
2887 arg3 = (int) SWIG_AsInt(obj2);
2888 if (PyErr_Occurred()) SWIG_fail;
2889 }
2890 {
2891 PyThreadState* __tstate = wxPyBeginAllowThreads();
2892 result = (wxBitmap *)new_wxBitmap__SWIG_0(arg1,arg2,arg3);
2893
2894 wxPyEndAllowThreads(__tstate);
2895 if (PyErr_Occurred()) SWIG_fail;
2896 }
2897 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2898 return resultobj;
2899 fail:
2900 return NULL;
2901 }
2902
2903
2904 static PyObject *_wrap_new_EmptyBitmap__SWIG_1(PyObject *self, PyObject *args) {
2905 PyObject *resultobj;
2906 wxSize *arg1 = 0 ;
2907 int arg2 = (int) -1 ;
2908 wxBitmap *result;
2909 wxSize temp1 ;
2910 PyObject * obj0 = 0 ;
2911 PyObject * obj1 = 0 ;
2912
2913 if(!PyArg_ParseTuple(args,(char *)"O|O:new_EmptyBitmap",&obj0,&obj1)) goto fail;
2914 {
2915 arg1 = &temp1;
2916 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
2917 }
2918 if (obj1) {
2919 arg2 = (int) SWIG_AsInt(obj1);
2920 if (PyErr_Occurred()) SWIG_fail;
2921 }
2922 {
2923 PyThreadState* __tstate = wxPyBeginAllowThreads();
2924 result = (wxBitmap *)new_wxBitmap__SWIG_1((wxSize const &)*arg1,arg2);
2925
2926 wxPyEndAllowThreads(__tstate);
2927 if (PyErr_Occurred()) SWIG_fail;
2928 }
2929 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2930 return resultobj;
2931 fail:
2932 return NULL;
2933 }
2934
2935
2936 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args) {
2937 int argc;
2938 PyObject *argv[4];
2939 int ii;
2940
2941 argc = PyObject_Length(args);
2942 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
2943 argv[ii] = PyTuple_GetItem(args,ii);
2944 }
2945 if ((argc >= 1) && (argc <= 2)) {
2946 int _v;
2947 {
2948 _v = wxPySimple_typecheck(argv[0], wxT("wxSize"), 2);
2949 }
2950 if (_v) {
2951 if (argc <= 1) {
2952 return _wrap_new_EmptyBitmap__SWIG_1(self,args);
2953 }
2954 _v = SWIG_CheckInt(argv[1]);
2955 if (_v) {
2956 return _wrap_new_EmptyBitmap__SWIG_1(self,args);
2957 }
2958 }
2959 }
2960 if ((argc >= 2) && (argc <= 3)) {
2961 int _v;
2962 _v = SWIG_CheckInt(argv[0]);
2963 if (_v) {
2964 _v = SWIG_CheckInt(argv[1]);
2965 if (_v) {
2966 if (argc <= 2) {
2967 return _wrap_new_EmptyBitmap__SWIG_0(self,args);
2968 }
2969 _v = SWIG_CheckInt(argv[2]);
2970 if (_v) {
2971 return _wrap_new_EmptyBitmap__SWIG_0(self,args);
2972 }
2973 }
2974 }
2975 }
2976
2977 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_EmptyBitmap'");
2978 return NULL;
2979 }
2980
2981
2982 static PyObject *_wrap_Bitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
2983 PyObject *resultobj;
2984 wxBitmap *arg1 = (wxBitmap *) 0 ;
2985 wxPalette *arg2 = 0 ;
2986 PyObject * obj0 = 0 ;
2987 PyObject * obj1 = 0 ;
2988 char *kwnames[] = {
2989 (char *) "self",(char *) "palette", NULL
2990 };
2991
2992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail;
2993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2995 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
2996 SWIG_POINTER_EXCEPTION | 0)) == -1)
2997 SWIG_fail;
2998 if (arg2 == NULL) {
2999 PyErr_SetString(PyExc_TypeError,"null reference");
3000 SWIG_fail;
3001 }
3002 {
3003 PyThreadState* __tstate = wxPyBeginAllowThreads();
3004 (arg1)->SetPalette(*arg2);
3005
3006 wxPyEndAllowThreads(__tstate);
3007 if (PyErr_Occurred()) SWIG_fail;
3008 }
3009 Py_INCREF(Py_None); resultobj = Py_None;
3010 return resultobj;
3011 fail:
3012 return NULL;
3013 }
3014
3015
3016 static PyObject *_wrap_Bitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3017 PyObject *resultobj;
3018 wxBitmap *arg1 = (wxBitmap *) 0 ;
3019 long result;
3020 PyObject * obj0 = 0 ;
3021 char *kwnames[] = {
3022 (char *) "self", NULL
3023 };
3024
3025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail;
3026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3028 {
3029 PyThreadState* __tstate = wxPyBeginAllowThreads();
3030 result = (long)(arg1)->GetHandle();
3031
3032 wxPyEndAllowThreads(__tstate);
3033 if (PyErr_Occurred()) SWIG_fail;
3034 }
3035 resultobj = SWIG_FromLong((long)result);
3036 return resultobj;
3037 fail:
3038 return NULL;
3039 }
3040
3041
3042 static PyObject *_wrap_Bitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3043 PyObject *resultobj;
3044 wxBitmap *arg1 = (wxBitmap *) 0 ;
3045 long arg2 ;
3046 PyObject * obj0 = 0 ;
3047 PyObject * obj1 = 0 ;
3048 char *kwnames[] = {
3049 (char *) "self",(char *) "handle", NULL
3050 };
3051
3052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail;
3053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3055 arg2 = (long) SWIG_AsLong(obj1);
3056 if (PyErr_Occurred()) SWIG_fail;
3057 {
3058 PyThreadState* __tstate = wxPyBeginAllowThreads();
3059 wxBitmap_SetHandle(arg1,arg2);
3060
3061 wxPyEndAllowThreads(__tstate);
3062 if (PyErr_Occurred()) SWIG_fail;
3063 }
3064 Py_INCREF(Py_None); resultobj = Py_None;
3065 return resultobj;
3066 fail:
3067 return NULL;
3068 }
3069
3070
3071 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3072 PyObject *resultobj;
3073 wxBitmap *arg1 = (wxBitmap *) 0 ;
3074 bool result;
3075 PyObject * obj0 = 0 ;
3076 char *kwnames[] = {
3077 (char *) "self", NULL
3078 };
3079
3080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
3081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3083 {
3084 PyThreadState* __tstate = wxPyBeginAllowThreads();
3085 result = (bool)(arg1)->Ok();
3086
3087 wxPyEndAllowThreads(__tstate);
3088 if (PyErr_Occurred()) SWIG_fail;
3089 }
3090 {
3091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3092 }
3093 return resultobj;
3094 fail:
3095 return NULL;
3096 }
3097
3098
3099 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3100 PyObject *resultobj;
3101 wxBitmap *arg1 = (wxBitmap *) 0 ;
3102 int result;
3103 PyObject * obj0 = 0 ;
3104 char *kwnames[] = {
3105 (char *) "self", NULL
3106 };
3107
3108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
3109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3111 {
3112 PyThreadState* __tstate = wxPyBeginAllowThreads();
3113 result = (int)(arg1)->GetWidth();
3114
3115 wxPyEndAllowThreads(__tstate);
3116 if (PyErr_Occurred()) SWIG_fail;
3117 }
3118 resultobj = SWIG_FromInt((int)result);
3119 return resultobj;
3120 fail:
3121 return NULL;
3122 }
3123
3124
3125 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3126 PyObject *resultobj;
3127 wxBitmap *arg1 = (wxBitmap *) 0 ;
3128 int result;
3129 PyObject * obj0 = 0 ;
3130 char *kwnames[] = {
3131 (char *) "self", NULL
3132 };
3133
3134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
3135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3137 {
3138 PyThreadState* __tstate = wxPyBeginAllowThreads();
3139 result = (int)(arg1)->GetHeight();
3140
3141 wxPyEndAllowThreads(__tstate);
3142 if (PyErr_Occurred()) SWIG_fail;
3143 }
3144 resultobj = SWIG_FromInt((int)result);
3145 return resultobj;
3146 fail:
3147 return NULL;
3148 }
3149
3150
3151 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3152 PyObject *resultobj;
3153 wxBitmap *arg1 = (wxBitmap *) 0 ;
3154 int result;
3155 PyObject * obj0 = 0 ;
3156 char *kwnames[] = {
3157 (char *) "self", NULL
3158 };
3159
3160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
3161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3163 {
3164 PyThreadState* __tstate = wxPyBeginAllowThreads();
3165 result = (int)(arg1)->GetDepth();
3166
3167 wxPyEndAllowThreads(__tstate);
3168 if (PyErr_Occurred()) SWIG_fail;
3169 }
3170 resultobj = SWIG_FromInt((int)result);
3171 return resultobj;
3172 fail:
3173 return NULL;
3174 }
3175
3176
3177 static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3178 PyObject *resultobj;
3179 wxBitmap *arg1 = (wxBitmap *) 0 ;
3180 wxSize result;
3181 PyObject * obj0 = 0 ;
3182 char *kwnames[] = {
3183 (char *) "self", NULL
3184 };
3185
3186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
3187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3189 {
3190 PyThreadState* __tstate = wxPyBeginAllowThreads();
3191 result = wxBitmap_GetSize(arg1);
3192
3193 wxPyEndAllowThreads(__tstate);
3194 if (PyErr_Occurred()) SWIG_fail;
3195 }
3196 {
3197 wxSize * resultptr;
3198 resultptr = new wxSize((wxSize &) result);
3199 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3200 }
3201 return resultobj;
3202 fail:
3203 return NULL;
3204 }
3205
3206
3207 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3208 PyObject *resultobj;
3209 wxBitmap *arg1 = (wxBitmap *) 0 ;
3210 SwigValueWrapper< wxImage > result;
3211 PyObject * obj0 = 0 ;
3212 char *kwnames[] = {
3213 (char *) "self", NULL
3214 };
3215
3216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
3217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3219 {
3220 PyThreadState* __tstate = wxPyBeginAllowThreads();
3221 result = ((wxBitmap const *)arg1)->ConvertToImage();
3222
3223 wxPyEndAllowThreads(__tstate);
3224 if (PyErr_Occurred()) SWIG_fail;
3225 }
3226 {
3227 wxImage * resultptr;
3228 resultptr = new wxImage((wxImage &) result);
3229 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3230 }
3231 return resultobj;
3232 fail:
3233 return NULL;
3234 }
3235
3236
3237 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3238 PyObject *resultobj;
3239 wxBitmap *arg1 = (wxBitmap *) 0 ;
3240 wxMask *result;
3241 PyObject * obj0 = 0 ;
3242 char *kwnames[] = {
3243 (char *) "self", NULL
3244 };
3245
3246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",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 = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3252
3253 wxPyEndAllowThreads(__tstate);
3254 if (PyErr_Occurred()) SWIG_fail;
3255 }
3256 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3257 return resultobj;
3258 fail:
3259 return NULL;
3260 }
3261
3262
3263 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3264 PyObject *resultobj;
3265 wxBitmap *arg1 = (wxBitmap *) 0 ;
3266 wxMask *arg2 = (wxMask *) 0 ;
3267 PyObject * obj0 = 0 ;
3268 PyObject * obj1 = 0 ;
3269 char *kwnames[] = {
3270 (char *) "self",(char *) "mask", NULL
3271 };
3272
3273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3276 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3278 {
3279 PyThreadState* __tstate = wxPyBeginAllowThreads();
3280 (arg1)->SetMask(arg2);
3281
3282 wxPyEndAllowThreads(__tstate);
3283 if (PyErr_Occurred()) SWIG_fail;
3284 }
3285 Py_INCREF(Py_None); resultobj = Py_None;
3286 return resultobj;
3287 fail:
3288 return NULL;
3289 }
3290
3291
3292 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3293 PyObject *resultobj;
3294 wxBitmap *arg1 = (wxBitmap *) 0 ;
3295 wxColour *arg2 = 0 ;
3296 wxColour temp2 ;
3297 PyObject * obj0 = 0 ;
3298 PyObject * obj1 = 0 ;
3299 char *kwnames[] = {
3300 (char *) "self",(char *) "colour", NULL
3301 };
3302
3303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3306 {
3307 arg2 = &temp2;
3308 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3309 }
3310 {
3311 PyThreadState* __tstate = wxPyBeginAllowThreads();
3312 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3313
3314 wxPyEndAllowThreads(__tstate);
3315 if (PyErr_Occurred()) SWIG_fail;
3316 }
3317 Py_INCREF(Py_None); resultobj = Py_None;
3318 return resultobj;
3319 fail:
3320 return NULL;
3321 }
3322
3323
3324 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3325 PyObject *resultobj;
3326 wxBitmap *arg1 = (wxBitmap *) 0 ;
3327 wxRect *arg2 = 0 ;
3328 SwigValueWrapper< wxBitmap > result;
3329 wxRect temp2 ;
3330 PyObject * obj0 = 0 ;
3331 PyObject * obj1 = 0 ;
3332 char *kwnames[] = {
3333 (char *) "self",(char *) "rect", NULL
3334 };
3335
3336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3339 {
3340 arg2 = &temp2;
3341 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3342 }
3343 {
3344 PyThreadState* __tstate = wxPyBeginAllowThreads();
3345 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3346
3347 wxPyEndAllowThreads(__tstate);
3348 if (PyErr_Occurred()) SWIG_fail;
3349 }
3350 {
3351 wxBitmap * resultptr;
3352 resultptr = new wxBitmap((wxBitmap &) result);
3353 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3354 }
3355 return resultobj;
3356 fail:
3357 return NULL;
3358 }
3359
3360
3361 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3362 PyObject *resultobj;
3363 wxBitmap *arg1 = (wxBitmap *) 0 ;
3364 wxString *arg2 = 0 ;
3365 int arg3 ;
3366 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
3367 bool result;
3368 bool temp2 = False ;
3369 PyObject * obj0 = 0 ;
3370 PyObject * obj1 = 0 ;
3371 PyObject * obj2 = 0 ;
3372 PyObject * obj3 = 0 ;
3373 char *kwnames[] = {
3374 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3375 };
3376
3377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3380 {
3381 arg2 = wxString_in_helper(obj1);
3382 if (arg2 == NULL) SWIG_fail;
3383 temp2 = True;
3384 }
3385 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3386 if (PyErr_Occurred()) SWIG_fail;
3387 if (obj3) {
3388 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3390 }
3391 {
3392 PyThreadState* __tstate = wxPyBeginAllowThreads();
3393 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3394
3395 wxPyEndAllowThreads(__tstate);
3396 if (PyErr_Occurred()) SWIG_fail;
3397 }
3398 {
3399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3400 }
3401 {
3402 if (temp2)
3403 delete arg2;
3404 }
3405 return resultobj;
3406 fail:
3407 {
3408 if (temp2)
3409 delete arg2;
3410 }
3411 return NULL;
3412 }
3413
3414
3415 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3416 PyObject *resultobj;
3417 wxBitmap *arg1 = (wxBitmap *) 0 ;
3418 wxString *arg2 = 0 ;
3419 int arg3 ;
3420 bool result;
3421 bool temp2 = False ;
3422 PyObject * obj0 = 0 ;
3423 PyObject * obj1 = 0 ;
3424 PyObject * obj2 = 0 ;
3425 char *kwnames[] = {
3426 (char *) "self",(char *) "name",(char *) "type", NULL
3427 };
3428
3429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3432 {
3433 arg2 = wxString_in_helper(obj1);
3434 if (arg2 == NULL) SWIG_fail;
3435 temp2 = True;
3436 }
3437 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3438 if (PyErr_Occurred()) SWIG_fail;
3439 {
3440 PyThreadState* __tstate = wxPyBeginAllowThreads();
3441 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3442
3443 wxPyEndAllowThreads(__tstate);
3444 if (PyErr_Occurred()) SWIG_fail;
3445 }
3446 {
3447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3448 }
3449 {
3450 if (temp2)
3451 delete arg2;
3452 }
3453 return resultobj;
3454 fail:
3455 {
3456 if (temp2)
3457 delete arg2;
3458 }
3459 return NULL;
3460 }
3461
3462
3463 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3464 PyObject *resultobj;
3465 wxBitmap *arg1 = (wxBitmap *) 0 ;
3466 wxIcon *arg2 = 0 ;
3467 bool result;
3468 PyObject * obj0 = 0 ;
3469 PyObject * obj1 = 0 ;
3470 char *kwnames[] = {
3471 (char *) "self",(char *) "icon", NULL
3472 };
3473
3474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3477 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3478 SWIG_POINTER_EXCEPTION | 0)) == -1)
3479 SWIG_fail;
3480 if (arg2 == NULL) {
3481 PyErr_SetString(PyExc_TypeError,"null reference");
3482 SWIG_fail;
3483 }
3484 {
3485 PyThreadState* __tstate = wxPyBeginAllowThreads();
3486 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3487
3488 wxPyEndAllowThreads(__tstate);
3489 if (PyErr_Occurred()) SWIG_fail;
3490 }
3491 {
3492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3493 }
3494 return resultobj;
3495 fail:
3496 return NULL;
3497 }
3498
3499
3500 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3501 PyObject *resultobj;
3502 wxBitmap *arg1 = (wxBitmap *) 0 ;
3503 int arg2 ;
3504 PyObject * obj0 = 0 ;
3505 PyObject * obj1 = 0 ;
3506 char *kwnames[] = {
3507 (char *) "self",(char *) "height", NULL
3508 };
3509
3510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3513 arg2 = (int) SWIG_AsInt(obj1);
3514 if (PyErr_Occurred()) SWIG_fail;
3515 {
3516 PyThreadState* __tstate = wxPyBeginAllowThreads();
3517 (arg1)->SetHeight(arg2);
3518
3519 wxPyEndAllowThreads(__tstate);
3520 if (PyErr_Occurred()) SWIG_fail;
3521 }
3522 Py_INCREF(Py_None); resultobj = Py_None;
3523 return resultobj;
3524 fail:
3525 return NULL;
3526 }
3527
3528
3529 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3530 PyObject *resultobj;
3531 wxBitmap *arg1 = (wxBitmap *) 0 ;
3532 int arg2 ;
3533 PyObject * obj0 = 0 ;
3534 PyObject * obj1 = 0 ;
3535 char *kwnames[] = {
3536 (char *) "self",(char *) "width", NULL
3537 };
3538
3539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3542 arg2 = (int) SWIG_AsInt(obj1);
3543 if (PyErr_Occurred()) SWIG_fail;
3544 {
3545 PyThreadState* __tstate = wxPyBeginAllowThreads();
3546 (arg1)->SetWidth(arg2);
3547
3548 wxPyEndAllowThreads(__tstate);
3549 if (PyErr_Occurred()) SWIG_fail;
3550 }
3551 Py_INCREF(Py_None); resultobj = Py_None;
3552 return resultobj;
3553 fail:
3554 return NULL;
3555 }
3556
3557
3558 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3559 PyObject *resultobj;
3560 wxBitmap *arg1 = (wxBitmap *) 0 ;
3561 int arg2 ;
3562 PyObject * obj0 = 0 ;
3563 PyObject * obj1 = 0 ;
3564 char *kwnames[] = {
3565 (char *) "self",(char *) "depth", NULL
3566 };
3567
3568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3571 arg2 = (int) SWIG_AsInt(obj1);
3572 if (PyErr_Occurred()) SWIG_fail;
3573 {
3574 PyThreadState* __tstate = wxPyBeginAllowThreads();
3575 (arg1)->SetDepth(arg2);
3576
3577 wxPyEndAllowThreads(__tstate);
3578 if (PyErr_Occurred()) SWIG_fail;
3579 }
3580 Py_INCREF(Py_None); resultobj = Py_None;
3581 return resultobj;
3582 fail:
3583 return NULL;
3584 }
3585
3586
3587 static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3588 PyObject *resultobj;
3589 wxBitmap *arg1 = (wxBitmap *) 0 ;
3590 wxSize *arg2 = 0 ;
3591 wxSize temp2 ;
3592 PyObject * obj0 = 0 ;
3593 PyObject * obj1 = 0 ;
3594 char *kwnames[] = {
3595 (char *) "self",(char *) "size", NULL
3596 };
3597
3598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3601 {
3602 arg2 = &temp2;
3603 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3604 }
3605 {
3606 PyThreadState* __tstate = wxPyBeginAllowThreads();
3607 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3608
3609 wxPyEndAllowThreads(__tstate);
3610 if (PyErr_Occurred()) SWIG_fail;
3611 }
3612 Py_INCREF(Py_None); resultobj = Py_None;
3613 return resultobj;
3614 fail:
3615 return NULL;
3616 }
3617
3618
3619 static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3620 PyObject *resultobj;
3621 wxBitmap *arg1 = (wxBitmap *) 0 ;
3622 wxCursor *arg2 = 0 ;
3623 bool result;
3624 PyObject * obj0 = 0 ;
3625 PyObject * obj1 = 0 ;
3626 char *kwnames[] = {
3627 (char *) "self",(char *) "cursor", NULL
3628 };
3629
3630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail;
3631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3633 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
3634 SWIG_POINTER_EXCEPTION | 0)) == -1)
3635 SWIG_fail;
3636 if (arg2 == NULL) {
3637 PyErr_SetString(PyExc_TypeError,"null reference");
3638 SWIG_fail;
3639 }
3640 {
3641 PyThreadState* __tstate = wxPyBeginAllowThreads();
3642 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
3643
3644 wxPyEndAllowThreads(__tstate);
3645 if (PyErr_Occurred()) SWIG_fail;
3646 }
3647 {
3648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3649 }
3650 return resultobj;
3651 fail:
3652 return NULL;
3653 }
3654
3655
3656 static PyObject *_wrap_Bitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3657 PyObject *resultobj;
3658 wxBitmap *arg1 = (wxBitmap *) 0 ;
3659 int result;
3660 PyObject * obj0 = 0 ;
3661 char *kwnames[] = {
3662 (char *) "self", NULL
3663 };
3664
3665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail;
3666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3668 {
3669 PyThreadState* __tstate = wxPyBeginAllowThreads();
3670 result = (int)(arg1)->GetQuality();
3671
3672 wxPyEndAllowThreads(__tstate);
3673 if (PyErr_Occurred()) SWIG_fail;
3674 }
3675 resultobj = SWIG_FromInt((int)result);
3676 return resultobj;
3677 fail:
3678 return NULL;
3679 }
3680
3681
3682 static PyObject *_wrap_Bitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3683 PyObject *resultobj;
3684 wxBitmap *arg1 = (wxBitmap *) 0 ;
3685 int arg2 ;
3686 PyObject * obj0 = 0 ;
3687 PyObject * obj1 = 0 ;
3688 char *kwnames[] = {
3689 (char *) "self",(char *) "q", NULL
3690 };
3691
3692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetQuality",kwnames,&obj0,&obj1)) goto fail;
3693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3695 arg2 = (int) SWIG_AsInt(obj1);
3696 if (PyErr_Occurred()) SWIG_fail;
3697 {
3698 PyThreadState* __tstate = wxPyBeginAllowThreads();
3699 (arg1)->SetQuality(arg2);
3700
3701 wxPyEndAllowThreads(__tstate);
3702 if (PyErr_Occurred()) SWIG_fail;
3703 }
3704 Py_INCREF(Py_None); resultobj = Py_None;
3705 return resultobj;
3706 fail:
3707 return NULL;
3708 }
3709
3710
3711 static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3712 PyObject *resultobj;
3713 wxBitmap *arg1 = (wxBitmap *) 0 ;
3714 wxBitmap *arg2 = (wxBitmap *) 0 ;
3715 bool result;
3716 PyObject * obj0 = 0 ;
3717 PyObject * obj1 = 0 ;
3718 char *kwnames[] = {
3719 (char *) "self",(char *) "other", NULL
3720 };
3721
3722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3725 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3727 {
3728 PyThreadState* __tstate = wxPyBeginAllowThreads();
3729 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3730
3731 wxPyEndAllowThreads(__tstate);
3732 if (PyErr_Occurred()) SWIG_fail;
3733 }
3734 {
3735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3736 }
3737 return resultobj;
3738 fail:
3739 return NULL;
3740 }
3741
3742
3743 static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3744 PyObject *resultobj;
3745 wxBitmap *arg1 = (wxBitmap *) 0 ;
3746 wxBitmap *arg2 = (wxBitmap *) 0 ;
3747 bool result;
3748 PyObject * obj0 = 0 ;
3749 PyObject * obj1 = 0 ;
3750 char *kwnames[] = {
3751 (char *) "self",(char *) "other", NULL
3752 };
3753
3754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3757 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3759 {
3760 PyThreadState* __tstate = wxPyBeginAllowThreads();
3761 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3762
3763 wxPyEndAllowThreads(__tstate);
3764 if (PyErr_Occurred()) SWIG_fail;
3765 }
3766 {
3767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3768 }
3769 return resultobj;
3770 fail:
3771 return NULL;
3772 }
3773
3774
3775 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3776 PyObject *obj;
3777 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3778 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3779 Py_INCREF(obj);
3780 return Py_BuildValue((char *)"");
3781 }
3782 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3783 PyObject *resultobj;
3784 wxBitmap *arg1 = 0 ;
3785 wxColour const &arg2_defvalue = wxNullColour ;
3786 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3787 wxMask *result;
3788 wxColour temp2 ;
3789 PyObject * obj0 = 0 ;
3790 PyObject * obj1 = 0 ;
3791 char *kwnames[] = {
3792 (char *) "bitmap",(char *) "colour", NULL
3793 };
3794
3795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3797 SWIG_POINTER_EXCEPTION | 0)) == -1)
3798 SWIG_fail;
3799 if (arg1 == NULL) {
3800 PyErr_SetString(PyExc_TypeError,"null reference");
3801 SWIG_fail;
3802 }
3803 if (obj1) {
3804 {
3805 arg2 = &temp2;
3806 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3807 }
3808 }
3809 {
3810 PyThreadState* __tstate = wxPyBeginAllowThreads();
3811 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3812
3813 wxPyEndAllowThreads(__tstate);
3814 if (PyErr_Occurred()) SWIG_fail;
3815 }
3816 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3817 return resultobj;
3818 fail:
3819 return NULL;
3820 }
3821
3822
3823 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3824 PyObject *obj;
3825 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3826 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3827 Py_INCREF(obj);
3828 return Py_BuildValue((char *)"");
3829 }
3830 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3831 PyObject *resultobj;
3832 wxString *arg1 = 0 ;
3833 int arg2 ;
3834 int arg3 = (int) -1 ;
3835 int arg4 = (int) -1 ;
3836 wxIcon *result;
3837 bool temp1 = False ;
3838 PyObject * obj0 = 0 ;
3839 PyObject * obj1 = 0 ;
3840 PyObject * obj2 = 0 ;
3841 PyObject * obj3 = 0 ;
3842 char *kwnames[] = {
3843 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3844 };
3845
3846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3847 {
3848 arg1 = wxString_in_helper(obj0);
3849 if (arg1 == NULL) SWIG_fail;
3850 temp1 = True;
3851 }
3852 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3853 if (PyErr_Occurred()) SWIG_fail;
3854 if (obj2) {
3855 arg3 = (int) SWIG_AsInt(obj2);
3856 if (PyErr_Occurred()) SWIG_fail;
3857 }
3858 if (obj3) {
3859 arg4 = (int) SWIG_AsInt(obj3);
3860 if (PyErr_Occurred()) SWIG_fail;
3861 }
3862 {
3863 PyThreadState* __tstate = wxPyBeginAllowThreads();
3864 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3865
3866 wxPyEndAllowThreads(__tstate);
3867 if (PyErr_Occurred()) SWIG_fail;
3868 }
3869 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3870 {
3871 if (temp1)
3872 delete arg1;
3873 }
3874 return resultobj;
3875 fail:
3876 {
3877 if (temp1)
3878 delete arg1;
3879 }
3880 return NULL;
3881 }
3882
3883
3884 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3885 PyObject *resultobj;
3886 wxIcon *arg1 = (wxIcon *) 0 ;
3887 PyObject * obj0 = 0 ;
3888 char *kwnames[] = {
3889 (char *) "self", NULL
3890 };
3891
3892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3895 {
3896 PyThreadState* __tstate = wxPyBeginAllowThreads();
3897 delete arg1;
3898
3899 wxPyEndAllowThreads(__tstate);
3900 if (PyErr_Occurred()) SWIG_fail;
3901 }
3902 Py_INCREF(Py_None); resultobj = Py_None;
3903 return resultobj;
3904 fail:
3905 return NULL;
3906 }
3907
3908
3909 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3910 PyObject *resultobj;
3911 wxIcon *result;
3912 char *kwnames[] = {
3913 NULL
3914 };
3915
3916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3917 {
3918 PyThreadState* __tstate = wxPyBeginAllowThreads();
3919 result = (wxIcon *)new wxIcon();
3920
3921 wxPyEndAllowThreads(__tstate);
3922 if (PyErr_Occurred()) SWIG_fail;
3923 }
3924 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3925 return resultobj;
3926 fail:
3927 return NULL;
3928 }
3929
3930
3931 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3932 PyObject *resultobj;
3933 wxIconLocation *arg1 = 0 ;
3934 wxIcon *result;
3935 PyObject * obj0 = 0 ;
3936 char *kwnames[] = {
3937 (char *) "loc", NULL
3938 };
3939
3940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3942 SWIG_POINTER_EXCEPTION | 0)) == -1)
3943 SWIG_fail;
3944 if (arg1 == NULL) {
3945 PyErr_SetString(PyExc_TypeError,"null reference");
3946 SWIG_fail;
3947 }
3948 {
3949 PyThreadState* __tstate = wxPyBeginAllowThreads();
3950 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3951
3952 wxPyEndAllowThreads(__tstate);
3953 if (PyErr_Occurred()) SWIG_fail;
3954 }
3955 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3956 return resultobj;
3957 fail:
3958 return NULL;
3959 }
3960
3961
3962 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3963 PyObject *resultobj;
3964 wxBitmap *arg1 = 0 ;
3965 wxIcon *result;
3966 PyObject * obj0 = 0 ;
3967 char *kwnames[] = {
3968 (char *) "bmp", NULL
3969 };
3970
3971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3973 SWIG_POINTER_EXCEPTION | 0)) == -1)
3974 SWIG_fail;
3975 if (arg1 == NULL) {
3976 PyErr_SetString(PyExc_TypeError,"null reference");
3977 SWIG_fail;
3978 }
3979 {
3980 PyThreadState* __tstate = wxPyBeginAllowThreads();
3981 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3982
3983 wxPyEndAllowThreads(__tstate);
3984 if (PyErr_Occurred()) SWIG_fail;
3985 }
3986 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3987 return resultobj;
3988 fail:
3989 return NULL;
3990 }
3991
3992
3993 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3994 PyObject *resultobj;
3995 PyObject *arg1 = (PyObject *) 0 ;
3996 wxIcon *result;
3997 PyObject * obj0 = 0 ;
3998 char *kwnames[] = {
3999 (char *) "listOfStrings", NULL
4000 };
4001
4002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
4003 arg1 = obj0;
4004 {
4005 PyThreadState* __tstate = wxPyBeginAllowThreads();
4006 result = (wxIcon *)new_wxIcon(arg1);
4007
4008 wxPyEndAllowThreads(__tstate);
4009 if (PyErr_Occurred()) SWIG_fail;
4010 }
4011 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
4012 return resultobj;
4013 fail:
4014 return NULL;
4015 }
4016
4017
4018 static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4019 PyObject *resultobj;
4020 wxIcon *arg1 = (wxIcon *) 0 ;
4021 wxString *arg2 = 0 ;
4022 int arg3 ;
4023 bool result;
4024 bool temp2 = False ;
4025 PyObject * obj0 = 0 ;
4026 PyObject * obj1 = 0 ;
4027 PyObject * obj2 = 0 ;
4028 char *kwnames[] = {
4029 (char *) "self",(char *) "name",(char *) "type", NULL
4030 };
4031
4032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4035 {
4036 arg2 = wxString_in_helper(obj1);
4037 if (arg2 == NULL) SWIG_fail;
4038 temp2 = True;
4039 }
4040 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
4041 if (PyErr_Occurred()) SWIG_fail;
4042 {
4043 PyThreadState* __tstate = wxPyBeginAllowThreads();
4044 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
4045
4046 wxPyEndAllowThreads(__tstate);
4047 if (PyErr_Occurred()) SWIG_fail;
4048 }
4049 {
4050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4051 }
4052 {
4053 if (temp2)
4054 delete arg2;
4055 }
4056 return resultobj;
4057 fail:
4058 {
4059 if (temp2)
4060 delete arg2;
4061 }
4062 return NULL;
4063 }
4064
4065
4066 static PyObject *_wrap_Icon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4067 PyObject *resultobj;
4068 wxIcon *arg1 = (wxIcon *) 0 ;
4069 long result;
4070 PyObject * obj0 = 0 ;
4071 char *kwnames[] = {
4072 (char *) "self", NULL
4073 };
4074
4075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail;
4076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4078 {
4079 PyThreadState* __tstate = wxPyBeginAllowThreads();
4080 result = (long)(arg1)->GetHandle();
4081
4082 wxPyEndAllowThreads(__tstate);
4083 if (PyErr_Occurred()) SWIG_fail;
4084 }
4085 resultobj = SWIG_FromLong((long)result);
4086 return resultobj;
4087 fail:
4088 return NULL;
4089 }
4090
4091
4092 static PyObject *_wrap_Icon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4093 PyObject *resultobj;
4094 wxIcon *arg1 = (wxIcon *) 0 ;
4095 long arg2 ;
4096 PyObject * obj0 = 0 ;
4097 PyObject * obj1 = 0 ;
4098 char *kwnames[] = {
4099 (char *) "self",(char *) "handle", NULL
4100 };
4101
4102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail;
4103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4105 arg2 = (long) SWIG_AsLong(obj1);
4106 if (PyErr_Occurred()) SWIG_fail;
4107 {
4108 PyThreadState* __tstate = wxPyBeginAllowThreads();
4109 wxIcon_SetHandle(arg1,arg2);
4110
4111 wxPyEndAllowThreads(__tstate);
4112 if (PyErr_Occurred()) SWIG_fail;
4113 }
4114 Py_INCREF(Py_None); resultobj = Py_None;
4115 return resultobj;
4116 fail:
4117 return NULL;
4118 }
4119
4120
4121 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4122 PyObject *resultobj;
4123 wxIcon *arg1 = (wxIcon *) 0 ;
4124 bool result;
4125 PyObject * obj0 = 0 ;
4126 char *kwnames[] = {
4127 (char *) "self", NULL
4128 };
4129
4130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
4131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4133 {
4134 PyThreadState* __tstate = wxPyBeginAllowThreads();
4135 result = (bool)(arg1)->Ok();
4136
4137 wxPyEndAllowThreads(__tstate);
4138 if (PyErr_Occurred()) SWIG_fail;
4139 }
4140 {
4141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4142 }
4143 return resultobj;
4144 fail:
4145 return NULL;
4146 }
4147
4148
4149 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4150 PyObject *resultobj;
4151 wxIcon *arg1 = (wxIcon *) 0 ;
4152 int result;
4153 PyObject * obj0 = 0 ;
4154 char *kwnames[] = {
4155 (char *) "self", NULL
4156 };
4157
4158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
4159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4161 {
4162 PyThreadState* __tstate = wxPyBeginAllowThreads();
4163 result = (int)(arg1)->GetWidth();
4164
4165 wxPyEndAllowThreads(__tstate);
4166 if (PyErr_Occurred()) SWIG_fail;
4167 }
4168 resultobj = SWIG_FromInt((int)result);
4169 return resultobj;
4170 fail:
4171 return NULL;
4172 }
4173
4174
4175 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4176 PyObject *resultobj;
4177 wxIcon *arg1 = (wxIcon *) 0 ;
4178 int result;
4179 PyObject * obj0 = 0 ;
4180 char *kwnames[] = {
4181 (char *) "self", NULL
4182 };
4183
4184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
4185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4187 {
4188 PyThreadState* __tstate = wxPyBeginAllowThreads();
4189 result = (int)(arg1)->GetHeight();
4190
4191 wxPyEndAllowThreads(__tstate);
4192 if (PyErr_Occurred()) SWIG_fail;
4193 }
4194 resultobj = SWIG_FromInt((int)result);
4195 return resultobj;
4196 fail:
4197 return NULL;
4198 }
4199
4200
4201 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4202 PyObject *resultobj;
4203 wxIcon *arg1 = (wxIcon *) 0 ;
4204 int result;
4205 PyObject * obj0 = 0 ;
4206 char *kwnames[] = {
4207 (char *) "self", NULL
4208 };
4209
4210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
4211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4213 {
4214 PyThreadState* __tstate = wxPyBeginAllowThreads();
4215 result = (int)(arg1)->GetDepth();
4216
4217 wxPyEndAllowThreads(__tstate);
4218 if (PyErr_Occurred()) SWIG_fail;
4219 }
4220 resultobj = SWIG_FromInt((int)result);
4221 return resultobj;
4222 fail:
4223 return NULL;
4224 }
4225
4226
4227 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4228 PyObject *resultobj;
4229 wxIcon *arg1 = (wxIcon *) 0 ;
4230 int arg2 ;
4231 PyObject * obj0 = 0 ;
4232 PyObject * obj1 = 0 ;
4233 char *kwnames[] = {
4234 (char *) "self",(char *) "w", NULL
4235 };
4236
4237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
4238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4240 arg2 = (int) SWIG_AsInt(obj1);
4241 if (PyErr_Occurred()) SWIG_fail;
4242 {
4243 PyThreadState* __tstate = wxPyBeginAllowThreads();
4244 (arg1)->SetWidth(arg2);
4245
4246 wxPyEndAllowThreads(__tstate);
4247 if (PyErr_Occurred()) SWIG_fail;
4248 }
4249 Py_INCREF(Py_None); resultobj = Py_None;
4250 return resultobj;
4251 fail:
4252 return NULL;
4253 }
4254
4255
4256 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4257 PyObject *resultobj;
4258 wxIcon *arg1 = (wxIcon *) 0 ;
4259 int arg2 ;
4260 PyObject * obj0 = 0 ;
4261 PyObject * obj1 = 0 ;
4262 char *kwnames[] = {
4263 (char *) "self",(char *) "h", NULL
4264 };
4265
4266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4269 arg2 = (int) SWIG_AsInt(obj1);
4270 if (PyErr_Occurred()) SWIG_fail;
4271 {
4272 PyThreadState* __tstate = wxPyBeginAllowThreads();
4273 (arg1)->SetHeight(arg2);
4274
4275 wxPyEndAllowThreads(__tstate);
4276 if (PyErr_Occurred()) SWIG_fail;
4277 }
4278 Py_INCREF(Py_None); resultobj = Py_None;
4279 return resultobj;
4280 fail:
4281 return NULL;
4282 }
4283
4284
4285 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4286 PyObject *resultobj;
4287 wxIcon *arg1 = (wxIcon *) 0 ;
4288 int arg2 ;
4289 PyObject * obj0 = 0 ;
4290 PyObject * obj1 = 0 ;
4291 char *kwnames[] = {
4292 (char *) "self",(char *) "d", NULL
4293 };
4294
4295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4298 arg2 = (int) SWIG_AsInt(obj1);
4299 if (PyErr_Occurred()) SWIG_fail;
4300 {
4301 PyThreadState* __tstate = wxPyBeginAllowThreads();
4302 (arg1)->SetDepth(arg2);
4303
4304 wxPyEndAllowThreads(__tstate);
4305 if (PyErr_Occurred()) SWIG_fail;
4306 }
4307 Py_INCREF(Py_None); resultobj = Py_None;
4308 return resultobj;
4309 fail:
4310 return NULL;
4311 }
4312
4313
4314 static PyObject *_wrap_Icon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4315 PyObject *resultobj;
4316 wxIcon *arg1 = (wxIcon *) 0 ;
4317 wxSize *arg2 = 0 ;
4318 wxSize temp2 ;
4319 PyObject * obj0 = 0 ;
4320 PyObject * obj1 = 0 ;
4321 char *kwnames[] = {
4322 (char *) "self",(char *) "size", NULL
4323 };
4324
4325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail;
4326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4328 {
4329 arg2 = &temp2;
4330 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4331 }
4332 {
4333 PyThreadState* __tstate = wxPyBeginAllowThreads();
4334 (arg1)->SetSize((wxSize const &)*arg2);
4335
4336 wxPyEndAllowThreads(__tstate);
4337 if (PyErr_Occurred()) SWIG_fail;
4338 }
4339 Py_INCREF(Py_None); resultobj = Py_None;
4340 return resultobj;
4341 fail:
4342 return NULL;
4343 }
4344
4345
4346 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4347 PyObject *resultobj;
4348 wxIcon *arg1 = (wxIcon *) 0 ;
4349 wxBitmap *arg2 = 0 ;
4350 PyObject * obj0 = 0 ;
4351 PyObject * obj1 = 0 ;
4352 char *kwnames[] = {
4353 (char *) "self",(char *) "bmp", NULL
4354 };
4355
4356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
4357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4359 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4360 SWIG_POINTER_EXCEPTION | 0)) == -1)
4361 SWIG_fail;
4362 if (arg2 == NULL) {
4363 PyErr_SetString(PyExc_TypeError,"null reference");
4364 SWIG_fail;
4365 }
4366 {
4367 PyThreadState* __tstate = wxPyBeginAllowThreads();
4368 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
4369
4370 wxPyEndAllowThreads(__tstate);
4371 if (PyErr_Occurred()) SWIG_fail;
4372 }
4373 Py_INCREF(Py_None); resultobj = Py_None;
4374 return resultobj;
4375 fail:
4376 return NULL;
4377 }
4378
4379
4380 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
4381 PyObject *obj;
4382 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4383 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
4384 Py_INCREF(obj);
4385 return Py_BuildValue((char *)"");
4386 }
4387 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4388 PyObject *resultobj;
4389 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4390 int arg2 = (int) 0 ;
4391 wxIconLocation *result;
4392 bool temp1 = False ;
4393 PyObject * obj0 = 0 ;
4394 PyObject * obj1 = 0 ;
4395 char *kwnames[] = {
4396 (char *) "filename",(char *) "num", NULL
4397 };
4398
4399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
4400 if (obj0) {
4401 {
4402 arg1 = wxString_in_helper(obj0);
4403 if (arg1 == NULL) SWIG_fail;
4404 temp1 = True;
4405 }
4406 }
4407 if (obj1) {
4408 arg2 = (int) SWIG_AsInt(obj1);
4409 if (PyErr_Occurred()) SWIG_fail;
4410 }
4411 {
4412 PyThreadState* __tstate = wxPyBeginAllowThreads();
4413 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4414
4415 wxPyEndAllowThreads(__tstate);
4416 if (PyErr_Occurred()) SWIG_fail;
4417 }
4418 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
4419 {
4420 if (temp1)
4421 delete arg1;
4422 }
4423 return resultobj;
4424 fail:
4425 {
4426 if (temp1)
4427 delete arg1;
4428 }
4429 return NULL;
4430 }
4431
4432
4433 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4434 PyObject *resultobj;
4435 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4436 PyObject * obj0 = 0 ;
4437 char *kwnames[] = {
4438 (char *) "self", NULL
4439 };
4440
4441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
4442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4444 {
4445 PyThreadState* __tstate = wxPyBeginAllowThreads();
4446 delete arg1;
4447
4448 wxPyEndAllowThreads(__tstate);
4449 if (PyErr_Occurred()) SWIG_fail;
4450 }
4451 Py_INCREF(Py_None); resultobj = Py_None;
4452 return resultobj;
4453 fail:
4454 return NULL;
4455 }
4456
4457
4458 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4459 PyObject *resultobj;
4460 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4461 bool result;
4462 PyObject * obj0 = 0 ;
4463 char *kwnames[] = {
4464 (char *) "self", NULL
4465 };
4466
4467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4470 {
4471 PyThreadState* __tstate = wxPyBeginAllowThreads();
4472 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4473
4474 wxPyEndAllowThreads(__tstate);
4475 if (PyErr_Occurred()) SWIG_fail;
4476 }
4477 {
4478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4479 }
4480 return resultobj;
4481 fail:
4482 return NULL;
4483 }
4484
4485
4486 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4487 PyObject *resultobj;
4488 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4489 wxString *arg2 = 0 ;
4490 bool temp2 = False ;
4491 PyObject * obj0 = 0 ;
4492 PyObject * obj1 = 0 ;
4493 char *kwnames[] = {
4494 (char *) "self",(char *) "filename", NULL
4495 };
4496
4497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4500 {
4501 arg2 = wxString_in_helper(obj1);
4502 if (arg2 == NULL) SWIG_fail;
4503 temp2 = True;
4504 }
4505 {
4506 PyThreadState* __tstate = wxPyBeginAllowThreads();
4507 (arg1)->SetFileName((wxString const &)*arg2);
4508
4509 wxPyEndAllowThreads(__tstate);
4510 if (PyErr_Occurred()) SWIG_fail;
4511 }
4512 Py_INCREF(Py_None); resultobj = Py_None;
4513 {
4514 if (temp2)
4515 delete arg2;
4516 }
4517 return resultobj;
4518 fail:
4519 {
4520 if (temp2)
4521 delete arg2;
4522 }
4523 return NULL;
4524 }
4525
4526
4527 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4528 PyObject *resultobj;
4529 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4530 wxString *result;
4531 PyObject * obj0 = 0 ;
4532 char *kwnames[] = {
4533 (char *) "self", NULL
4534 };
4535
4536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4539 {
4540 PyThreadState* __tstate = wxPyBeginAllowThreads();
4541 {
4542 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4543 result = (wxString *) &_result_ref;
4544 }
4545
4546 wxPyEndAllowThreads(__tstate);
4547 if (PyErr_Occurred()) SWIG_fail;
4548 }
4549 {
4550 #if wxUSE_UNICODE
4551 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4552 #else
4553 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4554 #endif
4555 }
4556 return resultobj;
4557 fail:
4558 return NULL;
4559 }
4560
4561
4562 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4563 PyObject *resultobj;
4564 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4565 int arg2 ;
4566 PyObject * obj0 = 0 ;
4567 PyObject * obj1 = 0 ;
4568 char *kwnames[] = {
4569 (char *) "self",(char *) "num", NULL
4570 };
4571
4572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4575 arg2 = (int) SWIG_AsInt(obj1);
4576 if (PyErr_Occurred()) SWIG_fail;
4577 {
4578 PyThreadState* __tstate = wxPyBeginAllowThreads();
4579 wxIconLocation_SetIndex(arg1,arg2);
4580
4581 wxPyEndAllowThreads(__tstate);
4582 if (PyErr_Occurred()) SWIG_fail;
4583 }
4584 Py_INCREF(Py_None); resultobj = Py_None;
4585 return resultobj;
4586 fail:
4587 return NULL;
4588 }
4589
4590
4591 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4592 PyObject *resultobj;
4593 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4594 int result;
4595 PyObject * obj0 = 0 ;
4596 char *kwnames[] = {
4597 (char *) "self", NULL
4598 };
4599
4600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4603 {
4604 PyThreadState* __tstate = wxPyBeginAllowThreads();
4605 result = (int)wxIconLocation_GetIndex(arg1);
4606
4607 wxPyEndAllowThreads(__tstate);
4608 if (PyErr_Occurred()) SWIG_fail;
4609 }
4610 resultobj = SWIG_FromInt((int)result);
4611 return resultobj;
4612 fail:
4613 return NULL;
4614 }
4615
4616
4617 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4618 PyObject *obj;
4619 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4620 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4621 Py_INCREF(obj);
4622 return Py_BuildValue((char *)"");
4623 }
4624 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4625 PyObject *resultobj;
4626 wxIconBundle *result;
4627 char *kwnames[] = {
4628 NULL
4629 };
4630
4631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4632 {
4633 PyThreadState* __tstate = wxPyBeginAllowThreads();
4634 result = (wxIconBundle *)new wxIconBundle();
4635
4636 wxPyEndAllowThreads(__tstate);
4637 if (PyErr_Occurred()) SWIG_fail;
4638 }
4639 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4640 return resultobj;
4641 fail:
4642 return NULL;
4643 }
4644
4645
4646 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4647 PyObject *resultobj;
4648 wxString *arg1 = 0 ;
4649 long arg2 ;
4650 wxIconBundle *result;
4651 bool temp1 = False ;
4652 PyObject * obj0 = 0 ;
4653 PyObject * obj1 = 0 ;
4654 char *kwnames[] = {
4655 (char *) "file",(char *) "type", NULL
4656 };
4657
4658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4659 {
4660 arg1 = wxString_in_helper(obj0);
4661 if (arg1 == NULL) SWIG_fail;
4662 temp1 = True;
4663 }
4664 arg2 = (long) SWIG_AsLong(obj1);
4665 if (PyErr_Occurred()) SWIG_fail;
4666 {
4667 PyThreadState* __tstate = wxPyBeginAllowThreads();
4668 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4669
4670 wxPyEndAllowThreads(__tstate);
4671 if (PyErr_Occurred()) SWIG_fail;
4672 }
4673 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4674 {
4675 if (temp1)
4676 delete arg1;
4677 }
4678 return resultobj;
4679 fail:
4680 {
4681 if (temp1)
4682 delete arg1;
4683 }
4684 return NULL;
4685 }
4686
4687
4688 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4689 PyObject *resultobj;
4690 wxIcon *arg1 = 0 ;
4691 wxIconBundle *result;
4692 PyObject * obj0 = 0 ;
4693 char *kwnames[] = {
4694 (char *) "icon", NULL
4695 };
4696
4697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4699 SWIG_POINTER_EXCEPTION | 0)) == -1)
4700 SWIG_fail;
4701 if (arg1 == NULL) {
4702 PyErr_SetString(PyExc_TypeError,"null reference");
4703 SWIG_fail;
4704 }
4705 {
4706 PyThreadState* __tstate = wxPyBeginAllowThreads();
4707 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4708
4709 wxPyEndAllowThreads(__tstate);
4710 if (PyErr_Occurred()) SWIG_fail;
4711 }
4712 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4713 return resultobj;
4714 fail:
4715 return NULL;
4716 }
4717
4718
4719 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4720 PyObject *resultobj;
4721 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4722 PyObject * obj0 = 0 ;
4723 char *kwnames[] = {
4724 (char *) "self", NULL
4725 };
4726
4727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4730 {
4731 PyThreadState* __tstate = wxPyBeginAllowThreads();
4732 delete arg1;
4733
4734 wxPyEndAllowThreads(__tstate);
4735 if (PyErr_Occurred()) SWIG_fail;
4736 }
4737 Py_INCREF(Py_None); resultobj = Py_None;
4738 return resultobj;
4739 fail:
4740 return NULL;
4741 }
4742
4743
4744 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4745 PyObject *resultobj;
4746 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4747 wxIcon *arg2 = 0 ;
4748 PyObject * obj0 = 0 ;
4749 PyObject * obj1 = 0 ;
4750 char *kwnames[] = {
4751 (char *) "self",(char *) "icon", NULL
4752 };
4753
4754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4757 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4758 SWIG_POINTER_EXCEPTION | 0)) == -1)
4759 SWIG_fail;
4760 if (arg2 == NULL) {
4761 PyErr_SetString(PyExc_TypeError,"null reference");
4762 SWIG_fail;
4763 }
4764 {
4765 PyThreadState* __tstate = wxPyBeginAllowThreads();
4766 (arg1)->AddIcon((wxIcon const &)*arg2);
4767
4768 wxPyEndAllowThreads(__tstate);
4769 if (PyErr_Occurred()) SWIG_fail;
4770 }
4771 Py_INCREF(Py_None); resultobj = Py_None;
4772 return resultobj;
4773 fail:
4774 return NULL;
4775 }
4776
4777
4778 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4779 PyObject *resultobj;
4780 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4781 wxString *arg2 = 0 ;
4782 long arg3 ;
4783 bool temp2 = False ;
4784 PyObject * obj0 = 0 ;
4785 PyObject * obj1 = 0 ;
4786 PyObject * obj2 = 0 ;
4787 char *kwnames[] = {
4788 (char *) "self",(char *) "file",(char *) "type", NULL
4789 };
4790
4791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4794 {
4795 arg2 = wxString_in_helper(obj1);
4796 if (arg2 == NULL) SWIG_fail;
4797 temp2 = True;
4798 }
4799 arg3 = (long) SWIG_AsLong(obj2);
4800 if (PyErr_Occurred()) SWIG_fail;
4801 {
4802 PyThreadState* __tstate = wxPyBeginAllowThreads();
4803 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4804
4805 wxPyEndAllowThreads(__tstate);
4806 if (PyErr_Occurred()) SWIG_fail;
4807 }
4808 Py_INCREF(Py_None); resultobj = Py_None;
4809 {
4810 if (temp2)
4811 delete arg2;
4812 }
4813 return resultobj;
4814 fail:
4815 {
4816 if (temp2)
4817 delete arg2;
4818 }
4819 return NULL;
4820 }
4821
4822
4823 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4824 PyObject *resultobj;
4825 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4826 wxSize *arg2 = 0 ;
4827 wxIcon *result;
4828 wxSize temp2 ;
4829 PyObject * obj0 = 0 ;
4830 PyObject * obj1 = 0 ;
4831 char *kwnames[] = {
4832 (char *) "self",(char *) "size", NULL
4833 };
4834
4835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4838 {
4839 arg2 = &temp2;
4840 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4841 }
4842 {
4843 PyThreadState* __tstate = wxPyBeginAllowThreads();
4844 {
4845 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4846 result = (wxIcon *) &_result_ref;
4847 }
4848
4849 wxPyEndAllowThreads(__tstate);
4850 if (PyErr_Occurred()) SWIG_fail;
4851 }
4852 {
4853 wxIcon* resultptr = new wxIcon(*result);
4854 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4855 }
4856 return resultobj;
4857 fail:
4858 return NULL;
4859 }
4860
4861
4862 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4863 PyObject *obj;
4864 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4865 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4866 Py_INCREF(obj);
4867 return Py_BuildValue((char *)"");
4868 }
4869 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4870 PyObject *resultobj;
4871 wxString *arg1 = (wxString *) 0 ;
4872 long arg2 ;
4873 int arg3 = (int) 0 ;
4874 int arg4 = (int) 0 ;
4875 wxCursor *result;
4876 bool temp1 = False ;
4877 PyObject * obj0 = 0 ;
4878 PyObject * obj1 = 0 ;
4879 PyObject * obj2 = 0 ;
4880 PyObject * obj3 = 0 ;
4881 char *kwnames[] = {
4882 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4883 };
4884
4885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4886 {
4887 arg1 = wxString_in_helper(obj0);
4888 if (arg1 == NULL) SWIG_fail;
4889 temp1 = True;
4890 }
4891 arg2 = (long) SWIG_AsLong(obj1);
4892 if (PyErr_Occurred()) SWIG_fail;
4893 if (obj2) {
4894 arg3 = (int) SWIG_AsInt(obj2);
4895 if (PyErr_Occurred()) SWIG_fail;
4896 }
4897 if (obj3) {
4898 arg4 = (int) SWIG_AsInt(obj3);
4899 if (PyErr_Occurred()) SWIG_fail;
4900 }
4901 {
4902 PyThreadState* __tstate = wxPyBeginAllowThreads();
4903 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4904
4905 wxPyEndAllowThreads(__tstate);
4906 if (PyErr_Occurred()) SWIG_fail;
4907 }
4908 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4909 {
4910 if (temp1)
4911 delete arg1;
4912 }
4913 return resultobj;
4914 fail:
4915 {
4916 if (temp1)
4917 delete arg1;
4918 }
4919 return NULL;
4920 }
4921
4922
4923 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4924 PyObject *resultobj;
4925 wxCursor *arg1 = (wxCursor *) 0 ;
4926 PyObject * obj0 = 0 ;
4927 char *kwnames[] = {
4928 (char *) "self", NULL
4929 };
4930
4931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4934 {
4935 PyThreadState* __tstate = wxPyBeginAllowThreads();
4936 delete arg1;
4937
4938 wxPyEndAllowThreads(__tstate);
4939 if (PyErr_Occurred()) SWIG_fail;
4940 }
4941 Py_INCREF(Py_None); resultobj = Py_None;
4942 return resultobj;
4943 fail:
4944 return NULL;
4945 }
4946
4947
4948 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4949 PyObject *resultobj;
4950 int arg1 ;
4951 wxCursor *result;
4952 PyObject * obj0 = 0 ;
4953 char *kwnames[] = {
4954 (char *) "id", NULL
4955 };
4956
4957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4958 arg1 = (int) SWIG_AsInt(obj0);
4959 if (PyErr_Occurred()) SWIG_fail;
4960 {
4961 PyThreadState* __tstate = wxPyBeginAllowThreads();
4962 result = (wxCursor *)new wxCursor(arg1);
4963
4964 wxPyEndAllowThreads(__tstate);
4965 if (PyErr_Occurred()) SWIG_fail;
4966 }
4967 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4968 return resultobj;
4969 fail:
4970 return NULL;
4971 }
4972
4973
4974 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4975 PyObject *resultobj;
4976 wxImage *arg1 = 0 ;
4977 wxCursor *result;
4978 PyObject * obj0 = 0 ;
4979 char *kwnames[] = {
4980 (char *) "image", NULL
4981 };
4982
4983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4985 SWIG_POINTER_EXCEPTION | 0)) == -1)
4986 SWIG_fail;
4987 if (arg1 == NULL) {
4988 PyErr_SetString(PyExc_TypeError,"null reference");
4989 SWIG_fail;
4990 }
4991 {
4992 PyThreadState* __tstate = wxPyBeginAllowThreads();
4993 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4994
4995 wxPyEndAllowThreads(__tstate);
4996 if (PyErr_Occurred()) SWIG_fail;
4997 }
4998 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4999 return resultobj;
5000 fail:
5001 return NULL;
5002 }
5003
5004
5005 static PyObject *_wrap_Cursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
5006 PyObject *resultobj;
5007 wxCursor *arg1 = (wxCursor *) 0 ;
5008 long result;
5009 PyObject * obj0 = 0 ;
5010 char *kwnames[] = {
5011 (char *) "self", NULL
5012 };
5013
5014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail;
5015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5017 {
5018 PyThreadState* __tstate = wxPyBeginAllowThreads();
5019 result = (long)(arg1)->GetHandle();
5020
5021 wxPyEndAllowThreads(__tstate);
5022 if (PyErr_Occurred()) SWIG_fail;
5023 }
5024 resultobj = SWIG_FromLong((long)result);
5025 return resultobj;
5026 fail:
5027 return NULL;
5028 }
5029
5030
5031 static PyObject *_wrap_Cursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
5032 PyObject *resultobj;
5033 wxCursor *arg1 = (wxCursor *) 0 ;
5034 long arg2 ;
5035 PyObject * obj0 = 0 ;
5036 PyObject * obj1 = 0 ;
5037 char *kwnames[] = {
5038 (char *) "self",(char *) "handle", NULL
5039 };
5040
5041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail;
5042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5044 arg2 = (long) SWIG_AsLong(obj1);
5045 if (PyErr_Occurred()) SWIG_fail;
5046 {
5047 PyThreadState* __tstate = wxPyBeginAllowThreads();
5048 wxCursor_SetHandle(arg1,arg2);
5049
5050 wxPyEndAllowThreads(__tstate);
5051 if (PyErr_Occurred()) SWIG_fail;
5052 }
5053 Py_INCREF(Py_None); resultobj = Py_None;
5054 return resultobj;
5055 fail:
5056 return NULL;
5057 }
5058
5059
5060 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
5061 PyObject *resultobj;
5062 wxCursor *arg1 = (wxCursor *) 0 ;
5063 bool result;
5064 PyObject * obj0 = 0 ;
5065 char *kwnames[] = {
5066 (char *) "self", NULL
5067 };
5068
5069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
5070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5072 {
5073 PyThreadState* __tstate = wxPyBeginAllowThreads();
5074 result = (bool)(arg1)->Ok();
5075
5076 wxPyEndAllowThreads(__tstate);
5077 if (PyErr_Occurred()) SWIG_fail;
5078 }
5079 {
5080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5081 }
5082 return resultobj;
5083 fail:
5084 return NULL;
5085 }
5086
5087
5088 static PyObject *_wrap_Cursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5089 PyObject *resultobj;
5090 wxCursor *arg1 = (wxCursor *) 0 ;
5091 int result;
5092 PyObject * obj0 = 0 ;
5093 char *kwnames[] = {
5094 (char *) "self", NULL
5095 };
5096
5097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail;
5098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5100 {
5101 PyThreadState* __tstate = wxPyBeginAllowThreads();
5102 result = (int)(arg1)->GetWidth();
5103
5104 wxPyEndAllowThreads(__tstate);
5105 if (PyErr_Occurred()) SWIG_fail;
5106 }
5107 resultobj = SWIG_FromInt((int)result);
5108 return resultobj;
5109 fail:
5110 return NULL;
5111 }
5112
5113
5114 static PyObject *_wrap_Cursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5115 PyObject *resultobj;
5116 wxCursor *arg1 = (wxCursor *) 0 ;
5117 int result;
5118 PyObject * obj0 = 0 ;
5119 char *kwnames[] = {
5120 (char *) "self", NULL
5121 };
5122
5123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail;
5124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5126 {
5127 PyThreadState* __tstate = wxPyBeginAllowThreads();
5128 result = (int)(arg1)->GetHeight();
5129
5130 wxPyEndAllowThreads(__tstate);
5131 if (PyErr_Occurred()) SWIG_fail;
5132 }
5133 resultobj = SWIG_FromInt((int)result);
5134 return resultobj;
5135 fail:
5136 return NULL;
5137 }
5138
5139
5140 static PyObject *_wrap_Cursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
5141 PyObject *resultobj;
5142 wxCursor *arg1 = (wxCursor *) 0 ;
5143 int result;
5144 PyObject * obj0 = 0 ;
5145 char *kwnames[] = {
5146 (char *) "self", NULL
5147 };
5148
5149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail;
5150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5152 {
5153 PyThreadState* __tstate = wxPyBeginAllowThreads();
5154 result = (int)(arg1)->GetDepth();
5155
5156 wxPyEndAllowThreads(__tstate);
5157 if (PyErr_Occurred()) SWIG_fail;
5158 }
5159 resultobj = SWIG_FromInt((int)result);
5160 return resultobj;
5161 fail:
5162 return NULL;
5163 }
5164
5165
5166 static PyObject *_wrap_Cursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5167 PyObject *resultobj;
5168 wxCursor *arg1 = (wxCursor *) 0 ;
5169 int arg2 ;
5170 PyObject * obj0 = 0 ;
5171 PyObject * obj1 = 0 ;
5172 char *kwnames[] = {
5173 (char *) "self",(char *) "w", NULL
5174 };
5175
5176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail;
5177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5179 arg2 = (int) SWIG_AsInt(obj1);
5180 if (PyErr_Occurred()) SWIG_fail;
5181 {
5182 PyThreadState* __tstate = wxPyBeginAllowThreads();
5183 (arg1)->SetWidth(arg2);
5184
5185 wxPyEndAllowThreads(__tstate);
5186 if (PyErr_Occurred()) SWIG_fail;
5187 }
5188 Py_INCREF(Py_None); resultobj = Py_None;
5189 return resultobj;
5190 fail:
5191 return NULL;
5192 }
5193
5194
5195 static PyObject *_wrap_Cursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5196 PyObject *resultobj;
5197 wxCursor *arg1 = (wxCursor *) 0 ;
5198 int arg2 ;
5199 PyObject * obj0 = 0 ;
5200 PyObject * obj1 = 0 ;
5201 char *kwnames[] = {
5202 (char *) "self",(char *) "h", NULL
5203 };
5204
5205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail;
5206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5208 arg2 = (int) SWIG_AsInt(obj1);
5209 if (PyErr_Occurred()) SWIG_fail;
5210 {
5211 PyThreadState* __tstate = wxPyBeginAllowThreads();
5212 (arg1)->SetHeight(arg2);
5213
5214 wxPyEndAllowThreads(__tstate);
5215 if (PyErr_Occurred()) SWIG_fail;
5216 }
5217 Py_INCREF(Py_None); resultobj = Py_None;
5218 return resultobj;
5219 fail:
5220 return NULL;
5221 }
5222
5223
5224 static PyObject *_wrap_Cursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
5225 PyObject *resultobj;
5226 wxCursor *arg1 = (wxCursor *) 0 ;
5227 int arg2 ;
5228 PyObject * obj0 = 0 ;
5229 PyObject * obj1 = 0 ;
5230 char *kwnames[] = {
5231 (char *) "self",(char *) "d", NULL
5232 };
5233
5234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail;
5235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5237 arg2 = (int) SWIG_AsInt(obj1);
5238 if (PyErr_Occurred()) SWIG_fail;
5239 {
5240 PyThreadState* __tstate = wxPyBeginAllowThreads();
5241 (arg1)->SetDepth(arg2);
5242
5243 wxPyEndAllowThreads(__tstate);
5244 if (PyErr_Occurred()) SWIG_fail;
5245 }
5246 Py_INCREF(Py_None); resultobj = Py_None;
5247 return resultobj;
5248 fail:
5249 return NULL;
5250 }
5251
5252
5253 static PyObject *_wrap_Cursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5254 PyObject *resultobj;
5255 wxCursor *arg1 = (wxCursor *) 0 ;
5256 wxSize *arg2 = 0 ;
5257 wxSize temp2 ;
5258 PyObject * obj0 = 0 ;
5259 PyObject * obj1 = 0 ;
5260 char *kwnames[] = {
5261 (char *) "self",(char *) "size", NULL
5262 };
5263
5264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail;
5265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5267 {
5268 arg2 = &temp2;
5269 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5270 }
5271 {
5272 PyThreadState* __tstate = wxPyBeginAllowThreads();
5273 (arg1)->SetSize((wxSize const &)*arg2);
5274
5275 wxPyEndAllowThreads(__tstate);
5276 if (PyErr_Occurred()) SWIG_fail;
5277 }
5278 Py_INCREF(Py_None); resultobj = Py_None;
5279 return resultobj;
5280 fail:
5281 return NULL;
5282 }
5283
5284
5285 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
5286 PyObject *obj;
5287 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5288 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
5289 Py_INCREF(obj);
5290 return Py_BuildValue((char *)"");
5291 }
5292 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
5293 PyObject *resultobj;
5294 int arg1 = (int) 0 ;
5295 int arg2 = (int) 0 ;
5296 int arg3 = (int) 0 ;
5297 int arg4 = (int) 0 ;
5298 wxRegion *result;
5299 PyObject * obj0 = 0 ;
5300 PyObject * obj1 = 0 ;
5301 PyObject * obj2 = 0 ;
5302 PyObject * obj3 = 0 ;
5303 char *kwnames[] = {
5304 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5305 };
5306
5307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5308 if (obj0) {
5309 arg1 = (int) SWIG_AsInt(obj0);
5310 if (PyErr_Occurred()) SWIG_fail;
5311 }
5312 if (obj1) {
5313 arg2 = (int) SWIG_AsInt(obj1);
5314 if (PyErr_Occurred()) SWIG_fail;
5315 }
5316 if (obj2) {
5317 arg3 = (int) SWIG_AsInt(obj2);
5318 if (PyErr_Occurred()) SWIG_fail;
5319 }
5320 if (obj3) {
5321 arg4 = (int) SWIG_AsInt(obj3);
5322 if (PyErr_Occurred()) SWIG_fail;
5323 }
5324 {
5325 PyThreadState* __tstate = wxPyBeginAllowThreads();
5326 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
5327
5328 wxPyEndAllowThreads(__tstate);
5329 if (PyErr_Occurred()) SWIG_fail;
5330 }
5331 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5332 return resultobj;
5333 fail:
5334 return NULL;
5335 }
5336
5337
5338 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5339 PyObject *resultobj;
5340 wxBitmap *arg1 = 0 ;
5341 wxColour const &arg2_defvalue = wxNullColour ;
5342 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
5343 int arg3 = (int) 0 ;
5344 wxRegion *result;
5345 wxColour temp2 ;
5346 PyObject * obj0 = 0 ;
5347 PyObject * obj1 = 0 ;
5348 PyObject * obj2 = 0 ;
5349 char *kwnames[] = {
5350 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5351 };
5352
5353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
5354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
5355 SWIG_POINTER_EXCEPTION | 0)) == -1)
5356 SWIG_fail;
5357 if (arg1 == NULL) {
5358 PyErr_SetString(PyExc_TypeError,"null reference");
5359 SWIG_fail;
5360 }
5361 if (obj1) {
5362 {
5363 arg2 = &temp2;
5364 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5365 }
5366 }
5367 if (obj2) {
5368 arg3 = (int) SWIG_AsInt(obj2);
5369 if (PyErr_Occurred()) SWIG_fail;
5370 }
5371 {
5372 PyThreadState* __tstate = wxPyBeginAllowThreads();
5373 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
5374
5375 wxPyEndAllowThreads(__tstate);
5376 if (PyErr_Occurred()) SWIG_fail;
5377 }
5378 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5379 return resultobj;
5380 fail:
5381 return NULL;
5382 }
5383
5384
5385 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
5386 PyObject *resultobj;
5387 int arg1 ;
5388 wxPoint *arg2 = (wxPoint *) 0 ;
5389 int arg3 = (int) wxWINDING_RULE ;
5390 wxRegion *result;
5391 PyObject * obj0 = 0 ;
5392 PyObject * obj1 = 0 ;
5393 char *kwnames[] = {
5394 (char *) "points",(char *) "fillStyle", NULL
5395 };
5396
5397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
5398 {
5399 arg2 = wxPoint_LIST_helper(obj0, &arg1);
5400 if (arg2 == NULL) SWIG_fail;
5401 }
5402 if (obj1) {
5403 arg3 = (int) SWIG_AsInt(obj1);
5404 if (PyErr_Occurred()) SWIG_fail;
5405 }
5406 {
5407 PyThreadState* __tstate = wxPyBeginAllowThreads();
5408 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
5409
5410 wxPyEndAllowThreads(__tstate);
5411 if (PyErr_Occurred()) SWIG_fail;
5412 }
5413 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5414 {
5415 if (arg2) delete [] arg2;
5416 }
5417 return resultobj;
5418 fail:
5419 {
5420 if (arg2) delete [] arg2;
5421 }
5422 return NULL;
5423 }
5424
5425
5426 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
5427 PyObject *resultobj;
5428 wxRegion *arg1 = (wxRegion *) 0 ;
5429 PyObject * obj0 = 0 ;
5430 char *kwnames[] = {
5431 (char *) "self", NULL
5432 };
5433
5434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
5435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5437 {
5438 PyThreadState* __tstate = wxPyBeginAllowThreads();
5439 delete arg1;
5440
5441 wxPyEndAllowThreads(__tstate);
5442 if (PyErr_Occurred()) SWIG_fail;
5443 }
5444 Py_INCREF(Py_None); resultobj = Py_None;
5445 return resultobj;
5446 fail:
5447 return NULL;
5448 }
5449
5450
5451 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
5452 PyObject *resultobj;
5453 wxRegion *arg1 = (wxRegion *) 0 ;
5454 PyObject * obj0 = 0 ;
5455 char *kwnames[] = {
5456 (char *) "self", NULL
5457 };
5458
5459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
5460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5462 {
5463 PyThreadState* __tstate = wxPyBeginAllowThreads();
5464 (arg1)->Clear();
5465
5466 wxPyEndAllowThreads(__tstate);
5467 if (PyErr_Occurred()) SWIG_fail;
5468 }
5469 Py_INCREF(Py_None); resultobj = Py_None;
5470 return resultobj;
5471 fail:
5472 return NULL;
5473 }
5474
5475
5476 static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
5477 PyObject *resultobj;
5478 wxRegion *arg1 = (wxRegion *) 0 ;
5479 int arg2 ;
5480 int arg3 ;
5481 bool result;
5482 PyObject * obj0 = 0 ;
5483 PyObject * obj1 = 0 ;
5484 PyObject * obj2 = 0 ;
5485 char *kwnames[] = {
5486 (char *) "self",(char *) "x",(char *) "y", NULL
5487 };
5488
5489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
5490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5492 arg2 = (int) SWIG_AsInt(obj1);
5493 if (PyErr_Occurred()) SWIG_fail;
5494 arg3 = (int) SWIG_AsInt(obj2);
5495 if (PyErr_Occurred()) SWIG_fail;
5496 {
5497 PyThreadState* __tstate = wxPyBeginAllowThreads();
5498 result = (bool)(arg1)->Offset(arg2,arg3);
5499
5500 wxPyEndAllowThreads(__tstate);
5501 if (PyErr_Occurred()) SWIG_fail;
5502 }
5503 {
5504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5505 }
5506 return resultobj;
5507 fail:
5508 return NULL;
5509 }
5510
5511
5512 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
5513 PyObject *resultobj;
5514 wxRegion *arg1 = (wxRegion *) 0 ;
5515 int arg2 ;
5516 int arg3 ;
5517 int result;
5518 PyObject * obj0 = 0 ;
5519 PyObject * obj1 = 0 ;
5520 PyObject * obj2 = 0 ;
5521 char *kwnames[] = {
5522 (char *) "self",(char *) "x",(char *) "y", NULL
5523 };
5524
5525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
5526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5528 arg2 = (int) SWIG_AsInt(obj1);
5529 if (PyErr_Occurred()) SWIG_fail;
5530 arg3 = (int) SWIG_AsInt(obj2);
5531 if (PyErr_Occurred()) SWIG_fail;
5532 {
5533 PyThreadState* __tstate = wxPyBeginAllowThreads();
5534 result = (int)(arg1)->Contains(arg2,arg3);
5535
5536 wxPyEndAllowThreads(__tstate);
5537 if (PyErr_Occurred()) SWIG_fail;
5538 }
5539 resultobj = SWIG_FromInt((int)result);
5540 return resultobj;
5541 fail:
5542 return NULL;
5543 }
5544
5545
5546 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
5547 PyObject *resultobj;
5548 wxRegion *arg1 = (wxRegion *) 0 ;
5549 wxPoint *arg2 = 0 ;
5550 int result;
5551 wxPoint temp2 ;
5552 PyObject * obj0 = 0 ;
5553 PyObject * obj1 = 0 ;
5554 char *kwnames[] = {
5555 (char *) "self",(char *) "pt", NULL
5556 };
5557
5558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
5559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5561 {
5562 arg2 = &temp2;
5563 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5564 }
5565 {
5566 PyThreadState* __tstate = wxPyBeginAllowThreads();
5567 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5568
5569 wxPyEndAllowThreads(__tstate);
5570 if (PyErr_Occurred()) SWIG_fail;
5571 }
5572 resultobj = SWIG_FromInt((int)result);
5573 return resultobj;
5574 fail:
5575 return NULL;
5576 }
5577
5578
5579 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5580 PyObject *resultobj;
5581 wxRegion *arg1 = (wxRegion *) 0 ;
5582 wxRect *arg2 = 0 ;
5583 int result;
5584 wxRect temp2 ;
5585 PyObject * obj0 = 0 ;
5586 PyObject * obj1 = 0 ;
5587 char *kwnames[] = {
5588 (char *) "self",(char *) "rect", NULL
5589 };
5590
5591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
5592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5594 {
5595 arg2 = &temp2;
5596 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5597 }
5598 {
5599 PyThreadState* __tstate = wxPyBeginAllowThreads();
5600 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5601
5602 wxPyEndAllowThreads(__tstate);
5603 if (PyErr_Occurred()) SWIG_fail;
5604 }
5605 resultobj = SWIG_FromInt((int)result);
5606 return resultobj;
5607 fail:
5608 return NULL;
5609 }
5610
5611
5612 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
5613 PyObject *resultobj;
5614 wxRegion *arg1 = (wxRegion *) 0 ;
5615 int arg2 ;
5616 int arg3 ;
5617 int arg4 ;
5618 int arg5 ;
5619 int result;
5620 PyObject * obj0 = 0 ;
5621 PyObject * obj1 = 0 ;
5622 PyObject * obj2 = 0 ;
5623 PyObject * obj3 = 0 ;
5624 PyObject * obj4 = 0 ;
5625 char *kwnames[] = {
5626 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5627 };
5628
5629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5632 arg2 = (int) SWIG_AsInt(obj1);
5633 if (PyErr_Occurred()) SWIG_fail;
5634 arg3 = (int) SWIG_AsInt(obj2);
5635 if (PyErr_Occurred()) SWIG_fail;
5636 arg4 = (int) SWIG_AsInt(obj3);
5637 if (PyErr_Occurred()) SWIG_fail;
5638 arg5 = (int) SWIG_AsInt(obj4);
5639 if (PyErr_Occurred()) SWIG_fail;
5640 {
5641 PyThreadState* __tstate = wxPyBeginAllowThreads();
5642 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5643
5644 wxPyEndAllowThreads(__tstate);
5645 if (PyErr_Occurred()) SWIG_fail;
5646 }
5647 resultobj = SWIG_FromInt((int)result);
5648 return resultobj;
5649 fail:
5650 return NULL;
5651 }
5652
5653
5654 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5655 PyObject *resultobj;
5656 wxRegion *arg1 = (wxRegion *) 0 ;
5657 wxRect result;
5658 PyObject * obj0 = 0 ;
5659 char *kwnames[] = {
5660 (char *) "self", NULL
5661 };
5662
5663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5666 {
5667 PyThreadState* __tstate = wxPyBeginAllowThreads();
5668 result = (arg1)->GetBox();
5669
5670 wxPyEndAllowThreads(__tstate);
5671 if (PyErr_Occurred()) SWIG_fail;
5672 }
5673 {
5674 wxRect * resultptr;
5675 resultptr = new wxRect((wxRect &) result);
5676 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5677 }
5678 return resultobj;
5679 fail:
5680 return NULL;
5681 }
5682
5683
5684 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
5685 PyObject *resultobj;
5686 wxRegion *arg1 = (wxRegion *) 0 ;
5687 int arg2 ;
5688 int arg3 ;
5689 int arg4 ;
5690 int arg5 ;
5691 bool result;
5692 PyObject * obj0 = 0 ;
5693 PyObject * obj1 = 0 ;
5694 PyObject * obj2 = 0 ;
5695 PyObject * obj3 = 0 ;
5696 PyObject * obj4 = 0 ;
5697 char *kwnames[] = {
5698 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5699 };
5700
5701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5704 arg2 = (int) SWIG_AsInt(obj1);
5705 if (PyErr_Occurred()) SWIG_fail;
5706 arg3 = (int) SWIG_AsInt(obj2);
5707 if (PyErr_Occurred()) SWIG_fail;
5708 arg4 = (int) SWIG_AsInt(obj3);
5709 if (PyErr_Occurred()) SWIG_fail;
5710 arg5 = (int) SWIG_AsInt(obj4);
5711 if (PyErr_Occurred()) SWIG_fail;
5712 {
5713 PyThreadState* __tstate = wxPyBeginAllowThreads();
5714 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5715
5716 wxPyEndAllowThreads(__tstate);
5717 if (PyErr_Occurred()) SWIG_fail;
5718 }
5719 {
5720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5721 }
5722 return resultobj;
5723 fail:
5724 return NULL;
5725 }
5726
5727
5728 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5729 PyObject *resultobj;
5730 wxRegion *arg1 = (wxRegion *) 0 ;
5731 wxRect *arg2 = 0 ;
5732 bool result;
5733 wxRect temp2 ;
5734 PyObject * obj0 = 0 ;
5735 PyObject * obj1 = 0 ;
5736 char *kwnames[] = {
5737 (char *) "self",(char *) "rect", NULL
5738 };
5739
5740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5743 {
5744 arg2 = &temp2;
5745 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5746 }
5747 {
5748 PyThreadState* __tstate = wxPyBeginAllowThreads();
5749 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5750
5751 wxPyEndAllowThreads(__tstate);
5752 if (PyErr_Occurred()) SWIG_fail;
5753 }
5754 {
5755 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5756 }
5757 return resultobj;
5758 fail:
5759 return NULL;
5760 }
5761
5762
5763 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5764 PyObject *resultobj;
5765 wxRegion *arg1 = (wxRegion *) 0 ;
5766 wxRegion *arg2 = 0 ;
5767 bool result;
5768 PyObject * obj0 = 0 ;
5769 PyObject * obj1 = 0 ;
5770 char *kwnames[] = {
5771 (char *) "self",(char *) "region", NULL
5772 };
5773
5774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5777 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5778 SWIG_POINTER_EXCEPTION | 0)) == -1)
5779 SWIG_fail;
5780 if (arg2 == NULL) {
5781 PyErr_SetString(PyExc_TypeError,"null reference");
5782 SWIG_fail;
5783 }
5784 {
5785 PyThreadState* __tstate = wxPyBeginAllowThreads();
5786 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5787
5788 wxPyEndAllowThreads(__tstate);
5789 if (PyErr_Occurred()) SWIG_fail;
5790 }
5791 {
5792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5793 }
5794 return resultobj;
5795 fail:
5796 return NULL;
5797 }
5798
5799
5800 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5801 PyObject *resultobj;
5802 wxRegion *arg1 = (wxRegion *) 0 ;
5803 bool result;
5804 PyObject * obj0 = 0 ;
5805 char *kwnames[] = {
5806 (char *) "self", NULL
5807 };
5808
5809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5812 {
5813 PyThreadState* __tstate = wxPyBeginAllowThreads();
5814 result = (bool)(arg1)->IsEmpty();
5815
5816 wxPyEndAllowThreads(__tstate);
5817 if (PyErr_Occurred()) SWIG_fail;
5818 }
5819 {
5820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5821 }
5822 return resultobj;
5823 fail:
5824 return NULL;
5825 }
5826
5827
5828 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5829 PyObject *resultobj;
5830 wxRegion *arg1 = (wxRegion *) 0 ;
5831 int arg2 ;
5832 int arg3 ;
5833 int arg4 ;
5834 int arg5 ;
5835 bool result;
5836 PyObject * obj0 = 0 ;
5837 PyObject * obj1 = 0 ;
5838 PyObject * obj2 = 0 ;
5839 PyObject * obj3 = 0 ;
5840 PyObject * obj4 = 0 ;
5841 char *kwnames[] = {
5842 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5843 };
5844
5845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5848 arg2 = (int) SWIG_AsInt(obj1);
5849 if (PyErr_Occurred()) SWIG_fail;
5850 arg3 = (int) SWIG_AsInt(obj2);
5851 if (PyErr_Occurred()) SWIG_fail;
5852 arg4 = (int) SWIG_AsInt(obj3);
5853 if (PyErr_Occurred()) SWIG_fail;
5854 arg5 = (int) SWIG_AsInt(obj4);
5855 if (PyErr_Occurred()) SWIG_fail;
5856 {
5857 PyThreadState* __tstate = wxPyBeginAllowThreads();
5858 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5859
5860 wxPyEndAllowThreads(__tstate);
5861 if (PyErr_Occurred()) SWIG_fail;
5862 }
5863 {
5864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5865 }
5866 return resultobj;
5867 fail:
5868 return NULL;
5869 }
5870
5871
5872 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5873 PyObject *resultobj;
5874 wxRegion *arg1 = (wxRegion *) 0 ;
5875 wxRect *arg2 = 0 ;
5876 bool result;
5877 wxRect temp2 ;
5878 PyObject * obj0 = 0 ;
5879 PyObject * obj1 = 0 ;
5880 char *kwnames[] = {
5881 (char *) "self",(char *) "rect", NULL
5882 };
5883
5884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5887 {
5888 arg2 = &temp2;
5889 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5890 }
5891 {
5892 PyThreadState* __tstate = wxPyBeginAllowThreads();
5893 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5894
5895 wxPyEndAllowThreads(__tstate);
5896 if (PyErr_Occurred()) SWIG_fail;
5897 }
5898 {
5899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5900 }
5901 return resultobj;
5902 fail:
5903 return NULL;
5904 }
5905
5906
5907 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5908 PyObject *resultobj;
5909 wxRegion *arg1 = (wxRegion *) 0 ;
5910 wxRegion *arg2 = 0 ;
5911 bool result;
5912 PyObject * obj0 = 0 ;
5913 PyObject * obj1 = 0 ;
5914 char *kwnames[] = {
5915 (char *) "self",(char *) "region", NULL
5916 };
5917
5918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5921 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5922 SWIG_POINTER_EXCEPTION | 0)) == -1)
5923 SWIG_fail;
5924 if (arg2 == NULL) {
5925 PyErr_SetString(PyExc_TypeError,"null reference");
5926 SWIG_fail;
5927 }
5928 {
5929 PyThreadState* __tstate = wxPyBeginAllowThreads();
5930 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5931
5932 wxPyEndAllowThreads(__tstate);
5933 if (PyErr_Occurred()) SWIG_fail;
5934 }
5935 {
5936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5937 }
5938 return resultobj;
5939 fail:
5940 return NULL;
5941 }
5942
5943
5944 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5945 PyObject *resultobj;
5946 wxRegion *arg1 = (wxRegion *) 0 ;
5947 int arg2 ;
5948 int arg3 ;
5949 int arg4 ;
5950 int arg5 ;
5951 bool result;
5952 PyObject * obj0 = 0 ;
5953 PyObject * obj1 = 0 ;
5954 PyObject * obj2 = 0 ;
5955 PyObject * obj3 = 0 ;
5956 PyObject * obj4 = 0 ;
5957 char *kwnames[] = {
5958 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5959 };
5960
5961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5964 arg2 = (int) SWIG_AsInt(obj1);
5965 if (PyErr_Occurred()) SWIG_fail;
5966 arg3 = (int) SWIG_AsInt(obj2);
5967 if (PyErr_Occurred()) SWIG_fail;
5968 arg4 = (int) SWIG_AsInt(obj3);
5969 if (PyErr_Occurred()) SWIG_fail;
5970 arg5 = (int) SWIG_AsInt(obj4);
5971 if (PyErr_Occurred()) SWIG_fail;
5972 {
5973 PyThreadState* __tstate = wxPyBeginAllowThreads();
5974 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5975
5976 wxPyEndAllowThreads(__tstate);
5977 if (PyErr_Occurred()) SWIG_fail;
5978 }
5979 {
5980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5981 }
5982 return resultobj;
5983 fail:
5984 return NULL;
5985 }
5986
5987
5988 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5989 PyObject *resultobj;
5990 wxRegion *arg1 = (wxRegion *) 0 ;
5991 wxRect *arg2 = 0 ;
5992 bool result;
5993 wxRect temp2 ;
5994 PyObject * obj0 = 0 ;
5995 PyObject * obj1 = 0 ;
5996 char *kwnames[] = {
5997 (char *) "self",(char *) "rect", NULL
5998 };
5999
6000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
6001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6003 {
6004 arg2 = &temp2;
6005 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6006 }
6007 {
6008 PyThreadState* __tstate = wxPyBeginAllowThreads();
6009 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
6010
6011 wxPyEndAllowThreads(__tstate);
6012 if (PyErr_Occurred()) SWIG_fail;
6013 }
6014 {
6015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6016 }
6017 return resultobj;
6018 fail:
6019 return NULL;
6020 }
6021
6022
6023 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
6024 PyObject *resultobj;
6025 wxRegion *arg1 = (wxRegion *) 0 ;
6026 wxRegion *arg2 = 0 ;
6027 bool result;
6028 PyObject * obj0 = 0 ;
6029 PyObject * obj1 = 0 ;
6030 char *kwnames[] = {
6031 (char *) "self",(char *) "region", NULL
6032 };
6033
6034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
6035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6037 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
6038 SWIG_POINTER_EXCEPTION | 0)) == -1)
6039 SWIG_fail;
6040 if (arg2 == NULL) {
6041 PyErr_SetString(PyExc_TypeError,"null reference");
6042 SWIG_fail;
6043 }
6044 {
6045 PyThreadState* __tstate = wxPyBeginAllowThreads();
6046 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
6047
6048 wxPyEndAllowThreads(__tstate);
6049 if (PyErr_Occurred()) SWIG_fail;
6050 }
6051 {
6052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6053 }
6054 return resultobj;
6055 fail:
6056 return NULL;
6057 }
6058
6059
6060 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
6061 PyObject *resultobj;
6062 wxRegion *arg1 = (wxRegion *) 0 ;
6063 int arg2 ;
6064 int arg3 ;
6065 int arg4 ;
6066 int arg5 ;
6067 bool result;
6068 PyObject * obj0 = 0 ;
6069 PyObject * obj1 = 0 ;
6070 PyObject * obj2 = 0 ;
6071 PyObject * obj3 = 0 ;
6072 PyObject * obj4 = 0 ;
6073 char *kwnames[] = {
6074 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
6075 };
6076
6077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6080 arg2 = (int) SWIG_AsInt(obj1);
6081 if (PyErr_Occurred()) SWIG_fail;
6082 arg3 = (int) SWIG_AsInt(obj2);
6083 if (PyErr_Occurred()) SWIG_fail;
6084 arg4 = (int) SWIG_AsInt(obj3);
6085 if (PyErr_Occurred()) SWIG_fail;
6086 arg5 = (int) SWIG_AsInt(obj4);
6087 if (PyErr_Occurred()) SWIG_fail;
6088 {
6089 PyThreadState* __tstate = wxPyBeginAllowThreads();
6090 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
6091
6092 wxPyEndAllowThreads(__tstate);
6093 if (PyErr_Occurred()) SWIG_fail;
6094 }
6095 {
6096 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6097 }
6098 return resultobj;
6099 fail:
6100 return NULL;
6101 }
6102
6103
6104 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
6105 PyObject *resultobj;
6106 wxRegion *arg1 = (wxRegion *) 0 ;
6107 wxRect *arg2 = 0 ;
6108 bool result;
6109 wxRect temp2 ;
6110 PyObject * obj0 = 0 ;
6111 PyObject * obj1 = 0 ;
6112 char *kwnames[] = {
6113 (char *) "self",(char *) "rect", NULL
6114 };
6115
6116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
6117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6119 {
6120 arg2 = &temp2;
6121 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6122 }
6123 {
6124 PyThreadState* __tstate = wxPyBeginAllowThreads();
6125 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
6126
6127 wxPyEndAllowThreads(__tstate);
6128 if (PyErr_Occurred()) SWIG_fail;
6129 }
6130 {
6131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6132 }
6133 return resultobj;
6134 fail:
6135 return NULL;
6136 }
6137
6138
6139 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
6140 PyObject *resultobj;
6141 wxRegion *arg1 = (wxRegion *) 0 ;
6142 wxRegion *arg2 = 0 ;
6143 bool result;
6144 PyObject * obj0 = 0 ;
6145 PyObject * obj1 = 0 ;
6146 char *kwnames[] = {
6147 (char *) "self",(char *) "region", NULL
6148 };
6149
6150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
6151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6153 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
6154 SWIG_POINTER_EXCEPTION | 0)) == -1)
6155 SWIG_fail;
6156 if (arg2 == NULL) {
6157 PyErr_SetString(PyExc_TypeError,"null reference");
6158 SWIG_fail;
6159 }
6160 {
6161 PyThreadState* __tstate = wxPyBeginAllowThreads();
6162 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
6163
6164 wxPyEndAllowThreads(__tstate);
6165 if (PyErr_Occurred()) SWIG_fail;
6166 }
6167 {
6168 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6169 }
6170 return resultobj;
6171 fail:
6172 return NULL;
6173 }
6174
6175
6176 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
6177 PyObject *resultobj;
6178 wxRegion *arg1 = (wxRegion *) 0 ;
6179 SwigValueWrapper< wxBitmap > result;
6180 PyObject * obj0 = 0 ;
6181 char *kwnames[] = {
6182 (char *) "self", NULL
6183 };
6184
6185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
6186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6188 {
6189 PyThreadState* __tstate = wxPyBeginAllowThreads();
6190 result = (arg1)->ConvertToBitmap();
6191
6192 wxPyEndAllowThreads(__tstate);
6193 if (PyErr_Occurred()) SWIG_fail;
6194 }
6195 {
6196 wxBitmap * resultptr;
6197 resultptr = new wxBitmap((wxBitmap &) result);
6198 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
6199 }
6200 return resultobj;
6201 fail:
6202 return NULL;
6203 }
6204
6205
6206 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
6207 PyObject *resultobj;
6208 wxRegion *arg1 = (wxRegion *) 0 ;
6209 wxBitmap *arg2 = 0 ;
6210 wxColour const &arg3_defvalue = wxNullColour ;
6211 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
6212 int arg4 = (int) 0 ;
6213 bool result;
6214 wxColour temp3 ;
6215 PyObject * obj0 = 0 ;
6216 PyObject * obj1 = 0 ;
6217 PyObject * obj2 = 0 ;
6218 PyObject * obj3 = 0 ;
6219 char *kwnames[] = {
6220 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
6221 };
6222
6223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6226 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
6227 SWIG_POINTER_EXCEPTION | 0)) == -1)
6228 SWIG_fail;
6229 if (arg2 == NULL) {
6230 PyErr_SetString(PyExc_TypeError,"null reference");
6231 SWIG_fail;
6232 }
6233 if (obj2) {
6234 {
6235 arg3 = &temp3;
6236 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6237 }
6238 }
6239 if (obj3) {
6240 arg4 = (int) SWIG_AsInt(obj3);
6241 if (PyErr_Occurred()) SWIG_fail;
6242 }
6243 {
6244 PyThreadState* __tstate = wxPyBeginAllowThreads();
6245 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
6246
6247 wxPyEndAllowThreads(__tstate);
6248 if (PyErr_Occurred()) SWIG_fail;
6249 }
6250 {
6251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6252 }
6253 return resultobj;
6254 fail:
6255 return NULL;
6256 }
6257
6258
6259 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
6260 PyObject *obj;
6261 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6262 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
6263 Py_INCREF(obj);
6264 return Py_BuildValue((char *)"");
6265 }
6266 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
6267 PyObject *resultobj;
6268 wxRegion *arg1 = 0 ;
6269 wxRegionIterator *result;
6270 PyObject * obj0 = 0 ;
6271 char *kwnames[] = {
6272 (char *) "region", NULL
6273 };
6274
6275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
6276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6277 SWIG_POINTER_EXCEPTION | 0)) == -1)
6278 SWIG_fail;
6279 if (arg1 == NULL) {
6280 PyErr_SetString(PyExc_TypeError,"null reference");
6281 SWIG_fail;
6282 }
6283 {
6284 PyThreadState* __tstate = wxPyBeginAllowThreads();
6285 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
6286
6287 wxPyEndAllowThreads(__tstate);
6288 if (PyErr_Occurred()) SWIG_fail;
6289 }
6290 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
6291 return resultobj;
6292 fail:
6293 return NULL;
6294 }
6295
6296
6297 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
6298 PyObject *resultobj;
6299 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6300 PyObject * obj0 = 0 ;
6301 char *kwnames[] = {
6302 (char *) "self", NULL
6303 };
6304
6305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
6306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6308 {
6309 PyThreadState* __tstate = wxPyBeginAllowThreads();
6310 delete arg1;
6311
6312 wxPyEndAllowThreads(__tstate);
6313 if (PyErr_Occurred()) SWIG_fail;
6314 }
6315 Py_INCREF(Py_None); resultobj = Py_None;
6316 return resultobj;
6317 fail:
6318 return NULL;
6319 }
6320
6321
6322 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
6323 PyObject *resultobj;
6324 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6325 int result;
6326 PyObject * obj0 = 0 ;
6327 char *kwnames[] = {
6328 (char *) "self", NULL
6329 };
6330
6331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
6332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6334 {
6335 PyThreadState* __tstate = wxPyBeginAllowThreads();
6336 result = (int)(arg1)->GetX();
6337
6338 wxPyEndAllowThreads(__tstate);
6339 if (PyErr_Occurred()) SWIG_fail;
6340 }
6341 resultobj = SWIG_FromInt((int)result);
6342 return resultobj;
6343 fail:
6344 return NULL;
6345 }
6346
6347
6348 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
6349 PyObject *resultobj;
6350 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6351 int result;
6352 PyObject * obj0 = 0 ;
6353 char *kwnames[] = {
6354 (char *) "self", NULL
6355 };
6356
6357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
6358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6360 {
6361 PyThreadState* __tstate = wxPyBeginAllowThreads();
6362 result = (int)(arg1)->GetY();
6363
6364 wxPyEndAllowThreads(__tstate);
6365 if (PyErr_Occurred()) SWIG_fail;
6366 }
6367 resultobj = SWIG_FromInt((int)result);
6368 return resultobj;
6369 fail:
6370 return NULL;
6371 }
6372
6373
6374 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
6375 PyObject *resultobj;
6376 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6377 int result;
6378 PyObject * obj0 = 0 ;
6379 char *kwnames[] = {
6380 (char *) "self", NULL
6381 };
6382
6383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
6384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6386 {
6387 PyThreadState* __tstate = wxPyBeginAllowThreads();
6388 result = (int)(arg1)->GetW();
6389
6390 wxPyEndAllowThreads(__tstate);
6391 if (PyErr_Occurred()) SWIG_fail;
6392 }
6393 resultobj = SWIG_FromInt((int)result);
6394 return resultobj;
6395 fail:
6396 return NULL;
6397 }
6398
6399
6400 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6401 PyObject *resultobj;
6402 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6403 int result;
6404 PyObject * obj0 = 0 ;
6405 char *kwnames[] = {
6406 (char *) "self", NULL
6407 };
6408
6409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
6410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6412 {
6413 PyThreadState* __tstate = wxPyBeginAllowThreads();
6414 result = (int)(arg1)->GetWidth();
6415
6416 wxPyEndAllowThreads(__tstate);
6417 if (PyErr_Occurred()) SWIG_fail;
6418 }
6419 resultobj = SWIG_FromInt((int)result);
6420 return resultobj;
6421 fail:
6422 return NULL;
6423 }
6424
6425
6426 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
6427 PyObject *resultobj;
6428 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6429 int result;
6430 PyObject * obj0 = 0 ;
6431 char *kwnames[] = {
6432 (char *) "self", NULL
6433 };
6434
6435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
6436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6438 {
6439 PyThreadState* __tstate = wxPyBeginAllowThreads();
6440 result = (int)(arg1)->GetH();
6441
6442 wxPyEndAllowThreads(__tstate);
6443 if (PyErr_Occurred()) SWIG_fail;
6444 }
6445 resultobj = SWIG_FromInt((int)result);
6446 return resultobj;
6447 fail:
6448 return NULL;
6449 }
6450
6451
6452 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6453 PyObject *resultobj;
6454 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6455 int result;
6456 PyObject * obj0 = 0 ;
6457 char *kwnames[] = {
6458 (char *) "self", NULL
6459 };
6460
6461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
6462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6464 {
6465 PyThreadState* __tstate = wxPyBeginAllowThreads();
6466 result = (int)(arg1)->GetHeight();
6467
6468 wxPyEndAllowThreads(__tstate);
6469 if (PyErr_Occurred()) SWIG_fail;
6470 }
6471 resultobj = SWIG_FromInt((int)result);
6472 return resultobj;
6473 fail:
6474 return NULL;
6475 }
6476
6477
6478 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
6479 PyObject *resultobj;
6480 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6481 wxRect result;
6482 PyObject * obj0 = 0 ;
6483 char *kwnames[] = {
6484 (char *) "self", NULL
6485 };
6486
6487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
6488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6490 {
6491 PyThreadState* __tstate = wxPyBeginAllowThreads();
6492 result = (arg1)->GetRect();
6493
6494 wxPyEndAllowThreads(__tstate);
6495 if (PyErr_Occurred()) SWIG_fail;
6496 }
6497 {
6498 wxRect * resultptr;
6499 resultptr = new wxRect((wxRect &) result);
6500 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
6501 }
6502 return resultobj;
6503 fail:
6504 return NULL;
6505 }
6506
6507
6508 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
6509 PyObject *resultobj;
6510 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6511 bool result;
6512 PyObject * obj0 = 0 ;
6513 char *kwnames[] = {
6514 (char *) "self", NULL
6515 };
6516
6517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
6518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6520 {
6521 PyThreadState* __tstate = wxPyBeginAllowThreads();
6522 result = (bool)(arg1)->HaveRects();
6523
6524 wxPyEndAllowThreads(__tstate);
6525 if (PyErr_Occurred()) SWIG_fail;
6526 }
6527 {
6528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6529 }
6530 return resultobj;
6531 fail:
6532 return NULL;
6533 }
6534
6535
6536 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
6537 PyObject *resultobj;
6538 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6539 PyObject * obj0 = 0 ;
6540 char *kwnames[] = {
6541 (char *) "self", NULL
6542 };
6543
6544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
6545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6547 {
6548 PyThreadState* __tstate = wxPyBeginAllowThreads();
6549 (arg1)->Reset();
6550
6551 wxPyEndAllowThreads(__tstate);
6552 if (PyErr_Occurred()) SWIG_fail;
6553 }
6554 Py_INCREF(Py_None); resultobj = Py_None;
6555 return resultobj;
6556 fail:
6557 return NULL;
6558 }
6559
6560
6561 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
6562 PyObject *resultobj;
6563 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6564 PyObject * obj0 = 0 ;
6565 char *kwnames[] = {
6566 (char *) "self", NULL
6567 };
6568
6569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
6570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6572 {
6573 PyThreadState* __tstate = wxPyBeginAllowThreads();
6574 wxRegionIterator_Next(arg1);
6575
6576 wxPyEndAllowThreads(__tstate);
6577 if (PyErr_Occurred()) SWIG_fail;
6578 }
6579 Py_INCREF(Py_None); resultobj = Py_None;
6580 return resultobj;
6581 fail:
6582 return NULL;
6583 }
6584
6585
6586 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
6587 PyObject *resultobj;
6588 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6589 bool result;
6590 PyObject * obj0 = 0 ;
6591 char *kwnames[] = {
6592 (char *) "self", NULL
6593 };
6594
6595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
6596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6598 {
6599 PyThreadState* __tstate = wxPyBeginAllowThreads();
6600 result = (bool)wxRegionIterator___nonzero__(arg1);
6601
6602 wxPyEndAllowThreads(__tstate);
6603 if (PyErr_Occurred()) SWIG_fail;
6604 }
6605 {
6606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6607 }
6608 return resultobj;
6609 fail:
6610 return NULL;
6611 }
6612
6613
6614 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
6615 PyObject *obj;
6616 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6617 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6618 Py_INCREF(obj);
6619 return Py_BuildValue((char *)"");
6620 }
6621 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6622 PyObject *resultobj;
6623 wxNativeFontInfo *result;
6624 char *kwnames[] = {
6625 NULL
6626 };
6627
6628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6629 {
6630 PyThreadState* __tstate = wxPyBeginAllowThreads();
6631 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6632
6633 wxPyEndAllowThreads(__tstate);
6634 if (PyErr_Occurred()) SWIG_fail;
6635 }
6636 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
6637 return resultobj;
6638 fail:
6639 return NULL;
6640 }
6641
6642
6643 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6644 PyObject *resultobj;
6645 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6646 PyObject * obj0 = 0 ;
6647 char *kwnames[] = {
6648 (char *) "self", NULL
6649 };
6650
6651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6654 {
6655 PyThreadState* __tstate = wxPyBeginAllowThreads();
6656 delete arg1;
6657
6658 wxPyEndAllowThreads(__tstate);
6659 if (PyErr_Occurred()) SWIG_fail;
6660 }
6661 Py_INCREF(Py_None); resultobj = Py_None;
6662 return resultobj;
6663 fail:
6664 return NULL;
6665 }
6666
6667
6668 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6669 PyObject *resultobj;
6670 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6671 PyObject * obj0 = 0 ;
6672 char *kwnames[] = {
6673 (char *) "self", NULL
6674 };
6675
6676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6679 {
6680 PyThreadState* __tstate = wxPyBeginAllowThreads();
6681 (arg1)->Init();
6682
6683 wxPyEndAllowThreads(__tstate);
6684 if (PyErr_Occurred()) SWIG_fail;
6685 }
6686 Py_INCREF(Py_None); resultobj = Py_None;
6687 return resultobj;
6688 fail:
6689 return NULL;
6690 }
6691
6692
6693 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6694 PyObject *resultobj;
6695 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6696 wxFont *arg2 = 0 ;
6697 PyObject * obj0 = 0 ;
6698 PyObject * obj1 = 0 ;
6699 char *kwnames[] = {
6700 (char *) "self",(char *) "font", NULL
6701 };
6702
6703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6706 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6707 SWIG_POINTER_EXCEPTION | 0)) == -1)
6708 SWIG_fail;
6709 if (arg2 == NULL) {
6710 PyErr_SetString(PyExc_TypeError,"null reference");
6711 SWIG_fail;
6712 }
6713 {
6714 PyThreadState* __tstate = wxPyBeginAllowThreads();
6715 (arg1)->InitFromFont((wxFont const &)*arg2);
6716
6717 wxPyEndAllowThreads(__tstate);
6718 if (PyErr_Occurred()) SWIG_fail;
6719 }
6720 Py_INCREF(Py_None); resultobj = Py_None;
6721 return resultobj;
6722 fail:
6723 return NULL;
6724 }
6725
6726
6727 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6728 PyObject *resultobj;
6729 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6730 int result;
6731 PyObject * obj0 = 0 ;
6732 char *kwnames[] = {
6733 (char *) "self", NULL
6734 };
6735
6736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6739 {
6740 PyThreadState* __tstate = wxPyBeginAllowThreads();
6741 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6742
6743 wxPyEndAllowThreads(__tstate);
6744 if (PyErr_Occurred()) SWIG_fail;
6745 }
6746 resultobj = SWIG_FromInt((int)result);
6747 return resultobj;
6748 fail:
6749 return NULL;
6750 }
6751
6752
6753 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6754 PyObject *resultobj;
6755 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6756 int result;
6757 PyObject * obj0 = 0 ;
6758 char *kwnames[] = {
6759 (char *) "self", NULL
6760 };
6761
6762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",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 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6768
6769 wxPyEndAllowThreads(__tstate);
6770 if (PyErr_Occurred()) SWIG_fail;
6771 }
6772 resultobj = SWIG_FromInt((int)result);
6773 return resultobj;
6774 fail:
6775 return NULL;
6776 }
6777
6778
6779 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6780 PyObject *resultobj;
6781 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6782 int result;
6783 PyObject * obj0 = 0 ;
6784 char *kwnames[] = {
6785 (char *) "self", NULL
6786 };
6787
6788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6791 {
6792 PyThreadState* __tstate = wxPyBeginAllowThreads();
6793 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6794
6795 wxPyEndAllowThreads(__tstate);
6796 if (PyErr_Occurred()) SWIG_fail;
6797 }
6798 resultobj = SWIG_FromInt((int)result);
6799 return resultobj;
6800 fail:
6801 return NULL;
6802 }
6803
6804
6805 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6806 PyObject *resultobj;
6807 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6808 bool result;
6809 PyObject * obj0 = 0 ;
6810 char *kwnames[] = {
6811 (char *) "self", NULL
6812 };
6813
6814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6817 {
6818 PyThreadState* __tstate = wxPyBeginAllowThreads();
6819 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6820
6821 wxPyEndAllowThreads(__tstate);
6822 if (PyErr_Occurred()) SWIG_fail;
6823 }
6824 {
6825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6826 }
6827 return resultobj;
6828 fail:
6829 return NULL;
6830 }
6831
6832
6833 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6834 PyObject *resultobj;
6835 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6836 wxString result;
6837 PyObject * obj0 = 0 ;
6838 char *kwnames[] = {
6839 (char *) "self", NULL
6840 };
6841
6842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6845 {
6846 PyThreadState* __tstate = wxPyBeginAllowThreads();
6847 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6848
6849 wxPyEndAllowThreads(__tstate);
6850 if (PyErr_Occurred()) SWIG_fail;
6851 }
6852 {
6853 #if wxUSE_UNICODE
6854 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6855 #else
6856 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6857 #endif
6858 }
6859 return resultobj;
6860 fail:
6861 return NULL;
6862 }
6863
6864
6865 static PyObject *_wrap_NativeFontInfo_GetFamily(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_GetFamily",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)->GetFamily();
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_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6892 PyObject *resultobj;
6893 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6894 int result;
6895 PyObject * obj0 = 0 ;
6896 char *kwnames[] = {
6897 (char *) "self", NULL
6898 };
6899
6900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",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 = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6906
6907 wxPyEndAllowThreads(__tstate);
6908 if (PyErr_Occurred()) SWIG_fail;
6909 }
6910 resultobj = SWIG_FromInt((int)result);
6911 return resultobj;
6912 fail:
6913 return NULL;
6914 }
6915
6916
6917 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6918 PyObject *resultobj;
6919 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6920 int arg2 ;
6921 PyObject * obj0 = 0 ;
6922 PyObject * obj1 = 0 ;
6923 char *kwnames[] = {
6924 (char *) "self",(char *) "pointsize", NULL
6925 };
6926
6927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6930 arg2 = (int) SWIG_AsInt(obj1);
6931 if (PyErr_Occurred()) SWIG_fail;
6932 {
6933 PyThreadState* __tstate = wxPyBeginAllowThreads();
6934 (arg1)->SetPointSize(arg2);
6935
6936 wxPyEndAllowThreads(__tstate);
6937 if (PyErr_Occurred()) SWIG_fail;
6938 }
6939 Py_INCREF(Py_None); resultobj = Py_None;
6940 return resultobj;
6941 fail:
6942 return NULL;
6943 }
6944
6945
6946 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6947 PyObject *resultobj;
6948 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6949 int arg2 ;
6950 PyObject * obj0 = 0 ;
6951 PyObject * obj1 = 0 ;
6952 char *kwnames[] = {
6953 (char *) "self",(char *) "style", NULL
6954 };
6955
6956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6959 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6960 if (PyErr_Occurred()) SWIG_fail;
6961 {
6962 PyThreadState* __tstate = wxPyBeginAllowThreads();
6963 (arg1)->SetStyle((wxFontStyle )arg2);
6964
6965 wxPyEndAllowThreads(__tstate);
6966 if (PyErr_Occurred()) SWIG_fail;
6967 }
6968 Py_INCREF(Py_None); resultobj = Py_None;
6969 return resultobj;
6970 fail:
6971 return NULL;
6972 }
6973
6974
6975 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6976 PyObject *resultobj;
6977 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6978 int arg2 ;
6979 PyObject * obj0 = 0 ;
6980 PyObject * obj1 = 0 ;
6981 char *kwnames[] = {
6982 (char *) "self",(char *) "weight", NULL
6983 };
6984
6985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6988 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6989 if (PyErr_Occurred()) SWIG_fail;
6990 {
6991 PyThreadState* __tstate = wxPyBeginAllowThreads();
6992 (arg1)->SetWeight((wxFontWeight )arg2);
6993
6994 wxPyEndAllowThreads(__tstate);
6995 if (PyErr_Occurred()) SWIG_fail;
6996 }
6997 Py_INCREF(Py_None); resultobj = Py_None;
6998 return resultobj;
6999 fail:
7000 return NULL;
7001 }
7002
7003
7004 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7005 PyObject *resultobj;
7006 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7007 bool arg2 ;
7008 PyObject * obj0 = 0 ;
7009 PyObject * obj1 = 0 ;
7010 char *kwnames[] = {
7011 (char *) "self",(char *) "underlined", NULL
7012 };
7013
7014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
7015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7017 arg2 = (bool) SWIG_AsBool(obj1);
7018 if (PyErr_Occurred()) SWIG_fail;
7019 {
7020 PyThreadState* __tstate = wxPyBeginAllowThreads();
7021 (arg1)->SetUnderlined(arg2);
7022
7023 wxPyEndAllowThreads(__tstate);
7024 if (PyErr_Occurred()) SWIG_fail;
7025 }
7026 Py_INCREF(Py_None); resultobj = Py_None;
7027 return resultobj;
7028 fail:
7029 return NULL;
7030 }
7031
7032
7033 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7034 PyObject *resultobj;
7035 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7036 wxString arg2 ;
7037 PyObject * obj0 = 0 ;
7038 PyObject * obj1 = 0 ;
7039 char *kwnames[] = {
7040 (char *) "self",(char *) "facename", NULL
7041 };
7042
7043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
7044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7046 {
7047 wxString* sptr = wxString_in_helper(obj1);
7048 if (sptr == NULL) SWIG_fail;
7049 arg2 = *sptr;
7050 delete sptr;
7051 }
7052 {
7053 PyThreadState* __tstate = wxPyBeginAllowThreads();
7054 (arg1)->SetFaceName(arg2);
7055
7056 wxPyEndAllowThreads(__tstate);
7057 if (PyErr_Occurred()) SWIG_fail;
7058 }
7059 Py_INCREF(Py_None); resultobj = Py_None;
7060 return resultobj;
7061 fail:
7062 return NULL;
7063 }
7064
7065
7066 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7067 PyObject *resultobj;
7068 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7069 int arg2 ;
7070 PyObject * obj0 = 0 ;
7071 PyObject * obj1 = 0 ;
7072 char *kwnames[] = {
7073 (char *) "self",(char *) "family", NULL
7074 };
7075
7076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
7077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7079 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
7080 if (PyErr_Occurred()) SWIG_fail;
7081 {
7082 PyThreadState* __tstate = wxPyBeginAllowThreads();
7083 (arg1)->SetFamily((wxFontFamily )arg2);
7084
7085 wxPyEndAllowThreads(__tstate);
7086 if (PyErr_Occurred()) SWIG_fail;
7087 }
7088 Py_INCREF(Py_None); resultobj = Py_None;
7089 return resultobj;
7090 fail:
7091 return NULL;
7092 }
7093
7094
7095 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7096 PyObject *resultobj;
7097 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7098 int arg2 ;
7099 PyObject * obj0 = 0 ;
7100 PyObject * obj1 = 0 ;
7101 char *kwnames[] = {
7102 (char *) "self",(char *) "encoding", NULL
7103 };
7104
7105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
7106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7108 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7109 if (PyErr_Occurred()) SWIG_fail;
7110 {
7111 PyThreadState* __tstate = wxPyBeginAllowThreads();
7112 (arg1)->SetEncoding((wxFontEncoding )arg2);
7113
7114 wxPyEndAllowThreads(__tstate);
7115 if (PyErr_Occurred()) SWIG_fail;
7116 }
7117 Py_INCREF(Py_None); resultobj = Py_None;
7118 return resultobj;
7119 fail:
7120 return NULL;
7121 }
7122
7123
7124 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7125 PyObject *resultobj;
7126 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7127 wxString *arg2 = 0 ;
7128 bool result;
7129 bool temp2 = False ;
7130 PyObject * obj0 = 0 ;
7131 PyObject * obj1 = 0 ;
7132 char *kwnames[] = {
7133 (char *) "self",(char *) "s", NULL
7134 };
7135
7136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
7137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7139 {
7140 arg2 = wxString_in_helper(obj1);
7141 if (arg2 == NULL) SWIG_fail;
7142 temp2 = True;
7143 }
7144 {
7145 PyThreadState* __tstate = wxPyBeginAllowThreads();
7146 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7147
7148 wxPyEndAllowThreads(__tstate);
7149 if (PyErr_Occurred()) SWIG_fail;
7150 }
7151 {
7152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7153 }
7154 {
7155 if (temp2)
7156 delete arg2;
7157 }
7158 return resultobj;
7159 fail:
7160 {
7161 if (temp2)
7162 delete arg2;
7163 }
7164 return NULL;
7165 }
7166
7167
7168 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
7169 PyObject *resultobj;
7170 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7171 wxString result;
7172 PyObject * obj0 = 0 ;
7173 char *kwnames[] = {
7174 (char *) "self", NULL
7175 };
7176
7177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
7178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7180 {
7181 PyThreadState* __tstate = wxPyBeginAllowThreads();
7182 result = ((wxNativeFontInfo const *)arg1)->ToString();
7183
7184 wxPyEndAllowThreads(__tstate);
7185 if (PyErr_Occurred()) SWIG_fail;
7186 }
7187 {
7188 #if wxUSE_UNICODE
7189 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7190 #else
7191 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7192 #endif
7193 }
7194 return resultobj;
7195 fail:
7196 return NULL;
7197 }
7198
7199
7200 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
7201 PyObject *resultobj;
7202 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7203 wxString result;
7204 PyObject * obj0 = 0 ;
7205 char *kwnames[] = {
7206 (char *) "self", NULL
7207 };
7208
7209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
7210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7212 {
7213 PyThreadState* __tstate = wxPyBeginAllowThreads();
7214 result = wxNativeFontInfo___str__(arg1);
7215
7216 wxPyEndAllowThreads(__tstate);
7217 if (PyErr_Occurred()) SWIG_fail;
7218 }
7219 {
7220 #if wxUSE_UNICODE
7221 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7222 #else
7223 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7224 #endif
7225 }
7226 return resultobj;
7227 fail:
7228 return NULL;
7229 }
7230
7231
7232 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
7233 PyObject *resultobj;
7234 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7235 wxString *arg2 = 0 ;
7236 bool result;
7237 bool temp2 = False ;
7238 PyObject * obj0 = 0 ;
7239 PyObject * obj1 = 0 ;
7240 char *kwnames[] = {
7241 (char *) "self",(char *) "s", NULL
7242 };
7243
7244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
7245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7247 {
7248 arg2 = wxString_in_helper(obj1);
7249 if (arg2 == NULL) SWIG_fail;
7250 temp2 = True;
7251 }
7252 {
7253 PyThreadState* __tstate = wxPyBeginAllowThreads();
7254 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
7255
7256 wxPyEndAllowThreads(__tstate);
7257 if (PyErr_Occurred()) SWIG_fail;
7258 }
7259 {
7260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7261 }
7262 {
7263 if (temp2)
7264 delete arg2;
7265 }
7266 return resultobj;
7267 fail:
7268 {
7269 if (temp2)
7270 delete arg2;
7271 }
7272 return NULL;
7273 }
7274
7275
7276 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
7277 PyObject *resultobj;
7278 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7279 wxString result;
7280 PyObject * obj0 = 0 ;
7281 char *kwnames[] = {
7282 (char *) "self", NULL
7283 };
7284
7285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
7286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7288 {
7289 PyThreadState* __tstate = wxPyBeginAllowThreads();
7290 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
7291
7292 wxPyEndAllowThreads(__tstate);
7293 if (PyErr_Occurred()) SWIG_fail;
7294 }
7295 {
7296 #if wxUSE_UNICODE
7297 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7298 #else
7299 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7300 #endif
7301 }
7302 return resultobj;
7303 fail:
7304 return NULL;
7305 }
7306
7307
7308 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
7309 PyObject *obj;
7310 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7311 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
7312 Py_INCREF(obj);
7313 return Py_BuildValue((char *)"");
7314 }
7315 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7316 PyObject *resultobj;
7317 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7318 wxString *arg2 = (wxString *) 0 ;
7319 bool temp2 = False ;
7320 PyObject * obj0 = 0 ;
7321 PyObject * obj1 = 0 ;
7322 char *kwnames[] = {
7323 (char *) "self",(char *) "facename", NULL
7324 };
7325
7326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
7327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7329 {
7330 arg2 = wxString_in_helper(obj1);
7331 if (arg2 == NULL) SWIG_fail;
7332 temp2 = True;
7333 }
7334 if (arg1) (arg1)->facename = *arg2;
7335
7336 Py_INCREF(Py_None); resultobj = Py_None;
7337 {
7338 if (temp2)
7339 delete arg2;
7340 }
7341 return resultobj;
7342 fail:
7343 {
7344 if (temp2)
7345 delete arg2;
7346 }
7347 return NULL;
7348 }
7349
7350
7351 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7352 PyObject *resultobj;
7353 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7354 wxString *result;
7355 PyObject * obj0 = 0 ;
7356 char *kwnames[] = {
7357 (char *) "self", NULL
7358 };
7359
7360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
7361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7363 result = (wxString *)& ((arg1)->facename);
7364
7365 {
7366 #if wxUSE_UNICODE
7367 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7368 #else
7369 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7370 #endif
7371 }
7372 return resultobj;
7373 fail:
7374 return NULL;
7375 }
7376
7377
7378 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7379 PyObject *resultobj;
7380 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7381 int arg2 ;
7382 PyObject * obj0 = 0 ;
7383 PyObject * obj1 = 0 ;
7384 char *kwnames[] = {
7385 (char *) "self",(char *) "encoding", NULL
7386 };
7387
7388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
7389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7391 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7392 if (PyErr_Occurred()) SWIG_fail;
7393 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
7394
7395 Py_INCREF(Py_None); resultobj = Py_None;
7396 return resultobj;
7397 fail:
7398 return NULL;
7399 }
7400
7401
7402 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7403 PyObject *resultobj;
7404 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7405 int result;
7406 PyObject * obj0 = 0 ;
7407 char *kwnames[] = {
7408 (char *) "self", NULL
7409 };
7410
7411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
7412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7414 result = (int) ((arg1)->encoding);
7415
7416 resultobj = SWIG_FromInt((int)result);
7417 return resultobj;
7418 fail:
7419 return NULL;
7420 }
7421
7422
7423 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7424 PyObject *resultobj;
7425 wxNativeEncodingInfo *result;
7426 char *kwnames[] = {
7427 NULL
7428 };
7429
7430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
7431 {
7432 PyThreadState* __tstate = wxPyBeginAllowThreads();
7433 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
7434
7435 wxPyEndAllowThreads(__tstate);
7436 if (PyErr_Occurred()) SWIG_fail;
7437 }
7438 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
7439 return resultobj;
7440 fail:
7441 return NULL;
7442 }
7443
7444
7445 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7446 PyObject *resultobj;
7447 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7448 PyObject * obj0 = 0 ;
7449 char *kwnames[] = {
7450 (char *) "self", NULL
7451 };
7452
7453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
7454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7456 {
7457 PyThreadState* __tstate = wxPyBeginAllowThreads();
7458 delete arg1;
7459
7460 wxPyEndAllowThreads(__tstate);
7461 if (PyErr_Occurred()) SWIG_fail;
7462 }
7463 Py_INCREF(Py_None); resultobj = Py_None;
7464 return resultobj;
7465 fail:
7466 return NULL;
7467 }
7468
7469
7470 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7471 PyObject *resultobj;
7472 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7473 wxString *arg2 = 0 ;
7474 bool result;
7475 bool temp2 = False ;
7476 PyObject * obj0 = 0 ;
7477 PyObject * obj1 = 0 ;
7478 char *kwnames[] = {
7479 (char *) "self",(char *) "s", NULL
7480 };
7481
7482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
7483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7485 {
7486 arg2 = wxString_in_helper(obj1);
7487 if (arg2 == NULL) SWIG_fail;
7488 temp2 = True;
7489 }
7490 {
7491 PyThreadState* __tstate = wxPyBeginAllowThreads();
7492 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7493
7494 wxPyEndAllowThreads(__tstate);
7495 if (PyErr_Occurred()) SWIG_fail;
7496 }
7497 {
7498 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7499 }
7500 {
7501 if (temp2)
7502 delete arg2;
7503 }
7504 return resultobj;
7505 fail:
7506 {
7507 if (temp2)
7508 delete arg2;
7509 }
7510 return NULL;
7511 }
7512
7513
7514 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
7515 PyObject *resultobj;
7516 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7517 wxString result;
7518 PyObject * obj0 = 0 ;
7519 char *kwnames[] = {
7520 (char *) "self", NULL
7521 };
7522
7523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
7524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7526 {
7527 PyThreadState* __tstate = wxPyBeginAllowThreads();
7528 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
7529
7530 wxPyEndAllowThreads(__tstate);
7531 if (PyErr_Occurred()) SWIG_fail;
7532 }
7533 {
7534 #if wxUSE_UNICODE
7535 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7536 #else
7537 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7538 #endif
7539 }
7540 return resultobj;
7541 fail:
7542 return NULL;
7543 }
7544
7545
7546 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
7547 PyObject *obj;
7548 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7549 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
7550 Py_INCREF(obj);
7551 return Py_BuildValue((char *)"");
7552 }
7553 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7554 PyObject *resultobj;
7555 int arg1 ;
7556 wxNativeEncodingInfo *result;
7557 PyObject * obj0 = 0 ;
7558 char *kwnames[] = {
7559 (char *) "encoding", NULL
7560 };
7561
7562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
7563 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7564 if (PyErr_Occurred()) SWIG_fail;
7565 {
7566 PyThreadState* __tstate = wxPyBeginAllowThreads();
7567 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7568
7569 wxPyEndAllowThreads(__tstate);
7570 if (PyErr_Occurred()) SWIG_fail;
7571 }
7572 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
7573 return resultobj;
7574 fail:
7575 return NULL;
7576 }
7577
7578
7579 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7580 PyObject *resultobj;
7581 wxNativeEncodingInfo *arg1 = 0 ;
7582 bool result;
7583 PyObject * obj0 = 0 ;
7584 char *kwnames[] = {
7585 (char *) "info", NULL
7586 };
7587
7588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
7589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7590 SWIG_POINTER_EXCEPTION | 0)) == -1)
7591 SWIG_fail;
7592 if (arg1 == NULL) {
7593 PyErr_SetString(PyExc_TypeError,"null reference");
7594 SWIG_fail;
7595 }
7596 {
7597 PyThreadState* __tstate = wxPyBeginAllowThreads();
7598 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7599
7600 wxPyEndAllowThreads(__tstate);
7601 if (PyErr_Occurred()) SWIG_fail;
7602 }
7603 {
7604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7605 }
7606 return resultobj;
7607 fail:
7608 return NULL;
7609 }
7610
7611
7612 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7613 PyObject *resultobj;
7614 wxFontMapper *result;
7615 char *kwnames[] = {
7616 NULL
7617 };
7618
7619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7620 {
7621 PyThreadState* __tstate = wxPyBeginAllowThreads();
7622 result = (wxFontMapper *)new wxFontMapper();
7623
7624 wxPyEndAllowThreads(__tstate);
7625 if (PyErr_Occurred()) SWIG_fail;
7626 }
7627 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
7628 return resultobj;
7629 fail:
7630 return NULL;
7631 }
7632
7633
7634 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7635 PyObject *resultobj;
7636 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7637 PyObject * obj0 = 0 ;
7638 char *kwnames[] = {
7639 (char *) "self", NULL
7640 };
7641
7642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7645 {
7646 PyThreadState* __tstate = wxPyBeginAllowThreads();
7647 delete arg1;
7648
7649 wxPyEndAllowThreads(__tstate);
7650 if (PyErr_Occurred()) SWIG_fail;
7651 }
7652 Py_INCREF(Py_None); resultobj = Py_None;
7653 return resultobj;
7654 fail:
7655 return NULL;
7656 }
7657
7658
7659 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
7660 PyObject *resultobj;
7661 wxFontMapper *result;
7662 char *kwnames[] = {
7663 NULL
7664 };
7665
7666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7667 {
7668 PyThreadState* __tstate = wxPyBeginAllowThreads();
7669 result = (wxFontMapper *)wxFontMapper::Get();
7670
7671 wxPyEndAllowThreads(__tstate);
7672 if (PyErr_Occurred()) SWIG_fail;
7673 }
7674 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7675 return resultobj;
7676 fail:
7677 return NULL;
7678 }
7679
7680
7681 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7682 PyObject *resultobj;
7683 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7684 wxFontMapper *result;
7685 PyObject * obj0 = 0 ;
7686 char *kwnames[] = {
7687 (char *) "mapper", NULL
7688 };
7689
7690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7693 {
7694 PyThreadState* __tstate = wxPyBeginAllowThreads();
7695 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7696
7697 wxPyEndAllowThreads(__tstate);
7698 if (PyErr_Occurred()) SWIG_fail;
7699 }
7700 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7701 return resultobj;
7702 fail:
7703 return NULL;
7704 }
7705
7706
7707 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7708 PyObject *resultobj;
7709 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7710 wxString *arg2 = 0 ;
7711 bool arg3 = (bool) True ;
7712 int result;
7713 bool temp2 = False ;
7714 PyObject * obj0 = 0 ;
7715 PyObject * obj1 = 0 ;
7716 PyObject * obj2 = 0 ;
7717 char *kwnames[] = {
7718 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7719 };
7720
7721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7724 {
7725 arg2 = wxString_in_helper(obj1);
7726 if (arg2 == NULL) SWIG_fail;
7727 temp2 = True;
7728 }
7729 if (obj2) {
7730 arg3 = (bool) SWIG_AsBool(obj2);
7731 if (PyErr_Occurred()) SWIG_fail;
7732 }
7733 {
7734 PyThreadState* __tstate = wxPyBeginAllowThreads();
7735 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7736
7737 wxPyEndAllowThreads(__tstate);
7738 if (PyErr_Occurred()) SWIG_fail;
7739 }
7740 resultobj = SWIG_FromInt((int)result);
7741 {
7742 if (temp2)
7743 delete arg2;
7744 }
7745 return resultobj;
7746 fail:
7747 {
7748 if (temp2)
7749 delete arg2;
7750 }
7751 return NULL;
7752 }
7753
7754
7755 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7756 PyObject *resultobj;
7757 size_t result;
7758 char *kwnames[] = {
7759 NULL
7760 };
7761
7762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7763 {
7764 PyThreadState* __tstate = wxPyBeginAllowThreads();
7765 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7766
7767 wxPyEndAllowThreads(__tstate);
7768 if (PyErr_Occurred()) SWIG_fail;
7769 }
7770 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7771 return resultobj;
7772 fail:
7773 return NULL;
7774 }
7775
7776
7777 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7778 PyObject *resultobj;
7779 size_t arg1 ;
7780 int result;
7781 PyObject * obj0 = 0 ;
7782 char *kwnames[] = {
7783 (char *) "n", NULL
7784 };
7785
7786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7787 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7788 if (PyErr_Occurred()) SWIG_fail;
7789 {
7790 PyThreadState* __tstate = wxPyBeginAllowThreads();
7791 result = (int)wxFontMapper::GetEncoding(arg1);
7792
7793 wxPyEndAllowThreads(__tstate);
7794 if (PyErr_Occurred()) SWIG_fail;
7795 }
7796 resultobj = SWIG_FromInt((int)result);
7797 return resultobj;
7798 fail:
7799 return NULL;
7800 }
7801
7802
7803 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7804 PyObject *resultobj;
7805 int arg1 ;
7806 wxString result;
7807 PyObject * obj0 = 0 ;
7808 char *kwnames[] = {
7809 (char *) "encoding", NULL
7810 };
7811
7812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7813 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7814 if (PyErr_Occurred()) SWIG_fail;
7815 {
7816 PyThreadState* __tstate = wxPyBeginAllowThreads();
7817 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7818
7819 wxPyEndAllowThreads(__tstate);
7820 if (PyErr_Occurred()) SWIG_fail;
7821 }
7822 {
7823 #if wxUSE_UNICODE
7824 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7825 #else
7826 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7827 #endif
7828 }
7829 return resultobj;
7830 fail:
7831 return NULL;
7832 }
7833
7834
7835 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7836 PyObject *resultobj;
7837 int arg1 ;
7838 wxString result;
7839 PyObject * obj0 = 0 ;
7840 char *kwnames[] = {
7841 (char *) "encoding", NULL
7842 };
7843
7844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7845 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7846 if (PyErr_Occurred()) SWIG_fail;
7847 {
7848 PyThreadState* __tstate = wxPyBeginAllowThreads();
7849 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7850
7851 wxPyEndAllowThreads(__tstate);
7852 if (PyErr_Occurred()) SWIG_fail;
7853 }
7854 {
7855 #if wxUSE_UNICODE
7856 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7857 #else
7858 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7859 #endif
7860 }
7861 return resultobj;
7862 fail:
7863 return NULL;
7864 }
7865
7866
7867 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
7868 PyObject *resultobj;
7869 wxString *arg1 = 0 ;
7870 int result;
7871 bool temp1 = False ;
7872 PyObject * obj0 = 0 ;
7873 char *kwnames[] = {
7874 (char *) "name", NULL
7875 };
7876
7877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7878 {
7879 arg1 = wxString_in_helper(obj0);
7880 if (arg1 == NULL) SWIG_fail;
7881 temp1 = True;
7882 }
7883 {
7884 PyThreadState* __tstate = wxPyBeginAllowThreads();
7885 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7886
7887 wxPyEndAllowThreads(__tstate);
7888 if (PyErr_Occurred()) SWIG_fail;
7889 }
7890 resultobj = SWIG_FromInt((int)result);
7891 {
7892 if (temp1)
7893 delete arg1;
7894 }
7895 return resultobj;
7896 fail:
7897 {
7898 if (temp1)
7899 delete arg1;
7900 }
7901 return NULL;
7902 }
7903
7904
7905 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7906 PyObject *resultobj;
7907 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7908 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7909 PyObject * obj0 = 0 ;
7910 PyObject * obj1 = 0 ;
7911 char *kwnames[] = {
7912 (char *) "self",(char *) "config", NULL
7913 };
7914
7915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7918 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7920 {
7921 PyThreadState* __tstate = wxPyBeginAllowThreads();
7922 (arg1)->SetConfig(arg2);
7923
7924 wxPyEndAllowThreads(__tstate);
7925 if (PyErr_Occurred()) SWIG_fail;
7926 }
7927 Py_INCREF(Py_None); resultobj = Py_None;
7928 return resultobj;
7929 fail:
7930 return NULL;
7931 }
7932
7933
7934 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7935 PyObject *resultobj;
7936 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7937 wxString *arg2 = 0 ;
7938 bool temp2 = False ;
7939 PyObject * obj0 = 0 ;
7940 PyObject * obj1 = 0 ;
7941 char *kwnames[] = {
7942 (char *) "self",(char *) "prefix", NULL
7943 };
7944
7945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7948 {
7949 arg2 = wxString_in_helper(obj1);
7950 if (arg2 == NULL) SWIG_fail;
7951 temp2 = True;
7952 }
7953 {
7954 PyThreadState* __tstate = wxPyBeginAllowThreads();
7955 (arg1)->SetConfigPath((wxString const &)*arg2);
7956
7957 wxPyEndAllowThreads(__tstate);
7958 if (PyErr_Occurred()) SWIG_fail;
7959 }
7960 Py_INCREF(Py_None); resultobj = Py_None;
7961 {
7962 if (temp2)
7963 delete arg2;
7964 }
7965 return resultobj;
7966 fail:
7967 {
7968 if (temp2)
7969 delete arg2;
7970 }
7971 return NULL;
7972 }
7973
7974
7975 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7976 PyObject *resultobj;
7977 wxString result;
7978 char *kwnames[] = {
7979 NULL
7980 };
7981
7982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7983 {
7984 PyThreadState* __tstate = wxPyBeginAllowThreads();
7985 result = wxFontMapper::GetDefaultConfigPath();
7986
7987 wxPyEndAllowThreads(__tstate);
7988 if (PyErr_Occurred()) SWIG_fail;
7989 }
7990 {
7991 #if wxUSE_UNICODE
7992 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7993 #else
7994 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7995 #endif
7996 }
7997 return resultobj;
7998 fail:
7999 return NULL;
8000 }
8001
8002
8003 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8004 PyObject *resultobj;
8005 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8006 int arg2 ;
8007 wxString const &arg3_defvalue = wxPyEmptyString ;
8008 wxString *arg3 = (wxString *) &arg3_defvalue ;
8009 bool arg4 = (bool) True ;
8010 PyObject *result;
8011 bool temp3 = False ;
8012 PyObject * obj0 = 0 ;
8013 PyObject * obj1 = 0 ;
8014 PyObject * obj2 = 0 ;
8015 PyObject * obj3 = 0 ;
8016 char *kwnames[] = {
8017 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
8018 };
8019
8020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8023 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8024 if (PyErr_Occurred()) SWIG_fail;
8025 if (obj2) {
8026 {
8027 arg3 = wxString_in_helper(obj2);
8028 if (arg3 == NULL) SWIG_fail;
8029 temp3 = True;
8030 }
8031 }
8032 if (obj3) {
8033 arg4 = (bool) SWIG_AsBool(obj3);
8034 if (PyErr_Occurred()) SWIG_fail;
8035 }
8036 {
8037 PyThreadState* __tstate = wxPyBeginAllowThreads();
8038 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
8039
8040 wxPyEndAllowThreads(__tstate);
8041 if (PyErr_Occurred()) SWIG_fail;
8042 }
8043 resultobj = result;
8044 {
8045 if (temp3)
8046 delete arg3;
8047 }
8048 return resultobj;
8049 fail:
8050 {
8051 if (temp3)
8052 delete arg3;
8053 }
8054 return NULL;
8055 }
8056
8057
8058 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
8059 PyObject *resultobj;
8060 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8061 int arg2 ;
8062 wxString const &arg3_defvalue = wxPyEmptyString ;
8063 wxString *arg3 = (wxString *) &arg3_defvalue ;
8064 bool result;
8065 bool temp3 = False ;
8066 PyObject * obj0 = 0 ;
8067 PyObject * obj1 = 0 ;
8068 PyObject * obj2 = 0 ;
8069 char *kwnames[] = {
8070 (char *) "self",(char *) "encoding",(char *) "facename", NULL
8071 };
8072
8073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
8074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8076 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8077 if (PyErr_Occurred()) SWIG_fail;
8078 if (obj2) {
8079 {
8080 arg3 = wxString_in_helper(obj2);
8081 if (arg3 == NULL) SWIG_fail;
8082 temp3 = True;
8083 }
8084 }
8085 {
8086 PyThreadState* __tstate = wxPyBeginAllowThreads();
8087 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
8088
8089 wxPyEndAllowThreads(__tstate);
8090 if (PyErr_Occurred()) SWIG_fail;
8091 }
8092 {
8093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8094 }
8095 {
8096 if (temp3)
8097 delete arg3;
8098 }
8099 return resultobj;
8100 fail:
8101 {
8102 if (temp3)
8103 delete arg3;
8104 }
8105 return NULL;
8106 }
8107
8108
8109 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
8110 PyObject *resultobj;
8111 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8112 wxWindow *arg2 = (wxWindow *) 0 ;
8113 PyObject * obj0 = 0 ;
8114 PyObject * obj1 = 0 ;
8115 char *kwnames[] = {
8116 (char *) "self",(char *) "parent", NULL
8117 };
8118
8119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
8120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8122 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
8123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8124 {
8125 PyThreadState* __tstate = wxPyBeginAllowThreads();
8126 (arg1)->SetDialogParent(arg2);
8127
8128 wxPyEndAllowThreads(__tstate);
8129 if (PyErr_Occurred()) SWIG_fail;
8130 }
8131 Py_INCREF(Py_None); resultobj = Py_None;
8132 return resultobj;
8133 fail:
8134 return NULL;
8135 }
8136
8137
8138 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
8139 PyObject *resultobj;
8140 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8141 wxString *arg2 = 0 ;
8142 bool temp2 = False ;
8143 PyObject * obj0 = 0 ;
8144 PyObject * obj1 = 0 ;
8145 char *kwnames[] = {
8146 (char *) "self",(char *) "title", NULL
8147 };
8148
8149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
8150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8152 {
8153 arg2 = wxString_in_helper(obj1);
8154 if (arg2 == NULL) SWIG_fail;
8155 temp2 = True;
8156 }
8157 {
8158 PyThreadState* __tstate = wxPyBeginAllowThreads();
8159 (arg1)->SetDialogTitle((wxString const &)*arg2);
8160
8161 wxPyEndAllowThreads(__tstate);
8162 if (PyErr_Occurred()) SWIG_fail;
8163 }
8164 Py_INCREF(Py_None); resultobj = Py_None;
8165 {
8166 if (temp2)
8167 delete arg2;
8168 }
8169 return resultobj;
8170 fail:
8171 {
8172 if (temp2)
8173 delete arg2;
8174 }
8175 return NULL;
8176 }
8177
8178
8179 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
8180 PyObject *obj;
8181 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8182 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
8183 Py_INCREF(obj);
8184 return Py_BuildValue((char *)"");
8185 }
8186 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
8187 PyObject *resultobj;
8188 int arg1 ;
8189 int arg2 ;
8190 int arg3 ;
8191 int arg4 ;
8192 bool arg5 = (bool) False ;
8193 wxString const &arg6_defvalue = wxPyEmptyString ;
8194 wxString *arg6 = (wxString *) &arg6_defvalue ;
8195 int arg7 = (int) wxFONTENCODING_DEFAULT ;
8196 wxFont *result;
8197 bool temp6 = False ;
8198 PyObject * obj0 = 0 ;
8199 PyObject * obj1 = 0 ;
8200 PyObject * obj2 = 0 ;
8201 PyObject * obj3 = 0 ;
8202 PyObject * obj4 = 0 ;
8203 PyObject * obj5 = 0 ;
8204 PyObject * obj6 = 0 ;
8205 char *kwnames[] = {
8206 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
8207 };
8208
8209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
8210 arg1 = (int) SWIG_AsInt(obj0);
8211 if (PyErr_Occurred()) SWIG_fail;
8212 arg2 = (int) SWIG_AsInt(obj1);
8213 if (PyErr_Occurred()) SWIG_fail;
8214 arg3 = (int) SWIG_AsInt(obj2);
8215 if (PyErr_Occurred()) SWIG_fail;
8216 arg4 = (int) SWIG_AsInt(obj3);
8217 if (PyErr_Occurred()) SWIG_fail;
8218 if (obj4) {
8219 arg5 = (bool) SWIG_AsBool(obj4);
8220 if (PyErr_Occurred()) SWIG_fail;
8221 }
8222 if (obj5) {
8223 {
8224 arg6 = wxString_in_helper(obj5);
8225 if (arg6 == NULL) SWIG_fail;
8226 temp6 = True;
8227 }
8228 }
8229 if (obj6) {
8230 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
8231 if (PyErr_Occurred()) SWIG_fail;
8232 }
8233 {
8234 PyThreadState* __tstate = wxPyBeginAllowThreads();
8235 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
8236
8237 wxPyEndAllowThreads(__tstate);
8238 if (PyErr_Occurred()) SWIG_fail;
8239 }
8240 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8241 {
8242 if (temp6)
8243 delete arg6;
8244 }
8245 return resultobj;
8246 fail:
8247 {
8248 if (temp6)
8249 delete arg6;
8250 }
8251 return NULL;
8252 }
8253
8254
8255 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
8256 PyObject *resultobj;
8257 wxFont *arg1 = (wxFont *) 0 ;
8258 PyObject * obj0 = 0 ;
8259 char *kwnames[] = {
8260 (char *) "self", NULL
8261 };
8262
8263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
8264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8266 {
8267 PyThreadState* __tstate = wxPyBeginAllowThreads();
8268 delete arg1;
8269
8270 wxPyEndAllowThreads(__tstate);
8271 if (PyErr_Occurred()) SWIG_fail;
8272 }
8273 Py_INCREF(Py_None); resultobj = Py_None;
8274 return resultobj;
8275 fail:
8276 return NULL;
8277 }
8278
8279
8280 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8281 PyObject *resultobj;
8282 wxNativeFontInfo *arg1 = 0 ;
8283 wxFont *result;
8284 PyObject * obj0 = 0 ;
8285 char *kwnames[] = {
8286 (char *) "info", NULL
8287 };
8288
8289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
8290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
8291 SWIG_POINTER_EXCEPTION | 0)) == -1)
8292 SWIG_fail;
8293 if (arg1 == NULL) {
8294 PyErr_SetString(PyExc_TypeError,"null reference");
8295 SWIG_fail;
8296 }
8297 {
8298 PyThreadState* __tstate = wxPyBeginAllowThreads();
8299 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
8300
8301 wxPyEndAllowThreads(__tstate);
8302 if (PyErr_Occurred()) SWIG_fail;
8303 }
8304 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8305 return resultobj;
8306 fail:
8307 return NULL;
8308 }
8309
8310
8311 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
8312 PyObject *resultobj;
8313 wxString *arg1 = 0 ;
8314 wxFont *result;
8315 bool temp1 = False ;
8316 PyObject * obj0 = 0 ;
8317 char *kwnames[] = {
8318 (char *) "info", NULL
8319 };
8320
8321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
8322 {
8323 arg1 = wxString_in_helper(obj0);
8324 if (arg1 == NULL) SWIG_fail;
8325 temp1 = True;
8326 }
8327 {
8328 PyThreadState* __tstate = wxPyBeginAllowThreads();
8329 result = (wxFont *)new_wxFont((wxString const &)*arg1);
8330
8331 wxPyEndAllowThreads(__tstate);
8332 if (PyErr_Occurred()) SWIG_fail;
8333 }
8334 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8335 {
8336 if (temp1)
8337 delete arg1;
8338 }
8339 return resultobj;
8340 fail:
8341 {
8342 if (temp1)
8343 delete arg1;
8344 }
8345 return NULL;
8346 }
8347
8348
8349 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
8350 PyObject *resultobj;
8351 int arg1 ;
8352 int arg2 ;
8353 int arg3 = (int) wxFONTFLAG_DEFAULT ;
8354 wxString const &arg4_defvalue = wxPyEmptyString ;
8355 wxString *arg4 = (wxString *) &arg4_defvalue ;
8356 int arg5 = (int) wxFONTENCODING_DEFAULT ;
8357 wxFont *result;
8358 bool temp4 = False ;
8359 PyObject * obj0 = 0 ;
8360 PyObject * obj1 = 0 ;
8361 PyObject * obj2 = 0 ;
8362 PyObject * obj3 = 0 ;
8363 PyObject * obj4 = 0 ;
8364 char *kwnames[] = {
8365 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
8366 };
8367
8368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
8369 arg1 = (int) SWIG_AsInt(obj0);
8370 if (PyErr_Occurred()) SWIG_fail;
8371 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
8372 if (PyErr_Occurred()) SWIG_fail;
8373 if (obj2) {
8374 arg3 = (int) SWIG_AsInt(obj2);
8375 if (PyErr_Occurred()) SWIG_fail;
8376 }
8377 if (obj3) {
8378 {
8379 arg4 = wxString_in_helper(obj3);
8380 if (arg4 == NULL) SWIG_fail;
8381 temp4 = True;
8382 }
8383 }
8384 if (obj4) {
8385 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
8386 if (PyErr_Occurred()) SWIG_fail;
8387 }
8388 {
8389 PyThreadState* __tstate = wxPyBeginAllowThreads();
8390 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
8391
8392 wxPyEndAllowThreads(__tstate);
8393 if (PyErr_Occurred()) SWIG_fail;
8394 }
8395 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8396 {
8397 if (temp4)
8398 delete arg4;
8399 }
8400 return resultobj;
8401 fail:
8402 {
8403 if (temp4)
8404 delete arg4;
8405 }
8406 return NULL;
8407 }
8408
8409
8410 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
8411 PyObject *resultobj;
8412 wxFont *arg1 = (wxFont *) 0 ;
8413 bool result;
8414 PyObject * obj0 = 0 ;
8415 char *kwnames[] = {
8416 (char *) "self", NULL
8417 };
8418
8419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
8420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8422 {
8423 PyThreadState* __tstate = wxPyBeginAllowThreads();
8424 result = (bool)((wxFont const *)arg1)->Ok();
8425
8426 wxPyEndAllowThreads(__tstate);
8427 if (PyErr_Occurred()) SWIG_fail;
8428 }
8429 {
8430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8431 }
8432 return resultobj;
8433 fail:
8434 return NULL;
8435 }
8436
8437
8438 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
8439 PyObject *resultobj;
8440 wxFont *arg1 = (wxFont *) 0 ;
8441 wxFont *arg2 = (wxFont *) 0 ;
8442 bool result;
8443 PyObject * obj0 = 0 ;
8444 PyObject * obj1 = 0 ;
8445 char *kwnames[] = {
8446 (char *) "self",(char *) "other", NULL
8447 };
8448
8449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
8450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8452 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8454 {
8455 PyThreadState* __tstate = wxPyBeginAllowThreads();
8456 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
8457
8458 wxPyEndAllowThreads(__tstate);
8459 if (PyErr_Occurred()) SWIG_fail;
8460 }
8461 {
8462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8463 }
8464 return resultobj;
8465 fail:
8466 return NULL;
8467 }
8468
8469
8470 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
8471 PyObject *resultobj;
8472 wxFont *arg1 = (wxFont *) 0 ;
8473 wxFont *arg2 = (wxFont *) 0 ;
8474 bool result;
8475 PyObject * obj0 = 0 ;
8476 PyObject * obj1 = 0 ;
8477 char *kwnames[] = {
8478 (char *) "self",(char *) "other", NULL
8479 };
8480
8481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
8482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8484 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8486 {
8487 PyThreadState* __tstate = wxPyBeginAllowThreads();
8488 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
8489
8490 wxPyEndAllowThreads(__tstate);
8491 if (PyErr_Occurred()) SWIG_fail;
8492 }
8493 {
8494 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8495 }
8496 return resultobj;
8497 fail:
8498 return NULL;
8499 }
8500
8501
8502 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8503 PyObject *resultobj;
8504 wxFont *arg1 = (wxFont *) 0 ;
8505 int result;
8506 PyObject * obj0 = 0 ;
8507 char *kwnames[] = {
8508 (char *) "self", NULL
8509 };
8510
8511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
8512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8514 {
8515 PyThreadState* __tstate = wxPyBeginAllowThreads();
8516 result = (int)((wxFont const *)arg1)->GetPointSize();
8517
8518 wxPyEndAllowThreads(__tstate);
8519 if (PyErr_Occurred()) SWIG_fail;
8520 }
8521 resultobj = SWIG_FromInt((int)result);
8522 return resultobj;
8523 fail:
8524 return NULL;
8525 }
8526
8527
8528 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8529 PyObject *resultobj;
8530 wxFont *arg1 = (wxFont *) 0 ;
8531 int result;
8532 PyObject * obj0 = 0 ;
8533 char *kwnames[] = {
8534 (char *) "self", NULL
8535 };
8536
8537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
8538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8540 {
8541 PyThreadState* __tstate = wxPyBeginAllowThreads();
8542 result = (int)((wxFont const *)arg1)->GetFamily();
8543
8544 wxPyEndAllowThreads(__tstate);
8545 if (PyErr_Occurred()) SWIG_fail;
8546 }
8547 resultobj = SWIG_FromInt((int)result);
8548 return resultobj;
8549 fail:
8550 return NULL;
8551 }
8552
8553
8554 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8555 PyObject *resultobj;
8556 wxFont *arg1 = (wxFont *) 0 ;
8557 int result;
8558 PyObject * obj0 = 0 ;
8559 char *kwnames[] = {
8560 (char *) "self", NULL
8561 };
8562
8563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
8564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8566 {
8567 PyThreadState* __tstate = wxPyBeginAllowThreads();
8568 result = (int)((wxFont const *)arg1)->GetStyle();
8569
8570 wxPyEndAllowThreads(__tstate);
8571 if (PyErr_Occurred()) SWIG_fail;
8572 }
8573 resultobj = SWIG_FromInt((int)result);
8574 return resultobj;
8575 fail:
8576 return NULL;
8577 }
8578
8579
8580 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8581 PyObject *resultobj;
8582 wxFont *arg1 = (wxFont *) 0 ;
8583 int result;
8584 PyObject * obj0 = 0 ;
8585 char *kwnames[] = {
8586 (char *) "self", NULL
8587 };
8588
8589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
8590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8592 {
8593 PyThreadState* __tstate = wxPyBeginAllowThreads();
8594 result = (int)((wxFont const *)arg1)->GetWeight();
8595
8596 wxPyEndAllowThreads(__tstate);
8597 if (PyErr_Occurred()) SWIG_fail;
8598 }
8599 resultobj = SWIG_FromInt((int)result);
8600 return resultobj;
8601 fail:
8602 return NULL;
8603 }
8604
8605
8606 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8607 PyObject *resultobj;
8608 wxFont *arg1 = (wxFont *) 0 ;
8609 bool result;
8610 PyObject * obj0 = 0 ;
8611 char *kwnames[] = {
8612 (char *) "self", NULL
8613 };
8614
8615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
8616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8618 {
8619 PyThreadState* __tstate = wxPyBeginAllowThreads();
8620 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8621
8622 wxPyEndAllowThreads(__tstate);
8623 if (PyErr_Occurred()) SWIG_fail;
8624 }
8625 {
8626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8627 }
8628 return resultobj;
8629 fail:
8630 return NULL;
8631 }
8632
8633
8634 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8635 PyObject *resultobj;
8636 wxFont *arg1 = (wxFont *) 0 ;
8637 wxString result;
8638 PyObject * obj0 = 0 ;
8639 char *kwnames[] = {
8640 (char *) "self", NULL
8641 };
8642
8643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
8644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8646 {
8647 PyThreadState* __tstate = wxPyBeginAllowThreads();
8648 result = ((wxFont const *)arg1)->GetFaceName();
8649
8650 wxPyEndAllowThreads(__tstate);
8651 if (PyErr_Occurred()) SWIG_fail;
8652 }
8653 {
8654 #if wxUSE_UNICODE
8655 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8656 #else
8657 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8658 #endif
8659 }
8660 return resultobj;
8661 fail:
8662 return NULL;
8663 }
8664
8665
8666 static PyObject *_wrap_Font_GetEncoding(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_GetEncoding",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)->GetEncoding();
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_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8693 PyObject *resultobj;
8694 wxFont *arg1 = (wxFont *) 0 ;
8695 wxNativeFontInfo *result;
8696 PyObject * obj0 = 0 ;
8697 char *kwnames[] = {
8698 (char *) "self", NULL
8699 };
8700
8701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",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 = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8707
8708 wxPyEndAllowThreads(__tstate);
8709 if (PyErr_Occurred()) SWIG_fail;
8710 }
8711 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8712 return resultobj;
8713 fail:
8714 return NULL;
8715 }
8716
8717
8718 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8719 PyObject *resultobj;
8720 wxFont *arg1 = (wxFont *) 0 ;
8721 bool result;
8722 PyObject * obj0 = 0 ;
8723 char *kwnames[] = {
8724 (char *) "self", NULL
8725 };
8726
8727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8730 {
8731 PyThreadState* __tstate = wxPyBeginAllowThreads();
8732 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8733
8734 wxPyEndAllowThreads(__tstate);
8735 if (PyErr_Occurred()) SWIG_fail;
8736 }
8737 {
8738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8739 }
8740 return resultobj;
8741 fail:
8742 return NULL;
8743 }
8744
8745
8746 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8747 PyObject *resultobj;
8748 wxFont *arg1 = (wxFont *) 0 ;
8749 wxString result;
8750 PyObject * obj0 = 0 ;
8751 char *kwnames[] = {
8752 (char *) "self", NULL
8753 };
8754
8755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8758 {
8759 PyThreadState* __tstate = wxPyBeginAllowThreads();
8760 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8761
8762 wxPyEndAllowThreads(__tstate);
8763 if (PyErr_Occurred()) SWIG_fail;
8764 }
8765 {
8766 #if wxUSE_UNICODE
8767 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8768 #else
8769 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8770 #endif
8771 }
8772 return resultobj;
8773 fail:
8774 return NULL;
8775 }
8776
8777
8778 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8779 PyObject *resultobj;
8780 wxFont *arg1 = (wxFont *) 0 ;
8781 wxString result;
8782 PyObject * obj0 = 0 ;
8783 char *kwnames[] = {
8784 (char *) "self", NULL
8785 };
8786
8787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",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 = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8793
8794 wxPyEndAllowThreads(__tstate);
8795 if (PyErr_Occurred()) SWIG_fail;
8796 }
8797 {
8798 #if wxUSE_UNICODE
8799 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8800 #else
8801 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8802 #endif
8803 }
8804 return resultobj;
8805 fail:
8806 return NULL;
8807 }
8808
8809
8810 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8811 PyObject *resultobj;
8812 wxFont *arg1 = (wxFont *) 0 ;
8813 int arg2 ;
8814 PyObject * obj0 = 0 ;
8815 PyObject * obj1 = 0 ;
8816 char *kwnames[] = {
8817 (char *) "self",(char *) "pointSize", NULL
8818 };
8819
8820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8823 arg2 = (int) SWIG_AsInt(obj1);
8824 if (PyErr_Occurred()) SWIG_fail;
8825 {
8826 PyThreadState* __tstate = wxPyBeginAllowThreads();
8827 (arg1)->SetPointSize(arg2);
8828
8829 wxPyEndAllowThreads(__tstate);
8830 if (PyErr_Occurred()) SWIG_fail;
8831 }
8832 Py_INCREF(Py_None); resultobj = Py_None;
8833 return resultobj;
8834 fail:
8835 return NULL;
8836 }
8837
8838
8839 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8840 PyObject *resultobj;
8841 wxFont *arg1 = (wxFont *) 0 ;
8842 int arg2 ;
8843 PyObject * obj0 = 0 ;
8844 PyObject * obj1 = 0 ;
8845 char *kwnames[] = {
8846 (char *) "self",(char *) "family", NULL
8847 };
8848
8849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8852 arg2 = (int) SWIG_AsInt(obj1);
8853 if (PyErr_Occurred()) SWIG_fail;
8854 {
8855 PyThreadState* __tstate = wxPyBeginAllowThreads();
8856 (arg1)->SetFamily(arg2);
8857
8858 wxPyEndAllowThreads(__tstate);
8859 if (PyErr_Occurred()) SWIG_fail;
8860 }
8861 Py_INCREF(Py_None); resultobj = Py_None;
8862 return resultobj;
8863 fail:
8864 return NULL;
8865 }
8866
8867
8868 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8869 PyObject *resultobj;
8870 wxFont *arg1 = (wxFont *) 0 ;
8871 int arg2 ;
8872 PyObject * obj0 = 0 ;
8873 PyObject * obj1 = 0 ;
8874 char *kwnames[] = {
8875 (char *) "self",(char *) "style", NULL
8876 };
8877
8878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8881 arg2 = (int) SWIG_AsInt(obj1);
8882 if (PyErr_Occurred()) SWIG_fail;
8883 {
8884 PyThreadState* __tstate = wxPyBeginAllowThreads();
8885 (arg1)->SetStyle(arg2);
8886
8887 wxPyEndAllowThreads(__tstate);
8888 if (PyErr_Occurred()) SWIG_fail;
8889 }
8890 Py_INCREF(Py_None); resultobj = Py_None;
8891 return resultobj;
8892 fail:
8893 return NULL;
8894 }
8895
8896
8897 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8898 PyObject *resultobj;
8899 wxFont *arg1 = (wxFont *) 0 ;
8900 int arg2 ;
8901 PyObject * obj0 = 0 ;
8902 PyObject * obj1 = 0 ;
8903 char *kwnames[] = {
8904 (char *) "self",(char *) "weight", NULL
8905 };
8906
8907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8910 arg2 = (int) SWIG_AsInt(obj1);
8911 if (PyErr_Occurred()) SWIG_fail;
8912 {
8913 PyThreadState* __tstate = wxPyBeginAllowThreads();
8914 (arg1)->SetWeight(arg2);
8915
8916 wxPyEndAllowThreads(__tstate);
8917 if (PyErr_Occurred()) SWIG_fail;
8918 }
8919 Py_INCREF(Py_None); resultobj = Py_None;
8920 return resultobj;
8921 fail:
8922 return NULL;
8923 }
8924
8925
8926 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8927 PyObject *resultobj;
8928 wxFont *arg1 = (wxFont *) 0 ;
8929 wxString *arg2 = 0 ;
8930 bool temp2 = False ;
8931 PyObject * obj0 = 0 ;
8932 PyObject * obj1 = 0 ;
8933 char *kwnames[] = {
8934 (char *) "self",(char *) "faceName", NULL
8935 };
8936
8937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8940 {
8941 arg2 = wxString_in_helper(obj1);
8942 if (arg2 == NULL) SWIG_fail;
8943 temp2 = True;
8944 }
8945 {
8946 PyThreadState* __tstate = wxPyBeginAllowThreads();
8947 (arg1)->SetFaceName((wxString const &)*arg2);
8948
8949 wxPyEndAllowThreads(__tstate);
8950 if (PyErr_Occurred()) SWIG_fail;
8951 }
8952 Py_INCREF(Py_None); resultobj = Py_None;
8953 {
8954 if (temp2)
8955 delete arg2;
8956 }
8957 return resultobj;
8958 fail:
8959 {
8960 if (temp2)
8961 delete arg2;
8962 }
8963 return NULL;
8964 }
8965
8966
8967 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8968 PyObject *resultobj;
8969 wxFont *arg1 = (wxFont *) 0 ;
8970 bool arg2 ;
8971 PyObject * obj0 = 0 ;
8972 PyObject * obj1 = 0 ;
8973 char *kwnames[] = {
8974 (char *) "self",(char *) "underlined", NULL
8975 };
8976
8977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8980 arg2 = (bool) SWIG_AsBool(obj1);
8981 if (PyErr_Occurred()) SWIG_fail;
8982 {
8983 PyThreadState* __tstate = wxPyBeginAllowThreads();
8984 (arg1)->SetUnderlined(arg2);
8985
8986 wxPyEndAllowThreads(__tstate);
8987 if (PyErr_Occurred()) SWIG_fail;
8988 }
8989 Py_INCREF(Py_None); resultobj = Py_None;
8990 return resultobj;
8991 fail:
8992 return NULL;
8993 }
8994
8995
8996 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8997 PyObject *resultobj;
8998 wxFont *arg1 = (wxFont *) 0 ;
8999 int arg2 ;
9000 PyObject * obj0 = 0 ;
9001 PyObject * obj1 = 0 ;
9002 char *kwnames[] = {
9003 (char *) "self",(char *) "encoding", NULL
9004 };
9005
9006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
9007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9009 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
9010 if (PyErr_Occurred()) SWIG_fail;
9011 {
9012 PyThreadState* __tstate = wxPyBeginAllowThreads();
9013 (arg1)->SetEncoding((wxFontEncoding )arg2);
9014
9015 wxPyEndAllowThreads(__tstate);
9016 if (PyErr_Occurred()) SWIG_fail;
9017 }
9018 Py_INCREF(Py_None); resultobj = Py_None;
9019 return resultobj;
9020 fail:
9021 return NULL;
9022 }
9023
9024
9025 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9026 PyObject *resultobj;
9027 wxFont *arg1 = (wxFont *) 0 ;
9028 wxNativeFontInfo *arg2 = 0 ;
9029 PyObject * obj0 = 0 ;
9030 PyObject * obj1 = 0 ;
9031 char *kwnames[] = {
9032 (char *) "self",(char *) "info", NULL
9033 };
9034
9035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
9036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9038 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
9039 SWIG_POINTER_EXCEPTION | 0)) == -1)
9040 SWIG_fail;
9041 if (arg2 == NULL) {
9042 PyErr_SetString(PyExc_TypeError,"null reference");
9043 SWIG_fail;
9044 }
9045 {
9046 PyThreadState* __tstate = wxPyBeginAllowThreads();
9047 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
9048
9049 wxPyEndAllowThreads(__tstate);
9050 if (PyErr_Occurred()) SWIG_fail;
9051 }
9052 Py_INCREF(Py_None); resultobj = Py_None;
9053 return resultobj;
9054 fail:
9055 return NULL;
9056 }
9057
9058
9059 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
9060 PyObject *resultobj;
9061 wxFont *arg1 = (wxFont *) 0 ;
9062 wxString *arg2 = 0 ;
9063 bool temp2 = False ;
9064 PyObject * obj0 = 0 ;
9065 PyObject * obj1 = 0 ;
9066 char *kwnames[] = {
9067 (char *) "self",(char *) "info", NULL
9068 };
9069
9070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
9071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9073 {
9074 arg2 = wxString_in_helper(obj1);
9075 if (arg2 == NULL) SWIG_fail;
9076 temp2 = True;
9077 }
9078 {
9079 PyThreadState* __tstate = wxPyBeginAllowThreads();
9080 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
9081
9082 wxPyEndAllowThreads(__tstate);
9083 if (PyErr_Occurred()) SWIG_fail;
9084 }
9085 Py_INCREF(Py_None); resultobj = Py_None;
9086 {
9087 if (temp2)
9088 delete arg2;
9089 }
9090 return resultobj;
9091 fail:
9092 {
9093 if (temp2)
9094 delete arg2;
9095 }
9096 return NULL;
9097 }
9098
9099
9100 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
9101 PyObject *resultobj;
9102 wxFont *arg1 = (wxFont *) 0 ;
9103 wxString *arg2 = 0 ;
9104 bool temp2 = False ;
9105 PyObject * obj0 = 0 ;
9106 PyObject * obj1 = 0 ;
9107 char *kwnames[] = {
9108 (char *) "self",(char *) "info", NULL
9109 };
9110
9111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
9112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9114 {
9115 arg2 = wxString_in_helper(obj1);
9116 if (arg2 == NULL) SWIG_fail;
9117 temp2 = True;
9118 }
9119 {
9120 PyThreadState* __tstate = wxPyBeginAllowThreads();
9121 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
9122
9123 wxPyEndAllowThreads(__tstate);
9124 if (PyErr_Occurred()) SWIG_fail;
9125 }
9126 Py_INCREF(Py_None); resultobj = Py_None;
9127 {
9128 if (temp2)
9129 delete arg2;
9130 }
9131 return resultobj;
9132 fail:
9133 {
9134 if (temp2)
9135 delete arg2;
9136 }
9137 return NULL;
9138 }
9139
9140
9141 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
9142 PyObject *resultobj;
9143 wxFont *arg1 = (wxFont *) 0 ;
9144 wxString result;
9145 PyObject * obj0 = 0 ;
9146 char *kwnames[] = {
9147 (char *) "self", NULL
9148 };
9149
9150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
9151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9153 {
9154 PyThreadState* __tstate = wxPyBeginAllowThreads();
9155 result = ((wxFont const *)arg1)->GetFamilyString();
9156
9157 wxPyEndAllowThreads(__tstate);
9158 if (PyErr_Occurred()) SWIG_fail;
9159 }
9160 {
9161 #if wxUSE_UNICODE
9162 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9163 #else
9164 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9165 #endif
9166 }
9167 return resultobj;
9168 fail:
9169 return NULL;
9170 }
9171
9172
9173 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
9174 PyObject *resultobj;
9175 wxFont *arg1 = (wxFont *) 0 ;
9176 wxString result;
9177 PyObject * obj0 = 0 ;
9178 char *kwnames[] = {
9179 (char *) "self", NULL
9180 };
9181
9182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
9183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9185 {
9186 PyThreadState* __tstate = wxPyBeginAllowThreads();
9187 result = ((wxFont const *)arg1)->GetStyleString();
9188
9189 wxPyEndAllowThreads(__tstate);
9190 if (PyErr_Occurred()) SWIG_fail;
9191 }
9192 {
9193 #if wxUSE_UNICODE
9194 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9195 #else
9196 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9197 #endif
9198 }
9199 return resultobj;
9200 fail:
9201 return NULL;
9202 }
9203
9204
9205 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
9206 PyObject *resultobj;
9207 wxFont *arg1 = (wxFont *) 0 ;
9208 wxString result;
9209 PyObject * obj0 = 0 ;
9210 char *kwnames[] = {
9211 (char *) "self", NULL
9212 };
9213
9214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
9215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9217 {
9218 PyThreadState* __tstate = wxPyBeginAllowThreads();
9219 result = ((wxFont const *)arg1)->GetWeightString();
9220
9221 wxPyEndAllowThreads(__tstate);
9222 if (PyErr_Occurred()) SWIG_fail;
9223 }
9224 {
9225 #if wxUSE_UNICODE
9226 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9227 #else
9228 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9229 #endif
9230 }
9231 return resultobj;
9232 fail:
9233 return NULL;
9234 }
9235
9236
9237 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
9238 PyObject *resultobj;
9239 wxFont *arg1 = (wxFont *) 0 ;
9240 bool arg2 = (bool) True ;
9241 PyObject * obj0 = 0 ;
9242 PyObject * obj1 = 0 ;
9243 char *kwnames[] = {
9244 (char *) "self",(char *) "no", NULL
9245 };
9246
9247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
9248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9250 if (obj1) {
9251 arg2 = (bool) SWIG_AsBool(obj1);
9252 if (PyErr_Occurred()) SWIG_fail;
9253 }
9254 {
9255 PyThreadState* __tstate = wxPyBeginAllowThreads();
9256 (arg1)->SetNoAntiAliasing(arg2);
9257
9258 wxPyEndAllowThreads(__tstate);
9259 if (PyErr_Occurred()) SWIG_fail;
9260 }
9261 Py_INCREF(Py_None); resultobj = Py_None;
9262 return resultobj;
9263 fail:
9264 return NULL;
9265 }
9266
9267
9268 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
9269 PyObject *resultobj;
9270 wxFont *arg1 = (wxFont *) 0 ;
9271 bool result;
9272 PyObject * obj0 = 0 ;
9273 char *kwnames[] = {
9274 (char *) "self", NULL
9275 };
9276
9277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
9278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9280 {
9281 PyThreadState* __tstate = wxPyBeginAllowThreads();
9282 result = (bool)(arg1)->GetNoAntiAliasing();
9283
9284 wxPyEndAllowThreads(__tstate);
9285 if (PyErr_Occurred()) SWIG_fail;
9286 }
9287 {
9288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9289 }
9290 return resultobj;
9291 fail:
9292 return NULL;
9293 }
9294
9295
9296 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9297 PyObject *resultobj;
9298 int result;
9299 char *kwnames[] = {
9300 NULL
9301 };
9302
9303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
9304 {
9305 PyThreadState* __tstate = wxPyBeginAllowThreads();
9306 result = (int)wxFont::GetDefaultEncoding();
9307
9308 wxPyEndAllowThreads(__tstate);
9309 if (PyErr_Occurred()) SWIG_fail;
9310 }
9311 resultobj = SWIG_FromInt((int)result);
9312 return resultobj;
9313 fail:
9314 return NULL;
9315 }
9316
9317
9318 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9319 PyObject *resultobj;
9320 int arg1 ;
9321 PyObject * obj0 = 0 ;
9322 char *kwnames[] = {
9323 (char *) "encoding", NULL
9324 };
9325
9326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
9327 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
9328 if (PyErr_Occurred()) SWIG_fail;
9329 {
9330 PyThreadState* __tstate = wxPyBeginAllowThreads();
9331 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
9332
9333 wxPyEndAllowThreads(__tstate);
9334 if (PyErr_Occurred()) SWIG_fail;
9335 }
9336 Py_INCREF(Py_None); resultobj = Py_None;
9337 return resultobj;
9338 fail:
9339 return NULL;
9340 }
9341
9342
9343 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
9344 PyObject *obj;
9345 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9346 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
9347 Py_INCREF(obj);
9348 return Py_BuildValue((char *)"");
9349 }
9350 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
9351 PyObject *resultobj;
9352 wxPyFontEnumerator *result;
9353 char *kwnames[] = {
9354 NULL
9355 };
9356
9357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
9358 {
9359 PyThreadState* __tstate = wxPyBeginAllowThreads();
9360 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
9361
9362 wxPyEndAllowThreads(__tstate);
9363 if (PyErr_Occurred()) SWIG_fail;
9364 }
9365 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
9366 return resultobj;
9367 fail:
9368 return NULL;
9369 }
9370
9371
9372 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
9373 PyObject *resultobj;
9374 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9375 PyObject * obj0 = 0 ;
9376 char *kwnames[] = {
9377 (char *) "self", NULL
9378 };
9379
9380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
9381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9383 {
9384 PyThreadState* __tstate = wxPyBeginAllowThreads();
9385 delete arg1;
9386
9387 wxPyEndAllowThreads(__tstate);
9388 if (PyErr_Occurred()) SWIG_fail;
9389 }
9390 Py_INCREF(Py_None); resultobj = Py_None;
9391 return resultobj;
9392 fail:
9393 return NULL;
9394 }
9395
9396
9397 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9398 PyObject *resultobj;
9399 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9400 PyObject *arg2 = (PyObject *) 0 ;
9401 PyObject *arg3 = (PyObject *) 0 ;
9402 bool arg4 ;
9403 PyObject * obj0 = 0 ;
9404 PyObject * obj1 = 0 ;
9405 PyObject * obj2 = 0 ;
9406 PyObject * obj3 = 0 ;
9407 char *kwnames[] = {
9408 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
9409 };
9410
9411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9414 arg2 = obj1;
9415 arg3 = obj2;
9416 arg4 = (bool) SWIG_AsBool(obj3);
9417 if (PyErr_Occurred()) SWIG_fail;
9418 {
9419 PyThreadState* __tstate = wxPyBeginAllowThreads();
9420 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
9421
9422 wxPyEndAllowThreads(__tstate);
9423 if (PyErr_Occurred()) SWIG_fail;
9424 }
9425 Py_INCREF(Py_None); resultobj = Py_None;
9426 return resultobj;
9427 fail:
9428 return NULL;
9429 }
9430
9431
9432 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
9433 PyObject *resultobj;
9434 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9435 int arg2 = (int) wxFONTENCODING_SYSTEM ;
9436 bool arg3 = (bool) False ;
9437 bool result;
9438 PyObject * obj0 = 0 ;
9439 PyObject * obj1 = 0 ;
9440 PyObject * obj2 = 0 ;
9441 char *kwnames[] = {
9442 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
9443 };
9444
9445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
9446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9448 if (obj1) {
9449 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
9450 if (PyErr_Occurred()) SWIG_fail;
9451 }
9452 if (obj2) {
9453 arg3 = (bool) SWIG_AsBool(obj2);
9454 if (PyErr_Occurred()) SWIG_fail;
9455 }
9456 {
9457 PyThreadState* __tstate = wxPyBeginAllowThreads();
9458 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
9459
9460 wxPyEndAllowThreads(__tstate);
9461 if (PyErr_Occurred()) SWIG_fail;
9462 }
9463 {
9464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9465 }
9466 return resultobj;
9467 fail:
9468 return NULL;
9469 }
9470
9471
9472 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
9473 PyObject *resultobj;
9474 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9475 wxString const &arg2_defvalue = wxPyEmptyString ;
9476 wxString *arg2 = (wxString *) &arg2_defvalue ;
9477 bool result;
9478 bool temp2 = False ;
9479 PyObject * obj0 = 0 ;
9480 PyObject * obj1 = 0 ;
9481 char *kwnames[] = {
9482 (char *) "self",(char *) "facename", NULL
9483 };
9484
9485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
9486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9488 if (obj1) {
9489 {
9490 arg2 = wxString_in_helper(obj1);
9491 if (arg2 == NULL) SWIG_fail;
9492 temp2 = True;
9493 }
9494 }
9495 {
9496 PyThreadState* __tstate = wxPyBeginAllowThreads();
9497 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
9498
9499 wxPyEndAllowThreads(__tstate);
9500 if (PyErr_Occurred()) SWIG_fail;
9501 }
9502 {
9503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9504 }
9505 {
9506 if (temp2)
9507 delete arg2;
9508 }
9509 return resultobj;
9510 fail:
9511 {
9512 if (temp2)
9513 delete arg2;
9514 }
9515 return NULL;
9516 }
9517
9518
9519 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
9520 PyObject *resultobj;
9521 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9522 PyObject *result;
9523 PyObject * obj0 = 0 ;
9524 char *kwnames[] = {
9525 (char *) "self", NULL
9526 };
9527
9528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
9529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9531 {
9532 PyThreadState* __tstate = wxPyBeginAllowThreads();
9533 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
9534
9535 wxPyEndAllowThreads(__tstate);
9536 if (PyErr_Occurred()) SWIG_fail;
9537 }
9538 resultobj = result;
9539 return resultobj;
9540 fail:
9541 return NULL;
9542 }
9543
9544
9545 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
9546 PyObject *resultobj;
9547 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9548 PyObject *result;
9549 PyObject * obj0 = 0 ;
9550 char *kwnames[] = {
9551 (char *) "self", NULL
9552 };
9553
9554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
9555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9557 {
9558 PyThreadState* __tstate = wxPyBeginAllowThreads();
9559 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
9560
9561 wxPyEndAllowThreads(__tstate);
9562 if (PyErr_Occurred()) SWIG_fail;
9563 }
9564 resultobj = result;
9565 return resultobj;
9566 fail:
9567 return NULL;
9568 }
9569
9570
9571 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
9572 PyObject *obj;
9573 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9574 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9575 Py_INCREF(obj);
9576 return Py_BuildValue((char *)"");
9577 }
9578 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9579 PyObject *resultobj;
9580 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9581 int arg2 ;
9582 PyObject * obj0 = 0 ;
9583 PyObject * obj1 = 0 ;
9584 char *kwnames[] = {
9585 (char *) "self",(char *) "Language", NULL
9586 };
9587
9588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
9589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9591 arg2 = (int) SWIG_AsInt(obj1);
9592 if (PyErr_Occurred()) SWIG_fail;
9593 if (arg1) (arg1)->Language = arg2;
9594
9595 Py_INCREF(Py_None); resultobj = Py_None;
9596 return resultobj;
9597 fail:
9598 return NULL;
9599 }
9600
9601
9602 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9603 PyObject *resultobj;
9604 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9605 int result;
9606 PyObject * obj0 = 0 ;
9607 char *kwnames[] = {
9608 (char *) "self", NULL
9609 };
9610
9611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
9612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9614 result = (int) ((arg1)->Language);
9615
9616 resultobj = SWIG_FromInt((int)result);
9617 return resultobj;
9618 fail:
9619 return NULL;
9620 }
9621
9622
9623 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9624 PyObject *resultobj;
9625 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9626 wxString *arg2 = (wxString *) 0 ;
9627 bool temp2 = False ;
9628 PyObject * obj0 = 0 ;
9629 PyObject * obj1 = 0 ;
9630 char *kwnames[] = {
9631 (char *) "self",(char *) "CanonicalName", NULL
9632 };
9633
9634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
9635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9637 {
9638 arg2 = wxString_in_helper(obj1);
9639 if (arg2 == NULL) SWIG_fail;
9640 temp2 = True;
9641 }
9642 if (arg1) (arg1)->CanonicalName = *arg2;
9643
9644 Py_INCREF(Py_None); resultobj = Py_None;
9645 {
9646 if (temp2)
9647 delete arg2;
9648 }
9649 return resultobj;
9650 fail:
9651 {
9652 if (temp2)
9653 delete arg2;
9654 }
9655 return NULL;
9656 }
9657
9658
9659 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9660 PyObject *resultobj;
9661 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9662 wxString *result;
9663 PyObject * obj0 = 0 ;
9664 char *kwnames[] = {
9665 (char *) "self", NULL
9666 };
9667
9668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9671 result = (wxString *)& ((arg1)->CanonicalName);
9672
9673 {
9674 #if wxUSE_UNICODE
9675 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9676 #else
9677 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9678 #endif
9679 }
9680 return resultobj;
9681 fail:
9682 return NULL;
9683 }
9684
9685
9686 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9687 PyObject *resultobj;
9688 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9689 wxString *arg2 = (wxString *) 0 ;
9690 bool temp2 = False ;
9691 PyObject * obj0 = 0 ;
9692 PyObject * obj1 = 0 ;
9693 char *kwnames[] = {
9694 (char *) "self",(char *) "Description", NULL
9695 };
9696
9697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9700 {
9701 arg2 = wxString_in_helper(obj1);
9702 if (arg2 == NULL) SWIG_fail;
9703 temp2 = True;
9704 }
9705 if (arg1) (arg1)->Description = *arg2;
9706
9707 Py_INCREF(Py_None); resultobj = Py_None;
9708 {
9709 if (temp2)
9710 delete arg2;
9711 }
9712 return resultobj;
9713 fail:
9714 {
9715 if (temp2)
9716 delete arg2;
9717 }
9718 return NULL;
9719 }
9720
9721
9722 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9723 PyObject *resultobj;
9724 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9725 wxString *result;
9726 PyObject * obj0 = 0 ;
9727 char *kwnames[] = {
9728 (char *) "self", NULL
9729 };
9730
9731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9734 result = (wxString *)& ((arg1)->Description);
9735
9736 {
9737 #if wxUSE_UNICODE
9738 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9739 #else
9740 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9741 #endif
9742 }
9743 return resultobj;
9744 fail:
9745 return NULL;
9746 }
9747
9748
9749 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9750 PyObject *obj;
9751 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9752 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9753 Py_INCREF(obj);
9754 return Py_BuildValue((char *)"");
9755 }
9756 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9757 PyObject *resultobj;
9758 int arg1 = (int) wxLANGUAGE_DEFAULT ;
9759 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9760 wxLocale *result;
9761 PyObject * obj0 = 0 ;
9762 PyObject * obj1 = 0 ;
9763 char *kwnames[] = {
9764 (char *) "language",(char *) "flags", NULL
9765 };
9766
9767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9768 if (obj0) {
9769 arg1 = (int) SWIG_AsInt(obj0);
9770 if (PyErr_Occurred()) SWIG_fail;
9771 }
9772 if (obj1) {
9773 arg2 = (int) SWIG_AsInt(obj1);
9774 if (PyErr_Occurred()) SWIG_fail;
9775 }
9776 {
9777 PyThreadState* __tstate = wxPyBeginAllowThreads();
9778 result = (wxLocale *)new wxLocale(arg1,arg2);
9779
9780 wxPyEndAllowThreads(__tstate);
9781 if (PyErr_Occurred()) SWIG_fail;
9782 }
9783 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9784 return resultobj;
9785 fail:
9786 return NULL;
9787 }
9788
9789
9790 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9791 PyObject *resultobj;
9792 wxLocale *arg1 = (wxLocale *) 0 ;
9793 PyObject * obj0 = 0 ;
9794 char *kwnames[] = {
9795 (char *) "self", NULL
9796 };
9797
9798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9801 {
9802 PyThreadState* __tstate = wxPyBeginAllowThreads();
9803 delete arg1;
9804
9805 wxPyEndAllowThreads(__tstate);
9806 if (PyErr_Occurred()) SWIG_fail;
9807 }
9808 Py_INCREF(Py_None); resultobj = Py_None;
9809 return resultobj;
9810 fail:
9811 return NULL;
9812 }
9813
9814
9815 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9816 PyObject *resultobj;
9817 wxLocale *arg1 = (wxLocale *) 0 ;
9818 wxString *arg2 = 0 ;
9819 wxString const &arg3_defvalue = wxPyEmptyString ;
9820 wxString *arg3 = (wxString *) &arg3_defvalue ;
9821 wxString const &arg4_defvalue = wxPyEmptyString ;
9822 wxString *arg4 = (wxString *) &arg4_defvalue ;
9823 bool arg5 = (bool) True ;
9824 bool arg6 = (bool) False ;
9825 bool result;
9826 bool temp2 = False ;
9827 bool temp3 = False ;
9828 bool temp4 = False ;
9829 PyObject * obj0 = 0 ;
9830 PyObject * obj1 = 0 ;
9831 PyObject * obj2 = 0 ;
9832 PyObject * obj3 = 0 ;
9833 PyObject * obj4 = 0 ;
9834 PyObject * obj5 = 0 ;
9835 char *kwnames[] = {
9836 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9837 };
9838
9839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9842 {
9843 arg2 = wxString_in_helper(obj1);
9844 if (arg2 == NULL) SWIG_fail;
9845 temp2 = True;
9846 }
9847 if (obj2) {
9848 {
9849 arg3 = wxString_in_helper(obj2);
9850 if (arg3 == NULL) SWIG_fail;
9851 temp3 = True;
9852 }
9853 }
9854 if (obj3) {
9855 {
9856 arg4 = wxString_in_helper(obj3);
9857 if (arg4 == NULL) SWIG_fail;
9858 temp4 = True;
9859 }
9860 }
9861 if (obj4) {
9862 arg5 = (bool) SWIG_AsBool(obj4);
9863 if (PyErr_Occurred()) SWIG_fail;
9864 }
9865 if (obj5) {
9866 arg6 = (bool) SWIG_AsBool(obj5);
9867 if (PyErr_Occurred()) SWIG_fail;
9868 }
9869 {
9870 PyThreadState* __tstate = wxPyBeginAllowThreads();
9871 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9872
9873 wxPyEndAllowThreads(__tstate);
9874 if (PyErr_Occurred()) SWIG_fail;
9875 }
9876 {
9877 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9878 }
9879 {
9880 if (temp2)
9881 delete arg2;
9882 }
9883 {
9884 if (temp3)
9885 delete arg3;
9886 }
9887 {
9888 if (temp4)
9889 delete arg4;
9890 }
9891 return resultobj;
9892 fail:
9893 {
9894 if (temp2)
9895 delete arg2;
9896 }
9897 {
9898 if (temp3)
9899 delete arg3;
9900 }
9901 {
9902 if (temp4)
9903 delete arg4;
9904 }
9905 return NULL;
9906 }
9907
9908
9909 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9910 PyObject *resultobj;
9911 wxLocale *arg1 = (wxLocale *) 0 ;
9912 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9913 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9914 bool result;
9915 PyObject * obj0 = 0 ;
9916 PyObject * obj1 = 0 ;
9917 PyObject * obj2 = 0 ;
9918 char *kwnames[] = {
9919 (char *) "self",(char *) "language",(char *) "flags", NULL
9920 };
9921
9922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9925 if (obj1) {
9926 arg2 = (int) SWIG_AsInt(obj1);
9927 if (PyErr_Occurred()) SWIG_fail;
9928 }
9929 if (obj2) {
9930 arg3 = (int) SWIG_AsInt(obj2);
9931 if (PyErr_Occurred()) SWIG_fail;
9932 }
9933 {
9934 PyThreadState* __tstate = wxPyBeginAllowThreads();
9935 result = (bool)(arg1)->Init(arg2,arg3);
9936
9937 wxPyEndAllowThreads(__tstate);
9938 if (PyErr_Occurred()) SWIG_fail;
9939 }
9940 {
9941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9942 }
9943 return resultobj;
9944 fail:
9945 return NULL;
9946 }
9947
9948
9949 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9950 PyObject *resultobj;
9951 int result;
9952 char *kwnames[] = {
9953 NULL
9954 };
9955
9956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9957 {
9958 PyThreadState* __tstate = wxPyBeginAllowThreads();
9959 result = (int)wxLocale::GetSystemLanguage();
9960
9961 wxPyEndAllowThreads(__tstate);
9962 if (PyErr_Occurred()) SWIG_fail;
9963 }
9964 resultobj = SWIG_FromInt((int)result);
9965 return resultobj;
9966 fail:
9967 return NULL;
9968 }
9969
9970
9971 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9972 PyObject *resultobj;
9973 int result;
9974 char *kwnames[] = {
9975 NULL
9976 };
9977
9978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9979 {
9980 PyThreadState* __tstate = wxPyBeginAllowThreads();
9981 result = (int)wxLocale::GetSystemEncoding();
9982
9983 wxPyEndAllowThreads(__tstate);
9984 if (PyErr_Occurred()) SWIG_fail;
9985 }
9986 resultobj = SWIG_FromInt((int)result);
9987 return resultobj;
9988 fail:
9989 return NULL;
9990 }
9991
9992
9993 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9994 PyObject *resultobj;
9995 wxString result;
9996 char *kwnames[] = {
9997 NULL
9998 };
9999
10000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
10001 {
10002 PyThreadState* __tstate = wxPyBeginAllowThreads();
10003 result = wxLocale::GetSystemEncodingName();
10004
10005 wxPyEndAllowThreads(__tstate);
10006 if (PyErr_Occurred()) SWIG_fail;
10007 }
10008 {
10009 #if wxUSE_UNICODE
10010 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10011 #else
10012 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10013 #endif
10014 }
10015 return resultobj;
10016 fail:
10017 return NULL;
10018 }
10019
10020
10021 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
10022 PyObject *resultobj;
10023 wxLocale *arg1 = (wxLocale *) 0 ;
10024 bool result;
10025 PyObject * obj0 = 0 ;
10026 char *kwnames[] = {
10027 (char *) "self", NULL
10028 };
10029
10030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
10031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10033 {
10034 PyThreadState* __tstate = wxPyBeginAllowThreads();
10035 result = (bool)((wxLocale const *)arg1)->IsOk();
10036
10037 wxPyEndAllowThreads(__tstate);
10038 if (PyErr_Occurred()) SWIG_fail;
10039 }
10040 {
10041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10042 }
10043 return resultobj;
10044 fail:
10045 return NULL;
10046 }
10047
10048
10049 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
10050 PyObject *resultobj;
10051 wxLocale *arg1 = (wxLocale *) 0 ;
10052 wxString result;
10053 PyObject * obj0 = 0 ;
10054 char *kwnames[] = {
10055 (char *) "self", NULL
10056 };
10057
10058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
10059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10061 {
10062 PyThreadState* __tstate = wxPyBeginAllowThreads();
10063 result = ((wxLocale const *)arg1)->GetLocale();
10064
10065 wxPyEndAllowThreads(__tstate);
10066 if (PyErr_Occurred()) SWIG_fail;
10067 }
10068 {
10069 #if wxUSE_UNICODE
10070 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10071 #else
10072 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10073 #endif
10074 }
10075 return resultobj;
10076 fail:
10077 return NULL;
10078 }
10079
10080
10081 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
10082 PyObject *resultobj;
10083 wxLocale *arg1 = (wxLocale *) 0 ;
10084 int result;
10085 PyObject * obj0 = 0 ;
10086 char *kwnames[] = {
10087 (char *) "self", NULL
10088 };
10089
10090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
10091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10093 {
10094 PyThreadState* __tstate = wxPyBeginAllowThreads();
10095 result = (int)((wxLocale const *)arg1)->GetLanguage();
10096
10097 wxPyEndAllowThreads(__tstate);
10098 if (PyErr_Occurred()) SWIG_fail;
10099 }
10100 resultobj = SWIG_FromInt((int)result);
10101 return resultobj;
10102 fail:
10103 return NULL;
10104 }
10105
10106
10107 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
10108 PyObject *resultobj;
10109 wxLocale *arg1 = (wxLocale *) 0 ;
10110 wxString result;
10111 PyObject * obj0 = 0 ;
10112 char *kwnames[] = {
10113 (char *) "self", NULL
10114 };
10115
10116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",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 = ((wxLocale const *)arg1)->GetSysName();
10122
10123 wxPyEndAllowThreads(__tstate);
10124 if (PyErr_Occurred()) SWIG_fail;
10125 }
10126 {
10127 #if wxUSE_UNICODE
10128 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10129 #else
10130 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10131 #endif
10132 }
10133 return resultobj;
10134 fail:
10135 return NULL;
10136 }
10137
10138
10139 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
10140 PyObject *resultobj;
10141 wxLocale *arg1 = (wxLocale *) 0 ;
10142 wxString result;
10143 PyObject * obj0 = 0 ;
10144 char *kwnames[] = {
10145 (char *) "self", NULL
10146 };
10147
10148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
10149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10151 {
10152 PyThreadState* __tstate = wxPyBeginAllowThreads();
10153 result = ((wxLocale const *)arg1)->GetCanonicalName();
10154
10155 wxPyEndAllowThreads(__tstate);
10156 if (PyErr_Occurred()) SWIG_fail;
10157 }
10158 {
10159 #if wxUSE_UNICODE
10160 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10161 #else
10162 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10163 #endif
10164 }
10165 return resultobj;
10166 fail:
10167 return NULL;
10168 }
10169
10170
10171 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
10172 PyObject *resultobj;
10173 wxString *arg1 = 0 ;
10174 bool temp1 = False ;
10175 PyObject * obj0 = 0 ;
10176 char *kwnames[] = {
10177 (char *) "prefix", NULL
10178 };
10179
10180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
10181 {
10182 arg1 = wxString_in_helper(obj0);
10183 if (arg1 == NULL) SWIG_fail;
10184 temp1 = True;
10185 }
10186 {
10187 PyThreadState* __tstate = wxPyBeginAllowThreads();
10188 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
10189
10190 wxPyEndAllowThreads(__tstate);
10191 if (PyErr_Occurred()) SWIG_fail;
10192 }
10193 Py_INCREF(Py_None); resultobj = Py_None;
10194 {
10195 if (temp1)
10196 delete arg1;
10197 }
10198 return resultobj;
10199 fail:
10200 {
10201 if (temp1)
10202 delete arg1;
10203 }
10204 return NULL;
10205 }
10206
10207
10208 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
10209 PyObject *resultobj;
10210 wxLocale *arg1 = (wxLocale *) 0 ;
10211 wxString *arg2 = 0 ;
10212 bool result;
10213 bool temp2 = False ;
10214 PyObject * obj0 = 0 ;
10215 PyObject * obj1 = 0 ;
10216 char *kwnames[] = {
10217 (char *) "self",(char *) "szDomain", NULL
10218 };
10219
10220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
10221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10223 {
10224 arg2 = wxString_in_helper(obj1);
10225 if (arg2 == NULL) SWIG_fail;
10226 temp2 = True;
10227 }
10228 {
10229 PyThreadState* __tstate = wxPyBeginAllowThreads();
10230 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
10231
10232 wxPyEndAllowThreads(__tstate);
10233 if (PyErr_Occurred()) SWIG_fail;
10234 }
10235 {
10236 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10237 }
10238 {
10239 if (temp2)
10240 delete arg2;
10241 }
10242 return resultobj;
10243 fail:
10244 {
10245 if (temp2)
10246 delete arg2;
10247 }
10248 return NULL;
10249 }
10250
10251
10252 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
10253 PyObject *resultobj;
10254 wxLocale *arg1 = (wxLocale *) 0 ;
10255 wxString *arg2 = 0 ;
10256 bool result;
10257 bool temp2 = False ;
10258 PyObject * obj0 = 0 ;
10259 PyObject * obj1 = 0 ;
10260 char *kwnames[] = {
10261 (char *) "self",(char *) "szDomain", NULL
10262 };
10263
10264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
10265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10267 {
10268 arg2 = wxString_in_helper(obj1);
10269 if (arg2 == NULL) SWIG_fail;
10270 temp2 = True;
10271 }
10272 {
10273 PyThreadState* __tstate = wxPyBeginAllowThreads();
10274 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
10275
10276 wxPyEndAllowThreads(__tstate);
10277 if (PyErr_Occurred()) SWIG_fail;
10278 }
10279 {
10280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10281 }
10282 {
10283 if (temp2)
10284 delete arg2;
10285 }
10286 return resultobj;
10287 fail:
10288 {
10289 if (temp2)
10290 delete arg2;
10291 }
10292 return NULL;
10293 }
10294
10295
10296 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
10297 PyObject *resultobj;
10298 int arg1 ;
10299 wxLanguageInfo *result;
10300 PyObject * obj0 = 0 ;
10301 char *kwnames[] = {
10302 (char *) "lang", NULL
10303 };
10304
10305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
10306 arg1 = (int) SWIG_AsInt(obj0);
10307 if (PyErr_Occurred()) SWIG_fail;
10308 {
10309 PyThreadState* __tstate = wxPyBeginAllowThreads();
10310 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
10311
10312 wxPyEndAllowThreads(__tstate);
10313 if (PyErr_Occurred()) SWIG_fail;
10314 }
10315 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10316 return resultobj;
10317 fail:
10318 return NULL;
10319 }
10320
10321
10322 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
10323 PyObject *resultobj;
10324 int arg1 ;
10325 wxString result;
10326 PyObject * obj0 = 0 ;
10327 char *kwnames[] = {
10328 (char *) "lang", NULL
10329 };
10330
10331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
10332 arg1 = (int) SWIG_AsInt(obj0);
10333 if (PyErr_Occurred()) SWIG_fail;
10334 {
10335 PyThreadState* __tstate = wxPyBeginAllowThreads();
10336 result = wxLocale::GetLanguageName(arg1);
10337
10338 wxPyEndAllowThreads(__tstate);
10339 if (PyErr_Occurred()) SWIG_fail;
10340 }
10341 {
10342 #if wxUSE_UNICODE
10343 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10344 #else
10345 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10346 #endif
10347 }
10348 return resultobj;
10349 fail:
10350 return NULL;
10351 }
10352
10353
10354 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
10355 PyObject *resultobj;
10356 wxString *arg1 = 0 ;
10357 wxLanguageInfo *result;
10358 bool temp1 = False ;
10359 PyObject * obj0 = 0 ;
10360 char *kwnames[] = {
10361 (char *) "locale", NULL
10362 };
10363
10364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
10365 {
10366 arg1 = wxString_in_helper(obj0);
10367 if (arg1 == NULL) SWIG_fail;
10368 temp1 = True;
10369 }
10370 {
10371 PyThreadState* __tstate = wxPyBeginAllowThreads();
10372 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
10373
10374 wxPyEndAllowThreads(__tstate);
10375 if (PyErr_Occurred()) SWIG_fail;
10376 }
10377 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10378 {
10379 if (temp1)
10380 delete arg1;
10381 }
10382 return resultobj;
10383 fail:
10384 {
10385 if (temp1)
10386 delete arg1;
10387 }
10388 return NULL;
10389 }
10390
10391
10392 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
10393 PyObject *resultobj;
10394 wxLanguageInfo *arg1 = 0 ;
10395 PyObject * obj0 = 0 ;
10396 char *kwnames[] = {
10397 (char *) "info", NULL
10398 };
10399
10400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
10401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
10402 SWIG_POINTER_EXCEPTION | 0)) == -1)
10403 SWIG_fail;
10404 if (arg1 == NULL) {
10405 PyErr_SetString(PyExc_TypeError,"null reference");
10406 SWIG_fail;
10407 }
10408 {
10409 PyThreadState* __tstate = wxPyBeginAllowThreads();
10410 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
10411
10412 wxPyEndAllowThreads(__tstate);
10413 if (PyErr_Occurred()) SWIG_fail;
10414 }
10415 Py_INCREF(Py_None); resultobj = Py_None;
10416 return resultobj;
10417 fail:
10418 return NULL;
10419 }
10420
10421
10422 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
10423 PyObject *resultobj;
10424 wxLocale *arg1 = (wxLocale *) 0 ;
10425 wxString *arg2 = 0 ;
10426 wxString const &arg3_defvalue = wxPyEmptyString ;
10427 wxString *arg3 = (wxString *) &arg3_defvalue ;
10428 wxString result;
10429 bool temp2 = False ;
10430 bool temp3 = False ;
10431 PyObject * obj0 = 0 ;
10432 PyObject * obj1 = 0 ;
10433 PyObject * obj2 = 0 ;
10434 char *kwnames[] = {
10435 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
10436 };
10437
10438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
10439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10441 {
10442 arg2 = wxString_in_helper(obj1);
10443 if (arg2 == NULL) SWIG_fail;
10444 temp2 = True;
10445 }
10446 if (obj2) {
10447 {
10448 arg3 = wxString_in_helper(obj2);
10449 if (arg3 == NULL) SWIG_fail;
10450 temp3 = True;
10451 }
10452 }
10453 {
10454 PyThreadState* __tstate = wxPyBeginAllowThreads();
10455 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
10456
10457 wxPyEndAllowThreads(__tstate);
10458 if (PyErr_Occurred()) SWIG_fail;
10459 }
10460 {
10461 #if wxUSE_UNICODE
10462 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10463 #else
10464 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10465 #endif
10466 }
10467 {
10468 if (temp2)
10469 delete arg2;
10470 }
10471 {
10472 if (temp3)
10473 delete arg3;
10474 }
10475 return resultobj;
10476 fail:
10477 {
10478 if (temp2)
10479 delete arg2;
10480 }
10481 {
10482 if (temp3)
10483 delete arg3;
10484 }
10485 return NULL;
10486 }
10487
10488
10489 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
10490 PyObject *resultobj;
10491 wxLocale *arg1 = (wxLocale *) 0 ;
10492 wxString *result;
10493 PyObject * obj0 = 0 ;
10494 char *kwnames[] = {
10495 (char *) "self", NULL
10496 };
10497
10498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
10499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10501 {
10502 PyThreadState* __tstate = wxPyBeginAllowThreads();
10503 {
10504 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
10505 result = (wxString *) &_result_ref;
10506 }
10507
10508 wxPyEndAllowThreads(__tstate);
10509 if (PyErr_Occurred()) SWIG_fail;
10510 }
10511 {
10512 #if wxUSE_UNICODE
10513 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10514 #else
10515 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10516 #endif
10517 }
10518 return resultobj;
10519 fail:
10520 return NULL;
10521 }
10522
10523
10524 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
10525 PyObject *obj;
10526 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10527 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
10528 Py_INCREF(obj);
10529 return Py_BuildValue((char *)"");
10530 }
10531 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
10532 PyObject *resultobj;
10533 wxLocale *result;
10534 char *kwnames[] = {
10535 NULL
10536 };
10537
10538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
10539 {
10540 PyThreadState* __tstate = wxPyBeginAllowThreads();
10541 result = (wxLocale *)wxGetLocale();
10542
10543 wxPyEndAllowThreads(__tstate);
10544 if (PyErr_Occurred()) SWIG_fail;
10545 }
10546 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
10547 return resultobj;
10548 fail:
10549 return NULL;
10550 }
10551
10552
10553 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
10554 PyObject *resultobj;
10555 wxString *arg1 = 0 ;
10556 wxString result;
10557 bool temp1 = False ;
10558 PyObject * obj0 = 0 ;
10559
10560 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
10561 {
10562 arg1 = wxString_in_helper(obj0);
10563 if (arg1 == NULL) SWIG_fail;
10564 temp1 = True;
10565 }
10566 {
10567 PyThreadState* __tstate = wxPyBeginAllowThreads();
10568 result = wxGetTranslation((wxString const &)*arg1);
10569
10570 wxPyEndAllowThreads(__tstate);
10571 if (PyErr_Occurred()) SWIG_fail;
10572 }
10573 {
10574 #if wxUSE_UNICODE
10575 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10576 #else
10577 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10578 #endif
10579 }
10580 {
10581 if (temp1)
10582 delete arg1;
10583 }
10584 return resultobj;
10585 fail:
10586 {
10587 if (temp1)
10588 delete arg1;
10589 }
10590 return NULL;
10591 }
10592
10593
10594 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
10595 PyObject *resultobj;
10596 wxString *arg1 = 0 ;
10597 wxString *arg2 = 0 ;
10598 size_t arg3 ;
10599 wxString result;
10600 bool temp1 = False ;
10601 bool temp2 = False ;
10602 PyObject * obj0 = 0 ;
10603 PyObject * obj1 = 0 ;
10604 PyObject * obj2 = 0 ;
10605
10606 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10607 {
10608 arg1 = wxString_in_helper(obj0);
10609 if (arg1 == NULL) SWIG_fail;
10610 temp1 = True;
10611 }
10612 {
10613 arg2 = wxString_in_helper(obj1);
10614 if (arg2 == NULL) SWIG_fail;
10615 temp2 = True;
10616 }
10617 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
10618 if (PyErr_Occurred()) SWIG_fail;
10619 {
10620 PyThreadState* __tstate = wxPyBeginAllowThreads();
10621 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10622
10623 wxPyEndAllowThreads(__tstate);
10624 if (PyErr_Occurred()) SWIG_fail;
10625 }
10626 {
10627 #if wxUSE_UNICODE
10628 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10629 #else
10630 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10631 #endif
10632 }
10633 {
10634 if (temp1)
10635 delete arg1;
10636 }
10637 {
10638 if (temp2)
10639 delete arg2;
10640 }
10641 return resultobj;
10642 fail:
10643 {
10644 if (temp1)
10645 delete arg1;
10646 }
10647 {
10648 if (temp2)
10649 delete arg2;
10650 }
10651 return NULL;
10652 }
10653
10654
10655 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10656 int argc;
10657 PyObject *argv[4];
10658 int ii;
10659
10660 argc = PyObject_Length(args);
10661 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10662 argv[ii] = PyTuple_GetItem(args,ii);
10663 }
10664 if (argc == 1) {
10665 int _v;
10666 {
10667 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10668 }
10669 if (_v) {
10670 return _wrap_GetTranslation__SWIG_0(self,args);
10671 }
10672 }
10673 if (argc == 3) {
10674 int _v;
10675 {
10676 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10677 }
10678 if (_v) {
10679 {
10680 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10681 }
10682 if (_v) {
10683 _v = SWIG_CheckUnsignedLong(argv[2]);
10684 if (_v) {
10685 return _wrap_GetTranslation__SWIG_1(self,args);
10686 }
10687 }
10688 }
10689 }
10690
10691 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10692 return NULL;
10693 }
10694
10695
10696 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10697 PyObject *resultobj;
10698 wxEncodingConverter *result;
10699 char *kwnames[] = {
10700 NULL
10701 };
10702
10703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10704 {
10705 PyThreadState* __tstate = wxPyBeginAllowThreads();
10706 result = (wxEncodingConverter *)new wxEncodingConverter();
10707
10708 wxPyEndAllowThreads(__tstate);
10709 if (PyErr_Occurred()) SWIG_fail;
10710 }
10711 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10712 return resultobj;
10713 fail:
10714 return NULL;
10715 }
10716
10717
10718 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10719 PyObject *resultobj;
10720 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10721 PyObject * obj0 = 0 ;
10722 char *kwnames[] = {
10723 (char *) "self", NULL
10724 };
10725
10726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10729 {
10730 PyThreadState* __tstate = wxPyBeginAllowThreads();
10731 delete arg1;
10732
10733 wxPyEndAllowThreads(__tstate);
10734 if (PyErr_Occurred()) SWIG_fail;
10735 }
10736 Py_INCREF(Py_None); resultobj = Py_None;
10737 return resultobj;
10738 fail:
10739 return NULL;
10740 }
10741
10742
10743 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10744 PyObject *resultobj;
10745 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10746 int arg2 ;
10747 int arg3 ;
10748 int arg4 = (int) wxCONVERT_STRICT ;
10749 bool result;
10750 PyObject * obj0 = 0 ;
10751 PyObject * obj1 = 0 ;
10752 PyObject * obj2 = 0 ;
10753 PyObject * obj3 = 0 ;
10754 char *kwnames[] = {
10755 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10756 };
10757
10758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10761 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10762 if (PyErr_Occurred()) SWIG_fail;
10763 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10764 if (PyErr_Occurred()) SWIG_fail;
10765 if (obj3) {
10766 arg4 = (int) SWIG_AsInt(obj3);
10767 if (PyErr_Occurred()) SWIG_fail;
10768 }
10769 {
10770 PyThreadState* __tstate = wxPyBeginAllowThreads();
10771 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10772
10773 wxPyEndAllowThreads(__tstate);
10774 if (PyErr_Occurred()) SWIG_fail;
10775 }
10776 {
10777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10778 }
10779 return resultobj;
10780 fail:
10781 return NULL;
10782 }
10783
10784
10785 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10786 PyObject *resultobj;
10787 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10788 wxString *arg2 = 0 ;
10789 wxString result;
10790 bool temp2 = False ;
10791 PyObject * obj0 = 0 ;
10792 PyObject * obj1 = 0 ;
10793 char *kwnames[] = {
10794 (char *) "self",(char *) "input", NULL
10795 };
10796
10797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10800 {
10801 arg2 = wxString_in_helper(obj1);
10802 if (arg2 == NULL) SWIG_fail;
10803 temp2 = True;
10804 }
10805 {
10806 PyThreadState* __tstate = wxPyBeginAllowThreads();
10807 result = (arg1)->Convert((wxString const &)*arg2);
10808
10809 wxPyEndAllowThreads(__tstate);
10810 if (PyErr_Occurred()) SWIG_fail;
10811 }
10812 {
10813 #if wxUSE_UNICODE
10814 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10815 #else
10816 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10817 #endif
10818 }
10819 {
10820 if (temp2)
10821 delete arg2;
10822 }
10823 return resultobj;
10824 fail:
10825 {
10826 if (temp2)
10827 delete arg2;
10828 }
10829 return NULL;
10830 }
10831
10832
10833 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10834 PyObject *resultobj;
10835 int arg1 ;
10836 int arg2 = (int) wxPLATFORM_CURRENT ;
10837 wxFontEncodingArray result;
10838 PyObject * obj0 = 0 ;
10839 PyObject * obj1 = 0 ;
10840 char *kwnames[] = {
10841 (char *) "enc",(char *) "platform", NULL
10842 };
10843
10844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10845 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10846 if (PyErr_Occurred()) SWIG_fail;
10847 if (obj1) {
10848 arg2 = (int) SWIG_AsInt(obj1);
10849 if (PyErr_Occurred()) SWIG_fail;
10850 }
10851 {
10852 PyThreadState* __tstate = wxPyBeginAllowThreads();
10853 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10854
10855 wxPyEndAllowThreads(__tstate);
10856 if (PyErr_Occurred()) SWIG_fail;
10857 }
10858 {
10859 resultobj = PyList_New(0);
10860 for (size_t i=0; i < (&result)->GetCount(); i++) {
10861 PyObject* number = PyInt_FromLong((&result)->Item(i));
10862 PyList_Append(resultobj, number);
10863 Py_DECREF(number);
10864 }
10865 }
10866 return resultobj;
10867 fail:
10868 return NULL;
10869 }
10870
10871
10872 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10873 PyObject *resultobj;
10874 int arg1 ;
10875 wxFontEncodingArray result;
10876 PyObject * obj0 = 0 ;
10877 char *kwnames[] = {
10878 (char *) "enc", NULL
10879 };
10880
10881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10882 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10883 if (PyErr_Occurred()) SWIG_fail;
10884 {
10885 PyThreadState* __tstate = wxPyBeginAllowThreads();
10886 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10887
10888 wxPyEndAllowThreads(__tstate);
10889 if (PyErr_Occurred()) SWIG_fail;
10890 }
10891 {
10892 resultobj = PyList_New(0);
10893 for (size_t i=0; i < (&result)->GetCount(); i++) {
10894 PyObject* number = PyInt_FromLong((&result)->Item(i));
10895 PyList_Append(resultobj, number);
10896 Py_DECREF(number);
10897 }
10898 }
10899 return resultobj;
10900 fail:
10901 return NULL;
10902 }
10903
10904
10905 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10906 PyObject *resultobj;
10907 int arg1 ;
10908 int arg2 ;
10909 bool result;
10910 PyObject * obj0 = 0 ;
10911 PyObject * obj1 = 0 ;
10912 char *kwnames[] = {
10913 (char *) "encIn",(char *) "encOut", NULL
10914 };
10915
10916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10917 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10918 if (PyErr_Occurred()) SWIG_fail;
10919 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10920 if (PyErr_Occurred()) SWIG_fail;
10921 {
10922 PyThreadState* __tstate = wxPyBeginAllowThreads();
10923 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10924
10925 wxPyEndAllowThreads(__tstate);
10926 if (PyErr_Occurred()) SWIG_fail;
10927 }
10928 {
10929 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10930 }
10931 return resultobj;
10932 fail:
10933 return NULL;
10934 }
10935
10936
10937 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10938 PyObject *obj;
10939 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10940 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10941 Py_INCREF(obj);
10942 return Py_BuildValue((char *)"");
10943 }
10944 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10945 PyObject *resultobj;
10946 wxDC *arg1 = (wxDC *) 0 ;
10947 PyObject * obj0 = 0 ;
10948 char *kwnames[] = {
10949 (char *) "self", NULL
10950 };
10951
10952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10955 {
10956 PyThreadState* __tstate = wxPyBeginAllowThreads();
10957 delete arg1;
10958
10959 wxPyEndAllowThreads(__tstate);
10960 if (PyErr_Occurred()) SWIG_fail;
10961 }
10962 Py_INCREF(Py_None); resultobj = Py_None;
10963 return resultobj;
10964 fail:
10965 return NULL;
10966 }
10967
10968
10969 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10970 PyObject *resultobj;
10971 wxDC *arg1 = (wxDC *) 0 ;
10972 PyObject * obj0 = 0 ;
10973 char *kwnames[] = {
10974 (char *) "self", NULL
10975 };
10976
10977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10980 {
10981 PyThreadState* __tstate = wxPyBeginAllowThreads();
10982 (arg1)->BeginDrawing();
10983
10984 wxPyEndAllowThreads(__tstate);
10985 if (PyErr_Occurred()) SWIG_fail;
10986 }
10987 Py_INCREF(Py_None); resultobj = Py_None;
10988 return resultobj;
10989 fail:
10990 return NULL;
10991 }
10992
10993
10994 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10995 PyObject *resultobj;
10996 wxDC *arg1 = (wxDC *) 0 ;
10997 PyObject * obj0 = 0 ;
10998 char *kwnames[] = {
10999 (char *) "self", NULL
11000 };
11001
11002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
11003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11005 {
11006 PyThreadState* __tstate = wxPyBeginAllowThreads();
11007 (arg1)->EndDrawing();
11008
11009 wxPyEndAllowThreads(__tstate);
11010 if (PyErr_Occurred()) SWIG_fail;
11011 }
11012 Py_INCREF(Py_None); resultobj = Py_None;
11013 return resultobj;
11014 fail:
11015 return NULL;
11016 }
11017
11018
11019 static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11020 PyObject *resultobj;
11021 wxDC *arg1 = (wxDC *) 0 ;
11022 int arg2 ;
11023 int arg3 ;
11024 wxColour *arg4 = 0 ;
11025 int arg5 = (int) wxFLOOD_SURFACE ;
11026 bool result;
11027 wxColour temp4 ;
11028 PyObject * obj0 = 0 ;
11029 PyObject * obj1 = 0 ;
11030 PyObject * obj2 = 0 ;
11031 PyObject * obj3 = 0 ;
11032 PyObject * obj4 = 0 ;
11033 char *kwnames[] = {
11034 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
11035 };
11036
11037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11040 arg2 = (int) SWIG_AsInt(obj1);
11041 if (PyErr_Occurred()) SWIG_fail;
11042 arg3 = (int) SWIG_AsInt(obj2);
11043 if (PyErr_Occurred()) SWIG_fail;
11044 {
11045 arg4 = &temp4;
11046 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
11047 }
11048 if (obj4) {
11049 arg5 = (int) SWIG_AsInt(obj4);
11050 if (PyErr_Occurred()) SWIG_fail;
11051 }
11052 {
11053 PyThreadState* __tstate = wxPyBeginAllowThreads();
11054 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
11055
11056 wxPyEndAllowThreads(__tstate);
11057 if (PyErr_Occurred()) SWIG_fail;
11058 }
11059 {
11060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11061 }
11062 return resultobj;
11063 fail:
11064 return NULL;
11065 }
11066
11067
11068 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
11069 PyObject *resultobj;
11070 wxDC *arg1 = (wxDC *) 0 ;
11071 wxPoint *arg2 = 0 ;
11072 wxColour *arg3 = 0 ;
11073 int arg4 = (int) wxFLOOD_SURFACE ;
11074 bool result;
11075 wxPoint temp2 ;
11076 wxColour temp3 ;
11077 PyObject * obj0 = 0 ;
11078 PyObject * obj1 = 0 ;
11079 PyObject * obj2 = 0 ;
11080 PyObject * obj3 = 0 ;
11081 char *kwnames[] = {
11082 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
11083 };
11084
11085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11088 {
11089 arg2 = &temp2;
11090 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11091 }
11092 {
11093 arg3 = &temp3;
11094 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11095 }
11096 if (obj3) {
11097 arg4 = (int) SWIG_AsInt(obj3);
11098 if (PyErr_Occurred()) SWIG_fail;
11099 }
11100 {
11101 PyThreadState* __tstate = wxPyBeginAllowThreads();
11102 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
11103
11104 wxPyEndAllowThreads(__tstate);
11105 if (PyErr_Occurred()) SWIG_fail;
11106 }
11107 {
11108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11109 }
11110 return resultobj;
11111 fail:
11112 return NULL;
11113 }
11114
11115
11116 static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11117 PyObject *resultobj;
11118 wxDC *arg1 = (wxDC *) 0 ;
11119 int arg2 ;
11120 int arg3 ;
11121 wxColour result;
11122 PyObject * obj0 = 0 ;
11123 PyObject * obj1 = 0 ;
11124 PyObject * obj2 = 0 ;
11125 char *kwnames[] = {
11126 (char *) "self",(char *) "x",(char *) "y", NULL
11127 };
11128
11129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
11130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11132 arg2 = (int) SWIG_AsInt(obj1);
11133 if (PyErr_Occurred()) SWIG_fail;
11134 arg3 = (int) SWIG_AsInt(obj2);
11135 if (PyErr_Occurred()) SWIG_fail;
11136 {
11137 PyThreadState* __tstate = wxPyBeginAllowThreads();
11138 result = wxDC_GetPixelXY(arg1,arg2,arg3);
11139
11140 wxPyEndAllowThreads(__tstate);
11141 if (PyErr_Occurred()) SWIG_fail;
11142 }
11143 {
11144 wxColour * resultptr;
11145 resultptr = new wxColour((wxColour &) result);
11146 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11147 }
11148 return resultobj;
11149 fail:
11150 return NULL;
11151 }
11152
11153
11154 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
11155 PyObject *resultobj;
11156 wxDC *arg1 = (wxDC *) 0 ;
11157 wxPoint *arg2 = 0 ;
11158 wxColour result;
11159 wxPoint temp2 ;
11160 PyObject * obj0 = 0 ;
11161 PyObject * obj1 = 0 ;
11162 char *kwnames[] = {
11163 (char *) "self",(char *) "pt", NULL
11164 };
11165
11166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
11167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11169 {
11170 arg2 = &temp2;
11171 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11172 }
11173 {
11174 PyThreadState* __tstate = wxPyBeginAllowThreads();
11175 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
11176
11177 wxPyEndAllowThreads(__tstate);
11178 if (PyErr_Occurred()) SWIG_fail;
11179 }
11180 {
11181 wxColour * resultptr;
11182 resultptr = new wxColour((wxColour &) result);
11183 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11184 }
11185 return resultobj;
11186 fail:
11187 return NULL;
11188 }
11189
11190
11191 static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11192 PyObject *resultobj;
11193 wxDC *arg1 = (wxDC *) 0 ;
11194 int arg2 ;
11195 int arg3 ;
11196 int arg4 ;
11197 int arg5 ;
11198 PyObject * obj0 = 0 ;
11199 PyObject * obj1 = 0 ;
11200 PyObject * obj2 = 0 ;
11201 PyObject * obj3 = 0 ;
11202 PyObject * obj4 = 0 ;
11203 char *kwnames[] = {
11204 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
11205 };
11206
11207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11210 arg2 = (int) SWIG_AsInt(obj1);
11211 if (PyErr_Occurred()) SWIG_fail;
11212 arg3 = (int) SWIG_AsInt(obj2);
11213 if (PyErr_Occurred()) SWIG_fail;
11214 arg4 = (int) SWIG_AsInt(obj3);
11215 if (PyErr_Occurred()) SWIG_fail;
11216 arg5 = (int) SWIG_AsInt(obj4);
11217 if (PyErr_Occurred()) SWIG_fail;
11218 {
11219 PyThreadState* __tstate = wxPyBeginAllowThreads();
11220 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
11221
11222 wxPyEndAllowThreads(__tstate);
11223 if (PyErr_Occurred()) SWIG_fail;
11224 }
11225 Py_INCREF(Py_None); resultobj = Py_None;
11226 return resultobj;
11227 fail:
11228 return NULL;
11229 }
11230
11231
11232 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
11233 PyObject *resultobj;
11234 wxDC *arg1 = (wxDC *) 0 ;
11235 wxPoint *arg2 = 0 ;
11236 wxPoint *arg3 = 0 ;
11237 wxPoint temp2 ;
11238 wxPoint temp3 ;
11239 PyObject * obj0 = 0 ;
11240 PyObject * obj1 = 0 ;
11241 PyObject * obj2 = 0 ;
11242 char *kwnames[] = {
11243 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
11244 };
11245
11246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
11247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11249 {
11250 arg2 = &temp2;
11251 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11252 }
11253 {
11254 arg3 = &temp3;
11255 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11256 }
11257 {
11258 PyThreadState* __tstate = wxPyBeginAllowThreads();
11259 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
11260
11261 wxPyEndAllowThreads(__tstate);
11262 if (PyErr_Occurred()) SWIG_fail;
11263 }
11264 Py_INCREF(Py_None); resultobj = Py_None;
11265 return resultobj;
11266 fail:
11267 return NULL;
11268 }
11269
11270
11271 static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11272 PyObject *resultobj;
11273 wxDC *arg1 = (wxDC *) 0 ;
11274 int arg2 ;
11275 int arg3 ;
11276 PyObject * obj0 = 0 ;
11277 PyObject * obj1 = 0 ;
11278 PyObject * obj2 = 0 ;
11279 char *kwnames[] = {
11280 (char *) "self",(char *) "x",(char *) "y", NULL
11281 };
11282
11283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
11284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11286 arg2 = (int) SWIG_AsInt(obj1);
11287 if (PyErr_Occurred()) SWIG_fail;
11288 arg3 = (int) SWIG_AsInt(obj2);
11289 if (PyErr_Occurred()) SWIG_fail;
11290 {
11291 PyThreadState* __tstate = wxPyBeginAllowThreads();
11292 (arg1)->CrossHair(arg2,arg3);
11293
11294 wxPyEndAllowThreads(__tstate);
11295 if (PyErr_Occurred()) SWIG_fail;
11296 }
11297 Py_INCREF(Py_None); resultobj = Py_None;
11298 return resultobj;
11299 fail:
11300 return NULL;
11301 }
11302
11303
11304 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
11305 PyObject *resultobj;
11306 wxDC *arg1 = (wxDC *) 0 ;
11307 wxPoint *arg2 = 0 ;
11308 wxPoint temp2 ;
11309 PyObject * obj0 = 0 ;
11310 PyObject * obj1 = 0 ;
11311 char *kwnames[] = {
11312 (char *) "self",(char *) "pt", NULL
11313 };
11314
11315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
11316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11318 {
11319 arg2 = &temp2;
11320 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11321 }
11322 {
11323 PyThreadState* __tstate = wxPyBeginAllowThreads();
11324 (arg1)->CrossHair((wxPoint const &)*arg2);
11325
11326 wxPyEndAllowThreads(__tstate);
11327 if (PyErr_Occurred()) SWIG_fail;
11328 }
11329 Py_INCREF(Py_None); resultobj = Py_None;
11330 return resultobj;
11331 fail:
11332 return NULL;
11333 }
11334
11335
11336 static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11337 PyObject *resultobj;
11338 wxDC *arg1 = (wxDC *) 0 ;
11339 int arg2 ;
11340 int arg3 ;
11341 int arg4 ;
11342 int arg5 ;
11343 int arg6 ;
11344 int arg7 ;
11345 PyObject * obj0 = 0 ;
11346 PyObject * obj1 = 0 ;
11347 PyObject * obj2 = 0 ;
11348 PyObject * obj3 = 0 ;
11349 PyObject * obj4 = 0 ;
11350 PyObject * obj5 = 0 ;
11351 PyObject * obj6 = 0 ;
11352 char *kwnames[] = {
11353 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
11354 };
11355
11356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11359 arg2 = (int) SWIG_AsInt(obj1);
11360 if (PyErr_Occurred()) SWIG_fail;
11361 arg3 = (int) SWIG_AsInt(obj2);
11362 if (PyErr_Occurred()) SWIG_fail;
11363 arg4 = (int) SWIG_AsInt(obj3);
11364 if (PyErr_Occurred()) SWIG_fail;
11365 arg5 = (int) SWIG_AsInt(obj4);
11366 if (PyErr_Occurred()) SWIG_fail;
11367 arg6 = (int) SWIG_AsInt(obj5);
11368 if (PyErr_Occurred()) SWIG_fail;
11369 arg7 = (int) SWIG_AsInt(obj6);
11370 if (PyErr_Occurred()) SWIG_fail;
11371 {
11372 PyThreadState* __tstate = wxPyBeginAllowThreads();
11373 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
11374
11375 wxPyEndAllowThreads(__tstate);
11376 if (PyErr_Occurred()) SWIG_fail;
11377 }
11378 Py_INCREF(Py_None); resultobj = Py_None;
11379 return resultobj;
11380 fail:
11381 return NULL;
11382 }
11383
11384
11385 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
11386 PyObject *resultobj;
11387 wxDC *arg1 = (wxDC *) 0 ;
11388 wxPoint *arg2 = 0 ;
11389 wxPoint *arg3 = 0 ;
11390 wxPoint *arg4 = 0 ;
11391 wxPoint temp2 ;
11392 wxPoint temp3 ;
11393 wxPoint temp4 ;
11394 PyObject * obj0 = 0 ;
11395 PyObject * obj1 = 0 ;
11396 PyObject * obj2 = 0 ;
11397 PyObject * obj3 = 0 ;
11398 char *kwnames[] = {
11399 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
11400 };
11401
11402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11405 {
11406 arg2 = &temp2;
11407 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11408 }
11409 {
11410 arg3 = &temp3;
11411 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11412 }
11413 {
11414 arg4 = &temp4;
11415 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11416 }
11417 {
11418 PyThreadState* __tstate = wxPyBeginAllowThreads();
11419 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
11420
11421 wxPyEndAllowThreads(__tstate);
11422 if (PyErr_Occurred()) SWIG_fail;
11423 }
11424 Py_INCREF(Py_None); resultobj = Py_None;
11425 return resultobj;
11426 fail:
11427 return NULL;
11428 }
11429
11430
11431 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11432 PyObject *resultobj;
11433 wxDC *arg1 = (wxDC *) 0 ;
11434 int arg2 ;
11435 int arg3 ;
11436 int arg4 ;
11437 int arg5 ;
11438 PyObject * obj0 = 0 ;
11439 PyObject * obj1 = 0 ;
11440 PyObject * obj2 = 0 ;
11441 PyObject * obj3 = 0 ;
11442 PyObject * obj4 = 0 ;
11443 char *kwnames[] = {
11444 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11445 };
11446
11447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11450 arg2 = (int) SWIG_AsInt(obj1);
11451 if (PyErr_Occurred()) SWIG_fail;
11452 arg3 = (int) SWIG_AsInt(obj2);
11453 if (PyErr_Occurred()) SWIG_fail;
11454 arg4 = (int) SWIG_AsInt(obj3);
11455 if (PyErr_Occurred()) SWIG_fail;
11456 arg5 = (int) SWIG_AsInt(obj4);
11457 if (PyErr_Occurred()) SWIG_fail;
11458 {
11459 PyThreadState* __tstate = wxPyBeginAllowThreads();
11460 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
11461
11462 wxPyEndAllowThreads(__tstate);
11463 if (PyErr_Occurred()) SWIG_fail;
11464 }
11465 Py_INCREF(Py_None); resultobj = Py_None;
11466 return resultobj;
11467 fail:
11468 return NULL;
11469 }
11470
11471
11472 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
11473 PyObject *resultobj;
11474 wxDC *arg1 = (wxDC *) 0 ;
11475 wxRect *arg2 = 0 ;
11476 wxRect temp2 ;
11477 PyObject * obj0 = 0 ;
11478 PyObject * obj1 = 0 ;
11479 char *kwnames[] = {
11480 (char *) "self",(char *) "rect", NULL
11481 };
11482
11483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
11484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11486 {
11487 arg2 = &temp2;
11488 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11489 }
11490 {
11491 PyThreadState* __tstate = wxPyBeginAllowThreads();
11492 (arg1)->DrawCheckMark((wxRect const &)*arg2);
11493
11494 wxPyEndAllowThreads(__tstate);
11495 if (PyErr_Occurred()) SWIG_fail;
11496 }
11497 Py_INCREF(Py_None); resultobj = Py_None;
11498 return resultobj;
11499 fail:
11500 return NULL;
11501 }
11502
11503
11504 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11505 PyObject *resultobj;
11506 wxDC *arg1 = (wxDC *) 0 ;
11507 int arg2 ;
11508 int arg3 ;
11509 int arg4 ;
11510 int arg5 ;
11511 double arg6 ;
11512 double arg7 ;
11513 PyObject * obj0 = 0 ;
11514 PyObject * obj1 = 0 ;
11515 PyObject * obj2 = 0 ;
11516 PyObject * obj3 = 0 ;
11517 PyObject * obj4 = 0 ;
11518 PyObject * obj5 = 0 ;
11519 PyObject * obj6 = 0 ;
11520 char *kwnames[] = {
11521 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
11522 };
11523
11524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11527 arg2 = (int) SWIG_AsInt(obj1);
11528 if (PyErr_Occurred()) SWIG_fail;
11529 arg3 = (int) SWIG_AsInt(obj2);
11530 if (PyErr_Occurred()) SWIG_fail;
11531 arg4 = (int) SWIG_AsInt(obj3);
11532 if (PyErr_Occurred()) SWIG_fail;
11533 arg5 = (int) SWIG_AsInt(obj4);
11534 if (PyErr_Occurred()) SWIG_fail;
11535 arg6 = (double) SWIG_AsDouble(obj5);
11536 if (PyErr_Occurred()) SWIG_fail;
11537 arg7 = (double) SWIG_AsDouble(obj6);
11538 if (PyErr_Occurred()) SWIG_fail;
11539 {
11540 PyThreadState* __tstate = wxPyBeginAllowThreads();
11541 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
11542
11543 wxPyEndAllowThreads(__tstate);
11544 if (PyErr_Occurred()) SWIG_fail;
11545 }
11546 Py_INCREF(Py_None); resultobj = Py_None;
11547 return resultobj;
11548 fail:
11549 return NULL;
11550 }
11551
11552
11553 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
11554 PyObject *resultobj;
11555 wxDC *arg1 = (wxDC *) 0 ;
11556 wxPoint *arg2 = 0 ;
11557 wxSize *arg3 = 0 ;
11558 double arg4 ;
11559 double arg5 ;
11560 wxPoint temp2 ;
11561 wxSize temp3 ;
11562 PyObject * obj0 = 0 ;
11563 PyObject * obj1 = 0 ;
11564 PyObject * obj2 = 0 ;
11565 PyObject * obj3 = 0 ;
11566 PyObject * obj4 = 0 ;
11567 char *kwnames[] = {
11568 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
11569 };
11570
11571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11574 {
11575 arg2 = &temp2;
11576 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11577 }
11578 {
11579 arg3 = &temp3;
11580 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11581 }
11582 arg4 = (double) SWIG_AsDouble(obj3);
11583 if (PyErr_Occurred()) SWIG_fail;
11584 arg5 = (double) SWIG_AsDouble(obj4);
11585 if (PyErr_Occurred()) SWIG_fail;
11586 {
11587 PyThreadState* __tstate = wxPyBeginAllowThreads();
11588 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
11589
11590 wxPyEndAllowThreads(__tstate);
11591 if (PyErr_Occurred()) SWIG_fail;
11592 }
11593 Py_INCREF(Py_None); resultobj = Py_None;
11594 return resultobj;
11595 fail:
11596 return NULL;
11597 }
11598
11599
11600 static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11601 PyObject *resultobj;
11602 wxDC *arg1 = (wxDC *) 0 ;
11603 int arg2 ;
11604 int arg3 ;
11605 PyObject * obj0 = 0 ;
11606 PyObject * obj1 = 0 ;
11607 PyObject * obj2 = 0 ;
11608 char *kwnames[] = {
11609 (char *) "self",(char *) "x",(char *) "y", NULL
11610 };
11611
11612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
11613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11615 arg2 = (int) SWIG_AsInt(obj1);
11616 if (PyErr_Occurred()) SWIG_fail;
11617 arg3 = (int) SWIG_AsInt(obj2);
11618 if (PyErr_Occurred()) SWIG_fail;
11619 {
11620 PyThreadState* __tstate = wxPyBeginAllowThreads();
11621 (arg1)->DrawPoint(arg2,arg3);
11622
11623 wxPyEndAllowThreads(__tstate);
11624 if (PyErr_Occurred()) SWIG_fail;
11625 }
11626 Py_INCREF(Py_None); resultobj = Py_None;
11627 return resultobj;
11628 fail:
11629 return NULL;
11630 }
11631
11632
11633 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11634 PyObject *resultobj;
11635 wxDC *arg1 = (wxDC *) 0 ;
11636 wxPoint *arg2 = 0 ;
11637 wxPoint temp2 ;
11638 PyObject * obj0 = 0 ;
11639 PyObject * obj1 = 0 ;
11640 char *kwnames[] = {
11641 (char *) "self",(char *) "pt", NULL
11642 };
11643
11644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
11645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11647 {
11648 arg2 = &temp2;
11649 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11650 }
11651 {
11652 PyThreadState* __tstate = wxPyBeginAllowThreads();
11653 (arg1)->DrawPoint((wxPoint const &)*arg2);
11654
11655 wxPyEndAllowThreads(__tstate);
11656 if (PyErr_Occurred()) SWIG_fail;
11657 }
11658 Py_INCREF(Py_None); resultobj = Py_None;
11659 return resultobj;
11660 fail:
11661 return NULL;
11662 }
11663
11664
11665 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11666 PyObject *resultobj;
11667 wxDC *arg1 = (wxDC *) 0 ;
11668 int arg2 ;
11669 int arg3 ;
11670 int arg4 ;
11671 int arg5 ;
11672 PyObject * obj0 = 0 ;
11673 PyObject * obj1 = 0 ;
11674 PyObject * obj2 = 0 ;
11675 PyObject * obj3 = 0 ;
11676 PyObject * obj4 = 0 ;
11677 char *kwnames[] = {
11678 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11679 };
11680
11681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11684 arg2 = (int) SWIG_AsInt(obj1);
11685 if (PyErr_Occurred()) SWIG_fail;
11686 arg3 = (int) SWIG_AsInt(obj2);
11687 if (PyErr_Occurred()) SWIG_fail;
11688 arg4 = (int) SWIG_AsInt(obj3);
11689 if (PyErr_Occurred()) SWIG_fail;
11690 arg5 = (int) SWIG_AsInt(obj4);
11691 if (PyErr_Occurred()) SWIG_fail;
11692 {
11693 PyThreadState* __tstate = wxPyBeginAllowThreads();
11694 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11695
11696 wxPyEndAllowThreads(__tstate);
11697 if (PyErr_Occurred()) SWIG_fail;
11698 }
11699 Py_INCREF(Py_None); resultobj = Py_None;
11700 return resultobj;
11701 fail:
11702 return NULL;
11703 }
11704
11705
11706 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11707 PyObject *resultobj;
11708 wxDC *arg1 = (wxDC *) 0 ;
11709 wxPoint *arg2 = 0 ;
11710 wxSize *arg3 = 0 ;
11711 wxPoint temp2 ;
11712 wxSize temp3 ;
11713 PyObject * obj0 = 0 ;
11714 PyObject * obj1 = 0 ;
11715 PyObject * obj2 = 0 ;
11716 char *kwnames[] = {
11717 (char *) "self",(char *) "pt",(char *) "sz", NULL
11718 };
11719
11720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11723 {
11724 arg2 = &temp2;
11725 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11726 }
11727 {
11728 arg3 = &temp3;
11729 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11730 }
11731 {
11732 PyThreadState* __tstate = wxPyBeginAllowThreads();
11733 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11734
11735 wxPyEndAllowThreads(__tstate);
11736 if (PyErr_Occurred()) SWIG_fail;
11737 }
11738 Py_INCREF(Py_None); resultobj = Py_None;
11739 return resultobj;
11740 fail:
11741 return NULL;
11742 }
11743
11744
11745 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11746 PyObject *resultobj;
11747 wxDC *arg1 = (wxDC *) 0 ;
11748 wxRect *arg2 = 0 ;
11749 wxRect temp2 ;
11750 PyObject * obj0 = 0 ;
11751 PyObject * obj1 = 0 ;
11752 char *kwnames[] = {
11753 (char *) "self",(char *) "rect", NULL
11754 };
11755
11756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11759 {
11760 arg2 = &temp2;
11761 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11762 }
11763 {
11764 PyThreadState* __tstate = wxPyBeginAllowThreads();
11765 (arg1)->DrawRectangle((wxRect const &)*arg2);
11766
11767 wxPyEndAllowThreads(__tstate);
11768 if (PyErr_Occurred()) SWIG_fail;
11769 }
11770 Py_INCREF(Py_None); resultobj = Py_None;
11771 return resultobj;
11772 fail:
11773 return NULL;
11774 }
11775
11776
11777 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11778 PyObject *resultobj;
11779 wxDC *arg1 = (wxDC *) 0 ;
11780 int arg2 ;
11781 int arg3 ;
11782 int arg4 ;
11783 int arg5 ;
11784 double arg6 ;
11785 PyObject * obj0 = 0 ;
11786 PyObject * obj1 = 0 ;
11787 PyObject * obj2 = 0 ;
11788 PyObject * obj3 = 0 ;
11789 PyObject * obj4 = 0 ;
11790 PyObject * obj5 = 0 ;
11791 char *kwnames[] = {
11792 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11793 };
11794
11795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11798 arg2 = (int) SWIG_AsInt(obj1);
11799 if (PyErr_Occurred()) SWIG_fail;
11800 arg3 = (int) SWIG_AsInt(obj2);
11801 if (PyErr_Occurred()) SWIG_fail;
11802 arg4 = (int) SWIG_AsInt(obj3);
11803 if (PyErr_Occurred()) SWIG_fail;
11804 arg5 = (int) SWIG_AsInt(obj4);
11805 if (PyErr_Occurred()) SWIG_fail;
11806 arg6 = (double) SWIG_AsDouble(obj5);
11807 if (PyErr_Occurred()) SWIG_fail;
11808 {
11809 PyThreadState* __tstate = wxPyBeginAllowThreads();
11810 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11811
11812 wxPyEndAllowThreads(__tstate);
11813 if (PyErr_Occurred()) SWIG_fail;
11814 }
11815 Py_INCREF(Py_None); resultobj = Py_None;
11816 return resultobj;
11817 fail:
11818 return NULL;
11819 }
11820
11821
11822 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11823 PyObject *resultobj;
11824 wxDC *arg1 = (wxDC *) 0 ;
11825 wxPoint *arg2 = 0 ;
11826 wxSize *arg3 = 0 ;
11827 double arg4 ;
11828 wxPoint temp2 ;
11829 wxSize temp3 ;
11830 PyObject * obj0 = 0 ;
11831 PyObject * obj1 = 0 ;
11832 PyObject * obj2 = 0 ;
11833 PyObject * obj3 = 0 ;
11834 char *kwnames[] = {
11835 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11836 };
11837
11838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11841 {
11842 arg2 = &temp2;
11843 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11844 }
11845 {
11846 arg3 = &temp3;
11847 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11848 }
11849 arg4 = (double) SWIG_AsDouble(obj3);
11850 if (PyErr_Occurred()) SWIG_fail;
11851 {
11852 PyThreadState* __tstate = wxPyBeginAllowThreads();
11853 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11854
11855 wxPyEndAllowThreads(__tstate);
11856 if (PyErr_Occurred()) SWIG_fail;
11857 }
11858 Py_INCREF(Py_None); resultobj = Py_None;
11859 return resultobj;
11860 fail:
11861 return NULL;
11862 }
11863
11864
11865 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11866 PyObject *resultobj;
11867 wxDC *arg1 = (wxDC *) 0 ;
11868 wxRect *arg2 = 0 ;
11869 double arg3 ;
11870 wxRect temp2 ;
11871 PyObject * obj0 = 0 ;
11872 PyObject * obj1 = 0 ;
11873 PyObject * obj2 = 0 ;
11874 char *kwnames[] = {
11875 (char *) "self",(char *) "r",(char *) "radius", NULL
11876 };
11877
11878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11881 {
11882 arg2 = &temp2;
11883 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11884 }
11885 arg3 = (double) SWIG_AsDouble(obj2);
11886 if (PyErr_Occurred()) SWIG_fail;
11887 {
11888 PyThreadState* __tstate = wxPyBeginAllowThreads();
11889 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11890
11891 wxPyEndAllowThreads(__tstate);
11892 if (PyErr_Occurred()) SWIG_fail;
11893 }
11894 Py_INCREF(Py_None); resultobj = Py_None;
11895 return resultobj;
11896 fail:
11897 return NULL;
11898 }
11899
11900
11901 static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11902 PyObject *resultobj;
11903 wxDC *arg1 = (wxDC *) 0 ;
11904 int arg2 ;
11905 int arg3 ;
11906 int arg4 ;
11907 PyObject * obj0 = 0 ;
11908 PyObject * obj1 = 0 ;
11909 PyObject * obj2 = 0 ;
11910 PyObject * obj3 = 0 ;
11911 char *kwnames[] = {
11912 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11913 };
11914
11915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11918 arg2 = (int) SWIG_AsInt(obj1);
11919 if (PyErr_Occurred()) SWIG_fail;
11920 arg3 = (int) SWIG_AsInt(obj2);
11921 if (PyErr_Occurred()) SWIG_fail;
11922 arg4 = (int) SWIG_AsInt(obj3);
11923 if (PyErr_Occurred()) SWIG_fail;
11924 {
11925 PyThreadState* __tstate = wxPyBeginAllowThreads();
11926 (arg1)->DrawCircle(arg2,arg3,arg4);
11927
11928 wxPyEndAllowThreads(__tstate);
11929 if (PyErr_Occurred()) SWIG_fail;
11930 }
11931 Py_INCREF(Py_None); resultobj = Py_None;
11932 return resultobj;
11933 fail:
11934 return NULL;
11935 }
11936
11937
11938 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11939 PyObject *resultobj;
11940 wxDC *arg1 = (wxDC *) 0 ;
11941 wxPoint *arg2 = 0 ;
11942 int arg3 ;
11943 wxPoint temp2 ;
11944 PyObject * obj0 = 0 ;
11945 PyObject * obj1 = 0 ;
11946 PyObject * obj2 = 0 ;
11947 char *kwnames[] = {
11948 (char *) "self",(char *) "pt",(char *) "radius", NULL
11949 };
11950
11951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11954 {
11955 arg2 = &temp2;
11956 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11957 }
11958 arg3 = (int) SWIG_AsInt(obj2);
11959 if (PyErr_Occurred()) SWIG_fail;
11960 {
11961 PyThreadState* __tstate = wxPyBeginAllowThreads();
11962 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11963
11964 wxPyEndAllowThreads(__tstate);
11965 if (PyErr_Occurred()) SWIG_fail;
11966 }
11967 Py_INCREF(Py_None); resultobj = Py_None;
11968 return resultobj;
11969 fail:
11970 return NULL;
11971 }
11972
11973
11974 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11975 PyObject *resultobj;
11976 wxDC *arg1 = (wxDC *) 0 ;
11977 int arg2 ;
11978 int arg3 ;
11979 int arg4 ;
11980 int arg5 ;
11981 PyObject * obj0 = 0 ;
11982 PyObject * obj1 = 0 ;
11983 PyObject * obj2 = 0 ;
11984 PyObject * obj3 = 0 ;
11985 PyObject * obj4 = 0 ;
11986 char *kwnames[] = {
11987 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11988 };
11989
11990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11993 arg2 = (int) SWIG_AsInt(obj1);
11994 if (PyErr_Occurred()) SWIG_fail;
11995 arg3 = (int) SWIG_AsInt(obj2);
11996 if (PyErr_Occurred()) SWIG_fail;
11997 arg4 = (int) SWIG_AsInt(obj3);
11998 if (PyErr_Occurred()) SWIG_fail;
11999 arg5 = (int) SWIG_AsInt(obj4);
12000 if (PyErr_Occurred()) SWIG_fail;
12001 {
12002 PyThreadState* __tstate = wxPyBeginAllowThreads();
12003 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
12004
12005 wxPyEndAllowThreads(__tstate);
12006 if (PyErr_Occurred()) SWIG_fail;
12007 }
12008 Py_INCREF(Py_None); resultobj = Py_None;
12009 return resultobj;
12010 fail:
12011 return NULL;
12012 }
12013
12014
12015 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
12016 PyObject *resultobj;
12017 wxDC *arg1 = (wxDC *) 0 ;
12018 wxPoint *arg2 = 0 ;
12019 wxSize *arg3 = 0 ;
12020 wxPoint temp2 ;
12021 wxSize temp3 ;
12022 PyObject * obj0 = 0 ;
12023 PyObject * obj1 = 0 ;
12024 PyObject * obj2 = 0 ;
12025 char *kwnames[] = {
12026 (char *) "self",(char *) "pt",(char *) "sz", NULL
12027 };
12028
12029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
12030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12032 {
12033 arg2 = &temp2;
12034 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12035 }
12036 {
12037 arg3 = &temp3;
12038 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12039 }
12040 {
12041 PyThreadState* __tstate = wxPyBeginAllowThreads();
12042 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
12043
12044 wxPyEndAllowThreads(__tstate);
12045 if (PyErr_Occurred()) SWIG_fail;
12046 }
12047 Py_INCREF(Py_None); resultobj = Py_None;
12048 return resultobj;
12049 fail:
12050 return NULL;
12051 }
12052
12053
12054 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12055 PyObject *resultobj;
12056 wxDC *arg1 = (wxDC *) 0 ;
12057 wxRect *arg2 = 0 ;
12058 wxRect temp2 ;
12059 PyObject * obj0 = 0 ;
12060 PyObject * obj1 = 0 ;
12061 char *kwnames[] = {
12062 (char *) "self",(char *) "rect", NULL
12063 };
12064
12065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
12066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12068 {
12069 arg2 = &temp2;
12070 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12071 }
12072 {
12073 PyThreadState* __tstate = wxPyBeginAllowThreads();
12074 (arg1)->DrawEllipse((wxRect const &)*arg2);
12075
12076 wxPyEndAllowThreads(__tstate);
12077 if (PyErr_Occurred()) SWIG_fail;
12078 }
12079 Py_INCREF(Py_None); resultobj = Py_None;
12080 return resultobj;
12081 fail:
12082 return NULL;
12083 }
12084
12085
12086 static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12087 PyObject *resultobj;
12088 wxDC *arg1 = (wxDC *) 0 ;
12089 wxIcon *arg2 = 0 ;
12090 int arg3 ;
12091 int arg4 ;
12092 PyObject * obj0 = 0 ;
12093 PyObject * obj1 = 0 ;
12094 PyObject * obj2 = 0 ;
12095 PyObject * obj3 = 0 ;
12096 char *kwnames[] = {
12097 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
12098 };
12099
12100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12103 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
12104 SWIG_POINTER_EXCEPTION | 0)) == -1)
12105 SWIG_fail;
12106 if (arg2 == NULL) {
12107 PyErr_SetString(PyExc_TypeError,"null reference");
12108 SWIG_fail;
12109 }
12110 arg3 = (int) SWIG_AsInt(obj2);
12111 if (PyErr_Occurred()) SWIG_fail;
12112 arg4 = (int) SWIG_AsInt(obj3);
12113 if (PyErr_Occurred()) SWIG_fail;
12114 {
12115 PyThreadState* __tstate = wxPyBeginAllowThreads();
12116 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
12117
12118 wxPyEndAllowThreads(__tstate);
12119 if (PyErr_Occurred()) SWIG_fail;
12120 }
12121 Py_INCREF(Py_None); resultobj = Py_None;
12122 return resultobj;
12123 fail:
12124 return NULL;
12125 }
12126
12127
12128 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12129 PyObject *resultobj;
12130 wxDC *arg1 = (wxDC *) 0 ;
12131 wxIcon *arg2 = 0 ;
12132 wxPoint *arg3 = 0 ;
12133 wxPoint temp3 ;
12134 PyObject * obj0 = 0 ;
12135 PyObject * obj1 = 0 ;
12136 PyObject * obj2 = 0 ;
12137 char *kwnames[] = {
12138 (char *) "self",(char *) "icon",(char *) "pt", NULL
12139 };
12140
12141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12144 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
12145 SWIG_POINTER_EXCEPTION | 0)) == -1)
12146 SWIG_fail;
12147 if (arg2 == NULL) {
12148 PyErr_SetString(PyExc_TypeError,"null reference");
12149 SWIG_fail;
12150 }
12151 {
12152 arg3 = &temp3;
12153 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12154 }
12155 {
12156 PyThreadState* __tstate = wxPyBeginAllowThreads();
12157 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
12158
12159 wxPyEndAllowThreads(__tstate);
12160 if (PyErr_Occurred()) SWIG_fail;
12161 }
12162 Py_INCREF(Py_None); resultobj = Py_None;
12163 return resultobj;
12164 fail:
12165 return NULL;
12166 }
12167
12168
12169 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12170 PyObject *resultobj;
12171 wxDC *arg1 = (wxDC *) 0 ;
12172 wxBitmap *arg2 = 0 ;
12173 int arg3 ;
12174 int arg4 ;
12175 bool arg5 = (bool) False ;
12176 PyObject * obj0 = 0 ;
12177 PyObject * obj1 = 0 ;
12178 PyObject * obj2 = 0 ;
12179 PyObject * obj3 = 0 ;
12180 PyObject * obj4 = 0 ;
12181 char *kwnames[] = {
12182 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
12183 };
12184
12185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12188 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
12189 SWIG_POINTER_EXCEPTION | 0)) == -1)
12190 SWIG_fail;
12191 if (arg2 == NULL) {
12192 PyErr_SetString(PyExc_TypeError,"null reference");
12193 SWIG_fail;
12194 }
12195 arg3 = (int) SWIG_AsInt(obj2);
12196 if (PyErr_Occurred()) SWIG_fail;
12197 arg4 = (int) SWIG_AsInt(obj3);
12198 if (PyErr_Occurred()) SWIG_fail;
12199 if (obj4) {
12200 arg5 = (bool) SWIG_AsBool(obj4);
12201 if (PyErr_Occurred()) SWIG_fail;
12202 }
12203 {
12204 PyThreadState* __tstate = wxPyBeginAllowThreads();
12205 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
12206
12207 wxPyEndAllowThreads(__tstate);
12208 if (PyErr_Occurred()) SWIG_fail;
12209 }
12210 Py_INCREF(Py_None); resultobj = Py_None;
12211 return resultobj;
12212 fail:
12213 return NULL;
12214 }
12215
12216
12217 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
12218 PyObject *resultobj;
12219 wxDC *arg1 = (wxDC *) 0 ;
12220 wxBitmap *arg2 = 0 ;
12221 wxPoint *arg3 = 0 ;
12222 bool arg4 = (bool) False ;
12223 wxPoint temp3 ;
12224 PyObject * obj0 = 0 ;
12225 PyObject * obj1 = 0 ;
12226 PyObject * obj2 = 0 ;
12227 PyObject * obj3 = 0 ;
12228 char *kwnames[] = {
12229 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
12230 };
12231
12232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12235 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
12236 SWIG_POINTER_EXCEPTION | 0)) == -1)
12237 SWIG_fail;
12238 if (arg2 == NULL) {
12239 PyErr_SetString(PyExc_TypeError,"null reference");
12240 SWIG_fail;
12241 }
12242 {
12243 arg3 = &temp3;
12244 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12245 }
12246 if (obj3) {
12247 arg4 = (bool) SWIG_AsBool(obj3);
12248 if (PyErr_Occurred()) SWIG_fail;
12249 }
12250 {
12251 PyThreadState* __tstate = wxPyBeginAllowThreads();
12252 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
12253
12254 wxPyEndAllowThreads(__tstate);
12255 if (PyErr_Occurred()) SWIG_fail;
12256 }
12257 Py_INCREF(Py_None); resultobj = Py_None;
12258 return resultobj;
12259 fail:
12260 return NULL;
12261 }
12262
12263
12264 static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12265 PyObject *resultobj;
12266 wxDC *arg1 = (wxDC *) 0 ;
12267 wxString *arg2 = 0 ;
12268 int arg3 ;
12269 int arg4 ;
12270 bool temp2 = False ;
12271 PyObject * obj0 = 0 ;
12272 PyObject * obj1 = 0 ;
12273 PyObject * obj2 = 0 ;
12274 PyObject * obj3 = 0 ;
12275 char *kwnames[] = {
12276 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
12277 };
12278
12279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12282 {
12283 arg2 = wxString_in_helper(obj1);
12284 if (arg2 == NULL) SWIG_fail;
12285 temp2 = True;
12286 }
12287 arg3 = (int) SWIG_AsInt(obj2);
12288 if (PyErr_Occurred()) SWIG_fail;
12289 arg4 = (int) SWIG_AsInt(obj3);
12290 if (PyErr_Occurred()) SWIG_fail;
12291 {
12292 PyThreadState* __tstate = wxPyBeginAllowThreads();
12293 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
12294
12295 wxPyEndAllowThreads(__tstate);
12296 if (PyErr_Occurred()) SWIG_fail;
12297 }
12298 Py_INCREF(Py_None); resultobj = Py_None;
12299 {
12300 if (temp2)
12301 delete arg2;
12302 }
12303 return resultobj;
12304 fail:
12305 {
12306 if (temp2)
12307 delete arg2;
12308 }
12309 return NULL;
12310 }
12311
12312
12313 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
12314 PyObject *resultobj;
12315 wxDC *arg1 = (wxDC *) 0 ;
12316 wxString *arg2 = 0 ;
12317 wxPoint *arg3 = 0 ;
12318 bool temp2 = False ;
12319 wxPoint temp3 ;
12320 PyObject * obj0 = 0 ;
12321 PyObject * obj1 = 0 ;
12322 PyObject * obj2 = 0 ;
12323 char *kwnames[] = {
12324 (char *) "self",(char *) "text",(char *) "pt", NULL
12325 };
12326
12327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
12328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12330 {
12331 arg2 = wxString_in_helper(obj1);
12332 if (arg2 == NULL) SWIG_fail;
12333 temp2 = True;
12334 }
12335 {
12336 arg3 = &temp3;
12337 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12338 }
12339 {
12340 PyThreadState* __tstate = wxPyBeginAllowThreads();
12341 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
12342
12343 wxPyEndAllowThreads(__tstate);
12344 if (PyErr_Occurred()) SWIG_fail;
12345 }
12346 Py_INCREF(Py_None); resultobj = Py_None;
12347 {
12348 if (temp2)
12349 delete arg2;
12350 }
12351 return resultobj;
12352 fail:
12353 {
12354 if (temp2)
12355 delete arg2;
12356 }
12357 return NULL;
12358 }
12359
12360
12361 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12362 PyObject *resultobj;
12363 wxDC *arg1 = (wxDC *) 0 ;
12364 wxString *arg2 = 0 ;
12365 int arg3 ;
12366 int arg4 ;
12367 double arg5 ;
12368 bool temp2 = False ;
12369 PyObject * obj0 = 0 ;
12370 PyObject * obj1 = 0 ;
12371 PyObject * obj2 = 0 ;
12372 PyObject * obj3 = 0 ;
12373 PyObject * obj4 = 0 ;
12374 char *kwnames[] = {
12375 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
12376 };
12377
12378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12381 {
12382 arg2 = wxString_in_helper(obj1);
12383 if (arg2 == NULL) SWIG_fail;
12384 temp2 = True;
12385 }
12386 arg3 = (int) SWIG_AsInt(obj2);
12387 if (PyErr_Occurred()) SWIG_fail;
12388 arg4 = (int) SWIG_AsInt(obj3);
12389 if (PyErr_Occurred()) SWIG_fail;
12390 arg5 = (double) SWIG_AsDouble(obj4);
12391 if (PyErr_Occurred()) SWIG_fail;
12392 {
12393 PyThreadState* __tstate = wxPyBeginAllowThreads();
12394 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
12395
12396 wxPyEndAllowThreads(__tstate);
12397 if (PyErr_Occurred()) SWIG_fail;
12398 }
12399 Py_INCREF(Py_None); resultobj = Py_None;
12400 {
12401 if (temp2)
12402 delete arg2;
12403 }
12404 return resultobj;
12405 fail:
12406 {
12407 if (temp2)
12408 delete arg2;
12409 }
12410 return NULL;
12411 }
12412
12413
12414 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
12415 PyObject *resultobj;
12416 wxDC *arg1 = (wxDC *) 0 ;
12417 wxString *arg2 = 0 ;
12418 wxPoint *arg3 = 0 ;
12419 double arg4 ;
12420 bool temp2 = False ;
12421 wxPoint temp3 ;
12422 PyObject * obj0 = 0 ;
12423 PyObject * obj1 = 0 ;
12424 PyObject * obj2 = 0 ;
12425 PyObject * obj3 = 0 ;
12426 char *kwnames[] = {
12427 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
12428 };
12429
12430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12433 {
12434 arg2 = wxString_in_helper(obj1);
12435 if (arg2 == NULL) SWIG_fail;
12436 temp2 = True;
12437 }
12438 {
12439 arg3 = &temp3;
12440 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12441 }
12442 arg4 = (double) SWIG_AsDouble(obj3);
12443 if (PyErr_Occurred()) SWIG_fail;
12444 {
12445 PyThreadState* __tstate = wxPyBeginAllowThreads();
12446 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
12447
12448 wxPyEndAllowThreads(__tstate);
12449 if (PyErr_Occurred()) SWIG_fail;
12450 }
12451 Py_INCREF(Py_None); resultobj = Py_None;
12452 {
12453 if (temp2)
12454 delete arg2;
12455 }
12456 return resultobj;
12457 fail:
12458 {
12459 if (temp2)
12460 delete arg2;
12461 }
12462 return NULL;
12463 }
12464
12465
12466 static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12467 PyObject *resultobj;
12468 wxDC *arg1 = (wxDC *) 0 ;
12469 int arg2 ;
12470 int arg3 ;
12471 int arg4 ;
12472 int arg5 ;
12473 wxDC *arg6 = (wxDC *) 0 ;
12474 int arg7 ;
12475 int arg8 ;
12476 int arg9 = (int) wxCOPY ;
12477 bool arg10 = (bool) False ;
12478 int arg11 = (int) -1 ;
12479 int arg12 = (int) -1 ;
12480 bool result;
12481 PyObject * obj0 = 0 ;
12482 PyObject * obj1 = 0 ;
12483 PyObject * obj2 = 0 ;
12484 PyObject * obj3 = 0 ;
12485 PyObject * obj4 = 0 ;
12486 PyObject * obj5 = 0 ;
12487 PyObject * obj6 = 0 ;
12488 PyObject * obj7 = 0 ;
12489 PyObject * obj8 = 0 ;
12490 PyObject * obj9 = 0 ;
12491 PyObject * obj10 = 0 ;
12492 PyObject * obj11 = 0 ;
12493 char *kwnames[] = {
12494 (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
12495 };
12496
12497 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;
12498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12500 arg2 = (int) SWIG_AsInt(obj1);
12501 if (PyErr_Occurred()) SWIG_fail;
12502 arg3 = (int) SWIG_AsInt(obj2);
12503 if (PyErr_Occurred()) SWIG_fail;
12504 arg4 = (int) SWIG_AsInt(obj3);
12505 if (PyErr_Occurred()) SWIG_fail;
12506 arg5 = (int) SWIG_AsInt(obj4);
12507 if (PyErr_Occurred()) SWIG_fail;
12508 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
12509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12510 arg7 = (int) SWIG_AsInt(obj6);
12511 if (PyErr_Occurred()) SWIG_fail;
12512 arg8 = (int) SWIG_AsInt(obj7);
12513 if (PyErr_Occurred()) SWIG_fail;
12514 if (obj8) {
12515 arg9 = (int) SWIG_AsInt(obj8);
12516 if (PyErr_Occurred()) SWIG_fail;
12517 }
12518 if (obj9) {
12519 arg10 = (bool) SWIG_AsBool(obj9);
12520 if (PyErr_Occurred()) SWIG_fail;
12521 }
12522 if (obj10) {
12523 arg11 = (int) SWIG_AsInt(obj10);
12524 if (PyErr_Occurred()) SWIG_fail;
12525 }
12526 if (obj11) {
12527 arg12 = (int) SWIG_AsInt(obj11);
12528 if (PyErr_Occurred()) SWIG_fail;
12529 }
12530 {
12531 PyThreadState* __tstate = wxPyBeginAllowThreads();
12532 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12533
12534 wxPyEndAllowThreads(__tstate);
12535 if (PyErr_Occurred()) SWIG_fail;
12536 }
12537 {
12538 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12539 }
12540 return resultobj;
12541 fail:
12542 return NULL;
12543 }
12544
12545
12546 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
12547 PyObject *resultobj;
12548 wxDC *arg1 = (wxDC *) 0 ;
12549 wxPoint *arg2 = 0 ;
12550 wxSize *arg3 = 0 ;
12551 wxDC *arg4 = (wxDC *) 0 ;
12552 wxPoint *arg5 = 0 ;
12553 int arg6 = (int) wxCOPY ;
12554 bool arg7 = (bool) False ;
12555 wxPoint const &arg8_defvalue = wxDefaultPosition ;
12556 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
12557 bool result;
12558 wxPoint temp2 ;
12559 wxSize temp3 ;
12560 wxPoint temp5 ;
12561 wxPoint temp8 ;
12562 PyObject * obj0 = 0 ;
12563 PyObject * obj1 = 0 ;
12564 PyObject * obj2 = 0 ;
12565 PyObject * obj3 = 0 ;
12566 PyObject * obj4 = 0 ;
12567 PyObject * obj5 = 0 ;
12568 PyObject * obj6 = 0 ;
12569 PyObject * obj7 = 0 ;
12570 char *kwnames[] = {
12571 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12572 };
12573
12574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12577 {
12578 arg2 = &temp2;
12579 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12580 }
12581 {
12582 arg3 = &temp3;
12583 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12584 }
12585 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
12586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12587 {
12588 arg5 = &temp5;
12589 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12590 }
12591 if (obj5) {
12592 arg6 = (int) SWIG_AsInt(obj5);
12593 if (PyErr_Occurred()) SWIG_fail;
12594 }
12595 if (obj6) {
12596 arg7 = (bool) SWIG_AsBool(obj6);
12597 if (PyErr_Occurred()) SWIG_fail;
12598 }
12599 if (obj7) {
12600 {
12601 arg8 = &temp8;
12602 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
12603 }
12604 }
12605 {
12606 PyThreadState* __tstate = wxPyBeginAllowThreads();
12607 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12608
12609 wxPyEndAllowThreads(__tstate);
12610 if (PyErr_Occurred()) SWIG_fail;
12611 }
12612 {
12613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12614 }
12615 return resultobj;
12616 fail:
12617 return NULL;
12618 }
12619
12620
12621 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12622 PyObject *resultobj;
12623 wxDC *arg1 = (wxDC *) 0 ;
12624 int arg2 ;
12625 wxPoint *arg3 = (wxPoint *) 0 ;
12626 int arg4 = (int) 0 ;
12627 int arg5 = (int) 0 ;
12628 PyObject * obj0 = 0 ;
12629 PyObject * obj1 = 0 ;
12630 PyObject * obj2 = 0 ;
12631 PyObject * obj3 = 0 ;
12632 char *kwnames[] = {
12633 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12634 };
12635
12636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12639 {
12640 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12641 if (arg3 == NULL) SWIG_fail;
12642 }
12643 if (obj2) {
12644 arg4 = (int) SWIG_AsInt(obj2);
12645 if (PyErr_Occurred()) SWIG_fail;
12646 }
12647 if (obj3) {
12648 arg5 = (int) SWIG_AsInt(obj3);
12649 if (PyErr_Occurred()) SWIG_fail;
12650 }
12651 {
12652 PyThreadState* __tstate = wxPyBeginAllowThreads();
12653 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12654
12655 wxPyEndAllowThreads(__tstate);
12656 if (PyErr_Occurred()) SWIG_fail;
12657 }
12658 Py_INCREF(Py_None); resultobj = Py_None;
12659 {
12660 if (arg3) delete [] arg3;
12661 }
12662 return resultobj;
12663 fail:
12664 {
12665 if (arg3) delete [] arg3;
12666 }
12667 return NULL;
12668 }
12669
12670
12671 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12672 PyObject *resultobj;
12673 wxDC *arg1 = (wxDC *) 0 ;
12674 int arg2 ;
12675 wxPoint *arg3 = (wxPoint *) 0 ;
12676 int arg4 = (int) 0 ;
12677 int arg5 = (int) 0 ;
12678 int arg6 = (int) wxODDEVEN_RULE ;
12679 PyObject * obj0 = 0 ;
12680 PyObject * obj1 = 0 ;
12681 PyObject * obj2 = 0 ;
12682 PyObject * obj3 = 0 ;
12683 PyObject * obj4 = 0 ;
12684 char *kwnames[] = {
12685 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12686 };
12687
12688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12691 {
12692 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12693 if (arg3 == NULL) SWIG_fail;
12694 }
12695 if (obj2) {
12696 arg4 = (int) SWIG_AsInt(obj2);
12697 if (PyErr_Occurred()) SWIG_fail;
12698 }
12699 if (obj3) {
12700 arg5 = (int) SWIG_AsInt(obj3);
12701 if (PyErr_Occurred()) SWIG_fail;
12702 }
12703 if (obj4) {
12704 arg6 = (int) SWIG_AsInt(obj4);
12705 if (PyErr_Occurred()) SWIG_fail;
12706 }
12707 {
12708 PyThreadState* __tstate = wxPyBeginAllowThreads();
12709 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12710
12711 wxPyEndAllowThreads(__tstate);
12712 if (PyErr_Occurred()) SWIG_fail;
12713 }
12714 Py_INCREF(Py_None); resultobj = Py_None;
12715 {
12716 if (arg3) delete [] arg3;
12717 }
12718 return resultobj;
12719 fail:
12720 {
12721 if (arg3) delete [] arg3;
12722 }
12723 return NULL;
12724 }
12725
12726
12727 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12728 PyObject *resultobj;
12729 wxDC *arg1 = (wxDC *) 0 ;
12730 wxString *arg2 = 0 ;
12731 wxRect *arg3 = 0 ;
12732 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12733 int arg5 = (int) -1 ;
12734 bool temp2 = False ;
12735 wxRect temp3 ;
12736 PyObject * obj0 = 0 ;
12737 PyObject * obj1 = 0 ;
12738 PyObject * obj2 = 0 ;
12739 PyObject * obj3 = 0 ;
12740 PyObject * obj4 = 0 ;
12741 char *kwnames[] = {
12742 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12743 };
12744
12745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12748 {
12749 arg2 = wxString_in_helper(obj1);
12750 if (arg2 == NULL) SWIG_fail;
12751 temp2 = True;
12752 }
12753 {
12754 arg3 = &temp3;
12755 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12756 }
12757 if (obj3) {
12758 arg4 = (int) SWIG_AsInt(obj3);
12759 if (PyErr_Occurred()) SWIG_fail;
12760 }
12761 if (obj4) {
12762 arg5 = (int) SWIG_AsInt(obj4);
12763 if (PyErr_Occurred()) SWIG_fail;
12764 }
12765 {
12766 PyThreadState* __tstate = wxPyBeginAllowThreads();
12767 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12768
12769 wxPyEndAllowThreads(__tstate);
12770 if (PyErr_Occurred()) SWIG_fail;
12771 }
12772 Py_INCREF(Py_None); resultobj = Py_None;
12773 {
12774 if (temp2)
12775 delete arg2;
12776 }
12777 return resultobj;
12778 fail:
12779 {
12780 if (temp2)
12781 delete arg2;
12782 }
12783 return NULL;
12784 }
12785
12786
12787 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12788 PyObject *resultobj;
12789 wxDC *arg1 = (wxDC *) 0 ;
12790 wxString *arg2 = 0 ;
12791 wxBitmap *arg3 = 0 ;
12792 wxRect *arg4 = 0 ;
12793 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12794 int arg6 = (int) -1 ;
12795 wxRect result;
12796 bool temp2 = False ;
12797 wxRect temp4 ;
12798 PyObject * obj0 = 0 ;
12799 PyObject * obj1 = 0 ;
12800 PyObject * obj2 = 0 ;
12801 PyObject * obj3 = 0 ;
12802 PyObject * obj4 = 0 ;
12803 PyObject * obj5 = 0 ;
12804 char *kwnames[] = {
12805 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12806 };
12807
12808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12811 {
12812 arg2 = wxString_in_helper(obj1);
12813 if (arg2 == NULL) SWIG_fail;
12814 temp2 = True;
12815 }
12816 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12817 SWIG_POINTER_EXCEPTION | 0)) == -1)
12818 SWIG_fail;
12819 if (arg3 == NULL) {
12820 PyErr_SetString(PyExc_TypeError,"null reference");
12821 SWIG_fail;
12822 }
12823 {
12824 arg4 = &temp4;
12825 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12826 }
12827 if (obj4) {
12828 arg5 = (int) SWIG_AsInt(obj4);
12829 if (PyErr_Occurred()) SWIG_fail;
12830 }
12831 if (obj5) {
12832 arg6 = (int) SWIG_AsInt(obj5);
12833 if (PyErr_Occurred()) SWIG_fail;
12834 }
12835 {
12836 PyThreadState* __tstate = wxPyBeginAllowThreads();
12837 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12838
12839 wxPyEndAllowThreads(__tstate);
12840 if (PyErr_Occurred()) SWIG_fail;
12841 }
12842 {
12843 wxRect * resultptr;
12844 resultptr = new wxRect((wxRect &) result);
12845 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12846 }
12847 {
12848 if (temp2)
12849 delete arg2;
12850 }
12851 return resultobj;
12852 fail:
12853 {
12854 if (temp2)
12855 delete arg2;
12856 }
12857 return NULL;
12858 }
12859
12860
12861 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12862 PyObject *resultobj;
12863 wxDC *arg1 = (wxDC *) 0 ;
12864 int arg2 ;
12865 wxPoint *arg3 = (wxPoint *) 0 ;
12866 PyObject * obj0 = 0 ;
12867 PyObject * obj1 = 0 ;
12868 char *kwnames[] = {
12869 (char *) "self",(char *) "points", NULL
12870 };
12871
12872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12875 {
12876 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12877 if (arg3 == NULL) SWIG_fail;
12878 }
12879 {
12880 PyThreadState* __tstate = wxPyBeginAllowThreads();
12881 (arg1)->DrawSpline(arg2,arg3);
12882
12883 wxPyEndAllowThreads(__tstate);
12884 if (PyErr_Occurred()) SWIG_fail;
12885 }
12886 Py_INCREF(Py_None); resultobj = Py_None;
12887 {
12888 if (arg3) delete [] arg3;
12889 }
12890 return resultobj;
12891 fail:
12892 {
12893 if (arg3) delete [] arg3;
12894 }
12895 return NULL;
12896 }
12897
12898
12899 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12900 PyObject *resultobj;
12901 wxDC *arg1 = (wxDC *) 0 ;
12902 PyObject * obj0 = 0 ;
12903 char *kwnames[] = {
12904 (char *) "self", NULL
12905 };
12906
12907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12910 {
12911 PyThreadState* __tstate = wxPyBeginAllowThreads();
12912 (arg1)->Clear();
12913
12914 wxPyEndAllowThreads(__tstate);
12915 if (PyErr_Occurred()) SWIG_fail;
12916 }
12917 Py_INCREF(Py_None); resultobj = Py_None;
12918 return resultobj;
12919 fail:
12920 return NULL;
12921 }
12922
12923
12924 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12925 PyObject *resultobj;
12926 wxDC *arg1 = (wxDC *) 0 ;
12927 wxString *arg2 = 0 ;
12928 bool result;
12929 bool temp2 = False ;
12930 PyObject * obj0 = 0 ;
12931 PyObject * obj1 = 0 ;
12932 char *kwnames[] = {
12933 (char *) "self",(char *) "message", NULL
12934 };
12935
12936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12939 {
12940 arg2 = wxString_in_helper(obj1);
12941 if (arg2 == NULL) SWIG_fail;
12942 temp2 = True;
12943 }
12944 {
12945 PyThreadState* __tstate = wxPyBeginAllowThreads();
12946 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12947
12948 wxPyEndAllowThreads(__tstate);
12949 if (PyErr_Occurred()) SWIG_fail;
12950 }
12951 {
12952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12953 }
12954 {
12955 if (temp2)
12956 delete arg2;
12957 }
12958 return resultobj;
12959 fail:
12960 {
12961 if (temp2)
12962 delete arg2;
12963 }
12964 return NULL;
12965 }
12966
12967
12968 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12969 PyObject *resultobj;
12970 wxDC *arg1 = (wxDC *) 0 ;
12971 PyObject * obj0 = 0 ;
12972 char *kwnames[] = {
12973 (char *) "self", NULL
12974 };
12975
12976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12979 {
12980 PyThreadState* __tstate = wxPyBeginAllowThreads();
12981 (arg1)->EndDoc();
12982
12983 wxPyEndAllowThreads(__tstate);
12984 if (PyErr_Occurred()) SWIG_fail;
12985 }
12986 Py_INCREF(Py_None); resultobj = Py_None;
12987 return resultobj;
12988 fail:
12989 return NULL;
12990 }
12991
12992
12993 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12994 PyObject *resultobj;
12995 wxDC *arg1 = (wxDC *) 0 ;
12996 PyObject * obj0 = 0 ;
12997 char *kwnames[] = {
12998 (char *) "self", NULL
12999 };
13000
13001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
13002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13004 {
13005 PyThreadState* __tstate = wxPyBeginAllowThreads();
13006 (arg1)->StartPage();
13007
13008 wxPyEndAllowThreads(__tstate);
13009 if (PyErr_Occurred()) SWIG_fail;
13010 }
13011 Py_INCREF(Py_None); resultobj = Py_None;
13012 return resultobj;
13013 fail:
13014 return NULL;
13015 }
13016
13017
13018 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13019 PyObject *resultobj;
13020 wxDC *arg1 = (wxDC *) 0 ;
13021 PyObject * obj0 = 0 ;
13022 char *kwnames[] = {
13023 (char *) "self", NULL
13024 };
13025
13026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
13027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13029 {
13030 PyThreadState* __tstate = wxPyBeginAllowThreads();
13031 (arg1)->EndPage();
13032
13033 wxPyEndAllowThreads(__tstate);
13034 if (PyErr_Occurred()) SWIG_fail;
13035 }
13036 Py_INCREF(Py_None); resultobj = Py_None;
13037 return resultobj;
13038 fail:
13039 return NULL;
13040 }
13041
13042
13043 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13044 PyObject *resultobj;
13045 wxDC *arg1 = (wxDC *) 0 ;
13046 wxFont *arg2 = 0 ;
13047 PyObject * obj0 = 0 ;
13048 PyObject * obj1 = 0 ;
13049 char *kwnames[] = {
13050 (char *) "self",(char *) "font", NULL
13051 };
13052
13053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
13054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13056 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
13057 SWIG_POINTER_EXCEPTION | 0)) == -1)
13058 SWIG_fail;
13059 if (arg2 == NULL) {
13060 PyErr_SetString(PyExc_TypeError,"null reference");
13061 SWIG_fail;
13062 }
13063 {
13064 PyThreadState* __tstate = wxPyBeginAllowThreads();
13065 (arg1)->SetFont((wxFont const &)*arg2);
13066
13067 wxPyEndAllowThreads(__tstate);
13068 if (PyErr_Occurred()) SWIG_fail;
13069 }
13070 Py_INCREF(Py_None); resultobj = Py_None;
13071 return resultobj;
13072 fail:
13073 return NULL;
13074 }
13075
13076
13077 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13078 PyObject *resultobj;
13079 wxDC *arg1 = (wxDC *) 0 ;
13080 wxPen *arg2 = 0 ;
13081 PyObject * obj0 = 0 ;
13082 PyObject * obj1 = 0 ;
13083 char *kwnames[] = {
13084 (char *) "self",(char *) "pen", NULL
13085 };
13086
13087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
13088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13090 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
13091 SWIG_POINTER_EXCEPTION | 0)) == -1)
13092 SWIG_fail;
13093 if (arg2 == NULL) {
13094 PyErr_SetString(PyExc_TypeError,"null reference");
13095 SWIG_fail;
13096 }
13097 {
13098 PyThreadState* __tstate = wxPyBeginAllowThreads();
13099 (arg1)->SetPen((wxPen const &)*arg2);
13100
13101 wxPyEndAllowThreads(__tstate);
13102 if (PyErr_Occurred()) SWIG_fail;
13103 }
13104 Py_INCREF(Py_None); resultobj = Py_None;
13105 return resultobj;
13106 fail:
13107 return NULL;
13108 }
13109
13110
13111 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13112 PyObject *resultobj;
13113 wxDC *arg1 = (wxDC *) 0 ;
13114 wxBrush *arg2 = 0 ;
13115 PyObject * obj0 = 0 ;
13116 PyObject * obj1 = 0 ;
13117 char *kwnames[] = {
13118 (char *) "self",(char *) "brush", NULL
13119 };
13120
13121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
13122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13124 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13125 SWIG_POINTER_EXCEPTION | 0)) == -1)
13126 SWIG_fail;
13127 if (arg2 == NULL) {
13128 PyErr_SetString(PyExc_TypeError,"null reference");
13129 SWIG_fail;
13130 }
13131 {
13132 PyThreadState* __tstate = wxPyBeginAllowThreads();
13133 (arg1)->SetBrush((wxBrush const &)*arg2);
13134
13135 wxPyEndAllowThreads(__tstate);
13136 if (PyErr_Occurred()) SWIG_fail;
13137 }
13138 Py_INCREF(Py_None); resultobj = Py_None;
13139 return resultobj;
13140 fail:
13141 return NULL;
13142 }
13143
13144
13145 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13146 PyObject *resultobj;
13147 wxDC *arg1 = (wxDC *) 0 ;
13148 wxBrush *arg2 = 0 ;
13149 PyObject * obj0 = 0 ;
13150 PyObject * obj1 = 0 ;
13151 char *kwnames[] = {
13152 (char *) "self",(char *) "brush", NULL
13153 };
13154
13155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
13156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13158 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13159 SWIG_POINTER_EXCEPTION | 0)) == -1)
13160 SWIG_fail;
13161 if (arg2 == NULL) {
13162 PyErr_SetString(PyExc_TypeError,"null reference");
13163 SWIG_fail;
13164 }
13165 {
13166 PyThreadState* __tstate = wxPyBeginAllowThreads();
13167 (arg1)->SetBackground((wxBrush const &)*arg2);
13168
13169 wxPyEndAllowThreads(__tstate);
13170 if (PyErr_Occurred()) SWIG_fail;
13171 }
13172 Py_INCREF(Py_None); resultobj = Py_None;
13173 return resultobj;
13174 fail:
13175 return NULL;
13176 }
13177
13178
13179 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13180 PyObject *resultobj;
13181 wxDC *arg1 = (wxDC *) 0 ;
13182 int arg2 ;
13183 PyObject * obj0 = 0 ;
13184 PyObject * obj1 = 0 ;
13185 char *kwnames[] = {
13186 (char *) "self",(char *) "mode", NULL
13187 };
13188
13189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
13190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13192 arg2 = (int) SWIG_AsInt(obj1);
13193 if (PyErr_Occurred()) SWIG_fail;
13194 {
13195 PyThreadState* __tstate = wxPyBeginAllowThreads();
13196 (arg1)->SetBackgroundMode(arg2);
13197
13198 wxPyEndAllowThreads(__tstate);
13199 if (PyErr_Occurred()) SWIG_fail;
13200 }
13201 Py_INCREF(Py_None); resultobj = Py_None;
13202 return resultobj;
13203 fail:
13204 return NULL;
13205 }
13206
13207
13208 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
13209 PyObject *resultobj;
13210 wxDC *arg1 = (wxDC *) 0 ;
13211 wxPalette *arg2 = 0 ;
13212 PyObject * obj0 = 0 ;
13213 PyObject * obj1 = 0 ;
13214 char *kwnames[] = {
13215 (char *) "self",(char *) "palette", NULL
13216 };
13217
13218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
13219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13221 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
13222 SWIG_POINTER_EXCEPTION | 0)) == -1)
13223 SWIG_fail;
13224 if (arg2 == NULL) {
13225 PyErr_SetString(PyExc_TypeError,"null reference");
13226 SWIG_fail;
13227 }
13228 {
13229 PyThreadState* __tstate = wxPyBeginAllowThreads();
13230 (arg1)->SetPalette((wxPalette const &)*arg2);
13231
13232 wxPyEndAllowThreads(__tstate);
13233 if (PyErr_Occurred()) SWIG_fail;
13234 }
13235 Py_INCREF(Py_None); resultobj = Py_None;
13236 return resultobj;
13237 fail:
13238 return NULL;
13239 }
13240
13241
13242 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
13243 PyObject *resultobj;
13244 wxDC *arg1 = (wxDC *) 0 ;
13245 int arg2 ;
13246 int arg3 ;
13247 int arg4 ;
13248 int arg5 ;
13249 PyObject * obj0 = 0 ;
13250 PyObject * obj1 = 0 ;
13251 PyObject * obj2 = 0 ;
13252 PyObject * obj3 = 0 ;
13253 PyObject * obj4 = 0 ;
13254 char *kwnames[] = {
13255 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
13256 };
13257
13258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13261 arg2 = (int) SWIG_AsInt(obj1);
13262 if (PyErr_Occurred()) SWIG_fail;
13263 arg3 = (int) SWIG_AsInt(obj2);
13264 if (PyErr_Occurred()) SWIG_fail;
13265 arg4 = (int) SWIG_AsInt(obj3);
13266 if (PyErr_Occurred()) SWIG_fail;
13267 arg5 = (int) SWIG_AsInt(obj4);
13268 if (PyErr_Occurred()) SWIG_fail;
13269 {
13270 PyThreadState* __tstate = wxPyBeginAllowThreads();
13271 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
13272
13273 wxPyEndAllowThreads(__tstate);
13274 if (PyErr_Occurred()) SWIG_fail;
13275 }
13276 Py_INCREF(Py_None); resultobj = Py_None;
13277 return resultobj;
13278 fail:
13279 return NULL;
13280 }
13281
13282
13283 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
13284 PyObject *resultobj;
13285 wxDC *arg1 = (wxDC *) 0 ;
13286 wxPoint *arg2 = 0 ;
13287 wxSize *arg3 = 0 ;
13288 wxPoint temp2 ;
13289 wxSize temp3 ;
13290 PyObject * obj0 = 0 ;
13291 PyObject * obj1 = 0 ;
13292 PyObject * obj2 = 0 ;
13293 char *kwnames[] = {
13294 (char *) "self",(char *) "pt",(char *) "sz", NULL
13295 };
13296
13297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
13298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13300 {
13301 arg2 = &temp2;
13302 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13303 }
13304 {
13305 arg3 = &temp3;
13306 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13307 }
13308 {
13309 PyThreadState* __tstate = wxPyBeginAllowThreads();
13310 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
13311
13312 wxPyEndAllowThreads(__tstate);
13313 if (PyErr_Occurred()) SWIG_fail;
13314 }
13315 Py_INCREF(Py_None); resultobj = Py_None;
13316 return resultobj;
13317 fail:
13318 return NULL;
13319 }
13320
13321
13322 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
13323 PyObject *resultobj;
13324 wxDC *arg1 = (wxDC *) 0 ;
13325 wxRect *arg2 = 0 ;
13326 wxRect temp2 ;
13327 PyObject * obj0 = 0 ;
13328 PyObject * obj1 = 0 ;
13329 char *kwnames[] = {
13330 (char *) "self",(char *) "rect", NULL
13331 };
13332
13333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
13334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13336 {
13337 arg2 = &temp2;
13338 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
13339 }
13340 {
13341 PyThreadState* __tstate = wxPyBeginAllowThreads();
13342 (arg1)->SetClippingRegion((wxRect const &)*arg2);
13343
13344 wxPyEndAllowThreads(__tstate);
13345 if (PyErr_Occurred()) SWIG_fail;
13346 }
13347 Py_INCREF(Py_None); resultobj = Py_None;
13348 return resultobj;
13349 fail:
13350 return NULL;
13351 }
13352
13353
13354 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
13355 PyObject *resultobj;
13356 wxDC *arg1 = (wxDC *) 0 ;
13357 wxRegion *arg2 = 0 ;
13358 PyObject * obj0 = 0 ;
13359 PyObject * obj1 = 0 ;
13360 char *kwnames[] = {
13361 (char *) "self",(char *) "region", NULL
13362 };
13363
13364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
13365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13367 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
13368 SWIG_POINTER_EXCEPTION | 0)) == -1)
13369 SWIG_fail;
13370 if (arg2 == NULL) {
13371 PyErr_SetString(PyExc_TypeError,"null reference");
13372 SWIG_fail;
13373 }
13374 {
13375 PyThreadState* __tstate = wxPyBeginAllowThreads();
13376 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
13377
13378 wxPyEndAllowThreads(__tstate);
13379 if (PyErr_Occurred()) SWIG_fail;
13380 }
13381 Py_INCREF(Py_None); resultobj = Py_None;
13382 return resultobj;
13383 fail:
13384 return NULL;
13385 }
13386
13387
13388 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
13389 PyObject *resultobj;
13390 wxDC *arg1 = (wxDC *) 0 ;
13391 PyObject * obj0 = 0 ;
13392 char *kwnames[] = {
13393 (char *) "self", NULL
13394 };
13395
13396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
13397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13399 {
13400 PyThreadState* __tstate = wxPyBeginAllowThreads();
13401 (arg1)->DestroyClippingRegion();
13402
13403 wxPyEndAllowThreads(__tstate);
13404 if (PyErr_Occurred()) SWIG_fail;
13405 }
13406 Py_INCREF(Py_None); resultobj = Py_None;
13407 return resultobj;
13408 fail:
13409 return NULL;
13410 }
13411
13412
13413 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
13414 PyObject *resultobj;
13415 wxDC *arg1 = (wxDC *) 0 ;
13416 int *arg2 = (int *) 0 ;
13417 int *arg3 = (int *) 0 ;
13418 int *arg4 = (int *) 0 ;
13419 int *arg5 = (int *) 0 ;
13420 int temp2 ;
13421 int temp3 ;
13422 int temp4 ;
13423 int temp5 ;
13424 PyObject * obj0 = 0 ;
13425 char *kwnames[] = {
13426 (char *) "self", NULL
13427 };
13428
13429 arg2 = &temp2;
13430 arg3 = &temp3;
13431 arg4 = &temp4;
13432 arg5 = &temp5;
13433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
13434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13436 {
13437 PyThreadState* __tstate = wxPyBeginAllowThreads();
13438 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
13439
13440 wxPyEndAllowThreads(__tstate);
13441 if (PyErr_Occurred()) SWIG_fail;
13442 }
13443 Py_INCREF(Py_None); resultobj = Py_None;
13444 {
13445 PyObject *o = PyInt_FromLong((long) (*arg2));
13446 resultobj = t_output_helper(resultobj,o);
13447 }
13448 {
13449 PyObject *o = PyInt_FromLong((long) (*arg3));
13450 resultobj = t_output_helper(resultobj,o);
13451 }
13452 {
13453 PyObject *o = PyInt_FromLong((long) (*arg4));
13454 resultobj = t_output_helper(resultobj,o);
13455 }
13456 {
13457 PyObject *o = PyInt_FromLong((long) (*arg5));
13458 resultobj = t_output_helper(resultobj,o);
13459 }
13460 return resultobj;
13461 fail:
13462 return NULL;
13463 }
13464
13465
13466 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
13467 PyObject *resultobj;
13468 wxDC *arg1 = (wxDC *) 0 ;
13469 wxRect result;
13470 PyObject * obj0 = 0 ;
13471 char *kwnames[] = {
13472 (char *) "self", NULL
13473 };
13474
13475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
13476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13478 {
13479 PyThreadState* __tstate = wxPyBeginAllowThreads();
13480 result = wxDC_GetClippingRect(arg1);
13481
13482 wxPyEndAllowThreads(__tstate);
13483 if (PyErr_Occurred()) SWIG_fail;
13484 }
13485 {
13486 wxRect * resultptr;
13487 resultptr = new wxRect((wxRect &) result);
13488 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
13489 }
13490 return resultobj;
13491 fail:
13492 return NULL;
13493 }
13494
13495
13496 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
13497 PyObject *resultobj;
13498 wxDC *arg1 = (wxDC *) 0 ;
13499 int result;
13500 PyObject * obj0 = 0 ;
13501 char *kwnames[] = {
13502 (char *) "self", NULL
13503 };
13504
13505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
13506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13508 {
13509 PyThreadState* __tstate = wxPyBeginAllowThreads();
13510 result = (int)((wxDC const *)arg1)->GetCharHeight();
13511
13512 wxPyEndAllowThreads(__tstate);
13513 if (PyErr_Occurred()) SWIG_fail;
13514 }
13515 resultobj = SWIG_FromInt((int)result);
13516 return resultobj;
13517 fail:
13518 return NULL;
13519 }
13520
13521
13522 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
13523 PyObject *resultobj;
13524 wxDC *arg1 = (wxDC *) 0 ;
13525 int result;
13526 PyObject * obj0 = 0 ;
13527 char *kwnames[] = {
13528 (char *) "self", NULL
13529 };
13530
13531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
13532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13534 {
13535 PyThreadState* __tstate = wxPyBeginAllowThreads();
13536 result = (int)((wxDC const *)arg1)->GetCharWidth();
13537
13538 wxPyEndAllowThreads(__tstate);
13539 if (PyErr_Occurred()) SWIG_fail;
13540 }
13541 resultobj = SWIG_FromInt((int)result);
13542 return resultobj;
13543 fail:
13544 return NULL;
13545 }
13546
13547
13548 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13549 PyObject *resultobj;
13550 wxDC *arg1 = (wxDC *) 0 ;
13551 wxString *arg2 = 0 ;
13552 int *arg3 = (int *) 0 ;
13553 int *arg4 = (int *) 0 ;
13554 bool temp2 = False ;
13555 int temp3 ;
13556 int temp4 ;
13557 PyObject * obj0 = 0 ;
13558 PyObject * obj1 = 0 ;
13559 char *kwnames[] = {
13560 (char *) "self",(char *) "string", NULL
13561 };
13562
13563 arg3 = &temp3;
13564 arg4 = &temp4;
13565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
13566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13568 {
13569 arg2 = wxString_in_helper(obj1);
13570 if (arg2 == NULL) SWIG_fail;
13571 temp2 = True;
13572 }
13573 {
13574 PyThreadState* __tstate = wxPyBeginAllowThreads();
13575 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13576
13577 wxPyEndAllowThreads(__tstate);
13578 if (PyErr_Occurred()) SWIG_fail;
13579 }
13580 Py_INCREF(Py_None); resultobj = Py_None;
13581 {
13582 PyObject *o = PyInt_FromLong((long) (*arg3));
13583 resultobj = t_output_helper(resultobj,o);
13584 }
13585 {
13586 PyObject *o = PyInt_FromLong((long) (*arg4));
13587 resultobj = t_output_helper(resultobj,o);
13588 }
13589 {
13590 if (temp2)
13591 delete arg2;
13592 }
13593 return resultobj;
13594 fail:
13595 {
13596 if (temp2)
13597 delete arg2;
13598 }
13599 return NULL;
13600 }
13601
13602
13603 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13604 PyObject *resultobj;
13605 wxDC *arg1 = (wxDC *) 0 ;
13606 wxString *arg2 = 0 ;
13607 int *arg3 = (int *) 0 ;
13608 int *arg4 = (int *) 0 ;
13609 int *arg5 = (int *) 0 ;
13610 int *arg6 = (int *) 0 ;
13611 wxFont *arg7 = (wxFont *) NULL ;
13612 bool temp2 = False ;
13613 int temp3 ;
13614 int temp4 ;
13615 int temp5 ;
13616 int temp6 ;
13617 PyObject * obj0 = 0 ;
13618 PyObject * obj1 = 0 ;
13619 PyObject * obj2 = 0 ;
13620 char *kwnames[] = {
13621 (char *) "self",(char *) "string",(char *) "font", NULL
13622 };
13623
13624 arg3 = &temp3;
13625 arg4 = &temp4;
13626 arg5 = &temp5;
13627 arg6 = &temp6;
13628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13631 {
13632 arg2 = wxString_in_helper(obj1);
13633 if (arg2 == NULL) SWIG_fail;
13634 temp2 = True;
13635 }
13636 if (obj2) {
13637 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
13638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13639 }
13640 {
13641 PyThreadState* __tstate = wxPyBeginAllowThreads();
13642 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13643
13644 wxPyEndAllowThreads(__tstate);
13645 if (PyErr_Occurred()) SWIG_fail;
13646 }
13647 Py_INCREF(Py_None); resultobj = Py_None;
13648 {
13649 PyObject *o = PyInt_FromLong((long) (*arg3));
13650 resultobj = t_output_helper(resultobj,o);
13651 }
13652 {
13653 PyObject *o = PyInt_FromLong((long) (*arg4));
13654 resultobj = t_output_helper(resultobj,o);
13655 }
13656 {
13657 PyObject *o = PyInt_FromLong((long) (*arg5));
13658 resultobj = t_output_helper(resultobj,o);
13659 }
13660 {
13661 PyObject *o = PyInt_FromLong((long) (*arg6));
13662 resultobj = t_output_helper(resultobj,o);
13663 }
13664 {
13665 if (temp2)
13666 delete arg2;
13667 }
13668 return resultobj;
13669 fail:
13670 {
13671 if (temp2)
13672 delete arg2;
13673 }
13674 return NULL;
13675 }
13676
13677
13678 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13679 PyObject *resultobj;
13680 wxDC *arg1 = (wxDC *) 0 ;
13681 wxString *arg2 = 0 ;
13682 int *arg3 = (int *) 0 ;
13683 int *arg4 = (int *) 0 ;
13684 int *arg5 = (int *) 0 ;
13685 wxFont *arg6 = (wxFont *) NULL ;
13686 bool temp2 = False ;
13687 int temp3 ;
13688 int temp4 ;
13689 int temp5 ;
13690 PyObject * obj0 = 0 ;
13691 PyObject * obj1 = 0 ;
13692 PyObject * obj2 = 0 ;
13693 char *kwnames[] = {
13694 (char *) "self",(char *) "text",(char *) "font", NULL
13695 };
13696
13697 arg3 = &temp3;
13698 arg4 = &temp4;
13699 arg5 = &temp5;
13700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13703 {
13704 arg2 = wxString_in_helper(obj1);
13705 if (arg2 == NULL) SWIG_fail;
13706 temp2 = True;
13707 }
13708 if (obj2) {
13709 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13711 }
13712 {
13713 PyThreadState* __tstate = wxPyBeginAllowThreads();
13714 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13715
13716 wxPyEndAllowThreads(__tstate);
13717 if (PyErr_Occurred()) SWIG_fail;
13718 }
13719 Py_INCREF(Py_None); resultobj = Py_None;
13720 {
13721 PyObject *o = PyInt_FromLong((long) (*arg3));
13722 resultobj = t_output_helper(resultobj,o);
13723 }
13724 {
13725 PyObject *o = PyInt_FromLong((long) (*arg4));
13726 resultobj = t_output_helper(resultobj,o);
13727 }
13728 {
13729 PyObject *o = PyInt_FromLong((long) (*arg5));
13730 resultobj = t_output_helper(resultobj,o);
13731 }
13732 {
13733 if (temp2)
13734 delete arg2;
13735 }
13736 return resultobj;
13737 fail:
13738 {
13739 if (temp2)
13740 delete arg2;
13741 }
13742 return NULL;
13743 }
13744
13745
13746 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
13747 PyObject *resultobj;
13748 wxDC *arg1 = (wxDC *) 0 ;
13749 wxString *arg2 = 0 ;
13750 wxArrayInt result;
13751 bool temp2 = False ;
13752 PyObject * obj0 = 0 ;
13753 PyObject * obj1 = 0 ;
13754 char *kwnames[] = {
13755 (char *) "self",(char *) "text", NULL
13756 };
13757
13758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13761 {
13762 arg2 = wxString_in_helper(obj1);
13763 if (arg2 == NULL) SWIG_fail;
13764 temp2 = True;
13765 }
13766 {
13767 PyThreadState* __tstate = wxPyBeginAllowThreads();
13768 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13769
13770 wxPyEndAllowThreads(__tstate);
13771 if (PyErr_Occurred()) SWIG_fail;
13772 }
13773 {
13774 resultobj = PyList_New(0);
13775 size_t idx;
13776 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13777 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13778 PyList_Append(resultobj, val);
13779 Py_DECREF(val);
13780 }
13781 }
13782 {
13783 if (temp2)
13784 delete arg2;
13785 }
13786 return resultobj;
13787 fail:
13788 {
13789 if (temp2)
13790 delete arg2;
13791 }
13792 return NULL;
13793 }
13794
13795
13796 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13797 PyObject *resultobj;
13798 wxDC *arg1 = (wxDC *) 0 ;
13799 wxSize result;
13800 PyObject * obj0 = 0 ;
13801 char *kwnames[] = {
13802 (char *) "self", NULL
13803 };
13804
13805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13808 {
13809 PyThreadState* __tstate = wxPyBeginAllowThreads();
13810 result = (arg1)->GetSize();
13811
13812 wxPyEndAllowThreads(__tstate);
13813 if (PyErr_Occurred()) SWIG_fail;
13814 }
13815 {
13816 wxSize * resultptr;
13817 resultptr = new wxSize((wxSize &) result);
13818 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13819 }
13820 return resultobj;
13821 fail:
13822 return NULL;
13823 }
13824
13825
13826 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13827 PyObject *resultobj;
13828 wxDC *arg1 = (wxDC *) 0 ;
13829 int *arg2 = (int *) 0 ;
13830 int *arg3 = (int *) 0 ;
13831 int temp2 ;
13832 int temp3 ;
13833 PyObject * obj0 = 0 ;
13834 char *kwnames[] = {
13835 (char *) "self", NULL
13836 };
13837
13838 arg2 = &temp2;
13839 arg3 = &temp3;
13840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13843 {
13844 PyThreadState* __tstate = wxPyBeginAllowThreads();
13845 (arg1)->GetSize(arg2,arg3);
13846
13847 wxPyEndAllowThreads(__tstate);
13848 if (PyErr_Occurred()) SWIG_fail;
13849 }
13850 Py_INCREF(Py_None); resultobj = Py_None;
13851 {
13852 PyObject *o = PyInt_FromLong((long) (*arg2));
13853 resultobj = t_output_helper(resultobj,o);
13854 }
13855 {
13856 PyObject *o = PyInt_FromLong((long) (*arg3));
13857 resultobj = t_output_helper(resultobj,o);
13858 }
13859 return resultobj;
13860 fail:
13861 return NULL;
13862 }
13863
13864
13865 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13866 PyObject *resultobj;
13867 wxDC *arg1 = (wxDC *) 0 ;
13868 wxSize result;
13869 PyObject * obj0 = 0 ;
13870 char *kwnames[] = {
13871 (char *) "self", NULL
13872 };
13873
13874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13877 {
13878 PyThreadState* __tstate = wxPyBeginAllowThreads();
13879 result = ((wxDC const *)arg1)->GetSizeMM();
13880
13881 wxPyEndAllowThreads(__tstate);
13882 if (PyErr_Occurred()) SWIG_fail;
13883 }
13884 {
13885 wxSize * resultptr;
13886 resultptr = new wxSize((wxSize &) result);
13887 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13888 }
13889 return resultobj;
13890 fail:
13891 return NULL;
13892 }
13893
13894
13895 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13896 PyObject *resultobj;
13897 wxDC *arg1 = (wxDC *) 0 ;
13898 int *arg2 = (int *) 0 ;
13899 int *arg3 = (int *) 0 ;
13900 int temp2 ;
13901 int temp3 ;
13902 PyObject * obj0 = 0 ;
13903 char *kwnames[] = {
13904 (char *) "self", NULL
13905 };
13906
13907 arg2 = &temp2;
13908 arg3 = &temp3;
13909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13912 {
13913 PyThreadState* __tstate = wxPyBeginAllowThreads();
13914 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13915
13916 wxPyEndAllowThreads(__tstate);
13917 if (PyErr_Occurred()) SWIG_fail;
13918 }
13919 Py_INCREF(Py_None); resultobj = Py_None;
13920 {
13921 PyObject *o = PyInt_FromLong((long) (*arg2));
13922 resultobj = t_output_helper(resultobj,o);
13923 }
13924 {
13925 PyObject *o = PyInt_FromLong((long) (*arg3));
13926 resultobj = t_output_helper(resultobj,o);
13927 }
13928 return resultobj;
13929 fail:
13930 return NULL;
13931 }
13932
13933
13934 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13935 PyObject *resultobj;
13936 wxDC *arg1 = (wxDC *) 0 ;
13937 int arg2 ;
13938 int result;
13939 PyObject * obj0 = 0 ;
13940 PyObject * obj1 = 0 ;
13941 char *kwnames[] = {
13942 (char *) "self",(char *) "x", NULL
13943 };
13944
13945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13948 arg2 = (int) SWIG_AsInt(obj1);
13949 if (PyErr_Occurred()) SWIG_fail;
13950 {
13951 PyThreadState* __tstate = wxPyBeginAllowThreads();
13952 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13953
13954 wxPyEndAllowThreads(__tstate);
13955 if (PyErr_Occurred()) SWIG_fail;
13956 }
13957 resultobj = SWIG_FromInt((int)result);
13958 return resultobj;
13959 fail:
13960 return NULL;
13961 }
13962
13963
13964 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13965 PyObject *resultobj;
13966 wxDC *arg1 = (wxDC *) 0 ;
13967 int arg2 ;
13968 int result;
13969 PyObject * obj0 = 0 ;
13970 PyObject * obj1 = 0 ;
13971 char *kwnames[] = {
13972 (char *) "self",(char *) "y", NULL
13973 };
13974
13975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13978 arg2 = (int) SWIG_AsInt(obj1);
13979 if (PyErr_Occurred()) SWIG_fail;
13980 {
13981 PyThreadState* __tstate = wxPyBeginAllowThreads();
13982 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13983
13984 wxPyEndAllowThreads(__tstate);
13985 if (PyErr_Occurred()) SWIG_fail;
13986 }
13987 resultobj = SWIG_FromInt((int)result);
13988 return resultobj;
13989 fail:
13990 return NULL;
13991 }
13992
13993
13994 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13995 PyObject *resultobj;
13996 wxDC *arg1 = (wxDC *) 0 ;
13997 int arg2 ;
13998 int result;
13999 PyObject * obj0 = 0 ;
14000 PyObject * obj1 = 0 ;
14001 char *kwnames[] = {
14002 (char *) "self",(char *) "x", NULL
14003 };
14004
14005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
14006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14008 arg2 = (int) SWIG_AsInt(obj1);
14009 if (PyErr_Occurred()) SWIG_fail;
14010 {
14011 PyThreadState* __tstate = wxPyBeginAllowThreads();
14012 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
14013
14014 wxPyEndAllowThreads(__tstate);
14015 if (PyErr_Occurred()) SWIG_fail;
14016 }
14017 resultobj = SWIG_FromInt((int)result);
14018 return resultobj;
14019 fail:
14020 return NULL;
14021 }
14022
14023
14024 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
14025 PyObject *resultobj;
14026 wxDC *arg1 = (wxDC *) 0 ;
14027 int arg2 ;
14028 int result;
14029 PyObject * obj0 = 0 ;
14030 PyObject * obj1 = 0 ;
14031 char *kwnames[] = {
14032 (char *) "self",(char *) "y", NULL
14033 };
14034
14035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
14036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14038 arg2 = (int) SWIG_AsInt(obj1);
14039 if (PyErr_Occurred()) SWIG_fail;
14040 {
14041 PyThreadState* __tstate = wxPyBeginAllowThreads();
14042 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
14043
14044 wxPyEndAllowThreads(__tstate);
14045 if (PyErr_Occurred()) SWIG_fail;
14046 }
14047 resultobj = SWIG_FromInt((int)result);
14048 return resultobj;
14049 fail:
14050 return NULL;
14051 }
14052
14053
14054 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
14055 PyObject *resultobj;
14056 wxDC *arg1 = (wxDC *) 0 ;
14057 int arg2 ;
14058 int result;
14059 PyObject * obj0 = 0 ;
14060 PyObject * obj1 = 0 ;
14061 char *kwnames[] = {
14062 (char *) "self",(char *) "x", NULL
14063 };
14064
14065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
14066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14068 arg2 = (int) SWIG_AsInt(obj1);
14069 if (PyErr_Occurred()) SWIG_fail;
14070 {
14071 PyThreadState* __tstate = wxPyBeginAllowThreads();
14072 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
14073
14074 wxPyEndAllowThreads(__tstate);
14075 if (PyErr_Occurred()) SWIG_fail;
14076 }
14077 resultobj = SWIG_FromInt((int)result);
14078 return resultobj;
14079 fail:
14080 return NULL;
14081 }
14082
14083
14084 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
14085 PyObject *resultobj;
14086 wxDC *arg1 = (wxDC *) 0 ;
14087 int arg2 ;
14088 int result;
14089 PyObject * obj0 = 0 ;
14090 PyObject * obj1 = 0 ;
14091 char *kwnames[] = {
14092 (char *) "self",(char *) "y", NULL
14093 };
14094
14095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
14096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14098 arg2 = (int) SWIG_AsInt(obj1);
14099 if (PyErr_Occurred()) SWIG_fail;
14100 {
14101 PyThreadState* __tstate = wxPyBeginAllowThreads();
14102 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
14103
14104 wxPyEndAllowThreads(__tstate);
14105 if (PyErr_Occurred()) SWIG_fail;
14106 }
14107 resultobj = SWIG_FromInt((int)result);
14108 return resultobj;
14109 fail:
14110 return NULL;
14111 }
14112
14113
14114 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
14115 PyObject *resultobj;
14116 wxDC *arg1 = (wxDC *) 0 ;
14117 int arg2 ;
14118 int result;
14119 PyObject * obj0 = 0 ;
14120 PyObject * obj1 = 0 ;
14121 char *kwnames[] = {
14122 (char *) "self",(char *) "x", NULL
14123 };
14124
14125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
14126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14128 arg2 = (int) SWIG_AsInt(obj1);
14129 if (PyErr_Occurred()) SWIG_fail;
14130 {
14131 PyThreadState* __tstate = wxPyBeginAllowThreads();
14132 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
14133
14134 wxPyEndAllowThreads(__tstate);
14135 if (PyErr_Occurred()) SWIG_fail;
14136 }
14137 resultobj = SWIG_FromInt((int)result);
14138 return resultobj;
14139 fail:
14140 return NULL;
14141 }
14142
14143
14144 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
14145 PyObject *resultobj;
14146 wxDC *arg1 = (wxDC *) 0 ;
14147 int arg2 ;
14148 int result;
14149 PyObject * obj0 = 0 ;
14150 PyObject * obj1 = 0 ;
14151 char *kwnames[] = {
14152 (char *) "self",(char *) "y", NULL
14153 };
14154
14155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
14156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14158 arg2 = (int) SWIG_AsInt(obj1);
14159 if (PyErr_Occurred()) SWIG_fail;
14160 {
14161 PyThreadState* __tstate = wxPyBeginAllowThreads();
14162 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
14163
14164 wxPyEndAllowThreads(__tstate);
14165 if (PyErr_Occurred()) SWIG_fail;
14166 }
14167 resultobj = SWIG_FromInt((int)result);
14168 return resultobj;
14169 fail:
14170 return NULL;
14171 }
14172
14173
14174 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
14175 PyObject *resultobj;
14176 wxDC *arg1 = (wxDC *) 0 ;
14177 bool result;
14178 PyObject * obj0 = 0 ;
14179 char *kwnames[] = {
14180 (char *) "self", NULL
14181 };
14182
14183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
14184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14186 {
14187 PyThreadState* __tstate = wxPyBeginAllowThreads();
14188 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
14189
14190 wxPyEndAllowThreads(__tstate);
14191 if (PyErr_Occurred()) SWIG_fail;
14192 }
14193 {
14194 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14195 }
14196 return resultobj;
14197 fail:
14198 return NULL;
14199 }
14200
14201
14202 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
14203 PyObject *resultobj;
14204 wxDC *arg1 = (wxDC *) 0 ;
14205 bool result;
14206 PyObject * obj0 = 0 ;
14207 char *kwnames[] = {
14208 (char *) "self", NULL
14209 };
14210
14211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
14212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14214 {
14215 PyThreadState* __tstate = wxPyBeginAllowThreads();
14216 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
14217
14218 wxPyEndAllowThreads(__tstate);
14219 if (PyErr_Occurred()) SWIG_fail;
14220 }
14221 {
14222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14223 }
14224 return resultobj;
14225 fail:
14226 return NULL;
14227 }
14228
14229
14230 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
14231 PyObject *resultobj;
14232 wxDC *arg1 = (wxDC *) 0 ;
14233 int result;
14234 PyObject * obj0 = 0 ;
14235 char *kwnames[] = {
14236 (char *) "self", NULL
14237 };
14238
14239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
14240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14242 {
14243 PyThreadState* __tstate = wxPyBeginAllowThreads();
14244 result = (int)((wxDC const *)arg1)->GetDepth();
14245
14246 wxPyEndAllowThreads(__tstate);
14247 if (PyErr_Occurred()) SWIG_fail;
14248 }
14249 resultobj = SWIG_FromInt((int)result);
14250 return resultobj;
14251 fail:
14252 return NULL;
14253 }
14254
14255
14256 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
14257 PyObject *resultobj;
14258 wxDC *arg1 = (wxDC *) 0 ;
14259 wxSize result;
14260 PyObject * obj0 = 0 ;
14261 char *kwnames[] = {
14262 (char *) "self", NULL
14263 };
14264
14265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
14266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14268 {
14269 PyThreadState* __tstate = wxPyBeginAllowThreads();
14270 result = ((wxDC const *)arg1)->GetPPI();
14271
14272 wxPyEndAllowThreads(__tstate);
14273 if (PyErr_Occurred()) SWIG_fail;
14274 }
14275 {
14276 wxSize * resultptr;
14277 resultptr = new wxSize((wxSize &) result);
14278 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14279 }
14280 return resultobj;
14281 fail:
14282 return NULL;
14283 }
14284
14285
14286 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
14287 PyObject *resultobj;
14288 wxDC *arg1 = (wxDC *) 0 ;
14289 bool result;
14290 PyObject * obj0 = 0 ;
14291 char *kwnames[] = {
14292 (char *) "self", NULL
14293 };
14294
14295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
14296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14298 {
14299 PyThreadState* __tstate = wxPyBeginAllowThreads();
14300 result = (bool)((wxDC const *)arg1)->Ok();
14301
14302 wxPyEndAllowThreads(__tstate);
14303 if (PyErr_Occurred()) SWIG_fail;
14304 }
14305 {
14306 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14307 }
14308 return resultobj;
14309 fail:
14310 return NULL;
14311 }
14312
14313
14314 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14315 PyObject *resultobj;
14316 wxDC *arg1 = (wxDC *) 0 ;
14317 int result;
14318 PyObject * obj0 = 0 ;
14319 char *kwnames[] = {
14320 (char *) "self", NULL
14321 };
14322
14323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
14324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14326 {
14327 PyThreadState* __tstate = wxPyBeginAllowThreads();
14328 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
14329
14330 wxPyEndAllowThreads(__tstate);
14331 if (PyErr_Occurred()) SWIG_fail;
14332 }
14333 resultobj = SWIG_FromInt((int)result);
14334 return resultobj;
14335 fail:
14336 return NULL;
14337 }
14338
14339
14340 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14341 PyObject *resultobj;
14342 wxDC *arg1 = (wxDC *) 0 ;
14343 wxBrush *result;
14344 PyObject * obj0 = 0 ;
14345 char *kwnames[] = {
14346 (char *) "self", NULL
14347 };
14348
14349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
14350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14352 {
14353 PyThreadState* __tstate = wxPyBeginAllowThreads();
14354 {
14355 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
14356 result = (wxBrush *) &_result_ref;
14357 }
14358
14359 wxPyEndAllowThreads(__tstate);
14360 if (PyErr_Occurred()) SWIG_fail;
14361 }
14362 {
14363 wxBrush* resultptr = new wxBrush(*result);
14364 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14365 }
14366 return resultobj;
14367 fail:
14368 return NULL;
14369 }
14370
14371
14372 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14373 PyObject *resultobj;
14374 wxDC *arg1 = (wxDC *) 0 ;
14375 wxBrush *result;
14376 PyObject * obj0 = 0 ;
14377 char *kwnames[] = {
14378 (char *) "self", NULL
14379 };
14380
14381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",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 {
14387 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
14388 result = (wxBrush *) &_result_ref;
14389 }
14390
14391 wxPyEndAllowThreads(__tstate);
14392 if (PyErr_Occurred()) SWIG_fail;
14393 }
14394 {
14395 wxBrush* resultptr = new wxBrush(*result);
14396 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14397 }
14398 return resultobj;
14399 fail:
14400 return NULL;
14401 }
14402
14403
14404 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14405 PyObject *resultobj;
14406 wxDC *arg1 = (wxDC *) 0 ;
14407 wxFont *result;
14408 PyObject * obj0 = 0 ;
14409 char *kwnames[] = {
14410 (char *) "self", NULL
14411 };
14412
14413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
14414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14416 {
14417 PyThreadState* __tstate = wxPyBeginAllowThreads();
14418 {
14419 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
14420 result = (wxFont *) &_result_ref;
14421 }
14422
14423 wxPyEndAllowThreads(__tstate);
14424 if (PyErr_Occurred()) SWIG_fail;
14425 }
14426 {
14427 wxFont* resultptr = new wxFont(*result);
14428 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
14429 }
14430 return resultobj;
14431 fail:
14432 return NULL;
14433 }
14434
14435
14436 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
14437 PyObject *resultobj;
14438 wxDC *arg1 = (wxDC *) 0 ;
14439 wxPen *result;
14440 PyObject * obj0 = 0 ;
14441 char *kwnames[] = {
14442 (char *) "self", NULL
14443 };
14444
14445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
14446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14448 {
14449 PyThreadState* __tstate = wxPyBeginAllowThreads();
14450 {
14451 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
14452 result = (wxPen *) &_result_ref;
14453 }
14454
14455 wxPyEndAllowThreads(__tstate);
14456 if (PyErr_Occurred()) SWIG_fail;
14457 }
14458 {
14459 wxPen* resultptr = new wxPen(*result);
14460 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
14461 }
14462 return resultobj;
14463 fail:
14464 return NULL;
14465 }
14466
14467
14468 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14469 PyObject *resultobj;
14470 wxDC *arg1 = (wxDC *) 0 ;
14471 wxColour *result;
14472 PyObject * obj0 = 0 ;
14473 char *kwnames[] = {
14474 (char *) "self", NULL
14475 };
14476
14477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
14478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14480 {
14481 PyThreadState* __tstate = wxPyBeginAllowThreads();
14482 {
14483 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
14484 result = (wxColour *) &_result_ref;
14485 }
14486
14487 wxPyEndAllowThreads(__tstate);
14488 if (PyErr_Occurred()) SWIG_fail;
14489 }
14490 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14491 return resultobj;
14492 fail:
14493 return NULL;
14494 }
14495
14496
14497 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14498 PyObject *resultobj;
14499 wxDC *arg1 = (wxDC *) 0 ;
14500 wxColour *result;
14501 PyObject * obj0 = 0 ;
14502 char *kwnames[] = {
14503 (char *) "self", NULL
14504 };
14505
14506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
14507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14509 {
14510 PyThreadState* __tstate = wxPyBeginAllowThreads();
14511 {
14512 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
14513 result = (wxColour *) &_result_ref;
14514 }
14515
14516 wxPyEndAllowThreads(__tstate);
14517 if (PyErr_Occurred()) SWIG_fail;
14518 }
14519 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14520 return resultobj;
14521 fail:
14522 return NULL;
14523 }
14524
14525
14526 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14527 PyObject *resultobj;
14528 wxDC *arg1 = (wxDC *) 0 ;
14529 wxColour *arg2 = 0 ;
14530 wxColour temp2 ;
14531 PyObject * obj0 = 0 ;
14532 PyObject * obj1 = 0 ;
14533 char *kwnames[] = {
14534 (char *) "self",(char *) "colour", NULL
14535 };
14536
14537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
14538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14540 {
14541 arg2 = &temp2;
14542 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14543 }
14544 {
14545 PyThreadState* __tstate = wxPyBeginAllowThreads();
14546 (arg1)->SetTextForeground((wxColour const &)*arg2);
14547
14548 wxPyEndAllowThreads(__tstate);
14549 if (PyErr_Occurred()) SWIG_fail;
14550 }
14551 Py_INCREF(Py_None); resultobj = Py_None;
14552 return resultobj;
14553 fail:
14554 return NULL;
14555 }
14556
14557
14558 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14559 PyObject *resultobj;
14560 wxDC *arg1 = (wxDC *) 0 ;
14561 wxColour *arg2 = 0 ;
14562 wxColour temp2 ;
14563 PyObject * obj0 = 0 ;
14564 PyObject * obj1 = 0 ;
14565 char *kwnames[] = {
14566 (char *) "self",(char *) "colour", NULL
14567 };
14568
14569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
14570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14572 {
14573 arg2 = &temp2;
14574 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14575 }
14576 {
14577 PyThreadState* __tstate = wxPyBeginAllowThreads();
14578 (arg1)->SetTextBackground((wxColour const &)*arg2);
14579
14580 wxPyEndAllowThreads(__tstate);
14581 if (PyErr_Occurred()) SWIG_fail;
14582 }
14583 Py_INCREF(Py_None); resultobj = Py_None;
14584 return resultobj;
14585 fail:
14586 return NULL;
14587 }
14588
14589
14590 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14591 PyObject *resultobj;
14592 wxDC *arg1 = (wxDC *) 0 ;
14593 int result;
14594 PyObject * obj0 = 0 ;
14595 char *kwnames[] = {
14596 (char *) "self", NULL
14597 };
14598
14599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
14600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14602 {
14603 PyThreadState* __tstate = wxPyBeginAllowThreads();
14604 result = (int)((wxDC const *)arg1)->GetMapMode();
14605
14606 wxPyEndAllowThreads(__tstate);
14607 if (PyErr_Occurred()) SWIG_fail;
14608 }
14609 resultobj = SWIG_FromInt((int)result);
14610 return resultobj;
14611 fail:
14612 return NULL;
14613 }
14614
14615
14616 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14617 PyObject *resultobj;
14618 wxDC *arg1 = (wxDC *) 0 ;
14619 int arg2 ;
14620 PyObject * obj0 = 0 ;
14621 PyObject * obj1 = 0 ;
14622 char *kwnames[] = {
14623 (char *) "self",(char *) "mode", NULL
14624 };
14625
14626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
14627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14629 arg2 = (int) SWIG_AsInt(obj1);
14630 if (PyErr_Occurred()) SWIG_fail;
14631 {
14632 PyThreadState* __tstate = wxPyBeginAllowThreads();
14633 (arg1)->SetMapMode(arg2);
14634
14635 wxPyEndAllowThreads(__tstate);
14636 if (PyErr_Occurred()) SWIG_fail;
14637 }
14638 Py_INCREF(Py_None); resultobj = Py_None;
14639 return resultobj;
14640 fail:
14641 return NULL;
14642 }
14643
14644
14645 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14646 PyObject *resultobj;
14647 wxDC *arg1 = (wxDC *) 0 ;
14648 double *arg2 = (double *) 0 ;
14649 double *arg3 = (double *) 0 ;
14650 double temp2 ;
14651 double temp3 ;
14652 PyObject * obj0 = 0 ;
14653 char *kwnames[] = {
14654 (char *) "self", NULL
14655 };
14656
14657 arg2 = &temp2;
14658 arg3 = &temp3;
14659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14662 {
14663 PyThreadState* __tstate = wxPyBeginAllowThreads();
14664 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14665
14666 wxPyEndAllowThreads(__tstate);
14667 if (PyErr_Occurred()) SWIG_fail;
14668 }
14669 Py_INCREF(Py_None); resultobj = Py_None;
14670 {
14671 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14672 resultobj = t_output_helper(resultobj,o);
14673 }
14674 {
14675 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14676 resultobj = t_output_helper(resultobj,o);
14677 }
14678 return resultobj;
14679 fail:
14680 return NULL;
14681 }
14682
14683
14684 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14685 PyObject *resultobj;
14686 wxDC *arg1 = (wxDC *) 0 ;
14687 double arg2 ;
14688 double arg3 ;
14689 PyObject * obj0 = 0 ;
14690 PyObject * obj1 = 0 ;
14691 PyObject * obj2 = 0 ;
14692 char *kwnames[] = {
14693 (char *) "self",(char *) "x",(char *) "y", NULL
14694 };
14695
14696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14699 arg2 = (double) SWIG_AsDouble(obj1);
14700 if (PyErr_Occurred()) SWIG_fail;
14701 arg3 = (double) SWIG_AsDouble(obj2);
14702 if (PyErr_Occurred()) SWIG_fail;
14703 {
14704 PyThreadState* __tstate = wxPyBeginAllowThreads();
14705 (arg1)->SetUserScale(arg2,arg3);
14706
14707 wxPyEndAllowThreads(__tstate);
14708 if (PyErr_Occurred()) SWIG_fail;
14709 }
14710 Py_INCREF(Py_None); resultobj = Py_None;
14711 return resultobj;
14712 fail:
14713 return NULL;
14714 }
14715
14716
14717 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14718 PyObject *resultobj;
14719 wxDC *arg1 = (wxDC *) 0 ;
14720 double *arg2 = (double *) 0 ;
14721 double *arg3 = (double *) 0 ;
14722 double temp2 ;
14723 double temp3 ;
14724 PyObject * obj0 = 0 ;
14725 char *kwnames[] = {
14726 (char *) "self", NULL
14727 };
14728
14729 arg2 = &temp2;
14730 arg3 = &temp3;
14731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14734 {
14735 PyThreadState* __tstate = wxPyBeginAllowThreads();
14736 (arg1)->GetLogicalScale(arg2,arg3);
14737
14738 wxPyEndAllowThreads(__tstate);
14739 if (PyErr_Occurred()) SWIG_fail;
14740 }
14741 Py_INCREF(Py_None); resultobj = Py_None;
14742 {
14743 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14744 resultobj = t_output_helper(resultobj,o);
14745 }
14746 {
14747 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14748 resultobj = t_output_helper(resultobj,o);
14749 }
14750 return resultobj;
14751 fail:
14752 return NULL;
14753 }
14754
14755
14756 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14757 PyObject *resultobj;
14758 wxDC *arg1 = (wxDC *) 0 ;
14759 double arg2 ;
14760 double arg3 ;
14761 PyObject * obj0 = 0 ;
14762 PyObject * obj1 = 0 ;
14763 PyObject * obj2 = 0 ;
14764 char *kwnames[] = {
14765 (char *) "self",(char *) "x",(char *) "y", NULL
14766 };
14767
14768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14771 arg2 = (double) SWIG_AsDouble(obj1);
14772 if (PyErr_Occurred()) SWIG_fail;
14773 arg3 = (double) SWIG_AsDouble(obj2);
14774 if (PyErr_Occurred()) SWIG_fail;
14775 {
14776 PyThreadState* __tstate = wxPyBeginAllowThreads();
14777 (arg1)->SetLogicalScale(arg2,arg3);
14778
14779 wxPyEndAllowThreads(__tstate);
14780 if (PyErr_Occurred()) SWIG_fail;
14781 }
14782 Py_INCREF(Py_None); resultobj = Py_None;
14783 return resultobj;
14784 fail:
14785 return NULL;
14786 }
14787
14788
14789 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14790 PyObject *resultobj;
14791 wxDC *arg1 = (wxDC *) 0 ;
14792 wxPoint result;
14793 PyObject * obj0 = 0 ;
14794 char *kwnames[] = {
14795 (char *) "self", NULL
14796 };
14797
14798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14801 {
14802 PyThreadState* __tstate = wxPyBeginAllowThreads();
14803 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14804
14805 wxPyEndAllowThreads(__tstate);
14806 if (PyErr_Occurred()) SWIG_fail;
14807 }
14808 {
14809 wxPoint * resultptr;
14810 resultptr = new wxPoint((wxPoint &) result);
14811 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14812 }
14813 return resultobj;
14814 fail:
14815 return NULL;
14816 }
14817
14818
14819 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14820 PyObject *resultobj;
14821 wxDC *arg1 = (wxDC *) 0 ;
14822 int *arg2 = (int *) 0 ;
14823 int *arg3 = (int *) 0 ;
14824 int temp2 ;
14825 int temp3 ;
14826 PyObject * obj0 = 0 ;
14827 char *kwnames[] = {
14828 (char *) "self", NULL
14829 };
14830
14831 arg2 = &temp2;
14832 arg3 = &temp3;
14833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14836 {
14837 PyThreadState* __tstate = wxPyBeginAllowThreads();
14838 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14839
14840 wxPyEndAllowThreads(__tstate);
14841 if (PyErr_Occurred()) SWIG_fail;
14842 }
14843 Py_INCREF(Py_None); resultobj = Py_None;
14844 {
14845 PyObject *o = PyInt_FromLong((long) (*arg2));
14846 resultobj = t_output_helper(resultobj,o);
14847 }
14848 {
14849 PyObject *o = PyInt_FromLong((long) (*arg3));
14850 resultobj = t_output_helper(resultobj,o);
14851 }
14852 return resultobj;
14853 fail:
14854 return NULL;
14855 }
14856
14857
14858 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14859 PyObject *resultobj;
14860 wxDC *arg1 = (wxDC *) 0 ;
14861 int arg2 ;
14862 int arg3 ;
14863 PyObject * obj0 = 0 ;
14864 PyObject * obj1 = 0 ;
14865 PyObject * obj2 = 0 ;
14866 char *kwnames[] = {
14867 (char *) "self",(char *) "x",(char *) "y", NULL
14868 };
14869
14870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14873 arg2 = (int) SWIG_AsInt(obj1);
14874 if (PyErr_Occurred()) SWIG_fail;
14875 arg3 = (int) SWIG_AsInt(obj2);
14876 if (PyErr_Occurred()) SWIG_fail;
14877 {
14878 PyThreadState* __tstate = wxPyBeginAllowThreads();
14879 (arg1)->SetLogicalOrigin(arg2,arg3);
14880
14881 wxPyEndAllowThreads(__tstate);
14882 if (PyErr_Occurred()) SWIG_fail;
14883 }
14884 Py_INCREF(Py_None); resultobj = Py_None;
14885 return resultobj;
14886 fail:
14887 return NULL;
14888 }
14889
14890
14891 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14892 PyObject *resultobj;
14893 wxDC *arg1 = (wxDC *) 0 ;
14894 wxPoint result;
14895 PyObject * obj0 = 0 ;
14896 char *kwnames[] = {
14897 (char *) "self", NULL
14898 };
14899
14900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14903 {
14904 PyThreadState* __tstate = wxPyBeginAllowThreads();
14905 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14906
14907 wxPyEndAllowThreads(__tstate);
14908 if (PyErr_Occurred()) SWIG_fail;
14909 }
14910 {
14911 wxPoint * resultptr;
14912 resultptr = new wxPoint((wxPoint &) result);
14913 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14914 }
14915 return resultobj;
14916 fail:
14917 return NULL;
14918 }
14919
14920
14921 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14922 PyObject *resultobj;
14923 wxDC *arg1 = (wxDC *) 0 ;
14924 int *arg2 = (int *) 0 ;
14925 int *arg3 = (int *) 0 ;
14926 int temp2 ;
14927 int temp3 ;
14928 PyObject * obj0 = 0 ;
14929 char *kwnames[] = {
14930 (char *) "self", NULL
14931 };
14932
14933 arg2 = &temp2;
14934 arg3 = &temp3;
14935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14938 {
14939 PyThreadState* __tstate = wxPyBeginAllowThreads();
14940 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14941
14942 wxPyEndAllowThreads(__tstate);
14943 if (PyErr_Occurred()) SWIG_fail;
14944 }
14945 Py_INCREF(Py_None); resultobj = Py_None;
14946 {
14947 PyObject *o = PyInt_FromLong((long) (*arg2));
14948 resultobj = t_output_helper(resultobj,o);
14949 }
14950 {
14951 PyObject *o = PyInt_FromLong((long) (*arg3));
14952 resultobj = t_output_helper(resultobj,o);
14953 }
14954 return resultobj;
14955 fail:
14956 return NULL;
14957 }
14958
14959
14960 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14961 PyObject *resultobj;
14962 wxDC *arg1 = (wxDC *) 0 ;
14963 int arg2 ;
14964 int arg3 ;
14965 PyObject * obj0 = 0 ;
14966 PyObject * obj1 = 0 ;
14967 PyObject * obj2 = 0 ;
14968 char *kwnames[] = {
14969 (char *) "self",(char *) "x",(char *) "y", NULL
14970 };
14971
14972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14975 arg2 = (int) SWIG_AsInt(obj1);
14976 if (PyErr_Occurred()) SWIG_fail;
14977 arg3 = (int) SWIG_AsInt(obj2);
14978 if (PyErr_Occurred()) SWIG_fail;
14979 {
14980 PyThreadState* __tstate = wxPyBeginAllowThreads();
14981 (arg1)->SetDeviceOrigin(arg2,arg3);
14982
14983 wxPyEndAllowThreads(__tstate);
14984 if (PyErr_Occurred()) SWIG_fail;
14985 }
14986 Py_INCREF(Py_None); resultobj = Py_None;
14987 return resultobj;
14988 fail:
14989 return NULL;
14990 }
14991
14992
14993 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14994 PyObject *resultobj;
14995 wxDC *arg1 = (wxDC *) 0 ;
14996 bool arg2 ;
14997 bool arg3 ;
14998 PyObject * obj0 = 0 ;
14999 PyObject * obj1 = 0 ;
15000 PyObject * obj2 = 0 ;
15001 char *kwnames[] = {
15002 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
15003 };
15004
15005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
15006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15008 arg2 = (bool) SWIG_AsBool(obj1);
15009 if (PyErr_Occurred()) SWIG_fail;
15010 arg3 = (bool) SWIG_AsBool(obj2);
15011 if (PyErr_Occurred()) SWIG_fail;
15012 {
15013 PyThreadState* __tstate = wxPyBeginAllowThreads();
15014 (arg1)->SetAxisOrientation(arg2,arg3);
15015
15016 wxPyEndAllowThreads(__tstate);
15017 if (PyErr_Occurred()) SWIG_fail;
15018 }
15019 Py_INCREF(Py_None); resultobj = Py_None;
15020 return resultobj;
15021 fail:
15022 return NULL;
15023 }
15024
15025
15026 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
15027 PyObject *resultobj;
15028 wxDC *arg1 = (wxDC *) 0 ;
15029 int result;
15030 PyObject * obj0 = 0 ;
15031 char *kwnames[] = {
15032 (char *) "self", NULL
15033 };
15034
15035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
15036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15038 {
15039 PyThreadState* __tstate = wxPyBeginAllowThreads();
15040 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
15041
15042 wxPyEndAllowThreads(__tstate);
15043 if (PyErr_Occurred()) SWIG_fail;
15044 }
15045 resultobj = SWIG_FromInt((int)result);
15046 return resultobj;
15047 fail:
15048 return NULL;
15049 }
15050
15051
15052 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
15053 PyObject *resultobj;
15054 wxDC *arg1 = (wxDC *) 0 ;
15055 int arg2 ;
15056 PyObject * obj0 = 0 ;
15057 PyObject * obj1 = 0 ;
15058 char *kwnames[] = {
15059 (char *) "self",(char *) "function", NULL
15060 };
15061
15062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
15063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15065 arg2 = (int) SWIG_AsInt(obj1);
15066 if (PyErr_Occurred()) SWIG_fail;
15067 {
15068 PyThreadState* __tstate = wxPyBeginAllowThreads();
15069 (arg1)->SetLogicalFunction(arg2);
15070
15071 wxPyEndAllowThreads(__tstate);
15072 if (PyErr_Occurred()) SWIG_fail;
15073 }
15074 Py_INCREF(Py_None); resultobj = Py_None;
15075 return resultobj;
15076 fail:
15077 return NULL;
15078 }
15079
15080
15081 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
15082 PyObject *resultobj;
15083 wxDC *arg1 = (wxDC *) 0 ;
15084 bool arg2 ;
15085 PyObject * obj0 = 0 ;
15086 PyObject * obj1 = 0 ;
15087 char *kwnames[] = {
15088 (char *) "self",(char *) "opt", NULL
15089 };
15090
15091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) 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 {
15097 PyThreadState* __tstate = wxPyBeginAllowThreads();
15098 (arg1)->SetOptimization(arg2);
15099
15100 wxPyEndAllowThreads(__tstate);
15101 if (PyErr_Occurred()) SWIG_fail;
15102 }
15103 Py_INCREF(Py_None); resultobj = Py_None;
15104 return resultobj;
15105 fail:
15106 return NULL;
15107 }
15108
15109
15110 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
15111 PyObject *resultobj;
15112 wxDC *arg1 = (wxDC *) 0 ;
15113 bool result;
15114 PyObject * obj0 = 0 ;
15115 char *kwnames[] = {
15116 (char *) "self", NULL
15117 };
15118
15119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
15120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15122 {
15123 PyThreadState* __tstate = wxPyBeginAllowThreads();
15124 result = (bool)(arg1)->GetOptimization();
15125
15126 wxPyEndAllowThreads(__tstate);
15127 if (PyErr_Occurred()) SWIG_fail;
15128 }
15129 {
15130 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15131 }
15132 return resultobj;
15133 fail:
15134 return NULL;
15135 }
15136
15137
15138 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15139 PyObject *resultobj;
15140 wxDC *arg1 = (wxDC *) 0 ;
15141 int arg2 ;
15142 int arg3 ;
15143 PyObject * obj0 = 0 ;
15144 PyObject * obj1 = 0 ;
15145 PyObject * obj2 = 0 ;
15146 char *kwnames[] = {
15147 (char *) "self",(char *) "x",(char *) "y", NULL
15148 };
15149
15150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
15151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15153 arg2 = (int) SWIG_AsInt(obj1);
15154 if (PyErr_Occurred()) SWIG_fail;
15155 arg3 = (int) SWIG_AsInt(obj2);
15156 if (PyErr_Occurred()) SWIG_fail;
15157 {
15158 PyThreadState* __tstate = wxPyBeginAllowThreads();
15159 (arg1)->CalcBoundingBox(arg2,arg3);
15160
15161 wxPyEndAllowThreads(__tstate);
15162 if (PyErr_Occurred()) SWIG_fail;
15163 }
15164 Py_INCREF(Py_None); resultobj = Py_None;
15165 return resultobj;
15166 fail:
15167 return NULL;
15168 }
15169
15170
15171 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15172 PyObject *resultobj;
15173 wxDC *arg1 = (wxDC *) 0 ;
15174 PyObject * obj0 = 0 ;
15175 char *kwnames[] = {
15176 (char *) "self", NULL
15177 };
15178
15179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
15180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15182 {
15183 PyThreadState* __tstate = wxPyBeginAllowThreads();
15184 (arg1)->ResetBoundingBox();
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_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
15197 PyObject *resultobj;
15198 wxDC *arg1 = (wxDC *) 0 ;
15199 int result;
15200 PyObject * obj0 = 0 ;
15201 char *kwnames[] = {
15202 (char *) "self", NULL
15203 };
15204
15205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",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 = (int)((wxDC const *)arg1)->MinX();
15211
15212 wxPyEndAllowThreads(__tstate);
15213 if (PyErr_Occurred()) SWIG_fail;
15214 }
15215 resultobj = SWIG_FromInt((int)result);
15216 return resultobj;
15217 fail:
15218 return NULL;
15219 }
15220
15221
15222 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
15223 PyObject *resultobj;
15224 wxDC *arg1 = (wxDC *) 0 ;
15225 int result;
15226 PyObject * obj0 = 0 ;
15227 char *kwnames[] = {
15228 (char *) "self", NULL
15229 };
15230
15231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
15232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15234 {
15235 PyThreadState* __tstate = wxPyBeginAllowThreads();
15236 result = (int)((wxDC const *)arg1)->MaxX();
15237
15238 wxPyEndAllowThreads(__tstate);
15239 if (PyErr_Occurred()) SWIG_fail;
15240 }
15241 resultobj = SWIG_FromInt((int)result);
15242 return resultobj;
15243 fail:
15244 return NULL;
15245 }
15246
15247
15248 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
15249 PyObject *resultobj;
15250 wxDC *arg1 = (wxDC *) 0 ;
15251 int result;
15252 PyObject * obj0 = 0 ;
15253 char *kwnames[] = {
15254 (char *) "self", NULL
15255 };
15256
15257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
15258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15260 {
15261 PyThreadState* __tstate = wxPyBeginAllowThreads();
15262 result = (int)((wxDC const *)arg1)->MinY();
15263
15264 wxPyEndAllowThreads(__tstate);
15265 if (PyErr_Occurred()) SWIG_fail;
15266 }
15267 resultobj = SWIG_FromInt((int)result);
15268 return resultobj;
15269 fail:
15270 return NULL;
15271 }
15272
15273
15274 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
15275 PyObject *resultobj;
15276 wxDC *arg1 = (wxDC *) 0 ;
15277 int result;
15278 PyObject * obj0 = 0 ;
15279 char *kwnames[] = {
15280 (char *) "self", NULL
15281 };
15282
15283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
15284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15286 {
15287 PyThreadState* __tstate = wxPyBeginAllowThreads();
15288 result = (int)((wxDC const *)arg1)->MaxY();
15289
15290 wxPyEndAllowThreads(__tstate);
15291 if (PyErr_Occurred()) SWIG_fail;
15292 }
15293 resultobj = SWIG_FromInt((int)result);
15294 return resultobj;
15295 fail:
15296 return NULL;
15297 }
15298
15299
15300 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15301 PyObject *resultobj;
15302 wxDC *arg1 = (wxDC *) 0 ;
15303 int *arg2 = (int *) 0 ;
15304 int *arg3 = (int *) 0 ;
15305 int *arg4 = (int *) 0 ;
15306 int *arg5 = (int *) 0 ;
15307 int temp2 ;
15308 int temp3 ;
15309 int temp4 ;
15310 int temp5 ;
15311 PyObject * obj0 = 0 ;
15312 char *kwnames[] = {
15313 (char *) "self", NULL
15314 };
15315
15316 arg2 = &temp2;
15317 arg3 = &temp3;
15318 arg4 = &temp4;
15319 arg5 = &temp5;
15320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
15321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15323 {
15324 PyThreadState* __tstate = wxPyBeginAllowThreads();
15325 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
15326
15327 wxPyEndAllowThreads(__tstate);
15328 if (PyErr_Occurred()) SWIG_fail;
15329 }
15330 Py_INCREF(Py_None); resultobj = Py_None;
15331 {
15332 PyObject *o = PyInt_FromLong((long) (*arg2));
15333 resultobj = t_output_helper(resultobj,o);
15334 }
15335 {
15336 PyObject *o = PyInt_FromLong((long) (*arg3));
15337 resultobj = t_output_helper(resultobj,o);
15338 }
15339 {
15340 PyObject *o = PyInt_FromLong((long) (*arg4));
15341 resultobj = t_output_helper(resultobj,o);
15342 }
15343 {
15344 PyObject *o = PyInt_FromLong((long) (*arg5));
15345 resultobj = t_output_helper(resultobj,o);
15346 }
15347 return resultobj;
15348 fail:
15349 return NULL;
15350 }
15351
15352
15353 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
15354 PyObject *resultobj;
15355 wxDC *arg1 = (wxDC *) 0 ;
15356 PyObject *arg2 = (PyObject *) 0 ;
15357 PyObject *arg3 = (PyObject *) 0 ;
15358 PyObject *arg4 = (PyObject *) 0 ;
15359 PyObject *result;
15360 PyObject * obj0 = 0 ;
15361 PyObject * obj1 = 0 ;
15362 PyObject * obj2 = 0 ;
15363 PyObject * obj3 = 0 ;
15364 char *kwnames[] = {
15365 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15366 };
15367
15368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15371 arg2 = obj1;
15372 arg3 = obj2;
15373 arg4 = obj3;
15374 {
15375 PyThreadState* __tstate = wxPyBeginAllowThreads();
15376 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
15377
15378 wxPyEndAllowThreads(__tstate);
15379 if (PyErr_Occurred()) SWIG_fail;
15380 }
15381 resultobj = result;
15382 return resultobj;
15383 fail:
15384 return NULL;
15385 }
15386
15387
15388 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
15389 PyObject *resultobj;
15390 wxDC *arg1 = (wxDC *) 0 ;
15391 PyObject *arg2 = (PyObject *) 0 ;
15392 PyObject *arg3 = (PyObject *) 0 ;
15393 PyObject *arg4 = (PyObject *) 0 ;
15394 PyObject *result;
15395 PyObject * obj0 = 0 ;
15396 PyObject * obj1 = 0 ;
15397 PyObject * obj2 = 0 ;
15398 PyObject * obj3 = 0 ;
15399 char *kwnames[] = {
15400 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15401 };
15402
15403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15406 arg2 = obj1;
15407 arg3 = obj2;
15408 arg4 = obj3;
15409 {
15410 PyThreadState* __tstate = wxPyBeginAllowThreads();
15411 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
15412
15413 wxPyEndAllowThreads(__tstate);
15414 if (PyErr_Occurred()) SWIG_fail;
15415 }
15416 resultobj = result;
15417 return resultobj;
15418 fail:
15419 return NULL;
15420 }
15421
15422
15423 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
15424 PyObject *resultobj;
15425 wxDC *arg1 = (wxDC *) 0 ;
15426 PyObject *arg2 = (PyObject *) 0 ;
15427 PyObject *arg3 = (PyObject *) 0 ;
15428 PyObject *arg4 = (PyObject *) 0 ;
15429 PyObject *result;
15430 PyObject * obj0 = 0 ;
15431 PyObject * obj1 = 0 ;
15432 PyObject * obj2 = 0 ;
15433 PyObject * obj3 = 0 ;
15434 char *kwnames[] = {
15435 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15436 };
15437
15438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15441 arg2 = obj1;
15442 arg3 = obj2;
15443 arg4 = obj3;
15444 {
15445 PyThreadState* __tstate = wxPyBeginAllowThreads();
15446 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
15447
15448 wxPyEndAllowThreads(__tstate);
15449 if (PyErr_Occurred()) SWIG_fail;
15450 }
15451 resultobj = result;
15452 return resultobj;
15453 fail:
15454 return NULL;
15455 }
15456
15457
15458 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
15459 PyObject *resultobj;
15460 wxDC *arg1 = (wxDC *) 0 ;
15461 PyObject *arg2 = (PyObject *) 0 ;
15462 PyObject *arg3 = (PyObject *) 0 ;
15463 PyObject *arg4 = (PyObject *) 0 ;
15464 PyObject *result;
15465 PyObject * obj0 = 0 ;
15466 PyObject * obj1 = 0 ;
15467 PyObject * obj2 = 0 ;
15468 PyObject * obj3 = 0 ;
15469 char *kwnames[] = {
15470 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15471 };
15472
15473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15476 arg2 = obj1;
15477 arg3 = obj2;
15478 arg4 = obj3;
15479 {
15480 PyThreadState* __tstate = wxPyBeginAllowThreads();
15481 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
15482
15483 wxPyEndAllowThreads(__tstate);
15484 if (PyErr_Occurred()) SWIG_fail;
15485 }
15486 resultobj = result;
15487 return resultobj;
15488 fail:
15489 return NULL;
15490 }
15491
15492
15493 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
15494 PyObject *resultobj;
15495 wxDC *arg1 = (wxDC *) 0 ;
15496 PyObject *arg2 = (PyObject *) 0 ;
15497 PyObject *arg3 = (PyObject *) 0 ;
15498 PyObject *arg4 = (PyObject *) 0 ;
15499 PyObject *result;
15500 PyObject * obj0 = 0 ;
15501 PyObject * obj1 = 0 ;
15502 PyObject * obj2 = 0 ;
15503 PyObject * obj3 = 0 ;
15504 char *kwnames[] = {
15505 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15506 };
15507
15508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15511 arg2 = obj1;
15512 arg3 = obj2;
15513 arg4 = obj3;
15514 {
15515 PyThreadState* __tstate = wxPyBeginAllowThreads();
15516 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
15517
15518 wxPyEndAllowThreads(__tstate);
15519 if (PyErr_Occurred()) SWIG_fail;
15520 }
15521 resultobj = result;
15522 return resultobj;
15523 fail:
15524 return NULL;
15525 }
15526
15527
15528 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
15529 PyObject *resultobj;
15530 wxDC *arg1 = (wxDC *) 0 ;
15531 PyObject *arg2 = (PyObject *) 0 ;
15532 PyObject *arg3 = (PyObject *) 0 ;
15533 PyObject *arg4 = (PyObject *) 0 ;
15534 PyObject *arg5 = (PyObject *) 0 ;
15535 PyObject *result;
15536 PyObject * obj0 = 0 ;
15537 PyObject * obj1 = 0 ;
15538 PyObject * obj2 = 0 ;
15539 PyObject * obj3 = 0 ;
15540 PyObject * obj4 = 0 ;
15541 char *kwnames[] = {
15542 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
15543 };
15544
15545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15548 arg2 = obj1;
15549 arg3 = obj2;
15550 arg4 = obj3;
15551 arg5 = obj4;
15552 {
15553 PyThreadState* __tstate = wxPyBeginAllowThreads();
15554 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
15555
15556 wxPyEndAllowThreads(__tstate);
15557 if (PyErr_Occurred()) SWIG_fail;
15558 }
15559 resultobj = result;
15560 return resultobj;
15561 fail:
15562 return NULL;
15563 }
15564
15565
15566 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
15567 PyObject *obj;
15568 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15569 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15570 Py_INCREF(obj);
15571 return Py_BuildValue((char *)"");
15572 }
15573 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15574 PyObject *resultobj;
15575 wxMemoryDC *result;
15576 char *kwnames[] = {
15577 NULL
15578 };
15579
15580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15581 {
15582 PyThreadState* __tstate = wxPyBeginAllowThreads();
15583 result = (wxMemoryDC *)new wxMemoryDC();
15584
15585 wxPyEndAllowThreads(__tstate);
15586 if (PyErr_Occurred()) SWIG_fail;
15587 }
15588 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15589 return resultobj;
15590 fail:
15591 return NULL;
15592 }
15593
15594
15595 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15596 PyObject *resultobj;
15597 wxDC *arg1 = (wxDC *) 0 ;
15598 wxMemoryDC *result;
15599 PyObject * obj0 = 0 ;
15600 char *kwnames[] = {
15601 (char *) "oldDC", NULL
15602 };
15603
15604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15607 {
15608 PyThreadState* __tstate = wxPyBeginAllowThreads();
15609 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15610
15611 wxPyEndAllowThreads(__tstate);
15612 if (PyErr_Occurred()) SWIG_fail;
15613 }
15614 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15615 return resultobj;
15616 fail:
15617 return NULL;
15618 }
15619
15620
15621 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
15622 PyObject *resultobj;
15623 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15624 wxBitmap *arg2 = 0 ;
15625 PyObject * obj0 = 0 ;
15626 PyObject * obj1 = 0 ;
15627 char *kwnames[] = {
15628 (char *) "self",(char *) "bitmap", NULL
15629 };
15630
15631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15634 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15635 SWIG_POINTER_EXCEPTION | 0)) == -1)
15636 SWIG_fail;
15637 if (arg2 == NULL) {
15638 PyErr_SetString(PyExc_TypeError,"null reference");
15639 SWIG_fail;
15640 }
15641 {
15642 PyThreadState* __tstate = wxPyBeginAllowThreads();
15643 (arg1)->SelectObject((wxBitmap const &)*arg2);
15644
15645 wxPyEndAllowThreads(__tstate);
15646 if (PyErr_Occurred()) SWIG_fail;
15647 }
15648 Py_INCREF(Py_None); resultobj = Py_None;
15649 return resultobj;
15650 fail:
15651 return NULL;
15652 }
15653
15654
15655 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
15656 PyObject *obj;
15657 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15658 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15659 Py_INCREF(obj);
15660 return Py_BuildValue((char *)"");
15661 }
15662 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
15663 PyObject *resultobj;
15664 wxDC *arg1 = (wxDC *) 0 ;
15665 wxBitmap *arg2 = 0 ;
15666 wxBufferedDC *result;
15667 PyObject * obj0 = 0 ;
15668 PyObject * obj1 = 0 ;
15669
15670 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15673 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15674 SWIG_POINTER_EXCEPTION | 0)) == -1)
15675 SWIG_fail;
15676 if (arg2 == NULL) {
15677 PyErr_SetString(PyExc_TypeError,"null reference");
15678 SWIG_fail;
15679 }
15680 {
15681 PyThreadState* __tstate = wxPyBeginAllowThreads();
15682 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15683
15684 wxPyEndAllowThreads(__tstate);
15685 if (PyErr_Occurred()) SWIG_fail;
15686 }
15687 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15688 return resultobj;
15689 fail:
15690 return NULL;
15691 }
15692
15693
15694 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
15695 PyObject *resultobj;
15696 wxDC *arg1 = (wxDC *) 0 ;
15697 wxSize *arg2 = 0 ;
15698 wxBufferedDC *result;
15699 wxSize temp2 ;
15700 PyObject * obj0 = 0 ;
15701 PyObject * obj1 = 0 ;
15702
15703 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15706 {
15707 arg2 = &temp2;
15708 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15709 }
15710 {
15711 PyThreadState* __tstate = wxPyBeginAllowThreads();
15712 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15713
15714 wxPyEndAllowThreads(__tstate);
15715 if (PyErr_Occurred()) SWIG_fail;
15716 }
15717 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15718 return resultobj;
15719 fail:
15720 return NULL;
15721 }
15722
15723
15724 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15725 int argc;
15726 PyObject *argv[3];
15727 int ii;
15728
15729 argc = PyObject_Length(args);
15730 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15731 argv[ii] = PyTuple_GetItem(args,ii);
15732 }
15733 if (argc == 2) {
15734 int _v;
15735 {
15736 void *ptr;
15737 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15738 _v = 0;
15739 PyErr_Clear();
15740 } else {
15741 _v = 1;
15742 }
15743 }
15744 if (_v) {
15745 {
15746 void *ptr;
15747 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15748 _v = 0;
15749 PyErr_Clear();
15750 } else {
15751 _v = 1;
15752 }
15753 }
15754 if (_v) {
15755 return _wrap_new_BufferedDC__SWIG_0(self,args);
15756 }
15757 }
15758 }
15759 if (argc == 2) {
15760 int _v;
15761 {
15762 void *ptr;
15763 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15764 _v = 0;
15765 PyErr_Clear();
15766 } else {
15767 _v = 1;
15768 }
15769 }
15770 if (_v) {
15771 {
15772 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15773 }
15774 if (_v) {
15775 return _wrap_new_BufferedDC__SWIG_1(self,args);
15776 }
15777 }
15778 }
15779
15780 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15781 return NULL;
15782 }
15783
15784
15785 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
15786 PyObject *resultobj;
15787 wxDC *arg1 = (wxDC *) 0 ;
15788 wxSize *arg2 = 0 ;
15789 wxBufferedDC *result;
15790 wxSize temp2 ;
15791 PyObject * obj0 = 0 ;
15792 PyObject * obj1 = 0 ;
15793
15794 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
15795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15797 {
15798 arg2 = &temp2;
15799 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15800 }
15801 {
15802 PyThreadState* __tstate = wxPyBeginAllowThreads();
15803 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15804
15805 wxPyEndAllowThreads(__tstate);
15806 if (PyErr_Occurred()) SWIG_fail;
15807 }
15808 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15809 return resultobj;
15810 fail:
15811 return NULL;
15812 }
15813
15814
15815 static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15816 PyObject *resultobj;
15817 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15818 PyObject * obj0 = 0 ;
15819 char *kwnames[] = {
15820 (char *) "self", NULL
15821 };
15822
15823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15826 {
15827 PyThreadState* __tstate = wxPyBeginAllowThreads();
15828 delete arg1;
15829
15830 wxPyEndAllowThreads(__tstate);
15831 if (PyErr_Occurred()) SWIG_fail;
15832 }
15833 Py_INCREF(Py_None); resultobj = Py_None;
15834 return resultobj;
15835 fail:
15836 return NULL;
15837 }
15838
15839
15840 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15841 PyObject *resultobj;
15842 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15843 PyObject * obj0 = 0 ;
15844 char *kwnames[] = {
15845 (char *) "self", NULL
15846 };
15847
15848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15851 {
15852 PyThreadState* __tstate = wxPyBeginAllowThreads();
15853 (arg1)->UnMask();
15854
15855 wxPyEndAllowThreads(__tstate);
15856 if (PyErr_Occurred()) SWIG_fail;
15857 }
15858 Py_INCREF(Py_None); resultobj = Py_None;
15859 return resultobj;
15860 fail:
15861 return NULL;
15862 }
15863
15864
15865 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15866 PyObject *obj;
15867 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15868 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15869 Py_INCREF(obj);
15870 return Py_BuildValue((char *)"");
15871 }
15872 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15873 PyObject *resultobj;
15874 wxWindow *arg1 = (wxWindow *) 0 ;
15875 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15876 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15877 wxBufferedPaintDC *result;
15878 PyObject * obj0 = 0 ;
15879 PyObject * obj1 = 0 ;
15880 char *kwnames[] = {
15881 (char *) "window",(char *) "buffer", NULL
15882 };
15883
15884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15887 if (obj1) {
15888 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15889 SWIG_POINTER_EXCEPTION | 0)) == -1)
15890 SWIG_fail;
15891 if (arg2 == NULL) {
15892 PyErr_SetString(PyExc_TypeError,"null reference");
15893 SWIG_fail;
15894 }
15895 }
15896 {
15897 PyThreadState* __tstate = wxPyBeginAllowThreads();
15898 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15899
15900 wxPyEndAllowThreads(__tstate);
15901 if (PyErr_Occurred()) SWIG_fail;
15902 }
15903 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15904 return resultobj;
15905 fail:
15906 return NULL;
15907 }
15908
15909
15910 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15911 PyObject *obj;
15912 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15913 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15914 Py_INCREF(obj);
15915 return Py_BuildValue((char *)"");
15916 }
15917 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15918 PyObject *resultobj;
15919 wxScreenDC *result;
15920 char *kwnames[] = {
15921 NULL
15922 };
15923
15924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15925 {
15926 PyThreadState* __tstate = wxPyBeginAllowThreads();
15927 result = (wxScreenDC *)new wxScreenDC();
15928
15929 wxPyEndAllowThreads(__tstate);
15930 if (PyErr_Occurred()) SWIG_fail;
15931 }
15932 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15933 return resultobj;
15934 fail:
15935 return NULL;
15936 }
15937
15938
15939 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15940 PyObject *resultobj;
15941 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15942 wxWindow *arg2 = (wxWindow *) 0 ;
15943 bool result;
15944 PyObject * obj0 = 0 ;
15945 PyObject * obj1 = 0 ;
15946 char *kwnames[] = {
15947 (char *) "self",(char *) "window", NULL
15948 };
15949
15950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15953 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15955 {
15956 PyThreadState* __tstate = wxPyBeginAllowThreads();
15957 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15958
15959 wxPyEndAllowThreads(__tstate);
15960 if (PyErr_Occurred()) SWIG_fail;
15961 }
15962 {
15963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15964 }
15965 return resultobj;
15966 fail:
15967 return NULL;
15968 }
15969
15970
15971 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15972 PyObject *resultobj;
15973 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15974 wxRect *arg2 = (wxRect *) NULL ;
15975 bool result;
15976 PyObject * obj0 = 0 ;
15977 PyObject * obj1 = 0 ;
15978 char *kwnames[] = {
15979 (char *) "self",(char *) "rect", NULL
15980 };
15981
15982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15985 if (obj1) {
15986 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15988 }
15989 {
15990 PyThreadState* __tstate = wxPyBeginAllowThreads();
15991 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15992
15993 wxPyEndAllowThreads(__tstate);
15994 if (PyErr_Occurred()) SWIG_fail;
15995 }
15996 {
15997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15998 }
15999 return resultobj;
16000 fail:
16001 return NULL;
16002 }
16003
16004
16005 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
16006 PyObject *resultobj;
16007 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
16008 bool result;
16009 PyObject * obj0 = 0 ;
16010 char *kwnames[] = {
16011 (char *) "self", NULL
16012 };
16013
16014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
16015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
16016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16017 {
16018 PyThreadState* __tstate = wxPyBeginAllowThreads();
16019 result = (bool)(arg1)->EndDrawingOnTop();
16020
16021 wxPyEndAllowThreads(__tstate);
16022 if (PyErr_Occurred()) SWIG_fail;
16023 }
16024 {
16025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16026 }
16027 return resultobj;
16028 fail:
16029 return NULL;
16030 }
16031
16032
16033 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
16034 PyObject *obj;
16035 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16036 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
16037 Py_INCREF(obj);
16038 return Py_BuildValue((char *)"");
16039 }
16040 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16041 PyObject *resultobj;
16042 wxWindow *arg1 = (wxWindow *) 0 ;
16043 wxClientDC *result;
16044 PyObject * obj0 = 0 ;
16045 char *kwnames[] = {
16046 (char *) "win", NULL
16047 };
16048
16049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
16050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16052 {
16053 PyThreadState* __tstate = wxPyBeginAllowThreads();
16054 result = (wxClientDC *)new wxClientDC(arg1);
16055
16056 wxPyEndAllowThreads(__tstate);
16057 if (PyErr_Occurred()) SWIG_fail;
16058 }
16059 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
16060 return resultobj;
16061 fail:
16062 return NULL;
16063 }
16064
16065
16066 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
16067 PyObject *obj;
16068 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16069 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
16070 Py_INCREF(obj);
16071 return Py_BuildValue((char *)"");
16072 }
16073 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16074 PyObject *resultobj;
16075 wxWindow *arg1 = (wxWindow *) 0 ;
16076 wxPaintDC *result;
16077 PyObject * obj0 = 0 ;
16078 char *kwnames[] = {
16079 (char *) "win", NULL
16080 };
16081
16082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
16083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16085 {
16086 PyThreadState* __tstate = wxPyBeginAllowThreads();
16087 result = (wxPaintDC *)new wxPaintDC(arg1);
16088
16089 wxPyEndAllowThreads(__tstate);
16090 if (PyErr_Occurred()) SWIG_fail;
16091 }
16092 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
16093 return resultobj;
16094 fail:
16095 return NULL;
16096 }
16097
16098
16099 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
16100 PyObject *obj;
16101 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16102 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
16103 Py_INCREF(obj);
16104 return Py_BuildValue((char *)"");
16105 }
16106 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16107 PyObject *resultobj;
16108 wxWindow *arg1 = (wxWindow *) 0 ;
16109 wxWindowDC *result;
16110 PyObject * obj0 = 0 ;
16111 char *kwnames[] = {
16112 (char *) "win", NULL
16113 };
16114
16115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
16116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16118 {
16119 PyThreadState* __tstate = wxPyBeginAllowThreads();
16120 result = (wxWindowDC *)new wxWindowDC(arg1);
16121
16122 wxPyEndAllowThreads(__tstate);
16123 if (PyErr_Occurred()) SWIG_fail;
16124 }
16125 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
16126 return resultobj;
16127 fail:
16128 return NULL;
16129 }
16130
16131
16132 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
16133 PyObject *obj;
16134 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16135 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
16136 Py_INCREF(obj);
16137 return Py_BuildValue((char *)"");
16138 }
16139 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16140 PyObject *resultobj;
16141 wxDC *arg1 = 0 ;
16142 bool arg2 ;
16143 wxMirrorDC *result;
16144 PyObject * obj0 = 0 ;
16145 PyObject * obj1 = 0 ;
16146 char *kwnames[] = {
16147 (char *) "dc",(char *) "mirror", NULL
16148 };
16149
16150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
16151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
16152 SWIG_POINTER_EXCEPTION | 0)) == -1)
16153 SWIG_fail;
16154 if (arg1 == NULL) {
16155 PyErr_SetString(PyExc_TypeError,"null reference");
16156 SWIG_fail;
16157 }
16158 arg2 = (bool) SWIG_AsBool(obj1);
16159 if (PyErr_Occurred()) SWIG_fail;
16160 {
16161 PyThreadState* __tstate = wxPyBeginAllowThreads();
16162 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
16163
16164 wxPyEndAllowThreads(__tstate);
16165 if (PyErr_Occurred()) SWIG_fail;
16166 }
16167 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
16168 return resultobj;
16169 fail:
16170 return NULL;
16171 }
16172
16173
16174 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
16175 PyObject *obj;
16176 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16177 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
16178 Py_INCREF(obj);
16179 return Py_BuildValue((char *)"");
16180 }
16181 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16182 PyObject *resultobj;
16183 wxPrintData *arg1 = 0 ;
16184 wxPostScriptDC *result;
16185 PyObject * obj0 = 0 ;
16186 char *kwnames[] = {
16187 (char *) "printData", NULL
16188 };
16189
16190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
16191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16192 SWIG_POINTER_EXCEPTION | 0)) == -1)
16193 SWIG_fail;
16194 if (arg1 == NULL) {
16195 PyErr_SetString(PyExc_TypeError,"null reference");
16196 SWIG_fail;
16197 }
16198 {
16199 PyThreadState* __tstate = wxPyBeginAllowThreads();
16200 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
16201
16202 wxPyEndAllowThreads(__tstate);
16203 if (PyErr_Occurred()) SWIG_fail;
16204 }
16205 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
16206 return resultobj;
16207 fail:
16208 return NULL;
16209 }
16210
16211
16212 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
16213 PyObject *resultobj;
16214 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16215 wxPrintData *result;
16216 PyObject * obj0 = 0 ;
16217 char *kwnames[] = {
16218 (char *) "self", NULL
16219 };
16220
16221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
16222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16224 {
16225 PyThreadState* __tstate = wxPyBeginAllowThreads();
16226 {
16227 wxPrintData &_result_ref = (arg1)->GetPrintData();
16228 result = (wxPrintData *) &_result_ref;
16229 }
16230
16231 wxPyEndAllowThreads(__tstate);
16232 if (PyErr_Occurred()) SWIG_fail;
16233 }
16234 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
16235 return resultobj;
16236 fail:
16237 return NULL;
16238 }
16239
16240
16241 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
16242 PyObject *resultobj;
16243 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16244 wxPrintData *arg2 = 0 ;
16245 PyObject * obj0 = 0 ;
16246 PyObject * obj1 = 0 ;
16247 char *kwnames[] = {
16248 (char *) "self",(char *) "data", NULL
16249 };
16250
16251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
16252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16254 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
16255 SWIG_POINTER_EXCEPTION | 0)) == -1)
16256 SWIG_fail;
16257 if (arg2 == NULL) {
16258 PyErr_SetString(PyExc_TypeError,"null reference");
16259 SWIG_fail;
16260 }
16261 {
16262 PyThreadState* __tstate = wxPyBeginAllowThreads();
16263 (arg1)->SetPrintData((wxPrintData const &)*arg2);
16264
16265 wxPyEndAllowThreads(__tstate);
16266 if (PyErr_Occurred()) SWIG_fail;
16267 }
16268 Py_INCREF(Py_None); resultobj = Py_None;
16269 return resultobj;
16270 fail:
16271 return NULL;
16272 }
16273
16274
16275 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
16276 PyObject *resultobj;
16277 int arg1 ;
16278 PyObject * obj0 = 0 ;
16279 char *kwnames[] = {
16280 (char *) "ppi", NULL
16281 };
16282
16283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
16284 arg1 = (int) SWIG_AsInt(obj0);
16285 if (PyErr_Occurred()) SWIG_fail;
16286 {
16287 PyThreadState* __tstate = wxPyBeginAllowThreads();
16288 wxPostScriptDC::SetResolution(arg1);
16289
16290 wxPyEndAllowThreads(__tstate);
16291 if (PyErr_Occurred()) SWIG_fail;
16292 }
16293 Py_INCREF(Py_None); resultobj = Py_None;
16294 return resultobj;
16295 fail:
16296 return NULL;
16297 }
16298
16299
16300 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
16301 PyObject *resultobj;
16302 int result;
16303 char *kwnames[] = {
16304 NULL
16305 };
16306
16307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
16308 {
16309 PyThreadState* __tstate = wxPyBeginAllowThreads();
16310 result = (int)wxPostScriptDC::GetResolution();
16311
16312 wxPyEndAllowThreads(__tstate);
16313 if (PyErr_Occurred()) SWIG_fail;
16314 }
16315 resultobj = SWIG_FromInt((int)result);
16316 return resultobj;
16317 fail:
16318 return NULL;
16319 }
16320
16321
16322 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
16323 PyObject *obj;
16324 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16325 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
16326 Py_INCREF(obj);
16327 return Py_BuildValue((char *)"");
16328 }
16329 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
16330 PyObject *resultobj;
16331 wxString const &arg1_defvalue = wxPyEmptyString ;
16332 wxString *arg1 = (wxString *) &arg1_defvalue ;
16333 wxMetaFile *result;
16334 bool temp1 = False ;
16335 PyObject * obj0 = 0 ;
16336 char *kwnames[] = {
16337 (char *) "filename", NULL
16338 };
16339
16340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
16341 if (obj0) {
16342 {
16343 arg1 = wxString_in_helper(obj0);
16344 if (arg1 == NULL) SWIG_fail;
16345 temp1 = True;
16346 }
16347 }
16348 {
16349 PyThreadState* __tstate = wxPyBeginAllowThreads();
16350 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
16351
16352 wxPyEndAllowThreads(__tstate);
16353 if (PyErr_Occurred()) SWIG_fail;
16354 }
16355 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
16356 {
16357 if (temp1)
16358 delete arg1;
16359 }
16360 return resultobj;
16361 fail:
16362 {
16363 if (temp1)
16364 delete arg1;
16365 }
16366 return NULL;
16367 }
16368
16369
16370 static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
16371 PyObject *resultobj;
16372 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16373 PyObject * obj0 = 0 ;
16374 char *kwnames[] = {
16375 (char *) "self", NULL
16376 };
16377
16378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
16379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16381 {
16382 PyThreadState* __tstate = wxPyBeginAllowThreads();
16383 delete arg1;
16384
16385 wxPyEndAllowThreads(__tstate);
16386 if (PyErr_Occurred()) SWIG_fail;
16387 }
16388 Py_INCREF(Py_None); resultobj = Py_None;
16389 return resultobj;
16390 fail:
16391 return NULL;
16392 }
16393
16394
16395 static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
16396 PyObject *resultobj;
16397 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16398 bool result;
16399 PyObject * obj0 = 0 ;
16400 char *kwnames[] = {
16401 (char *) "self", NULL
16402 };
16403
16404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
16405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16407 {
16408 PyThreadState* __tstate = wxPyBeginAllowThreads();
16409 result = (bool)(arg1)->Ok();
16410
16411 wxPyEndAllowThreads(__tstate);
16412 if (PyErr_Occurred()) SWIG_fail;
16413 }
16414 {
16415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16416 }
16417 return resultobj;
16418 fail:
16419 return NULL;
16420 }
16421
16422
16423 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
16424 PyObject *resultobj;
16425 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16426 int arg2 = (int) 0 ;
16427 int arg3 = (int) 0 ;
16428 bool result;
16429 PyObject * obj0 = 0 ;
16430 PyObject * obj1 = 0 ;
16431 PyObject * obj2 = 0 ;
16432 char *kwnames[] = {
16433 (char *) "self",(char *) "width",(char *) "height", NULL
16434 };
16435
16436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
16437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16439 if (obj1) {
16440 arg2 = (int) SWIG_AsInt(obj1);
16441 if (PyErr_Occurred()) SWIG_fail;
16442 }
16443 if (obj2) {
16444 arg3 = (int) SWIG_AsInt(obj2);
16445 if (PyErr_Occurred()) SWIG_fail;
16446 }
16447 {
16448 PyThreadState* __tstate = wxPyBeginAllowThreads();
16449 result = (bool)(arg1)->SetClipboard(arg2,arg3);
16450
16451 wxPyEndAllowThreads(__tstate);
16452 if (PyErr_Occurred()) SWIG_fail;
16453 }
16454 {
16455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16456 }
16457 return resultobj;
16458 fail:
16459 return NULL;
16460 }
16461
16462
16463 static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16464 PyObject *resultobj;
16465 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16466 wxSize result;
16467 PyObject * obj0 = 0 ;
16468 char *kwnames[] = {
16469 (char *) "self", NULL
16470 };
16471
16472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
16473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16475 {
16476 PyThreadState* __tstate = wxPyBeginAllowThreads();
16477 result = (arg1)->GetSize();
16478
16479 wxPyEndAllowThreads(__tstate);
16480 if (PyErr_Occurred()) SWIG_fail;
16481 }
16482 {
16483 wxSize * resultptr;
16484 resultptr = new wxSize((wxSize &) result);
16485 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16486 }
16487 return resultobj;
16488 fail:
16489 return NULL;
16490 }
16491
16492
16493 static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
16494 PyObject *resultobj;
16495 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16496 int result;
16497 PyObject * obj0 = 0 ;
16498 char *kwnames[] = {
16499 (char *) "self", NULL
16500 };
16501
16502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
16503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16505 {
16506 PyThreadState* __tstate = wxPyBeginAllowThreads();
16507 result = (int)(arg1)->GetWidth();
16508
16509 wxPyEndAllowThreads(__tstate);
16510 if (PyErr_Occurred()) SWIG_fail;
16511 }
16512 resultobj = SWIG_FromInt((int)result);
16513 return resultobj;
16514 fail:
16515 return NULL;
16516 }
16517
16518
16519 static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
16520 PyObject *resultobj;
16521 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16522 int result;
16523 PyObject * obj0 = 0 ;
16524 char *kwnames[] = {
16525 (char *) "self", NULL
16526 };
16527
16528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
16529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16531 {
16532 PyThreadState* __tstate = wxPyBeginAllowThreads();
16533 result = (int)(arg1)->GetHeight();
16534
16535 wxPyEndAllowThreads(__tstate);
16536 if (PyErr_Occurred()) SWIG_fail;
16537 }
16538 resultobj = SWIG_FromInt((int)result);
16539 return resultobj;
16540 fail:
16541 return NULL;
16542 }
16543
16544
16545 static PyObject *_wrap_MetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
16546 PyObject *resultobj;
16547 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16548 wxString *result;
16549 PyObject * obj0 = 0 ;
16550 char *kwnames[] = {
16551 (char *) "self", NULL
16552 };
16553
16554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail;
16555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16557 {
16558 PyThreadState* __tstate = wxPyBeginAllowThreads();
16559 {
16560 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
16561 result = (wxString *) &_result_ref;
16562 }
16563
16564 wxPyEndAllowThreads(__tstate);
16565 if (PyErr_Occurred()) SWIG_fail;
16566 }
16567 {
16568 #if wxUSE_UNICODE
16569 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16570 #else
16571 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16572 #endif
16573 }
16574 return resultobj;
16575 fail:
16576 return NULL;
16577 }
16578
16579
16580 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
16581 PyObject *obj;
16582 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16583 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
16584 Py_INCREF(obj);
16585 return Py_BuildValue((char *)"");
16586 }
16587 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16588 PyObject *resultobj;
16589 wxString const &arg1_defvalue = wxPyEmptyString ;
16590 wxString *arg1 = (wxString *) &arg1_defvalue ;
16591 int arg2 = (int) 0 ;
16592 int arg3 = (int) 0 ;
16593 wxString const &arg4_defvalue = wxPyEmptyString ;
16594 wxString *arg4 = (wxString *) &arg4_defvalue ;
16595 wxMetaFileDC *result;
16596 bool temp1 = False ;
16597 bool temp4 = False ;
16598 PyObject * obj0 = 0 ;
16599 PyObject * obj1 = 0 ;
16600 PyObject * obj2 = 0 ;
16601 PyObject * obj3 = 0 ;
16602 char *kwnames[] = {
16603 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
16604 };
16605
16606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16607 if (obj0) {
16608 {
16609 arg1 = wxString_in_helper(obj0);
16610 if (arg1 == NULL) SWIG_fail;
16611 temp1 = True;
16612 }
16613 }
16614 if (obj1) {
16615 arg2 = (int) SWIG_AsInt(obj1);
16616 if (PyErr_Occurred()) SWIG_fail;
16617 }
16618 if (obj2) {
16619 arg3 = (int) SWIG_AsInt(obj2);
16620 if (PyErr_Occurred()) SWIG_fail;
16621 }
16622 if (obj3) {
16623 {
16624 arg4 = wxString_in_helper(obj3);
16625 if (arg4 == NULL) SWIG_fail;
16626 temp4 = True;
16627 }
16628 }
16629 {
16630 PyThreadState* __tstate = wxPyBeginAllowThreads();
16631 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
16632
16633 wxPyEndAllowThreads(__tstate);
16634 if (PyErr_Occurred()) SWIG_fail;
16635 }
16636 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
16637 {
16638 if (temp1)
16639 delete arg1;
16640 }
16641 {
16642 if (temp4)
16643 delete arg4;
16644 }
16645 return resultobj;
16646 fail:
16647 {
16648 if (temp1)
16649 delete arg1;
16650 }
16651 {
16652 if (temp4)
16653 delete arg4;
16654 }
16655 return NULL;
16656 }
16657
16658
16659 static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
16660 PyObject *resultobj;
16661 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
16662 wxMetaFile *result;
16663 PyObject * obj0 = 0 ;
16664 char *kwnames[] = {
16665 (char *) "self", NULL
16666 };
16667
16668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
16669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
16670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16671 {
16672 PyThreadState* __tstate = wxPyBeginAllowThreads();
16673 result = (wxMetaFile *)(arg1)->Close();
16674
16675 wxPyEndAllowThreads(__tstate);
16676 if (PyErr_Occurred()) SWIG_fail;
16677 }
16678 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
16679 return resultobj;
16680 fail:
16681 return NULL;
16682 }
16683
16684
16685 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
16686 PyObject *obj;
16687 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16688 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16689 Py_INCREF(obj);
16690 return Py_BuildValue((char *)"");
16691 }
16692 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16693 PyObject *resultobj;
16694 wxPrintData *arg1 = 0 ;
16695 wxPrinterDC *result;
16696 PyObject * obj0 = 0 ;
16697 char *kwnames[] = {
16698 (char *) "printData", NULL
16699 };
16700
16701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16703 SWIG_POINTER_EXCEPTION | 0)) == -1)
16704 SWIG_fail;
16705 if (arg1 == NULL) {
16706 PyErr_SetString(PyExc_TypeError,"null reference");
16707 SWIG_fail;
16708 }
16709 {
16710 PyThreadState* __tstate = wxPyBeginAllowThreads();
16711 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16712
16713 wxPyEndAllowThreads(__tstate);
16714 if (PyErr_Occurred()) SWIG_fail;
16715 }
16716 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
16717 return resultobj;
16718 fail:
16719 return NULL;
16720 }
16721
16722
16723 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
16724 PyObject *obj;
16725 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16726 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16727 Py_INCREF(obj);
16728 return Py_BuildValue((char *)"");
16729 }
16730 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16731 PyObject *resultobj;
16732 int arg1 ;
16733 int arg2 ;
16734 int arg3 = (int) True ;
16735 int arg4 = (int) 1 ;
16736 wxImageList *result;
16737 PyObject * obj0 = 0 ;
16738 PyObject * obj1 = 0 ;
16739 PyObject * obj2 = 0 ;
16740 PyObject * obj3 = 0 ;
16741 char *kwnames[] = {
16742 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16743 };
16744
16745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16746 arg1 = (int) SWIG_AsInt(obj0);
16747 if (PyErr_Occurred()) SWIG_fail;
16748 arg2 = (int) SWIG_AsInt(obj1);
16749 if (PyErr_Occurred()) SWIG_fail;
16750 if (obj2) {
16751 arg3 = (int) SWIG_AsInt(obj2);
16752 if (PyErr_Occurred()) SWIG_fail;
16753 }
16754 if (obj3) {
16755 arg4 = (int) SWIG_AsInt(obj3);
16756 if (PyErr_Occurred()) SWIG_fail;
16757 }
16758 {
16759 PyThreadState* __tstate = wxPyBeginAllowThreads();
16760 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16761
16762 wxPyEndAllowThreads(__tstate);
16763 if (PyErr_Occurred()) SWIG_fail;
16764 }
16765 {
16766 resultobj = wxPyMake_wxObject(result);
16767 }
16768 return resultobj;
16769 fail:
16770 return NULL;
16771 }
16772
16773
16774 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16775 PyObject *resultobj;
16776 wxImageList *arg1 = (wxImageList *) 0 ;
16777 PyObject * obj0 = 0 ;
16778 char *kwnames[] = {
16779 (char *) "self", NULL
16780 };
16781
16782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16785 {
16786 PyThreadState* __tstate = wxPyBeginAllowThreads();
16787 delete arg1;
16788
16789 wxPyEndAllowThreads(__tstate);
16790 if (PyErr_Occurred()) SWIG_fail;
16791 }
16792 Py_INCREF(Py_None); resultobj = Py_None;
16793 return resultobj;
16794 fail:
16795 return NULL;
16796 }
16797
16798
16799 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16800 PyObject *resultobj;
16801 wxImageList *arg1 = (wxImageList *) 0 ;
16802 wxBitmap *arg2 = 0 ;
16803 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16804 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16805 int result;
16806 PyObject * obj0 = 0 ;
16807 PyObject * obj1 = 0 ;
16808 PyObject * obj2 = 0 ;
16809 char *kwnames[] = {
16810 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16811 };
16812
16813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16816 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16817 SWIG_POINTER_EXCEPTION | 0)) == -1)
16818 SWIG_fail;
16819 if (arg2 == NULL) {
16820 PyErr_SetString(PyExc_TypeError,"null reference");
16821 SWIG_fail;
16822 }
16823 if (obj2) {
16824 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16825 SWIG_POINTER_EXCEPTION | 0)) == -1)
16826 SWIG_fail;
16827 if (arg3 == NULL) {
16828 PyErr_SetString(PyExc_TypeError,"null reference");
16829 SWIG_fail;
16830 }
16831 }
16832 {
16833 PyThreadState* __tstate = wxPyBeginAllowThreads();
16834 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16835
16836 wxPyEndAllowThreads(__tstate);
16837 if (PyErr_Occurred()) SWIG_fail;
16838 }
16839 resultobj = SWIG_FromInt((int)result);
16840 return resultobj;
16841 fail:
16842 return NULL;
16843 }
16844
16845
16846 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16847 PyObject *resultobj;
16848 wxImageList *arg1 = (wxImageList *) 0 ;
16849 wxBitmap *arg2 = 0 ;
16850 wxColour *arg3 = 0 ;
16851 int result;
16852 wxColour temp3 ;
16853 PyObject * obj0 = 0 ;
16854 PyObject * obj1 = 0 ;
16855 PyObject * obj2 = 0 ;
16856 char *kwnames[] = {
16857 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16858 };
16859
16860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16863 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16864 SWIG_POINTER_EXCEPTION | 0)) == -1)
16865 SWIG_fail;
16866 if (arg2 == NULL) {
16867 PyErr_SetString(PyExc_TypeError,"null reference");
16868 SWIG_fail;
16869 }
16870 {
16871 arg3 = &temp3;
16872 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16873 }
16874 {
16875 PyThreadState* __tstate = wxPyBeginAllowThreads();
16876 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16877
16878 wxPyEndAllowThreads(__tstate);
16879 if (PyErr_Occurred()) SWIG_fail;
16880 }
16881 resultobj = SWIG_FromInt((int)result);
16882 return resultobj;
16883 fail:
16884 return NULL;
16885 }
16886
16887
16888 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16889 PyObject *resultobj;
16890 wxImageList *arg1 = (wxImageList *) 0 ;
16891 wxIcon *arg2 = 0 ;
16892 int result;
16893 PyObject * obj0 = 0 ;
16894 PyObject * obj1 = 0 ;
16895 char *kwnames[] = {
16896 (char *) "self",(char *) "icon", NULL
16897 };
16898
16899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) 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_wxIcon,
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 {
16910 PyThreadState* __tstate = wxPyBeginAllowThreads();
16911 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16912
16913 wxPyEndAllowThreads(__tstate);
16914 if (PyErr_Occurred()) SWIG_fail;
16915 }
16916 resultobj = SWIG_FromInt((int)result);
16917 return resultobj;
16918 fail:
16919 return NULL;
16920 }
16921
16922
16923 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16924 PyObject *resultobj;
16925 wxImageList *arg1 = (wxImageList *) 0 ;
16926 int arg2 ;
16927 wxBitmap *arg3 = 0 ;
16928 wxBitmap const &arg4_defvalue = wxNullBitmap ;
16929 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
16930 bool result;
16931 PyObject * obj0 = 0 ;
16932 PyObject * obj1 = 0 ;
16933 PyObject * obj2 = 0 ;
16934 PyObject * obj3 = 0 ;
16935 char *kwnames[] = {
16936 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
16937 };
16938
16939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16942 arg2 = (int) SWIG_AsInt(obj1);
16943 if (PyErr_Occurred()) SWIG_fail;
16944 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16945 SWIG_POINTER_EXCEPTION | 0)) == -1)
16946 SWIG_fail;
16947 if (arg3 == NULL) {
16948 PyErr_SetString(PyExc_TypeError,"null reference");
16949 SWIG_fail;
16950 }
16951 if (obj3) {
16952 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
16953 SWIG_POINTER_EXCEPTION | 0)) == -1)
16954 SWIG_fail;
16955 if (arg4 == NULL) {
16956 PyErr_SetString(PyExc_TypeError,"null reference");
16957 SWIG_fail;
16958 }
16959 }
16960 {
16961 PyThreadState* __tstate = wxPyBeginAllowThreads();
16962 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
16963
16964 wxPyEndAllowThreads(__tstate);
16965 if (PyErr_Occurred()) SWIG_fail;
16966 }
16967 {
16968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16969 }
16970 return resultobj;
16971 fail:
16972 return NULL;
16973 }
16974
16975
16976 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16977 PyObject *resultobj;
16978 wxImageList *arg1 = (wxImageList *) 0 ;
16979 int arg2 ;
16980 wxDC *arg3 = 0 ;
16981 int arg4 ;
16982 int arg5 ;
16983 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16984 bool arg7 = (bool) (bool)False ;
16985 bool result;
16986 PyObject * obj0 = 0 ;
16987 PyObject * obj1 = 0 ;
16988 PyObject * obj2 = 0 ;
16989 PyObject * obj3 = 0 ;
16990 PyObject * obj4 = 0 ;
16991 PyObject * obj5 = 0 ;
16992 PyObject * obj6 = 0 ;
16993 char *kwnames[] = {
16994 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16995 };
16996
16997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17000 arg2 = (int) SWIG_AsInt(obj1);
17001 if (PyErr_Occurred()) SWIG_fail;
17002 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
17003 SWIG_POINTER_EXCEPTION | 0)) == -1)
17004 SWIG_fail;
17005 if (arg3 == NULL) {
17006 PyErr_SetString(PyExc_TypeError,"null reference");
17007 SWIG_fail;
17008 }
17009 arg4 = (int) SWIG_AsInt(obj3);
17010 if (PyErr_Occurred()) SWIG_fail;
17011 arg5 = (int) SWIG_AsInt(obj4);
17012 if (PyErr_Occurred()) SWIG_fail;
17013 if (obj5) {
17014 arg6 = (int) SWIG_AsInt(obj5);
17015 if (PyErr_Occurred()) SWIG_fail;
17016 }
17017 if (obj6) {
17018 arg7 = (bool const) SWIG_AsBool(obj6);
17019 if (PyErr_Occurred()) SWIG_fail;
17020 }
17021 {
17022 PyThreadState* __tstate = wxPyBeginAllowThreads();
17023 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
17024
17025 wxPyEndAllowThreads(__tstate);
17026 if (PyErr_Occurred()) SWIG_fail;
17027 }
17028 {
17029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17030 }
17031 return resultobj;
17032 fail:
17033 return NULL;
17034 }
17035
17036
17037 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17038 PyObject *resultobj;
17039 wxImageList *arg1 = (wxImageList *) 0 ;
17040 int result;
17041 PyObject * obj0 = 0 ;
17042 char *kwnames[] = {
17043 (char *) "self", NULL
17044 };
17045
17046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
17047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17049 {
17050 PyThreadState* __tstate = wxPyBeginAllowThreads();
17051 result = (int)(arg1)->GetImageCount();
17052
17053 wxPyEndAllowThreads(__tstate);
17054 if (PyErr_Occurred()) SWIG_fail;
17055 }
17056 resultobj = SWIG_FromInt((int)result);
17057 return resultobj;
17058 fail:
17059 return NULL;
17060 }
17061
17062
17063 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
17064 PyObject *resultobj;
17065 wxImageList *arg1 = (wxImageList *) 0 ;
17066 int arg2 ;
17067 bool result;
17068 PyObject * obj0 = 0 ;
17069 PyObject * obj1 = 0 ;
17070 char *kwnames[] = {
17071 (char *) "self",(char *) "index", NULL
17072 };
17073
17074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
17075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17077 arg2 = (int) SWIG_AsInt(obj1);
17078 if (PyErr_Occurred()) SWIG_fail;
17079 {
17080 PyThreadState* __tstate = wxPyBeginAllowThreads();
17081 result = (bool)(arg1)->Remove(arg2);
17082
17083 wxPyEndAllowThreads(__tstate);
17084 if (PyErr_Occurred()) SWIG_fail;
17085 }
17086 {
17087 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17088 }
17089 return resultobj;
17090 fail:
17091 return NULL;
17092 }
17093
17094
17095 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
17096 PyObject *resultobj;
17097 wxImageList *arg1 = (wxImageList *) 0 ;
17098 bool result;
17099 PyObject * obj0 = 0 ;
17100 char *kwnames[] = {
17101 (char *) "self", NULL
17102 };
17103
17104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
17105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17107 {
17108 PyThreadState* __tstate = wxPyBeginAllowThreads();
17109 result = (bool)(arg1)->RemoveAll();
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_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
17124 PyObject *resultobj;
17125 wxImageList *arg1 = (wxImageList *) 0 ;
17126 int arg2 ;
17127 int *arg3 = 0 ;
17128 int *arg4 = 0 ;
17129 int temp3 ;
17130 int temp4 ;
17131 PyObject * obj0 = 0 ;
17132 PyObject * obj1 = 0 ;
17133 char *kwnames[] = {
17134 (char *) "self",(char *) "index", NULL
17135 };
17136
17137 arg3 = &temp3;
17138 arg4 = &temp4;
17139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
17140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17142 arg2 = (int) SWIG_AsInt(obj1);
17143 if (PyErr_Occurred()) SWIG_fail;
17144 {
17145 PyThreadState* __tstate = wxPyBeginAllowThreads();
17146 (arg1)->GetSize(arg2,*arg3,*arg4);
17147
17148 wxPyEndAllowThreads(__tstate);
17149 if (PyErr_Occurred()) SWIG_fail;
17150 }
17151 Py_INCREF(Py_None); resultobj = Py_None;
17152 {
17153 PyObject *o = PyInt_FromLong((long) (*arg3));
17154 resultobj = t_output_helper(resultobj,o);
17155 }
17156 {
17157 PyObject *o = PyInt_FromLong((long) (*arg4));
17158 resultobj = t_output_helper(resultobj,o);
17159 }
17160 return resultobj;
17161 fail:
17162 return NULL;
17163 }
17164
17165
17166 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
17167 PyObject *obj;
17168 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17169 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
17170 Py_INCREF(obj);
17171 return Py_BuildValue((char *)"");
17172 }
17173 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
17174 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
17175 return 1;
17176 }
17177
17178
17179 static PyObject *_wrap_NORMAL_FONT_get() {
17180 PyObject *pyobj;
17181
17182 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
17183 return pyobj;
17184 }
17185
17186
17187 static int _wrap_SMALL_FONT_set(PyObject *_val) {
17188 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
17189 return 1;
17190 }
17191
17192
17193 static PyObject *_wrap_SMALL_FONT_get() {
17194 PyObject *pyobj;
17195
17196 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
17197 return pyobj;
17198 }
17199
17200
17201 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
17202 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
17203 return 1;
17204 }
17205
17206
17207 static PyObject *_wrap_ITALIC_FONT_get() {
17208 PyObject *pyobj;
17209
17210 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
17211 return pyobj;
17212 }
17213
17214
17215 static int _wrap_SWISS_FONT_set(PyObject *_val) {
17216 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
17217 return 1;
17218 }
17219
17220
17221 static PyObject *_wrap_SWISS_FONT_get() {
17222 PyObject *pyobj;
17223
17224 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
17225 return pyobj;
17226 }
17227
17228
17229 static int _wrap_RED_PEN_set(PyObject *_val) {
17230 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
17231 return 1;
17232 }
17233
17234
17235 static PyObject *_wrap_RED_PEN_get() {
17236 PyObject *pyobj;
17237
17238 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
17239 return pyobj;
17240 }
17241
17242
17243 static int _wrap_CYAN_PEN_set(PyObject *_val) {
17244 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
17245 return 1;
17246 }
17247
17248
17249 static PyObject *_wrap_CYAN_PEN_get() {
17250 PyObject *pyobj;
17251
17252 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
17253 return pyobj;
17254 }
17255
17256
17257 static int _wrap_GREEN_PEN_set(PyObject *_val) {
17258 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
17259 return 1;
17260 }
17261
17262
17263 static PyObject *_wrap_GREEN_PEN_get() {
17264 PyObject *pyobj;
17265
17266 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
17267 return pyobj;
17268 }
17269
17270
17271 static int _wrap_BLACK_PEN_set(PyObject *_val) {
17272 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
17273 return 1;
17274 }
17275
17276
17277 static PyObject *_wrap_BLACK_PEN_get() {
17278 PyObject *pyobj;
17279
17280 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
17281 return pyobj;
17282 }
17283
17284
17285 static int _wrap_WHITE_PEN_set(PyObject *_val) {
17286 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
17287 return 1;
17288 }
17289
17290
17291 static PyObject *_wrap_WHITE_PEN_get() {
17292 PyObject *pyobj;
17293
17294 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
17295 return pyobj;
17296 }
17297
17298
17299 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
17300 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
17301 return 1;
17302 }
17303
17304
17305 static PyObject *_wrap_TRANSPARENT_PEN_get() {
17306 PyObject *pyobj;
17307
17308 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
17309 return pyobj;
17310 }
17311
17312
17313 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
17314 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
17315 return 1;
17316 }
17317
17318
17319 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
17320 PyObject *pyobj;
17321
17322 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
17323 return pyobj;
17324 }
17325
17326
17327 static int _wrap_GREY_PEN_set(PyObject *_val) {
17328 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
17329 return 1;
17330 }
17331
17332
17333 static PyObject *_wrap_GREY_PEN_get() {
17334 PyObject *pyobj;
17335
17336 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
17337 return pyobj;
17338 }
17339
17340
17341 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
17342 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
17343 return 1;
17344 }
17345
17346
17347 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
17348 PyObject *pyobj;
17349
17350 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17351 return pyobj;
17352 }
17353
17354
17355 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
17356 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
17357 return 1;
17358 }
17359
17360
17361 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
17362 PyObject *pyobj;
17363
17364 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17365 return pyobj;
17366 }
17367
17368
17369 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
17370 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
17371 return 1;
17372 }
17373
17374
17375 static PyObject *_wrap_BLUE_BRUSH_get() {
17376 PyObject *pyobj;
17377
17378 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17379 return pyobj;
17380 }
17381
17382
17383 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
17384 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
17385 return 1;
17386 }
17387
17388
17389 static PyObject *_wrap_GREEN_BRUSH_get() {
17390 PyObject *pyobj;
17391
17392 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17393 return pyobj;
17394 }
17395
17396
17397 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
17398 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
17399 return 1;
17400 }
17401
17402
17403 static PyObject *_wrap_WHITE_BRUSH_get() {
17404 PyObject *pyobj;
17405
17406 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17407 return pyobj;
17408 }
17409
17410
17411 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
17412 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
17413 return 1;
17414 }
17415
17416
17417 static PyObject *_wrap_BLACK_BRUSH_get() {
17418 PyObject *pyobj;
17419
17420 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
17421 return pyobj;
17422 }
17423
17424
17425 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
17426 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
17427 return 1;
17428 }
17429
17430
17431 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
17432 PyObject *pyobj;
17433
17434 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
17435 return pyobj;
17436 }
17437
17438
17439 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
17440 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
17441 return 1;
17442 }
17443
17444
17445 static PyObject *_wrap_CYAN_BRUSH_get() {
17446 PyObject *pyobj;
17447
17448 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17449 return pyobj;
17450 }
17451
17452
17453 static int _wrap_RED_BRUSH_set(PyObject *_val) {
17454 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
17455 return 1;
17456 }
17457
17458
17459 static PyObject *_wrap_RED_BRUSH_get() {
17460 PyObject *pyobj;
17461
17462 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
17463 return pyobj;
17464 }
17465
17466
17467 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
17468 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
17469 return 1;
17470 }
17471
17472
17473 static PyObject *_wrap_GREY_BRUSH_get() {
17474 PyObject *pyobj;
17475
17476 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17477 return pyobj;
17478 }
17479
17480
17481 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
17482 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
17483 return 1;
17484 }
17485
17486
17487 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
17488 PyObject *pyobj;
17489
17490 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17491 return pyobj;
17492 }
17493
17494
17495 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
17496 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
17497 return 1;
17498 }
17499
17500
17501 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
17502 PyObject *pyobj;
17503
17504 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17505 return pyobj;
17506 }
17507
17508
17509 static int _wrap_BLACK_set(PyObject *_val) {
17510 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
17511 return 1;
17512 }
17513
17514
17515 static PyObject *_wrap_BLACK_get() {
17516 PyObject *pyobj;
17517
17518 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
17519 return pyobj;
17520 }
17521
17522
17523 static int _wrap_WHITE_set(PyObject *_val) {
17524 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
17525 return 1;
17526 }
17527
17528
17529 static PyObject *_wrap_WHITE_get() {
17530 PyObject *pyobj;
17531
17532 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
17533 return pyobj;
17534 }
17535
17536
17537 static int _wrap_RED_set(PyObject *_val) {
17538 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
17539 return 1;
17540 }
17541
17542
17543 static PyObject *_wrap_RED_get() {
17544 PyObject *pyobj;
17545
17546 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
17547 return pyobj;
17548 }
17549
17550
17551 static int _wrap_BLUE_set(PyObject *_val) {
17552 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
17553 return 1;
17554 }
17555
17556
17557 static PyObject *_wrap_BLUE_get() {
17558 PyObject *pyobj;
17559
17560 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
17561 return pyobj;
17562 }
17563
17564
17565 static int _wrap_GREEN_set(PyObject *_val) {
17566 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
17567 return 1;
17568 }
17569
17570
17571 static PyObject *_wrap_GREEN_get() {
17572 PyObject *pyobj;
17573
17574 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
17575 return pyobj;
17576 }
17577
17578
17579 static int _wrap_CYAN_set(PyObject *_val) {
17580 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
17581 return 1;
17582 }
17583
17584
17585 static PyObject *_wrap_CYAN_get() {
17586 PyObject *pyobj;
17587
17588 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
17589 return pyobj;
17590 }
17591
17592
17593 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
17594 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
17595 return 1;
17596 }
17597
17598
17599 static PyObject *_wrap_LIGHT_GREY_get() {
17600 PyObject *pyobj;
17601
17602 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
17603 return pyobj;
17604 }
17605
17606
17607 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
17608 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
17609 return 1;
17610 }
17611
17612
17613 static PyObject *_wrap_STANDARD_CURSOR_get() {
17614 PyObject *pyobj;
17615
17616 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
17617 return pyobj;
17618 }
17619
17620
17621 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
17622 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
17623 return 1;
17624 }
17625
17626
17627 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
17628 PyObject *pyobj;
17629
17630 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17631 return pyobj;
17632 }
17633
17634
17635 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
17636 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
17637 return 1;
17638 }
17639
17640
17641 static PyObject *_wrap_CROSS_CURSOR_get() {
17642 PyObject *pyobj;
17643
17644 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17645 return pyobj;
17646 }
17647
17648
17649 static int _wrap_NullBitmap_set(PyObject *_val) {
17650 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
17651 return 1;
17652 }
17653
17654
17655 static PyObject *_wrap_NullBitmap_get() {
17656 PyObject *pyobj;
17657
17658 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
17659 return pyobj;
17660 }
17661
17662
17663 static int _wrap_NullIcon_set(PyObject *_val) {
17664 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
17665 return 1;
17666 }
17667
17668
17669 static PyObject *_wrap_NullIcon_get() {
17670 PyObject *pyobj;
17671
17672 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
17673 return pyobj;
17674 }
17675
17676
17677 static int _wrap_NullCursor_set(PyObject *_val) {
17678 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
17679 return 1;
17680 }
17681
17682
17683 static PyObject *_wrap_NullCursor_get() {
17684 PyObject *pyobj;
17685
17686 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
17687 return pyobj;
17688 }
17689
17690
17691 static int _wrap_NullPen_set(PyObject *_val) {
17692 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
17693 return 1;
17694 }
17695
17696
17697 static PyObject *_wrap_NullPen_get() {
17698 PyObject *pyobj;
17699
17700 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
17701 return pyobj;
17702 }
17703
17704
17705 static int _wrap_NullBrush_set(PyObject *_val) {
17706 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
17707 return 1;
17708 }
17709
17710
17711 static PyObject *_wrap_NullBrush_get() {
17712 PyObject *pyobj;
17713
17714 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
17715 return pyobj;
17716 }
17717
17718
17719 static int _wrap_NullPalette_set(PyObject *_val) {
17720 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17721 return 1;
17722 }
17723
17724
17725 static PyObject *_wrap_NullPalette_get() {
17726 PyObject *pyobj;
17727
17728 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
17729 return pyobj;
17730 }
17731
17732
17733 static int _wrap_NullFont_set(PyObject *_val) {
17734 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17735 return 1;
17736 }
17737
17738
17739 static PyObject *_wrap_NullFont_get() {
17740 PyObject *pyobj;
17741
17742 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
17743 return pyobj;
17744 }
17745
17746
17747 static int _wrap_NullColour_set(PyObject *_val) {
17748 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17749 return 1;
17750 }
17751
17752
17753 static PyObject *_wrap_NullColour_get() {
17754 PyObject *pyobj;
17755
17756 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17757 return pyobj;
17758 }
17759
17760
17761 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
17762 PyObject *resultobj;
17763 wxPenList *arg1 = (wxPenList *) 0 ;
17764 wxPen *arg2 = (wxPen *) 0 ;
17765 PyObject * obj0 = 0 ;
17766 PyObject * obj1 = 0 ;
17767 char *kwnames[] = {
17768 (char *) "self",(char *) "pen", NULL
17769 };
17770
17771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17774 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17776 {
17777 PyThreadState* __tstate = wxPyBeginAllowThreads();
17778 (arg1)->AddPen(arg2);
17779
17780 wxPyEndAllowThreads(__tstate);
17781 if (PyErr_Occurred()) SWIG_fail;
17782 }
17783 Py_INCREF(Py_None); resultobj = Py_None;
17784 return resultobj;
17785 fail:
17786 return NULL;
17787 }
17788
17789
17790 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17791 PyObject *resultobj;
17792 wxPenList *arg1 = (wxPenList *) 0 ;
17793 wxColour *arg2 = 0 ;
17794 int arg3 ;
17795 int arg4 ;
17796 wxPen *result;
17797 wxColour temp2 ;
17798 PyObject * obj0 = 0 ;
17799 PyObject * obj1 = 0 ;
17800 PyObject * obj2 = 0 ;
17801 PyObject * obj3 = 0 ;
17802 char *kwnames[] = {
17803 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17804 };
17805
17806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17809 {
17810 arg2 = &temp2;
17811 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17812 }
17813 arg3 = (int) SWIG_AsInt(obj2);
17814 if (PyErr_Occurred()) SWIG_fail;
17815 arg4 = (int) SWIG_AsInt(obj3);
17816 if (PyErr_Occurred()) SWIG_fail;
17817 {
17818 PyThreadState* __tstate = wxPyBeginAllowThreads();
17819 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17820
17821 wxPyEndAllowThreads(__tstate);
17822 if (PyErr_Occurred()) SWIG_fail;
17823 }
17824 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17825 return resultobj;
17826 fail:
17827 return NULL;
17828 }
17829
17830
17831 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17832 PyObject *resultobj;
17833 wxPenList *arg1 = (wxPenList *) 0 ;
17834 wxPen *arg2 = (wxPen *) 0 ;
17835 PyObject * obj0 = 0 ;
17836 PyObject * obj1 = 0 ;
17837 char *kwnames[] = {
17838 (char *) "self",(char *) "pen", NULL
17839 };
17840
17841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17844 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17846 {
17847 PyThreadState* __tstate = wxPyBeginAllowThreads();
17848 (arg1)->RemovePen(arg2);
17849
17850 wxPyEndAllowThreads(__tstate);
17851 if (PyErr_Occurred()) SWIG_fail;
17852 }
17853 Py_INCREF(Py_None); resultobj = Py_None;
17854 return resultobj;
17855 fail:
17856 return NULL;
17857 }
17858
17859
17860 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17861 PyObject *resultobj;
17862 wxPenList *arg1 = (wxPenList *) 0 ;
17863 int result;
17864 PyObject * obj0 = 0 ;
17865 char *kwnames[] = {
17866 (char *) "self", NULL
17867 };
17868
17869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17872 {
17873 PyThreadState* __tstate = wxPyBeginAllowThreads();
17874 result = (int)(arg1)->GetCount();
17875
17876 wxPyEndAllowThreads(__tstate);
17877 if (PyErr_Occurred()) SWIG_fail;
17878 }
17879 resultobj = SWIG_FromInt((int)result);
17880 return resultobj;
17881 fail:
17882 return NULL;
17883 }
17884
17885
17886 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17887 PyObject *obj;
17888 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17889 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17890 Py_INCREF(obj);
17891 return Py_BuildValue((char *)"");
17892 }
17893 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17894 PyObject *resultobj;
17895 wxBrushList *arg1 = (wxBrushList *) 0 ;
17896 wxBrush *arg2 = (wxBrush *) 0 ;
17897 PyObject * obj0 = 0 ;
17898 PyObject * obj1 = 0 ;
17899 char *kwnames[] = {
17900 (char *) "self",(char *) "brush", NULL
17901 };
17902
17903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17906 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17908 {
17909 PyThreadState* __tstate = wxPyBeginAllowThreads();
17910 (arg1)->AddBrush(arg2);
17911
17912 wxPyEndAllowThreads(__tstate);
17913 if (PyErr_Occurred()) SWIG_fail;
17914 }
17915 Py_INCREF(Py_None); resultobj = Py_None;
17916 return resultobj;
17917 fail:
17918 return NULL;
17919 }
17920
17921
17922 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17923 PyObject *resultobj;
17924 wxBrushList *arg1 = (wxBrushList *) 0 ;
17925 wxColour *arg2 = 0 ;
17926 int arg3 ;
17927 wxBrush *result;
17928 wxColour temp2 ;
17929 PyObject * obj0 = 0 ;
17930 PyObject * obj1 = 0 ;
17931 PyObject * obj2 = 0 ;
17932 char *kwnames[] = {
17933 (char *) "self",(char *) "colour",(char *) "style", NULL
17934 };
17935
17936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17939 {
17940 arg2 = &temp2;
17941 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17942 }
17943 arg3 = (int) SWIG_AsInt(obj2);
17944 if (PyErr_Occurred()) SWIG_fail;
17945 {
17946 PyThreadState* __tstate = wxPyBeginAllowThreads();
17947 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17948
17949 wxPyEndAllowThreads(__tstate);
17950 if (PyErr_Occurred()) SWIG_fail;
17951 }
17952 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17953 return resultobj;
17954 fail:
17955 return NULL;
17956 }
17957
17958
17959 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17960 PyObject *resultobj;
17961 wxBrushList *arg1 = (wxBrushList *) 0 ;
17962 wxBrush *arg2 = (wxBrush *) 0 ;
17963 PyObject * obj0 = 0 ;
17964 PyObject * obj1 = 0 ;
17965 char *kwnames[] = {
17966 (char *) "self",(char *) "brush", NULL
17967 };
17968
17969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17972 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17974 {
17975 PyThreadState* __tstate = wxPyBeginAllowThreads();
17976 (arg1)->RemoveBrush(arg2);
17977
17978 wxPyEndAllowThreads(__tstate);
17979 if (PyErr_Occurred()) SWIG_fail;
17980 }
17981 Py_INCREF(Py_None); resultobj = Py_None;
17982 return resultobj;
17983 fail:
17984 return NULL;
17985 }
17986
17987
17988 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17989 PyObject *resultobj;
17990 wxBrushList *arg1 = (wxBrushList *) 0 ;
17991 int result;
17992 PyObject * obj0 = 0 ;
17993 char *kwnames[] = {
17994 (char *) "self", NULL
17995 };
17996
17997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18000 {
18001 PyThreadState* __tstate = wxPyBeginAllowThreads();
18002 result = (int)(arg1)->GetCount();
18003
18004 wxPyEndAllowThreads(__tstate);
18005 if (PyErr_Occurred()) SWIG_fail;
18006 }
18007 resultobj = SWIG_FromInt((int)result);
18008 return resultobj;
18009 fail:
18010 return NULL;
18011 }
18012
18013
18014 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
18015 PyObject *obj;
18016 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18017 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
18018 Py_INCREF(obj);
18019 return Py_BuildValue((char *)"");
18020 }
18021 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
18022 PyObject *resultobj;
18023 wxColourDatabase *result;
18024 char *kwnames[] = {
18025 NULL
18026 };
18027
18028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
18029 {
18030 PyThreadState* __tstate = wxPyBeginAllowThreads();
18031 result = (wxColourDatabase *)new wxColourDatabase();
18032
18033 wxPyEndAllowThreads(__tstate);
18034 if (PyErr_Occurred()) SWIG_fail;
18035 }
18036 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
18037 return resultobj;
18038 fail:
18039 return NULL;
18040 }
18041
18042
18043 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
18044 PyObject *resultobj;
18045 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18046 PyObject * obj0 = 0 ;
18047 char *kwnames[] = {
18048 (char *) "self", NULL
18049 };
18050
18051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
18052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18054 {
18055 PyThreadState* __tstate = wxPyBeginAllowThreads();
18056 delete arg1;
18057
18058 wxPyEndAllowThreads(__tstate);
18059 if (PyErr_Occurred()) SWIG_fail;
18060 }
18061 Py_INCREF(Py_None); resultobj = Py_None;
18062 return resultobj;
18063 fail:
18064 return NULL;
18065 }
18066
18067
18068 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
18069 PyObject *resultobj;
18070 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18071 wxString *arg2 = 0 ;
18072 wxColour result;
18073 bool temp2 = False ;
18074 PyObject * obj0 = 0 ;
18075 PyObject * obj1 = 0 ;
18076 char *kwnames[] = {
18077 (char *) "self",(char *) "name", NULL
18078 };
18079
18080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
18081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18083 {
18084 arg2 = wxString_in_helper(obj1);
18085 if (arg2 == NULL) SWIG_fail;
18086 temp2 = True;
18087 }
18088 {
18089 PyThreadState* __tstate = wxPyBeginAllowThreads();
18090 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
18091
18092 wxPyEndAllowThreads(__tstate);
18093 if (PyErr_Occurred()) SWIG_fail;
18094 }
18095 {
18096 wxColour * resultptr;
18097 resultptr = new wxColour((wxColour &) result);
18098 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18099 }
18100 {
18101 if (temp2)
18102 delete arg2;
18103 }
18104 return resultobj;
18105 fail:
18106 {
18107 if (temp2)
18108 delete arg2;
18109 }
18110 return NULL;
18111 }
18112
18113
18114 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
18115 PyObject *resultobj;
18116 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18117 wxColour *arg2 = 0 ;
18118 wxString result;
18119 wxColour temp2 ;
18120 PyObject * obj0 = 0 ;
18121 PyObject * obj1 = 0 ;
18122 char *kwnames[] = {
18123 (char *) "self",(char *) "colour", NULL
18124 };
18125
18126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
18127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18129 {
18130 arg2 = &temp2;
18131 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18132 }
18133 {
18134 PyThreadState* __tstate = wxPyBeginAllowThreads();
18135 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
18136
18137 wxPyEndAllowThreads(__tstate);
18138 if (PyErr_Occurred()) SWIG_fail;
18139 }
18140 {
18141 #if wxUSE_UNICODE
18142 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18143 #else
18144 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18145 #endif
18146 }
18147 return resultobj;
18148 fail:
18149 return NULL;
18150 }
18151
18152
18153 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18154 PyObject *resultobj;
18155 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18156 wxString *arg2 = 0 ;
18157 wxColour *arg3 = 0 ;
18158 bool temp2 = False ;
18159 wxColour temp3 ;
18160 PyObject * obj0 = 0 ;
18161 PyObject * obj1 = 0 ;
18162 PyObject * obj2 = 0 ;
18163 char *kwnames[] = {
18164 (char *) "self",(char *) "name",(char *) "colour", NULL
18165 };
18166
18167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
18168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18170 {
18171 arg2 = wxString_in_helper(obj1);
18172 if (arg2 == NULL) SWIG_fail;
18173 temp2 = True;
18174 }
18175 {
18176 arg3 = &temp3;
18177 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18178 }
18179 {
18180 PyThreadState* __tstate = wxPyBeginAllowThreads();
18181 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
18182
18183 wxPyEndAllowThreads(__tstate);
18184 if (PyErr_Occurred()) SWIG_fail;
18185 }
18186 Py_INCREF(Py_None); resultobj = Py_None;
18187 {
18188 if (temp2)
18189 delete arg2;
18190 }
18191 return resultobj;
18192 fail:
18193 {
18194 if (temp2)
18195 delete arg2;
18196 }
18197 return NULL;
18198 }
18199
18200
18201 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
18202 PyObject *resultobj;
18203 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18204 wxString *arg2 = 0 ;
18205 int arg3 ;
18206 int arg4 ;
18207 int arg5 ;
18208 bool temp2 = False ;
18209 PyObject * obj0 = 0 ;
18210 PyObject * obj1 = 0 ;
18211 PyObject * obj2 = 0 ;
18212 PyObject * obj3 = 0 ;
18213 PyObject * obj4 = 0 ;
18214 char *kwnames[] = {
18215 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
18216 };
18217
18218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18221 {
18222 arg2 = wxString_in_helper(obj1);
18223 if (arg2 == NULL) SWIG_fail;
18224 temp2 = True;
18225 }
18226 arg3 = (int) SWIG_AsInt(obj2);
18227 if (PyErr_Occurred()) SWIG_fail;
18228 arg4 = (int) SWIG_AsInt(obj3);
18229 if (PyErr_Occurred()) SWIG_fail;
18230 arg5 = (int) SWIG_AsInt(obj4);
18231 if (PyErr_Occurred()) SWIG_fail;
18232 {
18233 PyThreadState* __tstate = wxPyBeginAllowThreads();
18234 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
18235
18236 wxPyEndAllowThreads(__tstate);
18237 if (PyErr_Occurred()) SWIG_fail;
18238 }
18239 Py_INCREF(Py_None); resultobj = Py_None;
18240 {
18241 if (temp2)
18242 delete arg2;
18243 }
18244 return resultobj;
18245 fail:
18246 {
18247 if (temp2)
18248 delete arg2;
18249 }
18250 return NULL;
18251 }
18252
18253
18254 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
18255 PyObject *obj;
18256 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18257 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
18258 Py_INCREF(obj);
18259 return Py_BuildValue((char *)"");
18260 }
18261 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18262 PyObject *resultobj;
18263 wxFontList *arg1 = (wxFontList *) 0 ;
18264 wxFont *arg2 = (wxFont *) 0 ;
18265 PyObject * obj0 = 0 ;
18266 PyObject * obj1 = 0 ;
18267 char *kwnames[] = {
18268 (char *) "self",(char *) "font", NULL
18269 };
18270
18271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
18272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18274 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18276 {
18277 PyThreadState* __tstate = wxPyBeginAllowThreads();
18278 (arg1)->AddFont(arg2);
18279
18280 wxPyEndAllowThreads(__tstate);
18281 if (PyErr_Occurred()) SWIG_fail;
18282 }
18283 Py_INCREF(Py_None); resultobj = Py_None;
18284 return resultobj;
18285 fail:
18286 return NULL;
18287 }
18288
18289
18290 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18291 PyObject *resultobj;
18292 wxFontList *arg1 = (wxFontList *) 0 ;
18293 int arg2 ;
18294 int arg3 ;
18295 int arg4 ;
18296 int arg5 ;
18297 bool arg6 = (bool) False ;
18298 wxString const &arg7_defvalue = wxPyEmptyString ;
18299 wxString *arg7 = (wxString *) &arg7_defvalue ;
18300 int arg8 = (int) wxFONTENCODING_DEFAULT ;
18301 wxFont *result;
18302 bool temp7 = False ;
18303 PyObject * obj0 = 0 ;
18304 PyObject * obj1 = 0 ;
18305 PyObject * obj2 = 0 ;
18306 PyObject * obj3 = 0 ;
18307 PyObject * obj4 = 0 ;
18308 PyObject * obj5 = 0 ;
18309 PyObject * obj6 = 0 ;
18310 PyObject * obj7 = 0 ;
18311 char *kwnames[] = {
18312 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
18313 };
18314
18315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
18316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18318 arg2 = (int) SWIG_AsInt(obj1);
18319 if (PyErr_Occurred()) SWIG_fail;
18320 arg3 = (int) SWIG_AsInt(obj2);
18321 if (PyErr_Occurred()) SWIG_fail;
18322 arg4 = (int) SWIG_AsInt(obj3);
18323 if (PyErr_Occurred()) SWIG_fail;
18324 arg5 = (int) SWIG_AsInt(obj4);
18325 if (PyErr_Occurred()) SWIG_fail;
18326 if (obj5) {
18327 arg6 = (bool) SWIG_AsBool(obj5);
18328 if (PyErr_Occurred()) SWIG_fail;
18329 }
18330 if (obj6) {
18331 {
18332 arg7 = wxString_in_helper(obj6);
18333 if (arg7 == NULL) SWIG_fail;
18334 temp7 = True;
18335 }
18336 }
18337 if (obj7) {
18338 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
18339 if (PyErr_Occurred()) SWIG_fail;
18340 }
18341 {
18342 PyThreadState* __tstate = wxPyBeginAllowThreads();
18343 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
18344
18345 wxPyEndAllowThreads(__tstate);
18346 if (PyErr_Occurred()) SWIG_fail;
18347 }
18348 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
18349 {
18350 if (temp7)
18351 delete arg7;
18352 }
18353 return resultobj;
18354 fail:
18355 {
18356 if (temp7)
18357 delete arg7;
18358 }
18359 return NULL;
18360 }
18361
18362
18363 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18364 PyObject *resultobj;
18365 wxFontList *arg1 = (wxFontList *) 0 ;
18366 wxFont *arg2 = (wxFont *) 0 ;
18367 PyObject * obj0 = 0 ;
18368 PyObject * obj1 = 0 ;
18369 char *kwnames[] = {
18370 (char *) "self",(char *) "font", NULL
18371 };
18372
18373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
18374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18376 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18378 {
18379 PyThreadState* __tstate = wxPyBeginAllowThreads();
18380 (arg1)->RemoveFont(arg2);
18381
18382 wxPyEndAllowThreads(__tstate);
18383 if (PyErr_Occurred()) SWIG_fail;
18384 }
18385 Py_INCREF(Py_None); resultobj = Py_None;
18386 return resultobj;
18387 fail:
18388 return NULL;
18389 }
18390
18391
18392 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
18393 PyObject *resultobj;
18394 wxFontList *arg1 = (wxFontList *) 0 ;
18395 int result;
18396 PyObject * obj0 = 0 ;
18397 char *kwnames[] = {
18398 (char *) "self", NULL
18399 };
18400
18401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
18402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18404 {
18405 PyThreadState* __tstate = wxPyBeginAllowThreads();
18406 result = (int)(arg1)->GetCount();
18407
18408 wxPyEndAllowThreads(__tstate);
18409 if (PyErr_Occurred()) SWIG_fail;
18410 }
18411 resultobj = SWIG_FromInt((int)result);
18412 return resultobj;
18413 fail:
18414 return NULL;
18415 }
18416
18417
18418 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
18419 PyObject *obj;
18420 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18421 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
18422 Py_INCREF(obj);
18423 return Py_BuildValue((char *)"");
18424 }
18425 static int _wrap_TheFontList_set(PyObject *_val) {
18426 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
18427 return 1;
18428 }
18429
18430
18431 static PyObject *_wrap_TheFontList_get() {
18432 PyObject *pyobj;
18433
18434 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
18435 return pyobj;
18436 }
18437
18438
18439 static int _wrap_ThePenList_set(PyObject *_val) {
18440 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
18441 return 1;
18442 }
18443
18444
18445 static PyObject *_wrap_ThePenList_get() {
18446 PyObject *pyobj;
18447
18448 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
18449 return pyobj;
18450 }
18451
18452
18453 static int _wrap_TheBrushList_set(PyObject *_val) {
18454 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
18455 return 1;
18456 }
18457
18458
18459 static PyObject *_wrap_TheBrushList_get() {
18460 PyObject *pyobj;
18461
18462 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
18463 return pyobj;
18464 }
18465
18466
18467 static int _wrap_TheColourDatabase_set(PyObject *_val) {
18468 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
18469 return 1;
18470 }
18471
18472
18473 static PyObject *_wrap_TheColourDatabase_get() {
18474 PyObject *pyobj;
18475
18476 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
18477 return pyobj;
18478 }
18479
18480
18481 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
18482 PyObject *resultobj;
18483 wxEffects *result;
18484 char *kwnames[] = {
18485 NULL
18486 };
18487
18488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
18489 {
18490 PyThreadState* __tstate = wxPyBeginAllowThreads();
18491 result = (wxEffects *)new wxEffects();
18492
18493 wxPyEndAllowThreads(__tstate);
18494 if (PyErr_Occurred()) SWIG_fail;
18495 }
18496 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
18497 return resultobj;
18498 fail:
18499 return NULL;
18500 }
18501
18502
18503 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18504 PyObject *resultobj;
18505 wxEffects *arg1 = (wxEffects *) 0 ;
18506 wxColour result;
18507 PyObject * obj0 = 0 ;
18508 char *kwnames[] = {
18509 (char *) "self", NULL
18510 };
18511
18512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
18513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18515 {
18516 PyThreadState* __tstate = wxPyBeginAllowThreads();
18517 result = ((wxEffects const *)arg1)->GetHighlightColour();
18518
18519 wxPyEndAllowThreads(__tstate);
18520 if (PyErr_Occurred()) SWIG_fail;
18521 }
18522 {
18523 wxColour * resultptr;
18524 resultptr = new wxColour((wxColour &) result);
18525 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18526 }
18527 return resultobj;
18528 fail:
18529 return NULL;
18530 }
18531
18532
18533 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18534 PyObject *resultobj;
18535 wxEffects *arg1 = (wxEffects *) 0 ;
18536 wxColour result;
18537 PyObject * obj0 = 0 ;
18538 char *kwnames[] = {
18539 (char *) "self", NULL
18540 };
18541
18542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
18543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18545 {
18546 PyThreadState* __tstate = wxPyBeginAllowThreads();
18547 result = ((wxEffects const *)arg1)->GetLightShadow();
18548
18549 wxPyEndAllowThreads(__tstate);
18550 if (PyErr_Occurred()) SWIG_fail;
18551 }
18552 {
18553 wxColour * resultptr;
18554 resultptr = new wxColour((wxColour &) result);
18555 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18556 }
18557 return resultobj;
18558 fail:
18559 return NULL;
18560 }
18561
18562
18563 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18564 PyObject *resultobj;
18565 wxEffects *arg1 = (wxEffects *) 0 ;
18566 wxColour result;
18567 PyObject * obj0 = 0 ;
18568 char *kwnames[] = {
18569 (char *) "self", NULL
18570 };
18571
18572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
18573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18575 {
18576 PyThreadState* __tstate = wxPyBeginAllowThreads();
18577 result = ((wxEffects const *)arg1)->GetFaceColour();
18578
18579 wxPyEndAllowThreads(__tstate);
18580 if (PyErr_Occurred()) SWIG_fail;
18581 }
18582 {
18583 wxColour * resultptr;
18584 resultptr = new wxColour((wxColour &) result);
18585 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18586 }
18587 return resultobj;
18588 fail:
18589 return NULL;
18590 }
18591
18592
18593 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18594 PyObject *resultobj;
18595 wxEffects *arg1 = (wxEffects *) 0 ;
18596 wxColour result;
18597 PyObject * obj0 = 0 ;
18598 char *kwnames[] = {
18599 (char *) "self", NULL
18600 };
18601
18602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
18603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18605 {
18606 PyThreadState* __tstate = wxPyBeginAllowThreads();
18607 result = ((wxEffects const *)arg1)->GetMediumShadow();
18608
18609 wxPyEndAllowThreads(__tstate);
18610 if (PyErr_Occurred()) SWIG_fail;
18611 }
18612 {
18613 wxColour * resultptr;
18614 resultptr = new wxColour((wxColour &) result);
18615 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18616 }
18617 return resultobj;
18618 fail:
18619 return NULL;
18620 }
18621
18622
18623 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18624 PyObject *resultobj;
18625 wxEffects *arg1 = (wxEffects *) 0 ;
18626 wxColour result;
18627 PyObject * obj0 = 0 ;
18628 char *kwnames[] = {
18629 (char *) "self", NULL
18630 };
18631
18632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
18633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18635 {
18636 PyThreadState* __tstate = wxPyBeginAllowThreads();
18637 result = ((wxEffects const *)arg1)->GetDarkShadow();
18638
18639 wxPyEndAllowThreads(__tstate);
18640 if (PyErr_Occurred()) SWIG_fail;
18641 }
18642 {
18643 wxColour * resultptr;
18644 resultptr = new wxColour((wxColour &) result);
18645 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18646 }
18647 return resultobj;
18648 fail:
18649 return NULL;
18650 }
18651
18652
18653 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18654 PyObject *resultobj;
18655 wxEffects *arg1 = (wxEffects *) 0 ;
18656 wxColour *arg2 = 0 ;
18657 wxColour temp2 ;
18658 PyObject * obj0 = 0 ;
18659 PyObject * obj1 = 0 ;
18660 char *kwnames[] = {
18661 (char *) "self",(char *) "c", NULL
18662 };
18663
18664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
18665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18667 {
18668 arg2 = &temp2;
18669 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18670 }
18671 {
18672 PyThreadState* __tstate = wxPyBeginAllowThreads();
18673 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18674
18675 wxPyEndAllowThreads(__tstate);
18676 if (PyErr_Occurred()) SWIG_fail;
18677 }
18678 Py_INCREF(Py_None); resultobj = Py_None;
18679 return resultobj;
18680 fail:
18681 return NULL;
18682 }
18683
18684
18685 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18686 PyObject *resultobj;
18687 wxEffects *arg1 = (wxEffects *) 0 ;
18688 wxColour *arg2 = 0 ;
18689 wxColour temp2 ;
18690 PyObject * obj0 = 0 ;
18691 PyObject * obj1 = 0 ;
18692 char *kwnames[] = {
18693 (char *) "self",(char *) "c", NULL
18694 };
18695
18696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
18697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18699 {
18700 arg2 = &temp2;
18701 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18702 }
18703 {
18704 PyThreadState* __tstate = wxPyBeginAllowThreads();
18705 (arg1)->SetLightShadow((wxColour const &)*arg2);
18706
18707 wxPyEndAllowThreads(__tstate);
18708 if (PyErr_Occurred()) SWIG_fail;
18709 }
18710 Py_INCREF(Py_None); resultobj = Py_None;
18711 return resultobj;
18712 fail:
18713 return NULL;
18714 }
18715
18716
18717 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18718 PyObject *resultobj;
18719 wxEffects *arg1 = (wxEffects *) 0 ;
18720 wxColour *arg2 = 0 ;
18721 wxColour temp2 ;
18722 PyObject * obj0 = 0 ;
18723 PyObject * obj1 = 0 ;
18724 char *kwnames[] = {
18725 (char *) "self",(char *) "c", NULL
18726 };
18727
18728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18731 {
18732 arg2 = &temp2;
18733 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18734 }
18735 {
18736 PyThreadState* __tstate = wxPyBeginAllowThreads();
18737 (arg1)->SetFaceColour((wxColour const &)*arg2);
18738
18739 wxPyEndAllowThreads(__tstate);
18740 if (PyErr_Occurred()) SWIG_fail;
18741 }
18742 Py_INCREF(Py_None); resultobj = Py_None;
18743 return resultobj;
18744 fail:
18745 return NULL;
18746 }
18747
18748
18749 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18750 PyObject *resultobj;
18751 wxEffects *arg1 = (wxEffects *) 0 ;
18752 wxColour *arg2 = 0 ;
18753 wxColour temp2 ;
18754 PyObject * obj0 = 0 ;
18755 PyObject * obj1 = 0 ;
18756 char *kwnames[] = {
18757 (char *) "self",(char *) "c", NULL
18758 };
18759
18760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18763 {
18764 arg2 = &temp2;
18765 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18766 }
18767 {
18768 PyThreadState* __tstate = wxPyBeginAllowThreads();
18769 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18770
18771 wxPyEndAllowThreads(__tstate);
18772 if (PyErr_Occurred()) SWIG_fail;
18773 }
18774 Py_INCREF(Py_None); resultobj = Py_None;
18775 return resultobj;
18776 fail:
18777 return NULL;
18778 }
18779
18780
18781 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18782 PyObject *resultobj;
18783 wxEffects *arg1 = (wxEffects *) 0 ;
18784 wxColour *arg2 = 0 ;
18785 wxColour temp2 ;
18786 PyObject * obj0 = 0 ;
18787 PyObject * obj1 = 0 ;
18788 char *kwnames[] = {
18789 (char *) "self",(char *) "c", NULL
18790 };
18791
18792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18795 {
18796 arg2 = &temp2;
18797 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18798 }
18799 {
18800 PyThreadState* __tstate = wxPyBeginAllowThreads();
18801 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18802
18803 wxPyEndAllowThreads(__tstate);
18804 if (PyErr_Occurred()) SWIG_fail;
18805 }
18806 Py_INCREF(Py_None); resultobj = Py_None;
18807 return resultobj;
18808 fail:
18809 return NULL;
18810 }
18811
18812
18813 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18814 PyObject *resultobj;
18815 wxEffects *arg1 = (wxEffects *) 0 ;
18816 wxColour *arg2 = 0 ;
18817 wxColour *arg3 = 0 ;
18818 wxColour *arg4 = 0 ;
18819 wxColour *arg5 = 0 ;
18820 wxColour *arg6 = 0 ;
18821 wxColour temp2 ;
18822 wxColour temp3 ;
18823 wxColour temp4 ;
18824 wxColour temp5 ;
18825 wxColour temp6 ;
18826 PyObject * obj0 = 0 ;
18827 PyObject * obj1 = 0 ;
18828 PyObject * obj2 = 0 ;
18829 PyObject * obj3 = 0 ;
18830 PyObject * obj4 = 0 ;
18831 PyObject * obj5 = 0 ;
18832 char *kwnames[] = {
18833 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18834 };
18835
18836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18839 {
18840 arg2 = &temp2;
18841 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18842 }
18843 {
18844 arg3 = &temp3;
18845 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18846 }
18847 {
18848 arg4 = &temp4;
18849 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18850 }
18851 {
18852 arg5 = &temp5;
18853 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18854 }
18855 {
18856 arg6 = &temp6;
18857 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18858 }
18859 {
18860 PyThreadState* __tstate = wxPyBeginAllowThreads();
18861 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18862
18863 wxPyEndAllowThreads(__tstate);
18864 if (PyErr_Occurred()) SWIG_fail;
18865 }
18866 Py_INCREF(Py_None); resultobj = Py_None;
18867 return resultobj;
18868 fail:
18869 return NULL;
18870 }
18871
18872
18873 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18874 PyObject *resultobj;
18875 wxEffects *arg1 = (wxEffects *) 0 ;
18876 wxDC *arg2 = 0 ;
18877 wxRect *arg3 = 0 ;
18878 int arg4 = (int) 1 ;
18879 wxRect temp3 ;
18880 PyObject * obj0 = 0 ;
18881 PyObject * obj1 = 0 ;
18882 PyObject * obj2 = 0 ;
18883 PyObject * obj3 = 0 ;
18884 char *kwnames[] = {
18885 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18886 };
18887
18888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18891 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18892 SWIG_POINTER_EXCEPTION | 0)) == -1)
18893 SWIG_fail;
18894 if (arg2 == NULL) {
18895 PyErr_SetString(PyExc_TypeError,"null reference");
18896 SWIG_fail;
18897 }
18898 {
18899 arg3 = &temp3;
18900 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18901 }
18902 if (obj3) {
18903 arg4 = (int) SWIG_AsInt(obj3);
18904 if (PyErr_Occurred()) SWIG_fail;
18905 }
18906 {
18907 PyThreadState* __tstate = wxPyBeginAllowThreads();
18908 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18909
18910 wxPyEndAllowThreads(__tstate);
18911 if (PyErr_Occurred()) SWIG_fail;
18912 }
18913 Py_INCREF(Py_None); resultobj = Py_None;
18914 return resultobj;
18915 fail:
18916 return NULL;
18917 }
18918
18919
18920 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18921 PyObject *resultobj;
18922 wxEffects *arg1 = (wxEffects *) 0 ;
18923 wxRect *arg2 = 0 ;
18924 wxDC *arg3 = 0 ;
18925 wxBitmap *arg4 = 0 ;
18926 bool result;
18927 wxRect temp2 ;
18928 PyObject * obj0 = 0 ;
18929 PyObject * obj1 = 0 ;
18930 PyObject * obj2 = 0 ;
18931 PyObject * obj3 = 0 ;
18932 char *kwnames[] = {
18933 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18934 };
18935
18936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18939 {
18940 arg2 = &temp2;
18941 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18942 }
18943 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18944 SWIG_POINTER_EXCEPTION | 0)) == -1)
18945 SWIG_fail;
18946 if (arg3 == NULL) {
18947 PyErr_SetString(PyExc_TypeError,"null reference");
18948 SWIG_fail;
18949 }
18950 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18951 SWIG_POINTER_EXCEPTION | 0)) == -1)
18952 SWIG_fail;
18953 if (arg4 == NULL) {
18954 PyErr_SetString(PyExc_TypeError,"null reference");
18955 SWIG_fail;
18956 }
18957 {
18958 PyThreadState* __tstate = wxPyBeginAllowThreads();
18959 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18960
18961 wxPyEndAllowThreads(__tstate);
18962 if (PyErr_Occurred()) SWIG_fail;
18963 }
18964 {
18965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18966 }
18967 return resultobj;
18968 fail:
18969 return NULL;
18970 }
18971
18972
18973 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18974 PyObject *obj;
18975 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18976 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18977 Py_INCREF(obj);
18978 return Py_BuildValue((char *)"");
18979 }
18980 static PyMethodDef SwigMethods[] = {
18981 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18982 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18983 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18984 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18985 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18986 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18987 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
18988 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18989 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
18990 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
18991 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18992 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18993 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18994 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18995 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
18996 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
18997 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
18998 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
18999 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
19000 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
19001 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
19002 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
19003 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
19004 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
19005 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
19006 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
19007 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
19008 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
19009 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
19010 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
19011 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
19012 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
19013 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
19014 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
19015 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
19016 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
19017 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
19018 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
19019 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
19020 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
19021 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
19022 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
19023 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
19024 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
19025 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
19026 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
19027 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
19028 { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS },
19029 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS },
19030 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
19031 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
19032 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
19033 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
19034 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
19035 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
19036 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
19037 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
19038 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
19039 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
19040 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
19041 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
19042 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
19043 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
19044 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
19045 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
19046 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
19047 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
19048 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
19049 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
19050 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
19051 { (char *)"new_EmptyBitmap", _wrap_new_EmptyBitmap, METH_VARARGS },
19052 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
19053 { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
19054 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
19055 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
19056 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
19057 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
19058 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
19059 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS },
19060 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
19061 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
19062 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
19063 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
19064 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
19065 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
19066 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
19067 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
19068 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
19069 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
19070 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
19071 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
19072 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
19073 { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
19074 { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
19075 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
19076 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
19077 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
19078 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
19079 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
19080 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
19081 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
19082 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
19083 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
19084 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
19085 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
19086 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
19087 { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS },
19088 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS },
19089 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
19090 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
19091 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
19092 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
19093 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
19094 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
19095 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
19096 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS },
19097 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
19098 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
19099 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
19100 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
19101 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
19102 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
19103 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
19104 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
19105 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
19106 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
19107 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
19108 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
19109 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
19110 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
19111 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
19112 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
19113 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
19114 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
19115 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
19116 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
19117 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
19118 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
19119 { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS },
19120 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS },
19121 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
19122 { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS },
19123 { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS },
19124 { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS },
19125 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS },
19126 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
19127 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
19128 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS },
19129 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
19130 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
19131 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
19132 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
19133 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
19134 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
19135 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
19136 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
19137 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
19138 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
19139 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
19140 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
19141 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
19142 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
19143 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
19144 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
19145 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
19146 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
19147 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
19148 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
19149 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
19150 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
19151 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
19152 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
19153 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
19154 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
19155 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
19156 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
19157 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
19158 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
19159 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
19160 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
19161 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
19162 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
19163 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
19164 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
19165 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
19166 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
19167 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
19168 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
19169 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
19170 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
19171 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19172 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19173 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
19174 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
19175 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
19176 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
19177 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
19178 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
19179 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
19180 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
19181 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
19182 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
19183 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
19184 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
19185 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
19186 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
19187 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
19188 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
19189 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
19190 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
19191 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
19192 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
19193 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
19194 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
19195 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
19196 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
19197 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
19198 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
19199 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
19200 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
19201 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
19202 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
19203 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
19204 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
19205 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
19206 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
19207 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
19208 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
19209 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
19210 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
19211 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
19212 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
19213 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
19214 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
19215 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS },
19216 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
19217 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
19218 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
19219 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
19220 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
19221 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
19222 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
19223 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
19224 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
19225 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
19226 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
19227 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
19228 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
19229 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
19230 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
19231 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
19232 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
19233 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
19234 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
19235 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
19236 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
19237 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
19238 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
19239 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19240 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
19241 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
19242 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
19243 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
19244 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
19245 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
19246 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
19247 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
19248 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
19249 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
19250 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19251 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
19252 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
19253 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
19254 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
19255 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
19256 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
19257 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
19258 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
19259 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
19260 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
19261 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
19262 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
19263 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
19264 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
19265 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
19266 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
19267 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
19268 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
19269 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
19270 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
19271 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
19272 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
19273 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
19274 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
19275 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
19276 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
19277 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
19278 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
19279 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
19280 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
19281 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
19282 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
19283 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
19284 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
19285 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
19286 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
19287 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
19288 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
19289 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
19290 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
19291 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
19292 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
19293 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
19294 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
19295 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
19296 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
19297 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
19298 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
19299 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
19300 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
19301 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
19302 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
19303 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
19304 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
19305 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
19306 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
19307 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
19308 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
19309 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
19310 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
19311 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
19312 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
19313 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
19314 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
19315 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
19316 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
19317 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
19318 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
19319 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
19320 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
19321 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
19322 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
19323 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
19324 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
19325 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
19326 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
19327 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
19328 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
19329 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
19330 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
19331 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
19332 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
19333 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
19334 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
19335 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
19336 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
19337 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
19338 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
19339 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
19340 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
19341 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
19342 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
19343 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
19344 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
19345 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
19346 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
19347 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
19348 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
19349 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
19350 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
19351 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
19352 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
19353 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
19354 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
19355 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
19356 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
19357 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
19358 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
19359 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
19360 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
19361 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
19362 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
19363 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
19364 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
19365 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
19366 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
19367 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
19368 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
19369 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
19370 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
19371 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
19372 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
19373 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
19374 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
19375 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
19376 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
19377 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
19378 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
19379 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
19380 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
19381 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
19382 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
19383 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
19384 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
19385 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
19386 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
19387 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
19388 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
19389 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
19390 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
19391 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
19392 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
19393 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
19394 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
19395 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
19396 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
19397 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
19398 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
19399 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
19400 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
19401 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
19402 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
19403 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
19404 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
19405 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
19406 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
19407 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
19408 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
19409 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
19410 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
19411 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
19412 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
19413 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
19414 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
19415 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
19416 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
19417 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
19418 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
19419 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
19420 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
19421 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
19422 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
19423 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
19424 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
19425 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
19426 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
19427 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
19428 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
19429 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
19430 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
19431 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
19432 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
19433 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
19434 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
19435 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
19436 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
19437 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
19438 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
19439 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
19440 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
19441 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
19442 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
19443 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
19444 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
19445 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
19446 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
19447 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
19448 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
19449 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
19450 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
19451 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
19452 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
19453 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
19454 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
19455 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
19456 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
19457 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
19458 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
19459 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
19460 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
19461 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
19462 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
19463 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
19464 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
19465 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS },
19466 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
19467 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
19468 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
19469 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
19470 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
19471 { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
19472 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
19473 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
19474 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
19475 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
19476 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
19477 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
19478 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
19479 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
19480 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
19481 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
19482 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
19483 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
19484 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
19485 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
19486 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
19487 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
19488 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
19489 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
19490 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
19491 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
19492 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
19493 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
19494 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
19495 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
19496 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
19497 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
19498 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
19499 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
19500 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
19501 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
19502 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
19503 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
19504 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
19505 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
19506 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
19507 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
19508 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
19509 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
19510 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
19511 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
19512 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
19513 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
19514 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
19515 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
19516 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
19517 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
19518 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
19519 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
19520 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
19521 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
19522 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
19523 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
19524 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
19525 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
19526 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
19527 { NULL, NULL }
19528 };
19529
19530
19531 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
19532
19533 static void *_p_wxControlTo_p_wxWindow(void *x) {
19534 return (void *)((wxWindow *) ((wxControl *) x));
19535 }
19536 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
19537 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
19538 }
19539 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
19540 return (void *)((wxWindow *) ((wxMenuBar *) x));
19541 }
19542 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
19543 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
19544 }
19545 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
19546 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
19547 }
19548 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
19549 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
19550 }
19551 static void *_p_wxPenTo_p_wxObject(void *x) {
19552 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
19553 }
19554 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
19555 return (void *)((wxObject *) ((wxRegionIterator *) x));
19556 }
19557 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
19558 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
19559 }
19560 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
19561 return (void *)((wxObject *) ((wxSizerItem *) x));
19562 }
19563 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
19564 return (void *)((wxObject *) ((wxColourDatabase *) x));
19565 }
19566 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
19567 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
19568 }
19569 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
19570 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
19571 }
19572 static void *_p_wxIconTo_p_wxObject(void *x) {
19573 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
19574 }
19575 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
19576 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
19577 }
19578 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
19579 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
19580 }
19581 static void *_p_wxSizerTo_p_wxObject(void *x) {
19582 return (void *)((wxObject *) ((wxSizer *) x));
19583 }
19584 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
19585 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
19586 }
19587 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
19588 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
19589 }
19590 static void *_p_wxPenListTo_p_wxObject(void *x) {
19591 return (void *)((wxObject *) ((wxPenList *) x));
19592 }
19593 static void *_p_wxEventTo_p_wxObject(void *x) {
19594 return (void *)((wxObject *) ((wxEvent *) x));
19595 }
19596 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
19597 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
19598 }
19599 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
19600 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
19601 }
19602 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
19603 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
19604 }
19605 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
19606 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
19607 }
19608 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
19609 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
19610 }
19611 static void *_p_wxDCTo_p_wxObject(void *x) {
19612 return (void *)((wxObject *) ((wxDC *) x));
19613 }
19614 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
19615 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
19616 }
19617 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
19618 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
19619 }
19620 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
19621 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
19622 }
19623 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
19624 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
19625 }
19626 static void *_p_wxControlTo_p_wxObject(void *x) {
19627 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
19628 }
19629 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
19630 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
19631 }
19632 static void *_p_wxClientDCTo_p_wxObject(void *x) {
19633 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
19634 }
19635 static void *_p_wxFSFileTo_p_wxObject(void *x) {
19636 return (void *)((wxObject *) ((wxFSFile *) x));
19637 }
19638 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
19639 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
19640 }
19641 static void *_p_wxRegionTo_p_wxObject(void *x) {
19642 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
19643 }
19644 static void *_p_wxPySizerTo_p_wxObject(void *x) {
19645 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
19646 }
19647 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
19648 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
19649 }
19650 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
19651 return (void *)((wxObject *) ((wxGDIObject *) x));
19652 }
19653 static void *_p_wxEffectsTo_p_wxObject(void *x) {
19654 return (void *)((wxObject *) ((wxEffects *) x));
19655 }
19656 static void *_p_wxPyEventTo_p_wxObject(void *x) {
19657 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
19658 }
19659 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
19660 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
19661 }
19662 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
19663 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
19664 }
19665 static void *_p_wxShowEventTo_p_wxObject(void *x) {
19666 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
19667 }
19668 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
19669 return (void *)((wxObject *) ((wxMenuItem *) x));
19670 }
19671 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
19672 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
19673 }
19674 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
19675 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
19676 }
19677 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
19678 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
19679 }
19680 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
19681 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
19682 }
19683 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
19684 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
19685 }
19686 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
19687 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
19688 }
19689 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
19690 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
19691 }
19692 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
19693 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
19694 }
19695 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
19696 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19697 }
19698 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19699 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19700 }
19701 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19702 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19703 }
19704 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19705 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19706 }
19707 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19708 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19709 }
19710 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19711 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19712 }
19713 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19714 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19715 }
19716 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19717 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19718 }
19719 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19720 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19721 }
19722 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19723 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19724 }
19725 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19726 return (void *)((wxObject *) ((wxImageHandler *) x));
19727 }
19728 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19729 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19730 }
19731 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19732 return (void *)((wxObject *) ((wxEvtHandler *) x));
19733 }
19734 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19735 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19736 }
19737 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19738 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19739 }
19740 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19741 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19742 }
19743 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19744 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19745 }
19746 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19747 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19748 }
19749 static void *_p_wxImageTo_p_wxObject(void *x) {
19750 return (void *)((wxObject *) ((wxImage *) x));
19751 }
19752 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19753 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19754 }
19755 static void *_p_wxPaletteTo_p_wxObject(void *x) {
19756 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19757 }
19758 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19759 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19760 }
19761 static void *_p_wxImageListTo_p_wxObject(void *x) {
19762 return (void *)((wxObject *) ((wxImageList *) x));
19763 }
19764 static void *_p_wxCursorTo_p_wxObject(void *x) {
19765 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19766 }
19767 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19768 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19769 }
19770 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19771 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19772 }
19773 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19774 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19775 }
19776 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19777 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19778 }
19779 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19780 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19781 }
19782 static void *_p_wxWindowTo_p_wxObject(void *x) {
19783 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19784 }
19785 static void *_p_wxMenuTo_p_wxObject(void *x) {
19786 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19787 }
19788 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19789 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19790 }
19791 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19792 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19793 }
19794 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19795 return (void *)((wxObject *) ((wxBrushList *) x));
19796 }
19797 static void *_p_wxPyPenTo_p_wxObject(void *x) {
19798 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
19799 }
19800 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19801 return (void *)((wxObject *) ((wxFileSystem *) x));
19802 }
19803 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19804 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19805 }
19806 static void *_p_wxMaskTo_p_wxObject(void *x) {
19807 return (void *)((wxObject *) ((wxMask *) x));
19808 }
19809 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19810 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19811 }
19812 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19813 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19814 }
19815 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19816 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19817 }
19818 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19819 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19820 }
19821 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19822 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19823 }
19824 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19825 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19826 }
19827 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19828 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19829 }
19830 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19831 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19832 }
19833 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19834 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19835 }
19836 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19837 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19838 }
19839 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19840 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19841 }
19842 static void *_p_wxFontTo_p_wxObject(void *x) {
19843 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19844 }
19845 static void *_p_wxBrushTo_p_wxObject(void *x) {
19846 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19847 }
19848 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19849 return (void *)((wxObject *) ((wxMetaFile *) x));
19850 }
19851 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19852 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19853 }
19854 static void *_p_wxColourTo_p_wxObject(void *x) {
19855 return (void *)((wxObject *) ((wxColour *) x));
19856 }
19857 static void *_p_wxFontListTo_p_wxObject(void *x) {
19858 return (void *)((wxObject *) ((wxFontList *) x));
19859 }
19860 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19861 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19862 }
19863 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19864 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19865 }
19866 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19867 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19868 }
19869 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19870 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19871 }
19872 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19873 return (void *)((wxDC *) ((wxScreenDC *) x));
19874 }
19875 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19876 return (void *)((wxDC *) ((wxMirrorDC *) x));
19877 }
19878 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19879 return (void *)((wxDC *) ((wxMemoryDC *) x));
19880 }
19881 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19882 return (void *)((wxDC *) ((wxWindowDC *) x));
19883 }
19884 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19885 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19886 }
19887 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19888 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19889 }
19890 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19891 return (void *)((wxDC *) ((wxClientDC *) x));
19892 }
19893 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19894 return (void *)((wxDC *) ((wxPaintDC *) x));
19895 }
19896 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19897 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19898 }
19899 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19900 return (void *)((wxDC *) ((wxPrinterDC *) x));
19901 }
19902 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
19903 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
19904 }
19905 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19906 return (void *)((wxGDIObject *) ((wxIcon *) x));
19907 }
19908 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19909 return (void *)((wxGDIObject *) ((wxPalette *) x));
19910 }
19911 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19912 return (void *)((wxGDIObject *) ((wxPen *) x));
19913 }
19914 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19915 return (void *)((wxGDIObject *) ((wxFont *) x));
19916 }
19917 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19918 return (void *)((wxGDIObject *) ((wxCursor *) x));
19919 }
19920 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19921 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19922 }
19923 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19924 return (void *)((wxGDIObject *) ((wxRegion *) x));
19925 }
19926 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19927 return (void *)((wxGDIObject *) ((wxBrush *) x));
19928 }
19929 static void *_p_wxPyPenTo_p_wxPen(void *x) {
19930 return (void *)((wxPen *) ((wxPyPen *) x));
19931 }
19932 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}};
19933 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}};
19934 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}};
19935 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}};
19936 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}};
19937 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}};
19938 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}};
19939 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}};
19940 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}};
19941 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}};
19942 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}};
19943 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}};
19944 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}};
19945 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}};
19946 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}};
19947 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}};
19948 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}};
19949 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}};
19950 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}};
19951 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}};
19952 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}};
19953 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}};
19954 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}};
19955 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}};
19956 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}};
19957 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}};
19958 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}};
19959 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}};
19960 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}};
19961 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}};
19962 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}};
19963 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}};
19964 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}};
19965 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}};
19966 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}};
19967 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}};
19968 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}};
19969 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}};
19970 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}};
19971 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}};
19972 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}};
19973 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}};
19974 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}};
19975 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}};
19976 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}};
19977 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}};
19978 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}};
19979 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}};
19980 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}};
19981 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}};
19982 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}};
19983 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}};
19984 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}};
19985 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}};
19986 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}};
19987 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}};
19988
19989 static swig_type_info *swig_types_initial[] = {
19990 _swigt__p_wxPostScriptDC,
19991 _swigt__p_wxBrush,
19992 _swigt__p_wxColour,
19993 _swigt__p_wxDC,
19994 _swigt__p_wxMirrorDC,
19995 _swigt__p_byte,
19996 _swigt__p_wxPyFontEnumerator,
19997 _swigt__p_char,
19998 _swigt__p_wxIconLocation,
19999 _swigt__p_wxImage,
20000 _swigt__p_wxMetaFileDC,
20001 _swigt__p_wxMask,
20002 _swigt__p_wxSize,
20003 _swigt__p_wxFont,
20004 _swigt__p_wxWindow,
20005 _swigt__p_double,
20006 _swigt__p_wxMemoryDC,
20007 _swigt__p_wxFontMapper,
20008 _swigt__p_wxEffects,
20009 _swigt__p_wxNativeEncodingInfo,
20010 _swigt__p_wxPalette,
20011 _swigt__p_wxBitmap,
20012 _swigt__p_wxObject,
20013 _swigt__p_wxRegionIterator,
20014 _swigt__p_wxRect,
20015 _swigt__p_wxString,
20016 _swigt__p_wxPrinterDC,
20017 _swigt__p_wxIconBundle,
20018 _swigt__p_wxPoint,
20019 _swigt__p_wxDash,
20020 _swigt__p_wxScreenDC,
20021 _swigt__p_wxCursor,
20022 _swigt__p_wxClientDC,
20023 _swigt__p_wxBufferedDC,
20024 _swigt__p_wxImageList,
20025 _swigt__p_unsigned_char,
20026 _swigt__p_wxGDIObject,
20027 _swigt__p_wxIcon,
20028 _swigt__p_wxLocale,
20029 _swigt__p_wxRegion,
20030 _swigt__p_wxConfigBase,
20031 _swigt__p_wxLanguageInfo,
20032 _swigt__p_wxWindowDC,
20033 _swigt__p_wxPrintData,
20034 _swigt__p_wxBrushList,
20035 _swigt__p_wxFontList,
20036 _swigt__p_wxPen,
20037 _swigt__p_wxBufferedPaintDC,
20038 _swigt__p_wxPaintDC,
20039 _swigt__p_wxPenList,
20040 _swigt__p_wxPyPen,
20041 _swigt__p_int,
20042 _swigt__p_wxMetaFile,
20043 _swigt__p_wxNativeFontInfo,
20044 _swigt__p_wxEncodingConverter,
20045 _swigt__p_wxColourDatabase,
20046 0
20047 };
20048
20049
20050 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
20051
20052 static swig_const_info swig_const_table[] = {
20053 {0}};
20054
20055 #ifdef __cplusplus
20056 }
20057 #endif
20058
20059 #ifdef __cplusplus
20060 extern "C"
20061 #endif
20062 SWIGEXPORT(void) SWIG_init(void) {
20063 static PyObject *SWIG_globals = 0;
20064 static int typeinit = 0;
20065 PyObject *m, *d;
20066 int i;
20067 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
20068 m = Py_InitModule((char *) SWIG_name, SwigMethods);
20069 d = PyModule_GetDict(m);
20070
20071 if (!typeinit) {
20072 for (i = 0; swig_types_initial[i]; i++) {
20073 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
20074 }
20075 typeinit = 1;
20076 }
20077 SWIG_InstallConstants(d,swig_const_table);
20078
20079 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
20080 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
20081 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
20082 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
20083 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
20084 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
20085 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
20086 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
20087 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
20088 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
20089 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
20090 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
20091 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
20092 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
20093 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
20094 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
20095 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
20096 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
20097 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
20098 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
20099 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
20100 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
20101 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
20102 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
20103 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
20104 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
20105 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
20106 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
20107 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
20108 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
20109 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
20110 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
20111 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
20112 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
20113 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
20114 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
20115 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
20116 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
20117 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
20118 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
20119 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
20120 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
20121 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
20122 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
20123 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
20124 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
20125 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
20126 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
20127 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
20128 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U));
20129 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
20130 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
20131 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
20132 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
20133 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
20134 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
20135 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
20136 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
20137 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
20138 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
20139 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
20140 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
20141 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
20142 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
20143 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
20144 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
20145 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
20146 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
20147 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
20148 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
20149 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
20150 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
20151 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
20152 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
20153 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
20154 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
20155 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
20156 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
20157 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
20158 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
20159 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
20160 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
20161 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
20162 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
20163 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
20164 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
20165 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
20166 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
20167 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
20168 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
20169 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
20170 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
20171 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
20172 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
20173 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
20174 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
20175 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
20176 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
20177 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
20178 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
20179 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
20180 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
20181 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
20182 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
20183 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
20184 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
20185 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
20186 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
20187 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
20188 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
20189 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
20190 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
20191 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
20192 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
20193 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
20194 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
20195 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
20196 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
20197 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
20198 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
20199 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
20200 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
20201 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
20202 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
20203 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
20204 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
20205 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
20206
20207 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
20208
20209 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
20210 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
20211 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
20212 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
20213 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
20214 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
20215 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
20216 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
20217 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
20218 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
20219 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
20220 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
20221 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
20222 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
20223 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
20224 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
20225 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
20226 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
20227 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
20228 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
20229 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
20230 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
20231 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
20232 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
20233 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
20234 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
20235 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
20236 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
20237 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
20238 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
20239 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
20240 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
20241 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
20242 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
20243 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
20244 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
20245 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
20246 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
20247 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
20248 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
20249 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
20250 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
20251 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
20252 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
20253 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
20254 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
20255 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
20256 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
20257 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
20258 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
20259 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
20260 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
20261 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
20262 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
20263 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
20264 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
20265 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
20266 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
20267 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
20268 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
20269 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
20270 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
20271 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
20272 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
20273 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
20274 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
20275 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
20276 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
20277 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
20278 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
20279 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
20280 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
20281 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
20282 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
20283 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
20284 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
20285 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
20286 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
20287 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
20288 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
20289 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
20290 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
20291 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
20292 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
20293 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
20294 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
20295 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
20296 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
20297 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
20298 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
20299 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
20300 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
20301 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
20302 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
20303 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
20304 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
20305 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
20306 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
20307 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
20308 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
20309 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
20310 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
20311 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
20312 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
20313 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
20314 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
20315 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
20316 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
20317 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
20318 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
20319 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
20320 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
20321 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
20322 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
20323 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
20324 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
20325 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
20326 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
20327 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
20328 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
20329 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
20330 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
20331 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
20332 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
20333 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
20334 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
20335 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
20336 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
20337 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
20338 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
20339 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
20340 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
20341 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
20342 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
20343 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
20344 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
20345 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
20346 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
20347 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
20348 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
20349 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
20350 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
20351 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
20352 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
20353 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
20354 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
20355 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
20356 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
20357 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
20358 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
20359 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
20360 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
20361 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
20362 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
20363 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
20364 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
20365 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
20366 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
20367 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
20368 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
20369 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
20370 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
20371 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
20372 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
20373 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
20374 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
20375 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
20376 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
20377 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
20378 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
20379 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
20380 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
20381 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
20382 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
20383 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
20384 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
20385 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
20386 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
20387 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
20388 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
20389 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
20390 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
20391 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
20392 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
20393 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
20394 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
20395 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
20396 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
20397 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
20398 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
20399 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
20400 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
20401 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
20402 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
20403 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
20404 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
20405 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
20406 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
20407 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
20408 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
20409 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
20410 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
20411 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
20412 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
20413 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
20414 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
20415 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
20416 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
20417 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
20418 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
20419 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
20420 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
20421 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
20422 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
20423 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
20424 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
20425 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
20426 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
20427 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
20428 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
20429 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
20430 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
20431 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
20432 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
20433 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
20434 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
20435 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
20436 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
20437 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
20438 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
20439 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
20440 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
20441 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
20442 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
20443 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
20444 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
20445 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
20446 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
20447 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
20448 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
20449 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
20450 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
20451 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
20452 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
20453 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
20454 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
20455 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
20456 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
20457 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
20458 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
20459 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
20460 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
20461 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
20462 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
20463 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
20464 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
20465 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
20466 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
20467 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
20468 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
20469 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
20470 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
20471 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
20472 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
20473 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
20474 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
20475 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
20476 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
20477 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
20478 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
20479 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
20480 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
20481 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
20482 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
20483 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
20484 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
20485 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
20486 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
20487 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
20488 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
20489 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
20490 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
20491 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
20492 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
20493 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
20494 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
20495 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
20496 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
20497 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
20498 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
20499 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
20500 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
20501 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
20502 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
20503 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
20504 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
20505 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
20506 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
20507 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
20508 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
20509
20510 // Work around a chicken/egg problem in drawlist.cpp
20511 wxPyDrawList_SetAPIPtr();
20512
20513 }
20514