]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_gdi_wrap.cpp
ad5d340f8192d8ba16b6337f739894d5660b3d12
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 /***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136 #include "Python.h"
137
138 #ifdef __cplusplus
139 extern "C" {
140 #endif
141
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
147
148 /* Flags for pointer conversion */
149
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
152
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
155
156 /* Constant information structure */
157 typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164 } swig_const_info;
165
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
207 /* -------- TYPES TABLE (BEGIN) -------- */
208
209 #define SWIGTYPE_p_wxPostScriptDC swig_types[0]
210 #define SWIGTYPE_p_wxBrush swig_types[1]
211 #define SWIGTYPE_p_wxColour swig_types[2]
212 #define SWIGTYPE_p_wxDC swig_types[3]
213 #define SWIGTYPE_p_wxMirrorDC swig_types[4]
214 #define SWIGTYPE_p_byte swig_types[5]
215 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
216 #define SWIGTYPE_p_char swig_types[7]
217 #define SWIGTYPE_p_wxIconLocation swig_types[8]
218 #define SWIGTYPE_p_wxImage swig_types[9]
219 #define SWIGTYPE_p_wxMetaFileDC swig_types[10]
220 #define SWIGTYPE_p_wxMask swig_types[11]
221 #define SWIGTYPE_p_wxSize swig_types[12]
222 #define SWIGTYPE_p_wxFont swig_types[13]
223 #define SWIGTYPE_p_wxWindow swig_types[14]
224 #define SWIGTYPE_p_double swig_types[15]
225 #define SWIGTYPE_p_wxMemoryDC swig_types[16]
226 #define SWIGTYPE_p_wxFontMapper swig_types[17]
227 #define SWIGTYPE_p_wxEffects swig_types[18]
228 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19]
229 #define SWIGTYPE_p_wxPalette swig_types[20]
230 #define SWIGTYPE_p_wxBitmap swig_types[21]
231 #define SWIGTYPE_p_wxObject swig_types[22]
232 #define SWIGTYPE_p_wxRegionIterator swig_types[23]
233 #define SWIGTYPE_p_wxRect swig_types[24]
234 #define SWIGTYPE_p_wxString swig_types[25]
235 #define SWIGTYPE_p_wxPrinterDC swig_types[26]
236 #define SWIGTYPE_p_wxIconBundle swig_types[27]
237 #define SWIGTYPE_p_wxPoint swig_types[28]
238 #define SWIGTYPE_p_wxDash swig_types[29]
239 #define SWIGTYPE_p_wxScreenDC swig_types[30]
240 #define SWIGTYPE_p_wxCursor swig_types[31]
241 #define SWIGTYPE_p_wxClientDC swig_types[32]
242 #define SWIGTYPE_p_wxBufferedDC swig_types[33]
243 #define SWIGTYPE_p_wxImageList swig_types[34]
244 #define SWIGTYPE_p_unsigned_char swig_types[35]
245 #define SWIGTYPE_p_wxGDIObject swig_types[36]
246 #define SWIGTYPE_p_wxIcon swig_types[37]
247 #define SWIGTYPE_p_wxLocale swig_types[38]
248 #define SWIGTYPE_p_wxRegion swig_types[39]
249 #define SWIGTYPE_p_wxLanguageInfo swig_types[40]
250 #define SWIGTYPE_p_wxConfigBase swig_types[41]
251 #define SWIGTYPE_p_wxWindowDC swig_types[42]
252 #define SWIGTYPE_p_wxPrintData swig_types[43]
253 #define SWIGTYPE_p_wxBrushList swig_types[44]
254 #define SWIGTYPE_p_wxFontList swig_types[45]
255 #define SWIGTYPE_p_wxPen swig_types[46]
256 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[47]
257 #define SWIGTYPE_p_wxPaintDC swig_types[48]
258 #define SWIGTYPE_p_wxPenList swig_types[49]
259 #define SWIGTYPE_p_int swig_types[50]
260 #define SWIGTYPE_p_wxMetaFile swig_types[51]
261 #define SWIGTYPE_p_wxNativeFontInfo swig_types[52]
262 #define SWIGTYPE_p_wxEncodingConverter swig_types[53]
263 #define SWIGTYPE_p_wxColourDatabase swig_types[54]
264 static swig_type_info *swig_types[56];
265
266 /* -------- TYPES TABLE (END) -------- */
267
268
269 /*-----------------------------------------------
270 @(target):= _gdi_.so
271 ------------------------------------------------*/
272 #define SWIG_init init_gdi_
273
274 #define SWIG_name "_gdi_"
275
276 /* Auxiliar swig macros */
277
278 #ifdef __cplusplus
279 #define SWIGSTATICINLINE(a) static inline a
280 #define SWIGSTATIC(a) static a
281 #define swig_new_array(type, size) (new type[(size)])
282 #define swig_delete_array(cptr) delete[] cptr
283 #define swig_const_cast(type,a) const_cast<type>(a)
284 #define swig_static_cast(type,a) static_cast<type>(a)
285 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
286
287 #ifdef HAVE_NUMERIC_CAST
288 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
289 #else
290 #define swig_numeric_cast(type,a) static_cast<type>(a)
291 #endif
292
293 #else /* C case */
294
295 #define SWIGSTATICINLINE(a) static a
296 #define SWIGSTATIC(a) static a
297 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
298 #define swig_delete_array(cptr) free((char*)cptr)
299 #define swig_const_cast(type,a) (type)(a)
300 #define swig_static_cast(type,a) (type)(a)
301 #define swig_reinterpret_cast(type,a) (type)(a)
302 #define swig_numeric_cast(type,a) (type)(a)
303
304 #endif /* __cplusplus */
305
306
307 #define SWIG_FromSignedChar PyInt_FromLong
308 #define SWIG_FromUnsignedChar PyInt_FromLong
309 #define SWIG_FromShort PyInt_FromLong
310 #define SWIG_FromUnsignedShort PyInt_FromLong
311 #define SWIG_FromInt PyInt_FromLong
312 #define SWIG_FromLong PyInt_FromLong
313 #define SWIG_FromFloat PyFloat_FromDouble
314 #define SWIG_FromDouble PyFloat_FromDouble
315 #define SWIG_FromFloat PyFloat_FromDouble
316 #define SWIG_FromDouble PyFloat_FromDouble
317
318
319 #include "wx/wxPython/wxPython.h"
320 #include "wx/wxPython/pyclasses.h"
321
322
323 static const wxString wxPyEmptyString(wxEmptyString);
324
325 SWIGSTATICINLINE(bool)
326 SWIG_AsBool(PyObject *obj)
327 {
328 return PyObject_IsTrue(obj) ? true : false;
329 }
330
331
332 SWIGSTATICINLINE(int)
333 SWIG_CheckBool(PyObject* obj)
334 {
335 SWIG_AsBool(obj);
336 if (PyErr_Occurred()) {
337 PyErr_Clear();
338 return 0;
339 } else {
340 return 1;
341 }
342 }
343
344
345 #include <limits.h>
346
347
348 SWIGSTATICINLINE(unsigned long)
349 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
350 unsigned long max_value)
351 {
352 if (!PyErr_Occurred()) {
353 if (value > max_value) {
354 PyObject *err =
355 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
356 value, type, max_value);
357 PyErr_SetObject(PyExc_OverflowError, err);
358 Py_DECREF(err);
359 }
360 }
361 return value;
362 }
363
364
365 SWIGSTATICINLINE(long)
366 SWIG_AsLong(PyObject * obj)
367 {
368 if (PyNumber_Check(obj))
369 return PyInt_AsLong(obj);
370 else {
371 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
372 obj->ob_type->tp_name);
373 PyErr_SetObject(PyExc_TypeError, errmsg);
374 Py_DECREF(errmsg);
375 return 0;
376 }
377 }
378
379
380 SWIGSTATICINLINE(unsigned long)
381 SWIG_AsUnsignedLong(PyObject * obj)
382 {
383 if (PyLong_Check(obj)) {
384 return PyLong_AsUnsignedLong(obj);
385 } else {
386 long i = SWIG_AsLong(obj);
387 if ( !PyErr_Occurred() && (i < 0)) {
388 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
389 }
390 return i;
391 }
392 }
393
394
395 SWIGSTATICINLINE(unsigned char)
396 SWIG_AsUnsignedChar(PyObject *obj)
397 {
398 return swig_numeric_cast(unsigned char,
399 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
400 "unsigned char", UCHAR_MAX));
401 }
402
403
404 SWIGSTATICINLINE(int)
405 SWIG_CheckUnsignedChar(PyObject* obj)
406 {
407 SWIG_AsUnsignedChar(obj);
408 if (PyErr_Occurred()) {
409 PyErr_Clear();
410 return 0;
411 } else {
412 return 1;
413 }
414 }
415
416
417 SWIGSTATICINLINE(int)
418 SWIG_CheckUnsignedLong(PyObject* obj)
419 {
420 SWIG_AsUnsignedLong(obj);
421 if (PyErr_Occurred()) {
422 PyErr_Clear();
423 return 0;
424 } else {
425 return 1;
426 }
427 }
428
429 PyObject *wxColour_Get(wxColour *self){
430 PyObject* rv = PyTuple_New(3);
431 int red = -1;
432 int green = -1;
433 int blue = -1;
434 if (self->Ok()) {
435 red = self->Red();
436 green = self->Green();
437 blue = self->Blue();
438 }
439 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
440 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
441 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
442 return rv;
443 }
444 unsigned long wxColour_GetRGB(wxColour *self){
445 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
446 }
447
448 SWIGSTATICINLINE(PyObject* )
449 SWIG_FromUnsignedLong(unsigned long value)
450 {
451 return (value > LONG_MAX) ?
452 PyLong_FromUnsignedLong(value)
453 : PyInt_FromLong(swig_numeric_cast(long,value));
454 }
455
456
457 SWIGSTATICINLINE(long)
458 SWIG_CheckLongInRange(long value, const char* type,
459 long min_value, long max_value)
460 {
461 if (!PyErr_Occurred()) {
462 if (value < min_value) {
463 PyObject *err =
464 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
465 value, type, min_value);
466
467 PyErr_SetObject(PyExc_OverflowError, err);
468 Py_DECREF(err);
469 } else if (value > max_value) {
470 PyObject *err =
471 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
472 value, type, max_value);
473 PyErr_SetObject(PyExc_OverflowError, err);
474 Py_DECREF(err);
475 }
476 }
477 return value;
478 }
479
480
481 #if INT_MAX != LONG_MAX
482 SWIGSTATICINLINE(int)
483 SWIG_AsInt(PyObject *obj)
484 {
485 return swig_numeric_cast(int,
486 SWIG_CheckLongInRange(SWIG_AsLong(obj),
487 "int", INT_MIN, INT_MAX));
488 }
489 #else
490 #define SWIG_AsInt SWIG_AsLong
491 #endif
492
493
494 SWIGSTATICINLINE(int)
495 SWIG_CheckInt(PyObject* obj)
496 {
497 SWIG_AsInt(obj);
498 if (PyErr_Occurred()) {
499 PyErr_Clear();
500 return 0;
501 } else {
502 return 1;
503 }
504 }
505
506
507 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
508 PyObject* o2;
509 PyObject* o3;
510
511 if (!target) {
512 target = o;
513 } else if (target == Py_None) {
514 Py_DECREF(Py_None);
515 target = o;
516 } else {
517 if (!PyTuple_Check(target)) {
518 o2 = target;
519 target = PyTuple_New(1);
520 PyTuple_SetItem(target, 0, o2);
521 }
522 o3 = PyTuple_New(1);
523 PyTuple_SetItem(o3, 0, o);
524
525 o2 = target;
526 target = PySequence_Concat(o2, o3);
527 Py_DECREF(o2);
528 Py_DECREF(o3);
529 }
530 return target;
531 }
532
533 PyObject *wxPen_GetDashes(wxPen *self){
534 wxDash* dashes;
535 int count = self->GetDashes(&dashes);
536 bool blocked = wxPyBeginBlockThreads();
537 PyObject* retval = PyList_New(0);
538 for (int x=0; x<count; x++)
539 PyList_Append(retval, PyInt_FromLong(dashes[x]));
540 wxPyEndBlockThreads(blocked);
541 return retval;
542 }
543 void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
544 bool blocked = wxPyBeginBlockThreads();
545 int size = PyList_Size(pyDashes);
546 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
547
548 // black magic warning! The array of wxDashes needs to exist as
549 // long as the pen does because wxPen does not copy the array. So
550 // stick a copy in a Python string object and attach it to _self,
551 // and then call SetDashes with a pointer to that array. Then
552 // when the Python pen object is destroyed the array will be
553 // cleaned up too.
554 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
555 PyObject_SetAttrString(_self, "_dashes", strDashes);
556
557 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
558 delete [] dashes;
559 Py_DECREF(strDashes);
560 wxPyEndBlockThreads(blocked);
561 }
562 bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; }
563 bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; }
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 wxSize wxBitmap_GetSize(wxBitmap *self){
604 wxSize size(self->GetWidth(), self->GetHeight());
605 return size;
606 }
607 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
608 wxMask *mask = new wxMask(*self, colour);
609 self->SetMask(mask);
610 }
611 void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
612 self->SetWidth(size.x);
613 self->SetHeight(size.y);
614 }
615 bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; }
616 bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; }
617 wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
618 if ( !colour.Ok() )
619 return new wxMask(bitmap, *wxBLACK);
620 else
621 return new wxMask(bitmap, colour);
622 }
623
624 #include <wx/iconbndl.h>
625
626 wxIcon *new_wxIcon(wxBitmap const &bmp){
627 wxIcon* icon = new wxIcon();
628 icon->CopyFromBitmap(bmp);
629 return icon;
630 }
631 wxIcon *new_wxIcon(PyObject *listOfStrings){
632 char** cArray = NULL;
633 wxIcon* icon;
634
635 cArray = ConvertListOfStrings(listOfStrings);
636 if (! cArray)
637 return NULL;
638 icon = new wxIcon(cArray);
639 delete [] cArray;
640 return icon;
641 }
642 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
643
644
645
646 return new wxIconLocation(*filename);
647
648 }
649 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
650
651
652
653 // do nothing
654
655 }
656 int wxIconLocation_GetIndex(wxIconLocation *self){
657
658
659
660 return -1;
661
662 }
663
664 SWIGSTATICINLINE(int)
665 SWIG_CheckLong(PyObject* obj)
666 {
667 SWIG_AsLong(obj);
668 if (PyErr_Occurred()) {
669 PyErr_Clear();
670 return 0;
671 } else {
672 return 1;
673 }
674 }
675
676 wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
677 #ifdef __WXGTK__
678 wxCHECK_MSG(False, NULL,
679 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
680 #else
681 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
682 #endif
683 }
684
685
686 void wxRegionIterator_Next(wxRegionIterator *self){
687 (*self) ++;
688 }
689 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
690 return self->operator bool();
691 }
692
693 #include <wx/fontutil.h>
694 #include <wx/fontmap.h>
695 #include <wx/fontenum.h>
696
697 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
698 return self->ToString();
699 }
700
701 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
702 static wxNativeEncodingInfo info;
703 if ( wxGetNativeFontEncoding(encoding, &info) )
704 return &info;
705 else
706 return NULL;
707 }
708
709 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
710 wxFontEncoding alt_enc;
711 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
712 return PyInt_FromLong(alt_enc);
713 else {
714 Py_INCREF(Py_None);
715 return Py_None;
716 }
717 }
718 wxFont *new_wxFont(wxString const &info){
719 wxNativeFontInfo nfi;
720 nfi.FromString(info);
721 return new wxFont(nfi);
722 }
723 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
724 return wxFont::New(pointSize, family, flags, face, encoding);
725 }
726 bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
727 bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
728
729 class wxPyFontEnumerator : public wxFontEnumerator {
730 public:
731 wxPyFontEnumerator() {}
732 ~wxPyFontEnumerator() {}
733
734 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
735 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
736
737 PYPRIVATE;
738 };
739
740 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
741 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
742
743
744 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
745 wxArrayString* arr = self->GetEncodings();
746 return wxArrayString2PyList_helper(*arr);
747 }
748 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
749 wxArrayString* arr = self->GetFacenames();
750 return wxArrayString2PyList_helper(*arr);
751 }
752
753
754
755 #include "wx/wxPython/pydrawxxx.h"
756
757 wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
758 wxColour col;
759 self->GetPixel(x, y, &col);
760 return col;
761 }
762 wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
763 wxColour col;
764 self->GetPixel(pt, &col);
765 return col;
766 }
767
768 SWIGSTATICINLINE(double)
769 SWIG_AsDouble(PyObject *obj)
770 {
771 if (PyNumber_Check(obj))
772 return PyFloat_AsDouble(obj);
773 else {
774 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
775 obj->ob_type->tp_name);
776 PyErr_SetObject(PyExc_TypeError, errmsg);
777 Py_DECREF(errmsg);
778 return 0;
779 }
780 }
781
782
783 SWIGSTATICINLINE(int)
784 SWIG_CheckDouble(PyObject* obj)
785 {
786 SWIG_AsDouble(obj);
787 if (PyErr_Occurred()) {
788 PyErr_Clear();
789 return 0;
790 } else {
791 return 1;
792 }
793 }
794
795 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
796 wxRect rv;
797 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
798 return rv;
799 }
800 wxRect wxDC_GetClippingRect(wxDC *self){
801 wxRect rect;
802 self->GetClippingBox(rect);
803 return rect;
804 }
805 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
806 wxArrayInt widths;
807 self->GetPartialTextExtents(text, widths);
808 return widths;
809 }
810 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
811 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
812 }
813 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
814 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
815 }
816 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
817 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
818 }
819 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
820 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
821 }
822 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
823 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
824 }
825 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
826 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
827 }
828
829 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
830 *x1 = dc->MinX();
831 *y1 = dc->MinY();
832 *x2 = dc->MaxX();
833 *y2 = dc->MaxY();
834 }
835
836
837 #include <wx/dcbuffer.h>
838
839
840 #include <wx/dcps.h>
841
842
843 class wxMetaFile : public wxObject {
844 public:
845 wxMetaFile(const wxString&)
846 { wxPyRaiseNotImplemented(); }
847 };
848
849 class wxMetaFileDC : public wxClientDC {
850 public:
851 wxMetaFileDC(const wxString&, int, int, const wxString&)
852 { wxPyRaiseNotImplemented(); }
853 };
854
855
856
857 class wxPrinterDC : public wxClientDC {
858 public:
859 wxPrinterDC(const wxPrintData&)
860 { wxPyRaiseNotImplemented(); }
861
862 // wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int)
863 // { wxPyRaiseNotImplemented(); }
864 };
865
866
867
868 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
869 self->AddColour(name, wxColour(red, green, blue));
870 }
871
872 #include <wx/effects.h>
873
874 #ifdef __cplusplus
875 extern "C" {
876 #endif
877 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
878 PyObject *resultobj;
879 wxGDIObject *result;
880 char *kwnames[] = {
881 NULL
882 };
883
884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
885 {
886 PyThreadState* __tstate = wxPyBeginAllowThreads();
887 result = (wxGDIObject *)new wxGDIObject();
888
889 wxPyEndAllowThreads(__tstate);
890 if (PyErr_Occurred()) SWIG_fail;
891 }
892 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
893 return resultobj;
894 fail:
895 return NULL;
896 }
897
898
899 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
900 PyObject *resultobj;
901 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
902 PyObject * obj0 = 0 ;
903 char *kwnames[] = {
904 (char *) "self", NULL
905 };
906
907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
910 {
911 PyThreadState* __tstate = wxPyBeginAllowThreads();
912 delete arg1;
913
914 wxPyEndAllowThreads(__tstate);
915 if (PyErr_Occurred()) SWIG_fail;
916 }
917 Py_INCREF(Py_None); resultobj = Py_None;
918 return resultobj;
919 fail:
920 return NULL;
921 }
922
923
924 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
925 PyObject *resultobj;
926 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
927 bool result;
928 PyObject * obj0 = 0 ;
929 char *kwnames[] = {
930 (char *) "self", NULL
931 };
932
933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
936 {
937 PyThreadState* __tstate = wxPyBeginAllowThreads();
938 result = (bool)(arg1)->GetVisible();
939
940 wxPyEndAllowThreads(__tstate);
941 if (PyErr_Occurred()) SWIG_fail;
942 }
943 {
944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
945 }
946 return resultobj;
947 fail:
948 return NULL;
949 }
950
951
952 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
953 PyObject *resultobj;
954 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
955 bool arg2 ;
956 PyObject * obj0 = 0 ;
957 PyObject * obj1 = 0 ;
958 char *kwnames[] = {
959 (char *) "self",(char *) "visible", NULL
960 };
961
962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
965 arg2 = (bool) SWIG_AsBool(obj1);
966 if (PyErr_Occurred()) SWIG_fail;
967 {
968 PyThreadState* __tstate = wxPyBeginAllowThreads();
969 (arg1)->SetVisible(arg2);
970
971 wxPyEndAllowThreads(__tstate);
972 if (PyErr_Occurred()) SWIG_fail;
973 }
974 Py_INCREF(Py_None); resultobj = Py_None;
975 return resultobj;
976 fail:
977 return NULL;
978 }
979
980
981 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
982 PyObject *resultobj;
983 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
984 bool result;
985 PyObject * obj0 = 0 ;
986 char *kwnames[] = {
987 (char *) "self", NULL
988 };
989
990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
993 {
994 PyThreadState* __tstate = wxPyBeginAllowThreads();
995 result = (bool)(arg1)->IsNull();
996
997 wxPyEndAllowThreads(__tstate);
998 if (PyErr_Occurred()) SWIG_fail;
999 }
1000 {
1001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1002 }
1003 return resultobj;
1004 fail:
1005 return NULL;
1006 }
1007
1008
1009 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
1010 PyObject *obj;
1011 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1012 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1013 Py_INCREF(obj);
1014 return Py_BuildValue((char *)"");
1015 }
1016 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1017 PyObject *resultobj;
1018 unsigned char arg1 = (unsigned char) 0 ;
1019 unsigned char arg2 = (unsigned char) 0 ;
1020 unsigned char arg3 = (unsigned char) 0 ;
1021 wxColour *result;
1022 PyObject * obj0 = 0 ;
1023 PyObject * obj1 = 0 ;
1024 PyObject * obj2 = 0 ;
1025 char *kwnames[] = {
1026 (char *) "red",(char *) "green",(char *) "blue", NULL
1027 };
1028
1029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1030 if (obj0) {
1031 arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0);
1032 if (PyErr_Occurred()) SWIG_fail;
1033 }
1034 if (obj1) {
1035 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1036 if (PyErr_Occurred()) SWIG_fail;
1037 }
1038 if (obj2) {
1039 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1040 if (PyErr_Occurred()) SWIG_fail;
1041 }
1042 {
1043 PyThreadState* __tstate = wxPyBeginAllowThreads();
1044 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1045
1046 wxPyEndAllowThreads(__tstate);
1047 if (PyErr_Occurred()) SWIG_fail;
1048 }
1049 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1050 return resultobj;
1051 fail:
1052 return NULL;
1053 }
1054
1055
1056 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1057 PyObject *resultobj;
1058 wxString *arg1 = 0 ;
1059 wxColour *result;
1060 bool temp1 = False ;
1061 PyObject * obj0 = 0 ;
1062 char *kwnames[] = {
1063 (char *) "colorName", NULL
1064 };
1065
1066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1067 {
1068 arg1 = wxString_in_helper(obj0);
1069 if (arg1 == NULL) SWIG_fail;
1070 temp1 = True;
1071 }
1072 {
1073 PyThreadState* __tstate = wxPyBeginAllowThreads();
1074 result = (wxColour *)new wxColour((wxString const &)*arg1);
1075
1076 wxPyEndAllowThreads(__tstate);
1077 if (PyErr_Occurred()) SWIG_fail;
1078 }
1079 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1080 {
1081 if (temp1)
1082 delete arg1;
1083 }
1084 return resultobj;
1085 fail:
1086 {
1087 if (temp1)
1088 delete arg1;
1089 }
1090 return NULL;
1091 }
1092
1093
1094 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1095 PyObject *resultobj;
1096 unsigned long arg1 ;
1097 wxColour *result;
1098 PyObject * obj0 = 0 ;
1099 char *kwnames[] = {
1100 (char *) "colRGB", NULL
1101 };
1102
1103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1104 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1105 if (PyErr_Occurred()) SWIG_fail;
1106 {
1107 PyThreadState* __tstate = wxPyBeginAllowThreads();
1108 result = (wxColour *)new wxColour(arg1);
1109
1110 wxPyEndAllowThreads(__tstate);
1111 if (PyErr_Occurred()) SWIG_fail;
1112 }
1113 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1114 return resultobj;
1115 fail:
1116 return NULL;
1117 }
1118
1119
1120 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1121 PyObject *resultobj;
1122 wxColour *arg1 = (wxColour *) 0 ;
1123 PyObject * obj0 = 0 ;
1124 char *kwnames[] = {
1125 (char *) "self", NULL
1126 };
1127
1128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1131 {
1132 PyThreadState* __tstate = wxPyBeginAllowThreads();
1133 delete arg1;
1134
1135 wxPyEndAllowThreads(__tstate);
1136 if (PyErr_Occurred()) SWIG_fail;
1137 }
1138 Py_INCREF(Py_None); resultobj = Py_None;
1139 return resultobj;
1140 fail:
1141 return NULL;
1142 }
1143
1144
1145 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1146 PyObject *resultobj;
1147 wxColour *arg1 = (wxColour *) 0 ;
1148 unsigned char result;
1149 PyObject * obj0 = 0 ;
1150 char *kwnames[] = {
1151 (char *) "self", NULL
1152 };
1153
1154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1157 {
1158 PyThreadState* __tstate = wxPyBeginAllowThreads();
1159 result = (unsigned char)(arg1)->Red();
1160
1161 wxPyEndAllowThreads(__tstate);
1162 if (PyErr_Occurred()) SWIG_fail;
1163 }
1164 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1165 return resultobj;
1166 fail:
1167 return NULL;
1168 }
1169
1170
1171 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1172 PyObject *resultobj;
1173 wxColour *arg1 = (wxColour *) 0 ;
1174 unsigned char result;
1175 PyObject * obj0 = 0 ;
1176 char *kwnames[] = {
1177 (char *) "self", NULL
1178 };
1179
1180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1183 {
1184 PyThreadState* __tstate = wxPyBeginAllowThreads();
1185 result = (unsigned char)(arg1)->Green();
1186
1187 wxPyEndAllowThreads(__tstate);
1188 if (PyErr_Occurred()) SWIG_fail;
1189 }
1190 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1191 return resultobj;
1192 fail:
1193 return NULL;
1194 }
1195
1196
1197 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1198 PyObject *resultobj;
1199 wxColour *arg1 = (wxColour *) 0 ;
1200 unsigned char result;
1201 PyObject * obj0 = 0 ;
1202 char *kwnames[] = {
1203 (char *) "self", NULL
1204 };
1205
1206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1209 {
1210 PyThreadState* __tstate = wxPyBeginAllowThreads();
1211 result = (unsigned char)(arg1)->Blue();
1212
1213 wxPyEndAllowThreads(__tstate);
1214 if (PyErr_Occurred()) SWIG_fail;
1215 }
1216 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1217 return resultobj;
1218 fail:
1219 return NULL;
1220 }
1221
1222
1223 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1224 PyObject *resultobj;
1225 wxColour *arg1 = (wxColour *) 0 ;
1226 bool result;
1227 PyObject * obj0 = 0 ;
1228 char *kwnames[] = {
1229 (char *) "self", NULL
1230 };
1231
1232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1235 {
1236 PyThreadState* __tstate = wxPyBeginAllowThreads();
1237 result = (bool)(arg1)->Ok();
1238
1239 wxPyEndAllowThreads(__tstate);
1240 if (PyErr_Occurred()) SWIG_fail;
1241 }
1242 {
1243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1244 }
1245 return resultobj;
1246 fail:
1247 return NULL;
1248 }
1249
1250
1251 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1252 PyObject *resultobj;
1253 wxColour *arg1 = (wxColour *) 0 ;
1254 unsigned char arg2 ;
1255 unsigned char arg3 ;
1256 unsigned char arg4 ;
1257 PyObject * obj0 = 0 ;
1258 PyObject * obj1 = 0 ;
1259 PyObject * obj2 = 0 ;
1260 PyObject * obj3 = 0 ;
1261 char *kwnames[] = {
1262 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1263 };
1264
1265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1268 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1269 if (PyErr_Occurred()) SWIG_fail;
1270 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1271 if (PyErr_Occurred()) SWIG_fail;
1272 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
1273 if (PyErr_Occurred()) SWIG_fail;
1274 {
1275 PyThreadState* __tstate = wxPyBeginAllowThreads();
1276 (arg1)->Set(arg2,arg3,arg4);
1277
1278 wxPyEndAllowThreads(__tstate);
1279 if (PyErr_Occurred()) SWIG_fail;
1280 }
1281 Py_INCREF(Py_None); resultobj = Py_None;
1282 return resultobj;
1283 fail:
1284 return NULL;
1285 }
1286
1287
1288 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1289 PyObject *resultobj;
1290 wxColour *arg1 = (wxColour *) 0 ;
1291 unsigned long arg2 ;
1292 PyObject * obj0 = 0 ;
1293 PyObject * obj1 = 0 ;
1294 char *kwnames[] = {
1295 (char *) "self",(char *) "colRGB", NULL
1296 };
1297
1298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1301 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1302 if (PyErr_Occurred()) SWIG_fail;
1303 {
1304 PyThreadState* __tstate = wxPyBeginAllowThreads();
1305 (arg1)->Set(arg2);
1306
1307 wxPyEndAllowThreads(__tstate);
1308 if (PyErr_Occurred()) SWIG_fail;
1309 }
1310 Py_INCREF(Py_None); resultobj = Py_None;
1311 return resultobj;
1312 fail:
1313 return NULL;
1314 }
1315
1316
1317 static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1318 PyObject *resultobj;
1319 wxColour *arg1 = (wxColour *) 0 ;
1320 wxString *arg2 = 0 ;
1321 bool temp2 = False ;
1322 PyObject * obj0 = 0 ;
1323 PyObject * obj1 = 0 ;
1324 char *kwnames[] = {
1325 (char *) "self",(char *) "colourName", NULL
1326 };
1327
1328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1331 {
1332 arg2 = wxString_in_helper(obj1);
1333 if (arg2 == NULL) SWIG_fail;
1334 temp2 = True;
1335 }
1336 {
1337 PyThreadState* __tstate = wxPyBeginAllowThreads();
1338 (arg1)->InitFromName((wxString const &)*arg2);
1339
1340 wxPyEndAllowThreads(__tstate);
1341 if (PyErr_Occurred()) SWIG_fail;
1342 }
1343 Py_INCREF(Py_None); resultobj = Py_None;
1344 {
1345 if (temp2)
1346 delete arg2;
1347 }
1348 return resultobj;
1349 fail:
1350 {
1351 if (temp2)
1352 delete arg2;
1353 }
1354 return NULL;
1355 }
1356
1357
1358 static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1359 PyObject *resultobj;
1360 wxColour *arg1 = (wxColour *) 0 ;
1361 long result;
1362 PyObject * obj0 = 0 ;
1363 char *kwnames[] = {
1364 (char *) "self", NULL
1365 };
1366
1367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1370 {
1371 PyThreadState* __tstate = wxPyBeginAllowThreads();
1372 result = (long)((wxColour const *)arg1)->GetPixel();
1373
1374 wxPyEndAllowThreads(__tstate);
1375 if (PyErr_Occurred()) SWIG_fail;
1376 }
1377 resultobj = SWIG_FromLong((long)result);
1378 return resultobj;
1379 fail:
1380 return NULL;
1381 }
1382
1383
1384 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1385 PyObject *resultobj;
1386 wxColour *arg1 = (wxColour *) 0 ;
1387 wxColour *arg2 = 0 ;
1388 bool result;
1389 wxColour temp2 ;
1390 PyObject * obj0 = 0 ;
1391 PyObject * obj1 = 0 ;
1392 char *kwnames[] = {
1393 (char *) "self",(char *) "colour", NULL
1394 };
1395
1396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1399 {
1400 arg2 = &temp2;
1401 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1402 }
1403 {
1404 PyThreadState* __tstate = wxPyBeginAllowThreads();
1405 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1406
1407 wxPyEndAllowThreads(__tstate);
1408 if (PyErr_Occurred()) SWIG_fail;
1409 }
1410 {
1411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1412 }
1413 return resultobj;
1414 fail:
1415 return NULL;
1416 }
1417
1418
1419 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1420 PyObject *resultobj;
1421 wxColour *arg1 = (wxColour *) 0 ;
1422 wxColour *arg2 = 0 ;
1423 bool result;
1424 wxColour temp2 ;
1425 PyObject * obj0 = 0 ;
1426 PyObject * obj1 = 0 ;
1427 char *kwnames[] = {
1428 (char *) "self",(char *) "colour", NULL
1429 };
1430
1431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1434 {
1435 arg2 = &temp2;
1436 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1437 }
1438 {
1439 PyThreadState* __tstate = wxPyBeginAllowThreads();
1440 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1441
1442 wxPyEndAllowThreads(__tstate);
1443 if (PyErr_Occurred()) SWIG_fail;
1444 }
1445 {
1446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1447 }
1448 return resultobj;
1449 fail:
1450 return NULL;
1451 }
1452
1453
1454 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1455 PyObject *resultobj;
1456 wxColour *arg1 = (wxColour *) 0 ;
1457 PyObject *result;
1458 PyObject * obj0 = 0 ;
1459 char *kwnames[] = {
1460 (char *) "self", NULL
1461 };
1462
1463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1466 {
1467 PyThreadState* __tstate = wxPyBeginAllowThreads();
1468 result = (PyObject *)wxColour_Get(arg1);
1469
1470 wxPyEndAllowThreads(__tstate);
1471 if (PyErr_Occurred()) SWIG_fail;
1472 }
1473 resultobj = result;
1474 return resultobj;
1475 fail:
1476 return NULL;
1477 }
1478
1479
1480 static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1481 PyObject *resultobj;
1482 wxColour *arg1 = (wxColour *) 0 ;
1483 unsigned long result;
1484 PyObject * obj0 = 0 ;
1485 char *kwnames[] = {
1486 (char *) "self", NULL
1487 };
1488
1489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1492 {
1493 PyThreadState* __tstate = wxPyBeginAllowThreads();
1494 result = (unsigned long)wxColour_GetRGB(arg1);
1495
1496 wxPyEndAllowThreads(__tstate);
1497 if (PyErr_Occurred()) SWIG_fail;
1498 }
1499 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
1500 return resultobj;
1501 fail:
1502 return NULL;
1503 }
1504
1505
1506 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1507 PyObject *obj;
1508 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1509 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1510 Py_INCREF(obj);
1511 return Py_BuildValue((char *)"");
1512 }
1513 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1514 PyObject *resultobj;
1515 int arg1 ;
1516 unsigned char *arg2 = (unsigned char *) 0 ;
1517 unsigned char *arg3 = (unsigned char *) 0 ;
1518 unsigned char *arg4 = (unsigned char *) 0 ;
1519 wxPalette *result;
1520 PyObject * obj0 = 0 ;
1521 PyObject * obj1 = 0 ;
1522 PyObject * obj2 = 0 ;
1523 PyObject * obj3 = 0 ;
1524 char *kwnames[] = {
1525 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1526 };
1527
1528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1529 arg1 = (int) SWIG_AsInt(obj0);
1530 if (PyErr_Occurred()) SWIG_fail;
1531 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1533 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1535 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1537 {
1538 PyThreadState* __tstate = wxPyBeginAllowThreads();
1539 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1540
1541 wxPyEndAllowThreads(__tstate);
1542 if (PyErr_Occurred()) SWIG_fail;
1543 }
1544 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1545 return resultobj;
1546 fail:
1547 return NULL;
1548 }
1549
1550
1551 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1552 PyObject *resultobj;
1553 wxPalette *arg1 = (wxPalette *) 0 ;
1554 PyObject * obj0 = 0 ;
1555 char *kwnames[] = {
1556 (char *) "self", NULL
1557 };
1558
1559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1562 {
1563 PyThreadState* __tstate = wxPyBeginAllowThreads();
1564 delete arg1;
1565
1566 wxPyEndAllowThreads(__tstate);
1567 if (PyErr_Occurred()) SWIG_fail;
1568 }
1569 Py_INCREF(Py_None); resultobj = Py_None;
1570 return resultobj;
1571 fail:
1572 return NULL;
1573 }
1574
1575
1576 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1577 PyObject *resultobj;
1578 wxPalette *arg1 = (wxPalette *) 0 ;
1579 byte arg2 ;
1580 byte arg3 ;
1581 byte arg4 ;
1582 int result;
1583 PyObject * obj0 = 0 ;
1584 PyObject * obj1 = 0 ;
1585 PyObject * obj2 = 0 ;
1586 PyObject * obj3 = 0 ;
1587 char *kwnames[] = {
1588 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1589 };
1590
1591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1594 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1595 if (PyErr_Occurred()) SWIG_fail;
1596 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1597 if (PyErr_Occurred()) SWIG_fail;
1598 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1599 if (PyErr_Occurred()) SWIG_fail;
1600 {
1601 PyThreadState* __tstate = wxPyBeginAllowThreads();
1602 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1603
1604 wxPyEndAllowThreads(__tstate);
1605 if (PyErr_Occurred()) SWIG_fail;
1606 }
1607 resultobj = SWIG_FromInt((int)result);
1608 return resultobj;
1609 fail:
1610 return NULL;
1611 }
1612
1613
1614 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1615 PyObject *resultobj;
1616 wxPalette *arg1 = (wxPalette *) 0 ;
1617 int arg2 ;
1618 byte *arg3 = (byte *) 0 ;
1619 byte *arg4 = (byte *) 0 ;
1620 byte *arg5 = (byte *) 0 ;
1621 bool result;
1622 byte temp3 ;
1623 byte temp4 ;
1624 byte temp5 ;
1625 PyObject * obj0 = 0 ;
1626 PyObject * obj1 = 0 ;
1627 char *kwnames[] = {
1628 (char *) "self",(char *) "pixel", NULL
1629 };
1630
1631 arg3 = &temp3;
1632 arg4 = &temp4;
1633 arg5 = &temp5;
1634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1637 arg2 = (int) SWIG_AsInt(obj1);
1638 if (PyErr_Occurred()) SWIG_fail;
1639 {
1640 PyThreadState* __tstate = wxPyBeginAllowThreads();
1641 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1642
1643 wxPyEndAllowThreads(__tstate);
1644 if (PyErr_Occurred()) SWIG_fail;
1645 }
1646 {
1647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1648 }
1649 {
1650 PyObject *o = PyInt_FromLong((long) (*arg3));
1651 resultobj = t_output_helper(resultobj,o);
1652 }
1653 {
1654 PyObject *o = PyInt_FromLong((long) (*arg4));
1655 resultobj = t_output_helper(resultobj,o);
1656 }
1657 {
1658 PyObject *o = PyInt_FromLong((long) (*arg5));
1659 resultobj = t_output_helper(resultobj,o);
1660 }
1661 return resultobj;
1662 fail:
1663 return NULL;
1664 }
1665
1666
1667 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1668 PyObject *resultobj;
1669 wxPalette *arg1 = (wxPalette *) 0 ;
1670 bool result;
1671 PyObject * obj0 = 0 ;
1672 char *kwnames[] = {
1673 (char *) "self", NULL
1674 };
1675
1676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1679 {
1680 PyThreadState* __tstate = wxPyBeginAllowThreads();
1681 result = (bool)(arg1)->Ok();
1682
1683 wxPyEndAllowThreads(__tstate);
1684 if (PyErr_Occurred()) SWIG_fail;
1685 }
1686 {
1687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1688 }
1689 return resultobj;
1690 fail:
1691 return NULL;
1692 }
1693
1694
1695 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1696 PyObject *obj;
1697 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1698 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1699 Py_INCREF(obj);
1700 return Py_BuildValue((char *)"");
1701 }
1702 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1703 PyObject *resultobj;
1704 wxColour *arg1 = 0 ;
1705 int arg2 = (int) 1 ;
1706 int arg3 = (int) wxSOLID ;
1707 wxPen *result;
1708 wxColour temp1 ;
1709 PyObject * obj0 = 0 ;
1710 PyObject * obj1 = 0 ;
1711 PyObject * obj2 = 0 ;
1712 char *kwnames[] = {
1713 (char *) "colour",(char *) "width",(char *) "style", NULL
1714 };
1715
1716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1717 {
1718 arg1 = &temp1;
1719 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1720 }
1721 if (obj1) {
1722 arg2 = (int) SWIG_AsInt(obj1);
1723 if (PyErr_Occurred()) SWIG_fail;
1724 }
1725 if (obj2) {
1726 arg3 = (int) SWIG_AsInt(obj2);
1727 if (PyErr_Occurred()) SWIG_fail;
1728 }
1729 {
1730 PyThreadState* __tstate = wxPyBeginAllowThreads();
1731 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1732
1733 wxPyEndAllowThreads(__tstate);
1734 if (PyErr_Occurred()) SWIG_fail;
1735 }
1736 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1737 return resultobj;
1738 fail:
1739 return NULL;
1740 }
1741
1742
1743 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1744 PyObject *resultobj;
1745 wxPen *arg1 = (wxPen *) 0 ;
1746 PyObject * obj0 = 0 ;
1747 char *kwnames[] = {
1748 (char *) "self", NULL
1749 };
1750
1751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1754 {
1755 PyThreadState* __tstate = wxPyBeginAllowThreads();
1756 delete arg1;
1757
1758 wxPyEndAllowThreads(__tstate);
1759 if (PyErr_Occurred()) SWIG_fail;
1760 }
1761 Py_INCREF(Py_None); resultobj = Py_None;
1762 return resultobj;
1763 fail:
1764 return NULL;
1765 }
1766
1767
1768 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1769 PyObject *resultobj;
1770 wxPen *arg1 = (wxPen *) 0 ;
1771 int result;
1772 PyObject * obj0 = 0 ;
1773 char *kwnames[] = {
1774 (char *) "self", NULL
1775 };
1776
1777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1780 {
1781 PyThreadState* __tstate = wxPyBeginAllowThreads();
1782 result = (int)(arg1)->GetCap();
1783
1784 wxPyEndAllowThreads(__tstate);
1785 if (PyErr_Occurred()) SWIG_fail;
1786 }
1787 resultobj = SWIG_FromInt((int)result);
1788 return resultobj;
1789 fail:
1790 return NULL;
1791 }
1792
1793
1794 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1795 PyObject *resultobj;
1796 wxPen *arg1 = (wxPen *) 0 ;
1797 wxColour result;
1798 PyObject * obj0 = 0 ;
1799 char *kwnames[] = {
1800 (char *) "self", NULL
1801 };
1802
1803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1806 {
1807 PyThreadState* __tstate = wxPyBeginAllowThreads();
1808 result = (arg1)->GetColour();
1809
1810 wxPyEndAllowThreads(__tstate);
1811 if (PyErr_Occurred()) SWIG_fail;
1812 }
1813 {
1814 wxColour * resultptr;
1815 resultptr = new wxColour((wxColour &) result);
1816 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1817 }
1818 return resultobj;
1819 fail:
1820 return NULL;
1821 }
1822
1823
1824 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1825 PyObject *resultobj;
1826 wxPen *arg1 = (wxPen *) 0 ;
1827 int result;
1828 PyObject * obj0 = 0 ;
1829 char *kwnames[] = {
1830 (char *) "self", NULL
1831 };
1832
1833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1836 {
1837 PyThreadState* __tstate = wxPyBeginAllowThreads();
1838 result = (int)(arg1)->GetJoin();
1839
1840 wxPyEndAllowThreads(__tstate);
1841 if (PyErr_Occurred()) SWIG_fail;
1842 }
1843 resultobj = SWIG_FromInt((int)result);
1844 return resultobj;
1845 fail:
1846 return NULL;
1847 }
1848
1849
1850 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1851 PyObject *resultobj;
1852 wxPen *arg1 = (wxPen *) 0 ;
1853 int result;
1854 PyObject * obj0 = 0 ;
1855 char *kwnames[] = {
1856 (char *) "self", NULL
1857 };
1858
1859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1862 {
1863 PyThreadState* __tstate = wxPyBeginAllowThreads();
1864 result = (int)(arg1)->GetStyle();
1865
1866 wxPyEndAllowThreads(__tstate);
1867 if (PyErr_Occurred()) SWIG_fail;
1868 }
1869 resultobj = SWIG_FromInt((int)result);
1870 return resultobj;
1871 fail:
1872 return NULL;
1873 }
1874
1875
1876 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1877 PyObject *resultobj;
1878 wxPen *arg1 = (wxPen *) 0 ;
1879 int result;
1880 PyObject * obj0 = 0 ;
1881 char *kwnames[] = {
1882 (char *) "self", NULL
1883 };
1884
1885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1888 {
1889 PyThreadState* __tstate = wxPyBeginAllowThreads();
1890 result = (int)(arg1)->GetWidth();
1891
1892 wxPyEndAllowThreads(__tstate);
1893 if (PyErr_Occurred()) SWIG_fail;
1894 }
1895 resultobj = SWIG_FromInt((int)result);
1896 return resultobj;
1897 fail:
1898 return NULL;
1899 }
1900
1901
1902 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1903 PyObject *resultobj;
1904 wxPen *arg1 = (wxPen *) 0 ;
1905 bool result;
1906 PyObject * obj0 = 0 ;
1907 char *kwnames[] = {
1908 (char *) "self", NULL
1909 };
1910
1911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1914 {
1915 PyThreadState* __tstate = wxPyBeginAllowThreads();
1916 result = (bool)(arg1)->Ok();
1917
1918 wxPyEndAllowThreads(__tstate);
1919 if (PyErr_Occurred()) SWIG_fail;
1920 }
1921 {
1922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1923 }
1924 return resultobj;
1925 fail:
1926 return NULL;
1927 }
1928
1929
1930 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1931 PyObject *resultobj;
1932 wxPen *arg1 = (wxPen *) 0 ;
1933 int arg2 ;
1934 PyObject * obj0 = 0 ;
1935 PyObject * obj1 = 0 ;
1936 char *kwnames[] = {
1937 (char *) "self",(char *) "cap_style", NULL
1938 };
1939
1940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1943 arg2 = (int) SWIG_AsInt(obj1);
1944 if (PyErr_Occurred()) SWIG_fail;
1945 {
1946 PyThreadState* __tstate = wxPyBeginAllowThreads();
1947 (arg1)->SetCap(arg2);
1948
1949 wxPyEndAllowThreads(__tstate);
1950 if (PyErr_Occurred()) SWIG_fail;
1951 }
1952 Py_INCREF(Py_None); resultobj = Py_None;
1953 return resultobj;
1954 fail:
1955 return NULL;
1956 }
1957
1958
1959 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1960 PyObject *resultobj;
1961 wxPen *arg1 = (wxPen *) 0 ;
1962 wxColour *arg2 = 0 ;
1963 wxColour temp2 ;
1964 PyObject * obj0 = 0 ;
1965 PyObject * obj1 = 0 ;
1966 char *kwnames[] = {
1967 (char *) "self",(char *) "colour", NULL
1968 };
1969
1970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1973 {
1974 arg2 = &temp2;
1975 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1976 }
1977 {
1978 PyThreadState* __tstate = wxPyBeginAllowThreads();
1979 (arg1)->SetColour(*arg2);
1980
1981 wxPyEndAllowThreads(__tstate);
1982 if (PyErr_Occurred()) SWIG_fail;
1983 }
1984 Py_INCREF(Py_None); resultobj = Py_None;
1985 return resultobj;
1986 fail:
1987 return NULL;
1988 }
1989
1990
1991 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1992 PyObject *resultobj;
1993 wxPen *arg1 = (wxPen *) 0 ;
1994 int arg2 ;
1995 PyObject * obj0 = 0 ;
1996 PyObject * obj1 = 0 ;
1997 char *kwnames[] = {
1998 (char *) "self",(char *) "join_style", NULL
1999 };
2000
2001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2004 arg2 = (int) SWIG_AsInt(obj1);
2005 if (PyErr_Occurred()) SWIG_fail;
2006 {
2007 PyThreadState* __tstate = wxPyBeginAllowThreads();
2008 (arg1)->SetJoin(arg2);
2009
2010 wxPyEndAllowThreads(__tstate);
2011 if (PyErr_Occurred()) SWIG_fail;
2012 }
2013 Py_INCREF(Py_None); resultobj = Py_None;
2014 return resultobj;
2015 fail:
2016 return NULL;
2017 }
2018
2019
2020 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2021 PyObject *resultobj;
2022 wxPen *arg1 = (wxPen *) 0 ;
2023 int arg2 ;
2024 PyObject * obj0 = 0 ;
2025 PyObject * obj1 = 0 ;
2026 char *kwnames[] = {
2027 (char *) "self",(char *) "style", NULL
2028 };
2029
2030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2033 arg2 = (int) SWIG_AsInt(obj1);
2034 if (PyErr_Occurred()) SWIG_fail;
2035 {
2036 PyThreadState* __tstate = wxPyBeginAllowThreads();
2037 (arg1)->SetStyle(arg2);
2038
2039 wxPyEndAllowThreads(__tstate);
2040 if (PyErr_Occurred()) SWIG_fail;
2041 }
2042 Py_INCREF(Py_None); resultobj = Py_None;
2043 return resultobj;
2044 fail:
2045 return NULL;
2046 }
2047
2048
2049 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2050 PyObject *resultobj;
2051 wxPen *arg1 = (wxPen *) 0 ;
2052 int arg2 ;
2053 PyObject * obj0 = 0 ;
2054 PyObject * obj1 = 0 ;
2055 char *kwnames[] = {
2056 (char *) "self",(char *) "width", NULL
2057 };
2058
2059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2062 arg2 = (int) SWIG_AsInt(obj1);
2063 if (PyErr_Occurred()) SWIG_fail;
2064 {
2065 PyThreadState* __tstate = wxPyBeginAllowThreads();
2066 (arg1)->SetWidth(arg2);
2067
2068 wxPyEndAllowThreads(__tstate);
2069 if (PyErr_Occurred()) SWIG_fail;
2070 }
2071 Py_INCREF(Py_None); resultobj = Py_None;
2072 return resultobj;
2073 fail:
2074 return NULL;
2075 }
2076
2077
2078 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2079 PyObject *resultobj;
2080 wxPen *arg1 = (wxPen *) 0 ;
2081 int arg2 ;
2082 wxDash *arg3 = (wxDash *) 0 ;
2083 PyObject * obj0 = 0 ;
2084 PyObject * obj1 = 0 ;
2085 char *kwnames[] = {
2086 (char *) "self",(char *) "dashes", NULL
2087 };
2088
2089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2092 {
2093 arg2 = PyList_Size(obj1);
2094 arg3 = (wxDash*)byte_LIST_helper(obj1);
2095 if (arg3 == NULL) SWIG_fail;
2096 }
2097 {
2098 PyThreadState* __tstate = wxPyBeginAllowThreads();
2099 (arg1)->SetDashes(arg2,arg3);
2100
2101 wxPyEndAllowThreads(__tstate);
2102 if (PyErr_Occurred()) SWIG_fail;
2103 }
2104 Py_INCREF(Py_None); resultobj = Py_None;
2105 {
2106 if (arg3) delete [] arg3;
2107 }
2108 return resultobj;
2109 fail:
2110 {
2111 if (arg3) delete [] arg3;
2112 }
2113 return NULL;
2114 }
2115
2116
2117 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2118 PyObject *resultobj;
2119 wxPen *arg1 = (wxPen *) 0 ;
2120 PyObject *result;
2121 PyObject * obj0 = 0 ;
2122 char *kwnames[] = {
2123 (char *) "self", NULL
2124 };
2125
2126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2129 {
2130 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131 result = (PyObject *)wxPen_GetDashes(arg1);
2132
2133 wxPyEndAllowThreads(__tstate);
2134 if (PyErr_Occurred()) SWIG_fail;
2135 }
2136 resultobj = result;
2137 return resultobj;
2138 fail:
2139 return NULL;
2140 }
2141
2142
2143 static PyObject *_wrap_Pen__SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2144 PyObject *resultobj;
2145 wxPen *arg1 = (wxPen *) 0 ;
2146 PyObject *arg2 = (PyObject *) 0 ;
2147 PyObject *arg3 = (PyObject *) 0 ;
2148 PyObject * obj0 = 0 ;
2149 PyObject * obj1 = 0 ;
2150 PyObject * obj2 = 0 ;
2151 char *kwnames[] = {
2152 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
2153 };
2154
2155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
2156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2158 arg2 = obj1;
2159 arg3 = obj2;
2160 {
2161 PyThreadState* __tstate = wxPyBeginAllowThreads();
2162 wxPen__SetDashes(arg1,arg2,arg3);
2163
2164 wxPyEndAllowThreads(__tstate);
2165 if (PyErr_Occurred()) SWIG_fail;
2166 }
2167 Py_INCREF(Py_None); resultobj = Py_None;
2168 return resultobj;
2169 fail:
2170 return NULL;
2171 }
2172
2173
2174 static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
2175 PyObject *resultobj;
2176 wxPen *arg1 = (wxPen *) 0 ;
2177 int result;
2178 PyObject * obj0 = 0 ;
2179 char *kwnames[] = {
2180 (char *) "self", NULL
2181 };
2182
2183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
2184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2186 {
2187 PyThreadState* __tstate = wxPyBeginAllowThreads();
2188 result = (int)((wxPen const *)arg1)->GetDashCount();
2189
2190 wxPyEndAllowThreads(__tstate);
2191 if (PyErr_Occurred()) SWIG_fail;
2192 }
2193 resultobj = SWIG_FromInt((int)result);
2194 return resultobj;
2195 fail:
2196 return NULL;
2197 }
2198
2199
2200 static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2201 PyObject *resultobj;
2202 wxPen *arg1 = (wxPen *) 0 ;
2203 wxPen *arg2 = (wxPen *) 0 ;
2204 bool result;
2205 PyObject * obj0 = 0 ;
2206 PyObject * obj1 = 0 ;
2207 char *kwnames[] = {
2208 (char *) "self",(char *) "other", NULL
2209 };
2210
2211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2214 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2216 {
2217 PyThreadState* __tstate = wxPyBeginAllowThreads();
2218 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2219
2220 wxPyEndAllowThreads(__tstate);
2221 if (PyErr_Occurred()) SWIG_fail;
2222 }
2223 {
2224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2225 }
2226 return resultobj;
2227 fail:
2228 return NULL;
2229 }
2230
2231
2232 static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2233 PyObject *resultobj;
2234 wxPen *arg1 = (wxPen *) 0 ;
2235 wxPen *arg2 = (wxPen *) 0 ;
2236 bool result;
2237 PyObject * obj0 = 0 ;
2238 PyObject * obj1 = 0 ;
2239 char *kwnames[] = {
2240 (char *) "self",(char *) "other", NULL
2241 };
2242
2243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2246 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2248 {
2249 PyThreadState* __tstate = wxPyBeginAllowThreads();
2250 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2251
2252 wxPyEndAllowThreads(__tstate);
2253 if (PyErr_Occurred()) SWIG_fail;
2254 }
2255 {
2256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2257 }
2258 return resultobj;
2259 fail:
2260 return NULL;
2261 }
2262
2263
2264 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
2265 PyObject *obj;
2266 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2267 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2268 Py_INCREF(obj);
2269 return Py_BuildValue((char *)"");
2270 }
2271 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2272 PyObject *resultobj;
2273 wxColour *arg1 = 0 ;
2274 int arg2 = (int) wxSOLID ;
2275 wxBrush *result;
2276 wxColour temp1 ;
2277 PyObject * obj0 = 0 ;
2278 PyObject * obj1 = 0 ;
2279 char *kwnames[] = {
2280 (char *) "colour",(char *) "style", NULL
2281 };
2282
2283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2284 {
2285 arg1 = &temp1;
2286 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2287 }
2288 if (obj1) {
2289 arg2 = (int) SWIG_AsInt(obj1);
2290 if (PyErr_Occurred()) SWIG_fail;
2291 }
2292 {
2293 PyThreadState* __tstate = wxPyBeginAllowThreads();
2294 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2295
2296 wxPyEndAllowThreads(__tstate);
2297 if (PyErr_Occurred()) SWIG_fail;
2298 }
2299 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2300 return resultobj;
2301 fail:
2302 return NULL;
2303 }
2304
2305
2306 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2307 PyObject *resultobj;
2308 wxBrush *arg1 = (wxBrush *) 0 ;
2309 PyObject * obj0 = 0 ;
2310 char *kwnames[] = {
2311 (char *) "self", NULL
2312 };
2313
2314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2317 {
2318 PyThreadState* __tstate = wxPyBeginAllowThreads();
2319 delete arg1;
2320
2321 wxPyEndAllowThreads(__tstate);
2322 if (PyErr_Occurred()) SWIG_fail;
2323 }
2324 Py_INCREF(Py_None); resultobj = Py_None;
2325 return resultobj;
2326 fail:
2327 return NULL;
2328 }
2329
2330
2331 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2332 PyObject *resultobj;
2333 wxBrush *arg1 = (wxBrush *) 0 ;
2334 wxColour *arg2 = 0 ;
2335 wxColour temp2 ;
2336 PyObject * obj0 = 0 ;
2337 PyObject * obj1 = 0 ;
2338 char *kwnames[] = {
2339 (char *) "self",(char *) "col", NULL
2340 };
2341
2342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2345 {
2346 arg2 = &temp2;
2347 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2348 }
2349 {
2350 PyThreadState* __tstate = wxPyBeginAllowThreads();
2351 (arg1)->SetColour((wxColour const &)*arg2);
2352
2353 wxPyEndAllowThreads(__tstate);
2354 if (PyErr_Occurred()) SWIG_fail;
2355 }
2356 Py_INCREF(Py_None); resultobj = Py_None;
2357 return resultobj;
2358 fail:
2359 return NULL;
2360 }
2361
2362
2363 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2364 PyObject *resultobj;
2365 wxBrush *arg1 = (wxBrush *) 0 ;
2366 int arg2 ;
2367 PyObject * obj0 = 0 ;
2368 PyObject * obj1 = 0 ;
2369 char *kwnames[] = {
2370 (char *) "self",(char *) "style", NULL
2371 };
2372
2373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2376 arg2 = (int) SWIG_AsInt(obj1);
2377 if (PyErr_Occurred()) SWIG_fail;
2378 {
2379 PyThreadState* __tstate = wxPyBeginAllowThreads();
2380 (arg1)->SetStyle(arg2);
2381
2382 wxPyEndAllowThreads(__tstate);
2383 if (PyErr_Occurred()) SWIG_fail;
2384 }
2385 Py_INCREF(Py_None); resultobj = Py_None;
2386 return resultobj;
2387 fail:
2388 return NULL;
2389 }
2390
2391
2392 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2393 PyObject *resultobj;
2394 wxBrush *arg1 = (wxBrush *) 0 ;
2395 wxBitmap *arg2 = 0 ;
2396 PyObject * obj0 = 0 ;
2397 PyObject * obj1 = 0 ;
2398 char *kwnames[] = {
2399 (char *) "self",(char *) "stipple", NULL
2400 };
2401
2402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2405 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2406 SWIG_POINTER_EXCEPTION | 0)) == -1)
2407 SWIG_fail;
2408 if (arg2 == NULL) {
2409 PyErr_SetString(PyExc_TypeError,"null reference");
2410 SWIG_fail;
2411 }
2412 {
2413 PyThreadState* __tstate = wxPyBeginAllowThreads();
2414 (arg1)->SetStipple((wxBitmap const &)*arg2);
2415
2416 wxPyEndAllowThreads(__tstate);
2417 if (PyErr_Occurred()) SWIG_fail;
2418 }
2419 Py_INCREF(Py_None); resultobj = Py_None;
2420 return resultobj;
2421 fail:
2422 return NULL;
2423 }
2424
2425
2426 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2427 PyObject *resultobj;
2428 wxBrush *arg1 = (wxBrush *) 0 ;
2429 wxColour result;
2430 PyObject * obj0 = 0 ;
2431 char *kwnames[] = {
2432 (char *) "self", NULL
2433 };
2434
2435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2438 {
2439 PyThreadState* __tstate = wxPyBeginAllowThreads();
2440 result = ((wxBrush const *)arg1)->GetColour();
2441
2442 wxPyEndAllowThreads(__tstate);
2443 if (PyErr_Occurred()) SWIG_fail;
2444 }
2445 {
2446 wxColour * resultptr;
2447 resultptr = new wxColour((wxColour &) result);
2448 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2449 }
2450 return resultobj;
2451 fail:
2452 return NULL;
2453 }
2454
2455
2456 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2457 PyObject *resultobj;
2458 wxBrush *arg1 = (wxBrush *) 0 ;
2459 int result;
2460 PyObject * obj0 = 0 ;
2461 char *kwnames[] = {
2462 (char *) "self", NULL
2463 };
2464
2465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2468 {
2469 PyThreadState* __tstate = wxPyBeginAllowThreads();
2470 result = (int)((wxBrush const *)arg1)->GetStyle();
2471
2472 wxPyEndAllowThreads(__tstate);
2473 if (PyErr_Occurred()) SWIG_fail;
2474 }
2475 resultobj = SWIG_FromInt((int)result);
2476 return resultobj;
2477 fail:
2478 return NULL;
2479 }
2480
2481
2482 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2483 PyObject *resultobj;
2484 wxBrush *arg1 = (wxBrush *) 0 ;
2485 wxBitmap *result;
2486 PyObject * obj0 = 0 ;
2487 char *kwnames[] = {
2488 (char *) "self", NULL
2489 };
2490
2491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2494 {
2495 PyThreadState* __tstate = wxPyBeginAllowThreads();
2496 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2497
2498 wxPyEndAllowThreads(__tstate);
2499 if (PyErr_Occurred()) SWIG_fail;
2500 }
2501 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2502 return resultobj;
2503 fail:
2504 return NULL;
2505 }
2506
2507
2508 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2509 PyObject *resultobj;
2510 wxBrush *arg1 = (wxBrush *) 0 ;
2511 bool result;
2512 PyObject * obj0 = 0 ;
2513 char *kwnames[] = {
2514 (char *) "self", NULL
2515 };
2516
2517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2520 {
2521 PyThreadState* __tstate = wxPyBeginAllowThreads();
2522 result = (bool)(arg1)->Ok();
2523
2524 wxPyEndAllowThreads(__tstate);
2525 if (PyErr_Occurred()) SWIG_fail;
2526 }
2527 {
2528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2529 }
2530 return resultobj;
2531 fail:
2532 return NULL;
2533 }
2534
2535
2536 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2537 PyObject *obj;
2538 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2539 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2540 Py_INCREF(obj);
2541 return Py_BuildValue((char *)"");
2542 }
2543 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2544 PyObject *resultobj;
2545 wxString *arg1 = 0 ;
2546 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2547 wxBitmap *result;
2548 bool temp1 = False ;
2549 PyObject * obj0 = 0 ;
2550 PyObject * obj1 = 0 ;
2551 char *kwnames[] = {
2552 (char *) "name",(char *) "type", NULL
2553 };
2554
2555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2556 {
2557 arg1 = wxString_in_helper(obj0);
2558 if (arg1 == NULL) SWIG_fail;
2559 temp1 = True;
2560 }
2561 if (obj1) {
2562 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2563 if (PyErr_Occurred()) SWIG_fail;
2564 }
2565 {
2566 PyThreadState* __tstate = wxPyBeginAllowThreads();
2567 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2568
2569 wxPyEndAllowThreads(__tstate);
2570 if (PyErr_Occurred()) SWIG_fail;
2571 }
2572 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2573 {
2574 if (temp1)
2575 delete arg1;
2576 }
2577 return resultobj;
2578 fail:
2579 {
2580 if (temp1)
2581 delete arg1;
2582 }
2583 return NULL;
2584 }
2585
2586
2587 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2588 PyObject *resultobj;
2589 wxBitmap *arg1 = (wxBitmap *) 0 ;
2590 PyObject * obj0 = 0 ;
2591 char *kwnames[] = {
2592 (char *) "self", NULL
2593 };
2594
2595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2598 {
2599 PyThreadState* __tstate = wxPyBeginAllowThreads();
2600 delete arg1;
2601
2602 wxPyEndAllowThreads(__tstate);
2603 if (PyErr_Occurred()) SWIG_fail;
2604 }
2605 Py_INCREF(Py_None); resultobj = Py_None;
2606 return resultobj;
2607 fail:
2608 return NULL;
2609 }
2610
2611
2612 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2613 PyObject *resultobj;
2614 int arg1 ;
2615 int arg2 ;
2616 int arg3 = (int) -1 ;
2617 wxBitmap *result;
2618 PyObject * obj0 = 0 ;
2619 PyObject * obj1 = 0 ;
2620 PyObject * obj2 = 0 ;
2621 char *kwnames[] = {
2622 (char *) "width",(char *) "height",(char *) "depth", NULL
2623 };
2624
2625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2626 arg1 = (int) SWIG_AsInt(obj0);
2627 if (PyErr_Occurred()) SWIG_fail;
2628 arg2 = (int) SWIG_AsInt(obj1);
2629 if (PyErr_Occurred()) SWIG_fail;
2630 if (obj2) {
2631 arg3 = (int) SWIG_AsInt(obj2);
2632 if (PyErr_Occurred()) SWIG_fail;
2633 }
2634 {
2635 PyThreadState* __tstate = wxPyBeginAllowThreads();
2636 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2637
2638 wxPyEndAllowThreads(__tstate);
2639 if (PyErr_Occurred()) SWIG_fail;
2640 }
2641 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2642 return resultobj;
2643 fail:
2644 return NULL;
2645 }
2646
2647
2648 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2649 PyObject *resultobj;
2650 wxIcon *arg1 = 0 ;
2651 wxBitmap *result;
2652 PyObject * obj0 = 0 ;
2653 char *kwnames[] = {
2654 (char *) "icon", NULL
2655 };
2656
2657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2659 SWIG_POINTER_EXCEPTION | 0)) == -1)
2660 SWIG_fail;
2661 if (arg1 == NULL) {
2662 PyErr_SetString(PyExc_TypeError,"null reference");
2663 SWIG_fail;
2664 }
2665 {
2666 PyThreadState* __tstate = wxPyBeginAllowThreads();
2667 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2668
2669 wxPyEndAllowThreads(__tstate);
2670 if (PyErr_Occurred()) SWIG_fail;
2671 }
2672 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2673 return resultobj;
2674 fail:
2675 return NULL;
2676 }
2677
2678
2679 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2680 PyObject *resultobj;
2681 wxImage *arg1 = 0 ;
2682 int arg2 = (int) -1 ;
2683 wxBitmap *result;
2684 PyObject * obj0 = 0 ;
2685 PyObject * obj1 = 0 ;
2686 char *kwnames[] = {
2687 (char *) "image",(char *) "depth", NULL
2688 };
2689
2690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2692 SWIG_POINTER_EXCEPTION | 0)) == -1)
2693 SWIG_fail;
2694 if (arg1 == NULL) {
2695 PyErr_SetString(PyExc_TypeError,"null reference");
2696 SWIG_fail;
2697 }
2698 if (obj1) {
2699 arg2 = (int) SWIG_AsInt(obj1);
2700 if (PyErr_Occurred()) SWIG_fail;
2701 }
2702 {
2703 PyThreadState* __tstate = wxPyBeginAllowThreads();
2704 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2705
2706 wxPyEndAllowThreads(__tstate);
2707 if (PyErr_Occurred()) SWIG_fail;
2708 }
2709 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2710 return resultobj;
2711 fail:
2712 return NULL;
2713 }
2714
2715
2716 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2717 PyObject *resultobj;
2718 PyObject *arg1 = (PyObject *) 0 ;
2719 wxBitmap *result;
2720 PyObject * obj0 = 0 ;
2721 char *kwnames[] = {
2722 (char *) "listOfStrings", NULL
2723 };
2724
2725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2726 arg1 = obj0;
2727 {
2728 PyThreadState* __tstate = wxPyBeginAllowThreads();
2729 result = (wxBitmap *)new_wxBitmap(arg1);
2730
2731 wxPyEndAllowThreads(__tstate);
2732 if (PyErr_Occurred()) SWIG_fail;
2733 }
2734 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2735 return resultobj;
2736 fail:
2737 return NULL;
2738 }
2739
2740
2741 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2742 PyObject *resultobj;
2743 PyObject *arg1 = (PyObject *) 0 ;
2744 int arg2 ;
2745 int arg3 ;
2746 int arg4 = (int) 1 ;
2747 wxBitmap *result;
2748 PyObject * obj0 = 0 ;
2749 PyObject * obj1 = 0 ;
2750 PyObject * obj2 = 0 ;
2751 PyObject * obj3 = 0 ;
2752 char *kwnames[] = {
2753 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2754 };
2755
2756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2757 arg1 = obj0;
2758 arg2 = (int) SWIG_AsInt(obj1);
2759 if (PyErr_Occurred()) SWIG_fail;
2760 arg3 = (int) SWIG_AsInt(obj2);
2761 if (PyErr_Occurred()) SWIG_fail;
2762 if (obj3) {
2763 arg4 = (int) SWIG_AsInt(obj3);
2764 if (PyErr_Occurred()) SWIG_fail;
2765 }
2766 {
2767 PyThreadState* __tstate = wxPyBeginAllowThreads();
2768 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2769
2770 wxPyEndAllowThreads(__tstate);
2771 if (PyErr_Occurred()) SWIG_fail;
2772 }
2773 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2774 return resultobj;
2775 fail:
2776 return NULL;
2777 }
2778
2779
2780 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2781 PyObject *resultobj;
2782 wxBitmap *arg1 = (wxBitmap *) 0 ;
2783 bool result;
2784 PyObject * obj0 = 0 ;
2785 char *kwnames[] = {
2786 (char *) "self", NULL
2787 };
2788
2789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2792 {
2793 PyThreadState* __tstate = wxPyBeginAllowThreads();
2794 result = (bool)(arg1)->Ok();
2795
2796 wxPyEndAllowThreads(__tstate);
2797 if (PyErr_Occurred()) SWIG_fail;
2798 }
2799 {
2800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2801 }
2802 return resultobj;
2803 fail:
2804 return NULL;
2805 }
2806
2807
2808 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2809 PyObject *resultobj;
2810 wxBitmap *arg1 = (wxBitmap *) 0 ;
2811 int result;
2812 PyObject * obj0 = 0 ;
2813 char *kwnames[] = {
2814 (char *) "self", NULL
2815 };
2816
2817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2820 {
2821 PyThreadState* __tstate = wxPyBeginAllowThreads();
2822 result = (int)(arg1)->GetWidth();
2823
2824 wxPyEndAllowThreads(__tstate);
2825 if (PyErr_Occurred()) SWIG_fail;
2826 }
2827 resultobj = SWIG_FromInt((int)result);
2828 return resultobj;
2829 fail:
2830 return NULL;
2831 }
2832
2833
2834 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2835 PyObject *resultobj;
2836 wxBitmap *arg1 = (wxBitmap *) 0 ;
2837 int result;
2838 PyObject * obj0 = 0 ;
2839 char *kwnames[] = {
2840 (char *) "self", NULL
2841 };
2842
2843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2846 {
2847 PyThreadState* __tstate = wxPyBeginAllowThreads();
2848 result = (int)(arg1)->GetHeight();
2849
2850 wxPyEndAllowThreads(__tstate);
2851 if (PyErr_Occurred()) SWIG_fail;
2852 }
2853 resultobj = SWIG_FromInt((int)result);
2854 return resultobj;
2855 fail:
2856 return NULL;
2857 }
2858
2859
2860 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2861 PyObject *resultobj;
2862 wxBitmap *arg1 = (wxBitmap *) 0 ;
2863 int result;
2864 PyObject * obj0 = 0 ;
2865 char *kwnames[] = {
2866 (char *) "self", NULL
2867 };
2868
2869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2872 {
2873 PyThreadState* __tstate = wxPyBeginAllowThreads();
2874 result = (int)(arg1)->GetDepth();
2875
2876 wxPyEndAllowThreads(__tstate);
2877 if (PyErr_Occurred()) SWIG_fail;
2878 }
2879 resultobj = SWIG_FromInt((int)result);
2880 return resultobj;
2881 fail:
2882 return NULL;
2883 }
2884
2885
2886 static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2887 PyObject *resultobj;
2888 wxBitmap *arg1 = (wxBitmap *) 0 ;
2889 wxSize result;
2890 PyObject * obj0 = 0 ;
2891 char *kwnames[] = {
2892 (char *) "self", NULL
2893 };
2894
2895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
2896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2898 {
2899 PyThreadState* __tstate = wxPyBeginAllowThreads();
2900 result = wxBitmap_GetSize(arg1);
2901
2902 wxPyEndAllowThreads(__tstate);
2903 if (PyErr_Occurred()) SWIG_fail;
2904 }
2905 {
2906 wxSize * resultptr;
2907 resultptr = new wxSize((wxSize &) result);
2908 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
2909 }
2910 return resultobj;
2911 fail:
2912 return NULL;
2913 }
2914
2915
2916 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2917 PyObject *resultobj;
2918 wxBitmap *arg1 = (wxBitmap *) 0 ;
2919 SwigValueWrapper< wxImage > result;
2920 PyObject * obj0 = 0 ;
2921 char *kwnames[] = {
2922 (char *) "self", NULL
2923 };
2924
2925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2928 {
2929 PyThreadState* __tstate = wxPyBeginAllowThreads();
2930 result = ((wxBitmap const *)arg1)->ConvertToImage();
2931
2932 wxPyEndAllowThreads(__tstate);
2933 if (PyErr_Occurred()) SWIG_fail;
2934 }
2935 {
2936 wxImage * resultptr;
2937 resultptr = new wxImage((wxImage &) result);
2938 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
2939 }
2940 return resultobj;
2941 fail:
2942 return NULL;
2943 }
2944
2945
2946 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2947 PyObject *resultobj;
2948 wxBitmap *arg1 = (wxBitmap *) 0 ;
2949 wxMask *result;
2950 PyObject * obj0 = 0 ;
2951 char *kwnames[] = {
2952 (char *) "self", NULL
2953 };
2954
2955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
2956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2958 {
2959 PyThreadState* __tstate = wxPyBeginAllowThreads();
2960 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
2961
2962 wxPyEndAllowThreads(__tstate);
2963 if (PyErr_Occurred()) SWIG_fail;
2964 }
2965 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
2966 return resultobj;
2967 fail:
2968 return NULL;
2969 }
2970
2971
2972 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2973 PyObject *resultobj;
2974 wxBitmap *arg1 = (wxBitmap *) 0 ;
2975 wxMask *arg2 = (wxMask *) 0 ;
2976 PyObject * obj0 = 0 ;
2977 PyObject * obj1 = 0 ;
2978 char *kwnames[] = {
2979 (char *) "self",(char *) "mask", NULL
2980 };
2981
2982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
2983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2985 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
2986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2987 {
2988 PyThreadState* __tstate = wxPyBeginAllowThreads();
2989 (arg1)->SetMask(arg2);
2990
2991 wxPyEndAllowThreads(__tstate);
2992 if (PyErr_Occurred()) SWIG_fail;
2993 }
2994 Py_INCREF(Py_None); resultobj = Py_None;
2995 return resultobj;
2996 fail:
2997 return NULL;
2998 }
2999
3000
3001 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3002 PyObject *resultobj;
3003 wxBitmap *arg1 = (wxBitmap *) 0 ;
3004 wxColour *arg2 = 0 ;
3005 wxColour temp2 ;
3006 PyObject * obj0 = 0 ;
3007 PyObject * obj1 = 0 ;
3008 char *kwnames[] = {
3009 (char *) "self",(char *) "colour", NULL
3010 };
3011
3012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3015 {
3016 arg2 = &temp2;
3017 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3018 }
3019 {
3020 PyThreadState* __tstate = wxPyBeginAllowThreads();
3021 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3022
3023 wxPyEndAllowThreads(__tstate);
3024 if (PyErr_Occurred()) SWIG_fail;
3025 }
3026 Py_INCREF(Py_None); resultobj = Py_None;
3027 return resultobj;
3028 fail:
3029 return NULL;
3030 }
3031
3032
3033 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3034 PyObject *resultobj;
3035 wxBitmap *arg1 = (wxBitmap *) 0 ;
3036 wxRect *arg2 = 0 ;
3037 SwigValueWrapper< wxBitmap > result;
3038 wxRect temp2 ;
3039 PyObject * obj0 = 0 ;
3040 PyObject * obj1 = 0 ;
3041 char *kwnames[] = {
3042 (char *) "self",(char *) "rect", NULL
3043 };
3044
3045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3048 {
3049 arg2 = &temp2;
3050 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3051 }
3052 {
3053 PyThreadState* __tstate = wxPyBeginAllowThreads();
3054 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3055
3056 wxPyEndAllowThreads(__tstate);
3057 if (PyErr_Occurred()) SWIG_fail;
3058 }
3059 {
3060 wxBitmap * resultptr;
3061 resultptr = new wxBitmap((wxBitmap &) result);
3062 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3063 }
3064 return resultobj;
3065 fail:
3066 return NULL;
3067 }
3068
3069
3070 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3071 PyObject *resultobj;
3072 wxBitmap *arg1 = (wxBitmap *) 0 ;
3073 wxString *arg2 = 0 ;
3074 int arg3 ;
3075 wxPalette *arg4 = (wxPalette *) NULL ;
3076 bool result;
3077 bool temp2 = False ;
3078 PyObject * obj0 = 0 ;
3079 PyObject * obj1 = 0 ;
3080 PyObject * obj2 = 0 ;
3081 PyObject * obj3 = 0 ;
3082 char *kwnames[] = {
3083 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3084 };
3085
3086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3089 {
3090 arg2 = wxString_in_helper(obj1);
3091 if (arg2 == NULL) SWIG_fail;
3092 temp2 = True;
3093 }
3094 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3095 if (PyErr_Occurred()) SWIG_fail;
3096 if (obj3) {
3097 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3099 }
3100 {
3101 PyThreadState* __tstate = wxPyBeginAllowThreads();
3102 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3103
3104 wxPyEndAllowThreads(__tstate);
3105 if (PyErr_Occurred()) SWIG_fail;
3106 }
3107 {
3108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3109 }
3110 {
3111 if (temp2)
3112 delete arg2;
3113 }
3114 return resultobj;
3115 fail:
3116 {
3117 if (temp2)
3118 delete arg2;
3119 }
3120 return NULL;
3121 }
3122
3123
3124 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3125 PyObject *resultobj;
3126 wxBitmap *arg1 = (wxBitmap *) 0 ;
3127 wxString *arg2 = 0 ;
3128 int arg3 ;
3129 bool result;
3130 bool temp2 = False ;
3131 PyObject * obj0 = 0 ;
3132 PyObject * obj1 = 0 ;
3133 PyObject * obj2 = 0 ;
3134 char *kwnames[] = {
3135 (char *) "self",(char *) "name",(char *) "type", NULL
3136 };
3137
3138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3141 {
3142 arg2 = wxString_in_helper(obj1);
3143 if (arg2 == NULL) SWIG_fail;
3144 temp2 = True;
3145 }
3146 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3147 if (PyErr_Occurred()) SWIG_fail;
3148 {
3149 PyThreadState* __tstate = wxPyBeginAllowThreads();
3150 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3151
3152 wxPyEndAllowThreads(__tstate);
3153 if (PyErr_Occurred()) SWIG_fail;
3154 }
3155 {
3156 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3157 }
3158 {
3159 if (temp2)
3160 delete arg2;
3161 }
3162 return resultobj;
3163 fail:
3164 {
3165 if (temp2)
3166 delete arg2;
3167 }
3168 return NULL;
3169 }
3170
3171
3172 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3173 PyObject *resultobj;
3174 wxBitmap *arg1 = (wxBitmap *) 0 ;
3175 wxIcon *arg2 = 0 ;
3176 bool result;
3177 PyObject * obj0 = 0 ;
3178 PyObject * obj1 = 0 ;
3179 char *kwnames[] = {
3180 (char *) "self",(char *) "icon", NULL
3181 };
3182
3183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3186 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3187 SWIG_POINTER_EXCEPTION | 0)) == -1)
3188 SWIG_fail;
3189 if (arg2 == NULL) {
3190 PyErr_SetString(PyExc_TypeError,"null reference");
3191 SWIG_fail;
3192 }
3193 {
3194 PyThreadState* __tstate = wxPyBeginAllowThreads();
3195 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3196
3197 wxPyEndAllowThreads(__tstate);
3198 if (PyErr_Occurred()) SWIG_fail;
3199 }
3200 {
3201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3202 }
3203 return resultobj;
3204 fail:
3205 return NULL;
3206 }
3207
3208
3209 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3210 PyObject *resultobj;
3211 wxBitmap *arg1 = (wxBitmap *) 0 ;
3212 int arg2 ;
3213 PyObject * obj0 = 0 ;
3214 PyObject * obj1 = 0 ;
3215 char *kwnames[] = {
3216 (char *) "self",(char *) "height", NULL
3217 };
3218
3219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3222 arg2 = (int) SWIG_AsInt(obj1);
3223 if (PyErr_Occurred()) SWIG_fail;
3224 {
3225 PyThreadState* __tstate = wxPyBeginAllowThreads();
3226 (arg1)->SetHeight(arg2);
3227
3228 wxPyEndAllowThreads(__tstate);
3229 if (PyErr_Occurred()) SWIG_fail;
3230 }
3231 Py_INCREF(Py_None); resultobj = Py_None;
3232 return resultobj;
3233 fail:
3234 return NULL;
3235 }
3236
3237
3238 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3239 PyObject *resultobj;
3240 wxBitmap *arg1 = (wxBitmap *) 0 ;
3241 int arg2 ;
3242 PyObject * obj0 = 0 ;
3243 PyObject * obj1 = 0 ;
3244 char *kwnames[] = {
3245 (char *) "self",(char *) "width", NULL
3246 };
3247
3248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3251 arg2 = (int) SWIG_AsInt(obj1);
3252 if (PyErr_Occurred()) SWIG_fail;
3253 {
3254 PyThreadState* __tstate = wxPyBeginAllowThreads();
3255 (arg1)->SetWidth(arg2);
3256
3257 wxPyEndAllowThreads(__tstate);
3258 if (PyErr_Occurred()) SWIG_fail;
3259 }
3260 Py_INCREF(Py_None); resultobj = Py_None;
3261 return resultobj;
3262 fail:
3263 return NULL;
3264 }
3265
3266
3267 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3268 PyObject *resultobj;
3269 wxBitmap *arg1 = (wxBitmap *) 0 ;
3270 int arg2 ;
3271 PyObject * obj0 = 0 ;
3272 PyObject * obj1 = 0 ;
3273 char *kwnames[] = {
3274 (char *) "self",(char *) "depth", NULL
3275 };
3276
3277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3280 arg2 = (int) SWIG_AsInt(obj1);
3281 if (PyErr_Occurred()) SWIG_fail;
3282 {
3283 PyThreadState* __tstate = wxPyBeginAllowThreads();
3284 (arg1)->SetDepth(arg2);
3285
3286 wxPyEndAllowThreads(__tstate);
3287 if (PyErr_Occurred()) SWIG_fail;
3288 }
3289 Py_INCREF(Py_None); resultobj = Py_None;
3290 return resultobj;
3291 fail:
3292 return NULL;
3293 }
3294
3295
3296 static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3297 PyObject *resultobj;
3298 wxBitmap *arg1 = (wxBitmap *) 0 ;
3299 wxSize *arg2 = 0 ;
3300 wxSize temp2 ;
3301 PyObject * obj0 = 0 ;
3302 PyObject * obj1 = 0 ;
3303 char *kwnames[] = {
3304 (char *) "self",(char *) "size", NULL
3305 };
3306
3307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3310 {
3311 arg2 = &temp2;
3312 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3313 }
3314 {
3315 PyThreadState* __tstate = wxPyBeginAllowThreads();
3316 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3317
3318 wxPyEndAllowThreads(__tstate);
3319 if (PyErr_Occurred()) SWIG_fail;
3320 }
3321 Py_INCREF(Py_None); resultobj = Py_None;
3322 return resultobj;
3323 fail:
3324 return NULL;
3325 }
3326
3327
3328 static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3329 PyObject *resultobj;
3330 wxBitmap *arg1 = (wxBitmap *) 0 ;
3331 wxBitmap *arg2 = (wxBitmap *) 0 ;
3332 bool result;
3333 PyObject * obj0 = 0 ;
3334 PyObject * obj1 = 0 ;
3335 char *kwnames[] = {
3336 (char *) "self",(char *) "other", NULL
3337 };
3338
3339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3342 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3344 {
3345 PyThreadState* __tstate = wxPyBeginAllowThreads();
3346 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3347
3348 wxPyEndAllowThreads(__tstate);
3349 if (PyErr_Occurred()) SWIG_fail;
3350 }
3351 {
3352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3353 }
3354 return resultobj;
3355 fail:
3356 return NULL;
3357 }
3358
3359
3360 static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3361 PyObject *resultobj;
3362 wxBitmap *arg1 = (wxBitmap *) 0 ;
3363 wxBitmap *arg2 = (wxBitmap *) 0 ;
3364 bool result;
3365 PyObject * obj0 = 0 ;
3366 PyObject * obj1 = 0 ;
3367 char *kwnames[] = {
3368 (char *) "self",(char *) "other", NULL
3369 };
3370
3371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3374 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3376 {
3377 PyThreadState* __tstate = wxPyBeginAllowThreads();
3378 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3379
3380 wxPyEndAllowThreads(__tstate);
3381 if (PyErr_Occurred()) SWIG_fail;
3382 }
3383 {
3384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3385 }
3386 return resultobj;
3387 fail:
3388 return NULL;
3389 }
3390
3391
3392 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3393 PyObject *obj;
3394 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3395 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3396 Py_INCREF(obj);
3397 return Py_BuildValue((char *)"");
3398 }
3399 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3400 PyObject *resultobj;
3401 wxBitmap *arg1 = 0 ;
3402 wxColour const &arg2_defvalue = wxNullColour ;
3403 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3404 wxMask *result;
3405 wxColour temp2 ;
3406 PyObject * obj0 = 0 ;
3407 PyObject * obj1 = 0 ;
3408 char *kwnames[] = {
3409 (char *) "bitmap",(char *) "colour", NULL
3410 };
3411
3412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3414 SWIG_POINTER_EXCEPTION | 0)) == -1)
3415 SWIG_fail;
3416 if (arg1 == NULL) {
3417 PyErr_SetString(PyExc_TypeError,"null reference");
3418 SWIG_fail;
3419 }
3420 if (obj1) {
3421 {
3422 arg2 = &temp2;
3423 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3424 }
3425 }
3426 {
3427 PyThreadState* __tstate = wxPyBeginAllowThreads();
3428 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3429
3430 wxPyEndAllowThreads(__tstate);
3431 if (PyErr_Occurred()) SWIG_fail;
3432 }
3433 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3434 return resultobj;
3435 fail:
3436 return NULL;
3437 }
3438
3439
3440 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3441 PyObject *obj;
3442 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3443 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3444 Py_INCREF(obj);
3445 return Py_BuildValue((char *)"");
3446 }
3447 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3448 PyObject *resultobj;
3449 wxString *arg1 = 0 ;
3450 int arg2 ;
3451 int arg3 = (int) -1 ;
3452 int arg4 = (int) -1 ;
3453 wxIcon *result;
3454 bool temp1 = False ;
3455 PyObject * obj0 = 0 ;
3456 PyObject * obj1 = 0 ;
3457 PyObject * obj2 = 0 ;
3458 PyObject * obj3 = 0 ;
3459 char *kwnames[] = {
3460 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3461 };
3462
3463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3464 {
3465 arg1 = wxString_in_helper(obj0);
3466 if (arg1 == NULL) SWIG_fail;
3467 temp1 = True;
3468 }
3469 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3470 if (PyErr_Occurred()) SWIG_fail;
3471 if (obj2) {
3472 arg3 = (int) SWIG_AsInt(obj2);
3473 if (PyErr_Occurred()) SWIG_fail;
3474 }
3475 if (obj3) {
3476 arg4 = (int) SWIG_AsInt(obj3);
3477 if (PyErr_Occurred()) SWIG_fail;
3478 }
3479 {
3480 PyThreadState* __tstate = wxPyBeginAllowThreads();
3481 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3482
3483 wxPyEndAllowThreads(__tstate);
3484 if (PyErr_Occurred()) SWIG_fail;
3485 }
3486 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3487 {
3488 if (temp1)
3489 delete arg1;
3490 }
3491 return resultobj;
3492 fail:
3493 {
3494 if (temp1)
3495 delete arg1;
3496 }
3497 return NULL;
3498 }
3499
3500
3501 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3502 PyObject *resultobj;
3503 wxIcon *arg1 = (wxIcon *) 0 ;
3504 PyObject * obj0 = 0 ;
3505 char *kwnames[] = {
3506 (char *) "self", NULL
3507 };
3508
3509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3512 {
3513 PyThreadState* __tstate = wxPyBeginAllowThreads();
3514 delete arg1;
3515
3516 wxPyEndAllowThreads(__tstate);
3517 if (PyErr_Occurred()) SWIG_fail;
3518 }
3519 Py_INCREF(Py_None); resultobj = Py_None;
3520 return resultobj;
3521 fail:
3522 return NULL;
3523 }
3524
3525
3526 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3527 PyObject *resultobj;
3528 wxIcon *result;
3529 char *kwnames[] = {
3530 NULL
3531 };
3532
3533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3534 {
3535 PyThreadState* __tstate = wxPyBeginAllowThreads();
3536 result = (wxIcon *)new wxIcon();
3537
3538 wxPyEndAllowThreads(__tstate);
3539 if (PyErr_Occurred()) SWIG_fail;
3540 }
3541 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3542 return resultobj;
3543 fail:
3544 return NULL;
3545 }
3546
3547
3548 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3549 PyObject *resultobj;
3550 wxIconLocation *arg1 = 0 ;
3551 wxIcon *result;
3552 PyObject * obj0 = 0 ;
3553 char *kwnames[] = {
3554 (char *) "loc", NULL
3555 };
3556
3557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3559 SWIG_POINTER_EXCEPTION | 0)) == -1)
3560 SWIG_fail;
3561 if (arg1 == NULL) {
3562 PyErr_SetString(PyExc_TypeError,"null reference");
3563 SWIG_fail;
3564 }
3565 {
3566 PyThreadState* __tstate = wxPyBeginAllowThreads();
3567 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3568
3569 wxPyEndAllowThreads(__tstate);
3570 if (PyErr_Occurred()) SWIG_fail;
3571 }
3572 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3573 return resultobj;
3574 fail:
3575 return NULL;
3576 }
3577
3578
3579 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3580 PyObject *resultobj;
3581 wxBitmap *arg1 = 0 ;
3582 wxIcon *result;
3583 PyObject * obj0 = 0 ;
3584 char *kwnames[] = {
3585 (char *) "bmp", NULL
3586 };
3587
3588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3590 SWIG_POINTER_EXCEPTION | 0)) == -1)
3591 SWIG_fail;
3592 if (arg1 == NULL) {
3593 PyErr_SetString(PyExc_TypeError,"null reference");
3594 SWIG_fail;
3595 }
3596 {
3597 PyThreadState* __tstate = wxPyBeginAllowThreads();
3598 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3599
3600 wxPyEndAllowThreads(__tstate);
3601 if (PyErr_Occurred()) SWIG_fail;
3602 }
3603 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3604 return resultobj;
3605 fail:
3606 return NULL;
3607 }
3608
3609
3610 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3611 PyObject *resultobj;
3612 PyObject *arg1 = (PyObject *) 0 ;
3613 wxIcon *result;
3614 PyObject * obj0 = 0 ;
3615 char *kwnames[] = {
3616 (char *) "listOfStrings", NULL
3617 };
3618
3619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3620 arg1 = obj0;
3621 {
3622 PyThreadState* __tstate = wxPyBeginAllowThreads();
3623 result = (wxIcon *)new_wxIcon(arg1);
3624
3625 wxPyEndAllowThreads(__tstate);
3626 if (PyErr_Occurred()) SWIG_fail;
3627 }
3628 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3629 return resultobj;
3630 fail:
3631 return NULL;
3632 }
3633
3634
3635 static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3636 PyObject *resultobj;
3637 wxIcon *arg1 = (wxIcon *) 0 ;
3638 wxString *arg2 = 0 ;
3639 int arg3 ;
3640 bool result;
3641 bool temp2 = False ;
3642 PyObject * obj0 = 0 ;
3643 PyObject * obj1 = 0 ;
3644 PyObject * obj2 = 0 ;
3645 char *kwnames[] = {
3646 (char *) "self",(char *) "name",(char *) "type", NULL
3647 };
3648
3649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3652 {
3653 arg2 = wxString_in_helper(obj1);
3654 if (arg2 == NULL) SWIG_fail;
3655 temp2 = True;
3656 }
3657 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3658 if (PyErr_Occurred()) SWIG_fail;
3659 {
3660 PyThreadState* __tstate = wxPyBeginAllowThreads();
3661 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3662
3663 wxPyEndAllowThreads(__tstate);
3664 if (PyErr_Occurred()) SWIG_fail;
3665 }
3666 {
3667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3668 }
3669 {
3670 if (temp2)
3671 delete arg2;
3672 }
3673 return resultobj;
3674 fail:
3675 {
3676 if (temp2)
3677 delete arg2;
3678 }
3679 return NULL;
3680 }
3681
3682
3683 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3684 PyObject *resultobj;
3685 wxIcon *arg1 = (wxIcon *) 0 ;
3686 bool result;
3687 PyObject * obj0 = 0 ;
3688 char *kwnames[] = {
3689 (char *) "self", NULL
3690 };
3691
3692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3695 {
3696 PyThreadState* __tstate = wxPyBeginAllowThreads();
3697 result = (bool)(arg1)->Ok();
3698
3699 wxPyEndAllowThreads(__tstate);
3700 if (PyErr_Occurred()) SWIG_fail;
3701 }
3702 {
3703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3704 }
3705 return resultobj;
3706 fail:
3707 return NULL;
3708 }
3709
3710
3711 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3712 PyObject *resultobj;
3713 wxIcon *arg1 = (wxIcon *) 0 ;
3714 int result;
3715 PyObject * obj0 = 0 ;
3716 char *kwnames[] = {
3717 (char *) "self", NULL
3718 };
3719
3720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3723 {
3724 PyThreadState* __tstate = wxPyBeginAllowThreads();
3725 result = (int)(arg1)->GetWidth();
3726
3727 wxPyEndAllowThreads(__tstate);
3728 if (PyErr_Occurred()) SWIG_fail;
3729 }
3730 resultobj = SWIG_FromInt((int)result);
3731 return resultobj;
3732 fail:
3733 return NULL;
3734 }
3735
3736
3737 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3738 PyObject *resultobj;
3739 wxIcon *arg1 = (wxIcon *) 0 ;
3740 int result;
3741 PyObject * obj0 = 0 ;
3742 char *kwnames[] = {
3743 (char *) "self", NULL
3744 };
3745
3746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3749 {
3750 PyThreadState* __tstate = wxPyBeginAllowThreads();
3751 result = (int)(arg1)->GetHeight();
3752
3753 wxPyEndAllowThreads(__tstate);
3754 if (PyErr_Occurred()) SWIG_fail;
3755 }
3756 resultobj = SWIG_FromInt((int)result);
3757 return resultobj;
3758 fail:
3759 return NULL;
3760 }
3761
3762
3763 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3764 PyObject *resultobj;
3765 wxIcon *arg1 = (wxIcon *) 0 ;
3766 int result;
3767 PyObject * obj0 = 0 ;
3768 char *kwnames[] = {
3769 (char *) "self", NULL
3770 };
3771
3772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3775 {
3776 PyThreadState* __tstate = wxPyBeginAllowThreads();
3777 result = (int)(arg1)->GetDepth();
3778
3779 wxPyEndAllowThreads(__tstate);
3780 if (PyErr_Occurred()) SWIG_fail;
3781 }
3782 resultobj = SWIG_FromInt((int)result);
3783 return resultobj;
3784 fail:
3785 return NULL;
3786 }
3787
3788
3789 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3790 PyObject *resultobj;
3791 wxIcon *arg1 = (wxIcon *) 0 ;
3792 int arg2 ;
3793 PyObject * obj0 = 0 ;
3794 PyObject * obj1 = 0 ;
3795 char *kwnames[] = {
3796 (char *) "self",(char *) "w", NULL
3797 };
3798
3799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3802 arg2 = (int) SWIG_AsInt(obj1);
3803 if (PyErr_Occurred()) SWIG_fail;
3804 {
3805 PyThreadState* __tstate = wxPyBeginAllowThreads();
3806 (arg1)->SetWidth(arg2);
3807
3808 wxPyEndAllowThreads(__tstate);
3809 if (PyErr_Occurred()) SWIG_fail;
3810 }
3811 Py_INCREF(Py_None); resultobj = Py_None;
3812 return resultobj;
3813 fail:
3814 return NULL;
3815 }
3816
3817
3818 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3819 PyObject *resultobj;
3820 wxIcon *arg1 = (wxIcon *) 0 ;
3821 int arg2 ;
3822 PyObject * obj0 = 0 ;
3823 PyObject * obj1 = 0 ;
3824 char *kwnames[] = {
3825 (char *) "self",(char *) "h", NULL
3826 };
3827
3828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3831 arg2 = (int) SWIG_AsInt(obj1);
3832 if (PyErr_Occurred()) SWIG_fail;
3833 {
3834 PyThreadState* __tstate = wxPyBeginAllowThreads();
3835 (arg1)->SetHeight(arg2);
3836
3837 wxPyEndAllowThreads(__tstate);
3838 if (PyErr_Occurred()) SWIG_fail;
3839 }
3840 Py_INCREF(Py_None); resultobj = Py_None;
3841 return resultobj;
3842 fail:
3843 return NULL;
3844 }
3845
3846
3847 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3848 PyObject *resultobj;
3849 wxIcon *arg1 = (wxIcon *) 0 ;
3850 int arg2 ;
3851 PyObject * obj0 = 0 ;
3852 PyObject * obj1 = 0 ;
3853 char *kwnames[] = {
3854 (char *) "self",(char *) "d", NULL
3855 };
3856
3857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3860 arg2 = (int) SWIG_AsInt(obj1);
3861 if (PyErr_Occurred()) SWIG_fail;
3862 {
3863 PyThreadState* __tstate = wxPyBeginAllowThreads();
3864 (arg1)->SetDepth(arg2);
3865
3866 wxPyEndAllowThreads(__tstate);
3867 if (PyErr_Occurred()) SWIG_fail;
3868 }
3869 Py_INCREF(Py_None); resultobj = Py_None;
3870 return resultobj;
3871 fail:
3872 return NULL;
3873 }
3874
3875
3876 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3877 PyObject *resultobj;
3878 wxIcon *arg1 = (wxIcon *) 0 ;
3879 wxBitmap *arg2 = 0 ;
3880 PyObject * obj0 = 0 ;
3881 PyObject * obj1 = 0 ;
3882 char *kwnames[] = {
3883 (char *) "self",(char *) "bmp", NULL
3884 };
3885
3886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3889 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3890 SWIG_POINTER_EXCEPTION | 0)) == -1)
3891 SWIG_fail;
3892 if (arg2 == NULL) {
3893 PyErr_SetString(PyExc_TypeError,"null reference");
3894 SWIG_fail;
3895 }
3896 {
3897 PyThreadState* __tstate = wxPyBeginAllowThreads();
3898 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3899
3900 wxPyEndAllowThreads(__tstate);
3901 if (PyErr_Occurred()) SWIG_fail;
3902 }
3903 Py_INCREF(Py_None); resultobj = Py_None;
3904 return resultobj;
3905 fail:
3906 return NULL;
3907 }
3908
3909
3910 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3911 PyObject *obj;
3912 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3913 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3914 Py_INCREF(obj);
3915 return Py_BuildValue((char *)"");
3916 }
3917 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3918 PyObject *resultobj;
3919 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3920 int arg2 = (int) 0 ;
3921 wxIconLocation *result;
3922 bool temp1 = False ;
3923 PyObject * obj0 = 0 ;
3924 PyObject * obj1 = 0 ;
3925 char *kwnames[] = {
3926 (char *) "filename",(char *) "num", NULL
3927 };
3928
3929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
3930 if (obj0) {
3931 {
3932 arg1 = wxString_in_helper(obj0);
3933 if (arg1 == NULL) SWIG_fail;
3934 temp1 = True;
3935 }
3936 }
3937 if (obj1) {
3938 arg2 = (int) SWIG_AsInt(obj1);
3939 if (PyErr_Occurred()) SWIG_fail;
3940 }
3941 {
3942 PyThreadState* __tstate = wxPyBeginAllowThreads();
3943 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3944
3945 wxPyEndAllowThreads(__tstate);
3946 if (PyErr_Occurred()) SWIG_fail;
3947 }
3948 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
3949 {
3950 if (temp1)
3951 delete arg1;
3952 }
3953 return resultobj;
3954 fail:
3955 {
3956 if (temp1)
3957 delete arg1;
3958 }
3959 return NULL;
3960 }
3961
3962
3963 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3964 PyObject *resultobj;
3965 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3966 PyObject * obj0 = 0 ;
3967 char *kwnames[] = {
3968 (char *) "self", NULL
3969 };
3970
3971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3974 {
3975 PyThreadState* __tstate = wxPyBeginAllowThreads();
3976 delete arg1;
3977
3978 wxPyEndAllowThreads(__tstate);
3979 if (PyErr_Occurred()) SWIG_fail;
3980 }
3981 Py_INCREF(Py_None); resultobj = Py_None;
3982 return resultobj;
3983 fail:
3984 return NULL;
3985 }
3986
3987
3988 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3989 PyObject *resultobj;
3990 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3991 bool result;
3992 PyObject * obj0 = 0 ;
3993 char *kwnames[] = {
3994 (char *) "self", NULL
3995 };
3996
3997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
3998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4000 {
4001 PyThreadState* __tstate = wxPyBeginAllowThreads();
4002 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4003
4004 wxPyEndAllowThreads(__tstate);
4005 if (PyErr_Occurred()) SWIG_fail;
4006 }
4007 {
4008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4009 }
4010 return resultobj;
4011 fail:
4012 return NULL;
4013 }
4014
4015
4016 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4017 PyObject *resultobj;
4018 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4019 wxString *arg2 = 0 ;
4020 bool temp2 = False ;
4021 PyObject * obj0 = 0 ;
4022 PyObject * obj1 = 0 ;
4023 char *kwnames[] = {
4024 (char *) "self",(char *) "filename", NULL
4025 };
4026
4027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4030 {
4031 arg2 = wxString_in_helper(obj1);
4032 if (arg2 == NULL) SWIG_fail;
4033 temp2 = True;
4034 }
4035 {
4036 PyThreadState* __tstate = wxPyBeginAllowThreads();
4037 (arg1)->SetFileName((wxString const &)*arg2);
4038
4039 wxPyEndAllowThreads(__tstate);
4040 if (PyErr_Occurred()) SWIG_fail;
4041 }
4042 Py_INCREF(Py_None); resultobj = Py_None;
4043 {
4044 if (temp2)
4045 delete arg2;
4046 }
4047 return resultobj;
4048 fail:
4049 {
4050 if (temp2)
4051 delete arg2;
4052 }
4053 return NULL;
4054 }
4055
4056
4057 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4058 PyObject *resultobj;
4059 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4060 wxString *result;
4061 PyObject * obj0 = 0 ;
4062 char *kwnames[] = {
4063 (char *) "self", NULL
4064 };
4065
4066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4069 {
4070 PyThreadState* __tstate = wxPyBeginAllowThreads();
4071 {
4072 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4073 result = (wxString *) &_result_ref;
4074 }
4075
4076 wxPyEndAllowThreads(__tstate);
4077 if (PyErr_Occurred()) SWIG_fail;
4078 }
4079 {
4080 #if wxUSE_UNICODE
4081 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4082 #else
4083 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4084 #endif
4085 }
4086 return resultobj;
4087 fail:
4088 return NULL;
4089 }
4090
4091
4092 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4093 PyObject *resultobj;
4094 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4095 int arg2 ;
4096 PyObject * obj0 = 0 ;
4097 PyObject * obj1 = 0 ;
4098 char *kwnames[] = {
4099 (char *) "self",(char *) "num", NULL
4100 };
4101
4102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4105 arg2 = (int) SWIG_AsInt(obj1);
4106 if (PyErr_Occurred()) SWIG_fail;
4107 {
4108 PyThreadState* __tstate = wxPyBeginAllowThreads();
4109 wxIconLocation_SetIndex(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_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4122 PyObject *resultobj;
4123 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4124 int result;
4125 PyObject * obj0 = 0 ;
4126 char *kwnames[] = {
4127 (char *) "self", NULL
4128 };
4129
4130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4133 {
4134 PyThreadState* __tstate = wxPyBeginAllowThreads();
4135 result = (int)wxIconLocation_GetIndex(arg1);
4136
4137 wxPyEndAllowThreads(__tstate);
4138 if (PyErr_Occurred()) SWIG_fail;
4139 }
4140 resultobj = SWIG_FromInt((int)result);
4141 return resultobj;
4142 fail:
4143 return NULL;
4144 }
4145
4146
4147 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4148 PyObject *obj;
4149 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4150 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4151 Py_INCREF(obj);
4152 return Py_BuildValue((char *)"");
4153 }
4154 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4155 PyObject *resultobj;
4156 wxIconBundle *result;
4157 char *kwnames[] = {
4158 NULL
4159 };
4160
4161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4162 {
4163 PyThreadState* __tstate = wxPyBeginAllowThreads();
4164 result = (wxIconBundle *)new wxIconBundle();
4165
4166 wxPyEndAllowThreads(__tstate);
4167 if (PyErr_Occurred()) SWIG_fail;
4168 }
4169 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4170 return resultobj;
4171 fail:
4172 return NULL;
4173 }
4174
4175
4176 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4177 PyObject *resultobj;
4178 wxString *arg1 = 0 ;
4179 long arg2 ;
4180 wxIconBundle *result;
4181 bool temp1 = False ;
4182 PyObject * obj0 = 0 ;
4183 PyObject * obj1 = 0 ;
4184 char *kwnames[] = {
4185 (char *) "file",(char *) "type", NULL
4186 };
4187
4188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4189 {
4190 arg1 = wxString_in_helper(obj0);
4191 if (arg1 == NULL) SWIG_fail;
4192 temp1 = True;
4193 }
4194 arg2 = (long) SWIG_AsLong(obj1);
4195 if (PyErr_Occurred()) SWIG_fail;
4196 {
4197 PyThreadState* __tstate = wxPyBeginAllowThreads();
4198 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4199
4200 wxPyEndAllowThreads(__tstate);
4201 if (PyErr_Occurred()) SWIG_fail;
4202 }
4203 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4204 {
4205 if (temp1)
4206 delete arg1;
4207 }
4208 return resultobj;
4209 fail:
4210 {
4211 if (temp1)
4212 delete arg1;
4213 }
4214 return NULL;
4215 }
4216
4217
4218 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4219 PyObject *resultobj;
4220 wxIcon *arg1 = 0 ;
4221 wxIconBundle *result;
4222 PyObject * obj0 = 0 ;
4223 char *kwnames[] = {
4224 (char *) "icon", NULL
4225 };
4226
4227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4229 SWIG_POINTER_EXCEPTION | 0)) == -1)
4230 SWIG_fail;
4231 if (arg1 == NULL) {
4232 PyErr_SetString(PyExc_TypeError,"null reference");
4233 SWIG_fail;
4234 }
4235 {
4236 PyThreadState* __tstate = wxPyBeginAllowThreads();
4237 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4238
4239 wxPyEndAllowThreads(__tstate);
4240 if (PyErr_Occurred()) SWIG_fail;
4241 }
4242 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4243 return resultobj;
4244 fail:
4245 return NULL;
4246 }
4247
4248
4249 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4250 PyObject *resultobj;
4251 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4252 PyObject * obj0 = 0 ;
4253 char *kwnames[] = {
4254 (char *) "self", NULL
4255 };
4256
4257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4260 {
4261 PyThreadState* __tstate = wxPyBeginAllowThreads();
4262 delete arg1;
4263
4264 wxPyEndAllowThreads(__tstate);
4265 if (PyErr_Occurred()) SWIG_fail;
4266 }
4267 Py_INCREF(Py_None); resultobj = Py_None;
4268 return resultobj;
4269 fail:
4270 return NULL;
4271 }
4272
4273
4274 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4275 PyObject *resultobj;
4276 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4277 wxIcon *arg2 = 0 ;
4278 PyObject * obj0 = 0 ;
4279 PyObject * obj1 = 0 ;
4280 char *kwnames[] = {
4281 (char *) "self",(char *) "icon", NULL
4282 };
4283
4284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4287 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4288 SWIG_POINTER_EXCEPTION | 0)) == -1)
4289 SWIG_fail;
4290 if (arg2 == NULL) {
4291 PyErr_SetString(PyExc_TypeError,"null reference");
4292 SWIG_fail;
4293 }
4294 {
4295 PyThreadState* __tstate = wxPyBeginAllowThreads();
4296 (arg1)->AddIcon((wxIcon const &)*arg2);
4297
4298 wxPyEndAllowThreads(__tstate);
4299 if (PyErr_Occurred()) SWIG_fail;
4300 }
4301 Py_INCREF(Py_None); resultobj = Py_None;
4302 return resultobj;
4303 fail:
4304 return NULL;
4305 }
4306
4307
4308 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4309 PyObject *resultobj;
4310 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4311 wxString *arg2 = 0 ;
4312 long arg3 ;
4313 bool temp2 = False ;
4314 PyObject * obj0 = 0 ;
4315 PyObject * obj1 = 0 ;
4316 PyObject * obj2 = 0 ;
4317 char *kwnames[] = {
4318 (char *) "self",(char *) "file",(char *) "type", NULL
4319 };
4320
4321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4324 {
4325 arg2 = wxString_in_helper(obj1);
4326 if (arg2 == NULL) SWIG_fail;
4327 temp2 = True;
4328 }
4329 arg3 = (long) SWIG_AsLong(obj2);
4330 if (PyErr_Occurred()) SWIG_fail;
4331 {
4332 PyThreadState* __tstate = wxPyBeginAllowThreads();
4333 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4334
4335 wxPyEndAllowThreads(__tstate);
4336 if (PyErr_Occurred()) SWIG_fail;
4337 }
4338 Py_INCREF(Py_None); resultobj = Py_None;
4339 {
4340 if (temp2)
4341 delete arg2;
4342 }
4343 return resultobj;
4344 fail:
4345 {
4346 if (temp2)
4347 delete arg2;
4348 }
4349 return NULL;
4350 }
4351
4352
4353 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4354 PyObject *resultobj;
4355 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4356 wxSize *arg2 = 0 ;
4357 wxIcon *result;
4358 wxSize temp2 ;
4359 PyObject * obj0 = 0 ;
4360 PyObject * obj1 = 0 ;
4361 char *kwnames[] = {
4362 (char *) "self",(char *) "size", NULL
4363 };
4364
4365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4368 {
4369 arg2 = &temp2;
4370 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4371 }
4372 {
4373 PyThreadState* __tstate = wxPyBeginAllowThreads();
4374 {
4375 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4376 result = (wxIcon *) &_result_ref;
4377 }
4378
4379 wxPyEndAllowThreads(__tstate);
4380 if (PyErr_Occurred()) SWIG_fail;
4381 }
4382 {
4383 wxIcon* resultptr = new wxIcon(*result);
4384 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4385 }
4386 return resultobj;
4387 fail:
4388 return NULL;
4389 }
4390
4391
4392 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4393 PyObject *obj;
4394 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4395 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4396 Py_INCREF(obj);
4397 return Py_BuildValue((char *)"");
4398 }
4399 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4400 PyObject *resultobj;
4401 wxString *arg1 = (wxString *) 0 ;
4402 long arg2 ;
4403 int arg3 = (int) 0 ;
4404 int arg4 = (int) 0 ;
4405 wxCursor *result;
4406 bool temp1 = False ;
4407 PyObject * obj0 = 0 ;
4408 PyObject * obj1 = 0 ;
4409 PyObject * obj2 = 0 ;
4410 PyObject * obj3 = 0 ;
4411 char *kwnames[] = {
4412 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4413 };
4414
4415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4416 {
4417 arg1 = wxString_in_helper(obj0);
4418 if (arg1 == NULL) SWIG_fail;
4419 temp1 = True;
4420 }
4421 arg2 = (long) SWIG_AsLong(obj1);
4422 if (PyErr_Occurred()) SWIG_fail;
4423 if (obj2) {
4424 arg3 = (int) SWIG_AsInt(obj2);
4425 if (PyErr_Occurred()) SWIG_fail;
4426 }
4427 if (obj3) {
4428 arg4 = (int) SWIG_AsInt(obj3);
4429 if (PyErr_Occurred()) SWIG_fail;
4430 }
4431 {
4432 PyThreadState* __tstate = wxPyBeginAllowThreads();
4433 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4434
4435 wxPyEndAllowThreads(__tstate);
4436 if (PyErr_Occurred()) SWIG_fail;
4437 }
4438 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4439 {
4440 if (temp1)
4441 delete arg1;
4442 }
4443 return resultobj;
4444 fail:
4445 {
4446 if (temp1)
4447 delete arg1;
4448 }
4449 return NULL;
4450 }
4451
4452
4453 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4454 PyObject *resultobj;
4455 wxCursor *arg1 = (wxCursor *) 0 ;
4456 PyObject * obj0 = 0 ;
4457 char *kwnames[] = {
4458 (char *) "self", NULL
4459 };
4460
4461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4464 {
4465 PyThreadState* __tstate = wxPyBeginAllowThreads();
4466 delete arg1;
4467
4468 wxPyEndAllowThreads(__tstate);
4469 if (PyErr_Occurred()) SWIG_fail;
4470 }
4471 Py_INCREF(Py_None); resultobj = Py_None;
4472 return resultobj;
4473 fail:
4474 return NULL;
4475 }
4476
4477
4478 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4479 PyObject *resultobj;
4480 int arg1 ;
4481 wxCursor *result;
4482 PyObject * obj0 = 0 ;
4483 char *kwnames[] = {
4484 (char *) "id", NULL
4485 };
4486
4487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4488 arg1 = (int) SWIG_AsInt(obj0);
4489 if (PyErr_Occurred()) SWIG_fail;
4490 {
4491 PyThreadState* __tstate = wxPyBeginAllowThreads();
4492 result = (wxCursor *)new wxCursor(arg1);
4493
4494 wxPyEndAllowThreads(__tstate);
4495 if (PyErr_Occurred()) SWIG_fail;
4496 }
4497 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4498 return resultobj;
4499 fail:
4500 return NULL;
4501 }
4502
4503
4504 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4505 PyObject *resultobj;
4506 wxImage *arg1 = 0 ;
4507 wxCursor *result;
4508 PyObject * obj0 = 0 ;
4509 char *kwnames[] = {
4510 (char *) "image", NULL
4511 };
4512
4513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4515 SWIG_POINTER_EXCEPTION | 0)) == -1)
4516 SWIG_fail;
4517 if (arg1 == NULL) {
4518 PyErr_SetString(PyExc_TypeError,"null reference");
4519 SWIG_fail;
4520 }
4521 {
4522 PyThreadState* __tstate = wxPyBeginAllowThreads();
4523 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4524
4525 wxPyEndAllowThreads(__tstate);
4526 if (PyErr_Occurred()) SWIG_fail;
4527 }
4528 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4529 return resultobj;
4530 fail:
4531 return NULL;
4532 }
4533
4534
4535 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4536 PyObject *resultobj;
4537 wxCursor *arg1 = (wxCursor *) 0 ;
4538 bool result;
4539 PyObject * obj0 = 0 ;
4540 char *kwnames[] = {
4541 (char *) "self", NULL
4542 };
4543
4544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4547 {
4548 PyThreadState* __tstate = wxPyBeginAllowThreads();
4549 result = (bool)(arg1)->Ok();
4550
4551 wxPyEndAllowThreads(__tstate);
4552 if (PyErr_Occurred()) SWIG_fail;
4553 }
4554 {
4555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4556 }
4557 return resultobj;
4558 fail:
4559 return NULL;
4560 }
4561
4562
4563 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4564 PyObject *obj;
4565 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4566 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4567 Py_INCREF(obj);
4568 return Py_BuildValue((char *)"");
4569 }
4570 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4571 PyObject *resultobj;
4572 int arg1 = (int) 0 ;
4573 int arg2 = (int) 0 ;
4574 int arg3 = (int) 0 ;
4575 int arg4 = (int) 0 ;
4576 wxRegion *result;
4577 PyObject * obj0 = 0 ;
4578 PyObject * obj1 = 0 ;
4579 PyObject * obj2 = 0 ;
4580 PyObject * obj3 = 0 ;
4581 char *kwnames[] = {
4582 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4583 };
4584
4585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4586 if (obj0) {
4587 arg1 = (int) SWIG_AsInt(obj0);
4588 if (PyErr_Occurred()) SWIG_fail;
4589 }
4590 if (obj1) {
4591 arg2 = (int) SWIG_AsInt(obj1);
4592 if (PyErr_Occurred()) SWIG_fail;
4593 }
4594 if (obj2) {
4595 arg3 = (int) SWIG_AsInt(obj2);
4596 if (PyErr_Occurred()) SWIG_fail;
4597 }
4598 if (obj3) {
4599 arg4 = (int) SWIG_AsInt(obj3);
4600 if (PyErr_Occurred()) SWIG_fail;
4601 }
4602 {
4603 PyThreadState* __tstate = wxPyBeginAllowThreads();
4604 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4605
4606 wxPyEndAllowThreads(__tstate);
4607 if (PyErr_Occurred()) SWIG_fail;
4608 }
4609 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4610 return resultobj;
4611 fail:
4612 return NULL;
4613 }
4614
4615
4616 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4617 PyObject *resultobj;
4618 wxBitmap *arg1 = 0 ;
4619 wxColour const &arg2_defvalue = wxNullColour ;
4620 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4621 int arg3 = (int) 0 ;
4622 wxRegion *result;
4623 wxColour temp2 ;
4624 PyObject * obj0 = 0 ;
4625 PyObject * obj1 = 0 ;
4626 PyObject * obj2 = 0 ;
4627 char *kwnames[] = {
4628 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4629 };
4630
4631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4633 SWIG_POINTER_EXCEPTION | 0)) == -1)
4634 SWIG_fail;
4635 if (arg1 == NULL) {
4636 PyErr_SetString(PyExc_TypeError,"null reference");
4637 SWIG_fail;
4638 }
4639 if (obj1) {
4640 {
4641 arg2 = &temp2;
4642 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4643 }
4644 }
4645 if (obj2) {
4646 arg3 = (int) SWIG_AsInt(obj2);
4647 if (PyErr_Occurred()) SWIG_fail;
4648 }
4649 {
4650 PyThreadState* __tstate = wxPyBeginAllowThreads();
4651 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4652
4653 wxPyEndAllowThreads(__tstate);
4654 if (PyErr_Occurred()) SWIG_fail;
4655 }
4656 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4657 return resultobj;
4658 fail:
4659 return NULL;
4660 }
4661
4662
4663 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4664 PyObject *resultobj;
4665 int arg1 ;
4666 wxPoint *arg2 = (wxPoint *) 0 ;
4667 int arg3 = (int) wxWINDING_RULE ;
4668 wxRegion *result;
4669 PyObject * obj0 = 0 ;
4670 PyObject * obj1 = 0 ;
4671 char *kwnames[] = {
4672 (char *) "points",(char *) "fillStyle", NULL
4673 };
4674
4675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4676 {
4677 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4678 if (arg2 == NULL) SWIG_fail;
4679 }
4680 if (obj1) {
4681 arg3 = (int) SWIG_AsInt(obj1);
4682 if (PyErr_Occurred()) SWIG_fail;
4683 }
4684 {
4685 PyThreadState* __tstate = wxPyBeginAllowThreads();
4686 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
4687
4688 wxPyEndAllowThreads(__tstate);
4689 if (PyErr_Occurred()) SWIG_fail;
4690 }
4691 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4692 {
4693 if (arg2) delete [] arg2;
4694 }
4695 return resultobj;
4696 fail:
4697 {
4698 if (arg2) delete [] arg2;
4699 }
4700 return NULL;
4701 }
4702
4703
4704 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4705 PyObject *resultobj;
4706 wxRegion *arg1 = (wxRegion *) 0 ;
4707 PyObject * obj0 = 0 ;
4708 char *kwnames[] = {
4709 (char *) "self", NULL
4710 };
4711
4712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4715 {
4716 PyThreadState* __tstate = wxPyBeginAllowThreads();
4717 delete arg1;
4718
4719 wxPyEndAllowThreads(__tstate);
4720 if (PyErr_Occurred()) SWIG_fail;
4721 }
4722 Py_INCREF(Py_None); resultobj = Py_None;
4723 return resultobj;
4724 fail:
4725 return NULL;
4726 }
4727
4728
4729 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4730 PyObject *resultobj;
4731 wxRegion *arg1 = (wxRegion *) 0 ;
4732 PyObject * obj0 = 0 ;
4733 char *kwnames[] = {
4734 (char *) "self", NULL
4735 };
4736
4737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4740 {
4741 PyThreadState* __tstate = wxPyBeginAllowThreads();
4742 (arg1)->Clear();
4743
4744 wxPyEndAllowThreads(__tstate);
4745 if (PyErr_Occurred()) SWIG_fail;
4746 }
4747 Py_INCREF(Py_None); resultobj = Py_None;
4748 return resultobj;
4749 fail:
4750 return NULL;
4751 }
4752
4753
4754 static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
4755 PyObject *resultobj;
4756 wxRegion *arg1 = (wxRegion *) 0 ;
4757 int arg2 ;
4758 int arg3 ;
4759 bool result;
4760 PyObject * obj0 = 0 ;
4761 PyObject * obj1 = 0 ;
4762 PyObject * obj2 = 0 ;
4763 char *kwnames[] = {
4764 (char *) "self",(char *) "x",(char *) "y", NULL
4765 };
4766
4767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
4768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4770 arg2 = (int) SWIG_AsInt(obj1);
4771 if (PyErr_Occurred()) SWIG_fail;
4772 arg3 = (int) SWIG_AsInt(obj2);
4773 if (PyErr_Occurred()) SWIG_fail;
4774 {
4775 PyThreadState* __tstate = wxPyBeginAllowThreads();
4776 result = (bool)(arg1)->Offset(arg2,arg3);
4777
4778 wxPyEndAllowThreads(__tstate);
4779 if (PyErr_Occurred()) SWIG_fail;
4780 }
4781 {
4782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4783 }
4784 return resultobj;
4785 fail:
4786 return NULL;
4787 }
4788
4789
4790 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4791 PyObject *resultobj;
4792 wxRegion *arg1 = (wxRegion *) 0 ;
4793 int arg2 ;
4794 int arg3 ;
4795 int result;
4796 PyObject * obj0 = 0 ;
4797 PyObject * obj1 = 0 ;
4798 PyObject * obj2 = 0 ;
4799 char *kwnames[] = {
4800 (char *) "self",(char *) "x",(char *) "y", NULL
4801 };
4802
4803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
4804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4806 arg2 = (int) SWIG_AsInt(obj1);
4807 if (PyErr_Occurred()) SWIG_fail;
4808 arg3 = (int) SWIG_AsInt(obj2);
4809 if (PyErr_Occurred()) SWIG_fail;
4810 {
4811 PyThreadState* __tstate = wxPyBeginAllowThreads();
4812 result = (int)(arg1)->Contains(arg2,arg3);
4813
4814 wxPyEndAllowThreads(__tstate);
4815 if (PyErr_Occurred()) SWIG_fail;
4816 }
4817 resultobj = SWIG_FromInt((int)result);
4818 return resultobj;
4819 fail:
4820 return NULL;
4821 }
4822
4823
4824 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4825 PyObject *resultobj;
4826 wxRegion *arg1 = (wxRegion *) 0 ;
4827 wxPoint *arg2 = 0 ;
4828 int result;
4829 wxPoint temp2 ;
4830 PyObject * obj0 = 0 ;
4831 PyObject * obj1 = 0 ;
4832 char *kwnames[] = {
4833 (char *) "self",(char *) "pt", NULL
4834 };
4835
4836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4839 {
4840 arg2 = &temp2;
4841 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4842 }
4843 {
4844 PyThreadState* __tstate = wxPyBeginAllowThreads();
4845 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4846
4847 wxPyEndAllowThreads(__tstate);
4848 if (PyErr_Occurred()) SWIG_fail;
4849 }
4850 resultobj = SWIG_FromInt((int)result);
4851 return resultobj;
4852 fail:
4853 return NULL;
4854 }
4855
4856
4857 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4858 PyObject *resultobj;
4859 wxRegion *arg1 = (wxRegion *) 0 ;
4860 wxRect *arg2 = 0 ;
4861 int result;
4862 wxRect temp2 ;
4863 PyObject * obj0 = 0 ;
4864 PyObject * obj1 = 0 ;
4865 char *kwnames[] = {
4866 (char *) "self",(char *) "rect", NULL
4867 };
4868
4869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4872 {
4873 arg2 = &temp2;
4874 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4875 }
4876 {
4877 PyThreadState* __tstate = wxPyBeginAllowThreads();
4878 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4879
4880 wxPyEndAllowThreads(__tstate);
4881 if (PyErr_Occurred()) SWIG_fail;
4882 }
4883 resultobj = SWIG_FromInt((int)result);
4884 return resultobj;
4885 fail:
4886 return NULL;
4887 }
4888
4889
4890 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4891 PyObject *resultobj;
4892 wxRegion *arg1 = (wxRegion *) 0 ;
4893 int arg2 ;
4894 int arg3 ;
4895 int arg4 ;
4896 int arg5 ;
4897 int result;
4898 PyObject * obj0 = 0 ;
4899 PyObject * obj1 = 0 ;
4900 PyObject * obj2 = 0 ;
4901 PyObject * obj3 = 0 ;
4902 PyObject * obj4 = 0 ;
4903 char *kwnames[] = {
4904 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4905 };
4906
4907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4910 arg2 = (int) SWIG_AsInt(obj1);
4911 if (PyErr_Occurred()) SWIG_fail;
4912 arg3 = (int) SWIG_AsInt(obj2);
4913 if (PyErr_Occurred()) SWIG_fail;
4914 arg4 = (int) SWIG_AsInt(obj3);
4915 if (PyErr_Occurred()) SWIG_fail;
4916 arg5 = (int) SWIG_AsInt(obj4);
4917 if (PyErr_Occurred()) SWIG_fail;
4918 {
4919 PyThreadState* __tstate = wxPyBeginAllowThreads();
4920 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4921
4922 wxPyEndAllowThreads(__tstate);
4923 if (PyErr_Occurred()) SWIG_fail;
4924 }
4925 resultobj = SWIG_FromInt((int)result);
4926 return resultobj;
4927 fail:
4928 return NULL;
4929 }
4930
4931
4932 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4933 PyObject *resultobj;
4934 wxRegion *arg1 = (wxRegion *) 0 ;
4935 wxRect result;
4936 PyObject * obj0 = 0 ;
4937 char *kwnames[] = {
4938 (char *) "self", NULL
4939 };
4940
4941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4944 {
4945 PyThreadState* __tstate = wxPyBeginAllowThreads();
4946 result = (arg1)->GetBox();
4947
4948 wxPyEndAllowThreads(__tstate);
4949 if (PyErr_Occurred()) SWIG_fail;
4950 }
4951 {
4952 wxRect * resultptr;
4953 resultptr = new wxRect((wxRect &) result);
4954 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4955 }
4956 return resultobj;
4957 fail:
4958 return NULL;
4959 }
4960
4961
4962 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4963 PyObject *resultobj;
4964 wxRegion *arg1 = (wxRegion *) 0 ;
4965 int arg2 ;
4966 int arg3 ;
4967 int arg4 ;
4968 int arg5 ;
4969 bool result;
4970 PyObject * obj0 = 0 ;
4971 PyObject * obj1 = 0 ;
4972 PyObject * obj2 = 0 ;
4973 PyObject * obj3 = 0 ;
4974 PyObject * obj4 = 0 ;
4975 char *kwnames[] = {
4976 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4977 };
4978
4979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4982 arg2 = (int) SWIG_AsInt(obj1);
4983 if (PyErr_Occurred()) SWIG_fail;
4984 arg3 = (int) SWIG_AsInt(obj2);
4985 if (PyErr_Occurred()) SWIG_fail;
4986 arg4 = (int) SWIG_AsInt(obj3);
4987 if (PyErr_Occurred()) SWIG_fail;
4988 arg5 = (int) SWIG_AsInt(obj4);
4989 if (PyErr_Occurred()) SWIG_fail;
4990 {
4991 PyThreadState* __tstate = wxPyBeginAllowThreads();
4992 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
4993
4994 wxPyEndAllowThreads(__tstate);
4995 if (PyErr_Occurred()) SWIG_fail;
4996 }
4997 {
4998 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4999 }
5000 return resultobj;
5001 fail:
5002 return NULL;
5003 }
5004
5005
5006 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5007 PyObject *resultobj;
5008 wxRegion *arg1 = (wxRegion *) 0 ;
5009 wxRect *arg2 = 0 ;
5010 bool result;
5011 wxRect temp2 ;
5012 PyObject * obj0 = 0 ;
5013 PyObject * obj1 = 0 ;
5014 char *kwnames[] = {
5015 (char *) "self",(char *) "rect", NULL
5016 };
5017
5018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5021 {
5022 arg2 = &temp2;
5023 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5024 }
5025 {
5026 PyThreadState* __tstate = wxPyBeginAllowThreads();
5027 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5028
5029 wxPyEndAllowThreads(__tstate);
5030 if (PyErr_Occurred()) SWIG_fail;
5031 }
5032 {
5033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5034 }
5035 return resultobj;
5036 fail:
5037 return NULL;
5038 }
5039
5040
5041 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5042 PyObject *resultobj;
5043 wxRegion *arg1 = (wxRegion *) 0 ;
5044 wxRegion *arg2 = 0 ;
5045 bool result;
5046 PyObject * obj0 = 0 ;
5047 PyObject * obj1 = 0 ;
5048 char *kwnames[] = {
5049 (char *) "self",(char *) "region", NULL
5050 };
5051
5052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5055 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5056 SWIG_POINTER_EXCEPTION | 0)) == -1)
5057 SWIG_fail;
5058 if (arg2 == NULL) {
5059 PyErr_SetString(PyExc_TypeError,"null reference");
5060 SWIG_fail;
5061 }
5062 {
5063 PyThreadState* __tstate = wxPyBeginAllowThreads();
5064 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5065
5066 wxPyEndAllowThreads(__tstate);
5067 if (PyErr_Occurred()) SWIG_fail;
5068 }
5069 {
5070 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5071 }
5072 return resultobj;
5073 fail:
5074 return NULL;
5075 }
5076
5077
5078 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5079 PyObject *resultobj;
5080 wxRegion *arg1 = (wxRegion *) 0 ;
5081 bool result;
5082 PyObject * obj0 = 0 ;
5083 char *kwnames[] = {
5084 (char *) "self", NULL
5085 };
5086
5087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5090 {
5091 PyThreadState* __tstate = wxPyBeginAllowThreads();
5092 result = (bool)(arg1)->IsEmpty();
5093
5094 wxPyEndAllowThreads(__tstate);
5095 if (PyErr_Occurred()) SWIG_fail;
5096 }
5097 {
5098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5099 }
5100 return resultobj;
5101 fail:
5102 return NULL;
5103 }
5104
5105
5106 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5107 PyObject *resultobj;
5108 wxRegion *arg1 = (wxRegion *) 0 ;
5109 int arg2 ;
5110 int arg3 ;
5111 int arg4 ;
5112 int arg5 ;
5113 bool result;
5114 PyObject * obj0 = 0 ;
5115 PyObject * obj1 = 0 ;
5116 PyObject * obj2 = 0 ;
5117 PyObject * obj3 = 0 ;
5118 PyObject * obj4 = 0 ;
5119 char *kwnames[] = {
5120 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5121 };
5122
5123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5126 arg2 = (int) SWIG_AsInt(obj1);
5127 if (PyErr_Occurred()) SWIG_fail;
5128 arg3 = (int) SWIG_AsInt(obj2);
5129 if (PyErr_Occurred()) SWIG_fail;
5130 arg4 = (int) SWIG_AsInt(obj3);
5131 if (PyErr_Occurred()) SWIG_fail;
5132 arg5 = (int) SWIG_AsInt(obj4);
5133 if (PyErr_Occurred()) SWIG_fail;
5134 {
5135 PyThreadState* __tstate = wxPyBeginAllowThreads();
5136 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5137
5138 wxPyEndAllowThreads(__tstate);
5139 if (PyErr_Occurred()) SWIG_fail;
5140 }
5141 {
5142 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5143 }
5144 return resultobj;
5145 fail:
5146 return NULL;
5147 }
5148
5149
5150 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5151 PyObject *resultobj;
5152 wxRegion *arg1 = (wxRegion *) 0 ;
5153 wxRect *arg2 = 0 ;
5154 bool result;
5155 wxRect temp2 ;
5156 PyObject * obj0 = 0 ;
5157 PyObject * obj1 = 0 ;
5158 char *kwnames[] = {
5159 (char *) "self",(char *) "rect", NULL
5160 };
5161
5162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5165 {
5166 arg2 = &temp2;
5167 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5168 }
5169 {
5170 PyThreadState* __tstate = wxPyBeginAllowThreads();
5171 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5172
5173 wxPyEndAllowThreads(__tstate);
5174 if (PyErr_Occurred()) SWIG_fail;
5175 }
5176 {
5177 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5178 }
5179 return resultobj;
5180 fail:
5181 return NULL;
5182 }
5183
5184
5185 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5186 PyObject *resultobj;
5187 wxRegion *arg1 = (wxRegion *) 0 ;
5188 wxRegion *arg2 = 0 ;
5189 bool result;
5190 PyObject * obj0 = 0 ;
5191 PyObject * obj1 = 0 ;
5192 char *kwnames[] = {
5193 (char *) "self",(char *) "region", NULL
5194 };
5195
5196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5199 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5200 SWIG_POINTER_EXCEPTION | 0)) == -1)
5201 SWIG_fail;
5202 if (arg2 == NULL) {
5203 PyErr_SetString(PyExc_TypeError,"null reference");
5204 SWIG_fail;
5205 }
5206 {
5207 PyThreadState* __tstate = wxPyBeginAllowThreads();
5208 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5209
5210 wxPyEndAllowThreads(__tstate);
5211 if (PyErr_Occurred()) SWIG_fail;
5212 }
5213 {
5214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5215 }
5216 return resultobj;
5217 fail:
5218 return NULL;
5219 }
5220
5221
5222 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5223 PyObject *resultobj;
5224 wxRegion *arg1 = (wxRegion *) 0 ;
5225 int arg2 ;
5226 int arg3 ;
5227 int arg4 ;
5228 int arg5 ;
5229 bool result;
5230 PyObject * obj0 = 0 ;
5231 PyObject * obj1 = 0 ;
5232 PyObject * obj2 = 0 ;
5233 PyObject * obj3 = 0 ;
5234 PyObject * obj4 = 0 ;
5235 char *kwnames[] = {
5236 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5237 };
5238
5239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5242 arg2 = (int) SWIG_AsInt(obj1);
5243 if (PyErr_Occurred()) SWIG_fail;
5244 arg3 = (int) SWIG_AsInt(obj2);
5245 if (PyErr_Occurred()) SWIG_fail;
5246 arg4 = (int) SWIG_AsInt(obj3);
5247 if (PyErr_Occurred()) SWIG_fail;
5248 arg5 = (int) SWIG_AsInt(obj4);
5249 if (PyErr_Occurred()) SWIG_fail;
5250 {
5251 PyThreadState* __tstate = wxPyBeginAllowThreads();
5252 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5253
5254 wxPyEndAllowThreads(__tstate);
5255 if (PyErr_Occurred()) SWIG_fail;
5256 }
5257 {
5258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5259 }
5260 return resultobj;
5261 fail:
5262 return NULL;
5263 }
5264
5265
5266 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5267 PyObject *resultobj;
5268 wxRegion *arg1 = (wxRegion *) 0 ;
5269 wxRect *arg2 = 0 ;
5270 bool result;
5271 wxRect temp2 ;
5272 PyObject * obj0 = 0 ;
5273 PyObject * obj1 = 0 ;
5274 char *kwnames[] = {
5275 (char *) "self",(char *) "rect", NULL
5276 };
5277
5278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5281 {
5282 arg2 = &temp2;
5283 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5284 }
5285 {
5286 PyThreadState* __tstate = wxPyBeginAllowThreads();
5287 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5288
5289 wxPyEndAllowThreads(__tstate);
5290 if (PyErr_Occurred()) SWIG_fail;
5291 }
5292 {
5293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5294 }
5295 return resultobj;
5296 fail:
5297 return NULL;
5298 }
5299
5300
5301 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5302 PyObject *resultobj;
5303 wxRegion *arg1 = (wxRegion *) 0 ;
5304 wxRegion *arg2 = 0 ;
5305 bool result;
5306 PyObject * obj0 = 0 ;
5307 PyObject * obj1 = 0 ;
5308 char *kwnames[] = {
5309 (char *) "self",(char *) "region", NULL
5310 };
5311
5312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5315 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5316 SWIG_POINTER_EXCEPTION | 0)) == -1)
5317 SWIG_fail;
5318 if (arg2 == NULL) {
5319 PyErr_SetString(PyExc_TypeError,"null reference");
5320 SWIG_fail;
5321 }
5322 {
5323 PyThreadState* __tstate = wxPyBeginAllowThreads();
5324 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5325
5326 wxPyEndAllowThreads(__tstate);
5327 if (PyErr_Occurred()) SWIG_fail;
5328 }
5329 {
5330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5331 }
5332 return resultobj;
5333 fail:
5334 return NULL;
5335 }
5336
5337
5338 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5339 PyObject *resultobj;
5340 wxRegion *arg1 = (wxRegion *) 0 ;
5341 int arg2 ;
5342 int arg3 ;
5343 int arg4 ;
5344 int arg5 ;
5345 bool result;
5346 PyObject * obj0 = 0 ;
5347 PyObject * obj1 = 0 ;
5348 PyObject * obj2 = 0 ;
5349 PyObject * obj3 = 0 ;
5350 PyObject * obj4 = 0 ;
5351 char *kwnames[] = {
5352 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5353 };
5354
5355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5358 arg2 = (int) SWIG_AsInt(obj1);
5359 if (PyErr_Occurred()) SWIG_fail;
5360 arg3 = (int) SWIG_AsInt(obj2);
5361 if (PyErr_Occurred()) SWIG_fail;
5362 arg4 = (int) SWIG_AsInt(obj3);
5363 if (PyErr_Occurred()) SWIG_fail;
5364 arg5 = (int) SWIG_AsInt(obj4);
5365 if (PyErr_Occurred()) SWIG_fail;
5366 {
5367 PyThreadState* __tstate = wxPyBeginAllowThreads();
5368 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5369
5370 wxPyEndAllowThreads(__tstate);
5371 if (PyErr_Occurred()) SWIG_fail;
5372 }
5373 {
5374 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5375 }
5376 return resultobj;
5377 fail:
5378 return NULL;
5379 }
5380
5381
5382 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5383 PyObject *resultobj;
5384 wxRegion *arg1 = (wxRegion *) 0 ;
5385 wxRect *arg2 = 0 ;
5386 bool result;
5387 wxRect temp2 ;
5388 PyObject * obj0 = 0 ;
5389 PyObject * obj1 = 0 ;
5390 char *kwnames[] = {
5391 (char *) "self",(char *) "rect", NULL
5392 };
5393
5394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5397 {
5398 arg2 = &temp2;
5399 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5400 }
5401 {
5402 PyThreadState* __tstate = wxPyBeginAllowThreads();
5403 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5404
5405 wxPyEndAllowThreads(__tstate);
5406 if (PyErr_Occurred()) SWIG_fail;
5407 }
5408 {
5409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5410 }
5411 return resultobj;
5412 fail:
5413 return NULL;
5414 }
5415
5416
5417 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5418 PyObject *resultobj;
5419 wxRegion *arg1 = (wxRegion *) 0 ;
5420 wxRegion *arg2 = 0 ;
5421 bool result;
5422 PyObject * obj0 = 0 ;
5423 PyObject * obj1 = 0 ;
5424 char *kwnames[] = {
5425 (char *) "self",(char *) "region", NULL
5426 };
5427
5428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5431 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5432 SWIG_POINTER_EXCEPTION | 0)) == -1)
5433 SWIG_fail;
5434 if (arg2 == NULL) {
5435 PyErr_SetString(PyExc_TypeError,"null reference");
5436 SWIG_fail;
5437 }
5438 {
5439 PyThreadState* __tstate = wxPyBeginAllowThreads();
5440 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5441
5442 wxPyEndAllowThreads(__tstate);
5443 if (PyErr_Occurred()) SWIG_fail;
5444 }
5445 {
5446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5447 }
5448 return resultobj;
5449 fail:
5450 return NULL;
5451 }
5452
5453
5454 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5455 PyObject *resultobj;
5456 wxRegion *arg1 = (wxRegion *) 0 ;
5457 SwigValueWrapper< wxBitmap > result;
5458 PyObject * obj0 = 0 ;
5459 char *kwnames[] = {
5460 (char *) "self", NULL
5461 };
5462
5463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5466 {
5467 PyThreadState* __tstate = wxPyBeginAllowThreads();
5468 result = (arg1)->ConvertToBitmap();
5469
5470 wxPyEndAllowThreads(__tstate);
5471 if (PyErr_Occurred()) SWIG_fail;
5472 }
5473 {
5474 wxBitmap * resultptr;
5475 resultptr = new wxBitmap((wxBitmap &) result);
5476 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5477 }
5478 return resultobj;
5479 fail:
5480 return NULL;
5481 }
5482
5483
5484 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5485 PyObject *resultobj;
5486 wxRegion *arg1 = (wxRegion *) 0 ;
5487 wxBitmap *arg2 = 0 ;
5488 wxColour const &arg3_defvalue = wxNullColour ;
5489 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
5490 int arg4 = (int) 0 ;
5491 bool result;
5492 wxColour temp3 ;
5493 PyObject * obj0 = 0 ;
5494 PyObject * obj1 = 0 ;
5495 PyObject * obj2 = 0 ;
5496 PyObject * obj3 = 0 ;
5497 char *kwnames[] = {
5498 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5499 };
5500
5501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5504 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5505 SWIG_POINTER_EXCEPTION | 0)) == -1)
5506 SWIG_fail;
5507 if (arg2 == NULL) {
5508 PyErr_SetString(PyExc_TypeError,"null reference");
5509 SWIG_fail;
5510 }
5511 if (obj2) {
5512 {
5513 arg3 = &temp3;
5514 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5515 }
5516 }
5517 if (obj3) {
5518 arg4 = (int) SWIG_AsInt(obj3);
5519 if (PyErr_Occurred()) SWIG_fail;
5520 }
5521 {
5522 PyThreadState* __tstate = wxPyBeginAllowThreads();
5523 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5524
5525 wxPyEndAllowThreads(__tstate);
5526 if (PyErr_Occurred()) SWIG_fail;
5527 }
5528 {
5529 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5530 }
5531 return resultobj;
5532 fail:
5533 return NULL;
5534 }
5535
5536
5537 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5538 PyObject *obj;
5539 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5540 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5541 Py_INCREF(obj);
5542 return Py_BuildValue((char *)"");
5543 }
5544 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5545 PyObject *resultobj;
5546 wxRegion *arg1 = 0 ;
5547 wxRegionIterator *result;
5548 PyObject * obj0 = 0 ;
5549 char *kwnames[] = {
5550 (char *) "region", NULL
5551 };
5552
5553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5555 SWIG_POINTER_EXCEPTION | 0)) == -1)
5556 SWIG_fail;
5557 if (arg1 == NULL) {
5558 PyErr_SetString(PyExc_TypeError,"null reference");
5559 SWIG_fail;
5560 }
5561 {
5562 PyThreadState* __tstate = wxPyBeginAllowThreads();
5563 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5564
5565 wxPyEndAllowThreads(__tstate);
5566 if (PyErr_Occurred()) SWIG_fail;
5567 }
5568 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
5569 return resultobj;
5570 fail:
5571 return NULL;
5572 }
5573
5574
5575 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5576 PyObject *resultobj;
5577 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5578 PyObject * obj0 = 0 ;
5579 char *kwnames[] = {
5580 (char *) "self", NULL
5581 };
5582
5583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5586 {
5587 PyThreadState* __tstate = wxPyBeginAllowThreads();
5588 delete arg1;
5589
5590 wxPyEndAllowThreads(__tstate);
5591 if (PyErr_Occurred()) SWIG_fail;
5592 }
5593 Py_INCREF(Py_None); resultobj = Py_None;
5594 return resultobj;
5595 fail:
5596 return NULL;
5597 }
5598
5599
5600 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5601 PyObject *resultobj;
5602 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5603 int result;
5604 PyObject * obj0 = 0 ;
5605 char *kwnames[] = {
5606 (char *) "self", NULL
5607 };
5608
5609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5612 {
5613 PyThreadState* __tstate = wxPyBeginAllowThreads();
5614 result = (int)(arg1)->GetX();
5615
5616 wxPyEndAllowThreads(__tstate);
5617 if (PyErr_Occurred()) SWIG_fail;
5618 }
5619 resultobj = SWIG_FromInt((int)result);
5620 return resultobj;
5621 fail:
5622 return NULL;
5623 }
5624
5625
5626 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5627 PyObject *resultobj;
5628 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5629 int result;
5630 PyObject * obj0 = 0 ;
5631 char *kwnames[] = {
5632 (char *) "self", NULL
5633 };
5634
5635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5638 {
5639 PyThreadState* __tstate = wxPyBeginAllowThreads();
5640 result = (int)(arg1)->GetY();
5641
5642 wxPyEndAllowThreads(__tstate);
5643 if (PyErr_Occurred()) SWIG_fail;
5644 }
5645 resultobj = SWIG_FromInt((int)result);
5646 return resultobj;
5647 fail:
5648 return NULL;
5649 }
5650
5651
5652 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5653 PyObject *resultobj;
5654 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5655 int result;
5656 PyObject * obj0 = 0 ;
5657 char *kwnames[] = {
5658 (char *) "self", NULL
5659 };
5660
5661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5664 {
5665 PyThreadState* __tstate = wxPyBeginAllowThreads();
5666 result = (int)(arg1)->GetW();
5667
5668 wxPyEndAllowThreads(__tstate);
5669 if (PyErr_Occurred()) SWIG_fail;
5670 }
5671 resultobj = SWIG_FromInt((int)result);
5672 return resultobj;
5673 fail:
5674 return NULL;
5675 }
5676
5677
5678 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5679 PyObject *resultobj;
5680 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5681 int result;
5682 PyObject * obj0 = 0 ;
5683 char *kwnames[] = {
5684 (char *) "self", NULL
5685 };
5686
5687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5690 {
5691 PyThreadState* __tstate = wxPyBeginAllowThreads();
5692 result = (int)(arg1)->GetWidth();
5693
5694 wxPyEndAllowThreads(__tstate);
5695 if (PyErr_Occurred()) SWIG_fail;
5696 }
5697 resultobj = SWIG_FromInt((int)result);
5698 return resultobj;
5699 fail:
5700 return NULL;
5701 }
5702
5703
5704 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5705 PyObject *resultobj;
5706 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5707 int result;
5708 PyObject * obj0 = 0 ;
5709 char *kwnames[] = {
5710 (char *) "self", NULL
5711 };
5712
5713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5716 {
5717 PyThreadState* __tstate = wxPyBeginAllowThreads();
5718 result = (int)(arg1)->GetH();
5719
5720 wxPyEndAllowThreads(__tstate);
5721 if (PyErr_Occurred()) SWIG_fail;
5722 }
5723 resultobj = SWIG_FromInt((int)result);
5724 return resultobj;
5725 fail:
5726 return NULL;
5727 }
5728
5729
5730 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5731 PyObject *resultobj;
5732 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5733 int result;
5734 PyObject * obj0 = 0 ;
5735 char *kwnames[] = {
5736 (char *) "self", NULL
5737 };
5738
5739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5742 {
5743 PyThreadState* __tstate = wxPyBeginAllowThreads();
5744 result = (int)(arg1)->GetHeight();
5745
5746 wxPyEndAllowThreads(__tstate);
5747 if (PyErr_Occurred()) SWIG_fail;
5748 }
5749 resultobj = SWIG_FromInt((int)result);
5750 return resultobj;
5751 fail:
5752 return NULL;
5753 }
5754
5755
5756 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5757 PyObject *resultobj;
5758 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5759 wxRect result;
5760 PyObject * obj0 = 0 ;
5761 char *kwnames[] = {
5762 (char *) "self", NULL
5763 };
5764
5765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5768 {
5769 PyThreadState* __tstate = wxPyBeginAllowThreads();
5770 result = (arg1)->GetRect();
5771
5772 wxPyEndAllowThreads(__tstate);
5773 if (PyErr_Occurred()) SWIG_fail;
5774 }
5775 {
5776 wxRect * resultptr;
5777 resultptr = new wxRect((wxRect &) result);
5778 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5779 }
5780 return resultobj;
5781 fail:
5782 return NULL;
5783 }
5784
5785
5786 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
5787 PyObject *resultobj;
5788 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5789 bool result;
5790 PyObject * obj0 = 0 ;
5791 char *kwnames[] = {
5792 (char *) "self", NULL
5793 };
5794
5795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
5796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5798 {
5799 PyThreadState* __tstate = wxPyBeginAllowThreads();
5800 result = (bool)(arg1)->HaveRects();
5801
5802 wxPyEndAllowThreads(__tstate);
5803 if (PyErr_Occurred()) SWIG_fail;
5804 }
5805 {
5806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5807 }
5808 return resultobj;
5809 fail:
5810 return NULL;
5811 }
5812
5813
5814 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
5815 PyObject *resultobj;
5816 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5817 PyObject * obj0 = 0 ;
5818 char *kwnames[] = {
5819 (char *) "self", NULL
5820 };
5821
5822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
5823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5825 {
5826 PyThreadState* __tstate = wxPyBeginAllowThreads();
5827 (arg1)->Reset();
5828
5829 wxPyEndAllowThreads(__tstate);
5830 if (PyErr_Occurred()) SWIG_fail;
5831 }
5832 Py_INCREF(Py_None); resultobj = Py_None;
5833 return resultobj;
5834 fail:
5835 return NULL;
5836 }
5837
5838
5839 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
5840 PyObject *resultobj;
5841 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5842 PyObject * obj0 = 0 ;
5843 char *kwnames[] = {
5844 (char *) "self", NULL
5845 };
5846
5847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
5848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5850 {
5851 PyThreadState* __tstate = wxPyBeginAllowThreads();
5852 wxRegionIterator_Next(arg1);
5853
5854 wxPyEndAllowThreads(__tstate);
5855 if (PyErr_Occurred()) SWIG_fail;
5856 }
5857 Py_INCREF(Py_None); resultobj = Py_None;
5858 return resultobj;
5859 fail:
5860 return NULL;
5861 }
5862
5863
5864 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
5865 PyObject *resultobj;
5866 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5867 bool result;
5868 PyObject * obj0 = 0 ;
5869 char *kwnames[] = {
5870 (char *) "self", NULL
5871 };
5872
5873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
5874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5876 {
5877 PyThreadState* __tstate = wxPyBeginAllowThreads();
5878 result = (bool)wxRegionIterator___nonzero__(arg1);
5879
5880 wxPyEndAllowThreads(__tstate);
5881 if (PyErr_Occurred()) SWIG_fail;
5882 }
5883 {
5884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5885 }
5886 return resultobj;
5887 fail:
5888 return NULL;
5889 }
5890
5891
5892 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
5893 PyObject *obj;
5894 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5895 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
5896 Py_INCREF(obj);
5897 return Py_BuildValue((char *)"");
5898 }
5899 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5900 PyObject *resultobj;
5901 wxNativeFontInfo *result;
5902 char *kwnames[] = {
5903 NULL
5904 };
5905
5906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
5907 {
5908 PyThreadState* __tstate = wxPyBeginAllowThreads();
5909 result = (wxNativeFontInfo *)new wxNativeFontInfo();
5910
5911 wxPyEndAllowThreads(__tstate);
5912 if (PyErr_Occurred()) SWIG_fail;
5913 }
5914 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
5915 return resultobj;
5916 fail:
5917 return NULL;
5918 }
5919
5920
5921 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5922 PyObject *resultobj;
5923 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5924 PyObject * obj0 = 0 ;
5925 char *kwnames[] = {
5926 (char *) "self", NULL
5927 };
5928
5929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
5930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5932 {
5933 PyThreadState* __tstate = wxPyBeginAllowThreads();
5934 delete arg1;
5935
5936 wxPyEndAllowThreads(__tstate);
5937 if (PyErr_Occurred()) SWIG_fail;
5938 }
5939 Py_INCREF(Py_None); resultobj = Py_None;
5940 return resultobj;
5941 fail:
5942 return NULL;
5943 }
5944
5945
5946 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
5947 PyObject *resultobj;
5948 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5949 PyObject * obj0 = 0 ;
5950 char *kwnames[] = {
5951 (char *) "self", NULL
5952 };
5953
5954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
5955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5957 {
5958 PyThreadState* __tstate = wxPyBeginAllowThreads();
5959 (arg1)->Init();
5960
5961 wxPyEndAllowThreads(__tstate);
5962 if (PyErr_Occurred()) SWIG_fail;
5963 }
5964 Py_INCREF(Py_None); resultobj = Py_None;
5965 return resultobj;
5966 fail:
5967 return NULL;
5968 }
5969
5970
5971 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5972 PyObject *resultobj;
5973 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5974 wxFont *arg2 = 0 ;
5975 PyObject * obj0 = 0 ;
5976 PyObject * obj1 = 0 ;
5977 char *kwnames[] = {
5978 (char *) "self",(char *) "font", NULL
5979 };
5980
5981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
5982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5984 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
5985 SWIG_POINTER_EXCEPTION | 0)) == -1)
5986 SWIG_fail;
5987 if (arg2 == NULL) {
5988 PyErr_SetString(PyExc_TypeError,"null reference");
5989 SWIG_fail;
5990 }
5991 {
5992 PyThreadState* __tstate = wxPyBeginAllowThreads();
5993 (arg1)->InitFromFont((wxFont const &)*arg2);
5994
5995 wxPyEndAllowThreads(__tstate);
5996 if (PyErr_Occurred()) SWIG_fail;
5997 }
5998 Py_INCREF(Py_None); resultobj = Py_None;
5999 return resultobj;
6000 fail:
6001 return NULL;
6002 }
6003
6004
6005 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6006 PyObject *resultobj;
6007 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6008 int result;
6009 PyObject * obj0 = 0 ;
6010 char *kwnames[] = {
6011 (char *) "self", NULL
6012 };
6013
6014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6017 {
6018 PyThreadState* __tstate = wxPyBeginAllowThreads();
6019 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6020
6021 wxPyEndAllowThreads(__tstate);
6022 if (PyErr_Occurred()) SWIG_fail;
6023 }
6024 resultobj = SWIG_FromInt((int)result);
6025 return resultobj;
6026 fail:
6027 return NULL;
6028 }
6029
6030
6031 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6032 PyObject *resultobj;
6033 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6034 int result;
6035 PyObject * obj0 = 0 ;
6036 char *kwnames[] = {
6037 (char *) "self", NULL
6038 };
6039
6040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6043 {
6044 PyThreadState* __tstate = wxPyBeginAllowThreads();
6045 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6046
6047 wxPyEndAllowThreads(__tstate);
6048 if (PyErr_Occurred()) SWIG_fail;
6049 }
6050 resultobj = SWIG_FromInt((int)result);
6051 return resultobj;
6052 fail:
6053 return NULL;
6054 }
6055
6056
6057 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6058 PyObject *resultobj;
6059 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6060 int result;
6061 PyObject * obj0 = 0 ;
6062 char *kwnames[] = {
6063 (char *) "self", NULL
6064 };
6065
6066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6069 {
6070 PyThreadState* __tstate = wxPyBeginAllowThreads();
6071 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6072
6073 wxPyEndAllowThreads(__tstate);
6074 if (PyErr_Occurred()) SWIG_fail;
6075 }
6076 resultobj = SWIG_FromInt((int)result);
6077 return resultobj;
6078 fail:
6079 return NULL;
6080 }
6081
6082
6083 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6084 PyObject *resultobj;
6085 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6086 bool result;
6087 PyObject * obj0 = 0 ;
6088 char *kwnames[] = {
6089 (char *) "self", NULL
6090 };
6091
6092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6095 {
6096 PyThreadState* __tstate = wxPyBeginAllowThreads();
6097 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6098
6099 wxPyEndAllowThreads(__tstate);
6100 if (PyErr_Occurred()) SWIG_fail;
6101 }
6102 {
6103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6104 }
6105 return resultobj;
6106 fail:
6107 return NULL;
6108 }
6109
6110
6111 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6112 PyObject *resultobj;
6113 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6114 wxString result;
6115 PyObject * obj0 = 0 ;
6116 char *kwnames[] = {
6117 (char *) "self", NULL
6118 };
6119
6120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6123 {
6124 PyThreadState* __tstate = wxPyBeginAllowThreads();
6125 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6126
6127 wxPyEndAllowThreads(__tstate);
6128 if (PyErr_Occurred()) SWIG_fail;
6129 }
6130 {
6131 #if wxUSE_UNICODE
6132 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6133 #else
6134 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6135 #endif
6136 }
6137 return resultobj;
6138 fail:
6139 return NULL;
6140 }
6141
6142
6143 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6144 PyObject *resultobj;
6145 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6146 int result;
6147 PyObject * obj0 = 0 ;
6148 char *kwnames[] = {
6149 (char *) "self", NULL
6150 };
6151
6152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6155 {
6156 PyThreadState* __tstate = wxPyBeginAllowThreads();
6157 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6158
6159 wxPyEndAllowThreads(__tstate);
6160 if (PyErr_Occurred()) SWIG_fail;
6161 }
6162 resultobj = SWIG_FromInt((int)result);
6163 return resultobj;
6164 fail:
6165 return NULL;
6166 }
6167
6168
6169 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6170 PyObject *resultobj;
6171 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6172 int result;
6173 PyObject * obj0 = 0 ;
6174 char *kwnames[] = {
6175 (char *) "self", NULL
6176 };
6177
6178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6181 {
6182 PyThreadState* __tstate = wxPyBeginAllowThreads();
6183 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6184
6185 wxPyEndAllowThreads(__tstate);
6186 if (PyErr_Occurred()) SWIG_fail;
6187 }
6188 resultobj = SWIG_FromInt((int)result);
6189 return resultobj;
6190 fail:
6191 return NULL;
6192 }
6193
6194
6195 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6196 PyObject *resultobj;
6197 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6198 int arg2 ;
6199 PyObject * obj0 = 0 ;
6200 PyObject * obj1 = 0 ;
6201 char *kwnames[] = {
6202 (char *) "self",(char *) "pointsize", NULL
6203 };
6204
6205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6208 arg2 = (int) SWIG_AsInt(obj1);
6209 if (PyErr_Occurred()) SWIG_fail;
6210 {
6211 PyThreadState* __tstate = wxPyBeginAllowThreads();
6212 (arg1)->SetPointSize(arg2);
6213
6214 wxPyEndAllowThreads(__tstate);
6215 if (PyErr_Occurred()) SWIG_fail;
6216 }
6217 Py_INCREF(Py_None); resultobj = Py_None;
6218 return resultobj;
6219 fail:
6220 return NULL;
6221 }
6222
6223
6224 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6225 PyObject *resultobj;
6226 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6227 int arg2 ;
6228 PyObject * obj0 = 0 ;
6229 PyObject * obj1 = 0 ;
6230 char *kwnames[] = {
6231 (char *) "self",(char *) "style", NULL
6232 };
6233
6234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6237 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6238 if (PyErr_Occurred()) SWIG_fail;
6239 {
6240 PyThreadState* __tstate = wxPyBeginAllowThreads();
6241 (arg1)->SetStyle((wxFontStyle )arg2);
6242
6243 wxPyEndAllowThreads(__tstate);
6244 if (PyErr_Occurred()) SWIG_fail;
6245 }
6246 Py_INCREF(Py_None); resultobj = Py_None;
6247 return resultobj;
6248 fail:
6249 return NULL;
6250 }
6251
6252
6253 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6254 PyObject *resultobj;
6255 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6256 int arg2 ;
6257 PyObject * obj0 = 0 ;
6258 PyObject * obj1 = 0 ;
6259 char *kwnames[] = {
6260 (char *) "self",(char *) "weight", NULL
6261 };
6262
6263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6266 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6267 if (PyErr_Occurred()) SWIG_fail;
6268 {
6269 PyThreadState* __tstate = wxPyBeginAllowThreads();
6270 (arg1)->SetWeight((wxFontWeight )arg2);
6271
6272 wxPyEndAllowThreads(__tstate);
6273 if (PyErr_Occurred()) SWIG_fail;
6274 }
6275 Py_INCREF(Py_None); resultobj = Py_None;
6276 return resultobj;
6277 fail:
6278 return NULL;
6279 }
6280
6281
6282 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6283 PyObject *resultobj;
6284 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6285 bool arg2 ;
6286 PyObject * obj0 = 0 ;
6287 PyObject * obj1 = 0 ;
6288 char *kwnames[] = {
6289 (char *) "self",(char *) "underlined", NULL
6290 };
6291
6292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6295 arg2 = (bool) SWIG_AsBool(obj1);
6296 if (PyErr_Occurred()) SWIG_fail;
6297 {
6298 PyThreadState* __tstate = wxPyBeginAllowThreads();
6299 (arg1)->SetUnderlined(arg2);
6300
6301 wxPyEndAllowThreads(__tstate);
6302 if (PyErr_Occurred()) SWIG_fail;
6303 }
6304 Py_INCREF(Py_None); resultobj = Py_None;
6305 return resultobj;
6306 fail:
6307 return NULL;
6308 }
6309
6310
6311 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6312 PyObject *resultobj;
6313 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6314 wxString arg2 ;
6315 PyObject * obj0 = 0 ;
6316 PyObject * obj1 = 0 ;
6317 char *kwnames[] = {
6318 (char *) "self",(char *) "facename", NULL
6319 };
6320
6321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6324 {
6325 wxString* sptr = wxString_in_helper(obj1);
6326 if (sptr == NULL) SWIG_fail;
6327 arg2 = *sptr;
6328 delete sptr;
6329 }
6330 {
6331 PyThreadState* __tstate = wxPyBeginAllowThreads();
6332 (arg1)->SetFaceName(arg2);
6333
6334 wxPyEndAllowThreads(__tstate);
6335 if (PyErr_Occurred()) SWIG_fail;
6336 }
6337 Py_INCREF(Py_None); resultobj = Py_None;
6338 return resultobj;
6339 fail:
6340 return NULL;
6341 }
6342
6343
6344 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6345 PyObject *resultobj;
6346 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6347 int arg2 ;
6348 PyObject * obj0 = 0 ;
6349 PyObject * obj1 = 0 ;
6350 char *kwnames[] = {
6351 (char *) "self",(char *) "family", NULL
6352 };
6353
6354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6357 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
6358 if (PyErr_Occurred()) SWIG_fail;
6359 {
6360 PyThreadState* __tstate = wxPyBeginAllowThreads();
6361 (arg1)->SetFamily((wxFontFamily )arg2);
6362
6363 wxPyEndAllowThreads(__tstate);
6364 if (PyErr_Occurred()) SWIG_fail;
6365 }
6366 Py_INCREF(Py_None); resultobj = Py_None;
6367 return resultobj;
6368 fail:
6369 return NULL;
6370 }
6371
6372
6373 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6374 PyObject *resultobj;
6375 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6376 int arg2 ;
6377 PyObject * obj0 = 0 ;
6378 PyObject * obj1 = 0 ;
6379 char *kwnames[] = {
6380 (char *) "self",(char *) "encoding", NULL
6381 };
6382
6383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6386 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6387 if (PyErr_Occurred()) SWIG_fail;
6388 {
6389 PyThreadState* __tstate = wxPyBeginAllowThreads();
6390 (arg1)->SetEncoding((wxFontEncoding )arg2);
6391
6392 wxPyEndAllowThreads(__tstate);
6393 if (PyErr_Occurred()) SWIG_fail;
6394 }
6395 Py_INCREF(Py_None); resultobj = Py_None;
6396 return resultobj;
6397 fail:
6398 return NULL;
6399 }
6400
6401
6402 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6403 PyObject *resultobj;
6404 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6405 wxString *arg2 = 0 ;
6406 bool result;
6407 bool temp2 = False ;
6408 PyObject * obj0 = 0 ;
6409 PyObject * obj1 = 0 ;
6410 char *kwnames[] = {
6411 (char *) "self",(char *) "s", NULL
6412 };
6413
6414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6417 {
6418 arg2 = wxString_in_helper(obj1);
6419 if (arg2 == NULL) SWIG_fail;
6420 temp2 = True;
6421 }
6422 {
6423 PyThreadState* __tstate = wxPyBeginAllowThreads();
6424 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6425
6426 wxPyEndAllowThreads(__tstate);
6427 if (PyErr_Occurred()) SWIG_fail;
6428 }
6429 {
6430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6431 }
6432 {
6433 if (temp2)
6434 delete arg2;
6435 }
6436 return resultobj;
6437 fail:
6438 {
6439 if (temp2)
6440 delete arg2;
6441 }
6442 return NULL;
6443 }
6444
6445
6446 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6447 PyObject *resultobj;
6448 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6449 wxString result;
6450 PyObject * obj0 = 0 ;
6451 char *kwnames[] = {
6452 (char *) "self", NULL
6453 };
6454
6455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6458 {
6459 PyThreadState* __tstate = wxPyBeginAllowThreads();
6460 result = ((wxNativeFontInfo const *)arg1)->ToString();
6461
6462 wxPyEndAllowThreads(__tstate);
6463 if (PyErr_Occurred()) SWIG_fail;
6464 }
6465 {
6466 #if wxUSE_UNICODE
6467 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6468 #else
6469 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6470 #endif
6471 }
6472 return resultobj;
6473 fail:
6474 return NULL;
6475 }
6476
6477
6478 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6479 PyObject *resultobj;
6480 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6481 wxString result;
6482 PyObject * obj0 = 0 ;
6483 char *kwnames[] = {
6484 (char *) "self", NULL
6485 };
6486
6487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6490 {
6491 PyThreadState* __tstate = wxPyBeginAllowThreads();
6492 result = wxNativeFontInfo___str__(arg1);
6493
6494 wxPyEndAllowThreads(__tstate);
6495 if (PyErr_Occurred()) SWIG_fail;
6496 }
6497 {
6498 #if wxUSE_UNICODE
6499 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6500 #else
6501 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6502 #endif
6503 }
6504 return resultobj;
6505 fail:
6506 return NULL;
6507 }
6508
6509
6510 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6511 PyObject *resultobj;
6512 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6513 wxString *arg2 = 0 ;
6514 bool result;
6515 bool temp2 = False ;
6516 PyObject * obj0 = 0 ;
6517 PyObject * obj1 = 0 ;
6518 char *kwnames[] = {
6519 (char *) "self",(char *) "s", NULL
6520 };
6521
6522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6525 {
6526 arg2 = wxString_in_helper(obj1);
6527 if (arg2 == NULL) SWIG_fail;
6528 temp2 = True;
6529 }
6530 {
6531 PyThreadState* __tstate = wxPyBeginAllowThreads();
6532 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6533
6534 wxPyEndAllowThreads(__tstate);
6535 if (PyErr_Occurred()) SWIG_fail;
6536 }
6537 {
6538 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6539 }
6540 {
6541 if (temp2)
6542 delete arg2;
6543 }
6544 return resultobj;
6545 fail:
6546 {
6547 if (temp2)
6548 delete arg2;
6549 }
6550 return NULL;
6551 }
6552
6553
6554 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6555 PyObject *resultobj;
6556 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6557 wxString result;
6558 PyObject * obj0 = 0 ;
6559 char *kwnames[] = {
6560 (char *) "self", NULL
6561 };
6562
6563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6566 {
6567 PyThreadState* __tstate = wxPyBeginAllowThreads();
6568 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6569
6570 wxPyEndAllowThreads(__tstate);
6571 if (PyErr_Occurred()) SWIG_fail;
6572 }
6573 {
6574 #if wxUSE_UNICODE
6575 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6576 #else
6577 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6578 #endif
6579 }
6580 return resultobj;
6581 fail:
6582 return NULL;
6583 }
6584
6585
6586 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6587 PyObject *obj;
6588 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6589 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6590 Py_INCREF(obj);
6591 return Py_BuildValue((char *)"");
6592 }
6593 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6594 PyObject *resultobj;
6595 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6596 wxString *arg2 = (wxString *) 0 ;
6597 bool temp2 = False ;
6598 PyObject * obj0 = 0 ;
6599 PyObject * obj1 = 0 ;
6600 char *kwnames[] = {
6601 (char *) "self",(char *) "facename", NULL
6602 };
6603
6604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6607 {
6608 arg2 = wxString_in_helper(obj1);
6609 if (arg2 == NULL) SWIG_fail;
6610 temp2 = True;
6611 }
6612 if (arg1) (arg1)->facename = *arg2;
6613
6614 Py_INCREF(Py_None); resultobj = Py_None;
6615 {
6616 if (temp2)
6617 delete arg2;
6618 }
6619 return resultobj;
6620 fail:
6621 {
6622 if (temp2)
6623 delete arg2;
6624 }
6625 return NULL;
6626 }
6627
6628
6629 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6630 PyObject *resultobj;
6631 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6632 wxString *result;
6633 PyObject * obj0 = 0 ;
6634 char *kwnames[] = {
6635 (char *) "self", NULL
6636 };
6637
6638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6641 result = (wxString *)& ((arg1)->facename);
6642
6643 {
6644 #if wxUSE_UNICODE
6645 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6646 #else
6647 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6648 #endif
6649 }
6650 return resultobj;
6651 fail:
6652 return NULL;
6653 }
6654
6655
6656 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6657 PyObject *resultobj;
6658 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6659 int arg2 ;
6660 PyObject * obj0 = 0 ;
6661 PyObject * obj1 = 0 ;
6662 char *kwnames[] = {
6663 (char *) "self",(char *) "encoding", NULL
6664 };
6665
6666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6669 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6670 if (PyErr_Occurred()) SWIG_fail;
6671 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6672
6673 Py_INCREF(Py_None); resultobj = Py_None;
6674 return resultobj;
6675 fail:
6676 return NULL;
6677 }
6678
6679
6680 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6681 PyObject *resultobj;
6682 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6683 int result;
6684 PyObject * obj0 = 0 ;
6685 char *kwnames[] = {
6686 (char *) "self", NULL
6687 };
6688
6689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6692 result = (int) ((arg1)->encoding);
6693
6694 resultobj = SWIG_FromInt((int)result);
6695 return resultobj;
6696 fail:
6697 return NULL;
6698 }
6699
6700
6701 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6702 PyObject *resultobj;
6703 wxNativeEncodingInfo *result;
6704 char *kwnames[] = {
6705 NULL
6706 };
6707
6708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6709 {
6710 PyThreadState* __tstate = wxPyBeginAllowThreads();
6711 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6712
6713 wxPyEndAllowThreads(__tstate);
6714 if (PyErr_Occurred()) SWIG_fail;
6715 }
6716 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
6717 return resultobj;
6718 fail:
6719 return NULL;
6720 }
6721
6722
6723 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6724 PyObject *resultobj;
6725 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6726 PyObject * obj0 = 0 ;
6727 char *kwnames[] = {
6728 (char *) "self", NULL
6729 };
6730
6731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6734 {
6735 PyThreadState* __tstate = wxPyBeginAllowThreads();
6736 delete arg1;
6737
6738 wxPyEndAllowThreads(__tstate);
6739 if (PyErr_Occurred()) SWIG_fail;
6740 }
6741 Py_INCREF(Py_None); resultobj = Py_None;
6742 return resultobj;
6743 fail:
6744 return NULL;
6745 }
6746
6747
6748 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6749 PyObject *resultobj;
6750 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6751 wxString *arg2 = 0 ;
6752 bool result;
6753 bool temp2 = False ;
6754 PyObject * obj0 = 0 ;
6755 PyObject * obj1 = 0 ;
6756 char *kwnames[] = {
6757 (char *) "self",(char *) "s", NULL
6758 };
6759
6760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6763 {
6764 arg2 = wxString_in_helper(obj1);
6765 if (arg2 == NULL) SWIG_fail;
6766 temp2 = True;
6767 }
6768 {
6769 PyThreadState* __tstate = wxPyBeginAllowThreads();
6770 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6771
6772 wxPyEndAllowThreads(__tstate);
6773 if (PyErr_Occurred()) SWIG_fail;
6774 }
6775 {
6776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6777 }
6778 {
6779 if (temp2)
6780 delete arg2;
6781 }
6782 return resultobj;
6783 fail:
6784 {
6785 if (temp2)
6786 delete arg2;
6787 }
6788 return NULL;
6789 }
6790
6791
6792 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6793 PyObject *resultobj;
6794 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6795 wxString result;
6796 PyObject * obj0 = 0 ;
6797 char *kwnames[] = {
6798 (char *) "self", NULL
6799 };
6800
6801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
6802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6804 {
6805 PyThreadState* __tstate = wxPyBeginAllowThreads();
6806 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6807
6808 wxPyEndAllowThreads(__tstate);
6809 if (PyErr_Occurred()) SWIG_fail;
6810 }
6811 {
6812 #if wxUSE_UNICODE
6813 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6814 #else
6815 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6816 #endif
6817 }
6818 return resultobj;
6819 fail:
6820 return NULL;
6821 }
6822
6823
6824 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
6825 PyObject *obj;
6826 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6827 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6828 Py_INCREF(obj);
6829 return Py_BuildValue((char *)"");
6830 }
6831 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6832 PyObject *resultobj;
6833 int arg1 ;
6834 wxNativeEncodingInfo *result;
6835 PyObject * obj0 = 0 ;
6836 char *kwnames[] = {
6837 (char *) "encoding", NULL
6838 };
6839
6840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
6841 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
6842 if (PyErr_Occurred()) SWIG_fail;
6843 {
6844 PyThreadState* __tstate = wxPyBeginAllowThreads();
6845 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
6846
6847 wxPyEndAllowThreads(__tstate);
6848 if (PyErr_Occurred()) SWIG_fail;
6849 }
6850 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
6851 return resultobj;
6852 fail:
6853 return NULL;
6854 }
6855
6856
6857 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6858 PyObject *resultobj;
6859 wxNativeEncodingInfo *arg1 = 0 ;
6860 bool result;
6861 PyObject * obj0 = 0 ;
6862 char *kwnames[] = {
6863 (char *) "info", NULL
6864 };
6865
6866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
6867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6868 SWIG_POINTER_EXCEPTION | 0)) == -1)
6869 SWIG_fail;
6870 if (arg1 == NULL) {
6871 PyErr_SetString(PyExc_TypeError,"null reference");
6872 SWIG_fail;
6873 }
6874 {
6875 PyThreadState* __tstate = wxPyBeginAllowThreads();
6876 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6877
6878 wxPyEndAllowThreads(__tstate);
6879 if (PyErr_Occurred()) SWIG_fail;
6880 }
6881 {
6882 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6883 }
6884 return resultobj;
6885 fail:
6886 return NULL;
6887 }
6888
6889
6890 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6891 PyObject *resultobj;
6892 wxFontMapper *result;
6893 char *kwnames[] = {
6894 NULL
6895 };
6896
6897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
6898 {
6899 PyThreadState* __tstate = wxPyBeginAllowThreads();
6900 result = (wxFontMapper *)new wxFontMapper();
6901
6902 wxPyEndAllowThreads(__tstate);
6903 if (PyErr_Occurred()) SWIG_fail;
6904 }
6905 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
6906 return resultobj;
6907 fail:
6908 return NULL;
6909 }
6910
6911
6912 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6913 PyObject *resultobj;
6914 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6915 PyObject * obj0 = 0 ;
6916 char *kwnames[] = {
6917 (char *) "self", NULL
6918 };
6919
6920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
6921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
6922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6923 {
6924 PyThreadState* __tstate = wxPyBeginAllowThreads();
6925 delete arg1;
6926
6927 wxPyEndAllowThreads(__tstate);
6928 if (PyErr_Occurred()) SWIG_fail;
6929 }
6930 Py_INCREF(Py_None); resultobj = Py_None;
6931 return resultobj;
6932 fail:
6933 return NULL;
6934 }
6935
6936
6937 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
6938 PyObject *resultobj;
6939 wxFontMapper *result;
6940 char *kwnames[] = {
6941 NULL
6942 };
6943
6944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
6945 {
6946 PyThreadState* __tstate = wxPyBeginAllowThreads();
6947 result = (wxFontMapper *)wxFontMapper::Get();
6948
6949 wxPyEndAllowThreads(__tstate);
6950 if (PyErr_Occurred()) SWIG_fail;
6951 }
6952 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
6953 return resultobj;
6954 fail:
6955 return NULL;
6956 }
6957
6958
6959 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
6960 PyObject *resultobj;
6961 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6962 wxFontMapper *result;
6963 PyObject * obj0 = 0 ;
6964 char *kwnames[] = {
6965 (char *) "mapper", NULL
6966 };
6967
6968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
6969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
6970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6971 {
6972 PyThreadState* __tstate = wxPyBeginAllowThreads();
6973 result = (wxFontMapper *)wxFontMapper::Set(arg1);
6974
6975 wxPyEndAllowThreads(__tstate);
6976 if (PyErr_Occurred()) SWIG_fail;
6977 }
6978 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
6979 return resultobj;
6980 fail:
6981 return NULL;
6982 }
6983
6984
6985 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6986 PyObject *resultobj;
6987 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6988 wxString *arg2 = 0 ;
6989 bool arg3 = (bool) True ;
6990 int result;
6991 bool temp2 = False ;
6992 PyObject * obj0 = 0 ;
6993 PyObject * obj1 = 0 ;
6994 PyObject * obj2 = 0 ;
6995 char *kwnames[] = {
6996 (char *) "self",(char *) "charset",(char *) "interactive", NULL
6997 };
6998
6999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7002 {
7003 arg2 = wxString_in_helper(obj1);
7004 if (arg2 == NULL) SWIG_fail;
7005 temp2 = True;
7006 }
7007 if (obj2) {
7008 arg3 = (bool) SWIG_AsBool(obj2);
7009 if (PyErr_Occurred()) SWIG_fail;
7010 }
7011 {
7012 PyThreadState* __tstate = wxPyBeginAllowThreads();
7013 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7014
7015 wxPyEndAllowThreads(__tstate);
7016 if (PyErr_Occurred()) SWIG_fail;
7017 }
7018 resultobj = SWIG_FromInt((int)result);
7019 {
7020 if (temp2)
7021 delete arg2;
7022 }
7023 return resultobj;
7024 fail:
7025 {
7026 if (temp2)
7027 delete arg2;
7028 }
7029 return NULL;
7030 }
7031
7032
7033 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7034 PyObject *resultobj;
7035 size_t result;
7036 char *kwnames[] = {
7037 NULL
7038 };
7039
7040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7041 {
7042 PyThreadState* __tstate = wxPyBeginAllowThreads();
7043 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7044
7045 wxPyEndAllowThreads(__tstate);
7046 if (PyErr_Occurred()) SWIG_fail;
7047 }
7048 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7049 return resultobj;
7050 fail:
7051 return NULL;
7052 }
7053
7054
7055 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7056 PyObject *resultobj;
7057 size_t arg1 ;
7058 int result;
7059 PyObject * obj0 = 0 ;
7060 char *kwnames[] = {
7061 (char *) "n", NULL
7062 };
7063
7064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7065 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7066 if (PyErr_Occurred()) SWIG_fail;
7067 {
7068 PyThreadState* __tstate = wxPyBeginAllowThreads();
7069 result = (int)wxFontMapper::GetEncoding(arg1);
7070
7071 wxPyEndAllowThreads(__tstate);
7072 if (PyErr_Occurred()) SWIG_fail;
7073 }
7074 resultobj = SWIG_FromInt((int)result);
7075 return resultobj;
7076 fail:
7077 return NULL;
7078 }
7079
7080
7081 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7082 PyObject *resultobj;
7083 int arg1 ;
7084 wxString result;
7085 PyObject * obj0 = 0 ;
7086 char *kwnames[] = {
7087 (char *) "encoding", NULL
7088 };
7089
7090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7091 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7092 if (PyErr_Occurred()) SWIG_fail;
7093 {
7094 PyThreadState* __tstate = wxPyBeginAllowThreads();
7095 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7096
7097 wxPyEndAllowThreads(__tstate);
7098 if (PyErr_Occurred()) SWIG_fail;
7099 }
7100 {
7101 #if wxUSE_UNICODE
7102 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7103 #else
7104 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7105 #endif
7106 }
7107 return resultobj;
7108 fail:
7109 return NULL;
7110 }
7111
7112
7113 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7114 PyObject *resultobj;
7115 int arg1 ;
7116 wxString result;
7117 PyObject * obj0 = 0 ;
7118 char *kwnames[] = {
7119 (char *) "encoding", NULL
7120 };
7121
7122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7123 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7124 if (PyErr_Occurred()) SWIG_fail;
7125 {
7126 PyThreadState* __tstate = wxPyBeginAllowThreads();
7127 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7128
7129 wxPyEndAllowThreads(__tstate);
7130 if (PyErr_Occurred()) SWIG_fail;
7131 }
7132 {
7133 #if wxUSE_UNICODE
7134 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7135 #else
7136 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7137 #endif
7138 }
7139 return resultobj;
7140 fail:
7141 return NULL;
7142 }
7143
7144
7145 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
7146 PyObject *resultobj;
7147 wxString *arg1 = 0 ;
7148 int result;
7149 bool temp1 = False ;
7150 PyObject * obj0 = 0 ;
7151 char *kwnames[] = {
7152 (char *) "name", NULL
7153 };
7154
7155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7156 {
7157 arg1 = wxString_in_helper(obj0);
7158 if (arg1 == NULL) SWIG_fail;
7159 temp1 = True;
7160 }
7161 {
7162 PyThreadState* __tstate = wxPyBeginAllowThreads();
7163 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7164
7165 wxPyEndAllowThreads(__tstate);
7166 if (PyErr_Occurred()) SWIG_fail;
7167 }
7168 resultobj = SWIG_FromInt((int)result);
7169 {
7170 if (temp1)
7171 delete arg1;
7172 }
7173 return resultobj;
7174 fail:
7175 {
7176 if (temp1)
7177 delete arg1;
7178 }
7179 return NULL;
7180 }
7181
7182
7183 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7184 PyObject *resultobj;
7185 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7186 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7187 PyObject * obj0 = 0 ;
7188 PyObject * obj1 = 0 ;
7189 char *kwnames[] = {
7190 (char *) "self",(char *) "config", NULL
7191 };
7192
7193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7196 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7198 {
7199 PyThreadState* __tstate = wxPyBeginAllowThreads();
7200 (arg1)->SetConfig(arg2);
7201
7202 wxPyEndAllowThreads(__tstate);
7203 if (PyErr_Occurred()) SWIG_fail;
7204 }
7205 Py_INCREF(Py_None); resultobj = Py_None;
7206 return resultobj;
7207 fail:
7208 return NULL;
7209 }
7210
7211
7212 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7213 PyObject *resultobj;
7214 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7215 wxString *arg2 = 0 ;
7216 bool temp2 = False ;
7217 PyObject * obj0 = 0 ;
7218 PyObject * obj1 = 0 ;
7219 char *kwnames[] = {
7220 (char *) "self",(char *) "prefix", NULL
7221 };
7222
7223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7226 {
7227 arg2 = wxString_in_helper(obj1);
7228 if (arg2 == NULL) SWIG_fail;
7229 temp2 = True;
7230 }
7231 {
7232 PyThreadState* __tstate = wxPyBeginAllowThreads();
7233 (arg1)->SetConfigPath((wxString const &)*arg2);
7234
7235 wxPyEndAllowThreads(__tstate);
7236 if (PyErr_Occurred()) SWIG_fail;
7237 }
7238 Py_INCREF(Py_None); resultobj = Py_None;
7239 {
7240 if (temp2)
7241 delete arg2;
7242 }
7243 return resultobj;
7244 fail:
7245 {
7246 if (temp2)
7247 delete arg2;
7248 }
7249 return NULL;
7250 }
7251
7252
7253 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7254 PyObject *resultobj;
7255 wxString result;
7256 char *kwnames[] = {
7257 NULL
7258 };
7259
7260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7261 {
7262 PyThreadState* __tstate = wxPyBeginAllowThreads();
7263 result = wxFontMapper::GetDefaultConfigPath();
7264
7265 wxPyEndAllowThreads(__tstate);
7266 if (PyErr_Occurred()) SWIG_fail;
7267 }
7268 {
7269 #if wxUSE_UNICODE
7270 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7271 #else
7272 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7273 #endif
7274 }
7275 return resultobj;
7276 fail:
7277 return NULL;
7278 }
7279
7280
7281 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7282 PyObject *resultobj;
7283 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7284 int arg2 ;
7285 wxString const &arg3_defvalue = wxPyEmptyString ;
7286 wxString *arg3 = (wxString *) &arg3_defvalue ;
7287 bool arg4 = (bool) True ;
7288 PyObject *result;
7289 bool temp3 = False ;
7290 PyObject * obj0 = 0 ;
7291 PyObject * obj1 = 0 ;
7292 PyObject * obj2 = 0 ;
7293 PyObject * obj3 = 0 ;
7294 char *kwnames[] = {
7295 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7296 };
7297
7298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7301 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7302 if (PyErr_Occurred()) SWIG_fail;
7303 if (obj2) {
7304 {
7305 arg3 = wxString_in_helper(obj2);
7306 if (arg3 == NULL) SWIG_fail;
7307 temp3 = True;
7308 }
7309 }
7310 if (obj3) {
7311 arg4 = (bool) SWIG_AsBool(obj3);
7312 if (PyErr_Occurred()) SWIG_fail;
7313 }
7314 {
7315 PyThreadState* __tstate = wxPyBeginAllowThreads();
7316 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7317
7318 wxPyEndAllowThreads(__tstate);
7319 if (PyErr_Occurred()) SWIG_fail;
7320 }
7321 resultobj = result;
7322 {
7323 if (temp3)
7324 delete arg3;
7325 }
7326 return resultobj;
7327 fail:
7328 {
7329 if (temp3)
7330 delete arg3;
7331 }
7332 return NULL;
7333 }
7334
7335
7336 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7337 PyObject *resultobj;
7338 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7339 int arg2 ;
7340 wxString const &arg3_defvalue = wxPyEmptyString ;
7341 wxString *arg3 = (wxString *) &arg3_defvalue ;
7342 bool result;
7343 bool temp3 = False ;
7344 PyObject * obj0 = 0 ;
7345 PyObject * obj1 = 0 ;
7346 PyObject * obj2 = 0 ;
7347 char *kwnames[] = {
7348 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7349 };
7350
7351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7354 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7355 if (PyErr_Occurred()) SWIG_fail;
7356 if (obj2) {
7357 {
7358 arg3 = wxString_in_helper(obj2);
7359 if (arg3 == NULL) SWIG_fail;
7360 temp3 = True;
7361 }
7362 }
7363 {
7364 PyThreadState* __tstate = wxPyBeginAllowThreads();
7365 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7366
7367 wxPyEndAllowThreads(__tstate);
7368 if (PyErr_Occurred()) SWIG_fail;
7369 }
7370 {
7371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7372 }
7373 {
7374 if (temp3)
7375 delete arg3;
7376 }
7377 return resultobj;
7378 fail:
7379 {
7380 if (temp3)
7381 delete arg3;
7382 }
7383 return NULL;
7384 }
7385
7386
7387 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7388 PyObject *resultobj;
7389 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7390 wxWindow *arg2 = (wxWindow *) 0 ;
7391 PyObject * obj0 = 0 ;
7392 PyObject * obj1 = 0 ;
7393 char *kwnames[] = {
7394 (char *) "self",(char *) "parent", NULL
7395 };
7396
7397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7400 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7402 {
7403 PyThreadState* __tstate = wxPyBeginAllowThreads();
7404 (arg1)->SetDialogParent(arg2);
7405
7406 wxPyEndAllowThreads(__tstate);
7407 if (PyErr_Occurred()) SWIG_fail;
7408 }
7409 Py_INCREF(Py_None); resultobj = Py_None;
7410 return resultobj;
7411 fail:
7412 return NULL;
7413 }
7414
7415
7416 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7417 PyObject *resultobj;
7418 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7419 wxString *arg2 = 0 ;
7420 bool temp2 = False ;
7421 PyObject * obj0 = 0 ;
7422 PyObject * obj1 = 0 ;
7423 char *kwnames[] = {
7424 (char *) "self",(char *) "title", NULL
7425 };
7426
7427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7430 {
7431 arg2 = wxString_in_helper(obj1);
7432 if (arg2 == NULL) SWIG_fail;
7433 temp2 = True;
7434 }
7435 {
7436 PyThreadState* __tstate = wxPyBeginAllowThreads();
7437 (arg1)->SetDialogTitle((wxString const &)*arg2);
7438
7439 wxPyEndAllowThreads(__tstate);
7440 if (PyErr_Occurred()) SWIG_fail;
7441 }
7442 Py_INCREF(Py_None); resultobj = Py_None;
7443 {
7444 if (temp2)
7445 delete arg2;
7446 }
7447 return resultobj;
7448 fail:
7449 {
7450 if (temp2)
7451 delete arg2;
7452 }
7453 return NULL;
7454 }
7455
7456
7457 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7458 PyObject *obj;
7459 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7460 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7461 Py_INCREF(obj);
7462 return Py_BuildValue((char *)"");
7463 }
7464 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7465 PyObject *resultobj;
7466 int arg1 ;
7467 int arg2 ;
7468 int arg3 ;
7469 int arg4 ;
7470 bool arg5 = (bool) False ;
7471 wxString const &arg6_defvalue = wxPyEmptyString ;
7472 wxString *arg6 = (wxString *) &arg6_defvalue ;
7473 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7474 wxFont *result;
7475 bool temp6 = False ;
7476 PyObject * obj0 = 0 ;
7477 PyObject * obj1 = 0 ;
7478 PyObject * obj2 = 0 ;
7479 PyObject * obj3 = 0 ;
7480 PyObject * obj4 = 0 ;
7481 PyObject * obj5 = 0 ;
7482 PyObject * obj6 = 0 ;
7483 char *kwnames[] = {
7484 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7485 };
7486
7487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7488 arg1 = (int) SWIG_AsInt(obj0);
7489 if (PyErr_Occurred()) SWIG_fail;
7490 arg2 = (int) SWIG_AsInt(obj1);
7491 if (PyErr_Occurred()) SWIG_fail;
7492 arg3 = (int) SWIG_AsInt(obj2);
7493 if (PyErr_Occurred()) SWIG_fail;
7494 arg4 = (int) SWIG_AsInt(obj3);
7495 if (PyErr_Occurred()) SWIG_fail;
7496 if (obj4) {
7497 arg5 = (bool) SWIG_AsBool(obj4);
7498 if (PyErr_Occurred()) SWIG_fail;
7499 }
7500 if (obj5) {
7501 {
7502 arg6 = wxString_in_helper(obj5);
7503 if (arg6 == NULL) SWIG_fail;
7504 temp6 = True;
7505 }
7506 }
7507 if (obj6) {
7508 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
7509 if (PyErr_Occurred()) SWIG_fail;
7510 }
7511 {
7512 PyThreadState* __tstate = wxPyBeginAllowThreads();
7513 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7514
7515 wxPyEndAllowThreads(__tstate);
7516 if (PyErr_Occurred()) SWIG_fail;
7517 }
7518 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7519 {
7520 if (temp6)
7521 delete arg6;
7522 }
7523 return resultobj;
7524 fail:
7525 {
7526 if (temp6)
7527 delete arg6;
7528 }
7529 return NULL;
7530 }
7531
7532
7533 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7534 PyObject *resultobj;
7535 wxFont *arg1 = (wxFont *) 0 ;
7536 PyObject * obj0 = 0 ;
7537 char *kwnames[] = {
7538 (char *) "self", NULL
7539 };
7540
7541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7544 {
7545 PyThreadState* __tstate = wxPyBeginAllowThreads();
7546 delete arg1;
7547
7548 wxPyEndAllowThreads(__tstate);
7549 if (PyErr_Occurred()) SWIG_fail;
7550 }
7551 Py_INCREF(Py_None); resultobj = Py_None;
7552 return resultobj;
7553 fail:
7554 return NULL;
7555 }
7556
7557
7558 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7559 PyObject *resultobj;
7560 wxNativeFontInfo *arg1 = 0 ;
7561 wxFont *result;
7562 PyObject * obj0 = 0 ;
7563 char *kwnames[] = {
7564 (char *) "info", NULL
7565 };
7566
7567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7569 SWIG_POINTER_EXCEPTION | 0)) == -1)
7570 SWIG_fail;
7571 if (arg1 == NULL) {
7572 PyErr_SetString(PyExc_TypeError,"null reference");
7573 SWIG_fail;
7574 }
7575 {
7576 PyThreadState* __tstate = wxPyBeginAllowThreads();
7577 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7578
7579 wxPyEndAllowThreads(__tstate);
7580 if (PyErr_Occurred()) SWIG_fail;
7581 }
7582 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7583 return resultobj;
7584 fail:
7585 return NULL;
7586 }
7587
7588
7589 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7590 PyObject *resultobj;
7591 wxString *arg1 = 0 ;
7592 wxFont *result;
7593 bool temp1 = False ;
7594 PyObject * obj0 = 0 ;
7595 char *kwnames[] = {
7596 (char *) "info", NULL
7597 };
7598
7599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7600 {
7601 arg1 = wxString_in_helper(obj0);
7602 if (arg1 == NULL) SWIG_fail;
7603 temp1 = True;
7604 }
7605 {
7606 PyThreadState* __tstate = wxPyBeginAllowThreads();
7607 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7608
7609 wxPyEndAllowThreads(__tstate);
7610 if (PyErr_Occurred()) SWIG_fail;
7611 }
7612 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7613 {
7614 if (temp1)
7615 delete arg1;
7616 }
7617 return resultobj;
7618 fail:
7619 {
7620 if (temp1)
7621 delete arg1;
7622 }
7623 return NULL;
7624 }
7625
7626
7627 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7628 PyObject *resultobj;
7629 int arg1 ;
7630 int arg2 ;
7631 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7632 wxString const &arg4_defvalue = wxPyEmptyString ;
7633 wxString *arg4 = (wxString *) &arg4_defvalue ;
7634 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7635 wxFont *result;
7636 bool temp4 = False ;
7637 PyObject * obj0 = 0 ;
7638 PyObject * obj1 = 0 ;
7639 PyObject * obj2 = 0 ;
7640 PyObject * obj3 = 0 ;
7641 PyObject * obj4 = 0 ;
7642 char *kwnames[] = {
7643 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7644 };
7645
7646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7647 arg1 = (int) SWIG_AsInt(obj0);
7648 if (PyErr_Occurred()) SWIG_fail;
7649 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
7650 if (PyErr_Occurred()) SWIG_fail;
7651 if (obj2) {
7652 arg3 = (int) SWIG_AsInt(obj2);
7653 if (PyErr_Occurred()) SWIG_fail;
7654 }
7655 if (obj3) {
7656 {
7657 arg4 = wxString_in_helper(obj3);
7658 if (arg4 == NULL) SWIG_fail;
7659 temp4 = True;
7660 }
7661 }
7662 if (obj4) {
7663 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
7664 if (PyErr_Occurred()) SWIG_fail;
7665 }
7666 {
7667 PyThreadState* __tstate = wxPyBeginAllowThreads();
7668 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7669
7670 wxPyEndAllowThreads(__tstate);
7671 if (PyErr_Occurred()) SWIG_fail;
7672 }
7673 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7674 {
7675 if (temp4)
7676 delete arg4;
7677 }
7678 return resultobj;
7679 fail:
7680 {
7681 if (temp4)
7682 delete arg4;
7683 }
7684 return NULL;
7685 }
7686
7687
7688 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7689 PyObject *resultobj;
7690 wxFont *arg1 = (wxFont *) 0 ;
7691 bool result;
7692 PyObject * obj0 = 0 ;
7693 char *kwnames[] = {
7694 (char *) "self", NULL
7695 };
7696
7697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7700 {
7701 PyThreadState* __tstate = wxPyBeginAllowThreads();
7702 result = (bool)((wxFont const *)arg1)->Ok();
7703
7704 wxPyEndAllowThreads(__tstate);
7705 if (PyErr_Occurred()) SWIG_fail;
7706 }
7707 {
7708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7709 }
7710 return resultobj;
7711 fail:
7712 return NULL;
7713 }
7714
7715
7716 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7717 PyObject *resultobj;
7718 wxFont *arg1 = (wxFont *) 0 ;
7719 wxFont *arg2 = (wxFont *) 0 ;
7720 bool result;
7721 PyObject * obj0 = 0 ;
7722 PyObject * obj1 = 0 ;
7723 char *kwnames[] = {
7724 (char *) "self",(char *) "other", NULL
7725 };
7726
7727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7730 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7732 {
7733 PyThreadState* __tstate = wxPyBeginAllowThreads();
7734 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
7735
7736 wxPyEndAllowThreads(__tstate);
7737 if (PyErr_Occurred()) SWIG_fail;
7738 }
7739 {
7740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7741 }
7742 return resultobj;
7743 fail:
7744 return NULL;
7745 }
7746
7747
7748 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7749 PyObject *resultobj;
7750 wxFont *arg1 = (wxFont *) 0 ;
7751 wxFont *arg2 = (wxFont *) 0 ;
7752 bool result;
7753 PyObject * obj0 = 0 ;
7754 PyObject * obj1 = 0 ;
7755 char *kwnames[] = {
7756 (char *) "self",(char *) "other", NULL
7757 };
7758
7759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7762 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7764 {
7765 PyThreadState* __tstate = wxPyBeginAllowThreads();
7766 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
7767
7768 wxPyEndAllowThreads(__tstate);
7769 if (PyErr_Occurred()) SWIG_fail;
7770 }
7771 {
7772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7773 }
7774 return resultobj;
7775 fail:
7776 return NULL;
7777 }
7778
7779
7780 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7781 PyObject *resultobj;
7782 wxFont *arg1 = (wxFont *) 0 ;
7783 int result;
7784 PyObject * obj0 = 0 ;
7785 char *kwnames[] = {
7786 (char *) "self", NULL
7787 };
7788
7789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7792 {
7793 PyThreadState* __tstate = wxPyBeginAllowThreads();
7794 result = (int)((wxFont const *)arg1)->GetPointSize();
7795
7796 wxPyEndAllowThreads(__tstate);
7797 if (PyErr_Occurred()) SWIG_fail;
7798 }
7799 resultobj = SWIG_FromInt((int)result);
7800 return resultobj;
7801 fail:
7802 return NULL;
7803 }
7804
7805
7806 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7807 PyObject *resultobj;
7808 wxFont *arg1 = (wxFont *) 0 ;
7809 int result;
7810 PyObject * obj0 = 0 ;
7811 char *kwnames[] = {
7812 (char *) "self", NULL
7813 };
7814
7815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
7816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7818 {
7819 PyThreadState* __tstate = wxPyBeginAllowThreads();
7820 result = (int)((wxFont const *)arg1)->GetFamily();
7821
7822 wxPyEndAllowThreads(__tstate);
7823 if (PyErr_Occurred()) SWIG_fail;
7824 }
7825 resultobj = SWIG_FromInt((int)result);
7826 return resultobj;
7827 fail:
7828 return NULL;
7829 }
7830
7831
7832 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7833 PyObject *resultobj;
7834 wxFont *arg1 = (wxFont *) 0 ;
7835 int result;
7836 PyObject * obj0 = 0 ;
7837 char *kwnames[] = {
7838 (char *) "self", NULL
7839 };
7840
7841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
7842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7844 {
7845 PyThreadState* __tstate = wxPyBeginAllowThreads();
7846 result = (int)((wxFont const *)arg1)->GetStyle();
7847
7848 wxPyEndAllowThreads(__tstate);
7849 if (PyErr_Occurred()) SWIG_fail;
7850 }
7851 resultobj = SWIG_FromInt((int)result);
7852 return resultobj;
7853 fail:
7854 return NULL;
7855 }
7856
7857
7858 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7859 PyObject *resultobj;
7860 wxFont *arg1 = (wxFont *) 0 ;
7861 int result;
7862 PyObject * obj0 = 0 ;
7863 char *kwnames[] = {
7864 (char *) "self", NULL
7865 };
7866
7867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
7868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7870 {
7871 PyThreadState* __tstate = wxPyBeginAllowThreads();
7872 result = (int)((wxFont const *)arg1)->GetWeight();
7873
7874 wxPyEndAllowThreads(__tstate);
7875 if (PyErr_Occurred()) SWIG_fail;
7876 }
7877 resultobj = SWIG_FromInt((int)result);
7878 return resultobj;
7879 fail:
7880 return NULL;
7881 }
7882
7883
7884 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7885 PyObject *resultobj;
7886 wxFont *arg1 = (wxFont *) 0 ;
7887 bool result;
7888 PyObject * obj0 = 0 ;
7889 char *kwnames[] = {
7890 (char *) "self", NULL
7891 };
7892
7893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
7894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7896 {
7897 PyThreadState* __tstate = wxPyBeginAllowThreads();
7898 result = (bool)((wxFont const *)arg1)->GetUnderlined();
7899
7900 wxPyEndAllowThreads(__tstate);
7901 if (PyErr_Occurred()) SWIG_fail;
7902 }
7903 {
7904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7905 }
7906 return resultobj;
7907 fail:
7908 return NULL;
7909 }
7910
7911
7912 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7913 PyObject *resultobj;
7914 wxFont *arg1 = (wxFont *) 0 ;
7915 wxString result;
7916 PyObject * obj0 = 0 ;
7917 char *kwnames[] = {
7918 (char *) "self", NULL
7919 };
7920
7921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
7922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7924 {
7925 PyThreadState* __tstate = wxPyBeginAllowThreads();
7926 result = ((wxFont const *)arg1)->GetFaceName();
7927
7928 wxPyEndAllowThreads(__tstate);
7929 if (PyErr_Occurred()) SWIG_fail;
7930 }
7931 {
7932 #if wxUSE_UNICODE
7933 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7934 #else
7935 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7936 #endif
7937 }
7938 return resultobj;
7939 fail:
7940 return NULL;
7941 }
7942
7943
7944 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7945 PyObject *resultobj;
7946 wxFont *arg1 = (wxFont *) 0 ;
7947 int result;
7948 PyObject * obj0 = 0 ;
7949 char *kwnames[] = {
7950 (char *) "self", NULL
7951 };
7952
7953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
7954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7956 {
7957 PyThreadState* __tstate = wxPyBeginAllowThreads();
7958 result = (int)((wxFont const *)arg1)->GetEncoding();
7959
7960 wxPyEndAllowThreads(__tstate);
7961 if (PyErr_Occurred()) SWIG_fail;
7962 }
7963 resultobj = SWIG_FromInt((int)result);
7964 return resultobj;
7965 fail:
7966 return NULL;
7967 }
7968
7969
7970 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7971 PyObject *resultobj;
7972 wxFont *arg1 = (wxFont *) 0 ;
7973 wxNativeFontInfo *result;
7974 PyObject * obj0 = 0 ;
7975 char *kwnames[] = {
7976 (char *) "self", NULL
7977 };
7978
7979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
7980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7982 {
7983 PyThreadState* __tstate = wxPyBeginAllowThreads();
7984 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
7985
7986 wxPyEndAllowThreads(__tstate);
7987 if (PyErr_Occurred()) SWIG_fail;
7988 }
7989 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
7990 return resultobj;
7991 fail:
7992 return NULL;
7993 }
7994
7995
7996 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
7997 PyObject *resultobj;
7998 wxFont *arg1 = (wxFont *) 0 ;
7999 bool result;
8000 PyObject * obj0 = 0 ;
8001 char *kwnames[] = {
8002 (char *) "self", NULL
8003 };
8004
8005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8008 {
8009 PyThreadState* __tstate = wxPyBeginAllowThreads();
8010 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8011
8012 wxPyEndAllowThreads(__tstate);
8013 if (PyErr_Occurred()) SWIG_fail;
8014 }
8015 {
8016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8017 }
8018 return resultobj;
8019 fail:
8020 return NULL;
8021 }
8022
8023
8024 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8025 PyObject *resultobj;
8026 wxFont *arg1 = (wxFont *) 0 ;
8027 wxString result;
8028 PyObject * obj0 = 0 ;
8029 char *kwnames[] = {
8030 (char *) "self", NULL
8031 };
8032
8033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8036 {
8037 PyThreadState* __tstate = wxPyBeginAllowThreads();
8038 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8039
8040 wxPyEndAllowThreads(__tstate);
8041 if (PyErr_Occurred()) SWIG_fail;
8042 }
8043 {
8044 #if wxUSE_UNICODE
8045 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8046 #else
8047 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8048 #endif
8049 }
8050 return resultobj;
8051 fail:
8052 return NULL;
8053 }
8054
8055
8056 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8057 PyObject *resultobj;
8058 wxFont *arg1 = (wxFont *) 0 ;
8059 wxString result;
8060 PyObject * obj0 = 0 ;
8061 char *kwnames[] = {
8062 (char *) "self", NULL
8063 };
8064
8065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8068 {
8069 PyThreadState* __tstate = wxPyBeginAllowThreads();
8070 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8071
8072 wxPyEndAllowThreads(__tstate);
8073 if (PyErr_Occurred()) SWIG_fail;
8074 }
8075 {
8076 #if wxUSE_UNICODE
8077 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8078 #else
8079 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8080 #endif
8081 }
8082 return resultobj;
8083 fail:
8084 return NULL;
8085 }
8086
8087
8088 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8089 PyObject *resultobj;
8090 wxFont *arg1 = (wxFont *) 0 ;
8091 int arg2 ;
8092 PyObject * obj0 = 0 ;
8093 PyObject * obj1 = 0 ;
8094 char *kwnames[] = {
8095 (char *) "self",(char *) "pointSize", NULL
8096 };
8097
8098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8101 arg2 = (int) SWIG_AsInt(obj1);
8102 if (PyErr_Occurred()) SWIG_fail;
8103 {
8104 PyThreadState* __tstate = wxPyBeginAllowThreads();
8105 (arg1)->SetPointSize(arg2);
8106
8107 wxPyEndAllowThreads(__tstate);
8108 if (PyErr_Occurred()) SWIG_fail;
8109 }
8110 Py_INCREF(Py_None); resultobj = Py_None;
8111 return resultobj;
8112 fail:
8113 return NULL;
8114 }
8115
8116
8117 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8118 PyObject *resultobj;
8119 wxFont *arg1 = (wxFont *) 0 ;
8120 int arg2 ;
8121 PyObject * obj0 = 0 ;
8122 PyObject * obj1 = 0 ;
8123 char *kwnames[] = {
8124 (char *) "self",(char *) "family", NULL
8125 };
8126
8127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8130 arg2 = (int) SWIG_AsInt(obj1);
8131 if (PyErr_Occurred()) SWIG_fail;
8132 {
8133 PyThreadState* __tstate = wxPyBeginAllowThreads();
8134 (arg1)->SetFamily(arg2);
8135
8136 wxPyEndAllowThreads(__tstate);
8137 if (PyErr_Occurred()) SWIG_fail;
8138 }
8139 Py_INCREF(Py_None); resultobj = Py_None;
8140 return resultobj;
8141 fail:
8142 return NULL;
8143 }
8144
8145
8146 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8147 PyObject *resultobj;
8148 wxFont *arg1 = (wxFont *) 0 ;
8149 int arg2 ;
8150 PyObject * obj0 = 0 ;
8151 PyObject * obj1 = 0 ;
8152 char *kwnames[] = {
8153 (char *) "self",(char *) "style", NULL
8154 };
8155
8156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8159 arg2 = (int) SWIG_AsInt(obj1);
8160 if (PyErr_Occurred()) SWIG_fail;
8161 {
8162 PyThreadState* __tstate = wxPyBeginAllowThreads();
8163 (arg1)->SetStyle(arg2);
8164
8165 wxPyEndAllowThreads(__tstate);
8166 if (PyErr_Occurred()) SWIG_fail;
8167 }
8168 Py_INCREF(Py_None); resultobj = Py_None;
8169 return resultobj;
8170 fail:
8171 return NULL;
8172 }
8173
8174
8175 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8176 PyObject *resultobj;
8177 wxFont *arg1 = (wxFont *) 0 ;
8178 int arg2 ;
8179 PyObject * obj0 = 0 ;
8180 PyObject * obj1 = 0 ;
8181 char *kwnames[] = {
8182 (char *) "self",(char *) "weight", NULL
8183 };
8184
8185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8188 arg2 = (int) SWIG_AsInt(obj1);
8189 if (PyErr_Occurred()) SWIG_fail;
8190 {
8191 PyThreadState* __tstate = wxPyBeginAllowThreads();
8192 (arg1)->SetWeight(arg2);
8193
8194 wxPyEndAllowThreads(__tstate);
8195 if (PyErr_Occurred()) SWIG_fail;
8196 }
8197 Py_INCREF(Py_None); resultobj = Py_None;
8198 return resultobj;
8199 fail:
8200 return NULL;
8201 }
8202
8203
8204 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8205 PyObject *resultobj;
8206 wxFont *arg1 = (wxFont *) 0 ;
8207 wxString *arg2 = 0 ;
8208 bool temp2 = False ;
8209 PyObject * obj0 = 0 ;
8210 PyObject * obj1 = 0 ;
8211 char *kwnames[] = {
8212 (char *) "self",(char *) "faceName", NULL
8213 };
8214
8215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8218 {
8219 arg2 = wxString_in_helper(obj1);
8220 if (arg2 == NULL) SWIG_fail;
8221 temp2 = True;
8222 }
8223 {
8224 PyThreadState* __tstate = wxPyBeginAllowThreads();
8225 (arg1)->SetFaceName((wxString const &)*arg2);
8226
8227 wxPyEndAllowThreads(__tstate);
8228 if (PyErr_Occurred()) SWIG_fail;
8229 }
8230 Py_INCREF(Py_None); resultobj = Py_None;
8231 {
8232 if (temp2)
8233 delete arg2;
8234 }
8235 return resultobj;
8236 fail:
8237 {
8238 if (temp2)
8239 delete arg2;
8240 }
8241 return NULL;
8242 }
8243
8244
8245 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8246 PyObject *resultobj;
8247 wxFont *arg1 = (wxFont *) 0 ;
8248 bool arg2 ;
8249 PyObject * obj0 = 0 ;
8250 PyObject * obj1 = 0 ;
8251 char *kwnames[] = {
8252 (char *) "self",(char *) "underlined", NULL
8253 };
8254
8255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8258 arg2 = (bool) SWIG_AsBool(obj1);
8259 if (PyErr_Occurred()) SWIG_fail;
8260 {
8261 PyThreadState* __tstate = wxPyBeginAllowThreads();
8262 (arg1)->SetUnderlined(arg2);
8263
8264 wxPyEndAllowThreads(__tstate);
8265 if (PyErr_Occurred()) SWIG_fail;
8266 }
8267 Py_INCREF(Py_None); resultobj = Py_None;
8268 return resultobj;
8269 fail:
8270 return NULL;
8271 }
8272
8273
8274 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8275 PyObject *resultobj;
8276 wxFont *arg1 = (wxFont *) 0 ;
8277 int arg2 ;
8278 PyObject * obj0 = 0 ;
8279 PyObject * obj1 = 0 ;
8280 char *kwnames[] = {
8281 (char *) "self",(char *) "encoding", NULL
8282 };
8283
8284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8287 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8288 if (PyErr_Occurred()) SWIG_fail;
8289 {
8290 PyThreadState* __tstate = wxPyBeginAllowThreads();
8291 (arg1)->SetEncoding((wxFontEncoding )arg2);
8292
8293 wxPyEndAllowThreads(__tstate);
8294 if (PyErr_Occurred()) SWIG_fail;
8295 }
8296 Py_INCREF(Py_None); resultobj = Py_None;
8297 return resultobj;
8298 fail:
8299 return NULL;
8300 }
8301
8302
8303 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8304 PyObject *resultobj;
8305 wxFont *arg1 = (wxFont *) 0 ;
8306 wxNativeFontInfo *arg2 = 0 ;
8307 PyObject * obj0 = 0 ;
8308 PyObject * obj1 = 0 ;
8309 char *kwnames[] = {
8310 (char *) "self",(char *) "info", NULL
8311 };
8312
8313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8316 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8317 SWIG_POINTER_EXCEPTION | 0)) == -1)
8318 SWIG_fail;
8319 if (arg2 == NULL) {
8320 PyErr_SetString(PyExc_TypeError,"null reference");
8321 SWIG_fail;
8322 }
8323 {
8324 PyThreadState* __tstate = wxPyBeginAllowThreads();
8325 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8326
8327 wxPyEndAllowThreads(__tstate);
8328 if (PyErr_Occurred()) SWIG_fail;
8329 }
8330 Py_INCREF(Py_None); resultobj = Py_None;
8331 return resultobj;
8332 fail:
8333 return NULL;
8334 }
8335
8336
8337 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8338 PyObject *resultobj;
8339 wxFont *arg1 = (wxFont *) 0 ;
8340 wxString *arg2 = 0 ;
8341 bool temp2 = False ;
8342 PyObject * obj0 = 0 ;
8343 PyObject * obj1 = 0 ;
8344 char *kwnames[] = {
8345 (char *) "self",(char *) "info", NULL
8346 };
8347
8348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8351 {
8352 arg2 = wxString_in_helper(obj1);
8353 if (arg2 == NULL) SWIG_fail;
8354 temp2 = True;
8355 }
8356 {
8357 PyThreadState* __tstate = wxPyBeginAllowThreads();
8358 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8359
8360 wxPyEndAllowThreads(__tstate);
8361 if (PyErr_Occurred()) SWIG_fail;
8362 }
8363 Py_INCREF(Py_None); resultobj = Py_None;
8364 {
8365 if (temp2)
8366 delete arg2;
8367 }
8368 return resultobj;
8369 fail:
8370 {
8371 if (temp2)
8372 delete arg2;
8373 }
8374 return NULL;
8375 }
8376
8377
8378 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8379 PyObject *resultobj;
8380 wxFont *arg1 = (wxFont *) 0 ;
8381 wxString *arg2 = 0 ;
8382 bool temp2 = False ;
8383 PyObject * obj0 = 0 ;
8384 PyObject * obj1 = 0 ;
8385 char *kwnames[] = {
8386 (char *) "self",(char *) "info", NULL
8387 };
8388
8389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8392 {
8393 arg2 = wxString_in_helper(obj1);
8394 if (arg2 == NULL) SWIG_fail;
8395 temp2 = True;
8396 }
8397 {
8398 PyThreadState* __tstate = wxPyBeginAllowThreads();
8399 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8400
8401 wxPyEndAllowThreads(__tstate);
8402 if (PyErr_Occurred()) SWIG_fail;
8403 }
8404 Py_INCREF(Py_None); resultobj = Py_None;
8405 {
8406 if (temp2)
8407 delete arg2;
8408 }
8409 return resultobj;
8410 fail:
8411 {
8412 if (temp2)
8413 delete arg2;
8414 }
8415 return NULL;
8416 }
8417
8418
8419 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8420 PyObject *resultobj;
8421 wxFont *arg1 = (wxFont *) 0 ;
8422 wxString result;
8423 PyObject * obj0 = 0 ;
8424 char *kwnames[] = {
8425 (char *) "self", NULL
8426 };
8427
8428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8431 {
8432 PyThreadState* __tstate = wxPyBeginAllowThreads();
8433 result = ((wxFont const *)arg1)->GetFamilyString();
8434
8435 wxPyEndAllowThreads(__tstate);
8436 if (PyErr_Occurred()) SWIG_fail;
8437 }
8438 {
8439 #if wxUSE_UNICODE
8440 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8441 #else
8442 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8443 #endif
8444 }
8445 return resultobj;
8446 fail:
8447 return NULL;
8448 }
8449
8450
8451 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8452 PyObject *resultobj;
8453 wxFont *arg1 = (wxFont *) 0 ;
8454 wxString result;
8455 PyObject * obj0 = 0 ;
8456 char *kwnames[] = {
8457 (char *) "self", NULL
8458 };
8459
8460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8463 {
8464 PyThreadState* __tstate = wxPyBeginAllowThreads();
8465 result = ((wxFont const *)arg1)->GetStyleString();
8466
8467 wxPyEndAllowThreads(__tstate);
8468 if (PyErr_Occurred()) SWIG_fail;
8469 }
8470 {
8471 #if wxUSE_UNICODE
8472 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8473 #else
8474 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8475 #endif
8476 }
8477 return resultobj;
8478 fail:
8479 return NULL;
8480 }
8481
8482
8483 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8484 PyObject *resultobj;
8485 wxFont *arg1 = (wxFont *) 0 ;
8486 wxString result;
8487 PyObject * obj0 = 0 ;
8488 char *kwnames[] = {
8489 (char *) "self", NULL
8490 };
8491
8492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8495 {
8496 PyThreadState* __tstate = wxPyBeginAllowThreads();
8497 result = ((wxFont const *)arg1)->GetWeightString();
8498
8499 wxPyEndAllowThreads(__tstate);
8500 if (PyErr_Occurred()) SWIG_fail;
8501 }
8502 {
8503 #if wxUSE_UNICODE
8504 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8505 #else
8506 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8507 #endif
8508 }
8509 return resultobj;
8510 fail:
8511 return NULL;
8512 }
8513
8514
8515 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8516 PyObject *resultobj;
8517 wxFont *arg1 = (wxFont *) 0 ;
8518 bool arg2 = (bool) True ;
8519 PyObject * obj0 = 0 ;
8520 PyObject * obj1 = 0 ;
8521 char *kwnames[] = {
8522 (char *) "self",(char *) "no", NULL
8523 };
8524
8525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8528 if (obj1) {
8529 arg2 = (bool) SWIG_AsBool(obj1);
8530 if (PyErr_Occurred()) SWIG_fail;
8531 }
8532 {
8533 PyThreadState* __tstate = wxPyBeginAllowThreads();
8534 (arg1)->SetNoAntiAliasing(arg2);
8535
8536 wxPyEndAllowThreads(__tstate);
8537 if (PyErr_Occurred()) SWIG_fail;
8538 }
8539 Py_INCREF(Py_None); resultobj = Py_None;
8540 return resultobj;
8541 fail:
8542 return NULL;
8543 }
8544
8545
8546 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8547 PyObject *resultobj;
8548 wxFont *arg1 = (wxFont *) 0 ;
8549 bool result;
8550 PyObject * obj0 = 0 ;
8551 char *kwnames[] = {
8552 (char *) "self", NULL
8553 };
8554
8555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8558 {
8559 PyThreadState* __tstate = wxPyBeginAllowThreads();
8560 result = (bool)(arg1)->GetNoAntiAliasing();
8561
8562 wxPyEndAllowThreads(__tstate);
8563 if (PyErr_Occurred()) SWIG_fail;
8564 }
8565 {
8566 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8567 }
8568 return resultobj;
8569 fail:
8570 return NULL;
8571 }
8572
8573
8574 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8575 PyObject *resultobj;
8576 int result;
8577 char *kwnames[] = {
8578 NULL
8579 };
8580
8581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8582 {
8583 PyThreadState* __tstate = wxPyBeginAllowThreads();
8584 result = (int)wxFont::GetDefaultEncoding();
8585
8586 wxPyEndAllowThreads(__tstate);
8587 if (PyErr_Occurred()) SWIG_fail;
8588 }
8589 resultobj = SWIG_FromInt((int)result);
8590 return resultobj;
8591 fail:
8592 return NULL;
8593 }
8594
8595
8596 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8597 PyObject *resultobj;
8598 int arg1 ;
8599 PyObject * obj0 = 0 ;
8600 char *kwnames[] = {
8601 (char *) "encoding", NULL
8602 };
8603
8604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8605 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
8606 if (PyErr_Occurred()) SWIG_fail;
8607 {
8608 PyThreadState* __tstate = wxPyBeginAllowThreads();
8609 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8610
8611 wxPyEndAllowThreads(__tstate);
8612 if (PyErr_Occurred()) SWIG_fail;
8613 }
8614 Py_INCREF(Py_None); resultobj = Py_None;
8615 return resultobj;
8616 fail:
8617 return NULL;
8618 }
8619
8620
8621 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8622 PyObject *obj;
8623 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8624 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8625 Py_INCREF(obj);
8626 return Py_BuildValue((char *)"");
8627 }
8628 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8629 PyObject *resultobj;
8630 wxPyFontEnumerator *result;
8631 char *kwnames[] = {
8632 NULL
8633 };
8634
8635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8636 {
8637 PyThreadState* __tstate = wxPyBeginAllowThreads();
8638 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8639
8640 wxPyEndAllowThreads(__tstate);
8641 if (PyErr_Occurred()) SWIG_fail;
8642 }
8643 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
8644 return resultobj;
8645 fail:
8646 return NULL;
8647 }
8648
8649
8650 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8651 PyObject *resultobj;
8652 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8653 PyObject * obj0 = 0 ;
8654 char *kwnames[] = {
8655 (char *) "self", NULL
8656 };
8657
8658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8661 {
8662 PyThreadState* __tstate = wxPyBeginAllowThreads();
8663 delete arg1;
8664
8665 wxPyEndAllowThreads(__tstate);
8666 if (PyErr_Occurred()) SWIG_fail;
8667 }
8668 Py_INCREF(Py_None); resultobj = Py_None;
8669 return resultobj;
8670 fail:
8671 return NULL;
8672 }
8673
8674
8675 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8676 PyObject *resultobj;
8677 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8678 PyObject *arg2 = (PyObject *) 0 ;
8679 PyObject *arg3 = (PyObject *) 0 ;
8680 bool arg4 ;
8681 PyObject * obj0 = 0 ;
8682 PyObject * obj1 = 0 ;
8683 PyObject * obj2 = 0 ;
8684 PyObject * obj3 = 0 ;
8685 char *kwnames[] = {
8686 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8687 };
8688
8689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8692 arg2 = obj1;
8693 arg3 = obj2;
8694 arg4 = (bool) SWIG_AsBool(obj3);
8695 if (PyErr_Occurred()) SWIG_fail;
8696 {
8697 PyThreadState* __tstate = wxPyBeginAllowThreads();
8698 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8699
8700 wxPyEndAllowThreads(__tstate);
8701 if (PyErr_Occurred()) SWIG_fail;
8702 }
8703 Py_INCREF(Py_None); resultobj = Py_None;
8704 return resultobj;
8705 fail:
8706 return NULL;
8707 }
8708
8709
8710 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8711 PyObject *resultobj;
8712 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8713 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8714 bool arg3 = (bool) False ;
8715 bool result;
8716 PyObject * obj0 = 0 ;
8717 PyObject * obj1 = 0 ;
8718 PyObject * obj2 = 0 ;
8719 char *kwnames[] = {
8720 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8721 };
8722
8723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8726 if (obj1) {
8727 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8728 if (PyErr_Occurred()) SWIG_fail;
8729 }
8730 if (obj2) {
8731 arg3 = (bool) SWIG_AsBool(obj2);
8732 if (PyErr_Occurred()) SWIG_fail;
8733 }
8734 {
8735 PyThreadState* __tstate = wxPyBeginAllowThreads();
8736 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8737
8738 wxPyEndAllowThreads(__tstate);
8739 if (PyErr_Occurred()) SWIG_fail;
8740 }
8741 {
8742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8743 }
8744 return resultobj;
8745 fail:
8746 return NULL;
8747 }
8748
8749
8750 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8751 PyObject *resultobj;
8752 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8753 wxString const &arg2_defvalue = wxPyEmptyString ;
8754 wxString *arg2 = (wxString *) &arg2_defvalue ;
8755 bool result;
8756 bool temp2 = False ;
8757 PyObject * obj0 = 0 ;
8758 PyObject * obj1 = 0 ;
8759 char *kwnames[] = {
8760 (char *) "self",(char *) "facename", NULL
8761 };
8762
8763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8766 if (obj1) {
8767 {
8768 arg2 = wxString_in_helper(obj1);
8769 if (arg2 == NULL) SWIG_fail;
8770 temp2 = True;
8771 }
8772 }
8773 {
8774 PyThreadState* __tstate = wxPyBeginAllowThreads();
8775 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8776
8777 wxPyEndAllowThreads(__tstate);
8778 if (PyErr_Occurred()) SWIG_fail;
8779 }
8780 {
8781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8782 }
8783 {
8784 if (temp2)
8785 delete arg2;
8786 }
8787 return resultobj;
8788 fail:
8789 {
8790 if (temp2)
8791 delete arg2;
8792 }
8793 return NULL;
8794 }
8795
8796
8797 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8798 PyObject *resultobj;
8799 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8800 PyObject *result;
8801 PyObject * obj0 = 0 ;
8802 char *kwnames[] = {
8803 (char *) "self", NULL
8804 };
8805
8806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
8807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8809 {
8810 PyThreadState* __tstate = wxPyBeginAllowThreads();
8811 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8812
8813 wxPyEndAllowThreads(__tstate);
8814 if (PyErr_Occurred()) SWIG_fail;
8815 }
8816 resultobj = result;
8817 return resultobj;
8818 fail:
8819 return NULL;
8820 }
8821
8822
8823 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8824 PyObject *resultobj;
8825 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8826 PyObject *result;
8827 PyObject * obj0 = 0 ;
8828 char *kwnames[] = {
8829 (char *) "self", NULL
8830 };
8831
8832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
8833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8835 {
8836 PyThreadState* __tstate = wxPyBeginAllowThreads();
8837 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
8838
8839 wxPyEndAllowThreads(__tstate);
8840 if (PyErr_Occurred()) SWIG_fail;
8841 }
8842 resultobj = result;
8843 return resultobj;
8844 fail:
8845 return NULL;
8846 }
8847
8848
8849 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
8850 PyObject *obj;
8851 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8852 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
8853 Py_INCREF(obj);
8854 return Py_BuildValue((char *)"");
8855 }
8856 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8857 PyObject *resultobj;
8858 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8859 int arg2 ;
8860 PyObject * obj0 = 0 ;
8861 PyObject * obj1 = 0 ;
8862 char *kwnames[] = {
8863 (char *) "self",(char *) "Language", NULL
8864 };
8865
8866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
8867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8869 arg2 = (int) SWIG_AsInt(obj1);
8870 if (PyErr_Occurred()) SWIG_fail;
8871 if (arg1) (arg1)->Language = arg2;
8872
8873 Py_INCREF(Py_None); resultobj = Py_None;
8874 return resultobj;
8875 fail:
8876 return NULL;
8877 }
8878
8879
8880 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8881 PyObject *resultobj;
8882 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8883 int result;
8884 PyObject * obj0 = 0 ;
8885 char *kwnames[] = {
8886 (char *) "self", NULL
8887 };
8888
8889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
8890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8892 result = (int) ((arg1)->Language);
8893
8894 resultobj = SWIG_FromInt((int)result);
8895 return resultobj;
8896 fail:
8897 return NULL;
8898 }
8899
8900
8901 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8902 PyObject *resultobj;
8903 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8904 wxString *arg2 = (wxString *) 0 ;
8905 bool temp2 = False ;
8906 PyObject * obj0 = 0 ;
8907 PyObject * obj1 = 0 ;
8908 char *kwnames[] = {
8909 (char *) "self",(char *) "CanonicalName", NULL
8910 };
8911
8912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
8913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8915 {
8916 arg2 = wxString_in_helper(obj1);
8917 if (arg2 == NULL) SWIG_fail;
8918 temp2 = True;
8919 }
8920 if (arg1) (arg1)->CanonicalName = *arg2;
8921
8922 Py_INCREF(Py_None); resultobj = Py_None;
8923 {
8924 if (temp2)
8925 delete arg2;
8926 }
8927 return resultobj;
8928 fail:
8929 {
8930 if (temp2)
8931 delete arg2;
8932 }
8933 return NULL;
8934 }
8935
8936
8937 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8938 PyObject *resultobj;
8939 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8940 wxString *result;
8941 PyObject * obj0 = 0 ;
8942 char *kwnames[] = {
8943 (char *) "self", NULL
8944 };
8945
8946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
8947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8949 result = (wxString *)& ((arg1)->CanonicalName);
8950
8951 {
8952 #if wxUSE_UNICODE
8953 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8954 #else
8955 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8956 #endif
8957 }
8958 return resultobj;
8959 fail:
8960 return NULL;
8961 }
8962
8963
8964 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8965 PyObject *resultobj;
8966 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8967 wxString *arg2 = (wxString *) 0 ;
8968 bool temp2 = False ;
8969 PyObject * obj0 = 0 ;
8970 PyObject * obj1 = 0 ;
8971 char *kwnames[] = {
8972 (char *) "self",(char *) "Description", NULL
8973 };
8974
8975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
8976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8978 {
8979 arg2 = wxString_in_helper(obj1);
8980 if (arg2 == NULL) SWIG_fail;
8981 temp2 = True;
8982 }
8983 if (arg1) (arg1)->Description = *arg2;
8984
8985 Py_INCREF(Py_None); resultobj = Py_None;
8986 {
8987 if (temp2)
8988 delete arg2;
8989 }
8990 return resultobj;
8991 fail:
8992 {
8993 if (temp2)
8994 delete arg2;
8995 }
8996 return NULL;
8997 }
8998
8999
9000 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9001 PyObject *resultobj;
9002 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9003 wxString *result;
9004 PyObject * obj0 = 0 ;
9005 char *kwnames[] = {
9006 (char *) "self", NULL
9007 };
9008
9009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9012 result = (wxString *)& ((arg1)->Description);
9013
9014 {
9015 #if wxUSE_UNICODE
9016 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9017 #else
9018 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9019 #endif
9020 }
9021 return resultobj;
9022 fail:
9023 return NULL;
9024 }
9025
9026
9027 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9028 PyObject *obj;
9029 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9030 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9031 Py_INCREF(obj);
9032 return Py_BuildValue((char *)"");
9033 }
9034 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9035 PyObject *resultobj;
9036 int arg1 = (int) wxLANGUAGE_DEFAULT ;
9037 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9038 wxLocale *result;
9039 PyObject * obj0 = 0 ;
9040 PyObject * obj1 = 0 ;
9041 char *kwnames[] = {
9042 (char *) "language",(char *) "flags", NULL
9043 };
9044
9045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9046 if (obj0) {
9047 arg1 = (int) SWIG_AsInt(obj0);
9048 if (PyErr_Occurred()) SWIG_fail;
9049 }
9050 if (obj1) {
9051 arg2 = (int) SWIG_AsInt(obj1);
9052 if (PyErr_Occurred()) SWIG_fail;
9053 }
9054 {
9055 PyThreadState* __tstate = wxPyBeginAllowThreads();
9056 result = (wxLocale *)new wxLocale(arg1,arg2);
9057
9058 wxPyEndAllowThreads(__tstate);
9059 if (PyErr_Occurred()) SWIG_fail;
9060 }
9061 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9062 return resultobj;
9063 fail:
9064 return NULL;
9065 }
9066
9067
9068 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9069 PyObject *resultobj;
9070 wxLocale *arg1 = (wxLocale *) 0 ;
9071 PyObject * obj0 = 0 ;
9072 char *kwnames[] = {
9073 (char *) "self", NULL
9074 };
9075
9076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9079 {
9080 PyThreadState* __tstate = wxPyBeginAllowThreads();
9081 delete arg1;
9082
9083 wxPyEndAllowThreads(__tstate);
9084 if (PyErr_Occurred()) SWIG_fail;
9085 }
9086 Py_INCREF(Py_None); resultobj = Py_None;
9087 return resultobj;
9088 fail:
9089 return NULL;
9090 }
9091
9092
9093 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9094 PyObject *resultobj;
9095 wxLocale *arg1 = (wxLocale *) 0 ;
9096 wxString *arg2 = 0 ;
9097 wxString const &arg3_defvalue = wxPyEmptyString ;
9098 wxString *arg3 = (wxString *) &arg3_defvalue ;
9099 wxString const &arg4_defvalue = wxPyEmptyString ;
9100 wxString *arg4 = (wxString *) &arg4_defvalue ;
9101 bool arg5 = (bool) True ;
9102 bool arg6 = (bool) False ;
9103 bool result;
9104 bool temp2 = False ;
9105 bool temp3 = False ;
9106 bool temp4 = False ;
9107 PyObject * obj0 = 0 ;
9108 PyObject * obj1 = 0 ;
9109 PyObject * obj2 = 0 ;
9110 PyObject * obj3 = 0 ;
9111 PyObject * obj4 = 0 ;
9112 PyObject * obj5 = 0 ;
9113 char *kwnames[] = {
9114 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9115 };
9116
9117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9120 {
9121 arg2 = wxString_in_helper(obj1);
9122 if (arg2 == NULL) SWIG_fail;
9123 temp2 = True;
9124 }
9125 if (obj2) {
9126 {
9127 arg3 = wxString_in_helper(obj2);
9128 if (arg3 == NULL) SWIG_fail;
9129 temp3 = True;
9130 }
9131 }
9132 if (obj3) {
9133 {
9134 arg4 = wxString_in_helper(obj3);
9135 if (arg4 == NULL) SWIG_fail;
9136 temp4 = True;
9137 }
9138 }
9139 if (obj4) {
9140 arg5 = (bool) SWIG_AsBool(obj4);
9141 if (PyErr_Occurred()) SWIG_fail;
9142 }
9143 if (obj5) {
9144 arg6 = (bool) SWIG_AsBool(obj5);
9145 if (PyErr_Occurred()) SWIG_fail;
9146 }
9147 {
9148 PyThreadState* __tstate = wxPyBeginAllowThreads();
9149 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9150
9151 wxPyEndAllowThreads(__tstate);
9152 if (PyErr_Occurred()) SWIG_fail;
9153 }
9154 {
9155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9156 }
9157 {
9158 if (temp2)
9159 delete arg2;
9160 }
9161 {
9162 if (temp3)
9163 delete arg3;
9164 }
9165 {
9166 if (temp4)
9167 delete arg4;
9168 }
9169 return resultobj;
9170 fail:
9171 {
9172 if (temp2)
9173 delete arg2;
9174 }
9175 {
9176 if (temp3)
9177 delete arg3;
9178 }
9179 {
9180 if (temp4)
9181 delete arg4;
9182 }
9183 return NULL;
9184 }
9185
9186
9187 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9188 PyObject *resultobj;
9189 wxLocale *arg1 = (wxLocale *) 0 ;
9190 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9191 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9192 bool result;
9193 PyObject * obj0 = 0 ;
9194 PyObject * obj1 = 0 ;
9195 PyObject * obj2 = 0 ;
9196 char *kwnames[] = {
9197 (char *) "self",(char *) "language",(char *) "flags", NULL
9198 };
9199
9200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9203 if (obj1) {
9204 arg2 = (int) SWIG_AsInt(obj1);
9205 if (PyErr_Occurred()) SWIG_fail;
9206 }
9207 if (obj2) {
9208 arg3 = (int) SWIG_AsInt(obj2);
9209 if (PyErr_Occurred()) SWIG_fail;
9210 }
9211 {
9212 PyThreadState* __tstate = wxPyBeginAllowThreads();
9213 result = (bool)(arg1)->Init(arg2,arg3);
9214
9215 wxPyEndAllowThreads(__tstate);
9216 if (PyErr_Occurred()) SWIG_fail;
9217 }
9218 {
9219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9220 }
9221 return resultobj;
9222 fail:
9223 return NULL;
9224 }
9225
9226
9227 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9228 PyObject *resultobj;
9229 int result;
9230 char *kwnames[] = {
9231 NULL
9232 };
9233
9234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9235 {
9236 PyThreadState* __tstate = wxPyBeginAllowThreads();
9237 result = (int)wxLocale::GetSystemLanguage();
9238
9239 wxPyEndAllowThreads(__tstate);
9240 if (PyErr_Occurred()) SWIG_fail;
9241 }
9242 resultobj = SWIG_FromInt((int)result);
9243 return resultobj;
9244 fail:
9245 return NULL;
9246 }
9247
9248
9249 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9250 PyObject *resultobj;
9251 int result;
9252 char *kwnames[] = {
9253 NULL
9254 };
9255
9256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9257 {
9258 PyThreadState* __tstate = wxPyBeginAllowThreads();
9259 result = (int)wxLocale::GetSystemEncoding();
9260
9261 wxPyEndAllowThreads(__tstate);
9262 if (PyErr_Occurred()) SWIG_fail;
9263 }
9264 resultobj = SWIG_FromInt((int)result);
9265 return resultobj;
9266 fail:
9267 return NULL;
9268 }
9269
9270
9271 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9272 PyObject *resultobj;
9273 wxString result;
9274 char *kwnames[] = {
9275 NULL
9276 };
9277
9278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9279 {
9280 PyThreadState* __tstate = wxPyBeginAllowThreads();
9281 result = wxLocale::GetSystemEncodingName();
9282
9283 wxPyEndAllowThreads(__tstate);
9284 if (PyErr_Occurred()) SWIG_fail;
9285 }
9286 {
9287 #if wxUSE_UNICODE
9288 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9289 #else
9290 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9291 #endif
9292 }
9293 return resultobj;
9294 fail:
9295 return NULL;
9296 }
9297
9298
9299 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9300 PyObject *resultobj;
9301 wxLocale *arg1 = (wxLocale *) 0 ;
9302 bool result;
9303 PyObject * obj0 = 0 ;
9304 char *kwnames[] = {
9305 (char *) "self", NULL
9306 };
9307
9308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9311 {
9312 PyThreadState* __tstate = wxPyBeginAllowThreads();
9313 result = (bool)((wxLocale const *)arg1)->IsOk();
9314
9315 wxPyEndAllowThreads(__tstate);
9316 if (PyErr_Occurred()) SWIG_fail;
9317 }
9318 {
9319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9320 }
9321 return resultobj;
9322 fail:
9323 return NULL;
9324 }
9325
9326
9327 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9328 PyObject *resultobj;
9329 wxLocale *arg1 = (wxLocale *) 0 ;
9330 wxString result;
9331 PyObject * obj0 = 0 ;
9332 char *kwnames[] = {
9333 (char *) "self", NULL
9334 };
9335
9336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9339 {
9340 PyThreadState* __tstate = wxPyBeginAllowThreads();
9341 result = ((wxLocale const *)arg1)->GetLocale();
9342
9343 wxPyEndAllowThreads(__tstate);
9344 if (PyErr_Occurred()) SWIG_fail;
9345 }
9346 {
9347 #if wxUSE_UNICODE
9348 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9349 #else
9350 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9351 #endif
9352 }
9353 return resultobj;
9354 fail:
9355 return NULL;
9356 }
9357
9358
9359 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9360 PyObject *resultobj;
9361 wxLocale *arg1 = (wxLocale *) 0 ;
9362 int result;
9363 PyObject * obj0 = 0 ;
9364 char *kwnames[] = {
9365 (char *) "self", NULL
9366 };
9367
9368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9371 {
9372 PyThreadState* __tstate = wxPyBeginAllowThreads();
9373 result = (int)((wxLocale const *)arg1)->GetLanguage();
9374
9375 wxPyEndAllowThreads(__tstate);
9376 if (PyErr_Occurred()) SWIG_fail;
9377 }
9378 resultobj = SWIG_FromInt((int)result);
9379 return resultobj;
9380 fail:
9381 return NULL;
9382 }
9383
9384
9385 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9386 PyObject *resultobj;
9387 wxLocale *arg1 = (wxLocale *) 0 ;
9388 wxString result;
9389 PyObject * obj0 = 0 ;
9390 char *kwnames[] = {
9391 (char *) "self", NULL
9392 };
9393
9394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9397 {
9398 PyThreadState* __tstate = wxPyBeginAllowThreads();
9399 result = ((wxLocale const *)arg1)->GetSysName();
9400
9401 wxPyEndAllowThreads(__tstate);
9402 if (PyErr_Occurred()) SWIG_fail;
9403 }
9404 {
9405 #if wxUSE_UNICODE
9406 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9407 #else
9408 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9409 #endif
9410 }
9411 return resultobj;
9412 fail:
9413 return NULL;
9414 }
9415
9416
9417 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9418 PyObject *resultobj;
9419 wxLocale *arg1 = (wxLocale *) 0 ;
9420 wxString result;
9421 PyObject * obj0 = 0 ;
9422 char *kwnames[] = {
9423 (char *) "self", NULL
9424 };
9425
9426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9429 {
9430 PyThreadState* __tstate = wxPyBeginAllowThreads();
9431 result = ((wxLocale const *)arg1)->GetCanonicalName();
9432
9433 wxPyEndAllowThreads(__tstate);
9434 if (PyErr_Occurred()) SWIG_fail;
9435 }
9436 {
9437 #if wxUSE_UNICODE
9438 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9439 #else
9440 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9441 #endif
9442 }
9443 return resultobj;
9444 fail:
9445 return NULL;
9446 }
9447
9448
9449 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9450 PyObject *resultobj;
9451 wxString *arg1 = 0 ;
9452 bool temp1 = False ;
9453 PyObject * obj0 = 0 ;
9454 char *kwnames[] = {
9455 (char *) "prefix", NULL
9456 };
9457
9458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9459 {
9460 arg1 = wxString_in_helper(obj0);
9461 if (arg1 == NULL) SWIG_fail;
9462 temp1 = True;
9463 }
9464 {
9465 PyThreadState* __tstate = wxPyBeginAllowThreads();
9466 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9467
9468 wxPyEndAllowThreads(__tstate);
9469 if (PyErr_Occurred()) SWIG_fail;
9470 }
9471 Py_INCREF(Py_None); resultobj = Py_None;
9472 {
9473 if (temp1)
9474 delete arg1;
9475 }
9476 return resultobj;
9477 fail:
9478 {
9479 if (temp1)
9480 delete arg1;
9481 }
9482 return NULL;
9483 }
9484
9485
9486 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9487 PyObject *resultobj;
9488 wxLocale *arg1 = (wxLocale *) 0 ;
9489 wxString *arg2 = 0 ;
9490 bool result;
9491 bool temp2 = False ;
9492 PyObject * obj0 = 0 ;
9493 PyObject * obj1 = 0 ;
9494 char *kwnames[] = {
9495 (char *) "self",(char *) "szDomain", NULL
9496 };
9497
9498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9501 {
9502 arg2 = wxString_in_helper(obj1);
9503 if (arg2 == NULL) SWIG_fail;
9504 temp2 = True;
9505 }
9506 {
9507 PyThreadState* __tstate = wxPyBeginAllowThreads();
9508 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9509
9510 wxPyEndAllowThreads(__tstate);
9511 if (PyErr_Occurred()) SWIG_fail;
9512 }
9513 {
9514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9515 }
9516 {
9517 if (temp2)
9518 delete arg2;
9519 }
9520 return resultobj;
9521 fail:
9522 {
9523 if (temp2)
9524 delete arg2;
9525 }
9526 return NULL;
9527 }
9528
9529
9530 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9531 PyObject *resultobj;
9532 wxLocale *arg1 = (wxLocale *) 0 ;
9533 wxString *arg2 = 0 ;
9534 bool result;
9535 bool temp2 = False ;
9536 PyObject * obj0 = 0 ;
9537 PyObject * obj1 = 0 ;
9538 char *kwnames[] = {
9539 (char *) "self",(char *) "szDomain", NULL
9540 };
9541
9542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9545 {
9546 arg2 = wxString_in_helper(obj1);
9547 if (arg2 == NULL) SWIG_fail;
9548 temp2 = True;
9549 }
9550 {
9551 PyThreadState* __tstate = wxPyBeginAllowThreads();
9552 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9553
9554 wxPyEndAllowThreads(__tstate);
9555 if (PyErr_Occurred()) SWIG_fail;
9556 }
9557 {
9558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9559 }
9560 {
9561 if (temp2)
9562 delete arg2;
9563 }
9564 return resultobj;
9565 fail:
9566 {
9567 if (temp2)
9568 delete arg2;
9569 }
9570 return NULL;
9571 }
9572
9573
9574 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9575 PyObject *resultobj;
9576 int arg1 ;
9577 wxLanguageInfo *result;
9578 PyObject * obj0 = 0 ;
9579 char *kwnames[] = {
9580 (char *) "lang", NULL
9581 };
9582
9583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9584 arg1 = (int) SWIG_AsInt(obj0);
9585 if (PyErr_Occurred()) SWIG_fail;
9586 {
9587 PyThreadState* __tstate = wxPyBeginAllowThreads();
9588 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9589
9590 wxPyEndAllowThreads(__tstate);
9591 if (PyErr_Occurred()) SWIG_fail;
9592 }
9593 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9594 return resultobj;
9595 fail:
9596 return NULL;
9597 }
9598
9599
9600 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9601 PyObject *resultobj;
9602 int arg1 ;
9603 wxString result;
9604 PyObject * obj0 = 0 ;
9605 char *kwnames[] = {
9606 (char *) "lang", NULL
9607 };
9608
9609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9610 arg1 = (int) SWIG_AsInt(obj0);
9611 if (PyErr_Occurred()) SWIG_fail;
9612 {
9613 PyThreadState* __tstate = wxPyBeginAllowThreads();
9614 result = wxLocale::GetLanguageName(arg1);
9615
9616 wxPyEndAllowThreads(__tstate);
9617 if (PyErr_Occurred()) SWIG_fail;
9618 }
9619 {
9620 #if wxUSE_UNICODE
9621 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9622 #else
9623 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9624 #endif
9625 }
9626 return resultobj;
9627 fail:
9628 return NULL;
9629 }
9630
9631
9632 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9633 PyObject *resultobj;
9634 wxString *arg1 = 0 ;
9635 wxLanguageInfo *result;
9636 bool temp1 = False ;
9637 PyObject * obj0 = 0 ;
9638 char *kwnames[] = {
9639 (char *) "locale", NULL
9640 };
9641
9642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9643 {
9644 arg1 = wxString_in_helper(obj0);
9645 if (arg1 == NULL) SWIG_fail;
9646 temp1 = True;
9647 }
9648 {
9649 PyThreadState* __tstate = wxPyBeginAllowThreads();
9650 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9651
9652 wxPyEndAllowThreads(__tstate);
9653 if (PyErr_Occurred()) SWIG_fail;
9654 }
9655 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9656 {
9657 if (temp1)
9658 delete arg1;
9659 }
9660 return resultobj;
9661 fail:
9662 {
9663 if (temp1)
9664 delete arg1;
9665 }
9666 return NULL;
9667 }
9668
9669
9670 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9671 PyObject *resultobj;
9672 wxLanguageInfo *arg1 = 0 ;
9673 PyObject * obj0 = 0 ;
9674 char *kwnames[] = {
9675 (char *) "info", NULL
9676 };
9677
9678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9680 SWIG_POINTER_EXCEPTION | 0)) == -1)
9681 SWIG_fail;
9682 if (arg1 == NULL) {
9683 PyErr_SetString(PyExc_TypeError,"null reference");
9684 SWIG_fail;
9685 }
9686 {
9687 PyThreadState* __tstate = wxPyBeginAllowThreads();
9688 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9689
9690 wxPyEndAllowThreads(__tstate);
9691 if (PyErr_Occurred()) SWIG_fail;
9692 }
9693 Py_INCREF(Py_None); resultobj = Py_None;
9694 return resultobj;
9695 fail:
9696 return NULL;
9697 }
9698
9699
9700 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9701 PyObject *resultobj;
9702 wxLocale *arg1 = (wxLocale *) 0 ;
9703 wxString *arg2 = 0 ;
9704 wxString const &arg3_defvalue = wxPyEmptyString ;
9705 wxString *arg3 = (wxString *) &arg3_defvalue ;
9706 wxString result;
9707 bool temp2 = False ;
9708 bool temp3 = False ;
9709 PyObject * obj0 = 0 ;
9710 PyObject * obj1 = 0 ;
9711 PyObject * obj2 = 0 ;
9712 char *kwnames[] = {
9713 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9714 };
9715
9716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9719 {
9720 arg2 = wxString_in_helper(obj1);
9721 if (arg2 == NULL) SWIG_fail;
9722 temp2 = True;
9723 }
9724 if (obj2) {
9725 {
9726 arg3 = wxString_in_helper(obj2);
9727 if (arg3 == NULL) SWIG_fail;
9728 temp3 = True;
9729 }
9730 }
9731 {
9732 PyThreadState* __tstate = wxPyBeginAllowThreads();
9733 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9734
9735 wxPyEndAllowThreads(__tstate);
9736 if (PyErr_Occurred()) SWIG_fail;
9737 }
9738 {
9739 #if wxUSE_UNICODE
9740 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9741 #else
9742 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9743 #endif
9744 }
9745 {
9746 if (temp2)
9747 delete arg2;
9748 }
9749 {
9750 if (temp3)
9751 delete arg3;
9752 }
9753 return resultobj;
9754 fail:
9755 {
9756 if (temp2)
9757 delete arg2;
9758 }
9759 {
9760 if (temp3)
9761 delete arg3;
9762 }
9763 return NULL;
9764 }
9765
9766
9767 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9768 PyObject *resultobj;
9769 wxLocale *arg1 = (wxLocale *) 0 ;
9770 wxString *result;
9771 PyObject * obj0 = 0 ;
9772 char *kwnames[] = {
9773 (char *) "self", NULL
9774 };
9775
9776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9779 {
9780 PyThreadState* __tstate = wxPyBeginAllowThreads();
9781 {
9782 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9783 result = (wxString *) &_result_ref;
9784 }
9785
9786 wxPyEndAllowThreads(__tstate);
9787 if (PyErr_Occurred()) SWIG_fail;
9788 }
9789 {
9790 #if wxUSE_UNICODE
9791 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9792 #else
9793 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9794 #endif
9795 }
9796 return resultobj;
9797 fail:
9798 return NULL;
9799 }
9800
9801
9802 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9803 PyObject *obj;
9804 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9805 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9806 Py_INCREF(obj);
9807 return Py_BuildValue((char *)"");
9808 }
9809 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9810 PyObject *resultobj;
9811 wxLocale *result;
9812 char *kwnames[] = {
9813 NULL
9814 };
9815
9816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9817 {
9818 PyThreadState* __tstate = wxPyBeginAllowThreads();
9819 result = (wxLocale *)wxGetLocale();
9820
9821 wxPyEndAllowThreads(__tstate);
9822 if (PyErr_Occurred()) SWIG_fail;
9823 }
9824 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
9825 return resultobj;
9826 fail:
9827 return NULL;
9828 }
9829
9830
9831 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9832 PyObject *resultobj;
9833 wxString *arg1 = 0 ;
9834 wxString result;
9835 bool temp1 = False ;
9836 PyObject * obj0 = 0 ;
9837
9838 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9839 {
9840 arg1 = wxString_in_helper(obj0);
9841 if (arg1 == NULL) SWIG_fail;
9842 temp1 = True;
9843 }
9844 {
9845 PyThreadState* __tstate = wxPyBeginAllowThreads();
9846 result = wxGetTranslation((wxString const &)*arg1);
9847
9848 wxPyEndAllowThreads(__tstate);
9849 if (PyErr_Occurred()) SWIG_fail;
9850 }
9851 {
9852 #if wxUSE_UNICODE
9853 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9854 #else
9855 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9856 #endif
9857 }
9858 {
9859 if (temp1)
9860 delete arg1;
9861 }
9862 return resultobj;
9863 fail:
9864 {
9865 if (temp1)
9866 delete arg1;
9867 }
9868 return NULL;
9869 }
9870
9871
9872 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
9873 PyObject *resultobj;
9874 wxString *arg1 = 0 ;
9875 wxString *arg2 = 0 ;
9876 size_t arg3 ;
9877 wxString result;
9878 bool temp1 = False ;
9879 bool temp2 = False ;
9880 PyObject * obj0 = 0 ;
9881 PyObject * obj1 = 0 ;
9882 PyObject * obj2 = 0 ;
9883
9884 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
9885 {
9886 arg1 = wxString_in_helper(obj0);
9887 if (arg1 == NULL) SWIG_fail;
9888 temp1 = True;
9889 }
9890 {
9891 arg2 = wxString_in_helper(obj1);
9892 if (arg2 == NULL) SWIG_fail;
9893 temp2 = True;
9894 }
9895 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
9896 if (PyErr_Occurred()) SWIG_fail;
9897 {
9898 PyThreadState* __tstate = wxPyBeginAllowThreads();
9899 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
9900
9901 wxPyEndAllowThreads(__tstate);
9902 if (PyErr_Occurred()) SWIG_fail;
9903 }
9904 {
9905 #if wxUSE_UNICODE
9906 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9907 #else
9908 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9909 #endif
9910 }
9911 {
9912 if (temp1)
9913 delete arg1;
9914 }
9915 {
9916 if (temp2)
9917 delete arg2;
9918 }
9919 return resultobj;
9920 fail:
9921 {
9922 if (temp1)
9923 delete arg1;
9924 }
9925 {
9926 if (temp2)
9927 delete arg2;
9928 }
9929 return NULL;
9930 }
9931
9932
9933 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
9934 int argc;
9935 PyObject *argv[4];
9936 int ii;
9937
9938 argc = PyObject_Length(args);
9939 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
9940 argv[ii] = PyTuple_GetItem(args,ii);
9941 }
9942 if (argc == 1) {
9943 int _v;
9944 {
9945 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9946 }
9947 if (_v) {
9948 return _wrap_GetTranslation__SWIG_0(self,args);
9949 }
9950 }
9951 if (argc == 3) {
9952 int _v;
9953 {
9954 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9955 }
9956 if (_v) {
9957 {
9958 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
9959 }
9960 if (_v) {
9961 _v = SWIG_CheckUnsignedLong(argv[2]);
9962 if (_v) {
9963 return _wrap_GetTranslation__SWIG_1(self,args);
9964 }
9965 }
9966 }
9967 }
9968
9969 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
9970 return NULL;
9971 }
9972
9973
9974 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9975 PyObject *resultobj;
9976 wxEncodingConverter *result;
9977 char *kwnames[] = {
9978 NULL
9979 };
9980
9981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
9982 {
9983 PyThreadState* __tstate = wxPyBeginAllowThreads();
9984 result = (wxEncodingConverter *)new wxEncodingConverter();
9985
9986 wxPyEndAllowThreads(__tstate);
9987 if (PyErr_Occurred()) SWIG_fail;
9988 }
9989 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
9990 return resultobj;
9991 fail:
9992 return NULL;
9993 }
9994
9995
9996 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9997 PyObject *resultobj;
9998 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9999 PyObject * obj0 = 0 ;
10000 char *kwnames[] = {
10001 (char *) "self", NULL
10002 };
10003
10004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10007 {
10008 PyThreadState* __tstate = wxPyBeginAllowThreads();
10009 delete arg1;
10010
10011 wxPyEndAllowThreads(__tstate);
10012 if (PyErr_Occurred()) SWIG_fail;
10013 }
10014 Py_INCREF(Py_None); resultobj = Py_None;
10015 return resultobj;
10016 fail:
10017 return NULL;
10018 }
10019
10020
10021 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10022 PyObject *resultobj;
10023 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10024 int arg2 ;
10025 int arg3 ;
10026 int arg4 = (int) wxCONVERT_STRICT ;
10027 bool result;
10028 PyObject * obj0 = 0 ;
10029 PyObject * obj1 = 0 ;
10030 PyObject * obj2 = 0 ;
10031 PyObject * obj3 = 0 ;
10032 char *kwnames[] = {
10033 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10034 };
10035
10036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10039 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10040 if (PyErr_Occurred()) SWIG_fail;
10041 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10042 if (PyErr_Occurred()) SWIG_fail;
10043 if (obj3) {
10044 arg4 = (int) SWIG_AsInt(obj3);
10045 if (PyErr_Occurred()) SWIG_fail;
10046 }
10047 {
10048 PyThreadState* __tstate = wxPyBeginAllowThreads();
10049 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10050
10051 wxPyEndAllowThreads(__tstate);
10052 if (PyErr_Occurred()) SWIG_fail;
10053 }
10054 {
10055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10056 }
10057 return resultobj;
10058 fail:
10059 return NULL;
10060 }
10061
10062
10063 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10064 PyObject *resultobj;
10065 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10066 wxString *arg2 = 0 ;
10067 wxString result;
10068 bool temp2 = False ;
10069 PyObject * obj0 = 0 ;
10070 PyObject * obj1 = 0 ;
10071 char *kwnames[] = {
10072 (char *) "self",(char *) "input", NULL
10073 };
10074
10075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10078 {
10079 arg2 = wxString_in_helper(obj1);
10080 if (arg2 == NULL) SWIG_fail;
10081 temp2 = True;
10082 }
10083 {
10084 PyThreadState* __tstate = wxPyBeginAllowThreads();
10085 result = (arg1)->Convert((wxString const &)*arg2);
10086
10087 wxPyEndAllowThreads(__tstate);
10088 if (PyErr_Occurred()) SWIG_fail;
10089 }
10090 {
10091 #if wxUSE_UNICODE
10092 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10093 #else
10094 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10095 #endif
10096 }
10097 {
10098 if (temp2)
10099 delete arg2;
10100 }
10101 return resultobj;
10102 fail:
10103 {
10104 if (temp2)
10105 delete arg2;
10106 }
10107 return NULL;
10108 }
10109
10110
10111 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10112 PyObject *resultobj;
10113 int arg1 ;
10114 int arg2 = (int) wxPLATFORM_CURRENT ;
10115 wxFontEncodingArray result;
10116 PyObject * obj0 = 0 ;
10117 PyObject * obj1 = 0 ;
10118 char *kwnames[] = {
10119 (char *) "enc",(char *) "platform", NULL
10120 };
10121
10122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10123 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10124 if (PyErr_Occurred()) SWIG_fail;
10125 if (obj1) {
10126 arg2 = (int) SWIG_AsInt(obj1);
10127 if (PyErr_Occurred()) SWIG_fail;
10128 }
10129 {
10130 PyThreadState* __tstate = wxPyBeginAllowThreads();
10131 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10132
10133 wxPyEndAllowThreads(__tstate);
10134 if (PyErr_Occurred()) SWIG_fail;
10135 }
10136 {
10137 resultobj = PyList_New(0);
10138 for (size_t i=0; i < (&result)->GetCount(); i++) {
10139 PyObject* number = PyInt_FromLong((&result)->Item(i));
10140 PyList_Append(resultobj, number);
10141 Py_DECREF(number);
10142 }
10143 }
10144 return resultobj;
10145 fail:
10146 return NULL;
10147 }
10148
10149
10150 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10151 PyObject *resultobj;
10152 int arg1 ;
10153 wxFontEncodingArray result;
10154 PyObject * obj0 = 0 ;
10155 char *kwnames[] = {
10156 (char *) "enc", NULL
10157 };
10158
10159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10160 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10161 if (PyErr_Occurred()) SWIG_fail;
10162 {
10163 PyThreadState* __tstate = wxPyBeginAllowThreads();
10164 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10165
10166 wxPyEndAllowThreads(__tstate);
10167 if (PyErr_Occurred()) SWIG_fail;
10168 }
10169 {
10170 resultobj = PyList_New(0);
10171 for (size_t i=0; i < (&result)->GetCount(); i++) {
10172 PyObject* number = PyInt_FromLong((&result)->Item(i));
10173 PyList_Append(resultobj, number);
10174 Py_DECREF(number);
10175 }
10176 }
10177 return resultobj;
10178 fail:
10179 return NULL;
10180 }
10181
10182
10183 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10184 PyObject *resultobj;
10185 int arg1 ;
10186 int arg2 ;
10187 bool result;
10188 PyObject * obj0 = 0 ;
10189 PyObject * obj1 = 0 ;
10190 char *kwnames[] = {
10191 (char *) "encIn",(char *) "encOut", NULL
10192 };
10193
10194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10195 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10196 if (PyErr_Occurred()) SWIG_fail;
10197 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10198 if (PyErr_Occurred()) SWIG_fail;
10199 {
10200 PyThreadState* __tstate = wxPyBeginAllowThreads();
10201 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10202
10203 wxPyEndAllowThreads(__tstate);
10204 if (PyErr_Occurred()) SWIG_fail;
10205 }
10206 {
10207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10208 }
10209 return resultobj;
10210 fail:
10211 return NULL;
10212 }
10213
10214
10215 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10216 PyObject *obj;
10217 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10218 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10219 Py_INCREF(obj);
10220 return Py_BuildValue((char *)"");
10221 }
10222 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10223 PyObject *resultobj;
10224 wxDC *arg1 = (wxDC *) 0 ;
10225 PyObject * obj0 = 0 ;
10226 char *kwnames[] = {
10227 (char *) "self", NULL
10228 };
10229
10230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10233 {
10234 PyThreadState* __tstate = wxPyBeginAllowThreads();
10235 delete arg1;
10236
10237 wxPyEndAllowThreads(__tstate);
10238 if (PyErr_Occurred()) SWIG_fail;
10239 }
10240 Py_INCREF(Py_None); resultobj = Py_None;
10241 return resultobj;
10242 fail:
10243 return NULL;
10244 }
10245
10246
10247 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10248 PyObject *resultobj;
10249 wxDC *arg1 = (wxDC *) 0 ;
10250 PyObject * obj0 = 0 ;
10251 char *kwnames[] = {
10252 (char *) "self", NULL
10253 };
10254
10255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10258 {
10259 PyThreadState* __tstate = wxPyBeginAllowThreads();
10260 (arg1)->BeginDrawing();
10261
10262 wxPyEndAllowThreads(__tstate);
10263 if (PyErr_Occurred()) SWIG_fail;
10264 }
10265 Py_INCREF(Py_None); resultobj = Py_None;
10266 return resultobj;
10267 fail:
10268 return NULL;
10269 }
10270
10271
10272 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10273 PyObject *resultobj;
10274 wxDC *arg1 = (wxDC *) 0 ;
10275 PyObject * obj0 = 0 ;
10276 char *kwnames[] = {
10277 (char *) "self", NULL
10278 };
10279
10280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10283 {
10284 PyThreadState* __tstate = wxPyBeginAllowThreads();
10285 (arg1)->EndDrawing();
10286
10287 wxPyEndAllowThreads(__tstate);
10288 if (PyErr_Occurred()) SWIG_fail;
10289 }
10290 Py_INCREF(Py_None); resultobj = Py_None;
10291 return resultobj;
10292 fail:
10293 return NULL;
10294 }
10295
10296
10297 static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10298 PyObject *resultobj;
10299 wxDC *arg1 = (wxDC *) 0 ;
10300 int arg2 ;
10301 int arg3 ;
10302 wxColour *arg4 = 0 ;
10303 int arg5 = (int) wxFLOOD_SURFACE ;
10304 bool result;
10305 wxColour temp4 ;
10306 PyObject * obj0 = 0 ;
10307 PyObject * obj1 = 0 ;
10308 PyObject * obj2 = 0 ;
10309 PyObject * obj3 = 0 ;
10310 PyObject * obj4 = 0 ;
10311 char *kwnames[] = {
10312 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10313 };
10314
10315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10318 arg2 = (int) SWIG_AsInt(obj1);
10319 if (PyErr_Occurred()) SWIG_fail;
10320 arg3 = (int) SWIG_AsInt(obj2);
10321 if (PyErr_Occurred()) SWIG_fail;
10322 {
10323 arg4 = &temp4;
10324 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10325 }
10326 if (obj4) {
10327 arg5 = (int) SWIG_AsInt(obj4);
10328 if (PyErr_Occurred()) SWIG_fail;
10329 }
10330 {
10331 PyThreadState* __tstate = wxPyBeginAllowThreads();
10332 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10333
10334 wxPyEndAllowThreads(__tstate);
10335 if (PyErr_Occurred()) SWIG_fail;
10336 }
10337 {
10338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10339 }
10340 return resultobj;
10341 fail:
10342 return NULL;
10343 }
10344
10345
10346 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
10347 PyObject *resultobj;
10348 wxDC *arg1 = (wxDC *) 0 ;
10349 wxPoint *arg2 = 0 ;
10350 wxColour *arg3 = 0 ;
10351 int arg4 = (int) wxFLOOD_SURFACE ;
10352 bool result;
10353 wxPoint temp2 ;
10354 wxColour temp3 ;
10355 PyObject * obj0 = 0 ;
10356 PyObject * obj1 = 0 ;
10357 PyObject * obj2 = 0 ;
10358 PyObject * obj3 = 0 ;
10359 char *kwnames[] = {
10360 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10361 };
10362
10363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10366 {
10367 arg2 = &temp2;
10368 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10369 }
10370 {
10371 arg3 = &temp3;
10372 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10373 }
10374 if (obj3) {
10375 arg4 = (int) SWIG_AsInt(obj3);
10376 if (PyErr_Occurred()) SWIG_fail;
10377 }
10378 {
10379 PyThreadState* __tstate = wxPyBeginAllowThreads();
10380 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10381
10382 wxPyEndAllowThreads(__tstate);
10383 if (PyErr_Occurred()) SWIG_fail;
10384 }
10385 {
10386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10387 }
10388 return resultobj;
10389 fail:
10390 return NULL;
10391 }
10392
10393
10394 static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10395 PyObject *resultobj;
10396 wxDC *arg1 = (wxDC *) 0 ;
10397 int arg2 ;
10398 int arg3 ;
10399 wxColour result;
10400 PyObject * obj0 = 0 ;
10401 PyObject * obj1 = 0 ;
10402 PyObject * obj2 = 0 ;
10403 char *kwnames[] = {
10404 (char *) "self",(char *) "x",(char *) "y", NULL
10405 };
10406
10407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10410 arg2 = (int) SWIG_AsInt(obj1);
10411 if (PyErr_Occurred()) SWIG_fail;
10412 arg3 = (int) SWIG_AsInt(obj2);
10413 if (PyErr_Occurred()) SWIG_fail;
10414 {
10415 PyThreadState* __tstate = wxPyBeginAllowThreads();
10416 result = wxDC_GetPixelXY(arg1,arg2,arg3);
10417
10418 wxPyEndAllowThreads(__tstate);
10419 if (PyErr_Occurred()) SWIG_fail;
10420 }
10421 {
10422 wxColour * resultptr;
10423 resultptr = new wxColour((wxColour &) result);
10424 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10425 }
10426 return resultobj;
10427 fail:
10428 return NULL;
10429 }
10430
10431
10432 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10433 PyObject *resultobj;
10434 wxDC *arg1 = (wxDC *) 0 ;
10435 wxPoint *arg2 = 0 ;
10436 wxColour result;
10437 wxPoint temp2 ;
10438 PyObject * obj0 = 0 ;
10439 PyObject * obj1 = 0 ;
10440 char *kwnames[] = {
10441 (char *) "self",(char *) "pt", NULL
10442 };
10443
10444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
10445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10447 {
10448 arg2 = &temp2;
10449 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10450 }
10451 {
10452 PyThreadState* __tstate = wxPyBeginAllowThreads();
10453 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
10454
10455 wxPyEndAllowThreads(__tstate);
10456 if (PyErr_Occurred()) SWIG_fail;
10457 }
10458 {
10459 wxColour * resultptr;
10460 resultptr = new wxColour((wxColour &) result);
10461 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10462 }
10463 return resultobj;
10464 fail:
10465 return NULL;
10466 }
10467
10468
10469 static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10470 PyObject *resultobj;
10471 wxDC *arg1 = (wxDC *) 0 ;
10472 int arg2 ;
10473 int arg3 ;
10474 int arg4 ;
10475 int arg5 ;
10476 PyObject * obj0 = 0 ;
10477 PyObject * obj1 = 0 ;
10478 PyObject * obj2 = 0 ;
10479 PyObject * obj3 = 0 ;
10480 PyObject * obj4 = 0 ;
10481 char *kwnames[] = {
10482 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10483 };
10484
10485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10488 arg2 = (int) SWIG_AsInt(obj1);
10489 if (PyErr_Occurred()) SWIG_fail;
10490 arg3 = (int) SWIG_AsInt(obj2);
10491 if (PyErr_Occurred()) SWIG_fail;
10492 arg4 = (int) SWIG_AsInt(obj3);
10493 if (PyErr_Occurred()) SWIG_fail;
10494 arg5 = (int) SWIG_AsInt(obj4);
10495 if (PyErr_Occurred()) SWIG_fail;
10496 {
10497 PyThreadState* __tstate = wxPyBeginAllowThreads();
10498 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10499
10500 wxPyEndAllowThreads(__tstate);
10501 if (PyErr_Occurred()) SWIG_fail;
10502 }
10503 Py_INCREF(Py_None); resultobj = Py_None;
10504 return resultobj;
10505 fail:
10506 return NULL;
10507 }
10508
10509
10510 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
10511 PyObject *resultobj;
10512 wxDC *arg1 = (wxDC *) 0 ;
10513 wxPoint *arg2 = 0 ;
10514 wxPoint *arg3 = 0 ;
10515 wxPoint temp2 ;
10516 wxPoint temp3 ;
10517 PyObject * obj0 = 0 ;
10518 PyObject * obj1 = 0 ;
10519 PyObject * obj2 = 0 ;
10520 char *kwnames[] = {
10521 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10522 };
10523
10524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
10525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10527 {
10528 arg2 = &temp2;
10529 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10530 }
10531 {
10532 arg3 = &temp3;
10533 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10534 }
10535 {
10536 PyThreadState* __tstate = wxPyBeginAllowThreads();
10537 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10538
10539 wxPyEndAllowThreads(__tstate);
10540 if (PyErr_Occurred()) SWIG_fail;
10541 }
10542 Py_INCREF(Py_None); resultobj = Py_None;
10543 return resultobj;
10544 fail:
10545 return NULL;
10546 }
10547
10548
10549 static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10550 PyObject *resultobj;
10551 wxDC *arg1 = (wxDC *) 0 ;
10552 int arg2 ;
10553 int arg3 ;
10554 PyObject * obj0 = 0 ;
10555 PyObject * obj1 = 0 ;
10556 PyObject * obj2 = 0 ;
10557 char *kwnames[] = {
10558 (char *) "self",(char *) "x",(char *) "y", NULL
10559 };
10560
10561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10564 arg2 = (int) SWIG_AsInt(obj1);
10565 if (PyErr_Occurred()) SWIG_fail;
10566 arg3 = (int) SWIG_AsInt(obj2);
10567 if (PyErr_Occurred()) SWIG_fail;
10568 {
10569 PyThreadState* __tstate = wxPyBeginAllowThreads();
10570 (arg1)->CrossHair(arg2,arg3);
10571
10572 wxPyEndAllowThreads(__tstate);
10573 if (PyErr_Occurred()) SWIG_fail;
10574 }
10575 Py_INCREF(Py_None); resultobj = Py_None;
10576 return resultobj;
10577 fail:
10578 return NULL;
10579 }
10580
10581
10582 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
10583 PyObject *resultobj;
10584 wxDC *arg1 = (wxDC *) 0 ;
10585 wxPoint *arg2 = 0 ;
10586 wxPoint temp2 ;
10587 PyObject * obj0 = 0 ;
10588 PyObject * obj1 = 0 ;
10589 char *kwnames[] = {
10590 (char *) "self",(char *) "pt", NULL
10591 };
10592
10593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
10594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10596 {
10597 arg2 = &temp2;
10598 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10599 }
10600 {
10601 PyThreadState* __tstate = wxPyBeginAllowThreads();
10602 (arg1)->CrossHair((wxPoint const &)*arg2);
10603
10604 wxPyEndAllowThreads(__tstate);
10605 if (PyErr_Occurred()) SWIG_fail;
10606 }
10607 Py_INCREF(Py_None); resultobj = Py_None;
10608 return resultobj;
10609 fail:
10610 return NULL;
10611 }
10612
10613
10614 static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10615 PyObject *resultobj;
10616 wxDC *arg1 = (wxDC *) 0 ;
10617 int arg2 ;
10618 int arg3 ;
10619 int arg4 ;
10620 int arg5 ;
10621 int arg6 ;
10622 int arg7 ;
10623 PyObject * obj0 = 0 ;
10624 PyObject * obj1 = 0 ;
10625 PyObject * obj2 = 0 ;
10626 PyObject * obj3 = 0 ;
10627 PyObject * obj4 = 0 ;
10628 PyObject * obj5 = 0 ;
10629 PyObject * obj6 = 0 ;
10630 char *kwnames[] = {
10631 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10632 };
10633
10634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10637 arg2 = (int) SWIG_AsInt(obj1);
10638 if (PyErr_Occurred()) SWIG_fail;
10639 arg3 = (int) SWIG_AsInt(obj2);
10640 if (PyErr_Occurred()) SWIG_fail;
10641 arg4 = (int) SWIG_AsInt(obj3);
10642 if (PyErr_Occurred()) SWIG_fail;
10643 arg5 = (int) SWIG_AsInt(obj4);
10644 if (PyErr_Occurred()) SWIG_fail;
10645 arg6 = (int) SWIG_AsInt(obj5);
10646 if (PyErr_Occurred()) SWIG_fail;
10647 arg7 = (int) SWIG_AsInt(obj6);
10648 if (PyErr_Occurred()) SWIG_fail;
10649 {
10650 PyThreadState* __tstate = wxPyBeginAllowThreads();
10651 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10652
10653 wxPyEndAllowThreads(__tstate);
10654 if (PyErr_Occurred()) SWIG_fail;
10655 }
10656 Py_INCREF(Py_None); resultobj = Py_None;
10657 return resultobj;
10658 fail:
10659 return NULL;
10660 }
10661
10662
10663 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10664 PyObject *resultobj;
10665 wxDC *arg1 = (wxDC *) 0 ;
10666 wxPoint *arg2 = 0 ;
10667 wxPoint *arg3 = 0 ;
10668 wxPoint *arg4 = 0 ;
10669 wxPoint temp2 ;
10670 wxPoint temp3 ;
10671 wxPoint temp4 ;
10672 PyObject * obj0 = 0 ;
10673 PyObject * obj1 = 0 ;
10674 PyObject * obj2 = 0 ;
10675 PyObject * obj3 = 0 ;
10676 char *kwnames[] = {
10677 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10678 };
10679
10680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10683 {
10684 arg2 = &temp2;
10685 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10686 }
10687 {
10688 arg3 = &temp3;
10689 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10690 }
10691 {
10692 arg4 = &temp4;
10693 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10694 }
10695 {
10696 PyThreadState* __tstate = wxPyBeginAllowThreads();
10697 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10698
10699 wxPyEndAllowThreads(__tstate);
10700 if (PyErr_Occurred()) SWIG_fail;
10701 }
10702 Py_INCREF(Py_None); resultobj = Py_None;
10703 return resultobj;
10704 fail:
10705 return NULL;
10706 }
10707
10708
10709 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10710 PyObject *resultobj;
10711 wxDC *arg1 = (wxDC *) 0 ;
10712 int arg2 ;
10713 int arg3 ;
10714 int arg4 ;
10715 int arg5 ;
10716 PyObject * obj0 = 0 ;
10717 PyObject * obj1 = 0 ;
10718 PyObject * obj2 = 0 ;
10719 PyObject * obj3 = 0 ;
10720 PyObject * obj4 = 0 ;
10721 char *kwnames[] = {
10722 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10723 };
10724
10725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10728 arg2 = (int) SWIG_AsInt(obj1);
10729 if (PyErr_Occurred()) SWIG_fail;
10730 arg3 = (int) SWIG_AsInt(obj2);
10731 if (PyErr_Occurred()) SWIG_fail;
10732 arg4 = (int) SWIG_AsInt(obj3);
10733 if (PyErr_Occurred()) SWIG_fail;
10734 arg5 = (int) SWIG_AsInt(obj4);
10735 if (PyErr_Occurred()) SWIG_fail;
10736 {
10737 PyThreadState* __tstate = wxPyBeginAllowThreads();
10738 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10739
10740 wxPyEndAllowThreads(__tstate);
10741 if (PyErr_Occurred()) SWIG_fail;
10742 }
10743 Py_INCREF(Py_None); resultobj = Py_None;
10744 return resultobj;
10745 fail:
10746 return NULL;
10747 }
10748
10749
10750 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
10751 PyObject *resultobj;
10752 wxDC *arg1 = (wxDC *) 0 ;
10753 wxRect *arg2 = 0 ;
10754 wxRect temp2 ;
10755 PyObject * obj0 = 0 ;
10756 PyObject * obj1 = 0 ;
10757 char *kwnames[] = {
10758 (char *) "self",(char *) "rect", NULL
10759 };
10760
10761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
10762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10764 {
10765 arg2 = &temp2;
10766 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10767 }
10768 {
10769 PyThreadState* __tstate = wxPyBeginAllowThreads();
10770 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10771
10772 wxPyEndAllowThreads(__tstate);
10773 if (PyErr_Occurred()) SWIG_fail;
10774 }
10775 Py_INCREF(Py_None); resultobj = Py_None;
10776 return resultobj;
10777 fail:
10778 return NULL;
10779 }
10780
10781
10782 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10783 PyObject *resultobj;
10784 wxDC *arg1 = (wxDC *) 0 ;
10785 int arg2 ;
10786 int arg3 ;
10787 int arg4 ;
10788 int arg5 ;
10789 double arg6 ;
10790 double arg7 ;
10791 PyObject * obj0 = 0 ;
10792 PyObject * obj1 = 0 ;
10793 PyObject * obj2 = 0 ;
10794 PyObject * obj3 = 0 ;
10795 PyObject * obj4 = 0 ;
10796 PyObject * obj5 = 0 ;
10797 PyObject * obj6 = 0 ;
10798 char *kwnames[] = {
10799 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
10800 };
10801
10802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10805 arg2 = (int) SWIG_AsInt(obj1);
10806 if (PyErr_Occurred()) SWIG_fail;
10807 arg3 = (int) SWIG_AsInt(obj2);
10808 if (PyErr_Occurred()) SWIG_fail;
10809 arg4 = (int) SWIG_AsInt(obj3);
10810 if (PyErr_Occurred()) SWIG_fail;
10811 arg5 = (int) SWIG_AsInt(obj4);
10812 if (PyErr_Occurred()) SWIG_fail;
10813 arg6 = (double) SWIG_AsDouble(obj5);
10814 if (PyErr_Occurred()) SWIG_fail;
10815 arg7 = (double) SWIG_AsDouble(obj6);
10816 if (PyErr_Occurred()) SWIG_fail;
10817 {
10818 PyThreadState* __tstate = wxPyBeginAllowThreads();
10819 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
10820
10821 wxPyEndAllowThreads(__tstate);
10822 if (PyErr_Occurred()) SWIG_fail;
10823 }
10824 Py_INCREF(Py_None); resultobj = Py_None;
10825 return resultobj;
10826 fail:
10827 return NULL;
10828 }
10829
10830
10831 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10832 PyObject *resultobj;
10833 wxDC *arg1 = (wxDC *) 0 ;
10834 wxPoint *arg2 = 0 ;
10835 wxSize *arg3 = 0 ;
10836 double arg4 ;
10837 double arg5 ;
10838 wxPoint temp2 ;
10839 wxSize temp3 ;
10840 PyObject * obj0 = 0 ;
10841 PyObject * obj1 = 0 ;
10842 PyObject * obj2 = 0 ;
10843 PyObject * obj3 = 0 ;
10844 PyObject * obj4 = 0 ;
10845 char *kwnames[] = {
10846 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
10847 };
10848
10849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10852 {
10853 arg2 = &temp2;
10854 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10855 }
10856 {
10857 arg3 = &temp3;
10858 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10859 }
10860 arg4 = (double) SWIG_AsDouble(obj3);
10861 if (PyErr_Occurred()) SWIG_fail;
10862 arg5 = (double) SWIG_AsDouble(obj4);
10863 if (PyErr_Occurred()) SWIG_fail;
10864 {
10865 PyThreadState* __tstate = wxPyBeginAllowThreads();
10866 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
10867
10868 wxPyEndAllowThreads(__tstate);
10869 if (PyErr_Occurred()) SWIG_fail;
10870 }
10871 Py_INCREF(Py_None); resultobj = Py_None;
10872 return resultobj;
10873 fail:
10874 return NULL;
10875 }
10876
10877
10878 static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10879 PyObject *resultobj;
10880 wxDC *arg1 = (wxDC *) 0 ;
10881 int arg2 ;
10882 int arg3 ;
10883 PyObject * obj0 = 0 ;
10884 PyObject * obj1 = 0 ;
10885 PyObject * obj2 = 0 ;
10886 char *kwnames[] = {
10887 (char *) "self",(char *) "x",(char *) "y", NULL
10888 };
10889
10890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10893 arg2 = (int) SWIG_AsInt(obj1);
10894 if (PyErr_Occurred()) SWIG_fail;
10895 arg3 = (int) SWIG_AsInt(obj2);
10896 if (PyErr_Occurred()) SWIG_fail;
10897 {
10898 PyThreadState* __tstate = wxPyBeginAllowThreads();
10899 (arg1)->DrawPoint(arg2,arg3);
10900
10901 wxPyEndAllowThreads(__tstate);
10902 if (PyErr_Occurred()) SWIG_fail;
10903 }
10904 Py_INCREF(Py_None); resultobj = Py_None;
10905 return resultobj;
10906 fail:
10907 return NULL;
10908 }
10909
10910
10911 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10912 PyObject *resultobj;
10913 wxDC *arg1 = (wxDC *) 0 ;
10914 wxPoint *arg2 = 0 ;
10915 wxPoint temp2 ;
10916 PyObject * obj0 = 0 ;
10917 PyObject * obj1 = 0 ;
10918 char *kwnames[] = {
10919 (char *) "self",(char *) "pt", NULL
10920 };
10921
10922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
10923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10925 {
10926 arg2 = &temp2;
10927 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10928 }
10929 {
10930 PyThreadState* __tstate = wxPyBeginAllowThreads();
10931 (arg1)->DrawPoint((wxPoint const &)*arg2);
10932
10933 wxPyEndAllowThreads(__tstate);
10934 if (PyErr_Occurred()) SWIG_fail;
10935 }
10936 Py_INCREF(Py_None); resultobj = Py_None;
10937 return resultobj;
10938 fail:
10939 return NULL;
10940 }
10941
10942
10943 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10944 PyObject *resultobj;
10945 wxDC *arg1 = (wxDC *) 0 ;
10946 int arg2 ;
10947 int arg3 ;
10948 int arg4 ;
10949 int arg5 ;
10950 PyObject * obj0 = 0 ;
10951 PyObject * obj1 = 0 ;
10952 PyObject * obj2 = 0 ;
10953 PyObject * obj3 = 0 ;
10954 PyObject * obj4 = 0 ;
10955 char *kwnames[] = {
10956 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10957 };
10958
10959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10962 arg2 = (int) SWIG_AsInt(obj1);
10963 if (PyErr_Occurred()) SWIG_fail;
10964 arg3 = (int) SWIG_AsInt(obj2);
10965 if (PyErr_Occurred()) SWIG_fail;
10966 arg4 = (int) SWIG_AsInt(obj3);
10967 if (PyErr_Occurred()) SWIG_fail;
10968 arg5 = (int) SWIG_AsInt(obj4);
10969 if (PyErr_Occurred()) SWIG_fail;
10970 {
10971 PyThreadState* __tstate = wxPyBeginAllowThreads();
10972 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
10973
10974 wxPyEndAllowThreads(__tstate);
10975 if (PyErr_Occurred()) SWIG_fail;
10976 }
10977 Py_INCREF(Py_None); resultobj = Py_None;
10978 return resultobj;
10979 fail:
10980 return NULL;
10981 }
10982
10983
10984 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
10985 PyObject *resultobj;
10986 wxDC *arg1 = (wxDC *) 0 ;
10987 wxPoint *arg2 = 0 ;
10988 wxSize *arg3 = 0 ;
10989 wxPoint temp2 ;
10990 wxSize temp3 ;
10991 PyObject * obj0 = 0 ;
10992 PyObject * obj1 = 0 ;
10993 PyObject * obj2 = 0 ;
10994 char *kwnames[] = {
10995 (char *) "self",(char *) "pt",(char *) "sz", NULL
10996 };
10997
10998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
10999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11001 {
11002 arg2 = &temp2;
11003 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11004 }
11005 {
11006 arg3 = &temp3;
11007 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11008 }
11009 {
11010 PyThreadState* __tstate = wxPyBeginAllowThreads();
11011 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11012
11013 wxPyEndAllowThreads(__tstate);
11014 if (PyErr_Occurred()) SWIG_fail;
11015 }
11016 Py_INCREF(Py_None); resultobj = Py_None;
11017 return resultobj;
11018 fail:
11019 return NULL;
11020 }
11021
11022
11023 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11024 PyObject *resultobj;
11025 wxDC *arg1 = (wxDC *) 0 ;
11026 wxRect *arg2 = 0 ;
11027 wxRect temp2 ;
11028 PyObject * obj0 = 0 ;
11029 PyObject * obj1 = 0 ;
11030 char *kwnames[] = {
11031 (char *) "self",(char *) "rect", NULL
11032 };
11033
11034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11037 {
11038 arg2 = &temp2;
11039 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11040 }
11041 {
11042 PyThreadState* __tstate = wxPyBeginAllowThreads();
11043 (arg1)->DrawRectangle((wxRect const &)*arg2);
11044
11045 wxPyEndAllowThreads(__tstate);
11046 if (PyErr_Occurred()) SWIG_fail;
11047 }
11048 Py_INCREF(Py_None); resultobj = Py_None;
11049 return resultobj;
11050 fail:
11051 return NULL;
11052 }
11053
11054
11055 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11056 PyObject *resultobj;
11057 wxDC *arg1 = (wxDC *) 0 ;
11058 int arg2 ;
11059 int arg3 ;
11060 int arg4 ;
11061 int arg5 ;
11062 double arg6 ;
11063 PyObject * obj0 = 0 ;
11064 PyObject * obj1 = 0 ;
11065 PyObject * obj2 = 0 ;
11066 PyObject * obj3 = 0 ;
11067 PyObject * obj4 = 0 ;
11068 PyObject * obj5 = 0 ;
11069 char *kwnames[] = {
11070 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11071 };
11072
11073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11076 arg2 = (int) SWIG_AsInt(obj1);
11077 if (PyErr_Occurred()) SWIG_fail;
11078 arg3 = (int) SWIG_AsInt(obj2);
11079 if (PyErr_Occurred()) SWIG_fail;
11080 arg4 = (int) SWIG_AsInt(obj3);
11081 if (PyErr_Occurred()) SWIG_fail;
11082 arg5 = (int) SWIG_AsInt(obj4);
11083 if (PyErr_Occurred()) SWIG_fail;
11084 arg6 = (double) SWIG_AsDouble(obj5);
11085 if (PyErr_Occurred()) SWIG_fail;
11086 {
11087 PyThreadState* __tstate = wxPyBeginAllowThreads();
11088 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11089
11090 wxPyEndAllowThreads(__tstate);
11091 if (PyErr_Occurred()) SWIG_fail;
11092 }
11093 Py_INCREF(Py_None); resultobj = Py_None;
11094 return resultobj;
11095 fail:
11096 return NULL;
11097 }
11098
11099
11100 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11101 PyObject *resultobj;
11102 wxDC *arg1 = (wxDC *) 0 ;
11103 wxPoint *arg2 = 0 ;
11104 wxSize *arg3 = 0 ;
11105 double arg4 ;
11106 wxPoint temp2 ;
11107 wxSize temp3 ;
11108 PyObject * obj0 = 0 ;
11109 PyObject * obj1 = 0 ;
11110 PyObject * obj2 = 0 ;
11111 PyObject * obj3 = 0 ;
11112 char *kwnames[] = {
11113 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11114 };
11115
11116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11119 {
11120 arg2 = &temp2;
11121 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11122 }
11123 {
11124 arg3 = &temp3;
11125 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11126 }
11127 arg4 = (double) SWIG_AsDouble(obj3);
11128 if (PyErr_Occurred()) SWIG_fail;
11129 {
11130 PyThreadState* __tstate = wxPyBeginAllowThreads();
11131 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11132
11133 wxPyEndAllowThreads(__tstate);
11134 if (PyErr_Occurred()) SWIG_fail;
11135 }
11136 Py_INCREF(Py_None); resultobj = Py_None;
11137 return resultobj;
11138 fail:
11139 return NULL;
11140 }
11141
11142
11143 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11144 PyObject *resultobj;
11145 wxDC *arg1 = (wxDC *) 0 ;
11146 wxRect *arg2 = 0 ;
11147 double arg3 ;
11148 wxRect temp2 ;
11149 PyObject * obj0 = 0 ;
11150 PyObject * obj1 = 0 ;
11151 PyObject * obj2 = 0 ;
11152 char *kwnames[] = {
11153 (char *) "self",(char *) "r",(char *) "radius", NULL
11154 };
11155
11156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11159 {
11160 arg2 = &temp2;
11161 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11162 }
11163 arg3 = (double) SWIG_AsDouble(obj2);
11164 if (PyErr_Occurred()) SWIG_fail;
11165 {
11166 PyThreadState* __tstate = wxPyBeginAllowThreads();
11167 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11168
11169 wxPyEndAllowThreads(__tstate);
11170 if (PyErr_Occurred()) SWIG_fail;
11171 }
11172 Py_INCREF(Py_None); resultobj = Py_None;
11173 return resultobj;
11174 fail:
11175 return NULL;
11176 }
11177
11178
11179 static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11180 PyObject *resultobj;
11181 wxDC *arg1 = (wxDC *) 0 ;
11182 int arg2 ;
11183 int arg3 ;
11184 int arg4 ;
11185 PyObject * obj0 = 0 ;
11186 PyObject * obj1 = 0 ;
11187 PyObject * obj2 = 0 ;
11188 PyObject * obj3 = 0 ;
11189 char *kwnames[] = {
11190 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11191 };
11192
11193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11196 arg2 = (int) SWIG_AsInt(obj1);
11197 if (PyErr_Occurred()) SWIG_fail;
11198 arg3 = (int) SWIG_AsInt(obj2);
11199 if (PyErr_Occurred()) SWIG_fail;
11200 arg4 = (int) SWIG_AsInt(obj3);
11201 if (PyErr_Occurred()) SWIG_fail;
11202 {
11203 PyThreadState* __tstate = wxPyBeginAllowThreads();
11204 (arg1)->DrawCircle(arg2,arg3,arg4);
11205
11206 wxPyEndAllowThreads(__tstate);
11207 if (PyErr_Occurred()) SWIG_fail;
11208 }
11209 Py_INCREF(Py_None); resultobj = Py_None;
11210 return resultobj;
11211 fail:
11212 return NULL;
11213 }
11214
11215
11216 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11217 PyObject *resultobj;
11218 wxDC *arg1 = (wxDC *) 0 ;
11219 wxPoint *arg2 = 0 ;
11220 int arg3 ;
11221 wxPoint temp2 ;
11222 PyObject * obj0 = 0 ;
11223 PyObject * obj1 = 0 ;
11224 PyObject * obj2 = 0 ;
11225 char *kwnames[] = {
11226 (char *) "self",(char *) "pt",(char *) "radius", NULL
11227 };
11228
11229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11232 {
11233 arg2 = &temp2;
11234 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11235 }
11236 arg3 = (int) SWIG_AsInt(obj2);
11237 if (PyErr_Occurred()) SWIG_fail;
11238 {
11239 PyThreadState* __tstate = wxPyBeginAllowThreads();
11240 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11241
11242 wxPyEndAllowThreads(__tstate);
11243 if (PyErr_Occurred()) SWIG_fail;
11244 }
11245 Py_INCREF(Py_None); resultobj = Py_None;
11246 return resultobj;
11247 fail:
11248 return NULL;
11249 }
11250
11251
11252 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11253 PyObject *resultobj;
11254 wxDC *arg1 = (wxDC *) 0 ;
11255 int arg2 ;
11256 int arg3 ;
11257 int arg4 ;
11258 int arg5 ;
11259 PyObject * obj0 = 0 ;
11260 PyObject * obj1 = 0 ;
11261 PyObject * obj2 = 0 ;
11262 PyObject * obj3 = 0 ;
11263 PyObject * obj4 = 0 ;
11264 char *kwnames[] = {
11265 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11266 };
11267
11268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11271 arg2 = (int) SWIG_AsInt(obj1);
11272 if (PyErr_Occurred()) SWIG_fail;
11273 arg3 = (int) SWIG_AsInt(obj2);
11274 if (PyErr_Occurred()) SWIG_fail;
11275 arg4 = (int) SWIG_AsInt(obj3);
11276 if (PyErr_Occurred()) SWIG_fail;
11277 arg5 = (int) SWIG_AsInt(obj4);
11278 if (PyErr_Occurred()) SWIG_fail;
11279 {
11280 PyThreadState* __tstate = wxPyBeginAllowThreads();
11281 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11282
11283 wxPyEndAllowThreads(__tstate);
11284 if (PyErr_Occurred()) SWIG_fail;
11285 }
11286 Py_INCREF(Py_None); resultobj = Py_None;
11287 return resultobj;
11288 fail:
11289 return NULL;
11290 }
11291
11292
11293 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11294 PyObject *resultobj;
11295 wxDC *arg1 = (wxDC *) 0 ;
11296 wxPoint *arg2 = 0 ;
11297 wxSize *arg3 = 0 ;
11298 wxPoint temp2 ;
11299 wxSize temp3 ;
11300 PyObject * obj0 = 0 ;
11301 PyObject * obj1 = 0 ;
11302 PyObject * obj2 = 0 ;
11303 char *kwnames[] = {
11304 (char *) "self",(char *) "pt",(char *) "sz", NULL
11305 };
11306
11307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
11308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11310 {
11311 arg2 = &temp2;
11312 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11313 }
11314 {
11315 arg3 = &temp3;
11316 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11317 }
11318 {
11319 PyThreadState* __tstate = wxPyBeginAllowThreads();
11320 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11321
11322 wxPyEndAllowThreads(__tstate);
11323 if (PyErr_Occurred()) SWIG_fail;
11324 }
11325 Py_INCREF(Py_None); resultobj = Py_None;
11326 return resultobj;
11327 fail:
11328 return NULL;
11329 }
11330
11331
11332 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11333 PyObject *resultobj;
11334 wxDC *arg1 = (wxDC *) 0 ;
11335 wxRect *arg2 = 0 ;
11336 wxRect temp2 ;
11337 PyObject * obj0 = 0 ;
11338 PyObject * obj1 = 0 ;
11339 char *kwnames[] = {
11340 (char *) "self",(char *) "rect", NULL
11341 };
11342
11343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11346 {
11347 arg2 = &temp2;
11348 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11349 }
11350 {
11351 PyThreadState* __tstate = wxPyBeginAllowThreads();
11352 (arg1)->DrawEllipse((wxRect const &)*arg2);
11353
11354 wxPyEndAllowThreads(__tstate);
11355 if (PyErr_Occurred()) SWIG_fail;
11356 }
11357 Py_INCREF(Py_None); resultobj = Py_None;
11358 return resultobj;
11359 fail:
11360 return NULL;
11361 }
11362
11363
11364 static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11365 PyObject *resultobj;
11366 wxDC *arg1 = (wxDC *) 0 ;
11367 wxIcon *arg2 = 0 ;
11368 int arg3 ;
11369 int arg4 ;
11370 PyObject * obj0 = 0 ;
11371 PyObject * obj1 = 0 ;
11372 PyObject * obj2 = 0 ;
11373 PyObject * obj3 = 0 ;
11374 char *kwnames[] = {
11375 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11376 };
11377
11378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11381 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11382 SWIG_POINTER_EXCEPTION | 0)) == -1)
11383 SWIG_fail;
11384 if (arg2 == NULL) {
11385 PyErr_SetString(PyExc_TypeError,"null reference");
11386 SWIG_fail;
11387 }
11388 arg3 = (int) SWIG_AsInt(obj2);
11389 if (PyErr_Occurred()) SWIG_fail;
11390 arg4 = (int) SWIG_AsInt(obj3);
11391 if (PyErr_Occurred()) SWIG_fail;
11392 {
11393 PyThreadState* __tstate = wxPyBeginAllowThreads();
11394 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11395
11396 wxPyEndAllowThreads(__tstate);
11397 if (PyErr_Occurred()) SWIG_fail;
11398 }
11399 Py_INCREF(Py_None); resultobj = Py_None;
11400 return resultobj;
11401 fail:
11402 return NULL;
11403 }
11404
11405
11406 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11407 PyObject *resultobj;
11408 wxDC *arg1 = (wxDC *) 0 ;
11409 wxIcon *arg2 = 0 ;
11410 wxPoint *arg3 = 0 ;
11411 wxPoint temp3 ;
11412 PyObject * obj0 = 0 ;
11413 PyObject * obj1 = 0 ;
11414 PyObject * obj2 = 0 ;
11415 char *kwnames[] = {
11416 (char *) "self",(char *) "icon",(char *) "pt", NULL
11417 };
11418
11419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
11420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11422 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11423 SWIG_POINTER_EXCEPTION | 0)) == -1)
11424 SWIG_fail;
11425 if (arg2 == NULL) {
11426 PyErr_SetString(PyExc_TypeError,"null reference");
11427 SWIG_fail;
11428 }
11429 {
11430 arg3 = &temp3;
11431 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11432 }
11433 {
11434 PyThreadState* __tstate = wxPyBeginAllowThreads();
11435 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11436
11437 wxPyEndAllowThreads(__tstate);
11438 if (PyErr_Occurred()) SWIG_fail;
11439 }
11440 Py_INCREF(Py_None); resultobj = Py_None;
11441 return resultobj;
11442 fail:
11443 return NULL;
11444 }
11445
11446
11447 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11448 PyObject *resultobj;
11449 wxDC *arg1 = (wxDC *) 0 ;
11450 wxBitmap *arg2 = 0 ;
11451 int arg3 ;
11452 int arg4 ;
11453 bool arg5 = (bool) False ;
11454 PyObject * obj0 = 0 ;
11455 PyObject * obj1 = 0 ;
11456 PyObject * obj2 = 0 ;
11457 PyObject * obj3 = 0 ;
11458 PyObject * obj4 = 0 ;
11459 char *kwnames[] = {
11460 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11461 };
11462
11463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11466 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11467 SWIG_POINTER_EXCEPTION | 0)) == -1)
11468 SWIG_fail;
11469 if (arg2 == NULL) {
11470 PyErr_SetString(PyExc_TypeError,"null reference");
11471 SWIG_fail;
11472 }
11473 arg3 = (int) SWIG_AsInt(obj2);
11474 if (PyErr_Occurred()) SWIG_fail;
11475 arg4 = (int) SWIG_AsInt(obj3);
11476 if (PyErr_Occurred()) SWIG_fail;
11477 if (obj4) {
11478 arg5 = (bool) SWIG_AsBool(obj4);
11479 if (PyErr_Occurred()) SWIG_fail;
11480 }
11481 {
11482 PyThreadState* __tstate = wxPyBeginAllowThreads();
11483 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11484
11485 wxPyEndAllowThreads(__tstate);
11486 if (PyErr_Occurred()) SWIG_fail;
11487 }
11488 Py_INCREF(Py_None); resultobj = Py_None;
11489 return resultobj;
11490 fail:
11491 return NULL;
11492 }
11493
11494
11495 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11496 PyObject *resultobj;
11497 wxDC *arg1 = (wxDC *) 0 ;
11498 wxBitmap *arg2 = 0 ;
11499 wxPoint *arg3 = 0 ;
11500 bool arg4 = (bool) False ;
11501 wxPoint temp3 ;
11502 PyObject * obj0 = 0 ;
11503 PyObject * obj1 = 0 ;
11504 PyObject * obj2 = 0 ;
11505 PyObject * obj3 = 0 ;
11506 char *kwnames[] = {
11507 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11508 };
11509
11510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11513 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11514 SWIG_POINTER_EXCEPTION | 0)) == -1)
11515 SWIG_fail;
11516 if (arg2 == NULL) {
11517 PyErr_SetString(PyExc_TypeError,"null reference");
11518 SWIG_fail;
11519 }
11520 {
11521 arg3 = &temp3;
11522 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11523 }
11524 if (obj3) {
11525 arg4 = (bool) SWIG_AsBool(obj3);
11526 if (PyErr_Occurred()) SWIG_fail;
11527 }
11528 {
11529 PyThreadState* __tstate = wxPyBeginAllowThreads();
11530 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11531
11532 wxPyEndAllowThreads(__tstate);
11533 if (PyErr_Occurred()) SWIG_fail;
11534 }
11535 Py_INCREF(Py_None); resultobj = Py_None;
11536 return resultobj;
11537 fail:
11538 return NULL;
11539 }
11540
11541
11542 static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11543 PyObject *resultobj;
11544 wxDC *arg1 = (wxDC *) 0 ;
11545 wxString *arg2 = 0 ;
11546 int arg3 ;
11547 int arg4 ;
11548 bool temp2 = False ;
11549 PyObject * obj0 = 0 ;
11550 PyObject * obj1 = 0 ;
11551 PyObject * obj2 = 0 ;
11552 PyObject * obj3 = 0 ;
11553 char *kwnames[] = {
11554 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11555 };
11556
11557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11560 {
11561 arg2 = wxString_in_helper(obj1);
11562 if (arg2 == NULL) SWIG_fail;
11563 temp2 = True;
11564 }
11565 arg3 = (int) SWIG_AsInt(obj2);
11566 if (PyErr_Occurred()) SWIG_fail;
11567 arg4 = (int) SWIG_AsInt(obj3);
11568 if (PyErr_Occurred()) SWIG_fail;
11569 {
11570 PyThreadState* __tstate = wxPyBeginAllowThreads();
11571 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11572
11573 wxPyEndAllowThreads(__tstate);
11574 if (PyErr_Occurred()) SWIG_fail;
11575 }
11576 Py_INCREF(Py_None); resultobj = Py_None;
11577 {
11578 if (temp2)
11579 delete arg2;
11580 }
11581 return resultobj;
11582 fail:
11583 {
11584 if (temp2)
11585 delete arg2;
11586 }
11587 return NULL;
11588 }
11589
11590
11591 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
11592 PyObject *resultobj;
11593 wxDC *arg1 = (wxDC *) 0 ;
11594 wxString *arg2 = 0 ;
11595 wxPoint *arg3 = 0 ;
11596 bool temp2 = False ;
11597 wxPoint temp3 ;
11598 PyObject * obj0 = 0 ;
11599 PyObject * obj1 = 0 ;
11600 PyObject * obj2 = 0 ;
11601 char *kwnames[] = {
11602 (char *) "self",(char *) "text",(char *) "pt", NULL
11603 };
11604
11605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
11606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11608 {
11609 arg2 = wxString_in_helper(obj1);
11610 if (arg2 == NULL) SWIG_fail;
11611 temp2 = True;
11612 }
11613 {
11614 arg3 = &temp3;
11615 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11616 }
11617 {
11618 PyThreadState* __tstate = wxPyBeginAllowThreads();
11619 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11620
11621 wxPyEndAllowThreads(__tstate);
11622 if (PyErr_Occurred()) SWIG_fail;
11623 }
11624 Py_INCREF(Py_None); resultobj = Py_None;
11625 {
11626 if (temp2)
11627 delete arg2;
11628 }
11629 return resultobj;
11630 fail:
11631 {
11632 if (temp2)
11633 delete arg2;
11634 }
11635 return NULL;
11636 }
11637
11638
11639 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11640 PyObject *resultobj;
11641 wxDC *arg1 = (wxDC *) 0 ;
11642 wxString *arg2 = 0 ;
11643 int arg3 ;
11644 int arg4 ;
11645 double arg5 ;
11646 bool temp2 = False ;
11647 PyObject * obj0 = 0 ;
11648 PyObject * obj1 = 0 ;
11649 PyObject * obj2 = 0 ;
11650 PyObject * obj3 = 0 ;
11651 PyObject * obj4 = 0 ;
11652 char *kwnames[] = {
11653 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11654 };
11655
11656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11659 {
11660 arg2 = wxString_in_helper(obj1);
11661 if (arg2 == NULL) SWIG_fail;
11662 temp2 = True;
11663 }
11664 arg3 = (int) SWIG_AsInt(obj2);
11665 if (PyErr_Occurred()) SWIG_fail;
11666 arg4 = (int) SWIG_AsInt(obj3);
11667 if (PyErr_Occurred()) SWIG_fail;
11668 arg5 = (double) SWIG_AsDouble(obj4);
11669 if (PyErr_Occurred()) SWIG_fail;
11670 {
11671 PyThreadState* __tstate = wxPyBeginAllowThreads();
11672 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11673
11674 wxPyEndAllowThreads(__tstate);
11675 if (PyErr_Occurred()) SWIG_fail;
11676 }
11677 Py_INCREF(Py_None); resultobj = Py_None;
11678 {
11679 if (temp2)
11680 delete arg2;
11681 }
11682 return resultobj;
11683 fail:
11684 {
11685 if (temp2)
11686 delete arg2;
11687 }
11688 return NULL;
11689 }
11690
11691
11692 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
11693 PyObject *resultobj;
11694 wxDC *arg1 = (wxDC *) 0 ;
11695 wxString *arg2 = 0 ;
11696 wxPoint *arg3 = 0 ;
11697 double arg4 ;
11698 bool temp2 = False ;
11699 wxPoint temp3 ;
11700 PyObject * obj0 = 0 ;
11701 PyObject * obj1 = 0 ;
11702 PyObject * obj2 = 0 ;
11703 PyObject * obj3 = 0 ;
11704 char *kwnames[] = {
11705 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11706 };
11707
11708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11711 {
11712 arg2 = wxString_in_helper(obj1);
11713 if (arg2 == NULL) SWIG_fail;
11714 temp2 = True;
11715 }
11716 {
11717 arg3 = &temp3;
11718 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11719 }
11720 arg4 = (double) SWIG_AsDouble(obj3);
11721 if (PyErr_Occurred()) SWIG_fail;
11722 {
11723 PyThreadState* __tstate = wxPyBeginAllowThreads();
11724 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11725
11726 wxPyEndAllowThreads(__tstate);
11727 if (PyErr_Occurred()) SWIG_fail;
11728 }
11729 Py_INCREF(Py_None); resultobj = Py_None;
11730 {
11731 if (temp2)
11732 delete arg2;
11733 }
11734 return resultobj;
11735 fail:
11736 {
11737 if (temp2)
11738 delete arg2;
11739 }
11740 return NULL;
11741 }
11742
11743
11744 static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11745 PyObject *resultobj;
11746 wxDC *arg1 = (wxDC *) 0 ;
11747 int arg2 ;
11748 int arg3 ;
11749 int arg4 ;
11750 int arg5 ;
11751 wxDC *arg6 = (wxDC *) 0 ;
11752 int arg7 ;
11753 int arg8 ;
11754 int arg9 = (int) wxCOPY ;
11755 bool arg10 = (bool) False ;
11756 int arg11 = (int) -1 ;
11757 int arg12 = (int) -1 ;
11758 bool result;
11759 PyObject * obj0 = 0 ;
11760 PyObject * obj1 = 0 ;
11761 PyObject * obj2 = 0 ;
11762 PyObject * obj3 = 0 ;
11763 PyObject * obj4 = 0 ;
11764 PyObject * obj5 = 0 ;
11765 PyObject * obj6 = 0 ;
11766 PyObject * obj7 = 0 ;
11767 PyObject * obj8 = 0 ;
11768 PyObject * obj9 = 0 ;
11769 PyObject * obj10 = 0 ;
11770 PyObject * obj11 = 0 ;
11771 char *kwnames[] = {
11772 (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
11773 };
11774
11775 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;
11776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11778 arg2 = (int) SWIG_AsInt(obj1);
11779 if (PyErr_Occurred()) SWIG_fail;
11780 arg3 = (int) SWIG_AsInt(obj2);
11781 if (PyErr_Occurred()) SWIG_fail;
11782 arg4 = (int) SWIG_AsInt(obj3);
11783 if (PyErr_Occurred()) SWIG_fail;
11784 arg5 = (int) SWIG_AsInt(obj4);
11785 if (PyErr_Occurred()) SWIG_fail;
11786 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
11787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11788 arg7 = (int) SWIG_AsInt(obj6);
11789 if (PyErr_Occurred()) SWIG_fail;
11790 arg8 = (int) SWIG_AsInt(obj7);
11791 if (PyErr_Occurred()) SWIG_fail;
11792 if (obj8) {
11793 arg9 = (int) SWIG_AsInt(obj8);
11794 if (PyErr_Occurred()) SWIG_fail;
11795 }
11796 if (obj9) {
11797 arg10 = (bool) SWIG_AsBool(obj9);
11798 if (PyErr_Occurred()) SWIG_fail;
11799 }
11800 if (obj10) {
11801 arg11 = (int) SWIG_AsInt(obj10);
11802 if (PyErr_Occurred()) SWIG_fail;
11803 }
11804 if (obj11) {
11805 arg12 = (int) SWIG_AsInt(obj11);
11806 if (PyErr_Occurred()) SWIG_fail;
11807 }
11808 {
11809 PyThreadState* __tstate = wxPyBeginAllowThreads();
11810 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
11811
11812 wxPyEndAllowThreads(__tstate);
11813 if (PyErr_Occurred()) SWIG_fail;
11814 }
11815 {
11816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11817 }
11818 return resultobj;
11819 fail:
11820 return NULL;
11821 }
11822
11823
11824 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
11825 PyObject *resultobj;
11826 wxDC *arg1 = (wxDC *) 0 ;
11827 wxPoint *arg2 = 0 ;
11828 wxSize *arg3 = 0 ;
11829 wxDC *arg4 = (wxDC *) 0 ;
11830 wxPoint *arg5 = 0 ;
11831 int arg6 = (int) wxCOPY ;
11832 bool arg7 = (bool) False ;
11833 wxPoint const &arg8_defvalue = wxDefaultPosition ;
11834 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
11835 bool result;
11836 wxPoint temp2 ;
11837 wxSize temp3 ;
11838 wxPoint temp5 ;
11839 wxPoint temp8 ;
11840 PyObject * obj0 = 0 ;
11841 PyObject * obj1 = 0 ;
11842 PyObject * obj2 = 0 ;
11843 PyObject * obj3 = 0 ;
11844 PyObject * obj4 = 0 ;
11845 PyObject * obj5 = 0 ;
11846 PyObject * obj6 = 0 ;
11847 PyObject * obj7 = 0 ;
11848 char *kwnames[] = {
11849 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
11850 };
11851
11852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
11853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11855 {
11856 arg2 = &temp2;
11857 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11858 }
11859 {
11860 arg3 = &temp3;
11861 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11862 }
11863 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
11864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11865 {
11866 arg5 = &temp5;
11867 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11868 }
11869 if (obj5) {
11870 arg6 = (int) SWIG_AsInt(obj5);
11871 if (PyErr_Occurred()) SWIG_fail;
11872 }
11873 if (obj6) {
11874 arg7 = (bool) SWIG_AsBool(obj6);
11875 if (PyErr_Occurred()) SWIG_fail;
11876 }
11877 if (obj7) {
11878 {
11879 arg8 = &temp8;
11880 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
11881 }
11882 }
11883 {
11884 PyThreadState* __tstate = wxPyBeginAllowThreads();
11885 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
11886
11887 wxPyEndAllowThreads(__tstate);
11888 if (PyErr_Occurred()) SWIG_fail;
11889 }
11890 {
11891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11892 }
11893 return resultobj;
11894 fail:
11895 return NULL;
11896 }
11897
11898
11899 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
11900 PyObject *resultobj;
11901 wxDC *arg1 = (wxDC *) 0 ;
11902 int arg2 ;
11903 wxPoint *arg3 = (wxPoint *) 0 ;
11904 int arg4 = (int) 0 ;
11905 int arg5 = (int) 0 ;
11906 PyObject * obj0 = 0 ;
11907 PyObject * obj1 = 0 ;
11908 PyObject * obj2 = 0 ;
11909 PyObject * obj3 = 0 ;
11910 char *kwnames[] = {
11911 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
11912 };
11913
11914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11917 {
11918 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11919 if (arg3 == NULL) SWIG_fail;
11920 }
11921 if (obj2) {
11922 arg4 = (int) SWIG_AsInt(obj2);
11923 if (PyErr_Occurred()) SWIG_fail;
11924 }
11925 if (obj3) {
11926 arg5 = (int) SWIG_AsInt(obj3);
11927 if (PyErr_Occurred()) SWIG_fail;
11928 }
11929 {
11930 PyThreadState* __tstate = wxPyBeginAllowThreads();
11931 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
11932
11933 wxPyEndAllowThreads(__tstate);
11934 if (PyErr_Occurred()) SWIG_fail;
11935 }
11936 Py_INCREF(Py_None); resultobj = Py_None;
11937 {
11938 if (arg3) delete [] arg3;
11939 }
11940 return resultobj;
11941 fail:
11942 {
11943 if (arg3) delete [] arg3;
11944 }
11945 return NULL;
11946 }
11947
11948
11949 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
11950 PyObject *resultobj;
11951 wxDC *arg1 = (wxDC *) 0 ;
11952 int arg2 ;
11953 wxPoint *arg3 = (wxPoint *) 0 ;
11954 int arg4 = (int) 0 ;
11955 int arg5 = (int) 0 ;
11956 int arg6 = (int) wxODDEVEN_RULE ;
11957 PyObject * obj0 = 0 ;
11958 PyObject * obj1 = 0 ;
11959 PyObject * obj2 = 0 ;
11960 PyObject * obj3 = 0 ;
11961 PyObject * obj4 = 0 ;
11962 char *kwnames[] = {
11963 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
11964 };
11965
11966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11969 {
11970 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11971 if (arg3 == NULL) SWIG_fail;
11972 }
11973 if (obj2) {
11974 arg4 = (int) SWIG_AsInt(obj2);
11975 if (PyErr_Occurred()) SWIG_fail;
11976 }
11977 if (obj3) {
11978 arg5 = (int) SWIG_AsInt(obj3);
11979 if (PyErr_Occurred()) SWIG_fail;
11980 }
11981 if (obj4) {
11982 arg6 = (int) SWIG_AsInt(obj4);
11983 if (PyErr_Occurred()) SWIG_fail;
11984 }
11985 {
11986 PyThreadState* __tstate = wxPyBeginAllowThreads();
11987 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
11988
11989 wxPyEndAllowThreads(__tstate);
11990 if (PyErr_Occurred()) SWIG_fail;
11991 }
11992 Py_INCREF(Py_None); resultobj = Py_None;
11993 {
11994 if (arg3) delete [] arg3;
11995 }
11996 return resultobj;
11997 fail:
11998 {
11999 if (arg3) delete [] arg3;
12000 }
12001 return NULL;
12002 }
12003
12004
12005 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12006 PyObject *resultobj;
12007 wxDC *arg1 = (wxDC *) 0 ;
12008 wxString *arg2 = 0 ;
12009 wxRect *arg3 = 0 ;
12010 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12011 int arg5 = (int) -1 ;
12012 bool temp2 = False ;
12013 wxRect temp3 ;
12014 PyObject * obj0 = 0 ;
12015 PyObject * obj1 = 0 ;
12016 PyObject * obj2 = 0 ;
12017 PyObject * obj3 = 0 ;
12018 PyObject * obj4 = 0 ;
12019 char *kwnames[] = {
12020 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12021 };
12022
12023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12026 {
12027 arg2 = wxString_in_helper(obj1);
12028 if (arg2 == NULL) SWIG_fail;
12029 temp2 = True;
12030 }
12031 {
12032 arg3 = &temp3;
12033 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12034 }
12035 if (obj3) {
12036 arg4 = (int) SWIG_AsInt(obj3);
12037 if (PyErr_Occurred()) SWIG_fail;
12038 }
12039 if (obj4) {
12040 arg5 = (int) SWIG_AsInt(obj4);
12041 if (PyErr_Occurred()) SWIG_fail;
12042 }
12043 {
12044 PyThreadState* __tstate = wxPyBeginAllowThreads();
12045 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12046
12047 wxPyEndAllowThreads(__tstate);
12048 if (PyErr_Occurred()) SWIG_fail;
12049 }
12050 Py_INCREF(Py_None); resultobj = Py_None;
12051 {
12052 if (temp2)
12053 delete arg2;
12054 }
12055 return resultobj;
12056 fail:
12057 {
12058 if (temp2)
12059 delete arg2;
12060 }
12061 return NULL;
12062 }
12063
12064
12065 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12066 PyObject *resultobj;
12067 wxDC *arg1 = (wxDC *) 0 ;
12068 wxString *arg2 = 0 ;
12069 wxBitmap *arg3 = 0 ;
12070 wxRect *arg4 = 0 ;
12071 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12072 int arg6 = (int) -1 ;
12073 wxRect result;
12074 bool temp2 = False ;
12075 wxRect temp4 ;
12076 PyObject * obj0 = 0 ;
12077 PyObject * obj1 = 0 ;
12078 PyObject * obj2 = 0 ;
12079 PyObject * obj3 = 0 ;
12080 PyObject * obj4 = 0 ;
12081 PyObject * obj5 = 0 ;
12082 char *kwnames[] = {
12083 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12084 };
12085
12086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12089 {
12090 arg2 = wxString_in_helper(obj1);
12091 if (arg2 == NULL) SWIG_fail;
12092 temp2 = True;
12093 }
12094 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12095 SWIG_POINTER_EXCEPTION | 0)) == -1)
12096 SWIG_fail;
12097 if (arg3 == NULL) {
12098 PyErr_SetString(PyExc_TypeError,"null reference");
12099 SWIG_fail;
12100 }
12101 {
12102 arg4 = &temp4;
12103 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12104 }
12105 if (obj4) {
12106 arg5 = (int) SWIG_AsInt(obj4);
12107 if (PyErr_Occurred()) SWIG_fail;
12108 }
12109 if (obj5) {
12110 arg6 = (int) SWIG_AsInt(obj5);
12111 if (PyErr_Occurred()) SWIG_fail;
12112 }
12113 {
12114 PyThreadState* __tstate = wxPyBeginAllowThreads();
12115 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12116
12117 wxPyEndAllowThreads(__tstate);
12118 if (PyErr_Occurred()) SWIG_fail;
12119 }
12120 {
12121 wxRect * resultptr;
12122 resultptr = new wxRect((wxRect &) result);
12123 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12124 }
12125 {
12126 if (temp2)
12127 delete arg2;
12128 }
12129 return resultobj;
12130 fail:
12131 {
12132 if (temp2)
12133 delete arg2;
12134 }
12135 return NULL;
12136 }
12137
12138
12139 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12140 PyObject *resultobj;
12141 wxDC *arg1 = (wxDC *) 0 ;
12142 int arg2 ;
12143 wxPoint *arg3 = (wxPoint *) 0 ;
12144 PyObject * obj0 = 0 ;
12145 PyObject * obj1 = 0 ;
12146 char *kwnames[] = {
12147 (char *) "self",(char *) "points", NULL
12148 };
12149
12150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12153 {
12154 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12155 if (arg3 == NULL) SWIG_fail;
12156 }
12157 {
12158 PyThreadState* __tstate = wxPyBeginAllowThreads();
12159 (arg1)->DrawSpline(arg2,arg3);
12160
12161 wxPyEndAllowThreads(__tstate);
12162 if (PyErr_Occurred()) SWIG_fail;
12163 }
12164 Py_INCREF(Py_None); resultobj = Py_None;
12165 {
12166 if (arg3) delete [] arg3;
12167 }
12168 return resultobj;
12169 fail:
12170 {
12171 if (arg3) delete [] arg3;
12172 }
12173 return NULL;
12174 }
12175
12176
12177 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12178 PyObject *resultobj;
12179 wxDC *arg1 = (wxDC *) 0 ;
12180 PyObject * obj0 = 0 ;
12181 char *kwnames[] = {
12182 (char *) "self", NULL
12183 };
12184
12185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12188 {
12189 PyThreadState* __tstate = wxPyBeginAllowThreads();
12190 (arg1)->Clear();
12191
12192 wxPyEndAllowThreads(__tstate);
12193 if (PyErr_Occurred()) SWIG_fail;
12194 }
12195 Py_INCREF(Py_None); resultobj = Py_None;
12196 return resultobj;
12197 fail:
12198 return NULL;
12199 }
12200
12201
12202 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12203 PyObject *resultobj;
12204 wxDC *arg1 = (wxDC *) 0 ;
12205 wxString *arg2 = 0 ;
12206 bool result;
12207 bool temp2 = False ;
12208 PyObject * obj0 = 0 ;
12209 PyObject * obj1 = 0 ;
12210 char *kwnames[] = {
12211 (char *) "self",(char *) "message", NULL
12212 };
12213
12214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12217 {
12218 arg2 = wxString_in_helper(obj1);
12219 if (arg2 == NULL) SWIG_fail;
12220 temp2 = True;
12221 }
12222 {
12223 PyThreadState* __tstate = wxPyBeginAllowThreads();
12224 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12225
12226 wxPyEndAllowThreads(__tstate);
12227 if (PyErr_Occurred()) SWIG_fail;
12228 }
12229 {
12230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12231 }
12232 {
12233 if (temp2)
12234 delete arg2;
12235 }
12236 return resultobj;
12237 fail:
12238 {
12239 if (temp2)
12240 delete arg2;
12241 }
12242 return NULL;
12243 }
12244
12245
12246 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12247 PyObject *resultobj;
12248 wxDC *arg1 = (wxDC *) 0 ;
12249 PyObject * obj0 = 0 ;
12250 char *kwnames[] = {
12251 (char *) "self", NULL
12252 };
12253
12254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12257 {
12258 PyThreadState* __tstate = wxPyBeginAllowThreads();
12259 (arg1)->EndDoc();
12260
12261 wxPyEndAllowThreads(__tstate);
12262 if (PyErr_Occurred()) SWIG_fail;
12263 }
12264 Py_INCREF(Py_None); resultobj = Py_None;
12265 return resultobj;
12266 fail:
12267 return NULL;
12268 }
12269
12270
12271 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12272 PyObject *resultobj;
12273 wxDC *arg1 = (wxDC *) 0 ;
12274 PyObject * obj0 = 0 ;
12275 char *kwnames[] = {
12276 (char *) "self", NULL
12277 };
12278
12279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12282 {
12283 PyThreadState* __tstate = wxPyBeginAllowThreads();
12284 (arg1)->StartPage();
12285
12286 wxPyEndAllowThreads(__tstate);
12287 if (PyErr_Occurred()) SWIG_fail;
12288 }
12289 Py_INCREF(Py_None); resultobj = Py_None;
12290 return resultobj;
12291 fail:
12292 return NULL;
12293 }
12294
12295
12296 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12297 PyObject *resultobj;
12298 wxDC *arg1 = (wxDC *) 0 ;
12299 PyObject * obj0 = 0 ;
12300 char *kwnames[] = {
12301 (char *) "self", NULL
12302 };
12303
12304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12307 {
12308 PyThreadState* __tstate = wxPyBeginAllowThreads();
12309 (arg1)->EndPage();
12310
12311 wxPyEndAllowThreads(__tstate);
12312 if (PyErr_Occurred()) SWIG_fail;
12313 }
12314 Py_INCREF(Py_None); resultobj = Py_None;
12315 return resultobj;
12316 fail:
12317 return NULL;
12318 }
12319
12320
12321 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12322 PyObject *resultobj;
12323 wxDC *arg1 = (wxDC *) 0 ;
12324 wxFont *arg2 = 0 ;
12325 PyObject * obj0 = 0 ;
12326 PyObject * obj1 = 0 ;
12327 char *kwnames[] = {
12328 (char *) "self",(char *) "font", NULL
12329 };
12330
12331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12334 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12335 SWIG_POINTER_EXCEPTION | 0)) == -1)
12336 SWIG_fail;
12337 if (arg2 == NULL) {
12338 PyErr_SetString(PyExc_TypeError,"null reference");
12339 SWIG_fail;
12340 }
12341 {
12342 PyThreadState* __tstate = wxPyBeginAllowThreads();
12343 (arg1)->SetFont((wxFont const &)*arg2);
12344
12345 wxPyEndAllowThreads(__tstate);
12346 if (PyErr_Occurred()) SWIG_fail;
12347 }
12348 Py_INCREF(Py_None); resultobj = Py_None;
12349 return resultobj;
12350 fail:
12351 return NULL;
12352 }
12353
12354
12355 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12356 PyObject *resultobj;
12357 wxDC *arg1 = (wxDC *) 0 ;
12358 wxPen *arg2 = 0 ;
12359 PyObject * obj0 = 0 ;
12360 PyObject * obj1 = 0 ;
12361 char *kwnames[] = {
12362 (char *) "self",(char *) "pen", NULL
12363 };
12364
12365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12368 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12369 SWIG_POINTER_EXCEPTION | 0)) == -1)
12370 SWIG_fail;
12371 if (arg2 == NULL) {
12372 PyErr_SetString(PyExc_TypeError,"null reference");
12373 SWIG_fail;
12374 }
12375 {
12376 PyThreadState* __tstate = wxPyBeginAllowThreads();
12377 (arg1)->SetPen((wxPen const &)*arg2);
12378
12379 wxPyEndAllowThreads(__tstate);
12380 if (PyErr_Occurred()) SWIG_fail;
12381 }
12382 Py_INCREF(Py_None); resultobj = Py_None;
12383 return resultobj;
12384 fail:
12385 return NULL;
12386 }
12387
12388
12389 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12390 PyObject *resultobj;
12391 wxDC *arg1 = (wxDC *) 0 ;
12392 wxBrush *arg2 = 0 ;
12393 PyObject * obj0 = 0 ;
12394 PyObject * obj1 = 0 ;
12395 char *kwnames[] = {
12396 (char *) "self",(char *) "brush", NULL
12397 };
12398
12399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12402 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12403 SWIG_POINTER_EXCEPTION | 0)) == -1)
12404 SWIG_fail;
12405 if (arg2 == NULL) {
12406 PyErr_SetString(PyExc_TypeError,"null reference");
12407 SWIG_fail;
12408 }
12409 {
12410 PyThreadState* __tstate = wxPyBeginAllowThreads();
12411 (arg1)->SetBrush((wxBrush const &)*arg2);
12412
12413 wxPyEndAllowThreads(__tstate);
12414 if (PyErr_Occurred()) SWIG_fail;
12415 }
12416 Py_INCREF(Py_None); resultobj = Py_None;
12417 return resultobj;
12418 fail:
12419 return NULL;
12420 }
12421
12422
12423 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12424 PyObject *resultobj;
12425 wxDC *arg1 = (wxDC *) 0 ;
12426 wxBrush *arg2 = 0 ;
12427 PyObject * obj0 = 0 ;
12428 PyObject * obj1 = 0 ;
12429 char *kwnames[] = {
12430 (char *) "self",(char *) "brush", NULL
12431 };
12432
12433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12436 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12437 SWIG_POINTER_EXCEPTION | 0)) == -1)
12438 SWIG_fail;
12439 if (arg2 == NULL) {
12440 PyErr_SetString(PyExc_TypeError,"null reference");
12441 SWIG_fail;
12442 }
12443 {
12444 PyThreadState* __tstate = wxPyBeginAllowThreads();
12445 (arg1)->SetBackground((wxBrush const &)*arg2);
12446
12447 wxPyEndAllowThreads(__tstate);
12448 if (PyErr_Occurred()) SWIG_fail;
12449 }
12450 Py_INCREF(Py_None); resultobj = Py_None;
12451 return resultobj;
12452 fail:
12453 return NULL;
12454 }
12455
12456
12457 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12458 PyObject *resultobj;
12459 wxDC *arg1 = (wxDC *) 0 ;
12460 int arg2 ;
12461 PyObject * obj0 = 0 ;
12462 PyObject * obj1 = 0 ;
12463 char *kwnames[] = {
12464 (char *) "self",(char *) "mode", NULL
12465 };
12466
12467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12470 arg2 = (int) SWIG_AsInt(obj1);
12471 if (PyErr_Occurred()) SWIG_fail;
12472 {
12473 PyThreadState* __tstate = wxPyBeginAllowThreads();
12474 (arg1)->SetBackgroundMode(arg2);
12475
12476 wxPyEndAllowThreads(__tstate);
12477 if (PyErr_Occurred()) SWIG_fail;
12478 }
12479 Py_INCREF(Py_None); resultobj = Py_None;
12480 return resultobj;
12481 fail:
12482 return NULL;
12483 }
12484
12485
12486 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12487 PyObject *resultobj;
12488 wxDC *arg1 = (wxDC *) 0 ;
12489 wxPalette *arg2 = 0 ;
12490 PyObject * obj0 = 0 ;
12491 PyObject * obj1 = 0 ;
12492 char *kwnames[] = {
12493 (char *) "self",(char *) "palette", NULL
12494 };
12495
12496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12499 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
12500 SWIG_POINTER_EXCEPTION | 0)) == -1)
12501 SWIG_fail;
12502 if (arg2 == NULL) {
12503 PyErr_SetString(PyExc_TypeError,"null reference");
12504 SWIG_fail;
12505 }
12506 {
12507 PyThreadState* __tstate = wxPyBeginAllowThreads();
12508 (arg1)->SetPalette((wxPalette const &)*arg2);
12509
12510 wxPyEndAllowThreads(__tstate);
12511 if (PyErr_Occurred()) SWIG_fail;
12512 }
12513 Py_INCREF(Py_None); resultobj = Py_None;
12514 return resultobj;
12515 fail:
12516 return NULL;
12517 }
12518
12519
12520 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12521 PyObject *resultobj;
12522 wxDC *arg1 = (wxDC *) 0 ;
12523 int arg2 ;
12524 int arg3 ;
12525 int arg4 ;
12526 int arg5 ;
12527 PyObject * obj0 = 0 ;
12528 PyObject * obj1 = 0 ;
12529 PyObject * obj2 = 0 ;
12530 PyObject * obj3 = 0 ;
12531 PyObject * obj4 = 0 ;
12532 char *kwnames[] = {
12533 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12534 };
12535
12536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12539 arg2 = (int) SWIG_AsInt(obj1);
12540 if (PyErr_Occurred()) SWIG_fail;
12541 arg3 = (int) SWIG_AsInt(obj2);
12542 if (PyErr_Occurred()) SWIG_fail;
12543 arg4 = (int) SWIG_AsInt(obj3);
12544 if (PyErr_Occurred()) SWIG_fail;
12545 arg5 = (int) SWIG_AsInt(obj4);
12546 if (PyErr_Occurred()) SWIG_fail;
12547 {
12548 PyThreadState* __tstate = wxPyBeginAllowThreads();
12549 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12550
12551 wxPyEndAllowThreads(__tstate);
12552 if (PyErr_Occurred()) SWIG_fail;
12553 }
12554 Py_INCREF(Py_None); resultobj = Py_None;
12555 return resultobj;
12556 fail:
12557 return NULL;
12558 }
12559
12560
12561 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12562 PyObject *resultobj;
12563 wxDC *arg1 = (wxDC *) 0 ;
12564 wxPoint *arg2 = 0 ;
12565 wxSize *arg3 = 0 ;
12566 wxPoint temp2 ;
12567 wxSize temp3 ;
12568 PyObject * obj0 = 0 ;
12569 PyObject * obj1 = 0 ;
12570 PyObject * obj2 = 0 ;
12571 char *kwnames[] = {
12572 (char *) "self",(char *) "pt",(char *) "sz", NULL
12573 };
12574
12575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
12576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12578 {
12579 arg2 = &temp2;
12580 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12581 }
12582 {
12583 arg3 = &temp3;
12584 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12585 }
12586 {
12587 PyThreadState* __tstate = wxPyBeginAllowThreads();
12588 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12589
12590 wxPyEndAllowThreads(__tstate);
12591 if (PyErr_Occurred()) SWIG_fail;
12592 }
12593 Py_INCREF(Py_None); resultobj = Py_None;
12594 return resultobj;
12595 fail:
12596 return NULL;
12597 }
12598
12599
12600 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12601 PyObject *resultobj;
12602 wxDC *arg1 = (wxDC *) 0 ;
12603 wxRect *arg2 = 0 ;
12604 wxRect temp2 ;
12605 PyObject * obj0 = 0 ;
12606 PyObject * obj1 = 0 ;
12607 char *kwnames[] = {
12608 (char *) "self",(char *) "rect", NULL
12609 };
12610
12611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12614 {
12615 arg2 = &temp2;
12616 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12617 }
12618 {
12619 PyThreadState* __tstate = wxPyBeginAllowThreads();
12620 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12621
12622 wxPyEndAllowThreads(__tstate);
12623 if (PyErr_Occurred()) SWIG_fail;
12624 }
12625 Py_INCREF(Py_None); resultobj = Py_None;
12626 return resultobj;
12627 fail:
12628 return NULL;
12629 }
12630
12631
12632 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12633 PyObject *resultobj;
12634 wxDC *arg1 = (wxDC *) 0 ;
12635 wxRegion *arg2 = 0 ;
12636 PyObject * obj0 = 0 ;
12637 PyObject * obj1 = 0 ;
12638 char *kwnames[] = {
12639 (char *) "self",(char *) "region", NULL
12640 };
12641
12642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12645 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12646 SWIG_POINTER_EXCEPTION | 0)) == -1)
12647 SWIG_fail;
12648 if (arg2 == NULL) {
12649 PyErr_SetString(PyExc_TypeError,"null reference");
12650 SWIG_fail;
12651 }
12652 {
12653 PyThreadState* __tstate = wxPyBeginAllowThreads();
12654 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12655
12656 wxPyEndAllowThreads(__tstate);
12657 if (PyErr_Occurred()) SWIG_fail;
12658 }
12659 Py_INCREF(Py_None); resultobj = Py_None;
12660 return resultobj;
12661 fail:
12662 return NULL;
12663 }
12664
12665
12666 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12667 PyObject *resultobj;
12668 wxDC *arg1 = (wxDC *) 0 ;
12669 PyObject * obj0 = 0 ;
12670 char *kwnames[] = {
12671 (char *) "self", NULL
12672 };
12673
12674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12677 {
12678 PyThreadState* __tstate = wxPyBeginAllowThreads();
12679 (arg1)->DestroyClippingRegion();
12680
12681 wxPyEndAllowThreads(__tstate);
12682 if (PyErr_Occurred()) SWIG_fail;
12683 }
12684 Py_INCREF(Py_None); resultobj = Py_None;
12685 return resultobj;
12686 fail:
12687 return NULL;
12688 }
12689
12690
12691 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12692 PyObject *resultobj;
12693 wxDC *arg1 = (wxDC *) 0 ;
12694 int *arg2 = (int *) 0 ;
12695 int *arg3 = (int *) 0 ;
12696 int *arg4 = (int *) 0 ;
12697 int *arg5 = (int *) 0 ;
12698 int temp2 ;
12699 int temp3 ;
12700 int temp4 ;
12701 int temp5 ;
12702 PyObject * obj0 = 0 ;
12703 char *kwnames[] = {
12704 (char *) "self", NULL
12705 };
12706
12707 arg2 = &temp2;
12708 arg3 = &temp3;
12709 arg4 = &temp4;
12710 arg5 = &temp5;
12711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12714 {
12715 PyThreadState* __tstate = wxPyBeginAllowThreads();
12716 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12717
12718 wxPyEndAllowThreads(__tstate);
12719 if (PyErr_Occurred()) SWIG_fail;
12720 }
12721 Py_INCREF(Py_None); resultobj = Py_None;
12722 {
12723 PyObject *o = PyInt_FromLong((long) (*arg2));
12724 resultobj = t_output_helper(resultobj,o);
12725 }
12726 {
12727 PyObject *o = PyInt_FromLong((long) (*arg3));
12728 resultobj = t_output_helper(resultobj,o);
12729 }
12730 {
12731 PyObject *o = PyInt_FromLong((long) (*arg4));
12732 resultobj = t_output_helper(resultobj,o);
12733 }
12734 {
12735 PyObject *o = PyInt_FromLong((long) (*arg5));
12736 resultobj = t_output_helper(resultobj,o);
12737 }
12738 return resultobj;
12739 fail:
12740 return NULL;
12741 }
12742
12743
12744 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12745 PyObject *resultobj;
12746 wxDC *arg1 = (wxDC *) 0 ;
12747 wxRect result;
12748 PyObject * obj0 = 0 ;
12749 char *kwnames[] = {
12750 (char *) "self", NULL
12751 };
12752
12753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
12754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12756 {
12757 PyThreadState* __tstate = wxPyBeginAllowThreads();
12758 result = wxDC_GetClippingRect(arg1);
12759
12760 wxPyEndAllowThreads(__tstate);
12761 if (PyErr_Occurred()) SWIG_fail;
12762 }
12763 {
12764 wxRect * resultptr;
12765 resultptr = new wxRect((wxRect &) result);
12766 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12767 }
12768 return resultobj;
12769 fail:
12770 return NULL;
12771 }
12772
12773
12774 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12775 PyObject *resultobj;
12776 wxDC *arg1 = (wxDC *) 0 ;
12777 int result;
12778 PyObject * obj0 = 0 ;
12779 char *kwnames[] = {
12780 (char *) "self", NULL
12781 };
12782
12783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
12784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12786 {
12787 PyThreadState* __tstate = wxPyBeginAllowThreads();
12788 result = (int)((wxDC const *)arg1)->GetCharHeight();
12789
12790 wxPyEndAllowThreads(__tstate);
12791 if (PyErr_Occurred()) SWIG_fail;
12792 }
12793 resultobj = SWIG_FromInt((int)result);
12794 return resultobj;
12795 fail:
12796 return NULL;
12797 }
12798
12799
12800 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12801 PyObject *resultobj;
12802 wxDC *arg1 = (wxDC *) 0 ;
12803 int result;
12804 PyObject * obj0 = 0 ;
12805 char *kwnames[] = {
12806 (char *) "self", NULL
12807 };
12808
12809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
12810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12812 {
12813 PyThreadState* __tstate = wxPyBeginAllowThreads();
12814 result = (int)((wxDC const *)arg1)->GetCharWidth();
12815
12816 wxPyEndAllowThreads(__tstate);
12817 if (PyErr_Occurred()) SWIG_fail;
12818 }
12819 resultobj = SWIG_FromInt((int)result);
12820 return resultobj;
12821 fail:
12822 return NULL;
12823 }
12824
12825
12826 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12827 PyObject *resultobj;
12828 wxDC *arg1 = (wxDC *) 0 ;
12829 wxString *arg2 = 0 ;
12830 int *arg3 = (int *) 0 ;
12831 int *arg4 = (int *) 0 ;
12832 bool temp2 = False ;
12833 int temp3 ;
12834 int temp4 ;
12835 PyObject * obj0 = 0 ;
12836 PyObject * obj1 = 0 ;
12837 char *kwnames[] = {
12838 (char *) "self",(char *) "string", NULL
12839 };
12840
12841 arg3 = &temp3;
12842 arg4 = &temp4;
12843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
12844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12846 {
12847 arg2 = wxString_in_helper(obj1);
12848 if (arg2 == NULL) SWIG_fail;
12849 temp2 = True;
12850 }
12851 {
12852 PyThreadState* __tstate = wxPyBeginAllowThreads();
12853 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
12854
12855 wxPyEndAllowThreads(__tstate);
12856 if (PyErr_Occurred()) SWIG_fail;
12857 }
12858 Py_INCREF(Py_None); resultobj = Py_None;
12859 {
12860 PyObject *o = PyInt_FromLong((long) (*arg3));
12861 resultobj = t_output_helper(resultobj,o);
12862 }
12863 {
12864 PyObject *o = PyInt_FromLong((long) (*arg4));
12865 resultobj = t_output_helper(resultobj,o);
12866 }
12867 {
12868 if (temp2)
12869 delete arg2;
12870 }
12871 return resultobj;
12872 fail:
12873 {
12874 if (temp2)
12875 delete arg2;
12876 }
12877 return NULL;
12878 }
12879
12880
12881 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12882 PyObject *resultobj;
12883 wxDC *arg1 = (wxDC *) 0 ;
12884 wxString *arg2 = 0 ;
12885 int *arg3 = (int *) 0 ;
12886 int *arg4 = (int *) 0 ;
12887 int *arg5 = (int *) 0 ;
12888 int *arg6 = (int *) 0 ;
12889 wxFont *arg7 = (wxFont *) NULL ;
12890 bool temp2 = False ;
12891 int temp3 ;
12892 int temp4 ;
12893 int temp5 ;
12894 int temp6 ;
12895 PyObject * obj0 = 0 ;
12896 PyObject * obj1 = 0 ;
12897 PyObject * obj2 = 0 ;
12898 char *kwnames[] = {
12899 (char *) "self",(char *) "string",(char *) "font", NULL
12900 };
12901
12902 arg3 = &temp3;
12903 arg4 = &temp4;
12904 arg5 = &temp5;
12905 arg6 = &temp6;
12906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12909 {
12910 arg2 = wxString_in_helper(obj1);
12911 if (arg2 == NULL) SWIG_fail;
12912 temp2 = True;
12913 }
12914 if (obj2) {
12915 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
12916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12917 }
12918 {
12919 PyThreadState* __tstate = wxPyBeginAllowThreads();
12920 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
12921
12922 wxPyEndAllowThreads(__tstate);
12923 if (PyErr_Occurred()) SWIG_fail;
12924 }
12925 Py_INCREF(Py_None); resultobj = Py_None;
12926 {
12927 PyObject *o = PyInt_FromLong((long) (*arg3));
12928 resultobj = t_output_helper(resultobj,o);
12929 }
12930 {
12931 PyObject *o = PyInt_FromLong((long) (*arg4));
12932 resultobj = t_output_helper(resultobj,o);
12933 }
12934 {
12935 PyObject *o = PyInt_FromLong((long) (*arg5));
12936 resultobj = t_output_helper(resultobj,o);
12937 }
12938 {
12939 PyObject *o = PyInt_FromLong((long) (*arg6));
12940 resultobj = t_output_helper(resultobj,o);
12941 }
12942 {
12943 if (temp2)
12944 delete arg2;
12945 }
12946 return resultobj;
12947 fail:
12948 {
12949 if (temp2)
12950 delete arg2;
12951 }
12952 return NULL;
12953 }
12954
12955
12956 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12957 PyObject *resultobj;
12958 wxDC *arg1 = (wxDC *) 0 ;
12959 wxString *arg2 = 0 ;
12960 int *arg3 = (int *) 0 ;
12961 int *arg4 = (int *) 0 ;
12962 int *arg5 = (int *) 0 ;
12963 wxFont *arg6 = (wxFont *) NULL ;
12964 bool temp2 = False ;
12965 int temp3 ;
12966 int temp4 ;
12967 int temp5 ;
12968 PyObject * obj0 = 0 ;
12969 PyObject * obj1 = 0 ;
12970 PyObject * obj2 = 0 ;
12971 char *kwnames[] = {
12972 (char *) "self",(char *) "text",(char *) "font", NULL
12973 };
12974
12975 arg3 = &temp3;
12976 arg4 = &temp4;
12977 arg5 = &temp5;
12978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12981 {
12982 arg2 = wxString_in_helper(obj1);
12983 if (arg2 == NULL) SWIG_fail;
12984 temp2 = True;
12985 }
12986 if (obj2) {
12987 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
12988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12989 }
12990 {
12991 PyThreadState* __tstate = wxPyBeginAllowThreads();
12992 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
12993
12994 wxPyEndAllowThreads(__tstate);
12995 if (PyErr_Occurred()) SWIG_fail;
12996 }
12997 Py_INCREF(Py_None); resultobj = Py_None;
12998 {
12999 PyObject *o = PyInt_FromLong((long) (*arg3));
13000 resultobj = t_output_helper(resultobj,o);
13001 }
13002 {
13003 PyObject *o = PyInt_FromLong((long) (*arg4));
13004 resultobj = t_output_helper(resultobj,o);
13005 }
13006 {
13007 PyObject *o = PyInt_FromLong((long) (*arg5));
13008 resultobj = t_output_helper(resultobj,o);
13009 }
13010 {
13011 if (temp2)
13012 delete arg2;
13013 }
13014 return resultobj;
13015 fail:
13016 {
13017 if (temp2)
13018 delete arg2;
13019 }
13020 return NULL;
13021 }
13022
13023
13024 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
13025 PyObject *resultobj;
13026 wxDC *arg1 = (wxDC *) 0 ;
13027 wxString *arg2 = 0 ;
13028 wxArrayInt result;
13029 bool temp2 = False ;
13030 PyObject * obj0 = 0 ;
13031 PyObject * obj1 = 0 ;
13032 char *kwnames[] = {
13033 (char *) "self",(char *) "text", NULL
13034 };
13035
13036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13039 {
13040 arg2 = wxString_in_helper(obj1);
13041 if (arg2 == NULL) SWIG_fail;
13042 temp2 = True;
13043 }
13044 {
13045 PyThreadState* __tstate = wxPyBeginAllowThreads();
13046 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13047
13048 wxPyEndAllowThreads(__tstate);
13049 if (PyErr_Occurred()) SWIG_fail;
13050 }
13051 {
13052 resultobj = PyList_New(0);
13053 size_t idx;
13054 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13055 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13056 PyList_Append(resultobj, val);
13057 Py_DECREF(val);
13058 }
13059 }
13060 {
13061 if (temp2)
13062 delete arg2;
13063 }
13064 return resultobj;
13065 fail:
13066 {
13067 if (temp2)
13068 delete arg2;
13069 }
13070 return NULL;
13071 }
13072
13073
13074 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13075 PyObject *resultobj;
13076 wxDC *arg1 = (wxDC *) 0 ;
13077 wxSize result;
13078 PyObject * obj0 = 0 ;
13079 char *kwnames[] = {
13080 (char *) "self", NULL
13081 };
13082
13083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13086 {
13087 PyThreadState* __tstate = wxPyBeginAllowThreads();
13088 result = (arg1)->GetSize();
13089
13090 wxPyEndAllowThreads(__tstate);
13091 if (PyErr_Occurred()) SWIG_fail;
13092 }
13093 {
13094 wxSize * resultptr;
13095 resultptr = new wxSize((wxSize &) result);
13096 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13097 }
13098 return resultobj;
13099 fail:
13100 return NULL;
13101 }
13102
13103
13104 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13105 PyObject *resultobj;
13106 wxDC *arg1 = (wxDC *) 0 ;
13107 int *arg2 = (int *) 0 ;
13108 int *arg3 = (int *) 0 ;
13109 int temp2 ;
13110 int temp3 ;
13111 PyObject * obj0 = 0 ;
13112 char *kwnames[] = {
13113 (char *) "self", NULL
13114 };
13115
13116 arg2 = &temp2;
13117 arg3 = &temp3;
13118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13121 {
13122 PyThreadState* __tstate = wxPyBeginAllowThreads();
13123 (arg1)->GetSize(arg2,arg3);
13124
13125 wxPyEndAllowThreads(__tstate);
13126 if (PyErr_Occurred()) SWIG_fail;
13127 }
13128 Py_INCREF(Py_None); resultobj = Py_None;
13129 {
13130 PyObject *o = PyInt_FromLong((long) (*arg2));
13131 resultobj = t_output_helper(resultobj,o);
13132 }
13133 {
13134 PyObject *o = PyInt_FromLong((long) (*arg3));
13135 resultobj = t_output_helper(resultobj,o);
13136 }
13137 return resultobj;
13138 fail:
13139 return NULL;
13140 }
13141
13142
13143 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13144 PyObject *resultobj;
13145 wxDC *arg1 = (wxDC *) 0 ;
13146 wxSize result;
13147 PyObject * obj0 = 0 ;
13148 char *kwnames[] = {
13149 (char *) "self", NULL
13150 };
13151
13152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13155 {
13156 PyThreadState* __tstate = wxPyBeginAllowThreads();
13157 result = ((wxDC const *)arg1)->GetSizeMM();
13158
13159 wxPyEndAllowThreads(__tstate);
13160 if (PyErr_Occurred()) SWIG_fail;
13161 }
13162 {
13163 wxSize * resultptr;
13164 resultptr = new wxSize((wxSize &) result);
13165 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13166 }
13167 return resultobj;
13168 fail:
13169 return NULL;
13170 }
13171
13172
13173 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13174 PyObject *resultobj;
13175 wxDC *arg1 = (wxDC *) 0 ;
13176 int *arg2 = (int *) 0 ;
13177 int *arg3 = (int *) 0 ;
13178 int temp2 ;
13179 int temp3 ;
13180 PyObject * obj0 = 0 ;
13181 char *kwnames[] = {
13182 (char *) "self", NULL
13183 };
13184
13185 arg2 = &temp2;
13186 arg3 = &temp3;
13187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13190 {
13191 PyThreadState* __tstate = wxPyBeginAllowThreads();
13192 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13193
13194 wxPyEndAllowThreads(__tstate);
13195 if (PyErr_Occurred()) SWIG_fail;
13196 }
13197 Py_INCREF(Py_None); resultobj = Py_None;
13198 {
13199 PyObject *o = PyInt_FromLong((long) (*arg2));
13200 resultobj = t_output_helper(resultobj,o);
13201 }
13202 {
13203 PyObject *o = PyInt_FromLong((long) (*arg3));
13204 resultobj = t_output_helper(resultobj,o);
13205 }
13206 return resultobj;
13207 fail:
13208 return NULL;
13209 }
13210
13211
13212 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13213 PyObject *resultobj;
13214 wxDC *arg1 = (wxDC *) 0 ;
13215 int arg2 ;
13216 int result;
13217 PyObject * obj0 = 0 ;
13218 PyObject * obj1 = 0 ;
13219 char *kwnames[] = {
13220 (char *) "self",(char *) "x", NULL
13221 };
13222
13223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13226 arg2 = (int) SWIG_AsInt(obj1);
13227 if (PyErr_Occurred()) SWIG_fail;
13228 {
13229 PyThreadState* __tstate = wxPyBeginAllowThreads();
13230 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13231
13232 wxPyEndAllowThreads(__tstate);
13233 if (PyErr_Occurred()) SWIG_fail;
13234 }
13235 resultobj = SWIG_FromInt((int)result);
13236 return resultobj;
13237 fail:
13238 return NULL;
13239 }
13240
13241
13242 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13243 PyObject *resultobj;
13244 wxDC *arg1 = (wxDC *) 0 ;
13245 int arg2 ;
13246 int result;
13247 PyObject * obj0 = 0 ;
13248 PyObject * obj1 = 0 ;
13249 char *kwnames[] = {
13250 (char *) "self",(char *) "y", NULL
13251 };
13252
13253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13256 arg2 = (int) SWIG_AsInt(obj1);
13257 if (PyErr_Occurred()) SWIG_fail;
13258 {
13259 PyThreadState* __tstate = wxPyBeginAllowThreads();
13260 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13261
13262 wxPyEndAllowThreads(__tstate);
13263 if (PyErr_Occurred()) SWIG_fail;
13264 }
13265 resultobj = SWIG_FromInt((int)result);
13266 return resultobj;
13267 fail:
13268 return NULL;
13269 }
13270
13271
13272 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13273 PyObject *resultobj;
13274 wxDC *arg1 = (wxDC *) 0 ;
13275 int arg2 ;
13276 int result;
13277 PyObject * obj0 = 0 ;
13278 PyObject * obj1 = 0 ;
13279 char *kwnames[] = {
13280 (char *) "self",(char *) "x", NULL
13281 };
13282
13283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13286 arg2 = (int) SWIG_AsInt(obj1);
13287 if (PyErr_Occurred()) SWIG_fail;
13288 {
13289 PyThreadState* __tstate = wxPyBeginAllowThreads();
13290 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13291
13292 wxPyEndAllowThreads(__tstate);
13293 if (PyErr_Occurred()) SWIG_fail;
13294 }
13295 resultobj = SWIG_FromInt((int)result);
13296 return resultobj;
13297 fail:
13298 return NULL;
13299 }
13300
13301
13302 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13303 PyObject *resultobj;
13304 wxDC *arg1 = (wxDC *) 0 ;
13305 int arg2 ;
13306 int result;
13307 PyObject * obj0 = 0 ;
13308 PyObject * obj1 = 0 ;
13309 char *kwnames[] = {
13310 (char *) "self",(char *) "y", NULL
13311 };
13312
13313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13316 arg2 = (int) SWIG_AsInt(obj1);
13317 if (PyErr_Occurred()) SWIG_fail;
13318 {
13319 PyThreadState* __tstate = wxPyBeginAllowThreads();
13320 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13321
13322 wxPyEndAllowThreads(__tstate);
13323 if (PyErr_Occurred()) SWIG_fail;
13324 }
13325 resultobj = SWIG_FromInt((int)result);
13326 return resultobj;
13327 fail:
13328 return NULL;
13329 }
13330
13331
13332 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13333 PyObject *resultobj;
13334 wxDC *arg1 = (wxDC *) 0 ;
13335 int arg2 ;
13336 int result;
13337 PyObject * obj0 = 0 ;
13338 PyObject * obj1 = 0 ;
13339 char *kwnames[] = {
13340 (char *) "self",(char *) "x", NULL
13341 };
13342
13343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13346 arg2 = (int) SWIG_AsInt(obj1);
13347 if (PyErr_Occurred()) SWIG_fail;
13348 {
13349 PyThreadState* __tstate = wxPyBeginAllowThreads();
13350 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13351
13352 wxPyEndAllowThreads(__tstate);
13353 if (PyErr_Occurred()) SWIG_fail;
13354 }
13355 resultobj = SWIG_FromInt((int)result);
13356 return resultobj;
13357 fail:
13358 return NULL;
13359 }
13360
13361
13362 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13363 PyObject *resultobj;
13364 wxDC *arg1 = (wxDC *) 0 ;
13365 int arg2 ;
13366 int result;
13367 PyObject * obj0 = 0 ;
13368 PyObject * obj1 = 0 ;
13369 char *kwnames[] = {
13370 (char *) "self",(char *) "y", NULL
13371 };
13372
13373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13376 arg2 = (int) SWIG_AsInt(obj1);
13377 if (PyErr_Occurred()) SWIG_fail;
13378 {
13379 PyThreadState* __tstate = wxPyBeginAllowThreads();
13380 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13381
13382 wxPyEndAllowThreads(__tstate);
13383 if (PyErr_Occurred()) SWIG_fail;
13384 }
13385 resultobj = SWIG_FromInt((int)result);
13386 return resultobj;
13387 fail:
13388 return NULL;
13389 }
13390
13391
13392 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13393 PyObject *resultobj;
13394 wxDC *arg1 = (wxDC *) 0 ;
13395 int arg2 ;
13396 int result;
13397 PyObject * obj0 = 0 ;
13398 PyObject * obj1 = 0 ;
13399 char *kwnames[] = {
13400 (char *) "self",(char *) "x", NULL
13401 };
13402
13403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13406 arg2 = (int) SWIG_AsInt(obj1);
13407 if (PyErr_Occurred()) SWIG_fail;
13408 {
13409 PyThreadState* __tstate = wxPyBeginAllowThreads();
13410 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13411
13412 wxPyEndAllowThreads(__tstate);
13413 if (PyErr_Occurred()) SWIG_fail;
13414 }
13415 resultobj = SWIG_FromInt((int)result);
13416 return resultobj;
13417 fail:
13418 return NULL;
13419 }
13420
13421
13422 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13423 PyObject *resultobj;
13424 wxDC *arg1 = (wxDC *) 0 ;
13425 int arg2 ;
13426 int result;
13427 PyObject * obj0 = 0 ;
13428 PyObject * obj1 = 0 ;
13429 char *kwnames[] = {
13430 (char *) "self",(char *) "y", NULL
13431 };
13432
13433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13436 arg2 = (int) SWIG_AsInt(obj1);
13437 if (PyErr_Occurred()) SWIG_fail;
13438 {
13439 PyThreadState* __tstate = wxPyBeginAllowThreads();
13440 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13441
13442 wxPyEndAllowThreads(__tstate);
13443 if (PyErr_Occurred()) SWIG_fail;
13444 }
13445 resultobj = SWIG_FromInt((int)result);
13446 return resultobj;
13447 fail:
13448 return NULL;
13449 }
13450
13451
13452 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13453 PyObject *resultobj;
13454 wxDC *arg1 = (wxDC *) 0 ;
13455 bool result;
13456 PyObject * obj0 = 0 ;
13457 char *kwnames[] = {
13458 (char *) "self", NULL
13459 };
13460
13461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13464 {
13465 PyThreadState* __tstate = wxPyBeginAllowThreads();
13466 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13467
13468 wxPyEndAllowThreads(__tstate);
13469 if (PyErr_Occurred()) SWIG_fail;
13470 }
13471 {
13472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13473 }
13474 return resultobj;
13475 fail:
13476 return NULL;
13477 }
13478
13479
13480 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13481 PyObject *resultobj;
13482 wxDC *arg1 = (wxDC *) 0 ;
13483 bool result;
13484 PyObject * obj0 = 0 ;
13485 char *kwnames[] = {
13486 (char *) "self", NULL
13487 };
13488
13489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13492 {
13493 PyThreadState* __tstate = wxPyBeginAllowThreads();
13494 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13495
13496 wxPyEndAllowThreads(__tstate);
13497 if (PyErr_Occurred()) SWIG_fail;
13498 }
13499 {
13500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13501 }
13502 return resultobj;
13503 fail:
13504 return NULL;
13505 }
13506
13507
13508 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13509 PyObject *resultobj;
13510 wxDC *arg1 = (wxDC *) 0 ;
13511 int result;
13512 PyObject * obj0 = 0 ;
13513 char *kwnames[] = {
13514 (char *) "self", NULL
13515 };
13516
13517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13520 {
13521 PyThreadState* __tstate = wxPyBeginAllowThreads();
13522 result = (int)((wxDC const *)arg1)->GetDepth();
13523
13524 wxPyEndAllowThreads(__tstate);
13525 if (PyErr_Occurred()) SWIG_fail;
13526 }
13527 resultobj = SWIG_FromInt((int)result);
13528 return resultobj;
13529 fail:
13530 return NULL;
13531 }
13532
13533
13534 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13535 PyObject *resultobj;
13536 wxDC *arg1 = (wxDC *) 0 ;
13537 wxSize result;
13538 PyObject * obj0 = 0 ;
13539 char *kwnames[] = {
13540 (char *) "self", NULL
13541 };
13542
13543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13546 {
13547 PyThreadState* __tstate = wxPyBeginAllowThreads();
13548 result = ((wxDC const *)arg1)->GetPPI();
13549
13550 wxPyEndAllowThreads(__tstate);
13551 if (PyErr_Occurred()) SWIG_fail;
13552 }
13553 {
13554 wxSize * resultptr;
13555 resultptr = new wxSize((wxSize &) result);
13556 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13557 }
13558 return resultobj;
13559 fail:
13560 return NULL;
13561 }
13562
13563
13564 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13565 PyObject *resultobj;
13566 wxDC *arg1 = (wxDC *) 0 ;
13567 bool result;
13568 PyObject * obj0 = 0 ;
13569 char *kwnames[] = {
13570 (char *) "self", NULL
13571 };
13572
13573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13576 {
13577 PyThreadState* __tstate = wxPyBeginAllowThreads();
13578 result = (bool)((wxDC const *)arg1)->Ok();
13579
13580 wxPyEndAllowThreads(__tstate);
13581 if (PyErr_Occurred()) SWIG_fail;
13582 }
13583 {
13584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13585 }
13586 return resultobj;
13587 fail:
13588 return NULL;
13589 }
13590
13591
13592 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13593 PyObject *resultobj;
13594 wxDC *arg1 = (wxDC *) 0 ;
13595 int result;
13596 PyObject * obj0 = 0 ;
13597 char *kwnames[] = {
13598 (char *) "self", NULL
13599 };
13600
13601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13604 {
13605 PyThreadState* __tstate = wxPyBeginAllowThreads();
13606 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13607
13608 wxPyEndAllowThreads(__tstate);
13609 if (PyErr_Occurred()) SWIG_fail;
13610 }
13611 resultobj = SWIG_FromInt((int)result);
13612 return resultobj;
13613 fail:
13614 return NULL;
13615 }
13616
13617
13618 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13619 PyObject *resultobj;
13620 wxDC *arg1 = (wxDC *) 0 ;
13621 wxBrush *result;
13622 PyObject * obj0 = 0 ;
13623 char *kwnames[] = {
13624 (char *) "self", NULL
13625 };
13626
13627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13630 {
13631 PyThreadState* __tstate = wxPyBeginAllowThreads();
13632 {
13633 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13634 result = (wxBrush *) &_result_ref;
13635 }
13636
13637 wxPyEndAllowThreads(__tstate);
13638 if (PyErr_Occurred()) SWIG_fail;
13639 }
13640 {
13641 wxBrush* resultptr = new wxBrush(*result);
13642 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13643 }
13644 return resultobj;
13645 fail:
13646 return NULL;
13647 }
13648
13649
13650 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13651 PyObject *resultobj;
13652 wxDC *arg1 = (wxDC *) 0 ;
13653 wxBrush *result;
13654 PyObject * obj0 = 0 ;
13655 char *kwnames[] = {
13656 (char *) "self", NULL
13657 };
13658
13659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13662 {
13663 PyThreadState* __tstate = wxPyBeginAllowThreads();
13664 {
13665 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13666 result = (wxBrush *) &_result_ref;
13667 }
13668
13669 wxPyEndAllowThreads(__tstate);
13670 if (PyErr_Occurred()) SWIG_fail;
13671 }
13672 {
13673 wxBrush* resultptr = new wxBrush(*result);
13674 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13675 }
13676 return resultobj;
13677 fail:
13678 return NULL;
13679 }
13680
13681
13682 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13683 PyObject *resultobj;
13684 wxDC *arg1 = (wxDC *) 0 ;
13685 wxFont *result;
13686 PyObject * obj0 = 0 ;
13687 char *kwnames[] = {
13688 (char *) "self", NULL
13689 };
13690
13691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13694 {
13695 PyThreadState* __tstate = wxPyBeginAllowThreads();
13696 {
13697 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13698 result = (wxFont *) &_result_ref;
13699 }
13700
13701 wxPyEndAllowThreads(__tstate);
13702 if (PyErr_Occurred()) SWIG_fail;
13703 }
13704 {
13705 wxFont* resultptr = new wxFont(*result);
13706 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
13707 }
13708 return resultobj;
13709 fail:
13710 return NULL;
13711 }
13712
13713
13714 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13715 PyObject *resultobj;
13716 wxDC *arg1 = (wxDC *) 0 ;
13717 wxPen *result;
13718 PyObject * obj0 = 0 ;
13719 char *kwnames[] = {
13720 (char *) "self", NULL
13721 };
13722
13723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13726 {
13727 PyThreadState* __tstate = wxPyBeginAllowThreads();
13728 {
13729 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13730 result = (wxPen *) &_result_ref;
13731 }
13732
13733 wxPyEndAllowThreads(__tstate);
13734 if (PyErr_Occurred()) SWIG_fail;
13735 }
13736 {
13737 wxPen* resultptr = new wxPen(*result);
13738 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
13739 }
13740 return resultobj;
13741 fail:
13742 return NULL;
13743 }
13744
13745
13746 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13747 PyObject *resultobj;
13748 wxDC *arg1 = (wxDC *) 0 ;
13749 wxColour *result;
13750 PyObject * obj0 = 0 ;
13751 char *kwnames[] = {
13752 (char *) "self", NULL
13753 };
13754
13755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13758 {
13759 PyThreadState* __tstate = wxPyBeginAllowThreads();
13760 {
13761 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13762 result = (wxColour *) &_result_ref;
13763 }
13764
13765 wxPyEndAllowThreads(__tstate);
13766 if (PyErr_Occurred()) SWIG_fail;
13767 }
13768 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13769 return resultobj;
13770 fail:
13771 return NULL;
13772 }
13773
13774
13775 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13776 PyObject *resultobj;
13777 wxDC *arg1 = (wxDC *) 0 ;
13778 wxColour *result;
13779 PyObject * obj0 = 0 ;
13780 char *kwnames[] = {
13781 (char *) "self", NULL
13782 };
13783
13784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
13785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13787 {
13788 PyThreadState* __tstate = wxPyBeginAllowThreads();
13789 {
13790 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13791 result = (wxColour *) &_result_ref;
13792 }
13793
13794 wxPyEndAllowThreads(__tstate);
13795 if (PyErr_Occurred()) SWIG_fail;
13796 }
13797 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13798 return resultobj;
13799 fail:
13800 return NULL;
13801 }
13802
13803
13804 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13805 PyObject *resultobj;
13806 wxDC *arg1 = (wxDC *) 0 ;
13807 wxColour *arg2 = 0 ;
13808 wxColour temp2 ;
13809 PyObject * obj0 = 0 ;
13810 PyObject * obj1 = 0 ;
13811 char *kwnames[] = {
13812 (char *) "self",(char *) "colour", NULL
13813 };
13814
13815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
13816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13818 {
13819 arg2 = &temp2;
13820 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13821 }
13822 {
13823 PyThreadState* __tstate = wxPyBeginAllowThreads();
13824 (arg1)->SetTextForeground((wxColour const &)*arg2);
13825
13826 wxPyEndAllowThreads(__tstate);
13827 if (PyErr_Occurred()) SWIG_fail;
13828 }
13829 Py_INCREF(Py_None); resultobj = Py_None;
13830 return resultobj;
13831 fail:
13832 return NULL;
13833 }
13834
13835
13836 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13837 PyObject *resultobj;
13838 wxDC *arg1 = (wxDC *) 0 ;
13839 wxColour *arg2 = 0 ;
13840 wxColour temp2 ;
13841 PyObject * obj0 = 0 ;
13842 PyObject * obj1 = 0 ;
13843 char *kwnames[] = {
13844 (char *) "self",(char *) "colour", NULL
13845 };
13846
13847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
13848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13850 {
13851 arg2 = &temp2;
13852 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13853 }
13854 {
13855 PyThreadState* __tstate = wxPyBeginAllowThreads();
13856 (arg1)->SetTextBackground((wxColour const &)*arg2);
13857
13858 wxPyEndAllowThreads(__tstate);
13859 if (PyErr_Occurred()) SWIG_fail;
13860 }
13861 Py_INCREF(Py_None); resultobj = Py_None;
13862 return resultobj;
13863 fail:
13864 return NULL;
13865 }
13866
13867
13868 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13869 PyObject *resultobj;
13870 wxDC *arg1 = (wxDC *) 0 ;
13871 int result;
13872 PyObject * obj0 = 0 ;
13873 char *kwnames[] = {
13874 (char *) "self", NULL
13875 };
13876
13877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
13878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13880 {
13881 PyThreadState* __tstate = wxPyBeginAllowThreads();
13882 result = (int)((wxDC const *)arg1)->GetMapMode();
13883
13884 wxPyEndAllowThreads(__tstate);
13885 if (PyErr_Occurred()) SWIG_fail;
13886 }
13887 resultobj = SWIG_FromInt((int)result);
13888 return resultobj;
13889 fail:
13890 return NULL;
13891 }
13892
13893
13894 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13895 PyObject *resultobj;
13896 wxDC *arg1 = (wxDC *) 0 ;
13897 int arg2 ;
13898 PyObject * obj0 = 0 ;
13899 PyObject * obj1 = 0 ;
13900 char *kwnames[] = {
13901 (char *) "self",(char *) "mode", NULL
13902 };
13903
13904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
13905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13907 arg2 = (int) SWIG_AsInt(obj1);
13908 if (PyErr_Occurred()) SWIG_fail;
13909 {
13910 PyThreadState* __tstate = wxPyBeginAllowThreads();
13911 (arg1)->SetMapMode(arg2);
13912
13913 wxPyEndAllowThreads(__tstate);
13914 if (PyErr_Occurred()) SWIG_fail;
13915 }
13916 Py_INCREF(Py_None); resultobj = Py_None;
13917 return resultobj;
13918 fail:
13919 return NULL;
13920 }
13921
13922
13923 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13924 PyObject *resultobj;
13925 wxDC *arg1 = (wxDC *) 0 ;
13926 double *arg2 = (double *) 0 ;
13927 double *arg3 = (double *) 0 ;
13928 double temp2 ;
13929 double temp3 ;
13930 PyObject * obj0 = 0 ;
13931 char *kwnames[] = {
13932 (char *) "self", NULL
13933 };
13934
13935 arg2 = &temp2;
13936 arg3 = &temp3;
13937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
13938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13940 {
13941 PyThreadState* __tstate = wxPyBeginAllowThreads();
13942 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
13943
13944 wxPyEndAllowThreads(__tstate);
13945 if (PyErr_Occurred()) SWIG_fail;
13946 }
13947 Py_INCREF(Py_None); resultobj = Py_None;
13948 {
13949 PyObject *o = PyFloat_FromDouble((double) (*arg2));
13950 resultobj = t_output_helper(resultobj,o);
13951 }
13952 {
13953 PyObject *o = PyFloat_FromDouble((double) (*arg3));
13954 resultobj = t_output_helper(resultobj,o);
13955 }
13956 return resultobj;
13957 fail:
13958 return NULL;
13959 }
13960
13961
13962 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13963 PyObject *resultobj;
13964 wxDC *arg1 = (wxDC *) 0 ;
13965 double arg2 ;
13966 double arg3 ;
13967 PyObject * obj0 = 0 ;
13968 PyObject * obj1 = 0 ;
13969 PyObject * obj2 = 0 ;
13970 char *kwnames[] = {
13971 (char *) "self",(char *) "x",(char *) "y", NULL
13972 };
13973
13974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
13975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13977 arg2 = (double) SWIG_AsDouble(obj1);
13978 if (PyErr_Occurred()) SWIG_fail;
13979 arg3 = (double) SWIG_AsDouble(obj2);
13980 if (PyErr_Occurred()) SWIG_fail;
13981 {
13982 PyThreadState* __tstate = wxPyBeginAllowThreads();
13983 (arg1)->SetUserScale(arg2,arg3);
13984
13985 wxPyEndAllowThreads(__tstate);
13986 if (PyErr_Occurred()) SWIG_fail;
13987 }
13988 Py_INCREF(Py_None); resultobj = Py_None;
13989 return resultobj;
13990 fail:
13991 return NULL;
13992 }
13993
13994
13995 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13996 PyObject *resultobj;
13997 wxDC *arg1 = (wxDC *) 0 ;
13998 double *arg2 = (double *) 0 ;
13999 double *arg3 = (double *) 0 ;
14000 double temp2 ;
14001 double temp3 ;
14002 PyObject * obj0 = 0 ;
14003 char *kwnames[] = {
14004 (char *) "self", NULL
14005 };
14006
14007 arg2 = &temp2;
14008 arg3 = &temp3;
14009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14012 {
14013 PyThreadState* __tstate = wxPyBeginAllowThreads();
14014 (arg1)->GetLogicalScale(arg2,arg3);
14015
14016 wxPyEndAllowThreads(__tstate);
14017 if (PyErr_Occurred()) SWIG_fail;
14018 }
14019 Py_INCREF(Py_None); resultobj = Py_None;
14020 {
14021 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14022 resultobj = t_output_helper(resultobj,o);
14023 }
14024 {
14025 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14026 resultobj = t_output_helper(resultobj,o);
14027 }
14028 return resultobj;
14029 fail:
14030 return NULL;
14031 }
14032
14033
14034 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14035 PyObject *resultobj;
14036 wxDC *arg1 = (wxDC *) 0 ;
14037 double arg2 ;
14038 double arg3 ;
14039 PyObject * obj0 = 0 ;
14040 PyObject * obj1 = 0 ;
14041 PyObject * obj2 = 0 ;
14042 char *kwnames[] = {
14043 (char *) "self",(char *) "x",(char *) "y", NULL
14044 };
14045
14046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14049 arg2 = (double) SWIG_AsDouble(obj1);
14050 if (PyErr_Occurred()) SWIG_fail;
14051 arg3 = (double) SWIG_AsDouble(obj2);
14052 if (PyErr_Occurred()) SWIG_fail;
14053 {
14054 PyThreadState* __tstate = wxPyBeginAllowThreads();
14055 (arg1)->SetLogicalScale(arg2,arg3);
14056
14057 wxPyEndAllowThreads(__tstate);
14058 if (PyErr_Occurred()) SWIG_fail;
14059 }
14060 Py_INCREF(Py_None); resultobj = Py_None;
14061 return resultobj;
14062 fail:
14063 return NULL;
14064 }
14065
14066
14067 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14068 PyObject *resultobj;
14069 wxDC *arg1 = (wxDC *) 0 ;
14070 wxPoint result;
14071 PyObject * obj0 = 0 ;
14072 char *kwnames[] = {
14073 (char *) "self", NULL
14074 };
14075
14076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14079 {
14080 PyThreadState* __tstate = wxPyBeginAllowThreads();
14081 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14082
14083 wxPyEndAllowThreads(__tstate);
14084 if (PyErr_Occurred()) SWIG_fail;
14085 }
14086 {
14087 wxPoint * resultptr;
14088 resultptr = new wxPoint((wxPoint &) result);
14089 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14090 }
14091 return resultobj;
14092 fail:
14093 return NULL;
14094 }
14095
14096
14097 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14098 PyObject *resultobj;
14099 wxDC *arg1 = (wxDC *) 0 ;
14100 int *arg2 = (int *) 0 ;
14101 int *arg3 = (int *) 0 ;
14102 int temp2 ;
14103 int temp3 ;
14104 PyObject * obj0 = 0 ;
14105 char *kwnames[] = {
14106 (char *) "self", NULL
14107 };
14108
14109 arg2 = &temp2;
14110 arg3 = &temp3;
14111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14114 {
14115 PyThreadState* __tstate = wxPyBeginAllowThreads();
14116 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14117
14118 wxPyEndAllowThreads(__tstate);
14119 if (PyErr_Occurred()) SWIG_fail;
14120 }
14121 Py_INCREF(Py_None); resultobj = Py_None;
14122 {
14123 PyObject *o = PyInt_FromLong((long) (*arg2));
14124 resultobj = t_output_helper(resultobj,o);
14125 }
14126 {
14127 PyObject *o = PyInt_FromLong((long) (*arg3));
14128 resultobj = t_output_helper(resultobj,o);
14129 }
14130 return resultobj;
14131 fail:
14132 return NULL;
14133 }
14134
14135
14136 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14137 PyObject *resultobj;
14138 wxDC *arg1 = (wxDC *) 0 ;
14139 int arg2 ;
14140 int arg3 ;
14141 PyObject * obj0 = 0 ;
14142 PyObject * obj1 = 0 ;
14143 PyObject * obj2 = 0 ;
14144 char *kwnames[] = {
14145 (char *) "self",(char *) "x",(char *) "y", NULL
14146 };
14147
14148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14151 arg2 = (int) SWIG_AsInt(obj1);
14152 if (PyErr_Occurred()) SWIG_fail;
14153 arg3 = (int) SWIG_AsInt(obj2);
14154 if (PyErr_Occurred()) SWIG_fail;
14155 {
14156 PyThreadState* __tstate = wxPyBeginAllowThreads();
14157 (arg1)->SetLogicalOrigin(arg2,arg3);
14158
14159 wxPyEndAllowThreads(__tstate);
14160 if (PyErr_Occurred()) SWIG_fail;
14161 }
14162 Py_INCREF(Py_None); resultobj = Py_None;
14163 return resultobj;
14164 fail:
14165 return NULL;
14166 }
14167
14168
14169 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14170 PyObject *resultobj;
14171 wxDC *arg1 = (wxDC *) 0 ;
14172 wxPoint result;
14173 PyObject * obj0 = 0 ;
14174 char *kwnames[] = {
14175 (char *) "self", NULL
14176 };
14177
14178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14181 {
14182 PyThreadState* __tstate = wxPyBeginAllowThreads();
14183 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14184
14185 wxPyEndAllowThreads(__tstate);
14186 if (PyErr_Occurred()) SWIG_fail;
14187 }
14188 {
14189 wxPoint * resultptr;
14190 resultptr = new wxPoint((wxPoint &) result);
14191 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14192 }
14193 return resultobj;
14194 fail:
14195 return NULL;
14196 }
14197
14198
14199 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14200 PyObject *resultobj;
14201 wxDC *arg1 = (wxDC *) 0 ;
14202 int *arg2 = (int *) 0 ;
14203 int *arg3 = (int *) 0 ;
14204 int temp2 ;
14205 int temp3 ;
14206 PyObject * obj0 = 0 ;
14207 char *kwnames[] = {
14208 (char *) "self", NULL
14209 };
14210
14211 arg2 = &temp2;
14212 arg3 = &temp3;
14213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14216 {
14217 PyThreadState* __tstate = wxPyBeginAllowThreads();
14218 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14219
14220 wxPyEndAllowThreads(__tstate);
14221 if (PyErr_Occurred()) SWIG_fail;
14222 }
14223 Py_INCREF(Py_None); resultobj = Py_None;
14224 {
14225 PyObject *o = PyInt_FromLong((long) (*arg2));
14226 resultobj = t_output_helper(resultobj,o);
14227 }
14228 {
14229 PyObject *o = PyInt_FromLong((long) (*arg3));
14230 resultobj = t_output_helper(resultobj,o);
14231 }
14232 return resultobj;
14233 fail:
14234 return NULL;
14235 }
14236
14237
14238 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14239 PyObject *resultobj;
14240 wxDC *arg1 = (wxDC *) 0 ;
14241 int arg2 ;
14242 int arg3 ;
14243 PyObject * obj0 = 0 ;
14244 PyObject * obj1 = 0 ;
14245 PyObject * obj2 = 0 ;
14246 char *kwnames[] = {
14247 (char *) "self",(char *) "x",(char *) "y", NULL
14248 };
14249
14250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14253 arg2 = (int) SWIG_AsInt(obj1);
14254 if (PyErr_Occurred()) SWIG_fail;
14255 arg3 = (int) SWIG_AsInt(obj2);
14256 if (PyErr_Occurred()) SWIG_fail;
14257 {
14258 PyThreadState* __tstate = wxPyBeginAllowThreads();
14259 (arg1)->SetDeviceOrigin(arg2,arg3);
14260
14261 wxPyEndAllowThreads(__tstate);
14262 if (PyErr_Occurred()) SWIG_fail;
14263 }
14264 Py_INCREF(Py_None); resultobj = Py_None;
14265 return resultobj;
14266 fail:
14267 return NULL;
14268 }
14269
14270
14271 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14272 PyObject *resultobj;
14273 wxDC *arg1 = (wxDC *) 0 ;
14274 bool arg2 ;
14275 bool arg3 ;
14276 PyObject * obj0 = 0 ;
14277 PyObject * obj1 = 0 ;
14278 PyObject * obj2 = 0 ;
14279 char *kwnames[] = {
14280 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14281 };
14282
14283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14286 arg2 = (bool) SWIG_AsBool(obj1);
14287 if (PyErr_Occurred()) SWIG_fail;
14288 arg3 = (bool) SWIG_AsBool(obj2);
14289 if (PyErr_Occurred()) SWIG_fail;
14290 {
14291 PyThreadState* __tstate = wxPyBeginAllowThreads();
14292 (arg1)->SetAxisOrientation(arg2,arg3);
14293
14294 wxPyEndAllowThreads(__tstate);
14295 if (PyErr_Occurred()) SWIG_fail;
14296 }
14297 Py_INCREF(Py_None); resultobj = Py_None;
14298 return resultobj;
14299 fail:
14300 return NULL;
14301 }
14302
14303
14304 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14305 PyObject *resultobj;
14306 wxDC *arg1 = (wxDC *) 0 ;
14307 int result;
14308 PyObject * obj0 = 0 ;
14309 char *kwnames[] = {
14310 (char *) "self", NULL
14311 };
14312
14313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14316 {
14317 PyThreadState* __tstate = wxPyBeginAllowThreads();
14318 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14319
14320 wxPyEndAllowThreads(__tstate);
14321 if (PyErr_Occurred()) SWIG_fail;
14322 }
14323 resultobj = SWIG_FromInt((int)result);
14324 return resultobj;
14325 fail:
14326 return NULL;
14327 }
14328
14329
14330 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14331 PyObject *resultobj;
14332 wxDC *arg1 = (wxDC *) 0 ;
14333 int arg2 ;
14334 PyObject * obj0 = 0 ;
14335 PyObject * obj1 = 0 ;
14336 char *kwnames[] = {
14337 (char *) "self",(char *) "function", NULL
14338 };
14339
14340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14343 arg2 = (int) SWIG_AsInt(obj1);
14344 if (PyErr_Occurred()) SWIG_fail;
14345 {
14346 PyThreadState* __tstate = wxPyBeginAllowThreads();
14347 (arg1)->SetLogicalFunction(arg2);
14348
14349 wxPyEndAllowThreads(__tstate);
14350 if (PyErr_Occurred()) SWIG_fail;
14351 }
14352 Py_INCREF(Py_None); resultobj = Py_None;
14353 return resultobj;
14354 fail:
14355 return NULL;
14356 }
14357
14358
14359 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14360 PyObject *resultobj;
14361 wxDC *arg1 = (wxDC *) 0 ;
14362 bool arg2 ;
14363 PyObject * obj0 = 0 ;
14364 PyObject * obj1 = 0 ;
14365 char *kwnames[] = {
14366 (char *) "self",(char *) "opt", NULL
14367 };
14368
14369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14372 arg2 = (bool) SWIG_AsBool(obj1);
14373 if (PyErr_Occurred()) SWIG_fail;
14374 {
14375 PyThreadState* __tstate = wxPyBeginAllowThreads();
14376 (arg1)->SetOptimization(arg2);
14377
14378 wxPyEndAllowThreads(__tstate);
14379 if (PyErr_Occurred()) SWIG_fail;
14380 }
14381 Py_INCREF(Py_None); resultobj = Py_None;
14382 return resultobj;
14383 fail:
14384 return NULL;
14385 }
14386
14387
14388 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14389 PyObject *resultobj;
14390 wxDC *arg1 = (wxDC *) 0 ;
14391 bool result;
14392 PyObject * obj0 = 0 ;
14393 char *kwnames[] = {
14394 (char *) "self", NULL
14395 };
14396
14397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14400 {
14401 PyThreadState* __tstate = wxPyBeginAllowThreads();
14402 result = (bool)(arg1)->GetOptimization();
14403
14404 wxPyEndAllowThreads(__tstate);
14405 if (PyErr_Occurred()) SWIG_fail;
14406 }
14407 {
14408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14409 }
14410 return resultobj;
14411 fail:
14412 return NULL;
14413 }
14414
14415
14416 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14417 PyObject *resultobj;
14418 wxDC *arg1 = (wxDC *) 0 ;
14419 int arg2 ;
14420 int arg3 ;
14421 PyObject * obj0 = 0 ;
14422 PyObject * obj1 = 0 ;
14423 PyObject * obj2 = 0 ;
14424 char *kwnames[] = {
14425 (char *) "self",(char *) "x",(char *) "y", NULL
14426 };
14427
14428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14431 arg2 = (int) SWIG_AsInt(obj1);
14432 if (PyErr_Occurred()) SWIG_fail;
14433 arg3 = (int) SWIG_AsInt(obj2);
14434 if (PyErr_Occurred()) SWIG_fail;
14435 {
14436 PyThreadState* __tstate = wxPyBeginAllowThreads();
14437 (arg1)->CalcBoundingBox(arg2,arg3);
14438
14439 wxPyEndAllowThreads(__tstate);
14440 if (PyErr_Occurred()) SWIG_fail;
14441 }
14442 Py_INCREF(Py_None); resultobj = Py_None;
14443 return resultobj;
14444 fail:
14445 return NULL;
14446 }
14447
14448
14449 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14450 PyObject *resultobj;
14451 wxDC *arg1 = (wxDC *) 0 ;
14452 PyObject * obj0 = 0 ;
14453 char *kwnames[] = {
14454 (char *) "self", NULL
14455 };
14456
14457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14460 {
14461 PyThreadState* __tstate = wxPyBeginAllowThreads();
14462 (arg1)->ResetBoundingBox();
14463
14464 wxPyEndAllowThreads(__tstate);
14465 if (PyErr_Occurred()) SWIG_fail;
14466 }
14467 Py_INCREF(Py_None); resultobj = Py_None;
14468 return resultobj;
14469 fail:
14470 return NULL;
14471 }
14472
14473
14474 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14475 PyObject *resultobj;
14476 wxDC *arg1 = (wxDC *) 0 ;
14477 int result;
14478 PyObject * obj0 = 0 ;
14479 char *kwnames[] = {
14480 (char *) "self", NULL
14481 };
14482
14483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14486 {
14487 PyThreadState* __tstate = wxPyBeginAllowThreads();
14488 result = (int)((wxDC const *)arg1)->MinX();
14489
14490 wxPyEndAllowThreads(__tstate);
14491 if (PyErr_Occurred()) SWIG_fail;
14492 }
14493 resultobj = SWIG_FromInt((int)result);
14494 return resultobj;
14495 fail:
14496 return NULL;
14497 }
14498
14499
14500 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14501 PyObject *resultobj;
14502 wxDC *arg1 = (wxDC *) 0 ;
14503 int result;
14504 PyObject * obj0 = 0 ;
14505 char *kwnames[] = {
14506 (char *) "self", NULL
14507 };
14508
14509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14512 {
14513 PyThreadState* __tstate = wxPyBeginAllowThreads();
14514 result = (int)((wxDC const *)arg1)->MaxX();
14515
14516 wxPyEndAllowThreads(__tstate);
14517 if (PyErr_Occurred()) SWIG_fail;
14518 }
14519 resultobj = SWIG_FromInt((int)result);
14520 return resultobj;
14521 fail:
14522 return NULL;
14523 }
14524
14525
14526 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14527 PyObject *resultobj;
14528 wxDC *arg1 = (wxDC *) 0 ;
14529 int result;
14530 PyObject * obj0 = 0 ;
14531 char *kwnames[] = {
14532 (char *) "self", NULL
14533 };
14534
14535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14538 {
14539 PyThreadState* __tstate = wxPyBeginAllowThreads();
14540 result = (int)((wxDC const *)arg1)->MinY();
14541
14542 wxPyEndAllowThreads(__tstate);
14543 if (PyErr_Occurred()) SWIG_fail;
14544 }
14545 resultobj = SWIG_FromInt((int)result);
14546 return resultobj;
14547 fail:
14548 return NULL;
14549 }
14550
14551
14552 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14553 PyObject *resultobj;
14554 wxDC *arg1 = (wxDC *) 0 ;
14555 int result;
14556 PyObject * obj0 = 0 ;
14557 char *kwnames[] = {
14558 (char *) "self", NULL
14559 };
14560
14561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14564 {
14565 PyThreadState* __tstate = wxPyBeginAllowThreads();
14566 result = (int)((wxDC const *)arg1)->MaxY();
14567
14568 wxPyEndAllowThreads(__tstate);
14569 if (PyErr_Occurred()) SWIG_fail;
14570 }
14571 resultobj = SWIG_FromInt((int)result);
14572 return resultobj;
14573 fail:
14574 return NULL;
14575 }
14576
14577
14578 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14579 PyObject *resultobj;
14580 wxDC *arg1 = (wxDC *) 0 ;
14581 int *arg2 = (int *) 0 ;
14582 int *arg3 = (int *) 0 ;
14583 int *arg4 = (int *) 0 ;
14584 int *arg5 = (int *) 0 ;
14585 int temp2 ;
14586 int temp3 ;
14587 int temp4 ;
14588 int temp5 ;
14589 PyObject * obj0 = 0 ;
14590 char *kwnames[] = {
14591 (char *) "self", NULL
14592 };
14593
14594 arg2 = &temp2;
14595 arg3 = &temp3;
14596 arg4 = &temp4;
14597 arg5 = &temp5;
14598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14601 {
14602 PyThreadState* __tstate = wxPyBeginAllowThreads();
14603 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14604
14605 wxPyEndAllowThreads(__tstate);
14606 if (PyErr_Occurred()) SWIG_fail;
14607 }
14608 Py_INCREF(Py_None); resultobj = Py_None;
14609 {
14610 PyObject *o = PyInt_FromLong((long) (*arg2));
14611 resultobj = t_output_helper(resultobj,o);
14612 }
14613 {
14614 PyObject *o = PyInt_FromLong((long) (*arg3));
14615 resultobj = t_output_helper(resultobj,o);
14616 }
14617 {
14618 PyObject *o = PyInt_FromLong((long) (*arg4));
14619 resultobj = t_output_helper(resultobj,o);
14620 }
14621 {
14622 PyObject *o = PyInt_FromLong((long) (*arg5));
14623 resultobj = t_output_helper(resultobj,o);
14624 }
14625 return resultobj;
14626 fail:
14627 return NULL;
14628 }
14629
14630
14631 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14632 PyObject *resultobj;
14633 wxDC *arg1 = (wxDC *) 0 ;
14634 PyObject *arg2 = (PyObject *) 0 ;
14635 PyObject *arg3 = (PyObject *) 0 ;
14636 PyObject *arg4 = (PyObject *) 0 ;
14637 PyObject *result;
14638 PyObject * obj0 = 0 ;
14639 PyObject * obj1 = 0 ;
14640 PyObject * obj2 = 0 ;
14641 PyObject * obj3 = 0 ;
14642 char *kwnames[] = {
14643 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14644 };
14645
14646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14649 arg2 = obj1;
14650 arg3 = obj2;
14651 arg4 = obj3;
14652 {
14653 PyThreadState* __tstate = wxPyBeginAllowThreads();
14654 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14655
14656 wxPyEndAllowThreads(__tstate);
14657 if (PyErr_Occurred()) SWIG_fail;
14658 }
14659 resultobj = result;
14660 return resultobj;
14661 fail:
14662 return NULL;
14663 }
14664
14665
14666 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14667 PyObject *resultobj;
14668 wxDC *arg1 = (wxDC *) 0 ;
14669 PyObject *arg2 = (PyObject *) 0 ;
14670 PyObject *arg3 = (PyObject *) 0 ;
14671 PyObject *arg4 = (PyObject *) 0 ;
14672 PyObject *result;
14673 PyObject * obj0 = 0 ;
14674 PyObject * obj1 = 0 ;
14675 PyObject * obj2 = 0 ;
14676 PyObject * obj3 = 0 ;
14677 char *kwnames[] = {
14678 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14679 };
14680
14681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14684 arg2 = obj1;
14685 arg3 = obj2;
14686 arg4 = obj3;
14687 {
14688 PyThreadState* __tstate = wxPyBeginAllowThreads();
14689 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14690
14691 wxPyEndAllowThreads(__tstate);
14692 if (PyErr_Occurred()) SWIG_fail;
14693 }
14694 resultobj = result;
14695 return resultobj;
14696 fail:
14697 return NULL;
14698 }
14699
14700
14701 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14702 PyObject *resultobj;
14703 wxDC *arg1 = (wxDC *) 0 ;
14704 PyObject *arg2 = (PyObject *) 0 ;
14705 PyObject *arg3 = (PyObject *) 0 ;
14706 PyObject *arg4 = (PyObject *) 0 ;
14707 PyObject *result;
14708 PyObject * obj0 = 0 ;
14709 PyObject * obj1 = 0 ;
14710 PyObject * obj2 = 0 ;
14711 PyObject * obj3 = 0 ;
14712 char *kwnames[] = {
14713 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14714 };
14715
14716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14719 arg2 = obj1;
14720 arg3 = obj2;
14721 arg4 = obj3;
14722 {
14723 PyThreadState* __tstate = wxPyBeginAllowThreads();
14724 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14725
14726 wxPyEndAllowThreads(__tstate);
14727 if (PyErr_Occurred()) SWIG_fail;
14728 }
14729 resultobj = result;
14730 return resultobj;
14731 fail:
14732 return NULL;
14733 }
14734
14735
14736 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14737 PyObject *resultobj;
14738 wxDC *arg1 = (wxDC *) 0 ;
14739 PyObject *arg2 = (PyObject *) 0 ;
14740 PyObject *arg3 = (PyObject *) 0 ;
14741 PyObject *arg4 = (PyObject *) 0 ;
14742 PyObject *result;
14743 PyObject * obj0 = 0 ;
14744 PyObject * obj1 = 0 ;
14745 PyObject * obj2 = 0 ;
14746 PyObject * obj3 = 0 ;
14747 char *kwnames[] = {
14748 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14749 };
14750
14751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14754 arg2 = obj1;
14755 arg3 = obj2;
14756 arg4 = obj3;
14757 {
14758 PyThreadState* __tstate = wxPyBeginAllowThreads();
14759 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14760
14761 wxPyEndAllowThreads(__tstate);
14762 if (PyErr_Occurred()) SWIG_fail;
14763 }
14764 resultobj = result;
14765 return resultobj;
14766 fail:
14767 return NULL;
14768 }
14769
14770
14771 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
14772 PyObject *resultobj;
14773 wxDC *arg1 = (wxDC *) 0 ;
14774 PyObject *arg2 = (PyObject *) 0 ;
14775 PyObject *arg3 = (PyObject *) 0 ;
14776 PyObject *arg4 = (PyObject *) 0 ;
14777 PyObject *result;
14778 PyObject * obj0 = 0 ;
14779 PyObject * obj1 = 0 ;
14780 PyObject * obj2 = 0 ;
14781 PyObject * obj3 = 0 ;
14782 char *kwnames[] = {
14783 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14784 };
14785
14786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14789 arg2 = obj1;
14790 arg3 = obj2;
14791 arg4 = obj3;
14792 {
14793 PyThreadState* __tstate = wxPyBeginAllowThreads();
14794 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
14795
14796 wxPyEndAllowThreads(__tstate);
14797 if (PyErr_Occurred()) SWIG_fail;
14798 }
14799 resultobj = result;
14800 return resultobj;
14801 fail:
14802 return NULL;
14803 }
14804
14805
14806 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
14807 PyObject *resultobj;
14808 wxDC *arg1 = (wxDC *) 0 ;
14809 PyObject *arg2 = (PyObject *) 0 ;
14810 PyObject *arg3 = (PyObject *) 0 ;
14811 PyObject *arg4 = (PyObject *) 0 ;
14812 PyObject *arg5 = (PyObject *) 0 ;
14813 PyObject *result;
14814 PyObject * obj0 = 0 ;
14815 PyObject * obj1 = 0 ;
14816 PyObject * obj2 = 0 ;
14817 PyObject * obj3 = 0 ;
14818 PyObject * obj4 = 0 ;
14819 char *kwnames[] = {
14820 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
14821 };
14822
14823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14826 arg2 = obj1;
14827 arg3 = obj2;
14828 arg4 = obj3;
14829 arg5 = obj4;
14830 {
14831 PyThreadState* __tstate = wxPyBeginAllowThreads();
14832 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
14833
14834 wxPyEndAllowThreads(__tstate);
14835 if (PyErr_Occurred()) SWIG_fail;
14836 }
14837 resultobj = result;
14838 return resultobj;
14839 fail:
14840 return NULL;
14841 }
14842
14843
14844 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
14845 PyObject *obj;
14846 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14847 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
14848 Py_INCREF(obj);
14849 return Py_BuildValue((char *)"");
14850 }
14851 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14852 PyObject *resultobj;
14853 wxMemoryDC *result;
14854 char *kwnames[] = {
14855 NULL
14856 };
14857
14858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
14859 {
14860 PyThreadState* __tstate = wxPyBeginAllowThreads();
14861 result = (wxMemoryDC *)new wxMemoryDC();
14862
14863 wxPyEndAllowThreads(__tstate);
14864 if (PyErr_Occurred()) SWIG_fail;
14865 }
14866 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
14867 return resultobj;
14868 fail:
14869 return NULL;
14870 }
14871
14872
14873 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14874 PyObject *resultobj;
14875 wxDC *arg1 = (wxDC *) 0 ;
14876 wxMemoryDC *result;
14877 PyObject * obj0 = 0 ;
14878 char *kwnames[] = {
14879 (char *) "oldDC", NULL
14880 };
14881
14882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
14883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14885 {
14886 PyThreadState* __tstate = wxPyBeginAllowThreads();
14887 result = (wxMemoryDC *)new wxMemoryDC(arg1);
14888
14889 wxPyEndAllowThreads(__tstate);
14890 if (PyErr_Occurred()) SWIG_fail;
14891 }
14892 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
14893 return resultobj;
14894 fail:
14895 return NULL;
14896 }
14897
14898
14899 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
14900 PyObject *resultobj;
14901 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
14902 wxBitmap *arg2 = 0 ;
14903 PyObject * obj0 = 0 ;
14904 PyObject * obj1 = 0 ;
14905 char *kwnames[] = {
14906 (char *) "self",(char *) "bitmap", NULL
14907 };
14908
14909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
14910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
14911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14912 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
14913 SWIG_POINTER_EXCEPTION | 0)) == -1)
14914 SWIG_fail;
14915 if (arg2 == NULL) {
14916 PyErr_SetString(PyExc_TypeError,"null reference");
14917 SWIG_fail;
14918 }
14919 {
14920 PyThreadState* __tstate = wxPyBeginAllowThreads();
14921 (arg1)->SelectObject((wxBitmap const &)*arg2);
14922
14923 wxPyEndAllowThreads(__tstate);
14924 if (PyErr_Occurred()) SWIG_fail;
14925 }
14926 Py_INCREF(Py_None); resultobj = Py_None;
14927 return resultobj;
14928 fail:
14929 return NULL;
14930 }
14931
14932
14933 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
14934 PyObject *obj;
14935 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14936 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
14937 Py_INCREF(obj);
14938 return Py_BuildValue((char *)"");
14939 }
14940 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
14941 PyObject *resultobj;
14942 wxDC *arg1 = (wxDC *) 0 ;
14943 wxBitmap *arg2 = 0 ;
14944 wxBufferedDC *result;
14945 PyObject * obj0 = 0 ;
14946 PyObject * obj1 = 0 ;
14947
14948 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
14949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14951 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
14952 SWIG_POINTER_EXCEPTION | 0)) == -1)
14953 SWIG_fail;
14954 if (arg2 == NULL) {
14955 PyErr_SetString(PyExc_TypeError,"null reference");
14956 SWIG_fail;
14957 }
14958 {
14959 PyThreadState* __tstate = wxPyBeginAllowThreads();
14960 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
14961
14962 wxPyEndAllowThreads(__tstate);
14963 if (PyErr_Occurred()) SWIG_fail;
14964 }
14965 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
14966 return resultobj;
14967 fail:
14968 return NULL;
14969 }
14970
14971
14972 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
14973 PyObject *resultobj;
14974 wxDC *arg1 = (wxDC *) 0 ;
14975 wxSize *arg2 = 0 ;
14976 wxBufferedDC *result;
14977 wxSize temp2 ;
14978 PyObject * obj0 = 0 ;
14979 PyObject * obj1 = 0 ;
14980
14981 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
14982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14984 {
14985 arg2 = &temp2;
14986 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14987 }
14988 {
14989 PyThreadState* __tstate = wxPyBeginAllowThreads();
14990 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
14991
14992 wxPyEndAllowThreads(__tstate);
14993 if (PyErr_Occurred()) SWIG_fail;
14994 }
14995 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
14996 return resultobj;
14997 fail:
14998 return NULL;
14999 }
15000
15001
15002 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15003 int argc;
15004 PyObject *argv[3];
15005 int ii;
15006
15007 argc = PyObject_Length(args);
15008 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15009 argv[ii] = PyTuple_GetItem(args,ii);
15010 }
15011 if (argc == 2) {
15012 int _v;
15013 {
15014 void *ptr;
15015 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15016 _v = 0;
15017 PyErr_Clear();
15018 } else {
15019 _v = 1;
15020 }
15021 }
15022 if (_v) {
15023 {
15024 void *ptr;
15025 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15026 _v = 0;
15027 PyErr_Clear();
15028 } else {
15029 _v = 1;
15030 }
15031 }
15032 if (_v) {
15033 return _wrap_new_BufferedDC__SWIG_0(self,args);
15034 }
15035 }
15036 }
15037 if (argc == 2) {
15038 int _v;
15039 {
15040 void *ptr;
15041 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15042 _v = 0;
15043 PyErr_Clear();
15044 } else {
15045 _v = 1;
15046 }
15047 }
15048 if (_v) {
15049 {
15050 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15051 }
15052 if (_v) {
15053 return _wrap_new_BufferedDC__SWIG_1(self,args);
15054 }
15055 }
15056 }
15057
15058 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15059 return NULL;
15060 }
15061
15062
15063 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
15064 PyObject *resultobj;
15065 wxDC *arg1 = (wxDC *) 0 ;
15066 wxSize *arg2 = 0 ;
15067 wxBufferedDC *result;
15068 wxSize temp2 ;
15069 PyObject * obj0 = 0 ;
15070 PyObject * obj1 = 0 ;
15071
15072 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
15073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15075 {
15076 arg2 = &temp2;
15077 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15078 }
15079 {
15080 PyThreadState* __tstate = wxPyBeginAllowThreads();
15081 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15082
15083 wxPyEndAllowThreads(__tstate);
15084 if (PyErr_Occurred()) SWIG_fail;
15085 }
15086 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15087 return resultobj;
15088 fail:
15089 return NULL;
15090 }
15091
15092
15093 static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15094 PyObject *resultobj;
15095 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15096 PyObject * obj0 = 0 ;
15097 char *kwnames[] = {
15098 (char *) "self", NULL
15099 };
15100
15101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15104 {
15105 PyThreadState* __tstate = wxPyBeginAllowThreads();
15106 delete arg1;
15107
15108 wxPyEndAllowThreads(__tstate);
15109 if (PyErr_Occurred()) SWIG_fail;
15110 }
15111 Py_INCREF(Py_None); resultobj = Py_None;
15112 return resultobj;
15113 fail:
15114 return NULL;
15115 }
15116
15117
15118 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15119 PyObject *resultobj;
15120 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15121 PyObject * obj0 = 0 ;
15122 char *kwnames[] = {
15123 (char *) "self", NULL
15124 };
15125
15126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15129 {
15130 PyThreadState* __tstate = wxPyBeginAllowThreads();
15131 (arg1)->UnMask();
15132
15133 wxPyEndAllowThreads(__tstate);
15134 if (PyErr_Occurred()) SWIG_fail;
15135 }
15136 Py_INCREF(Py_None); resultobj = Py_None;
15137 return resultobj;
15138 fail:
15139 return NULL;
15140 }
15141
15142
15143 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15144 PyObject *obj;
15145 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15146 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15147 Py_INCREF(obj);
15148 return Py_BuildValue((char *)"");
15149 }
15150 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15151 PyObject *resultobj;
15152 wxWindow *arg1 = (wxWindow *) 0 ;
15153 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15154 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15155 wxBufferedPaintDC *result;
15156 PyObject * obj0 = 0 ;
15157 PyObject * obj1 = 0 ;
15158 char *kwnames[] = {
15159 (char *) "window",(char *) "buffer", NULL
15160 };
15161
15162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15165 if (obj1) {
15166 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15167 SWIG_POINTER_EXCEPTION | 0)) == -1)
15168 SWIG_fail;
15169 if (arg2 == NULL) {
15170 PyErr_SetString(PyExc_TypeError,"null reference");
15171 SWIG_fail;
15172 }
15173 }
15174 {
15175 PyThreadState* __tstate = wxPyBeginAllowThreads();
15176 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15177
15178 wxPyEndAllowThreads(__tstate);
15179 if (PyErr_Occurred()) SWIG_fail;
15180 }
15181 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15182 return resultobj;
15183 fail:
15184 return NULL;
15185 }
15186
15187
15188 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15189 PyObject *obj;
15190 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15191 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15192 Py_INCREF(obj);
15193 return Py_BuildValue((char *)"");
15194 }
15195 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15196 PyObject *resultobj;
15197 wxScreenDC *result;
15198 char *kwnames[] = {
15199 NULL
15200 };
15201
15202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15203 {
15204 PyThreadState* __tstate = wxPyBeginAllowThreads();
15205 result = (wxScreenDC *)new wxScreenDC();
15206
15207 wxPyEndAllowThreads(__tstate);
15208 if (PyErr_Occurred()) SWIG_fail;
15209 }
15210 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15211 return resultobj;
15212 fail:
15213 return NULL;
15214 }
15215
15216
15217 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15218 PyObject *resultobj;
15219 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15220 wxWindow *arg2 = (wxWindow *) 0 ;
15221 bool result;
15222 PyObject * obj0 = 0 ;
15223 PyObject * obj1 = 0 ;
15224 char *kwnames[] = {
15225 (char *) "self",(char *) "window", NULL
15226 };
15227
15228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15231 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15233 {
15234 PyThreadState* __tstate = wxPyBeginAllowThreads();
15235 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15236
15237 wxPyEndAllowThreads(__tstate);
15238 if (PyErr_Occurred()) SWIG_fail;
15239 }
15240 {
15241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15242 }
15243 return resultobj;
15244 fail:
15245 return NULL;
15246 }
15247
15248
15249 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15250 PyObject *resultobj;
15251 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15252 wxRect *arg2 = (wxRect *) NULL ;
15253 bool result;
15254 PyObject * obj0 = 0 ;
15255 PyObject * obj1 = 0 ;
15256 char *kwnames[] = {
15257 (char *) "self",(char *) "rect", NULL
15258 };
15259
15260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15263 if (obj1) {
15264 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15266 }
15267 {
15268 PyThreadState* __tstate = wxPyBeginAllowThreads();
15269 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15270
15271 wxPyEndAllowThreads(__tstate);
15272 if (PyErr_Occurred()) SWIG_fail;
15273 }
15274 {
15275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15276 }
15277 return resultobj;
15278 fail:
15279 return NULL;
15280 }
15281
15282
15283 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15284 PyObject *resultobj;
15285 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15286 bool result;
15287 PyObject * obj0 = 0 ;
15288 char *kwnames[] = {
15289 (char *) "self", NULL
15290 };
15291
15292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15295 {
15296 PyThreadState* __tstate = wxPyBeginAllowThreads();
15297 result = (bool)(arg1)->EndDrawingOnTop();
15298
15299 wxPyEndAllowThreads(__tstate);
15300 if (PyErr_Occurred()) SWIG_fail;
15301 }
15302 {
15303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15304 }
15305 return resultobj;
15306 fail:
15307 return NULL;
15308 }
15309
15310
15311 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15312 PyObject *obj;
15313 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15314 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15315 Py_INCREF(obj);
15316 return Py_BuildValue((char *)"");
15317 }
15318 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15319 PyObject *resultobj;
15320 wxWindow *arg1 = (wxWindow *) 0 ;
15321 wxClientDC *result;
15322 PyObject * obj0 = 0 ;
15323 char *kwnames[] = {
15324 (char *) "win", NULL
15325 };
15326
15327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15330 {
15331 PyThreadState* __tstate = wxPyBeginAllowThreads();
15332 result = (wxClientDC *)new wxClientDC(arg1);
15333
15334 wxPyEndAllowThreads(__tstate);
15335 if (PyErr_Occurred()) SWIG_fail;
15336 }
15337 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
15338 return resultobj;
15339 fail:
15340 return NULL;
15341 }
15342
15343
15344 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15345 PyObject *obj;
15346 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15347 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15348 Py_INCREF(obj);
15349 return Py_BuildValue((char *)"");
15350 }
15351 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15352 PyObject *resultobj;
15353 wxWindow *arg1 = (wxWindow *) 0 ;
15354 wxPaintDC *result;
15355 PyObject * obj0 = 0 ;
15356 char *kwnames[] = {
15357 (char *) "win", NULL
15358 };
15359
15360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15363 {
15364 PyThreadState* __tstate = wxPyBeginAllowThreads();
15365 result = (wxPaintDC *)new wxPaintDC(arg1);
15366
15367 wxPyEndAllowThreads(__tstate);
15368 if (PyErr_Occurred()) SWIG_fail;
15369 }
15370 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
15371 return resultobj;
15372 fail:
15373 return NULL;
15374 }
15375
15376
15377 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15378 PyObject *obj;
15379 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15380 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15381 Py_INCREF(obj);
15382 return Py_BuildValue((char *)"");
15383 }
15384 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15385 PyObject *resultobj;
15386 wxWindow *arg1 = (wxWindow *) 0 ;
15387 wxWindowDC *result;
15388 PyObject * obj0 = 0 ;
15389 char *kwnames[] = {
15390 (char *) "win", NULL
15391 };
15392
15393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15396 {
15397 PyThreadState* __tstate = wxPyBeginAllowThreads();
15398 result = (wxWindowDC *)new wxWindowDC(arg1);
15399
15400 wxPyEndAllowThreads(__tstate);
15401 if (PyErr_Occurred()) SWIG_fail;
15402 }
15403 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
15404 return resultobj;
15405 fail:
15406 return NULL;
15407 }
15408
15409
15410 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
15411 PyObject *obj;
15412 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15413 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15414 Py_INCREF(obj);
15415 return Py_BuildValue((char *)"");
15416 }
15417 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15418 PyObject *resultobj;
15419 wxDC *arg1 = 0 ;
15420 bool arg2 ;
15421 wxMirrorDC *result;
15422 PyObject * obj0 = 0 ;
15423 PyObject * obj1 = 0 ;
15424 char *kwnames[] = {
15425 (char *) "dc",(char *) "mirror", NULL
15426 };
15427
15428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15430 SWIG_POINTER_EXCEPTION | 0)) == -1)
15431 SWIG_fail;
15432 if (arg1 == NULL) {
15433 PyErr_SetString(PyExc_TypeError,"null reference");
15434 SWIG_fail;
15435 }
15436 arg2 = (bool) SWIG_AsBool(obj1);
15437 if (PyErr_Occurred()) SWIG_fail;
15438 {
15439 PyThreadState* __tstate = wxPyBeginAllowThreads();
15440 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15441
15442 wxPyEndAllowThreads(__tstate);
15443 if (PyErr_Occurred()) SWIG_fail;
15444 }
15445 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
15446 return resultobj;
15447 fail:
15448 return NULL;
15449 }
15450
15451
15452 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
15453 PyObject *obj;
15454 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15455 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15456 Py_INCREF(obj);
15457 return Py_BuildValue((char *)"");
15458 }
15459 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15460 PyObject *resultobj;
15461 wxPrintData *arg1 = 0 ;
15462 wxPostScriptDC *result;
15463 PyObject * obj0 = 0 ;
15464 char *kwnames[] = {
15465 (char *) "printData", NULL
15466 };
15467
15468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15470 SWIG_POINTER_EXCEPTION | 0)) == -1)
15471 SWIG_fail;
15472 if (arg1 == NULL) {
15473 PyErr_SetString(PyExc_TypeError,"null reference");
15474 SWIG_fail;
15475 }
15476 {
15477 PyThreadState* __tstate = wxPyBeginAllowThreads();
15478 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15479
15480 wxPyEndAllowThreads(__tstate);
15481 if (PyErr_Occurred()) SWIG_fail;
15482 }
15483 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
15484 return resultobj;
15485 fail:
15486 return NULL;
15487 }
15488
15489
15490 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15491 PyObject *resultobj;
15492 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15493 wxPrintData *result;
15494 PyObject * obj0 = 0 ;
15495 char *kwnames[] = {
15496 (char *) "self", NULL
15497 };
15498
15499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15502 {
15503 PyThreadState* __tstate = wxPyBeginAllowThreads();
15504 {
15505 wxPrintData &_result_ref = (arg1)->GetPrintData();
15506 result = (wxPrintData *) &_result_ref;
15507 }
15508
15509 wxPyEndAllowThreads(__tstate);
15510 if (PyErr_Occurred()) SWIG_fail;
15511 }
15512 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
15513 return resultobj;
15514 fail:
15515 return NULL;
15516 }
15517
15518
15519 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15520 PyObject *resultobj;
15521 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15522 wxPrintData *arg2 = 0 ;
15523 PyObject * obj0 = 0 ;
15524 PyObject * obj1 = 0 ;
15525 char *kwnames[] = {
15526 (char *) "self",(char *) "data", NULL
15527 };
15528
15529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15532 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
15533 SWIG_POINTER_EXCEPTION | 0)) == -1)
15534 SWIG_fail;
15535 if (arg2 == NULL) {
15536 PyErr_SetString(PyExc_TypeError,"null reference");
15537 SWIG_fail;
15538 }
15539 {
15540 PyThreadState* __tstate = wxPyBeginAllowThreads();
15541 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15542
15543 wxPyEndAllowThreads(__tstate);
15544 if (PyErr_Occurred()) SWIG_fail;
15545 }
15546 Py_INCREF(Py_None); resultobj = Py_None;
15547 return resultobj;
15548 fail:
15549 return NULL;
15550 }
15551
15552
15553 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15554 PyObject *resultobj;
15555 int arg1 ;
15556 PyObject * obj0 = 0 ;
15557 char *kwnames[] = {
15558 (char *) "ppi", NULL
15559 };
15560
15561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15562 arg1 = (int) SWIG_AsInt(obj0);
15563 if (PyErr_Occurred()) SWIG_fail;
15564 {
15565 PyThreadState* __tstate = wxPyBeginAllowThreads();
15566 wxPostScriptDC::SetResolution(arg1);
15567
15568 wxPyEndAllowThreads(__tstate);
15569 if (PyErr_Occurred()) SWIG_fail;
15570 }
15571 Py_INCREF(Py_None); resultobj = Py_None;
15572 return resultobj;
15573 fail:
15574 return NULL;
15575 }
15576
15577
15578 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15579 PyObject *resultobj;
15580 int result;
15581 char *kwnames[] = {
15582 NULL
15583 };
15584
15585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15586 {
15587 PyThreadState* __tstate = wxPyBeginAllowThreads();
15588 result = (int)wxPostScriptDC::GetResolution();
15589
15590 wxPyEndAllowThreads(__tstate);
15591 if (PyErr_Occurred()) SWIG_fail;
15592 }
15593 resultobj = SWIG_FromInt((int)result);
15594 return resultobj;
15595 fail:
15596 return NULL;
15597 }
15598
15599
15600 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15601 PyObject *obj;
15602 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15603 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15604 Py_INCREF(obj);
15605 return Py_BuildValue((char *)"");
15606 }
15607 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15608 PyObject *resultobj;
15609 wxString const &arg1_defvalue = wxPyEmptyString ;
15610 wxString *arg1 = (wxString *) &arg1_defvalue ;
15611 wxMetaFile *result;
15612 bool temp1 = False ;
15613 PyObject * obj0 = 0 ;
15614 char *kwnames[] = {
15615 (char *) "filename", NULL
15616 };
15617
15618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15619 if (obj0) {
15620 {
15621 arg1 = wxString_in_helper(obj0);
15622 if (arg1 == NULL) SWIG_fail;
15623 temp1 = True;
15624 }
15625 }
15626 {
15627 PyThreadState* __tstate = wxPyBeginAllowThreads();
15628 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15629
15630 wxPyEndAllowThreads(__tstate);
15631 if (PyErr_Occurred()) SWIG_fail;
15632 }
15633 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
15634 {
15635 if (temp1)
15636 delete arg1;
15637 }
15638 return resultobj;
15639 fail:
15640 {
15641 if (temp1)
15642 delete arg1;
15643 }
15644 return NULL;
15645 }
15646
15647
15648 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
15649 PyObject *obj;
15650 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15651 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15652 Py_INCREF(obj);
15653 return Py_BuildValue((char *)"");
15654 }
15655 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15656 PyObject *resultobj;
15657 wxString const &arg1_defvalue = wxPyEmptyString ;
15658 wxString *arg1 = (wxString *) &arg1_defvalue ;
15659 int arg2 = (int) 0 ;
15660 int arg3 = (int) 0 ;
15661 wxString const &arg4_defvalue = wxPyEmptyString ;
15662 wxString *arg4 = (wxString *) &arg4_defvalue ;
15663 wxMetaFileDC *result;
15664 bool temp1 = False ;
15665 bool temp4 = False ;
15666 PyObject * obj0 = 0 ;
15667 PyObject * obj1 = 0 ;
15668 PyObject * obj2 = 0 ;
15669 PyObject * obj3 = 0 ;
15670 char *kwnames[] = {
15671 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
15672 };
15673
15674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15675 if (obj0) {
15676 {
15677 arg1 = wxString_in_helper(obj0);
15678 if (arg1 == NULL) SWIG_fail;
15679 temp1 = True;
15680 }
15681 }
15682 if (obj1) {
15683 arg2 = (int) SWIG_AsInt(obj1);
15684 if (PyErr_Occurred()) SWIG_fail;
15685 }
15686 if (obj2) {
15687 arg3 = (int) SWIG_AsInt(obj2);
15688 if (PyErr_Occurred()) SWIG_fail;
15689 }
15690 if (obj3) {
15691 {
15692 arg4 = wxString_in_helper(obj3);
15693 if (arg4 == NULL) SWIG_fail;
15694 temp4 = True;
15695 }
15696 }
15697 {
15698 PyThreadState* __tstate = wxPyBeginAllowThreads();
15699 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
15700
15701 wxPyEndAllowThreads(__tstate);
15702 if (PyErr_Occurred()) SWIG_fail;
15703 }
15704 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
15705 {
15706 if (temp1)
15707 delete arg1;
15708 }
15709 {
15710 if (temp4)
15711 delete arg4;
15712 }
15713 return resultobj;
15714 fail:
15715 {
15716 if (temp1)
15717 delete arg1;
15718 }
15719 {
15720 if (temp4)
15721 delete arg4;
15722 }
15723 return NULL;
15724 }
15725
15726
15727 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
15728 PyObject *obj;
15729 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15730 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
15731 Py_INCREF(obj);
15732 return Py_BuildValue((char *)"");
15733 }
15734 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15735 PyObject *resultobj;
15736 wxPrintData *arg1 = 0 ;
15737 wxPrinterDC *result;
15738 PyObject * obj0 = 0 ;
15739 char *kwnames[] = {
15740 (char *) "printData", NULL
15741 };
15742
15743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
15744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15745 SWIG_POINTER_EXCEPTION | 0)) == -1)
15746 SWIG_fail;
15747 if (arg1 == NULL) {
15748 PyErr_SetString(PyExc_TypeError,"null reference");
15749 SWIG_fail;
15750 }
15751 {
15752 PyThreadState* __tstate = wxPyBeginAllowThreads();
15753 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
15754
15755 wxPyEndAllowThreads(__tstate);
15756 if (PyErr_Occurred()) SWIG_fail;
15757 }
15758 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
15759 return resultobj;
15760 fail:
15761 return NULL;
15762 }
15763
15764
15765 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
15766 PyObject *obj;
15767 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15768 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
15769 Py_INCREF(obj);
15770 return Py_BuildValue((char *)"");
15771 }
15772 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15773 PyObject *resultobj;
15774 int arg1 ;
15775 int arg2 ;
15776 int arg3 = (int) True ;
15777 int arg4 = (int) 1 ;
15778 wxImageList *result;
15779 PyObject * obj0 = 0 ;
15780 PyObject * obj1 = 0 ;
15781 PyObject * obj2 = 0 ;
15782 PyObject * obj3 = 0 ;
15783 char *kwnames[] = {
15784 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
15785 };
15786
15787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15788 arg1 = (int) SWIG_AsInt(obj0);
15789 if (PyErr_Occurred()) SWIG_fail;
15790 arg2 = (int) SWIG_AsInt(obj1);
15791 if (PyErr_Occurred()) SWIG_fail;
15792 if (obj2) {
15793 arg3 = (int) SWIG_AsInt(obj2);
15794 if (PyErr_Occurred()) SWIG_fail;
15795 }
15796 if (obj3) {
15797 arg4 = (int) SWIG_AsInt(obj3);
15798 if (PyErr_Occurred()) SWIG_fail;
15799 }
15800 {
15801 PyThreadState* __tstate = wxPyBeginAllowThreads();
15802 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
15803
15804 wxPyEndAllowThreads(__tstate);
15805 if (PyErr_Occurred()) SWIG_fail;
15806 }
15807 {
15808 resultobj = wxPyMake_wxObject(result);
15809 }
15810 return resultobj;
15811 fail:
15812 return NULL;
15813 }
15814
15815
15816 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15817 PyObject *resultobj;
15818 wxImageList *arg1 = (wxImageList *) 0 ;
15819 PyObject * obj0 = 0 ;
15820 char *kwnames[] = {
15821 (char *) "self", NULL
15822 };
15823
15824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
15825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
15826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15827 {
15828 PyThreadState* __tstate = wxPyBeginAllowThreads();
15829 delete arg1;
15830
15831 wxPyEndAllowThreads(__tstate);
15832 if (PyErr_Occurred()) SWIG_fail;
15833 }
15834 Py_INCREF(Py_None); resultobj = Py_None;
15835 return resultobj;
15836 fail:
15837 return NULL;
15838 }
15839
15840
15841 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
15842 PyObject *resultobj;
15843 wxImageList *arg1 = (wxImageList *) 0 ;
15844 wxBitmap *arg2 = 0 ;
15845 wxBitmap const &arg3_defvalue = wxNullBitmap ;
15846 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
15847 int result;
15848 PyObject * obj0 = 0 ;
15849 PyObject * obj1 = 0 ;
15850 PyObject * obj2 = 0 ;
15851 char *kwnames[] = {
15852 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
15853 };
15854
15855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
15856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
15857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15858 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15859 SWIG_POINTER_EXCEPTION | 0)) == -1)
15860 SWIG_fail;
15861 if (arg2 == NULL) {
15862 PyErr_SetString(PyExc_TypeError,"null reference");
15863 SWIG_fail;
15864 }
15865 if (obj2) {
15866 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
15867 SWIG_POINTER_EXCEPTION | 0)) == -1)
15868 SWIG_fail;
15869 if (arg3 == NULL) {
15870 PyErr_SetString(PyExc_TypeError,"null reference");
15871 SWIG_fail;
15872 }
15873 }
15874 {
15875 PyThreadState* __tstate = wxPyBeginAllowThreads();
15876 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
15877
15878 wxPyEndAllowThreads(__tstate);
15879 if (PyErr_Occurred()) SWIG_fail;
15880 }
15881 resultobj = SWIG_FromInt((int)result);
15882 return resultobj;
15883 fail:
15884 return NULL;
15885 }
15886
15887
15888 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15889 PyObject *resultobj;
15890 wxImageList *arg1 = (wxImageList *) 0 ;
15891 wxBitmap *arg2 = 0 ;
15892 wxColour *arg3 = 0 ;
15893 int result;
15894 wxColour temp3 ;
15895 PyObject * obj0 = 0 ;
15896 PyObject * obj1 = 0 ;
15897 PyObject * obj2 = 0 ;
15898 char *kwnames[] = {
15899 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
15900 };
15901
15902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
15903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
15904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15905 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15906 SWIG_POINTER_EXCEPTION | 0)) == -1)
15907 SWIG_fail;
15908 if (arg2 == NULL) {
15909 PyErr_SetString(PyExc_TypeError,"null reference");
15910 SWIG_fail;
15911 }
15912 {
15913 arg3 = &temp3;
15914 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15915 }
15916 {
15917 PyThreadState* __tstate = wxPyBeginAllowThreads();
15918 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
15919
15920 wxPyEndAllowThreads(__tstate);
15921 if (PyErr_Occurred()) SWIG_fail;
15922 }
15923 resultobj = SWIG_FromInt((int)result);
15924 return resultobj;
15925 fail:
15926 return NULL;
15927 }
15928
15929
15930 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
15931 PyObject *resultobj;
15932 wxImageList *arg1 = (wxImageList *) 0 ;
15933 wxIcon *arg2 = 0 ;
15934 int result;
15935 PyObject * obj0 = 0 ;
15936 PyObject * obj1 = 0 ;
15937 char *kwnames[] = {
15938 (char *) "self",(char *) "icon", NULL
15939 };
15940
15941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
15942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
15943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15944 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
15945 SWIG_POINTER_EXCEPTION | 0)) == -1)
15946 SWIG_fail;
15947 if (arg2 == NULL) {
15948 PyErr_SetString(PyExc_TypeError,"null reference");
15949 SWIG_fail;
15950 }
15951 {
15952 PyThreadState* __tstate = wxPyBeginAllowThreads();
15953 result = (int)(arg1)->Add((wxIcon const &)*arg2);
15954
15955 wxPyEndAllowThreads(__tstate);
15956 if (PyErr_Occurred()) SWIG_fail;
15957 }
15958 resultobj = SWIG_FromInt((int)result);
15959 return resultobj;
15960 fail:
15961 return NULL;
15962 }
15963
15964
15965 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
15966 PyObject *resultobj;
15967 wxImageList *arg1 = (wxImageList *) 0 ;
15968 int arg2 ;
15969 wxBitmap *arg3 = 0 ;
15970 bool result;
15971 PyObject * obj0 = 0 ;
15972 PyObject * obj1 = 0 ;
15973 PyObject * obj2 = 0 ;
15974 char *kwnames[] = {
15975 (char *) "self",(char *) "index",(char *) "bitmap", NULL
15976 };
15977
15978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
15979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
15980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15981 arg2 = (int) SWIG_AsInt(obj1);
15982 if (PyErr_Occurred()) SWIG_fail;
15983 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
15984 SWIG_POINTER_EXCEPTION | 0)) == -1)
15985 SWIG_fail;
15986 if (arg3 == NULL) {
15987 PyErr_SetString(PyExc_TypeError,"null reference");
15988 SWIG_fail;
15989 }
15990 {
15991 PyThreadState* __tstate = wxPyBeginAllowThreads();
15992 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
15993
15994 wxPyEndAllowThreads(__tstate);
15995 if (PyErr_Occurred()) SWIG_fail;
15996 }
15997 {
15998 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15999 }
16000 return resultobj;
16001 fail:
16002 return NULL;
16003 }
16004
16005
16006 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16007 PyObject *resultobj;
16008 wxImageList *arg1 = (wxImageList *) 0 ;
16009 int arg2 ;
16010 wxDC *arg3 = 0 ;
16011 int arg4 ;
16012 int arg5 ;
16013 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16014 bool arg7 = (bool) (bool)False ;
16015 bool result;
16016 PyObject * obj0 = 0 ;
16017 PyObject * obj1 = 0 ;
16018 PyObject * obj2 = 0 ;
16019 PyObject * obj3 = 0 ;
16020 PyObject * obj4 = 0 ;
16021 PyObject * obj5 = 0 ;
16022 PyObject * obj6 = 0 ;
16023 char *kwnames[] = {
16024 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16025 };
16026
16027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16030 arg2 = (int) SWIG_AsInt(obj1);
16031 if (PyErr_Occurred()) SWIG_fail;
16032 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16033 SWIG_POINTER_EXCEPTION | 0)) == -1)
16034 SWIG_fail;
16035 if (arg3 == NULL) {
16036 PyErr_SetString(PyExc_TypeError,"null reference");
16037 SWIG_fail;
16038 }
16039 arg4 = (int) SWIG_AsInt(obj3);
16040 if (PyErr_Occurred()) SWIG_fail;
16041 arg5 = (int) SWIG_AsInt(obj4);
16042 if (PyErr_Occurred()) SWIG_fail;
16043 if (obj5) {
16044 arg6 = (int) SWIG_AsInt(obj5);
16045 if (PyErr_Occurred()) SWIG_fail;
16046 }
16047 if (obj6) {
16048 arg7 = (bool const) SWIG_AsBool(obj6);
16049 if (PyErr_Occurred()) SWIG_fail;
16050 }
16051 {
16052 PyThreadState* __tstate = wxPyBeginAllowThreads();
16053 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16054
16055 wxPyEndAllowThreads(__tstate);
16056 if (PyErr_Occurred()) SWIG_fail;
16057 }
16058 {
16059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16060 }
16061 return resultobj;
16062 fail:
16063 return NULL;
16064 }
16065
16066
16067 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16068 PyObject *resultobj;
16069 wxImageList *arg1 = (wxImageList *) 0 ;
16070 int result;
16071 PyObject * obj0 = 0 ;
16072 char *kwnames[] = {
16073 (char *) "self", NULL
16074 };
16075
16076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16079 {
16080 PyThreadState* __tstate = wxPyBeginAllowThreads();
16081 result = (int)(arg1)->GetImageCount();
16082
16083 wxPyEndAllowThreads(__tstate);
16084 if (PyErr_Occurred()) SWIG_fail;
16085 }
16086 resultobj = SWIG_FromInt((int)result);
16087 return resultobj;
16088 fail:
16089 return NULL;
16090 }
16091
16092
16093 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
16094 PyObject *resultobj;
16095 wxImageList *arg1 = (wxImageList *) 0 ;
16096 int arg2 ;
16097 bool result;
16098 PyObject * obj0 = 0 ;
16099 PyObject * obj1 = 0 ;
16100 char *kwnames[] = {
16101 (char *) "self",(char *) "index", NULL
16102 };
16103
16104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16107 arg2 = (int) SWIG_AsInt(obj1);
16108 if (PyErr_Occurred()) SWIG_fail;
16109 {
16110 PyThreadState* __tstate = wxPyBeginAllowThreads();
16111 result = (bool)(arg1)->Remove(arg2);
16112
16113 wxPyEndAllowThreads(__tstate);
16114 if (PyErr_Occurred()) SWIG_fail;
16115 }
16116 {
16117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16118 }
16119 return resultobj;
16120 fail:
16121 return NULL;
16122 }
16123
16124
16125 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
16126 PyObject *resultobj;
16127 wxImageList *arg1 = (wxImageList *) 0 ;
16128 bool result;
16129 PyObject * obj0 = 0 ;
16130 char *kwnames[] = {
16131 (char *) "self", NULL
16132 };
16133
16134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16137 {
16138 PyThreadState* __tstate = wxPyBeginAllowThreads();
16139 result = (bool)(arg1)->RemoveAll();
16140
16141 wxPyEndAllowThreads(__tstate);
16142 if (PyErr_Occurred()) SWIG_fail;
16143 }
16144 {
16145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16146 }
16147 return resultobj;
16148 fail:
16149 return NULL;
16150 }
16151
16152
16153 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16154 PyObject *resultobj;
16155 wxImageList *arg1 = (wxImageList *) 0 ;
16156 int arg2 ;
16157 int *arg3 = 0 ;
16158 int *arg4 = 0 ;
16159 int temp3 ;
16160 int temp4 ;
16161 PyObject * obj0 = 0 ;
16162 PyObject * obj1 = 0 ;
16163 char *kwnames[] = {
16164 (char *) "self",(char *) "index", NULL
16165 };
16166
16167 arg3 = &temp3;
16168 arg4 = &temp4;
16169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16172 arg2 = (int) SWIG_AsInt(obj1);
16173 if (PyErr_Occurred()) SWIG_fail;
16174 {
16175 PyThreadState* __tstate = wxPyBeginAllowThreads();
16176 (arg1)->GetSize(arg2,*arg3,*arg4);
16177
16178 wxPyEndAllowThreads(__tstate);
16179 if (PyErr_Occurred()) SWIG_fail;
16180 }
16181 Py_INCREF(Py_None); resultobj = Py_None;
16182 {
16183 PyObject *o = PyInt_FromLong((long) (*arg3));
16184 resultobj = t_output_helper(resultobj,o);
16185 }
16186 {
16187 PyObject *o = PyInt_FromLong((long) (*arg4));
16188 resultobj = t_output_helper(resultobj,o);
16189 }
16190 return resultobj;
16191 fail:
16192 return NULL;
16193 }
16194
16195
16196 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
16197 PyObject *obj;
16198 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16199 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16200 Py_INCREF(obj);
16201 return Py_BuildValue((char *)"");
16202 }
16203 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
16204 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16205 return 1;
16206 }
16207
16208
16209 static PyObject *_wrap_NORMAL_FONT_get() {
16210 PyObject *pyobj;
16211
16212 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
16213 return pyobj;
16214 }
16215
16216
16217 static int _wrap_SMALL_FONT_set(PyObject *_val) {
16218 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16219 return 1;
16220 }
16221
16222
16223 static PyObject *_wrap_SMALL_FONT_get() {
16224 PyObject *pyobj;
16225
16226 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
16227 return pyobj;
16228 }
16229
16230
16231 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
16232 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16233 return 1;
16234 }
16235
16236
16237 static PyObject *_wrap_ITALIC_FONT_get() {
16238 PyObject *pyobj;
16239
16240 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
16241 return pyobj;
16242 }
16243
16244
16245 static int _wrap_SWISS_FONT_set(PyObject *_val) {
16246 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16247 return 1;
16248 }
16249
16250
16251 static PyObject *_wrap_SWISS_FONT_get() {
16252 PyObject *pyobj;
16253
16254 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
16255 return pyobj;
16256 }
16257
16258
16259 static int _wrap_RED_PEN_set(PyObject *_val) {
16260 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16261 return 1;
16262 }
16263
16264
16265 static PyObject *_wrap_RED_PEN_get() {
16266 PyObject *pyobj;
16267
16268 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
16269 return pyobj;
16270 }
16271
16272
16273 static int _wrap_CYAN_PEN_set(PyObject *_val) {
16274 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16275 return 1;
16276 }
16277
16278
16279 static PyObject *_wrap_CYAN_PEN_get() {
16280 PyObject *pyobj;
16281
16282 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
16283 return pyobj;
16284 }
16285
16286
16287 static int _wrap_GREEN_PEN_set(PyObject *_val) {
16288 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16289 return 1;
16290 }
16291
16292
16293 static PyObject *_wrap_GREEN_PEN_get() {
16294 PyObject *pyobj;
16295
16296 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
16297 return pyobj;
16298 }
16299
16300
16301 static int _wrap_BLACK_PEN_set(PyObject *_val) {
16302 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16303 return 1;
16304 }
16305
16306
16307 static PyObject *_wrap_BLACK_PEN_get() {
16308 PyObject *pyobj;
16309
16310 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
16311 return pyobj;
16312 }
16313
16314
16315 static int _wrap_WHITE_PEN_set(PyObject *_val) {
16316 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16317 return 1;
16318 }
16319
16320
16321 static PyObject *_wrap_WHITE_PEN_get() {
16322 PyObject *pyobj;
16323
16324 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
16325 return pyobj;
16326 }
16327
16328
16329 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
16330 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16331 return 1;
16332 }
16333
16334
16335 static PyObject *_wrap_TRANSPARENT_PEN_get() {
16336 PyObject *pyobj;
16337
16338 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
16339 return pyobj;
16340 }
16341
16342
16343 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
16344 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16345 return 1;
16346 }
16347
16348
16349 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16350 PyObject *pyobj;
16351
16352 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
16353 return pyobj;
16354 }
16355
16356
16357 static int _wrap_GREY_PEN_set(PyObject *_val) {
16358 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16359 return 1;
16360 }
16361
16362
16363 static PyObject *_wrap_GREY_PEN_get() {
16364 PyObject *pyobj;
16365
16366 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
16367 return pyobj;
16368 }
16369
16370
16371 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
16372 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16373 return 1;
16374 }
16375
16376
16377 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16378 PyObject *pyobj;
16379
16380 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16381 return pyobj;
16382 }
16383
16384
16385 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
16386 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16387 return 1;
16388 }
16389
16390
16391 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16392 PyObject *pyobj;
16393
16394 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16395 return pyobj;
16396 }
16397
16398
16399 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
16400 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16401 return 1;
16402 }
16403
16404
16405 static PyObject *_wrap_BLUE_BRUSH_get() {
16406 PyObject *pyobj;
16407
16408 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16409 return pyobj;
16410 }
16411
16412
16413 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
16414 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16415 return 1;
16416 }
16417
16418
16419 static PyObject *_wrap_GREEN_BRUSH_get() {
16420 PyObject *pyobj;
16421
16422 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16423 return pyobj;
16424 }
16425
16426
16427 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
16428 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16429 return 1;
16430 }
16431
16432
16433 static PyObject *_wrap_WHITE_BRUSH_get() {
16434 PyObject *pyobj;
16435
16436 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16437 return pyobj;
16438 }
16439
16440
16441 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
16442 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16443 return 1;
16444 }
16445
16446
16447 static PyObject *_wrap_BLACK_BRUSH_get() {
16448 PyObject *pyobj;
16449
16450 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
16451 return pyobj;
16452 }
16453
16454
16455 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
16456 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16457 return 1;
16458 }
16459
16460
16461 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16462 PyObject *pyobj;
16463
16464 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
16465 return pyobj;
16466 }
16467
16468
16469 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
16470 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16471 return 1;
16472 }
16473
16474
16475 static PyObject *_wrap_CYAN_BRUSH_get() {
16476 PyObject *pyobj;
16477
16478 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16479 return pyobj;
16480 }
16481
16482
16483 static int _wrap_RED_BRUSH_set(PyObject *_val) {
16484 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16485 return 1;
16486 }
16487
16488
16489 static PyObject *_wrap_RED_BRUSH_get() {
16490 PyObject *pyobj;
16491
16492 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
16493 return pyobj;
16494 }
16495
16496
16497 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
16498 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
16499 return 1;
16500 }
16501
16502
16503 static PyObject *_wrap_GREY_BRUSH_get() {
16504 PyObject *pyobj;
16505
16506 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16507 return pyobj;
16508 }
16509
16510
16511 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
16512 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
16513 return 1;
16514 }
16515
16516
16517 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
16518 PyObject *pyobj;
16519
16520 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16521 return pyobj;
16522 }
16523
16524
16525 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
16526 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
16527 return 1;
16528 }
16529
16530
16531 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
16532 PyObject *pyobj;
16533
16534 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16535 return pyobj;
16536 }
16537
16538
16539 static int _wrap_BLACK_set(PyObject *_val) {
16540 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
16541 return 1;
16542 }
16543
16544
16545 static PyObject *_wrap_BLACK_get() {
16546 PyObject *pyobj;
16547
16548 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
16549 return pyobj;
16550 }
16551
16552
16553 static int _wrap_WHITE_set(PyObject *_val) {
16554 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
16555 return 1;
16556 }
16557
16558
16559 static PyObject *_wrap_WHITE_get() {
16560 PyObject *pyobj;
16561
16562 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
16563 return pyobj;
16564 }
16565
16566
16567 static int _wrap_RED_set(PyObject *_val) {
16568 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
16569 return 1;
16570 }
16571
16572
16573 static PyObject *_wrap_RED_get() {
16574 PyObject *pyobj;
16575
16576 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
16577 return pyobj;
16578 }
16579
16580
16581 static int _wrap_BLUE_set(PyObject *_val) {
16582 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
16583 return 1;
16584 }
16585
16586
16587 static PyObject *_wrap_BLUE_get() {
16588 PyObject *pyobj;
16589
16590 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
16591 return pyobj;
16592 }
16593
16594
16595 static int _wrap_GREEN_set(PyObject *_val) {
16596 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
16597 return 1;
16598 }
16599
16600
16601 static PyObject *_wrap_GREEN_get() {
16602 PyObject *pyobj;
16603
16604 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
16605 return pyobj;
16606 }
16607
16608
16609 static int _wrap_CYAN_set(PyObject *_val) {
16610 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
16611 return 1;
16612 }
16613
16614
16615 static PyObject *_wrap_CYAN_get() {
16616 PyObject *pyobj;
16617
16618 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
16619 return pyobj;
16620 }
16621
16622
16623 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
16624 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
16625 return 1;
16626 }
16627
16628
16629 static PyObject *_wrap_LIGHT_GREY_get() {
16630 PyObject *pyobj;
16631
16632 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
16633 return pyobj;
16634 }
16635
16636
16637 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
16638 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
16639 return 1;
16640 }
16641
16642
16643 static PyObject *_wrap_STANDARD_CURSOR_get() {
16644 PyObject *pyobj;
16645
16646 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
16647 return pyobj;
16648 }
16649
16650
16651 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
16652 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
16653 return 1;
16654 }
16655
16656
16657 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
16658 PyObject *pyobj;
16659
16660 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16661 return pyobj;
16662 }
16663
16664
16665 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
16666 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
16667 return 1;
16668 }
16669
16670
16671 static PyObject *_wrap_CROSS_CURSOR_get() {
16672 PyObject *pyobj;
16673
16674 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16675 return pyobj;
16676 }
16677
16678
16679 static int _wrap_NullBitmap_set(PyObject *_val) {
16680 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
16681 return 1;
16682 }
16683
16684
16685 static PyObject *_wrap_NullBitmap_get() {
16686 PyObject *pyobj;
16687
16688 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
16689 return pyobj;
16690 }
16691
16692
16693 static int _wrap_NullIcon_set(PyObject *_val) {
16694 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
16695 return 1;
16696 }
16697
16698
16699 static PyObject *_wrap_NullIcon_get() {
16700 PyObject *pyobj;
16701
16702 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
16703 return pyobj;
16704 }
16705
16706
16707 static int _wrap_NullCursor_set(PyObject *_val) {
16708 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
16709 return 1;
16710 }
16711
16712
16713 static PyObject *_wrap_NullCursor_get() {
16714 PyObject *pyobj;
16715
16716 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
16717 return pyobj;
16718 }
16719
16720
16721 static int _wrap_NullPen_set(PyObject *_val) {
16722 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
16723 return 1;
16724 }
16725
16726
16727 static PyObject *_wrap_NullPen_get() {
16728 PyObject *pyobj;
16729
16730 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
16731 return pyobj;
16732 }
16733
16734
16735 static int _wrap_NullBrush_set(PyObject *_val) {
16736 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
16737 return 1;
16738 }
16739
16740
16741 static PyObject *_wrap_NullBrush_get() {
16742 PyObject *pyobj;
16743
16744 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
16745 return pyobj;
16746 }
16747
16748
16749 static int _wrap_NullPalette_set(PyObject *_val) {
16750 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
16751 return 1;
16752 }
16753
16754
16755 static PyObject *_wrap_NullPalette_get() {
16756 PyObject *pyobj;
16757
16758 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
16759 return pyobj;
16760 }
16761
16762
16763 static int _wrap_NullFont_set(PyObject *_val) {
16764 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
16765 return 1;
16766 }
16767
16768
16769 static PyObject *_wrap_NullFont_get() {
16770 PyObject *pyobj;
16771
16772 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
16773 return pyobj;
16774 }
16775
16776
16777 static int _wrap_NullColour_set(PyObject *_val) {
16778 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
16779 return 1;
16780 }
16781
16782
16783 static PyObject *_wrap_NullColour_get() {
16784 PyObject *pyobj;
16785
16786 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
16787 return pyobj;
16788 }
16789
16790
16791 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
16792 PyObject *resultobj;
16793 wxPenList *arg1 = (wxPenList *) 0 ;
16794 wxPen *arg2 = (wxPen *) 0 ;
16795 PyObject * obj0 = 0 ;
16796 PyObject * obj1 = 0 ;
16797 char *kwnames[] = {
16798 (char *) "self",(char *) "pen", NULL
16799 };
16800
16801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
16802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
16803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16804 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
16805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16806 {
16807 PyThreadState* __tstate = wxPyBeginAllowThreads();
16808 (arg1)->AddPen(arg2);
16809
16810 wxPyEndAllowThreads(__tstate);
16811 if (PyErr_Occurred()) SWIG_fail;
16812 }
16813 Py_INCREF(Py_None); resultobj = Py_None;
16814 return resultobj;
16815 fail:
16816 return NULL;
16817 }
16818
16819
16820 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
16821 PyObject *resultobj;
16822 wxPenList *arg1 = (wxPenList *) 0 ;
16823 wxColour *arg2 = 0 ;
16824 int arg3 ;
16825 int arg4 ;
16826 wxPen *result;
16827 wxColour temp2 ;
16828 PyObject * obj0 = 0 ;
16829 PyObject * obj1 = 0 ;
16830 PyObject * obj2 = 0 ;
16831 PyObject * obj3 = 0 ;
16832 char *kwnames[] = {
16833 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
16834 };
16835
16836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
16838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16839 {
16840 arg2 = &temp2;
16841 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16842 }
16843 arg3 = (int) SWIG_AsInt(obj2);
16844 if (PyErr_Occurred()) SWIG_fail;
16845 arg4 = (int) SWIG_AsInt(obj3);
16846 if (PyErr_Occurred()) SWIG_fail;
16847 {
16848 PyThreadState* __tstate = wxPyBeginAllowThreads();
16849 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
16850
16851 wxPyEndAllowThreads(__tstate);
16852 if (PyErr_Occurred()) SWIG_fail;
16853 }
16854 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
16855 return resultobj;
16856 fail:
16857 return NULL;
16858 }
16859
16860
16861 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
16862 PyObject *resultobj;
16863 wxPenList *arg1 = (wxPenList *) 0 ;
16864 wxPen *arg2 = (wxPen *) 0 ;
16865 PyObject * obj0 = 0 ;
16866 PyObject * obj1 = 0 ;
16867 char *kwnames[] = {
16868 (char *) "self",(char *) "pen", NULL
16869 };
16870
16871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
16872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
16873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16874 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
16875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16876 {
16877 PyThreadState* __tstate = wxPyBeginAllowThreads();
16878 (arg1)->RemovePen(arg2);
16879
16880 wxPyEndAllowThreads(__tstate);
16881 if (PyErr_Occurred()) SWIG_fail;
16882 }
16883 Py_INCREF(Py_None); resultobj = Py_None;
16884 return resultobj;
16885 fail:
16886 return NULL;
16887 }
16888
16889
16890 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16891 PyObject *resultobj;
16892 wxPenList *arg1 = (wxPenList *) 0 ;
16893 int result;
16894 PyObject * obj0 = 0 ;
16895 char *kwnames[] = {
16896 (char *) "self", NULL
16897 };
16898
16899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
16900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
16901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16902 {
16903 PyThreadState* __tstate = wxPyBeginAllowThreads();
16904 result = (int)(arg1)->GetCount();
16905
16906 wxPyEndAllowThreads(__tstate);
16907 if (PyErr_Occurred()) SWIG_fail;
16908 }
16909 resultobj = SWIG_FromInt((int)result);
16910 return resultobj;
16911 fail:
16912 return NULL;
16913 }
16914
16915
16916 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
16917 PyObject *obj;
16918 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16919 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
16920 Py_INCREF(obj);
16921 return Py_BuildValue((char *)"");
16922 }
16923 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
16924 PyObject *resultobj;
16925 wxBrushList *arg1 = (wxBrushList *) 0 ;
16926 wxBrush *arg2 = (wxBrush *) 0 ;
16927 PyObject * obj0 = 0 ;
16928 PyObject * obj1 = 0 ;
16929 char *kwnames[] = {
16930 (char *) "self",(char *) "brush", NULL
16931 };
16932
16933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
16934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
16935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16936 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
16937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16938 {
16939 PyThreadState* __tstate = wxPyBeginAllowThreads();
16940 (arg1)->AddBrush(arg2);
16941
16942 wxPyEndAllowThreads(__tstate);
16943 if (PyErr_Occurred()) SWIG_fail;
16944 }
16945 Py_INCREF(Py_None); resultobj = Py_None;
16946 return resultobj;
16947 fail:
16948 return NULL;
16949 }
16950
16951
16952 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
16953 PyObject *resultobj;
16954 wxBrushList *arg1 = (wxBrushList *) 0 ;
16955 wxColour *arg2 = 0 ;
16956 int arg3 ;
16957 wxBrush *result;
16958 wxColour temp2 ;
16959 PyObject * obj0 = 0 ;
16960 PyObject * obj1 = 0 ;
16961 PyObject * obj2 = 0 ;
16962 char *kwnames[] = {
16963 (char *) "self",(char *) "colour",(char *) "style", NULL
16964 };
16965
16966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
16967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
16968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16969 {
16970 arg2 = &temp2;
16971 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16972 }
16973 arg3 = (int) SWIG_AsInt(obj2);
16974 if (PyErr_Occurred()) SWIG_fail;
16975 {
16976 PyThreadState* __tstate = wxPyBeginAllowThreads();
16977 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
16978
16979 wxPyEndAllowThreads(__tstate);
16980 if (PyErr_Occurred()) SWIG_fail;
16981 }
16982 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
16983 return resultobj;
16984 fail:
16985 return NULL;
16986 }
16987
16988
16989 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
16990 PyObject *resultobj;
16991 wxBrushList *arg1 = (wxBrushList *) 0 ;
16992 wxBrush *arg2 = (wxBrush *) 0 ;
16993 PyObject * obj0 = 0 ;
16994 PyObject * obj1 = 0 ;
16995 char *kwnames[] = {
16996 (char *) "self",(char *) "brush", NULL
16997 };
16998
16999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17002 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17004 {
17005 PyThreadState* __tstate = wxPyBeginAllowThreads();
17006 (arg1)->RemoveBrush(arg2);
17007
17008 wxPyEndAllowThreads(__tstate);
17009 if (PyErr_Occurred()) SWIG_fail;
17010 }
17011 Py_INCREF(Py_None); resultobj = Py_None;
17012 return resultobj;
17013 fail:
17014 return NULL;
17015 }
17016
17017
17018 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17019 PyObject *resultobj;
17020 wxBrushList *arg1 = (wxBrushList *) 0 ;
17021 int result;
17022 PyObject * obj0 = 0 ;
17023 char *kwnames[] = {
17024 (char *) "self", NULL
17025 };
17026
17027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17030 {
17031 PyThreadState* __tstate = wxPyBeginAllowThreads();
17032 result = (int)(arg1)->GetCount();
17033
17034 wxPyEndAllowThreads(__tstate);
17035 if (PyErr_Occurred()) SWIG_fail;
17036 }
17037 resultobj = SWIG_FromInt((int)result);
17038 return resultobj;
17039 fail:
17040 return NULL;
17041 }
17042
17043
17044 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17045 PyObject *obj;
17046 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17047 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17048 Py_INCREF(obj);
17049 return Py_BuildValue((char *)"");
17050 }
17051 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17052 PyObject *resultobj;
17053 wxColourDatabase *result;
17054 char *kwnames[] = {
17055 NULL
17056 };
17057
17058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17059 {
17060 PyThreadState* __tstate = wxPyBeginAllowThreads();
17061 result = (wxColourDatabase *)new wxColourDatabase();
17062
17063 wxPyEndAllowThreads(__tstate);
17064 if (PyErr_Occurred()) SWIG_fail;
17065 }
17066 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17067 return resultobj;
17068 fail:
17069 return NULL;
17070 }
17071
17072
17073 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17074 PyObject *resultobj;
17075 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17076 PyObject * obj0 = 0 ;
17077 char *kwnames[] = {
17078 (char *) "self", NULL
17079 };
17080
17081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17084 {
17085 PyThreadState* __tstate = wxPyBeginAllowThreads();
17086 delete arg1;
17087
17088 wxPyEndAllowThreads(__tstate);
17089 if (PyErr_Occurred()) SWIG_fail;
17090 }
17091 Py_INCREF(Py_None); resultobj = Py_None;
17092 return resultobj;
17093 fail:
17094 return NULL;
17095 }
17096
17097
17098 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
17099 PyObject *resultobj;
17100 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17101 wxString *arg2 = 0 ;
17102 wxColour result;
17103 bool temp2 = False ;
17104 PyObject * obj0 = 0 ;
17105 PyObject * obj1 = 0 ;
17106 char *kwnames[] = {
17107 (char *) "self",(char *) "name", NULL
17108 };
17109
17110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17113 {
17114 arg2 = wxString_in_helper(obj1);
17115 if (arg2 == NULL) SWIG_fail;
17116 temp2 = True;
17117 }
17118 {
17119 PyThreadState* __tstate = wxPyBeginAllowThreads();
17120 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17121
17122 wxPyEndAllowThreads(__tstate);
17123 if (PyErr_Occurred()) SWIG_fail;
17124 }
17125 {
17126 wxColour * resultptr;
17127 resultptr = new wxColour((wxColour &) result);
17128 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17129 }
17130 {
17131 if (temp2)
17132 delete arg2;
17133 }
17134 return resultobj;
17135 fail:
17136 {
17137 if (temp2)
17138 delete arg2;
17139 }
17140 return NULL;
17141 }
17142
17143
17144 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
17145 PyObject *resultobj;
17146 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17147 wxColour *arg2 = 0 ;
17148 wxString result;
17149 wxColour temp2 ;
17150 PyObject * obj0 = 0 ;
17151 PyObject * obj1 = 0 ;
17152 char *kwnames[] = {
17153 (char *) "self",(char *) "colour", NULL
17154 };
17155
17156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17159 {
17160 arg2 = &temp2;
17161 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17162 }
17163 {
17164 PyThreadState* __tstate = wxPyBeginAllowThreads();
17165 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17166
17167 wxPyEndAllowThreads(__tstate);
17168 if (PyErr_Occurred()) SWIG_fail;
17169 }
17170 {
17171 #if wxUSE_UNICODE
17172 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17173 #else
17174 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17175 #endif
17176 }
17177 return resultobj;
17178 fail:
17179 return NULL;
17180 }
17181
17182
17183 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17184 PyObject *resultobj;
17185 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17186 wxString *arg2 = 0 ;
17187 wxColour *arg3 = 0 ;
17188 bool temp2 = False ;
17189 wxColour temp3 ;
17190 PyObject * obj0 = 0 ;
17191 PyObject * obj1 = 0 ;
17192 PyObject * obj2 = 0 ;
17193 char *kwnames[] = {
17194 (char *) "self",(char *) "name",(char *) "colour", NULL
17195 };
17196
17197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17200 {
17201 arg2 = wxString_in_helper(obj1);
17202 if (arg2 == NULL) SWIG_fail;
17203 temp2 = True;
17204 }
17205 {
17206 arg3 = &temp3;
17207 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17208 }
17209 {
17210 PyThreadState* __tstate = wxPyBeginAllowThreads();
17211 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17212
17213 wxPyEndAllowThreads(__tstate);
17214 if (PyErr_Occurred()) SWIG_fail;
17215 }
17216 Py_INCREF(Py_None); resultobj = Py_None;
17217 {
17218 if (temp2)
17219 delete arg2;
17220 }
17221 return resultobj;
17222 fail:
17223 {
17224 if (temp2)
17225 delete arg2;
17226 }
17227 return NULL;
17228 }
17229
17230
17231 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
17232 PyObject *resultobj;
17233 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17234 wxString *arg2 = 0 ;
17235 int arg3 ;
17236 int arg4 ;
17237 int arg5 ;
17238 bool temp2 = False ;
17239 PyObject * obj0 = 0 ;
17240 PyObject * obj1 = 0 ;
17241 PyObject * obj2 = 0 ;
17242 PyObject * obj3 = 0 ;
17243 PyObject * obj4 = 0 ;
17244 char *kwnames[] = {
17245 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17246 };
17247
17248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17251 {
17252 arg2 = wxString_in_helper(obj1);
17253 if (arg2 == NULL) SWIG_fail;
17254 temp2 = True;
17255 }
17256 arg3 = (int) SWIG_AsInt(obj2);
17257 if (PyErr_Occurred()) SWIG_fail;
17258 arg4 = (int) SWIG_AsInt(obj3);
17259 if (PyErr_Occurred()) SWIG_fail;
17260 arg5 = (int) SWIG_AsInt(obj4);
17261 if (PyErr_Occurred()) SWIG_fail;
17262 {
17263 PyThreadState* __tstate = wxPyBeginAllowThreads();
17264 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17265
17266 wxPyEndAllowThreads(__tstate);
17267 if (PyErr_Occurred()) SWIG_fail;
17268 }
17269 Py_INCREF(Py_None); resultobj = Py_None;
17270 {
17271 if (temp2)
17272 delete arg2;
17273 }
17274 return resultobj;
17275 fail:
17276 {
17277 if (temp2)
17278 delete arg2;
17279 }
17280 return NULL;
17281 }
17282
17283
17284 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
17285 PyObject *obj;
17286 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17287 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17288 Py_INCREF(obj);
17289 return Py_BuildValue((char *)"");
17290 }
17291 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17292 PyObject *resultobj;
17293 wxFontList *arg1 = (wxFontList *) 0 ;
17294 wxFont *arg2 = (wxFont *) 0 ;
17295 PyObject * obj0 = 0 ;
17296 PyObject * obj1 = 0 ;
17297 char *kwnames[] = {
17298 (char *) "self",(char *) "font", NULL
17299 };
17300
17301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17304 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17306 {
17307 PyThreadState* __tstate = wxPyBeginAllowThreads();
17308 (arg1)->AddFont(arg2);
17309
17310 wxPyEndAllowThreads(__tstate);
17311 if (PyErr_Occurred()) SWIG_fail;
17312 }
17313 Py_INCREF(Py_None); resultobj = Py_None;
17314 return resultobj;
17315 fail:
17316 return NULL;
17317 }
17318
17319
17320 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17321 PyObject *resultobj;
17322 wxFontList *arg1 = (wxFontList *) 0 ;
17323 int arg2 ;
17324 int arg3 ;
17325 int arg4 ;
17326 int arg5 ;
17327 bool arg6 = (bool) False ;
17328 wxString const &arg7_defvalue = wxPyEmptyString ;
17329 wxString *arg7 = (wxString *) &arg7_defvalue ;
17330 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17331 wxFont *result;
17332 bool temp7 = False ;
17333 PyObject * obj0 = 0 ;
17334 PyObject * obj1 = 0 ;
17335 PyObject * obj2 = 0 ;
17336 PyObject * obj3 = 0 ;
17337 PyObject * obj4 = 0 ;
17338 PyObject * obj5 = 0 ;
17339 PyObject * obj6 = 0 ;
17340 PyObject * obj7 = 0 ;
17341 char *kwnames[] = {
17342 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17343 };
17344
17345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17348 arg2 = (int) SWIG_AsInt(obj1);
17349 if (PyErr_Occurred()) SWIG_fail;
17350 arg3 = (int) SWIG_AsInt(obj2);
17351 if (PyErr_Occurred()) SWIG_fail;
17352 arg4 = (int) SWIG_AsInt(obj3);
17353 if (PyErr_Occurred()) SWIG_fail;
17354 arg5 = (int) SWIG_AsInt(obj4);
17355 if (PyErr_Occurred()) SWIG_fail;
17356 if (obj5) {
17357 arg6 = (bool) SWIG_AsBool(obj5);
17358 if (PyErr_Occurred()) SWIG_fail;
17359 }
17360 if (obj6) {
17361 {
17362 arg7 = wxString_in_helper(obj6);
17363 if (arg7 == NULL) SWIG_fail;
17364 temp7 = True;
17365 }
17366 }
17367 if (obj7) {
17368 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
17369 if (PyErr_Occurred()) SWIG_fail;
17370 }
17371 {
17372 PyThreadState* __tstate = wxPyBeginAllowThreads();
17373 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17374
17375 wxPyEndAllowThreads(__tstate);
17376 if (PyErr_Occurred()) SWIG_fail;
17377 }
17378 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
17379 {
17380 if (temp7)
17381 delete arg7;
17382 }
17383 return resultobj;
17384 fail:
17385 {
17386 if (temp7)
17387 delete arg7;
17388 }
17389 return NULL;
17390 }
17391
17392
17393 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17394 PyObject *resultobj;
17395 wxFontList *arg1 = (wxFontList *) 0 ;
17396 wxFont *arg2 = (wxFont *) 0 ;
17397 PyObject * obj0 = 0 ;
17398 PyObject * obj1 = 0 ;
17399 char *kwnames[] = {
17400 (char *) "self",(char *) "font", NULL
17401 };
17402
17403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17406 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17408 {
17409 PyThreadState* __tstate = wxPyBeginAllowThreads();
17410 (arg1)->RemoveFont(arg2);
17411
17412 wxPyEndAllowThreads(__tstate);
17413 if (PyErr_Occurred()) SWIG_fail;
17414 }
17415 Py_INCREF(Py_None); resultobj = Py_None;
17416 return resultobj;
17417 fail:
17418 return NULL;
17419 }
17420
17421
17422 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17423 PyObject *resultobj;
17424 wxFontList *arg1 = (wxFontList *) 0 ;
17425 int result;
17426 PyObject * obj0 = 0 ;
17427 char *kwnames[] = {
17428 (char *) "self", NULL
17429 };
17430
17431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17434 {
17435 PyThreadState* __tstate = wxPyBeginAllowThreads();
17436 result = (int)(arg1)->GetCount();
17437
17438 wxPyEndAllowThreads(__tstate);
17439 if (PyErr_Occurred()) SWIG_fail;
17440 }
17441 resultobj = SWIG_FromInt((int)result);
17442 return resultobj;
17443 fail:
17444 return NULL;
17445 }
17446
17447
17448 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
17449 PyObject *obj;
17450 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17451 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17452 Py_INCREF(obj);
17453 return Py_BuildValue((char *)"");
17454 }
17455 static int _wrap_TheFontList_set(PyObject *_val) {
17456 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17457 return 1;
17458 }
17459
17460
17461 static PyObject *_wrap_TheFontList_get() {
17462 PyObject *pyobj;
17463
17464 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
17465 return pyobj;
17466 }
17467
17468
17469 static int _wrap_ThePenList_set(PyObject *_val) {
17470 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17471 return 1;
17472 }
17473
17474
17475 static PyObject *_wrap_ThePenList_get() {
17476 PyObject *pyobj;
17477
17478 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
17479 return pyobj;
17480 }
17481
17482
17483 static int _wrap_TheBrushList_set(PyObject *_val) {
17484 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17485 return 1;
17486 }
17487
17488
17489 static PyObject *_wrap_TheBrushList_get() {
17490 PyObject *pyobj;
17491
17492 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
17493 return pyobj;
17494 }
17495
17496
17497 static int _wrap_TheColourDatabase_set(PyObject *_val) {
17498 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17499 return 1;
17500 }
17501
17502
17503 static PyObject *_wrap_TheColourDatabase_get() {
17504 PyObject *pyobj;
17505
17506 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
17507 return pyobj;
17508 }
17509
17510
17511 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
17512 PyObject *resultobj;
17513 wxEffects *result;
17514 char *kwnames[] = {
17515 NULL
17516 };
17517
17518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
17519 {
17520 PyThreadState* __tstate = wxPyBeginAllowThreads();
17521 result = (wxEffects *)new wxEffects();
17522
17523 wxPyEndAllowThreads(__tstate);
17524 if (PyErr_Occurred()) SWIG_fail;
17525 }
17526 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
17527 return resultobj;
17528 fail:
17529 return NULL;
17530 }
17531
17532
17533 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17534 PyObject *resultobj;
17535 wxEffects *arg1 = (wxEffects *) 0 ;
17536 wxColour result;
17537 PyObject * obj0 = 0 ;
17538 char *kwnames[] = {
17539 (char *) "self", NULL
17540 };
17541
17542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
17543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17545 {
17546 PyThreadState* __tstate = wxPyBeginAllowThreads();
17547 result = ((wxEffects const *)arg1)->GetHighlightColour();
17548
17549 wxPyEndAllowThreads(__tstate);
17550 if (PyErr_Occurred()) SWIG_fail;
17551 }
17552 {
17553 wxColour * resultptr;
17554 resultptr = new wxColour((wxColour &) result);
17555 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17556 }
17557 return resultobj;
17558 fail:
17559 return NULL;
17560 }
17561
17562
17563 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17564 PyObject *resultobj;
17565 wxEffects *arg1 = (wxEffects *) 0 ;
17566 wxColour result;
17567 PyObject * obj0 = 0 ;
17568 char *kwnames[] = {
17569 (char *) "self", NULL
17570 };
17571
17572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
17573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17575 {
17576 PyThreadState* __tstate = wxPyBeginAllowThreads();
17577 result = ((wxEffects const *)arg1)->GetLightShadow();
17578
17579 wxPyEndAllowThreads(__tstate);
17580 if (PyErr_Occurred()) SWIG_fail;
17581 }
17582 {
17583 wxColour * resultptr;
17584 resultptr = new wxColour((wxColour &) result);
17585 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17586 }
17587 return resultobj;
17588 fail:
17589 return NULL;
17590 }
17591
17592
17593 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17594 PyObject *resultobj;
17595 wxEffects *arg1 = (wxEffects *) 0 ;
17596 wxColour result;
17597 PyObject * obj0 = 0 ;
17598 char *kwnames[] = {
17599 (char *) "self", NULL
17600 };
17601
17602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
17603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17605 {
17606 PyThreadState* __tstate = wxPyBeginAllowThreads();
17607 result = ((wxEffects const *)arg1)->GetFaceColour();
17608
17609 wxPyEndAllowThreads(__tstate);
17610 if (PyErr_Occurred()) SWIG_fail;
17611 }
17612 {
17613 wxColour * resultptr;
17614 resultptr = new wxColour((wxColour &) result);
17615 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17616 }
17617 return resultobj;
17618 fail:
17619 return NULL;
17620 }
17621
17622
17623 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17624 PyObject *resultobj;
17625 wxEffects *arg1 = (wxEffects *) 0 ;
17626 wxColour result;
17627 PyObject * obj0 = 0 ;
17628 char *kwnames[] = {
17629 (char *) "self", NULL
17630 };
17631
17632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
17633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17635 {
17636 PyThreadState* __tstate = wxPyBeginAllowThreads();
17637 result = ((wxEffects const *)arg1)->GetMediumShadow();
17638
17639 wxPyEndAllowThreads(__tstate);
17640 if (PyErr_Occurred()) SWIG_fail;
17641 }
17642 {
17643 wxColour * resultptr;
17644 resultptr = new wxColour((wxColour &) result);
17645 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17646 }
17647 return resultobj;
17648 fail:
17649 return NULL;
17650 }
17651
17652
17653 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17654 PyObject *resultobj;
17655 wxEffects *arg1 = (wxEffects *) 0 ;
17656 wxColour result;
17657 PyObject * obj0 = 0 ;
17658 char *kwnames[] = {
17659 (char *) "self", NULL
17660 };
17661
17662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
17663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17665 {
17666 PyThreadState* __tstate = wxPyBeginAllowThreads();
17667 result = ((wxEffects const *)arg1)->GetDarkShadow();
17668
17669 wxPyEndAllowThreads(__tstate);
17670 if (PyErr_Occurred()) SWIG_fail;
17671 }
17672 {
17673 wxColour * resultptr;
17674 resultptr = new wxColour((wxColour &) result);
17675 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17676 }
17677 return resultobj;
17678 fail:
17679 return NULL;
17680 }
17681
17682
17683 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17684 PyObject *resultobj;
17685 wxEffects *arg1 = (wxEffects *) 0 ;
17686 wxColour *arg2 = 0 ;
17687 wxColour temp2 ;
17688 PyObject * obj0 = 0 ;
17689 PyObject * obj1 = 0 ;
17690 char *kwnames[] = {
17691 (char *) "self",(char *) "c", NULL
17692 };
17693
17694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
17695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17697 {
17698 arg2 = &temp2;
17699 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17700 }
17701 {
17702 PyThreadState* __tstate = wxPyBeginAllowThreads();
17703 (arg1)->SetHighlightColour((wxColour const &)*arg2);
17704
17705 wxPyEndAllowThreads(__tstate);
17706 if (PyErr_Occurred()) SWIG_fail;
17707 }
17708 Py_INCREF(Py_None); resultobj = Py_None;
17709 return resultobj;
17710 fail:
17711 return NULL;
17712 }
17713
17714
17715 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17716 PyObject *resultobj;
17717 wxEffects *arg1 = (wxEffects *) 0 ;
17718 wxColour *arg2 = 0 ;
17719 wxColour temp2 ;
17720 PyObject * obj0 = 0 ;
17721 PyObject * obj1 = 0 ;
17722 char *kwnames[] = {
17723 (char *) "self",(char *) "c", NULL
17724 };
17725
17726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
17727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17729 {
17730 arg2 = &temp2;
17731 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17732 }
17733 {
17734 PyThreadState* __tstate = wxPyBeginAllowThreads();
17735 (arg1)->SetLightShadow((wxColour const &)*arg2);
17736
17737 wxPyEndAllowThreads(__tstate);
17738 if (PyErr_Occurred()) SWIG_fail;
17739 }
17740 Py_INCREF(Py_None); resultobj = Py_None;
17741 return resultobj;
17742 fail:
17743 return NULL;
17744 }
17745
17746
17747 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17748 PyObject *resultobj;
17749 wxEffects *arg1 = (wxEffects *) 0 ;
17750 wxColour *arg2 = 0 ;
17751 wxColour temp2 ;
17752 PyObject * obj0 = 0 ;
17753 PyObject * obj1 = 0 ;
17754 char *kwnames[] = {
17755 (char *) "self",(char *) "c", NULL
17756 };
17757
17758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
17759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17761 {
17762 arg2 = &temp2;
17763 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17764 }
17765 {
17766 PyThreadState* __tstate = wxPyBeginAllowThreads();
17767 (arg1)->SetFaceColour((wxColour const &)*arg2);
17768
17769 wxPyEndAllowThreads(__tstate);
17770 if (PyErr_Occurred()) SWIG_fail;
17771 }
17772 Py_INCREF(Py_None); resultobj = Py_None;
17773 return resultobj;
17774 fail:
17775 return NULL;
17776 }
17777
17778
17779 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17780 PyObject *resultobj;
17781 wxEffects *arg1 = (wxEffects *) 0 ;
17782 wxColour *arg2 = 0 ;
17783 wxColour temp2 ;
17784 PyObject * obj0 = 0 ;
17785 PyObject * obj1 = 0 ;
17786 char *kwnames[] = {
17787 (char *) "self",(char *) "c", NULL
17788 };
17789
17790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
17791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17793 {
17794 arg2 = &temp2;
17795 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17796 }
17797 {
17798 PyThreadState* __tstate = wxPyBeginAllowThreads();
17799 (arg1)->SetMediumShadow((wxColour const &)*arg2);
17800
17801 wxPyEndAllowThreads(__tstate);
17802 if (PyErr_Occurred()) SWIG_fail;
17803 }
17804 Py_INCREF(Py_None); resultobj = Py_None;
17805 return resultobj;
17806 fail:
17807 return NULL;
17808 }
17809
17810
17811 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17812 PyObject *resultobj;
17813 wxEffects *arg1 = (wxEffects *) 0 ;
17814 wxColour *arg2 = 0 ;
17815 wxColour temp2 ;
17816 PyObject * obj0 = 0 ;
17817 PyObject * obj1 = 0 ;
17818 char *kwnames[] = {
17819 (char *) "self",(char *) "c", NULL
17820 };
17821
17822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
17823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17825 {
17826 arg2 = &temp2;
17827 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17828 }
17829 {
17830 PyThreadState* __tstate = wxPyBeginAllowThreads();
17831 (arg1)->SetDarkShadow((wxColour const &)*arg2);
17832
17833 wxPyEndAllowThreads(__tstate);
17834 if (PyErr_Occurred()) SWIG_fail;
17835 }
17836 Py_INCREF(Py_None); resultobj = Py_None;
17837 return resultobj;
17838 fail:
17839 return NULL;
17840 }
17841
17842
17843 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17844 PyObject *resultobj;
17845 wxEffects *arg1 = (wxEffects *) 0 ;
17846 wxColour *arg2 = 0 ;
17847 wxColour *arg3 = 0 ;
17848 wxColour *arg4 = 0 ;
17849 wxColour *arg5 = 0 ;
17850 wxColour *arg6 = 0 ;
17851 wxColour temp2 ;
17852 wxColour temp3 ;
17853 wxColour temp4 ;
17854 wxColour temp5 ;
17855 wxColour temp6 ;
17856 PyObject * obj0 = 0 ;
17857 PyObject * obj1 = 0 ;
17858 PyObject * obj2 = 0 ;
17859 PyObject * obj3 = 0 ;
17860 PyObject * obj4 = 0 ;
17861 PyObject * obj5 = 0 ;
17862 char *kwnames[] = {
17863 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
17864 };
17865
17866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
17867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17869 {
17870 arg2 = &temp2;
17871 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17872 }
17873 {
17874 arg3 = &temp3;
17875 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17876 }
17877 {
17878 arg4 = &temp4;
17879 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17880 }
17881 {
17882 arg5 = &temp5;
17883 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
17884 }
17885 {
17886 arg6 = &temp6;
17887 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
17888 }
17889 {
17890 PyThreadState* __tstate = wxPyBeginAllowThreads();
17891 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
17892
17893 wxPyEndAllowThreads(__tstate);
17894 if (PyErr_Occurred()) SWIG_fail;
17895 }
17896 Py_INCREF(Py_None); resultobj = Py_None;
17897 return resultobj;
17898 fail:
17899 return NULL;
17900 }
17901
17902
17903 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
17904 PyObject *resultobj;
17905 wxEffects *arg1 = (wxEffects *) 0 ;
17906 wxDC *arg2 = 0 ;
17907 wxRect *arg3 = 0 ;
17908 int arg4 = (int) 1 ;
17909 wxRect temp3 ;
17910 PyObject * obj0 = 0 ;
17911 PyObject * obj1 = 0 ;
17912 PyObject * obj2 = 0 ;
17913 PyObject * obj3 = 0 ;
17914 char *kwnames[] = {
17915 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
17916 };
17917
17918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17921 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
17922 SWIG_POINTER_EXCEPTION | 0)) == -1)
17923 SWIG_fail;
17924 if (arg2 == NULL) {
17925 PyErr_SetString(PyExc_TypeError,"null reference");
17926 SWIG_fail;
17927 }
17928 {
17929 arg3 = &temp3;
17930 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17931 }
17932 if (obj3) {
17933 arg4 = (int) SWIG_AsInt(obj3);
17934 if (PyErr_Occurred()) SWIG_fail;
17935 }
17936 {
17937 PyThreadState* __tstate = wxPyBeginAllowThreads();
17938 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
17939
17940 wxPyEndAllowThreads(__tstate);
17941 if (PyErr_Occurred()) SWIG_fail;
17942 }
17943 Py_INCREF(Py_None); resultobj = Py_None;
17944 return resultobj;
17945 fail:
17946 return NULL;
17947 }
17948
17949
17950 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
17951 PyObject *resultobj;
17952 wxEffects *arg1 = (wxEffects *) 0 ;
17953 wxRect *arg2 = 0 ;
17954 wxDC *arg3 = 0 ;
17955 wxBitmap *arg4 = 0 ;
17956 bool result;
17957 wxRect temp2 ;
17958 PyObject * obj0 = 0 ;
17959 PyObject * obj1 = 0 ;
17960 PyObject * obj2 = 0 ;
17961 PyObject * obj3 = 0 ;
17962 char *kwnames[] = {
17963 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
17964 };
17965
17966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17969 {
17970 arg2 = &temp2;
17971 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17972 }
17973 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
17974 SWIG_POINTER_EXCEPTION | 0)) == -1)
17975 SWIG_fail;
17976 if (arg3 == NULL) {
17977 PyErr_SetString(PyExc_TypeError,"null reference");
17978 SWIG_fail;
17979 }
17980 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
17981 SWIG_POINTER_EXCEPTION | 0)) == -1)
17982 SWIG_fail;
17983 if (arg4 == NULL) {
17984 PyErr_SetString(PyExc_TypeError,"null reference");
17985 SWIG_fail;
17986 }
17987 {
17988 PyThreadState* __tstate = wxPyBeginAllowThreads();
17989 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
17990
17991 wxPyEndAllowThreads(__tstate);
17992 if (PyErr_Occurred()) SWIG_fail;
17993 }
17994 {
17995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17996 }
17997 return resultobj;
17998 fail:
17999 return NULL;
18000 }
18001
18002
18003 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18004 PyObject *obj;
18005 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18006 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18007 Py_INCREF(obj);
18008 return Py_BuildValue((char *)"");
18009 }
18010 static PyMethodDef SwigMethods[] = {
18011 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18012 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18013 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18014 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18015 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18016 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18017 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
18018 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18019 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
18020 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
18021 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18022 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18023 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18024 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18025 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
18026 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
18027 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
18028 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
18029 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18030 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18031 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
18032 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
18033 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18034 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18035 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18036 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18037 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18038 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18039 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18040 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18041 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18042 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18043 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18044 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18045 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18046 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18047 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18048 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18049 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18050 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18051 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18052 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18053 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18054 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
18055 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS },
18056 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
18057 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
18058 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
18059 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
18060 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18061 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18062 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18063 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18064 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18065 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18066 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18067 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18068 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18069 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18070 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18071 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
18072 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
18073 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18074 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18075 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
18076 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
18077 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
18078 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
18079 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
18080 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
18081 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS },
18082 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
18083 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
18084 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
18085 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
18086 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
18087 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
18088 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
18089 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
18090 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
18091 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
18092 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
18093 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
18094 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
18095 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
18096 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
18097 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
18098 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
18099 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
18100 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
18101 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
18102 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
18103 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
18104 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
18105 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
18106 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
18107 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
18108 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
18109 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
18110 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
18111 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
18112 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
18113 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
18114 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
18115 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
18116 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
18117 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
18118 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
18119 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
18120 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
18121 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
18122 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
18123 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
18124 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
18125 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
18126 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
18127 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
18128 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
18129 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
18130 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
18131 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
18132 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
18133 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
18134 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
18135 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
18136 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
18137 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
18138 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
18139 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
18140 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
18141 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
18142 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
18143 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
18144 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
18145 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
18146 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
18147 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
18148 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
18149 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
18150 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
18151 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
18152 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
18153 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
18154 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
18155 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
18156 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
18157 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
18158 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
18159 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
18160 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
18161 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
18162 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
18163 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
18164 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18165 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18166 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
18167 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
18168 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
18169 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
18170 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
18171 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
18172 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
18173 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
18174 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
18175 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
18176 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
18177 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
18178 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18179 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18180 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
18181 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
18182 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18183 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
18184 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
18185 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18186 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18187 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
18188 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18189 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18190 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
18191 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
18192 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18193 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18194 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
18195 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18196 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18197 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18198 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
18199 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
18200 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
18201 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
18202 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
18203 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
18204 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
18205 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
18206 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18207 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18208 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18209 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18210 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
18211 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
18212 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
18213 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
18214 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
18215 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
18216 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
18217 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
18218 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
18219 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18220 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
18221 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
18222 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS },
18223 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
18224 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
18225 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
18226 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
18227 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
18228 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
18229 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
18230 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
18231 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
18232 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
18233 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
18234 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
18235 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
18236 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
18237 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
18238 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
18239 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18240 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
18241 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
18242 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
18243 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18244 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18245 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18246 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18247 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
18248 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
18249 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18250 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18251 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
18252 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
18253 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
18254 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18255 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18256 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18257 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18258 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
18259 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18260 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
18261 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
18262 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
18263 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18264 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18265 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18266 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18267 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
18268 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18269 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18270 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
18271 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
18272 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
18273 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
18274 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
18275 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
18276 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
18277 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
18278 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
18279 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
18280 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
18281 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
18282 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
18283 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
18284 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
18285 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
18286 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
18287 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
18288 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
18289 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
18290 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
18291 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
18292 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
18293 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
18294 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
18295 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
18296 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
18297 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
18298 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18299 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
18300 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18301 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
18302 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
18303 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
18304 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
18305 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
18306 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
18307 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18308 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18309 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
18310 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
18311 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
18312 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
18313 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
18314 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
18315 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
18316 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
18317 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
18318 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
18319 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
18320 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
18321 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
18322 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
18323 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
18324 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
18325 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
18326 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
18327 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
18328 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
18329 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
18330 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
18331 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
18332 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
18333 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
18334 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
18335 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
18336 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
18337 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
18338 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
18339 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
18340 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
18341 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
18342 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
18343 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
18344 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
18345 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
18346 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
18347 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
18348 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
18349 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
18350 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
18351 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
18352 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
18353 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
18354 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
18355 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
18356 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
18357 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
18358 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
18359 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
18360 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
18361 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
18362 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
18363 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
18364 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
18365 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
18366 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
18367 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
18368 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
18369 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18370 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
18371 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
18372 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
18373 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
18374 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
18375 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
18376 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
18377 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
18378 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
18379 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
18380 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
18381 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
18382 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
18383 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
18384 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
18385 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
18386 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
18387 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
18388 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
18389 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
18390 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
18391 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
18392 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
18393 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
18394 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
18395 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
18396 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
18397 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
18398 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
18399 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
18400 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
18401 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18402 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
18403 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
18404 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
18405 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
18406 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
18407 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
18408 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
18409 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
18410 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
18411 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
18412 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
18413 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
18414 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18415 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18416 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18417 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
18418 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18419 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18420 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
18421 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18422 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
18423 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18424 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18425 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
18426 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
18427 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
18428 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18429 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
18430 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
18431 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
18432 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
18433 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18434 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
18435 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
18436 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
18437 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
18438 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
18439 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
18440 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
18441 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
18442 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
18443 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
18444 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
18445 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
18446 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
18447 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
18448 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
18449 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
18450 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
18451 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
18452 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
18453 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
18454 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18455 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18456 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
18457 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
18458 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
18459 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
18460 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
18461 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
18462 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
18463 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
18464 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
18465 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
18466 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
18467 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
18468 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
18469 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
18470 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
18471 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
18472 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
18473 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
18474 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
18475 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
18476 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
18477 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
18478 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
18479 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
18480 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
18481 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
18482 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
18483 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
18484 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
18485 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
18486 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
18487 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
18488 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
18489 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
18490 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
18491 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
18492 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
18493 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
18494 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
18495 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
18496 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
18497 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
18498 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
18499 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18500 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18501 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
18502 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
18503 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
18504 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
18505 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
18506 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
18507 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
18508 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
18509 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
18510 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
18511 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
18512 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18513 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
18514 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
18515 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18516 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18517 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18518 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
18519 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
18520 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18521 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18522 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
18523 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
18524 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
18525 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
18526 { NULL, NULL }
18527 };
18528
18529
18530 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
18531
18532 static void *_p_wxControlTo_p_wxWindow(void *x) {
18533 return (void *)((wxWindow *) ((wxControl *) x));
18534 }
18535 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
18536 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
18537 }
18538 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
18539 return (void *)((wxWindow *) ((wxMenuBar *) x));
18540 }
18541 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
18542 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
18543 }
18544 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
18545 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
18546 }
18547 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
18548 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
18549 }
18550 static void *_p_wxPenTo_p_wxObject(void *x) {
18551 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
18552 }
18553 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
18554 return (void *)((wxObject *) ((wxRegionIterator *) x));
18555 }
18556 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
18557 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
18558 }
18559 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
18560 return (void *)((wxObject *) ((wxSizerItem *) x));
18561 }
18562 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
18563 return (void *)((wxObject *) ((wxColourDatabase *) x));
18564 }
18565 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
18566 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
18567 }
18568 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
18569 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
18570 }
18571 static void *_p_wxIconTo_p_wxObject(void *x) {
18572 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
18573 }
18574 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
18575 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
18576 }
18577 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
18578 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
18579 }
18580 static void *_p_wxSizerTo_p_wxObject(void *x) {
18581 return (void *)((wxObject *) ((wxSizer *) x));
18582 }
18583 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
18584 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
18585 }
18586 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18587 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18588 }
18589 static void *_p_wxPenListTo_p_wxObject(void *x) {
18590 return (void *)((wxObject *) ((wxPenList *) x));
18591 }
18592 static void *_p_wxEventTo_p_wxObject(void *x) {
18593 return (void *)((wxObject *) ((wxEvent *) x));
18594 }
18595 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
18596 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
18597 }
18598 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
18599 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
18600 }
18601 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
18602 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
18603 }
18604 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
18605 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
18606 }
18607 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
18608 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
18609 }
18610 static void *_p_wxDCTo_p_wxObject(void *x) {
18611 return (void *)((wxObject *) ((wxDC *) x));
18612 }
18613 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
18614 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
18615 }
18616 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
18617 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
18618 }
18619 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
18620 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
18621 }
18622 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
18623 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
18624 }
18625 static void *_p_wxControlTo_p_wxObject(void *x) {
18626 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
18627 }
18628 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
18629 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
18630 }
18631 static void *_p_wxClientDCTo_p_wxObject(void *x) {
18632 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
18633 }
18634 static void *_p_wxFSFileTo_p_wxObject(void *x) {
18635 return (void *)((wxObject *) ((wxFSFile *) x));
18636 }
18637 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
18638 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
18639 }
18640 static void *_p_wxRegionTo_p_wxObject(void *x) {
18641 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
18642 }
18643 static void *_p_wxPySizerTo_p_wxObject(void *x) {
18644 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
18645 }
18646 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
18647 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
18648 }
18649 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
18650 return (void *)((wxObject *) ((wxGDIObject *) x));
18651 }
18652 static void *_p_wxEffectsTo_p_wxObject(void *x) {
18653 return (void *)((wxObject *) ((wxEffects *) x));
18654 }
18655 static void *_p_wxPyEventTo_p_wxObject(void *x) {
18656 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
18657 }
18658 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
18659 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
18660 }
18661 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
18662 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
18663 }
18664 static void *_p_wxShowEventTo_p_wxObject(void *x) {
18665 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
18666 }
18667 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
18668 return (void *)((wxObject *) ((wxMenuItem *) x));
18669 }
18670 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
18671 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
18672 }
18673 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
18674 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
18675 }
18676 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
18677 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
18678 }
18679 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
18680 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
18681 }
18682 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
18683 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
18684 }
18685 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
18686 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
18687 }
18688 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
18689 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
18690 }
18691 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
18692 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
18693 }
18694 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
18695 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
18696 }
18697 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
18698 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
18699 }
18700 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
18701 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
18702 }
18703 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
18704 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
18705 }
18706 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
18707 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
18708 }
18709 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
18710 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
18711 }
18712 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
18713 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
18714 }
18715 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
18716 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
18717 }
18718 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
18719 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
18720 }
18721 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
18722 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
18723 }
18724 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
18725 return (void *)((wxObject *) ((wxImageHandler *) x));
18726 }
18727 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
18728 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
18729 }
18730 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
18731 return (void *)((wxObject *) ((wxEvtHandler *) x));
18732 }
18733 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
18734 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18735 }
18736 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
18737 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
18738 }
18739 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
18740 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
18741 }
18742 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
18743 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
18744 }
18745 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
18746 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
18747 }
18748 static void *_p_wxImageTo_p_wxObject(void *x) {
18749 return (void *)((wxObject *) ((wxImage *) x));
18750 }
18751 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
18752 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
18753 }
18754 static void *_p_wxPaletteTo_p_wxObject(void *x) {
18755 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
18756 }
18757 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
18758 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
18759 }
18760 static void *_p_wxImageListTo_p_wxObject(void *x) {
18761 return (void *)((wxObject *) ((wxImageList *) x));
18762 }
18763 static void *_p_wxCursorTo_p_wxObject(void *x) {
18764 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
18765 }
18766 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
18767 return (void *)((wxObject *) ((wxEncodingConverter *) x));
18768 }
18769 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
18770 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
18771 }
18772 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
18773 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
18774 }
18775 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
18776 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
18777 }
18778 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
18779 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
18780 }
18781 static void *_p_wxWindowTo_p_wxObject(void *x) {
18782 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
18783 }
18784 static void *_p_wxMenuTo_p_wxObject(void *x) {
18785 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
18786 }
18787 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
18788 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
18789 }
18790 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
18791 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
18792 }
18793 static void *_p_wxBrushListTo_p_wxObject(void *x) {
18794 return (void *)((wxObject *) ((wxBrushList *) x));
18795 }
18796 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
18797 return (void *)((wxObject *) ((wxFileSystem *) x));
18798 }
18799 static void *_p_wxBitmapTo_p_wxObject(void *x) {
18800 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
18801 }
18802 static void *_p_wxMaskTo_p_wxObject(void *x) {
18803 return (void *)((wxObject *) ((wxMask *) x));
18804 }
18805 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
18806 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
18807 }
18808 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
18809 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
18810 }
18811 static void *_p_wxPyAppTo_p_wxObject(void *x) {
18812 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
18813 }
18814 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
18815 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
18816 }
18817 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
18818 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
18819 }
18820 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
18821 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
18822 }
18823 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
18824 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
18825 }
18826 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
18827 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
18828 }
18829 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
18830 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
18831 }
18832 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
18833 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
18834 }
18835 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
18836 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
18837 }
18838 static void *_p_wxFontTo_p_wxObject(void *x) {
18839 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
18840 }
18841 static void *_p_wxBrushTo_p_wxObject(void *x) {
18842 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
18843 }
18844 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
18845 return (void *)((wxObject *) ((wxMetaFile *) x));
18846 }
18847 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
18848 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
18849 }
18850 static void *_p_wxColourTo_p_wxObject(void *x) {
18851 return (void *)((wxObject *) ((wxColour *) x));
18852 }
18853 static void *_p_wxFontListTo_p_wxObject(void *x) {
18854 return (void *)((wxObject *) ((wxFontList *) x));
18855 }
18856 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
18857 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
18858 }
18859 static void *_p_wxValidatorTo_p_wxObject(void *x) {
18860 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
18861 }
18862 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
18863 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
18864 }
18865 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
18866 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
18867 }
18868 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
18869 return (void *)((wxDC *) ((wxScreenDC *) x));
18870 }
18871 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
18872 return (void *)((wxDC *) ((wxMirrorDC *) x));
18873 }
18874 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
18875 return (void *)((wxDC *) ((wxMemoryDC *) x));
18876 }
18877 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
18878 return (void *)((wxDC *) ((wxWindowDC *) x));
18879 }
18880 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
18881 return (void *)((wxDC *) ((wxMetaFileDC *) x));
18882 }
18883 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
18884 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18885 }
18886 static void *_p_wxClientDCTo_p_wxDC(void *x) {
18887 return (void *)((wxDC *) ((wxClientDC *) x));
18888 }
18889 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
18890 return (void *)((wxDC *) ((wxPaintDC *) x));
18891 }
18892 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
18893 return (void *)((wxDC *) ((wxPostScriptDC *) x));
18894 }
18895 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
18896 return (void *)((wxDC *) ((wxPrinterDC *) x));
18897 }
18898 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
18899 return (void *)((wxGDIObject *) ((wxIcon *) x));
18900 }
18901 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
18902 return (void *)((wxGDIObject *) ((wxPalette *) x));
18903 }
18904 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
18905 return (void *)((wxGDIObject *) ((wxPen *) x));
18906 }
18907 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
18908 return (void *)((wxGDIObject *) ((wxFont *) x));
18909 }
18910 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
18911 return (void *)((wxGDIObject *) ((wxCursor *) x));
18912 }
18913 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
18914 return (void *)((wxGDIObject *) ((wxBitmap *) x));
18915 }
18916 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
18917 return (void *)((wxGDIObject *) ((wxRegion *) x));
18918 }
18919 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
18920 return (void *)((wxGDIObject *) ((wxBrush *) x));
18921 }
18922 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}};
18923 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}};
18924 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}};
18925 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}};
18926 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}};
18927 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}};
18928 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}};
18929 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}};
18930 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}};
18931 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}};
18932 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}};
18933 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}};
18934 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}};
18935 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}};
18936 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}};
18937 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}};
18938 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}};
18939 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}};
18940 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}};
18941 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}};
18942 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}};
18943 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}};
18944 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_wxPCXHandler", _p_wxPCXHandlerTo_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_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_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}};
18945 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}};
18946 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}};
18947 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}};
18948 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}};
18949 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}};
18950 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}};
18951 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}};
18952 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}};
18953 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}};
18954 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}};
18955 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}};
18956 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}};
18957 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}};
18958 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_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}};
18959 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}};
18960 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}};
18961 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}};
18962 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}};
18963 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}};
18964 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}};
18965 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}};
18966 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}};
18967 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}};
18968 static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0, 0, 0, 0},{"_p_wxPen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
18969 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}};
18970 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}};
18971 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}};
18972 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}};
18973 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}};
18974 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}};
18975 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}};
18976 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}};
18977
18978 static swig_type_info *swig_types_initial[] = {
18979 _swigt__p_wxPostScriptDC,
18980 _swigt__p_wxBrush,
18981 _swigt__p_wxColour,
18982 _swigt__p_wxDC,
18983 _swigt__p_wxMirrorDC,
18984 _swigt__p_byte,
18985 _swigt__p_wxPyFontEnumerator,
18986 _swigt__p_char,
18987 _swigt__p_wxIconLocation,
18988 _swigt__p_wxImage,
18989 _swigt__p_wxMetaFileDC,
18990 _swigt__p_wxMask,
18991 _swigt__p_wxSize,
18992 _swigt__p_wxFont,
18993 _swigt__p_wxWindow,
18994 _swigt__p_double,
18995 _swigt__p_wxMemoryDC,
18996 _swigt__p_wxFontMapper,
18997 _swigt__p_wxEffects,
18998 _swigt__p_wxNativeEncodingInfo,
18999 _swigt__p_wxPalette,
19000 _swigt__p_wxBitmap,
19001 _swigt__p_wxObject,
19002 _swigt__p_wxRegionIterator,
19003 _swigt__p_wxRect,
19004 _swigt__p_wxString,
19005 _swigt__p_wxPrinterDC,
19006 _swigt__p_wxIconBundle,
19007 _swigt__p_wxPoint,
19008 _swigt__p_wxDash,
19009 _swigt__p_wxScreenDC,
19010 _swigt__p_wxCursor,
19011 _swigt__p_wxClientDC,
19012 _swigt__p_wxBufferedDC,
19013 _swigt__p_wxImageList,
19014 _swigt__p_unsigned_char,
19015 _swigt__p_wxGDIObject,
19016 _swigt__p_wxIcon,
19017 _swigt__p_wxLocale,
19018 _swigt__p_wxRegion,
19019 _swigt__p_wxLanguageInfo,
19020 _swigt__p_wxConfigBase,
19021 _swigt__p_wxWindowDC,
19022 _swigt__p_wxPrintData,
19023 _swigt__p_wxBrushList,
19024 _swigt__p_wxFontList,
19025 _swigt__p_wxPen,
19026 _swigt__p_wxBufferedPaintDC,
19027 _swigt__p_wxPaintDC,
19028 _swigt__p_wxPenList,
19029 _swigt__p_int,
19030 _swigt__p_wxMetaFile,
19031 _swigt__p_wxNativeFontInfo,
19032 _swigt__p_wxEncodingConverter,
19033 _swigt__p_wxColourDatabase,
19034 0
19035 };
19036
19037
19038 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19039
19040 static swig_const_info swig_const_table[] = {
19041 {0}};
19042
19043 #ifdef __cplusplus
19044 }
19045 #endif
19046
19047 #ifdef __cplusplus
19048 extern "C"
19049 #endif
19050 SWIGEXPORT(void) SWIG_init(void) {
19051 static PyObject *SWIG_globals = 0;
19052 static int typeinit = 0;
19053 PyObject *m, *d;
19054 int i;
19055 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19056 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19057 d = PyModule_GetDict(m);
19058
19059 if (!typeinit) {
19060 for (i = 0; swig_types_initial[i]; i++) {
19061 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19062 }
19063 typeinit = 1;
19064 }
19065 SWIG_InstallConstants(d,swig_const_table);
19066
19067 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
19068 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
19069 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
19070 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
19071 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
19072 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
19073 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
19074 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
19075 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
19076 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
19077 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
19078 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
19079 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
19080 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
19081 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
19082 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
19083 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
19084 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
19085 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
19086 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
19087 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
19088 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
19089 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
19090 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
19091 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
19092 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
19093 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
19094 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
19095 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
19096 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
19097 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
19098 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
19099 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
19100 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
19101 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
19102 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
19103 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
19104 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
19105 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
19106 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
19107 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
19108 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
19109 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
19110 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
19111 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
19112 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
19113 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
19114 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
19115 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
19116 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U));
19117 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
19118 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
19119 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
19120 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
19121 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
19122 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
19123 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
19124 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
19125 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
19126 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
19127 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
19128 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
19129 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
19130 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
19131 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
19132 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
19133 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
19134 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
19135 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
19136 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
19137 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
19138 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
19139 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
19140 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
19141 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
19142 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
19143 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
19144 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
19145 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
19146 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
19147 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
19148 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
19149 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
19150 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
19151 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
19152 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
19153 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
19154 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
19155 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
19156 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
19157 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
19158 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
19159 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
19160 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
19161 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
19162 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
19163 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
19164 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
19165 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
19166 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
19167 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
19168 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
19169 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
19170 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
19171 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
19172 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
19173 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
19174 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
19175 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
19176 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
19177 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
19178 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
19179 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
19180 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
19181 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
19182 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
19183 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
19184 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
19185 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
19186 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
19187 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
19188 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
19189 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
19190 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
19191 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
19192 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
19193 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
19194
19195 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19196
19197 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
19198 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
19199 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
19200 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
19201 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
19202 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
19203 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
19204 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
19205 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
19206 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
19207 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
19208 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
19209 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
19210 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
19211 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
19212 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
19213 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
19214 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
19215 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
19216 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19217 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
19218 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
19219 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
19220 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
19221 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
19222 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
19223 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
19224 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
19225 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
19226 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
19227 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
19228 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
19229 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
19230 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
19231 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
19232 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
19233 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
19234 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
19235 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
19236 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
19237 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
19238 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
19239 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
19240 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
19241 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19242 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19243 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
19244 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
19245 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
19246 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
19247 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
19248 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
19249 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
19250 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
19251 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
19252 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
19253 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
19254 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
19255 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
19256 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19257 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
19258 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19259 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
19260 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19261 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
19262 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
19263 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
19264 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19265 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19266 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19267 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19268 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19269 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
19270 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
19271 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
19272 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
19273 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
19274 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
19275 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
19276 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
19277 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
19278 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19279 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
19280 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
19281 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
19282 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
19283 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
19284 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
19285 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19286 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
19287 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19288 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19289 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
19290 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
19291 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
19292 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
19293 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
19294 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
19295 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
19296 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
19297 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
19298 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
19299 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
19300 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
19301 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
19302 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
19303 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
19304 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
19305 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
19306 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19307 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
19308 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
19309 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
19310 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
19311 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19312 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
19313 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
19314 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
19315 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
19316 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
19317 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
19318 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
19319 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
19320 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
19321 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
19322 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
19323 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
19324 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
19325 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
19326 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
19327 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
19328 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
19329 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19330 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19331 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
19332 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
19333 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
19334 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
19335 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19336 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
19337 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
19338 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
19339 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
19340 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19341 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19342 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
19343 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
19344 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
19345 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
19346 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
19347 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
19348 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19349 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
19350 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
19351 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
19352 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
19353 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
19354 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19355 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
19356 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
19357 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
19358 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19359 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
19360 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19361 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19362 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19363 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
19364 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
19365 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
19366 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
19367 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
19368 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
19369 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
19370 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
19371 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
19372 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
19373 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19374 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19375 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19376 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19377 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19378 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19379 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19380 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19381 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19382 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19383 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19384 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19385 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19386 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19387 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19388 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19389 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19390 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19391 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
19392 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19393 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
19394 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
19395 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
19396 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19397 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
19398 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
19399 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
19400 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
19401 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
19402 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
19403 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
19404 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
19405 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
19406 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
19407 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
19408 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
19409 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
19410 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
19411 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
19412 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
19413 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
19414 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19415 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
19416 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19417 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19418 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
19419 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
19420 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
19421 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
19422 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
19423 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
19424 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
19425 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
19426 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
19427 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
19428 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
19429 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
19430 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
19431 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
19432 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19433 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
19434 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19435 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
19436 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
19437 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
19438 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
19439 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
19440 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
19441 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
19442 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
19443 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19444 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19445 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19446 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19447 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
19448 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
19449 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
19450 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19451 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19452 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19453 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19454 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19455 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19456 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19457 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19458 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19459 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19460 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19461 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19462 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19463 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19464 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19465 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19466 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19467 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19468 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19469 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19470 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19471 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19472 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19473 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19474 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19475 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19476 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19477 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19478 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19479 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19480 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19481 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19482 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19483 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19484 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19485 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19486 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19487 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19488 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19489 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19490 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19491 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19492 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19493 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19494 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19495 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19496 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
19497
19498 // Work around a chicken/egg problem in drawlist.cpp
19499 wxPyDrawList_SetAPIPtr();
19500
19501 }
19502