]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
Removed calls to wx.InitAllImageHandlers.
[wxWidgets.git] / wxPython / src / msw / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 /***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136 #include "Python.h"
137
138 #ifdef __cplusplus
139 extern "C" {
140 #endif
141
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
147
148 /* Flags for pointer conversion */
149
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
152
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
155
156 /* Constant information structure */
157 typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164 } swig_const_info;
165
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
207 /* -------- TYPES TABLE (BEGIN) -------- */
208
209 #define SWIGTYPE_p_wxPostScriptDC swig_types[0]
210 #define SWIGTYPE_p_wxBrush swig_types[1]
211 #define SWIGTYPE_p_wxColour swig_types[2]
212 #define SWIGTYPE_p_wxDC swig_types[3]
213 #define SWIGTYPE_p_wxMirrorDC swig_types[4]
214 #define SWIGTYPE_p_byte swig_types[5]
215 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
216 #define SWIGTYPE_p_char swig_types[7]
217 #define SWIGTYPE_p_wxIconLocation swig_types[8]
218 #define SWIGTYPE_p_wxImage swig_types[9]
219 #define SWIGTYPE_p_wxMetaFileDC swig_types[10]
220 #define SWIGTYPE_p_wxMask swig_types[11]
221 #define SWIGTYPE_p_wxSize swig_types[12]
222 #define SWIGTYPE_p_wxFont swig_types[13]
223 #define SWIGTYPE_p_wxWindow swig_types[14]
224 #define SWIGTYPE_p_double swig_types[15]
225 #define SWIGTYPE_p_wxMemoryDC swig_types[16]
226 #define SWIGTYPE_p_wxFontMapper swig_types[17]
227 #define SWIGTYPE_p_wxEffects swig_types[18]
228 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19]
229 #define SWIGTYPE_p_wxPalette swig_types[20]
230 #define SWIGTYPE_p_wxBitmap swig_types[21]
231 #define SWIGTYPE_p_wxObject swig_types[22]
232 #define SWIGTYPE_p_wxRegionIterator swig_types[23]
233 #define SWIGTYPE_p_wxRect swig_types[24]
234 #define SWIGTYPE_p_wxString swig_types[25]
235 #define SWIGTYPE_p_wxPrinterDC swig_types[26]
236 #define SWIGTYPE_p_wxIconBundle swig_types[27]
237 #define SWIGTYPE_p_wxPoint swig_types[28]
238 #define SWIGTYPE_p_wxDash swig_types[29]
239 #define SWIGTYPE_p_wxScreenDC swig_types[30]
240 #define SWIGTYPE_p_wxCursor swig_types[31]
241 #define SWIGTYPE_p_wxClientDC swig_types[32]
242 #define SWIGTYPE_p_wxBufferedDC swig_types[33]
243 #define SWIGTYPE_p_wxImageList swig_types[34]
244 #define SWIGTYPE_p_unsigned_char swig_types[35]
245 #define SWIGTYPE_p_wxGDIObject swig_types[36]
246 #define SWIGTYPE_p_wxIcon swig_types[37]
247 #define SWIGTYPE_p_wxLocale swig_types[38]
248 #define SWIGTYPE_p_wxRegion swig_types[39]
249 #define SWIGTYPE_p_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
604 SWIGSTATICINLINE(int)
605 SWIG_CheckLong(PyObject* obj)
606 {
607 SWIG_AsLong(obj);
608 if (PyErr_Occurred()) {
609 PyErr_Clear();
610 return 0;
611 } else {
612 return 1;
613 }
614 }
615
616 void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
617 wxSize wxBitmap_GetSize(wxBitmap *self){
618 wxSize size(self->GetWidth(), self->GetHeight());
619 return size;
620 }
621 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
622 wxMask *mask = new wxMask(*self, colour);
623 self->SetMask(mask);
624 }
625 void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
626 self->SetWidth(size.x);
627 self->SetHeight(size.y);
628 }
629 bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; }
630 bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; }
631 wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
632 if ( !colour.Ok() )
633 return new wxMask(bitmap, *wxBLACK);
634 else
635 return new wxMask(bitmap, colour);
636 }
637
638 #include <wx/iconbndl.h>
639
640 wxIcon *new_wxIcon(wxBitmap const &bmp){
641 wxIcon* icon = new wxIcon();
642 icon->CopyFromBitmap(bmp);
643 return icon;
644 }
645 wxIcon *new_wxIcon(PyObject *listOfStrings){
646 char** cArray = NULL;
647 wxIcon* icon;
648
649 cArray = ConvertListOfStrings(listOfStrings);
650 if (! cArray)
651 return NULL;
652 icon = new wxIcon(cArray);
653 delete [] cArray;
654 return icon;
655 }
656 void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
657 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
658
659 return new wxIconLocation(*filename, num);
660
661
662
663 }
664 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
665
666 self->SetIndex(num);
667
668
669
670 }
671 int wxIconLocation_GetIndex(wxIconLocation *self){
672
673 return self->GetIndex();
674
675
676
677 }
678 wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
679 #ifdef __WXGTK__
680 wxCHECK_MSG(False, NULL,
681 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
682 #else
683 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
684 #endif
685 }
686 void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
687
688
689 void wxRegionIterator_Next(wxRegionIterator *self){
690 (*self) ++;
691 }
692 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
693 return self->operator bool();
694 }
695
696 #include <wx/fontutil.h>
697 #include <wx/fontmap.h>
698 #include <wx/fontenum.h>
699
700 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
701 return self->ToString();
702 }
703
704 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
705 { wxPyRaiseNotImplemented(); return NULL; }
706
707 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
708 { wxPyRaiseNotImplemented(); return False; }
709
710 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
711 wxFontEncoding alt_enc;
712 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
713 return PyInt_FromLong(alt_enc);
714 else {
715 Py_INCREF(Py_None);
716 return Py_None;
717 }
718 }
719 wxFont *new_wxFont(wxString const &info){
720 wxNativeFontInfo nfi;
721 nfi.FromString(info);
722 return new wxFont(nfi);
723 }
724 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
725 return wxFont::New(pointSize, family, flags, face, encoding);
726 }
727 bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
728 bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
729
730 class wxPyFontEnumerator : public wxFontEnumerator {
731 public:
732 wxPyFontEnumerator() {}
733 ~wxPyFontEnumerator() {}
734
735 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
736 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
737
738 PYPRIVATE;
739 };
740
741 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
742 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
743
744
745 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
746 wxArrayString* arr = self->GetEncodings();
747 return wxArrayString2PyList_helper(*arr);
748 }
749 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
750 wxArrayString* arr = self->GetFacenames();
751 return wxArrayString2PyList_helper(*arr);
752 }
753
754
755 wxLocale *new_wxLocale(int language,int flags){
756 if (language == -1)
757 return new wxLocale();
758 else
759 return new wxLocale(language, flags);
760 }
761
762 #include "wx/wxPython/pydrawxxx.h"
763
764 wxColour wxDC_GetPixel(wxDC *self,int x,int y){
765 wxColour col;
766 self->GetPixel(x, y, &col);
767 return col;
768 }
769 wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
770 wxColour col;
771 self->GetPixel(pt, &col);
772 return col;
773 }
774
775 SWIGSTATICINLINE(double)
776 SWIG_AsDouble(PyObject *obj)
777 {
778 if (PyNumber_Check(obj))
779 return PyFloat_AsDouble(obj);
780 else {
781 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
782 obj->ob_type->tp_name);
783 PyErr_SetObject(PyExc_TypeError, errmsg);
784 Py_DECREF(errmsg);
785 return 0;
786 }
787 }
788
789
790 SWIGSTATICINLINE(int)
791 SWIG_CheckDouble(PyObject* obj)
792 {
793 SWIG_AsDouble(obj);
794 if (PyErr_Occurred()) {
795 PyErr_Clear();
796 return 0;
797 } else {
798 return 1;
799 }
800 }
801
802 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
803 wxRect rv;
804 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
805 return rv;
806 }
807 wxRect wxDC_GetClippingRect(wxDC *self){
808 wxRect rect;
809 self->GetClippingBox(rect);
810 return rect;
811 }
812 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
813 wxArrayInt widths;
814 self->GetPartialTextExtents(text, widths);
815 return widths;
816 }
817 void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
818 self->SetLogicalOrigin(point.x, point.y);
819 }
820 void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
821 self->SetDeviceOrigin(point.x, point.y);
822 }
823 void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
824 self->CalcBoundingBox(point.x, point.y);
825 }
826 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
827 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
828 }
829 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
830 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
831 }
832 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
833 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
834 }
835 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
836 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
837 }
838 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
839 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
840 }
841 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
842 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
843 }
844
845 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
846 *x1 = dc->MinX();
847 *y1 = dc->MinY();
848 *x2 = dc->MaxX();
849 *y2 = dc->MaxY();
850 }
851
852
853 #include <wx/dcbuffer.h>
854
855
856 #include <wx/dcps.h>
857
858
859 #include <wx/metafile.h>
860
861
862
863 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
864 self->AddColour(name, wxColour(red, green, blue));
865 }
866
867 #include <wx/effects.h>
868
869 #ifdef __cplusplus
870 extern "C" {
871 #endif
872 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
873 PyObject *resultobj;
874 wxGDIObject *result;
875 char *kwnames[] = {
876 NULL
877 };
878
879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
880 {
881 PyThreadState* __tstate = wxPyBeginAllowThreads();
882 result = (wxGDIObject *)new wxGDIObject();
883
884 wxPyEndAllowThreads(__tstate);
885 if (PyErr_Occurred()) SWIG_fail;
886 }
887 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
888 return resultobj;
889 fail:
890 return NULL;
891 }
892
893
894 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
895 PyObject *resultobj;
896 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
897 PyObject * obj0 = 0 ;
898 char *kwnames[] = {
899 (char *) "self", NULL
900 };
901
902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
905 {
906 PyThreadState* __tstate = wxPyBeginAllowThreads();
907 delete arg1;
908
909 wxPyEndAllowThreads(__tstate);
910 if (PyErr_Occurred()) SWIG_fail;
911 }
912 Py_INCREF(Py_None); resultobj = Py_None;
913 return resultobj;
914 fail:
915 return NULL;
916 }
917
918
919 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
920 PyObject *resultobj;
921 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
922 bool result;
923 PyObject * obj0 = 0 ;
924 char *kwnames[] = {
925 (char *) "self", NULL
926 };
927
928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
931 {
932 PyThreadState* __tstate = wxPyBeginAllowThreads();
933 result = (bool)(arg1)->GetVisible();
934
935 wxPyEndAllowThreads(__tstate);
936 if (PyErr_Occurred()) SWIG_fail;
937 }
938 {
939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
940 }
941 return resultobj;
942 fail:
943 return NULL;
944 }
945
946
947 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
948 PyObject *resultobj;
949 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
950 bool arg2 ;
951 PyObject * obj0 = 0 ;
952 PyObject * obj1 = 0 ;
953 char *kwnames[] = {
954 (char *) "self",(char *) "visible", NULL
955 };
956
957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
960 arg2 = (bool) SWIG_AsBool(obj1);
961 if (PyErr_Occurred()) SWIG_fail;
962 {
963 PyThreadState* __tstate = wxPyBeginAllowThreads();
964 (arg1)->SetVisible(arg2);
965
966 wxPyEndAllowThreads(__tstate);
967 if (PyErr_Occurred()) SWIG_fail;
968 }
969 Py_INCREF(Py_None); resultobj = Py_None;
970 return resultobj;
971 fail:
972 return NULL;
973 }
974
975
976 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
977 PyObject *resultobj;
978 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
979 bool result;
980 PyObject * obj0 = 0 ;
981 char *kwnames[] = {
982 (char *) "self", NULL
983 };
984
985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
988 {
989 PyThreadState* __tstate = wxPyBeginAllowThreads();
990 result = (bool)(arg1)->IsNull();
991
992 wxPyEndAllowThreads(__tstate);
993 if (PyErr_Occurred()) SWIG_fail;
994 }
995 {
996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
997 }
998 return resultobj;
999 fail:
1000 return NULL;
1001 }
1002
1003
1004 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
1005 PyObject *obj;
1006 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1007 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1008 Py_INCREF(obj);
1009 return Py_BuildValue((char *)"");
1010 }
1011 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1012 PyObject *resultobj;
1013 byte arg1 = (byte) 0 ;
1014 byte arg2 = (byte) 0 ;
1015 byte arg3 = (byte) 0 ;
1016 wxColour *result;
1017 PyObject * obj0 = 0 ;
1018 PyObject * obj1 = 0 ;
1019 PyObject * obj2 = 0 ;
1020 char *kwnames[] = {
1021 (char *) "red",(char *) "green",(char *) "blue", NULL
1022 };
1023
1024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1025 if (obj0) {
1026 arg1 = (byte) SWIG_AsUnsignedChar(obj0);
1027 if (PyErr_Occurred()) SWIG_fail;
1028 }
1029 if (obj1) {
1030 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1031 if (PyErr_Occurred()) SWIG_fail;
1032 }
1033 if (obj2) {
1034 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1035 if (PyErr_Occurred()) SWIG_fail;
1036 }
1037 {
1038 PyThreadState* __tstate = wxPyBeginAllowThreads();
1039 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1040
1041 wxPyEndAllowThreads(__tstate);
1042 if (PyErr_Occurred()) SWIG_fail;
1043 }
1044 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1045 return resultobj;
1046 fail:
1047 return NULL;
1048 }
1049
1050
1051 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1052 PyObject *resultobj;
1053 wxString *arg1 = 0 ;
1054 wxColour *result;
1055 bool temp1 = False ;
1056 PyObject * obj0 = 0 ;
1057 char *kwnames[] = {
1058 (char *) "colorName", NULL
1059 };
1060
1061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1062 {
1063 arg1 = wxString_in_helper(obj0);
1064 if (arg1 == NULL) SWIG_fail;
1065 temp1 = True;
1066 }
1067 {
1068 PyThreadState* __tstate = wxPyBeginAllowThreads();
1069 result = (wxColour *)new wxColour((wxString const &)*arg1);
1070
1071 wxPyEndAllowThreads(__tstate);
1072 if (PyErr_Occurred()) SWIG_fail;
1073 }
1074 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1075 {
1076 if (temp1)
1077 delete arg1;
1078 }
1079 return resultobj;
1080 fail:
1081 {
1082 if (temp1)
1083 delete arg1;
1084 }
1085 return NULL;
1086 }
1087
1088
1089 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1090 PyObject *resultobj;
1091 unsigned long arg1 ;
1092 wxColour *result;
1093 PyObject * obj0 = 0 ;
1094 char *kwnames[] = {
1095 (char *) "colRGB", NULL
1096 };
1097
1098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1099 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1100 if (PyErr_Occurred()) SWIG_fail;
1101 {
1102 PyThreadState* __tstate = wxPyBeginAllowThreads();
1103 result = (wxColour *)new wxColour(arg1);
1104
1105 wxPyEndAllowThreads(__tstate);
1106 if (PyErr_Occurred()) SWIG_fail;
1107 }
1108 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1109 return resultobj;
1110 fail:
1111 return NULL;
1112 }
1113
1114
1115 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1116 PyObject *resultobj;
1117 wxColour *arg1 = (wxColour *) 0 ;
1118 PyObject * obj0 = 0 ;
1119 char *kwnames[] = {
1120 (char *) "self", NULL
1121 };
1122
1123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1126 {
1127 PyThreadState* __tstate = wxPyBeginAllowThreads();
1128 delete arg1;
1129
1130 wxPyEndAllowThreads(__tstate);
1131 if (PyErr_Occurred()) SWIG_fail;
1132 }
1133 Py_INCREF(Py_None); resultobj = Py_None;
1134 return resultobj;
1135 fail:
1136 return NULL;
1137 }
1138
1139
1140 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1141 PyObject *resultobj;
1142 wxColour *arg1 = (wxColour *) 0 ;
1143 byte result;
1144 PyObject * obj0 = 0 ;
1145 char *kwnames[] = {
1146 (char *) "self", NULL
1147 };
1148
1149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1152 {
1153 PyThreadState* __tstate = wxPyBeginAllowThreads();
1154 result = (byte)(arg1)->Red();
1155
1156 wxPyEndAllowThreads(__tstate);
1157 if (PyErr_Occurred()) SWIG_fail;
1158 }
1159 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1160 return resultobj;
1161 fail:
1162 return NULL;
1163 }
1164
1165
1166 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1167 PyObject *resultobj;
1168 wxColour *arg1 = (wxColour *) 0 ;
1169 byte result;
1170 PyObject * obj0 = 0 ;
1171 char *kwnames[] = {
1172 (char *) "self", NULL
1173 };
1174
1175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1178 {
1179 PyThreadState* __tstate = wxPyBeginAllowThreads();
1180 result = (byte)(arg1)->Green();
1181
1182 wxPyEndAllowThreads(__tstate);
1183 if (PyErr_Occurred()) SWIG_fail;
1184 }
1185 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1186 return resultobj;
1187 fail:
1188 return NULL;
1189 }
1190
1191
1192 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1193 PyObject *resultobj;
1194 wxColour *arg1 = (wxColour *) 0 ;
1195 byte result;
1196 PyObject * obj0 = 0 ;
1197 char *kwnames[] = {
1198 (char *) "self", NULL
1199 };
1200
1201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1204 {
1205 PyThreadState* __tstate = wxPyBeginAllowThreads();
1206 result = (byte)(arg1)->Blue();
1207
1208 wxPyEndAllowThreads(__tstate);
1209 if (PyErr_Occurred()) SWIG_fail;
1210 }
1211 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1212 return resultobj;
1213 fail:
1214 return NULL;
1215 }
1216
1217
1218 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1219 PyObject *resultobj;
1220 wxColour *arg1 = (wxColour *) 0 ;
1221 bool result;
1222 PyObject * obj0 = 0 ;
1223 char *kwnames[] = {
1224 (char *) "self", NULL
1225 };
1226
1227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1230 {
1231 PyThreadState* __tstate = wxPyBeginAllowThreads();
1232 result = (bool)(arg1)->Ok();
1233
1234 wxPyEndAllowThreads(__tstate);
1235 if (PyErr_Occurred()) SWIG_fail;
1236 }
1237 {
1238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1239 }
1240 return resultobj;
1241 fail:
1242 return NULL;
1243 }
1244
1245
1246 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1247 PyObject *resultobj;
1248 wxColour *arg1 = (wxColour *) 0 ;
1249 byte arg2 ;
1250 byte arg3 ;
1251 byte arg4 ;
1252 PyObject * obj0 = 0 ;
1253 PyObject * obj1 = 0 ;
1254 PyObject * obj2 = 0 ;
1255 PyObject * obj3 = 0 ;
1256 char *kwnames[] = {
1257 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1258 };
1259
1260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1263 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1264 if (PyErr_Occurred()) SWIG_fail;
1265 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1266 if (PyErr_Occurred()) SWIG_fail;
1267 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1268 if (PyErr_Occurred()) SWIG_fail;
1269 {
1270 PyThreadState* __tstate = wxPyBeginAllowThreads();
1271 (arg1)->Set(arg2,arg3,arg4);
1272
1273 wxPyEndAllowThreads(__tstate);
1274 if (PyErr_Occurred()) SWIG_fail;
1275 }
1276 Py_INCREF(Py_None); resultobj = Py_None;
1277 return resultobj;
1278 fail:
1279 return NULL;
1280 }
1281
1282
1283 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1284 PyObject *resultobj;
1285 wxColour *arg1 = (wxColour *) 0 ;
1286 unsigned long arg2 ;
1287 PyObject * obj0 = 0 ;
1288 PyObject * obj1 = 0 ;
1289 char *kwnames[] = {
1290 (char *) "self",(char *) "colRGB", NULL
1291 };
1292
1293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1296 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1297 if (PyErr_Occurred()) SWIG_fail;
1298 {
1299 PyThreadState* __tstate = wxPyBeginAllowThreads();
1300 (arg1)->Set(arg2);
1301
1302 wxPyEndAllowThreads(__tstate);
1303 if (PyErr_Occurred()) SWIG_fail;
1304 }
1305 Py_INCREF(Py_None); resultobj = Py_None;
1306 return resultobj;
1307 fail:
1308 return NULL;
1309 }
1310
1311
1312 static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1313 PyObject *resultobj;
1314 wxColour *arg1 = (wxColour *) 0 ;
1315 wxString *arg2 = 0 ;
1316 bool temp2 = False ;
1317 PyObject * obj0 = 0 ;
1318 PyObject * obj1 = 0 ;
1319 char *kwnames[] = {
1320 (char *) "self",(char *) "colourName", NULL
1321 };
1322
1323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1326 {
1327 arg2 = wxString_in_helper(obj1);
1328 if (arg2 == NULL) SWIG_fail;
1329 temp2 = True;
1330 }
1331 {
1332 PyThreadState* __tstate = wxPyBeginAllowThreads();
1333 (arg1)->InitFromName((wxString const &)*arg2);
1334
1335 wxPyEndAllowThreads(__tstate);
1336 if (PyErr_Occurred()) SWIG_fail;
1337 }
1338 Py_INCREF(Py_None); resultobj = Py_None;
1339 {
1340 if (temp2)
1341 delete arg2;
1342 }
1343 return resultobj;
1344 fail:
1345 {
1346 if (temp2)
1347 delete arg2;
1348 }
1349 return NULL;
1350 }
1351
1352
1353 static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1354 PyObject *resultobj;
1355 wxColour *arg1 = (wxColour *) 0 ;
1356 long result;
1357 PyObject * obj0 = 0 ;
1358 char *kwnames[] = {
1359 (char *) "self", NULL
1360 };
1361
1362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1365 {
1366 PyThreadState* __tstate = wxPyBeginAllowThreads();
1367 result = (long)((wxColour const *)arg1)->GetPixel();
1368
1369 wxPyEndAllowThreads(__tstate);
1370 if (PyErr_Occurred()) SWIG_fail;
1371 }
1372 resultobj = SWIG_FromLong((long)result);
1373 return resultobj;
1374 fail:
1375 return NULL;
1376 }
1377
1378
1379 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1380 PyObject *resultobj;
1381 wxColour *arg1 = (wxColour *) 0 ;
1382 wxColour *arg2 = 0 ;
1383 bool result;
1384 wxColour temp2 ;
1385 PyObject * obj0 = 0 ;
1386 PyObject * obj1 = 0 ;
1387 char *kwnames[] = {
1388 (char *) "self",(char *) "colour", NULL
1389 };
1390
1391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1394 {
1395 arg2 = &temp2;
1396 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1397 }
1398 {
1399 PyThreadState* __tstate = wxPyBeginAllowThreads();
1400 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1401
1402 wxPyEndAllowThreads(__tstate);
1403 if (PyErr_Occurred()) SWIG_fail;
1404 }
1405 {
1406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1407 }
1408 return resultobj;
1409 fail:
1410 return NULL;
1411 }
1412
1413
1414 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1415 PyObject *resultobj;
1416 wxColour *arg1 = (wxColour *) 0 ;
1417 wxColour *arg2 = 0 ;
1418 bool result;
1419 wxColour temp2 ;
1420 PyObject * obj0 = 0 ;
1421 PyObject * obj1 = 0 ;
1422 char *kwnames[] = {
1423 (char *) "self",(char *) "colour", NULL
1424 };
1425
1426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1429 {
1430 arg2 = &temp2;
1431 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1432 }
1433 {
1434 PyThreadState* __tstate = wxPyBeginAllowThreads();
1435 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1436
1437 wxPyEndAllowThreads(__tstate);
1438 if (PyErr_Occurred()) SWIG_fail;
1439 }
1440 {
1441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1442 }
1443 return resultobj;
1444 fail:
1445 return NULL;
1446 }
1447
1448
1449 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1450 PyObject *resultobj;
1451 wxColour *arg1 = (wxColour *) 0 ;
1452 PyObject *result;
1453 PyObject * obj0 = 0 ;
1454 char *kwnames[] = {
1455 (char *) "self", NULL
1456 };
1457
1458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1461 {
1462 PyThreadState* __tstate = wxPyBeginAllowThreads();
1463 result = (PyObject *)wxColour_Get(arg1);
1464
1465 wxPyEndAllowThreads(__tstate);
1466 if (PyErr_Occurred()) SWIG_fail;
1467 }
1468 resultobj = result;
1469 return resultobj;
1470 fail:
1471 return NULL;
1472 }
1473
1474
1475 static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1476 PyObject *resultobj;
1477 wxColour *arg1 = (wxColour *) 0 ;
1478 unsigned long result;
1479 PyObject * obj0 = 0 ;
1480 char *kwnames[] = {
1481 (char *) "self", NULL
1482 };
1483
1484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1487 {
1488 PyThreadState* __tstate = wxPyBeginAllowThreads();
1489 result = (unsigned long)wxColour_GetRGB(arg1);
1490
1491 wxPyEndAllowThreads(__tstate);
1492 if (PyErr_Occurred()) SWIG_fail;
1493 }
1494 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
1495 return resultobj;
1496 fail:
1497 return NULL;
1498 }
1499
1500
1501 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1502 PyObject *obj;
1503 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1504 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1505 Py_INCREF(obj);
1506 return Py_BuildValue((char *)"");
1507 }
1508 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1509 PyObject *resultobj;
1510 int arg1 ;
1511 unsigned char *arg2 = (unsigned char *) 0 ;
1512 unsigned char *arg3 = (unsigned char *) 0 ;
1513 unsigned char *arg4 = (unsigned char *) 0 ;
1514 wxPalette *result;
1515 PyObject * obj0 = 0 ;
1516 PyObject * obj1 = 0 ;
1517 PyObject * obj2 = 0 ;
1518 PyObject * obj3 = 0 ;
1519 char *kwnames[] = {
1520 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1521 };
1522
1523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1524 arg1 = (int) SWIG_AsInt(obj0);
1525 if (PyErr_Occurred()) SWIG_fail;
1526 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1528 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1530 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1532 {
1533 PyThreadState* __tstate = wxPyBeginAllowThreads();
1534 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1535
1536 wxPyEndAllowThreads(__tstate);
1537 if (PyErr_Occurred()) SWIG_fail;
1538 }
1539 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1540 return resultobj;
1541 fail:
1542 return NULL;
1543 }
1544
1545
1546 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1547 PyObject *resultobj;
1548 wxPalette *arg1 = (wxPalette *) 0 ;
1549 PyObject * obj0 = 0 ;
1550 char *kwnames[] = {
1551 (char *) "self", NULL
1552 };
1553
1554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1557 {
1558 PyThreadState* __tstate = wxPyBeginAllowThreads();
1559 delete arg1;
1560
1561 wxPyEndAllowThreads(__tstate);
1562 if (PyErr_Occurred()) SWIG_fail;
1563 }
1564 Py_INCREF(Py_None); resultobj = Py_None;
1565 return resultobj;
1566 fail:
1567 return NULL;
1568 }
1569
1570
1571 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1572 PyObject *resultobj;
1573 wxPalette *arg1 = (wxPalette *) 0 ;
1574 byte arg2 ;
1575 byte arg3 ;
1576 byte arg4 ;
1577 int result;
1578 PyObject * obj0 = 0 ;
1579 PyObject * obj1 = 0 ;
1580 PyObject * obj2 = 0 ;
1581 PyObject * obj3 = 0 ;
1582 char *kwnames[] = {
1583 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1584 };
1585
1586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1589 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1590 if (PyErr_Occurred()) SWIG_fail;
1591 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1592 if (PyErr_Occurred()) SWIG_fail;
1593 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1594 if (PyErr_Occurred()) SWIG_fail;
1595 {
1596 PyThreadState* __tstate = wxPyBeginAllowThreads();
1597 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1598
1599 wxPyEndAllowThreads(__tstate);
1600 if (PyErr_Occurred()) SWIG_fail;
1601 }
1602 resultobj = SWIG_FromInt((int)result);
1603 return resultobj;
1604 fail:
1605 return NULL;
1606 }
1607
1608
1609 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1610 PyObject *resultobj;
1611 wxPalette *arg1 = (wxPalette *) 0 ;
1612 int arg2 ;
1613 byte *arg3 = (byte *) 0 ;
1614 byte *arg4 = (byte *) 0 ;
1615 byte *arg5 = (byte *) 0 ;
1616 bool result;
1617 byte temp3 ;
1618 byte temp4 ;
1619 byte temp5 ;
1620 PyObject * obj0 = 0 ;
1621 PyObject * obj1 = 0 ;
1622 char *kwnames[] = {
1623 (char *) "self",(char *) "pixel", NULL
1624 };
1625
1626 arg3 = &temp3;
1627 arg4 = &temp4;
1628 arg5 = &temp5;
1629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1632 arg2 = (int) SWIG_AsInt(obj1);
1633 if (PyErr_Occurred()) SWIG_fail;
1634 {
1635 PyThreadState* __tstate = wxPyBeginAllowThreads();
1636 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1637
1638 wxPyEndAllowThreads(__tstate);
1639 if (PyErr_Occurred()) SWIG_fail;
1640 }
1641 {
1642 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1643 }
1644 {
1645 PyObject *o = PyInt_FromLong((long) (*arg3));
1646 resultobj = t_output_helper(resultobj,o);
1647 }
1648 {
1649 PyObject *o = PyInt_FromLong((long) (*arg4));
1650 resultobj = t_output_helper(resultobj,o);
1651 }
1652 {
1653 PyObject *o = PyInt_FromLong((long) (*arg5));
1654 resultobj = t_output_helper(resultobj,o);
1655 }
1656 return resultobj;
1657 fail:
1658 return NULL;
1659 }
1660
1661
1662 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1663 PyObject *resultobj;
1664 wxPalette *arg1 = (wxPalette *) 0 ;
1665 bool result;
1666 PyObject * obj0 = 0 ;
1667 char *kwnames[] = {
1668 (char *) "self", NULL
1669 };
1670
1671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1674 {
1675 PyThreadState* __tstate = wxPyBeginAllowThreads();
1676 result = (bool)(arg1)->Ok();
1677
1678 wxPyEndAllowThreads(__tstate);
1679 if (PyErr_Occurred()) SWIG_fail;
1680 }
1681 {
1682 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1683 }
1684 return resultobj;
1685 fail:
1686 return NULL;
1687 }
1688
1689
1690 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1691 PyObject *obj;
1692 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1693 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1694 Py_INCREF(obj);
1695 return Py_BuildValue((char *)"");
1696 }
1697 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1698 PyObject *resultobj;
1699 wxColour *arg1 = 0 ;
1700 int arg2 = (int) 1 ;
1701 int arg3 = (int) wxSOLID ;
1702 wxPen *result;
1703 wxColour temp1 ;
1704 PyObject * obj0 = 0 ;
1705 PyObject * obj1 = 0 ;
1706 PyObject * obj2 = 0 ;
1707 char *kwnames[] = {
1708 (char *) "colour",(char *) "width",(char *) "style", NULL
1709 };
1710
1711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1712 {
1713 arg1 = &temp1;
1714 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1715 }
1716 if (obj1) {
1717 arg2 = (int) SWIG_AsInt(obj1);
1718 if (PyErr_Occurred()) SWIG_fail;
1719 }
1720 if (obj2) {
1721 arg3 = (int) SWIG_AsInt(obj2);
1722 if (PyErr_Occurred()) SWIG_fail;
1723 }
1724 {
1725 PyThreadState* __tstate = wxPyBeginAllowThreads();
1726 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1727
1728 wxPyEndAllowThreads(__tstate);
1729 if (PyErr_Occurred()) SWIG_fail;
1730 }
1731 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1732 return resultobj;
1733 fail:
1734 return NULL;
1735 }
1736
1737
1738 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1739 PyObject *resultobj;
1740 wxPen *arg1 = (wxPen *) 0 ;
1741 PyObject * obj0 = 0 ;
1742 char *kwnames[] = {
1743 (char *) "self", NULL
1744 };
1745
1746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1749 {
1750 PyThreadState* __tstate = wxPyBeginAllowThreads();
1751 delete arg1;
1752
1753 wxPyEndAllowThreads(__tstate);
1754 if (PyErr_Occurred()) SWIG_fail;
1755 }
1756 Py_INCREF(Py_None); resultobj = Py_None;
1757 return resultobj;
1758 fail:
1759 return NULL;
1760 }
1761
1762
1763 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1764 PyObject *resultobj;
1765 wxPen *arg1 = (wxPen *) 0 ;
1766 int result;
1767 PyObject * obj0 = 0 ;
1768 char *kwnames[] = {
1769 (char *) "self", NULL
1770 };
1771
1772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1775 {
1776 PyThreadState* __tstate = wxPyBeginAllowThreads();
1777 result = (int)(arg1)->GetCap();
1778
1779 wxPyEndAllowThreads(__tstate);
1780 if (PyErr_Occurred()) SWIG_fail;
1781 }
1782 resultobj = SWIG_FromInt((int)result);
1783 return resultobj;
1784 fail:
1785 return NULL;
1786 }
1787
1788
1789 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1790 PyObject *resultobj;
1791 wxPen *arg1 = (wxPen *) 0 ;
1792 wxColour result;
1793 PyObject * obj0 = 0 ;
1794 char *kwnames[] = {
1795 (char *) "self", NULL
1796 };
1797
1798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1801 {
1802 PyThreadState* __tstate = wxPyBeginAllowThreads();
1803 result = (arg1)->GetColour();
1804
1805 wxPyEndAllowThreads(__tstate);
1806 if (PyErr_Occurred()) SWIG_fail;
1807 }
1808 {
1809 wxColour * resultptr;
1810 resultptr = new wxColour((wxColour &) result);
1811 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1812 }
1813 return resultobj;
1814 fail:
1815 return NULL;
1816 }
1817
1818
1819 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1820 PyObject *resultobj;
1821 wxPen *arg1 = (wxPen *) 0 ;
1822 int result;
1823 PyObject * obj0 = 0 ;
1824 char *kwnames[] = {
1825 (char *) "self", NULL
1826 };
1827
1828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1831 {
1832 PyThreadState* __tstate = wxPyBeginAllowThreads();
1833 result = (int)(arg1)->GetJoin();
1834
1835 wxPyEndAllowThreads(__tstate);
1836 if (PyErr_Occurred()) SWIG_fail;
1837 }
1838 resultobj = SWIG_FromInt((int)result);
1839 return resultobj;
1840 fail:
1841 return NULL;
1842 }
1843
1844
1845 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1846 PyObject *resultobj;
1847 wxPen *arg1 = (wxPen *) 0 ;
1848 int result;
1849 PyObject * obj0 = 0 ;
1850 char *kwnames[] = {
1851 (char *) "self", NULL
1852 };
1853
1854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1857 {
1858 PyThreadState* __tstate = wxPyBeginAllowThreads();
1859 result = (int)(arg1)->GetStyle();
1860
1861 wxPyEndAllowThreads(__tstate);
1862 if (PyErr_Occurred()) SWIG_fail;
1863 }
1864 resultobj = SWIG_FromInt((int)result);
1865 return resultobj;
1866 fail:
1867 return NULL;
1868 }
1869
1870
1871 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1872 PyObject *resultobj;
1873 wxPen *arg1 = (wxPen *) 0 ;
1874 int result;
1875 PyObject * obj0 = 0 ;
1876 char *kwnames[] = {
1877 (char *) "self", NULL
1878 };
1879
1880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1883 {
1884 PyThreadState* __tstate = wxPyBeginAllowThreads();
1885 result = (int)(arg1)->GetWidth();
1886
1887 wxPyEndAllowThreads(__tstate);
1888 if (PyErr_Occurred()) SWIG_fail;
1889 }
1890 resultobj = SWIG_FromInt((int)result);
1891 return resultobj;
1892 fail:
1893 return NULL;
1894 }
1895
1896
1897 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1898 PyObject *resultobj;
1899 wxPen *arg1 = (wxPen *) 0 ;
1900 bool result;
1901 PyObject * obj0 = 0 ;
1902 char *kwnames[] = {
1903 (char *) "self", NULL
1904 };
1905
1906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1909 {
1910 PyThreadState* __tstate = wxPyBeginAllowThreads();
1911 result = (bool)(arg1)->Ok();
1912
1913 wxPyEndAllowThreads(__tstate);
1914 if (PyErr_Occurred()) SWIG_fail;
1915 }
1916 {
1917 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1918 }
1919 return resultobj;
1920 fail:
1921 return NULL;
1922 }
1923
1924
1925 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1926 PyObject *resultobj;
1927 wxPen *arg1 = (wxPen *) 0 ;
1928 int arg2 ;
1929 PyObject * obj0 = 0 ;
1930 PyObject * obj1 = 0 ;
1931 char *kwnames[] = {
1932 (char *) "self",(char *) "cap_style", NULL
1933 };
1934
1935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1938 arg2 = (int) SWIG_AsInt(obj1);
1939 if (PyErr_Occurred()) SWIG_fail;
1940 {
1941 PyThreadState* __tstate = wxPyBeginAllowThreads();
1942 (arg1)->SetCap(arg2);
1943
1944 wxPyEndAllowThreads(__tstate);
1945 if (PyErr_Occurred()) SWIG_fail;
1946 }
1947 Py_INCREF(Py_None); resultobj = Py_None;
1948 return resultobj;
1949 fail:
1950 return NULL;
1951 }
1952
1953
1954 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1955 PyObject *resultobj;
1956 wxPen *arg1 = (wxPen *) 0 ;
1957 wxColour *arg2 = 0 ;
1958 wxColour temp2 ;
1959 PyObject * obj0 = 0 ;
1960 PyObject * obj1 = 0 ;
1961 char *kwnames[] = {
1962 (char *) "self",(char *) "colour", NULL
1963 };
1964
1965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1968 {
1969 arg2 = &temp2;
1970 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1971 }
1972 {
1973 PyThreadState* __tstate = wxPyBeginAllowThreads();
1974 (arg1)->SetColour(*arg2);
1975
1976 wxPyEndAllowThreads(__tstate);
1977 if (PyErr_Occurred()) SWIG_fail;
1978 }
1979 Py_INCREF(Py_None); resultobj = Py_None;
1980 return resultobj;
1981 fail:
1982 return NULL;
1983 }
1984
1985
1986 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1987 PyObject *resultobj;
1988 wxPen *arg1 = (wxPen *) 0 ;
1989 int arg2 ;
1990 PyObject * obj0 = 0 ;
1991 PyObject * obj1 = 0 ;
1992 char *kwnames[] = {
1993 (char *) "self",(char *) "join_style", NULL
1994 };
1995
1996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
1997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1999 arg2 = (int) SWIG_AsInt(obj1);
2000 if (PyErr_Occurred()) SWIG_fail;
2001 {
2002 PyThreadState* __tstate = wxPyBeginAllowThreads();
2003 (arg1)->SetJoin(arg2);
2004
2005 wxPyEndAllowThreads(__tstate);
2006 if (PyErr_Occurred()) SWIG_fail;
2007 }
2008 Py_INCREF(Py_None); resultobj = Py_None;
2009 return resultobj;
2010 fail:
2011 return NULL;
2012 }
2013
2014
2015 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2016 PyObject *resultobj;
2017 wxPen *arg1 = (wxPen *) 0 ;
2018 int arg2 ;
2019 PyObject * obj0 = 0 ;
2020 PyObject * obj1 = 0 ;
2021 char *kwnames[] = {
2022 (char *) "self",(char *) "style", NULL
2023 };
2024
2025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2028 arg2 = (int) SWIG_AsInt(obj1);
2029 if (PyErr_Occurred()) SWIG_fail;
2030 {
2031 PyThreadState* __tstate = wxPyBeginAllowThreads();
2032 (arg1)->SetStyle(arg2);
2033
2034 wxPyEndAllowThreads(__tstate);
2035 if (PyErr_Occurred()) SWIG_fail;
2036 }
2037 Py_INCREF(Py_None); resultobj = Py_None;
2038 return resultobj;
2039 fail:
2040 return NULL;
2041 }
2042
2043
2044 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2045 PyObject *resultobj;
2046 wxPen *arg1 = (wxPen *) 0 ;
2047 int arg2 ;
2048 PyObject * obj0 = 0 ;
2049 PyObject * obj1 = 0 ;
2050 char *kwnames[] = {
2051 (char *) "self",(char *) "width", NULL
2052 };
2053
2054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2057 arg2 = (int) SWIG_AsInt(obj1);
2058 if (PyErr_Occurred()) SWIG_fail;
2059 {
2060 PyThreadState* __tstate = wxPyBeginAllowThreads();
2061 (arg1)->SetWidth(arg2);
2062
2063 wxPyEndAllowThreads(__tstate);
2064 if (PyErr_Occurred()) SWIG_fail;
2065 }
2066 Py_INCREF(Py_None); resultobj = Py_None;
2067 return resultobj;
2068 fail:
2069 return NULL;
2070 }
2071
2072
2073 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2074 PyObject *resultobj;
2075 wxPen *arg1 = (wxPen *) 0 ;
2076 int arg2 ;
2077 wxDash *arg3 = (wxDash *) 0 ;
2078 PyObject * obj0 = 0 ;
2079 PyObject * obj1 = 0 ;
2080 char *kwnames[] = {
2081 (char *) "self",(char *) "dashes", NULL
2082 };
2083
2084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2087 {
2088 arg2 = PyList_Size(obj1);
2089 arg3 = (wxDash*)byte_LIST_helper(obj1);
2090 if (arg3 == NULL) SWIG_fail;
2091 }
2092 {
2093 PyThreadState* __tstate = wxPyBeginAllowThreads();
2094 (arg1)->SetDashes(arg2,arg3);
2095
2096 wxPyEndAllowThreads(__tstate);
2097 if (PyErr_Occurred()) SWIG_fail;
2098 }
2099 Py_INCREF(Py_None); resultobj = Py_None;
2100 {
2101 if (arg3) delete [] arg3;
2102 }
2103 return resultobj;
2104 fail:
2105 {
2106 if (arg3) delete [] arg3;
2107 }
2108 return NULL;
2109 }
2110
2111
2112 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2113 PyObject *resultobj;
2114 wxPen *arg1 = (wxPen *) 0 ;
2115 PyObject *result;
2116 PyObject * obj0 = 0 ;
2117 char *kwnames[] = {
2118 (char *) "self", NULL
2119 };
2120
2121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2124 {
2125 PyThreadState* __tstate = wxPyBeginAllowThreads();
2126 result = (PyObject *)wxPen_GetDashes(arg1);
2127
2128 wxPyEndAllowThreads(__tstate);
2129 if (PyErr_Occurred()) SWIG_fail;
2130 }
2131 resultobj = result;
2132 return resultobj;
2133 fail:
2134 return NULL;
2135 }
2136
2137
2138 static PyObject *_wrap_Pen__SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2139 PyObject *resultobj;
2140 wxPen *arg1 = (wxPen *) 0 ;
2141 PyObject *arg2 = (PyObject *) 0 ;
2142 PyObject *arg3 = (PyObject *) 0 ;
2143 PyObject * obj0 = 0 ;
2144 PyObject * obj1 = 0 ;
2145 PyObject * obj2 = 0 ;
2146 char *kwnames[] = {
2147 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
2148 };
2149
2150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
2151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2153 arg2 = obj1;
2154 arg3 = obj2;
2155 {
2156 PyThreadState* __tstate = wxPyBeginAllowThreads();
2157 wxPen__SetDashes(arg1,arg2,arg3);
2158
2159 wxPyEndAllowThreads(__tstate);
2160 if (PyErr_Occurred()) SWIG_fail;
2161 }
2162 Py_INCREF(Py_None); resultobj = Py_None;
2163 return resultobj;
2164 fail:
2165 return NULL;
2166 }
2167
2168
2169 static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
2170 PyObject *resultobj;
2171 wxPen *arg1 = (wxPen *) 0 ;
2172 int result;
2173 PyObject * obj0 = 0 ;
2174 char *kwnames[] = {
2175 (char *) "self", NULL
2176 };
2177
2178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
2179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2181 {
2182 PyThreadState* __tstate = wxPyBeginAllowThreads();
2183 result = (int)((wxPen const *)arg1)->GetDashCount();
2184
2185 wxPyEndAllowThreads(__tstate);
2186 if (PyErr_Occurred()) SWIG_fail;
2187 }
2188 resultobj = SWIG_FromInt((int)result);
2189 return resultobj;
2190 fail:
2191 return NULL;
2192 }
2193
2194
2195 static PyObject *_wrap_Pen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2196 PyObject *resultobj;
2197 wxPen *arg1 = (wxPen *) 0 ;
2198 wxBitmap *result;
2199 PyObject * obj0 = 0 ;
2200 char *kwnames[] = {
2201 (char *) "self", NULL
2202 };
2203
2204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail;
2205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2207 {
2208 PyThreadState* __tstate = wxPyBeginAllowThreads();
2209 result = (wxBitmap *)(arg1)->GetStipple();
2210
2211 wxPyEndAllowThreads(__tstate);
2212 if (PyErr_Occurred()) SWIG_fail;
2213 }
2214 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2215 return resultobj;
2216 fail:
2217 return NULL;
2218 }
2219
2220
2221 static PyObject *_wrap_Pen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2222 PyObject *resultobj;
2223 wxPen *arg1 = (wxPen *) 0 ;
2224 wxBitmap *arg2 = 0 ;
2225 PyObject * obj0 = 0 ;
2226 PyObject * obj1 = 0 ;
2227 char *kwnames[] = {
2228 (char *) "self",(char *) "stipple", NULL
2229 };
2230
2231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2234 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2235 SWIG_POINTER_EXCEPTION | 0)) == -1)
2236 SWIG_fail;
2237 if (arg2 == NULL) {
2238 PyErr_SetString(PyExc_TypeError,"null reference");
2239 SWIG_fail;
2240 }
2241 {
2242 PyThreadState* __tstate = wxPyBeginAllowThreads();
2243 (arg1)->SetStipple(*arg2);
2244
2245 wxPyEndAllowThreads(__tstate);
2246 if (PyErr_Occurred()) SWIG_fail;
2247 }
2248 Py_INCREF(Py_None); resultobj = Py_None;
2249 return resultobj;
2250 fail:
2251 return NULL;
2252 }
2253
2254
2255 static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2256 PyObject *resultobj;
2257 wxPen *arg1 = (wxPen *) 0 ;
2258 wxPen *arg2 = (wxPen *) 0 ;
2259 bool result;
2260 PyObject * obj0 = 0 ;
2261 PyObject * obj1 = 0 ;
2262 char *kwnames[] = {
2263 (char *) "self",(char *) "other", NULL
2264 };
2265
2266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2269 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2271 {
2272 PyThreadState* __tstate = wxPyBeginAllowThreads();
2273 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2274
2275 wxPyEndAllowThreads(__tstate);
2276 if (PyErr_Occurred()) SWIG_fail;
2277 }
2278 {
2279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2280 }
2281 return resultobj;
2282 fail:
2283 return NULL;
2284 }
2285
2286
2287 static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2288 PyObject *resultobj;
2289 wxPen *arg1 = (wxPen *) 0 ;
2290 wxPen *arg2 = (wxPen *) 0 ;
2291 bool result;
2292 PyObject * obj0 = 0 ;
2293 PyObject * obj1 = 0 ;
2294 char *kwnames[] = {
2295 (char *) "self",(char *) "other", NULL
2296 };
2297
2298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2301 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2303 {
2304 PyThreadState* __tstate = wxPyBeginAllowThreads();
2305 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2306
2307 wxPyEndAllowThreads(__tstate);
2308 if (PyErr_Occurred()) SWIG_fail;
2309 }
2310 {
2311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2312 }
2313 return resultobj;
2314 fail:
2315 return NULL;
2316 }
2317
2318
2319 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
2320 PyObject *obj;
2321 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2322 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2323 Py_INCREF(obj);
2324 return Py_BuildValue((char *)"");
2325 }
2326 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2327 PyObject *resultobj;
2328 wxColour *arg1 = 0 ;
2329 int arg2 = (int) wxSOLID ;
2330 wxBrush *result;
2331 wxColour temp1 ;
2332 PyObject * obj0 = 0 ;
2333 PyObject * obj1 = 0 ;
2334 char *kwnames[] = {
2335 (char *) "colour",(char *) "style", NULL
2336 };
2337
2338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2339 {
2340 arg1 = &temp1;
2341 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2342 }
2343 if (obj1) {
2344 arg2 = (int) SWIG_AsInt(obj1);
2345 if (PyErr_Occurred()) SWIG_fail;
2346 }
2347 {
2348 PyThreadState* __tstate = wxPyBeginAllowThreads();
2349 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2350
2351 wxPyEndAllowThreads(__tstate);
2352 if (PyErr_Occurred()) SWIG_fail;
2353 }
2354 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2355 return resultobj;
2356 fail:
2357 return NULL;
2358 }
2359
2360
2361 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2362 PyObject *resultobj;
2363 wxBrush *arg1 = (wxBrush *) 0 ;
2364 PyObject * obj0 = 0 ;
2365 char *kwnames[] = {
2366 (char *) "self", NULL
2367 };
2368
2369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2372 {
2373 PyThreadState* __tstate = wxPyBeginAllowThreads();
2374 delete arg1;
2375
2376 wxPyEndAllowThreads(__tstate);
2377 if (PyErr_Occurred()) SWIG_fail;
2378 }
2379 Py_INCREF(Py_None); resultobj = Py_None;
2380 return resultobj;
2381 fail:
2382 return NULL;
2383 }
2384
2385
2386 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2387 PyObject *resultobj;
2388 wxBrush *arg1 = (wxBrush *) 0 ;
2389 wxColour *arg2 = 0 ;
2390 wxColour temp2 ;
2391 PyObject * obj0 = 0 ;
2392 PyObject * obj1 = 0 ;
2393 char *kwnames[] = {
2394 (char *) "self",(char *) "col", NULL
2395 };
2396
2397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2400 {
2401 arg2 = &temp2;
2402 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2403 }
2404 {
2405 PyThreadState* __tstate = wxPyBeginAllowThreads();
2406 (arg1)->SetColour((wxColour const &)*arg2);
2407
2408 wxPyEndAllowThreads(__tstate);
2409 if (PyErr_Occurred()) SWIG_fail;
2410 }
2411 Py_INCREF(Py_None); resultobj = Py_None;
2412 return resultobj;
2413 fail:
2414 return NULL;
2415 }
2416
2417
2418 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2419 PyObject *resultobj;
2420 wxBrush *arg1 = (wxBrush *) 0 ;
2421 int arg2 ;
2422 PyObject * obj0 = 0 ;
2423 PyObject * obj1 = 0 ;
2424 char *kwnames[] = {
2425 (char *) "self",(char *) "style", NULL
2426 };
2427
2428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2431 arg2 = (int) SWIG_AsInt(obj1);
2432 if (PyErr_Occurred()) SWIG_fail;
2433 {
2434 PyThreadState* __tstate = wxPyBeginAllowThreads();
2435 (arg1)->SetStyle(arg2);
2436
2437 wxPyEndAllowThreads(__tstate);
2438 if (PyErr_Occurred()) SWIG_fail;
2439 }
2440 Py_INCREF(Py_None); resultobj = Py_None;
2441 return resultobj;
2442 fail:
2443 return NULL;
2444 }
2445
2446
2447 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2448 PyObject *resultobj;
2449 wxBrush *arg1 = (wxBrush *) 0 ;
2450 wxBitmap *arg2 = 0 ;
2451 PyObject * obj0 = 0 ;
2452 PyObject * obj1 = 0 ;
2453 char *kwnames[] = {
2454 (char *) "self",(char *) "stipple", NULL
2455 };
2456
2457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2460 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2461 SWIG_POINTER_EXCEPTION | 0)) == -1)
2462 SWIG_fail;
2463 if (arg2 == NULL) {
2464 PyErr_SetString(PyExc_TypeError,"null reference");
2465 SWIG_fail;
2466 }
2467 {
2468 PyThreadState* __tstate = wxPyBeginAllowThreads();
2469 (arg1)->SetStipple((wxBitmap const &)*arg2);
2470
2471 wxPyEndAllowThreads(__tstate);
2472 if (PyErr_Occurred()) SWIG_fail;
2473 }
2474 Py_INCREF(Py_None); resultobj = Py_None;
2475 return resultobj;
2476 fail:
2477 return NULL;
2478 }
2479
2480
2481 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2482 PyObject *resultobj;
2483 wxBrush *arg1 = (wxBrush *) 0 ;
2484 wxColour result;
2485 PyObject * obj0 = 0 ;
2486 char *kwnames[] = {
2487 (char *) "self", NULL
2488 };
2489
2490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2493 {
2494 PyThreadState* __tstate = wxPyBeginAllowThreads();
2495 result = ((wxBrush const *)arg1)->GetColour();
2496
2497 wxPyEndAllowThreads(__tstate);
2498 if (PyErr_Occurred()) SWIG_fail;
2499 }
2500 {
2501 wxColour * resultptr;
2502 resultptr = new wxColour((wxColour &) result);
2503 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2504 }
2505 return resultobj;
2506 fail:
2507 return NULL;
2508 }
2509
2510
2511 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2512 PyObject *resultobj;
2513 wxBrush *arg1 = (wxBrush *) 0 ;
2514 int result;
2515 PyObject * obj0 = 0 ;
2516 char *kwnames[] = {
2517 (char *) "self", NULL
2518 };
2519
2520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2523 {
2524 PyThreadState* __tstate = wxPyBeginAllowThreads();
2525 result = (int)((wxBrush const *)arg1)->GetStyle();
2526
2527 wxPyEndAllowThreads(__tstate);
2528 if (PyErr_Occurred()) SWIG_fail;
2529 }
2530 resultobj = SWIG_FromInt((int)result);
2531 return resultobj;
2532 fail:
2533 return NULL;
2534 }
2535
2536
2537 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2538 PyObject *resultobj;
2539 wxBrush *arg1 = (wxBrush *) 0 ;
2540 wxBitmap *result;
2541 PyObject * obj0 = 0 ;
2542 char *kwnames[] = {
2543 (char *) "self", NULL
2544 };
2545
2546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2549 {
2550 PyThreadState* __tstate = wxPyBeginAllowThreads();
2551 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2552
2553 wxPyEndAllowThreads(__tstate);
2554 if (PyErr_Occurred()) SWIG_fail;
2555 }
2556 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2557 return resultobj;
2558 fail:
2559 return NULL;
2560 }
2561
2562
2563 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2564 PyObject *resultobj;
2565 wxBrush *arg1 = (wxBrush *) 0 ;
2566 bool result;
2567 PyObject * obj0 = 0 ;
2568 char *kwnames[] = {
2569 (char *) "self", NULL
2570 };
2571
2572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2575 {
2576 PyThreadState* __tstate = wxPyBeginAllowThreads();
2577 result = (bool)(arg1)->Ok();
2578
2579 wxPyEndAllowThreads(__tstate);
2580 if (PyErr_Occurred()) SWIG_fail;
2581 }
2582 {
2583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2584 }
2585 return resultobj;
2586 fail:
2587 return NULL;
2588 }
2589
2590
2591 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2592 PyObject *obj;
2593 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2594 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2595 Py_INCREF(obj);
2596 return Py_BuildValue((char *)"");
2597 }
2598 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2599 PyObject *resultobj;
2600 wxString *arg1 = 0 ;
2601 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2602 wxBitmap *result;
2603 bool temp1 = False ;
2604 PyObject * obj0 = 0 ;
2605 PyObject * obj1 = 0 ;
2606 char *kwnames[] = {
2607 (char *) "name",(char *) "type", NULL
2608 };
2609
2610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2611 {
2612 arg1 = wxString_in_helper(obj0);
2613 if (arg1 == NULL) SWIG_fail;
2614 temp1 = True;
2615 }
2616 if (obj1) {
2617 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2618 if (PyErr_Occurred()) SWIG_fail;
2619 }
2620 {
2621 PyThreadState* __tstate = wxPyBeginAllowThreads();
2622 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2623
2624 wxPyEndAllowThreads(__tstate);
2625 if (PyErr_Occurred()) SWIG_fail;
2626 }
2627 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2628 {
2629 if (temp1)
2630 delete arg1;
2631 }
2632 return resultobj;
2633 fail:
2634 {
2635 if (temp1)
2636 delete arg1;
2637 }
2638 return NULL;
2639 }
2640
2641
2642 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2643 PyObject *resultobj;
2644 wxBitmap *arg1 = (wxBitmap *) 0 ;
2645 PyObject * obj0 = 0 ;
2646 char *kwnames[] = {
2647 (char *) "self", NULL
2648 };
2649
2650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2653 {
2654 PyThreadState* __tstate = wxPyBeginAllowThreads();
2655 delete arg1;
2656
2657 wxPyEndAllowThreads(__tstate);
2658 if (PyErr_Occurred()) SWIG_fail;
2659 }
2660 Py_INCREF(Py_None); resultobj = Py_None;
2661 return resultobj;
2662 fail:
2663 return NULL;
2664 }
2665
2666
2667 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2668 PyObject *resultobj;
2669 int arg1 ;
2670 int arg2 ;
2671 int arg3 = (int) -1 ;
2672 wxBitmap *result;
2673 PyObject * obj0 = 0 ;
2674 PyObject * obj1 = 0 ;
2675 PyObject * obj2 = 0 ;
2676 char *kwnames[] = {
2677 (char *) "width",(char *) "height",(char *) "depth", NULL
2678 };
2679
2680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2681 arg1 = (int) SWIG_AsInt(obj0);
2682 if (PyErr_Occurred()) SWIG_fail;
2683 arg2 = (int) SWIG_AsInt(obj1);
2684 if (PyErr_Occurred()) SWIG_fail;
2685 if (obj2) {
2686 arg3 = (int) SWIG_AsInt(obj2);
2687 if (PyErr_Occurred()) SWIG_fail;
2688 }
2689 {
2690 PyThreadState* __tstate = wxPyBeginAllowThreads();
2691 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2692
2693 wxPyEndAllowThreads(__tstate);
2694 if (PyErr_Occurred()) SWIG_fail;
2695 }
2696 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2697 return resultobj;
2698 fail:
2699 return NULL;
2700 }
2701
2702
2703 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2704 PyObject *resultobj;
2705 wxIcon *arg1 = 0 ;
2706 wxBitmap *result;
2707 PyObject * obj0 = 0 ;
2708 char *kwnames[] = {
2709 (char *) "icon", NULL
2710 };
2711
2712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2714 SWIG_POINTER_EXCEPTION | 0)) == -1)
2715 SWIG_fail;
2716 if (arg1 == NULL) {
2717 PyErr_SetString(PyExc_TypeError,"null reference");
2718 SWIG_fail;
2719 }
2720 {
2721 PyThreadState* __tstate = wxPyBeginAllowThreads();
2722 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2723
2724 wxPyEndAllowThreads(__tstate);
2725 if (PyErr_Occurred()) SWIG_fail;
2726 }
2727 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2728 return resultobj;
2729 fail:
2730 return NULL;
2731 }
2732
2733
2734 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2735 PyObject *resultobj;
2736 wxImage *arg1 = 0 ;
2737 int arg2 = (int) -1 ;
2738 wxBitmap *result;
2739 PyObject * obj0 = 0 ;
2740 PyObject * obj1 = 0 ;
2741 char *kwnames[] = {
2742 (char *) "image",(char *) "depth", NULL
2743 };
2744
2745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2747 SWIG_POINTER_EXCEPTION | 0)) == -1)
2748 SWIG_fail;
2749 if (arg1 == NULL) {
2750 PyErr_SetString(PyExc_TypeError,"null reference");
2751 SWIG_fail;
2752 }
2753 if (obj1) {
2754 arg2 = (int) SWIG_AsInt(obj1);
2755 if (PyErr_Occurred()) SWIG_fail;
2756 }
2757 {
2758 PyThreadState* __tstate = wxPyBeginAllowThreads();
2759 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2760
2761 wxPyEndAllowThreads(__tstate);
2762 if (PyErr_Occurred()) SWIG_fail;
2763 }
2764 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2765 return resultobj;
2766 fail:
2767 return NULL;
2768 }
2769
2770
2771 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2772 PyObject *resultobj;
2773 PyObject *arg1 = (PyObject *) 0 ;
2774 wxBitmap *result;
2775 PyObject * obj0 = 0 ;
2776 char *kwnames[] = {
2777 (char *) "listOfStrings", NULL
2778 };
2779
2780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2781 arg1 = obj0;
2782 {
2783 PyThreadState* __tstate = wxPyBeginAllowThreads();
2784 result = (wxBitmap *)new_wxBitmap(arg1);
2785
2786 wxPyEndAllowThreads(__tstate);
2787 if (PyErr_Occurred()) SWIG_fail;
2788 }
2789 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2790 return resultobj;
2791 fail:
2792 return NULL;
2793 }
2794
2795
2796 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2797 PyObject *resultobj;
2798 PyObject *arg1 = (PyObject *) 0 ;
2799 int arg2 ;
2800 int arg3 ;
2801 int arg4 = (int) 1 ;
2802 wxBitmap *result;
2803 PyObject * obj0 = 0 ;
2804 PyObject * obj1 = 0 ;
2805 PyObject * obj2 = 0 ;
2806 PyObject * obj3 = 0 ;
2807 char *kwnames[] = {
2808 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2809 };
2810
2811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2812 arg1 = obj0;
2813 arg2 = (int) SWIG_AsInt(obj1);
2814 if (PyErr_Occurred()) SWIG_fail;
2815 arg3 = (int) SWIG_AsInt(obj2);
2816 if (PyErr_Occurred()) SWIG_fail;
2817 if (obj3) {
2818 arg4 = (int) SWIG_AsInt(obj3);
2819 if (PyErr_Occurred()) SWIG_fail;
2820 }
2821 {
2822 PyThreadState* __tstate = wxPyBeginAllowThreads();
2823 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2824
2825 wxPyEndAllowThreads(__tstate);
2826 if (PyErr_Occurred()) SWIG_fail;
2827 }
2828 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2829 return resultobj;
2830 fail:
2831 return NULL;
2832 }
2833
2834
2835 static PyObject *_wrap_Bitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
2836 PyObject *resultobj;
2837 wxBitmap *arg1 = (wxBitmap *) 0 ;
2838 wxPalette *arg2 = 0 ;
2839 PyObject * obj0 = 0 ;
2840 PyObject * obj1 = 0 ;
2841 char *kwnames[] = {
2842 (char *) "self",(char *) "palette", NULL
2843 };
2844
2845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail;
2846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2848 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
2849 SWIG_POINTER_EXCEPTION | 0)) == -1)
2850 SWIG_fail;
2851 if (arg2 == NULL) {
2852 PyErr_SetString(PyExc_TypeError,"null reference");
2853 SWIG_fail;
2854 }
2855 {
2856 PyThreadState* __tstate = wxPyBeginAllowThreads();
2857 (arg1)->SetPalette(*arg2);
2858
2859 wxPyEndAllowThreads(__tstate);
2860 if (PyErr_Occurred()) SWIG_fail;
2861 }
2862 Py_INCREF(Py_None); resultobj = Py_None;
2863 return resultobj;
2864 fail:
2865 return NULL;
2866 }
2867
2868
2869 static PyObject *_wrap_Bitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2870 PyObject *resultobj;
2871 wxBitmap *arg1 = (wxBitmap *) 0 ;
2872 long result;
2873 PyObject * obj0 = 0 ;
2874 char *kwnames[] = {
2875 (char *) "self", NULL
2876 };
2877
2878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail;
2879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2881 {
2882 PyThreadState* __tstate = wxPyBeginAllowThreads();
2883 result = (long)(arg1)->GetHandle();
2884
2885 wxPyEndAllowThreads(__tstate);
2886 if (PyErr_Occurred()) SWIG_fail;
2887 }
2888 resultobj = SWIG_FromLong((long)result);
2889 return resultobj;
2890 fail:
2891 return NULL;
2892 }
2893
2894
2895 static PyObject *_wrap_Bitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2896 PyObject *resultobj;
2897 wxBitmap *arg1 = (wxBitmap *) 0 ;
2898 long arg2 ;
2899 PyObject * obj0 = 0 ;
2900 PyObject * obj1 = 0 ;
2901 char *kwnames[] = {
2902 (char *) "self",(char *) "handle", NULL
2903 };
2904
2905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail;
2906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2908 arg2 = (long) SWIG_AsLong(obj1);
2909 if (PyErr_Occurred()) SWIG_fail;
2910 {
2911 PyThreadState* __tstate = wxPyBeginAllowThreads();
2912 wxBitmap_SetHandle(arg1,arg2);
2913
2914 wxPyEndAllowThreads(__tstate);
2915 if (PyErr_Occurred()) SWIG_fail;
2916 }
2917 Py_INCREF(Py_None); resultobj = Py_None;
2918 return resultobj;
2919 fail:
2920 return NULL;
2921 }
2922
2923
2924 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2925 PyObject *resultobj;
2926 wxBitmap *arg1 = (wxBitmap *) 0 ;
2927 bool result;
2928 PyObject * obj0 = 0 ;
2929 char *kwnames[] = {
2930 (char *) "self", NULL
2931 };
2932
2933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2936 {
2937 PyThreadState* __tstate = wxPyBeginAllowThreads();
2938 result = (bool)(arg1)->Ok();
2939
2940 wxPyEndAllowThreads(__tstate);
2941 if (PyErr_Occurred()) SWIG_fail;
2942 }
2943 {
2944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2945 }
2946 return resultobj;
2947 fail:
2948 return NULL;
2949 }
2950
2951
2952 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2953 PyObject *resultobj;
2954 wxBitmap *arg1 = (wxBitmap *) 0 ;
2955 int result;
2956 PyObject * obj0 = 0 ;
2957 char *kwnames[] = {
2958 (char *) "self", NULL
2959 };
2960
2961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2964 {
2965 PyThreadState* __tstate = wxPyBeginAllowThreads();
2966 result = (int)(arg1)->GetWidth();
2967
2968 wxPyEndAllowThreads(__tstate);
2969 if (PyErr_Occurred()) SWIG_fail;
2970 }
2971 resultobj = SWIG_FromInt((int)result);
2972 return resultobj;
2973 fail:
2974 return NULL;
2975 }
2976
2977
2978 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2979 PyObject *resultobj;
2980 wxBitmap *arg1 = (wxBitmap *) 0 ;
2981 int result;
2982 PyObject * obj0 = 0 ;
2983 char *kwnames[] = {
2984 (char *) "self", NULL
2985 };
2986
2987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2990 {
2991 PyThreadState* __tstate = wxPyBeginAllowThreads();
2992 result = (int)(arg1)->GetHeight();
2993
2994 wxPyEndAllowThreads(__tstate);
2995 if (PyErr_Occurred()) SWIG_fail;
2996 }
2997 resultobj = SWIG_FromInt((int)result);
2998 return resultobj;
2999 fail:
3000 return NULL;
3001 }
3002
3003
3004 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3005 PyObject *resultobj;
3006 wxBitmap *arg1 = (wxBitmap *) 0 ;
3007 int result;
3008 PyObject * obj0 = 0 ;
3009 char *kwnames[] = {
3010 (char *) "self", NULL
3011 };
3012
3013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
3014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3016 {
3017 PyThreadState* __tstate = wxPyBeginAllowThreads();
3018 result = (int)(arg1)->GetDepth();
3019
3020 wxPyEndAllowThreads(__tstate);
3021 if (PyErr_Occurred()) SWIG_fail;
3022 }
3023 resultobj = SWIG_FromInt((int)result);
3024 return resultobj;
3025 fail:
3026 return NULL;
3027 }
3028
3029
3030 static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3031 PyObject *resultobj;
3032 wxBitmap *arg1 = (wxBitmap *) 0 ;
3033 wxSize result;
3034 PyObject * obj0 = 0 ;
3035 char *kwnames[] = {
3036 (char *) "self", NULL
3037 };
3038
3039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
3040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3042 {
3043 PyThreadState* __tstate = wxPyBeginAllowThreads();
3044 result = wxBitmap_GetSize(arg1);
3045
3046 wxPyEndAllowThreads(__tstate);
3047 if (PyErr_Occurred()) SWIG_fail;
3048 }
3049 {
3050 wxSize * resultptr;
3051 resultptr = new wxSize((wxSize &) result);
3052 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3053 }
3054 return resultobj;
3055 fail:
3056 return NULL;
3057 }
3058
3059
3060 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3061 PyObject *resultobj;
3062 wxBitmap *arg1 = (wxBitmap *) 0 ;
3063 SwigValueWrapper< wxImage > result;
3064 PyObject * obj0 = 0 ;
3065 char *kwnames[] = {
3066 (char *) "self", NULL
3067 };
3068
3069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
3070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3072 {
3073 PyThreadState* __tstate = wxPyBeginAllowThreads();
3074 result = ((wxBitmap const *)arg1)->ConvertToImage();
3075
3076 wxPyEndAllowThreads(__tstate);
3077 if (PyErr_Occurred()) SWIG_fail;
3078 }
3079 {
3080 wxImage * resultptr;
3081 resultptr = new wxImage((wxImage &) result);
3082 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3083 }
3084 return resultobj;
3085 fail:
3086 return NULL;
3087 }
3088
3089
3090 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3091 PyObject *resultobj;
3092 wxBitmap *arg1 = (wxBitmap *) 0 ;
3093 wxMask *result;
3094 PyObject * obj0 = 0 ;
3095 char *kwnames[] = {
3096 (char *) "self", NULL
3097 };
3098
3099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3102 {
3103 PyThreadState* __tstate = wxPyBeginAllowThreads();
3104 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3105
3106 wxPyEndAllowThreads(__tstate);
3107 if (PyErr_Occurred()) SWIG_fail;
3108 }
3109 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3110 return resultobj;
3111 fail:
3112 return NULL;
3113 }
3114
3115
3116 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3117 PyObject *resultobj;
3118 wxBitmap *arg1 = (wxBitmap *) 0 ;
3119 wxMask *arg2 = (wxMask *) 0 ;
3120 PyObject * obj0 = 0 ;
3121 PyObject * obj1 = 0 ;
3122 char *kwnames[] = {
3123 (char *) "self",(char *) "mask", NULL
3124 };
3125
3126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3129 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3131 {
3132 PyThreadState* __tstate = wxPyBeginAllowThreads();
3133 (arg1)->SetMask(arg2);
3134
3135 wxPyEndAllowThreads(__tstate);
3136 if (PyErr_Occurred()) SWIG_fail;
3137 }
3138 Py_INCREF(Py_None); resultobj = Py_None;
3139 return resultobj;
3140 fail:
3141 return NULL;
3142 }
3143
3144
3145 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3146 PyObject *resultobj;
3147 wxBitmap *arg1 = (wxBitmap *) 0 ;
3148 wxColour *arg2 = 0 ;
3149 wxColour temp2 ;
3150 PyObject * obj0 = 0 ;
3151 PyObject * obj1 = 0 ;
3152 char *kwnames[] = {
3153 (char *) "self",(char *) "colour", NULL
3154 };
3155
3156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3159 {
3160 arg2 = &temp2;
3161 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3162 }
3163 {
3164 PyThreadState* __tstate = wxPyBeginAllowThreads();
3165 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3166
3167 wxPyEndAllowThreads(__tstate);
3168 if (PyErr_Occurred()) SWIG_fail;
3169 }
3170 Py_INCREF(Py_None); resultobj = Py_None;
3171 return resultobj;
3172 fail:
3173 return NULL;
3174 }
3175
3176
3177 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3178 PyObject *resultobj;
3179 wxBitmap *arg1 = (wxBitmap *) 0 ;
3180 wxRect *arg2 = 0 ;
3181 SwigValueWrapper< wxBitmap > result;
3182 wxRect temp2 ;
3183 PyObject * obj0 = 0 ;
3184 PyObject * obj1 = 0 ;
3185 char *kwnames[] = {
3186 (char *) "self",(char *) "rect", NULL
3187 };
3188
3189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3192 {
3193 arg2 = &temp2;
3194 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3195 }
3196 {
3197 PyThreadState* __tstate = wxPyBeginAllowThreads();
3198 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3199
3200 wxPyEndAllowThreads(__tstate);
3201 if (PyErr_Occurred()) SWIG_fail;
3202 }
3203 {
3204 wxBitmap * resultptr;
3205 resultptr = new wxBitmap((wxBitmap &) result);
3206 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3207 }
3208 return resultobj;
3209 fail:
3210 return NULL;
3211 }
3212
3213
3214 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3215 PyObject *resultobj;
3216 wxBitmap *arg1 = (wxBitmap *) 0 ;
3217 wxString *arg2 = 0 ;
3218 int arg3 ;
3219 wxPalette *arg4 = (wxPalette *) NULL ;
3220 bool result;
3221 bool temp2 = False ;
3222 PyObject * obj0 = 0 ;
3223 PyObject * obj1 = 0 ;
3224 PyObject * obj2 = 0 ;
3225 PyObject * obj3 = 0 ;
3226 char *kwnames[] = {
3227 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3228 };
3229
3230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3233 {
3234 arg2 = wxString_in_helper(obj1);
3235 if (arg2 == NULL) SWIG_fail;
3236 temp2 = True;
3237 }
3238 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3239 if (PyErr_Occurred()) SWIG_fail;
3240 if (obj3) {
3241 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3243 }
3244 {
3245 PyThreadState* __tstate = wxPyBeginAllowThreads();
3246 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3247
3248 wxPyEndAllowThreads(__tstate);
3249 if (PyErr_Occurred()) SWIG_fail;
3250 }
3251 {
3252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3253 }
3254 {
3255 if (temp2)
3256 delete arg2;
3257 }
3258 return resultobj;
3259 fail:
3260 {
3261 if (temp2)
3262 delete arg2;
3263 }
3264 return NULL;
3265 }
3266
3267
3268 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3269 PyObject *resultobj;
3270 wxBitmap *arg1 = (wxBitmap *) 0 ;
3271 wxString *arg2 = 0 ;
3272 int arg3 ;
3273 bool result;
3274 bool temp2 = False ;
3275 PyObject * obj0 = 0 ;
3276 PyObject * obj1 = 0 ;
3277 PyObject * obj2 = 0 ;
3278 char *kwnames[] = {
3279 (char *) "self",(char *) "name",(char *) "type", NULL
3280 };
3281
3282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3285 {
3286 arg2 = wxString_in_helper(obj1);
3287 if (arg2 == NULL) SWIG_fail;
3288 temp2 = True;
3289 }
3290 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3291 if (PyErr_Occurred()) SWIG_fail;
3292 {
3293 PyThreadState* __tstate = wxPyBeginAllowThreads();
3294 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3295
3296 wxPyEndAllowThreads(__tstate);
3297 if (PyErr_Occurred()) SWIG_fail;
3298 }
3299 {
3300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3301 }
3302 {
3303 if (temp2)
3304 delete arg2;
3305 }
3306 return resultobj;
3307 fail:
3308 {
3309 if (temp2)
3310 delete arg2;
3311 }
3312 return NULL;
3313 }
3314
3315
3316 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3317 PyObject *resultobj;
3318 wxBitmap *arg1 = (wxBitmap *) 0 ;
3319 wxIcon *arg2 = 0 ;
3320 bool result;
3321 PyObject * obj0 = 0 ;
3322 PyObject * obj1 = 0 ;
3323 char *kwnames[] = {
3324 (char *) "self",(char *) "icon", NULL
3325 };
3326
3327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3330 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3331 SWIG_POINTER_EXCEPTION | 0)) == -1)
3332 SWIG_fail;
3333 if (arg2 == NULL) {
3334 PyErr_SetString(PyExc_TypeError,"null reference");
3335 SWIG_fail;
3336 }
3337 {
3338 PyThreadState* __tstate = wxPyBeginAllowThreads();
3339 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3340
3341 wxPyEndAllowThreads(__tstate);
3342 if (PyErr_Occurred()) SWIG_fail;
3343 }
3344 {
3345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3346 }
3347 return resultobj;
3348 fail:
3349 return NULL;
3350 }
3351
3352
3353 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3354 PyObject *resultobj;
3355 wxBitmap *arg1 = (wxBitmap *) 0 ;
3356 int arg2 ;
3357 PyObject * obj0 = 0 ;
3358 PyObject * obj1 = 0 ;
3359 char *kwnames[] = {
3360 (char *) "self",(char *) "height", NULL
3361 };
3362
3363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3366 arg2 = (int) SWIG_AsInt(obj1);
3367 if (PyErr_Occurred()) SWIG_fail;
3368 {
3369 PyThreadState* __tstate = wxPyBeginAllowThreads();
3370 (arg1)->SetHeight(arg2);
3371
3372 wxPyEndAllowThreads(__tstate);
3373 if (PyErr_Occurred()) SWIG_fail;
3374 }
3375 Py_INCREF(Py_None); resultobj = Py_None;
3376 return resultobj;
3377 fail:
3378 return NULL;
3379 }
3380
3381
3382 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3383 PyObject *resultobj;
3384 wxBitmap *arg1 = (wxBitmap *) 0 ;
3385 int arg2 ;
3386 PyObject * obj0 = 0 ;
3387 PyObject * obj1 = 0 ;
3388 char *kwnames[] = {
3389 (char *) "self",(char *) "width", NULL
3390 };
3391
3392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3395 arg2 = (int) SWIG_AsInt(obj1);
3396 if (PyErr_Occurred()) SWIG_fail;
3397 {
3398 PyThreadState* __tstate = wxPyBeginAllowThreads();
3399 (arg1)->SetWidth(arg2);
3400
3401 wxPyEndAllowThreads(__tstate);
3402 if (PyErr_Occurred()) SWIG_fail;
3403 }
3404 Py_INCREF(Py_None); resultobj = Py_None;
3405 return resultobj;
3406 fail:
3407 return NULL;
3408 }
3409
3410
3411 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3412 PyObject *resultobj;
3413 wxBitmap *arg1 = (wxBitmap *) 0 ;
3414 int arg2 ;
3415 PyObject * obj0 = 0 ;
3416 PyObject * obj1 = 0 ;
3417 char *kwnames[] = {
3418 (char *) "self",(char *) "depth", NULL
3419 };
3420
3421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3424 arg2 = (int) SWIG_AsInt(obj1);
3425 if (PyErr_Occurred()) SWIG_fail;
3426 {
3427 PyThreadState* __tstate = wxPyBeginAllowThreads();
3428 (arg1)->SetDepth(arg2);
3429
3430 wxPyEndAllowThreads(__tstate);
3431 if (PyErr_Occurred()) SWIG_fail;
3432 }
3433 Py_INCREF(Py_None); resultobj = Py_None;
3434 return resultobj;
3435 fail:
3436 return NULL;
3437 }
3438
3439
3440 static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3441 PyObject *resultobj;
3442 wxBitmap *arg1 = (wxBitmap *) 0 ;
3443 wxSize *arg2 = 0 ;
3444 wxSize temp2 ;
3445 PyObject * obj0 = 0 ;
3446 PyObject * obj1 = 0 ;
3447 char *kwnames[] = {
3448 (char *) "self",(char *) "size", NULL
3449 };
3450
3451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3454 {
3455 arg2 = &temp2;
3456 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3457 }
3458 {
3459 PyThreadState* __tstate = wxPyBeginAllowThreads();
3460 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3461
3462 wxPyEndAllowThreads(__tstate);
3463 if (PyErr_Occurred()) SWIG_fail;
3464 }
3465 Py_INCREF(Py_None); resultobj = Py_None;
3466 return resultobj;
3467 fail:
3468 return NULL;
3469 }
3470
3471
3472 static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3473 PyObject *resultobj;
3474 wxBitmap *arg1 = (wxBitmap *) 0 ;
3475 wxCursor *arg2 = 0 ;
3476 bool result;
3477 PyObject * obj0 = 0 ;
3478 PyObject * obj1 = 0 ;
3479 char *kwnames[] = {
3480 (char *) "self",(char *) "cursor", NULL
3481 };
3482
3483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail;
3484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3486 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
3487 SWIG_POINTER_EXCEPTION | 0)) == -1)
3488 SWIG_fail;
3489 if (arg2 == NULL) {
3490 PyErr_SetString(PyExc_TypeError,"null reference");
3491 SWIG_fail;
3492 }
3493 {
3494 PyThreadState* __tstate = wxPyBeginAllowThreads();
3495 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
3496
3497 wxPyEndAllowThreads(__tstate);
3498 if (PyErr_Occurred()) SWIG_fail;
3499 }
3500 {
3501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3502 }
3503 return resultobj;
3504 fail:
3505 return NULL;
3506 }
3507
3508
3509 static PyObject *_wrap_Bitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3510 PyObject *resultobj;
3511 wxBitmap *arg1 = (wxBitmap *) 0 ;
3512 int result;
3513 PyObject * obj0 = 0 ;
3514 char *kwnames[] = {
3515 (char *) "self", NULL
3516 };
3517
3518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail;
3519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3521 {
3522 PyThreadState* __tstate = wxPyBeginAllowThreads();
3523 result = (int)(arg1)->GetQuality();
3524
3525 wxPyEndAllowThreads(__tstate);
3526 if (PyErr_Occurred()) SWIG_fail;
3527 }
3528 resultobj = SWIG_FromInt((int)result);
3529 return resultobj;
3530 fail:
3531 return NULL;
3532 }
3533
3534
3535 static PyObject *_wrap_Bitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3536 PyObject *resultobj;
3537 wxBitmap *arg1 = (wxBitmap *) 0 ;
3538 int arg2 ;
3539 PyObject * obj0 = 0 ;
3540 PyObject * obj1 = 0 ;
3541 char *kwnames[] = {
3542 (char *) "self",(char *) "q", NULL
3543 };
3544
3545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetQuality",kwnames,&obj0,&obj1)) goto fail;
3546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3548 arg2 = (int) SWIG_AsInt(obj1);
3549 if (PyErr_Occurred()) SWIG_fail;
3550 {
3551 PyThreadState* __tstate = wxPyBeginAllowThreads();
3552 (arg1)->SetQuality(arg2);
3553
3554 wxPyEndAllowThreads(__tstate);
3555 if (PyErr_Occurred()) SWIG_fail;
3556 }
3557 Py_INCREF(Py_None); resultobj = Py_None;
3558 return resultobj;
3559 fail:
3560 return NULL;
3561 }
3562
3563
3564 static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3565 PyObject *resultobj;
3566 wxBitmap *arg1 = (wxBitmap *) 0 ;
3567 wxBitmap *arg2 = (wxBitmap *) 0 ;
3568 bool result;
3569 PyObject * obj0 = 0 ;
3570 PyObject * obj1 = 0 ;
3571 char *kwnames[] = {
3572 (char *) "self",(char *) "other", NULL
3573 };
3574
3575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3578 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3580 {
3581 PyThreadState* __tstate = wxPyBeginAllowThreads();
3582 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3583
3584 wxPyEndAllowThreads(__tstate);
3585 if (PyErr_Occurred()) SWIG_fail;
3586 }
3587 {
3588 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3589 }
3590 return resultobj;
3591 fail:
3592 return NULL;
3593 }
3594
3595
3596 static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3597 PyObject *resultobj;
3598 wxBitmap *arg1 = (wxBitmap *) 0 ;
3599 wxBitmap *arg2 = (wxBitmap *) 0 ;
3600 bool result;
3601 PyObject * obj0 = 0 ;
3602 PyObject * obj1 = 0 ;
3603 char *kwnames[] = {
3604 (char *) "self",(char *) "other", NULL
3605 };
3606
3607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3610 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3612 {
3613 PyThreadState* __tstate = wxPyBeginAllowThreads();
3614 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3615
3616 wxPyEndAllowThreads(__tstate);
3617 if (PyErr_Occurred()) SWIG_fail;
3618 }
3619 {
3620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3621 }
3622 return resultobj;
3623 fail:
3624 return NULL;
3625 }
3626
3627
3628 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3629 PyObject *obj;
3630 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3631 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3632 Py_INCREF(obj);
3633 return Py_BuildValue((char *)"");
3634 }
3635 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3636 PyObject *resultobj;
3637 wxBitmap *arg1 = 0 ;
3638 wxColour const &arg2_defvalue = wxNullColour ;
3639 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3640 wxMask *result;
3641 wxColour temp2 ;
3642 PyObject * obj0 = 0 ;
3643 PyObject * obj1 = 0 ;
3644 char *kwnames[] = {
3645 (char *) "bitmap",(char *) "colour", NULL
3646 };
3647
3648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3650 SWIG_POINTER_EXCEPTION | 0)) == -1)
3651 SWIG_fail;
3652 if (arg1 == NULL) {
3653 PyErr_SetString(PyExc_TypeError,"null reference");
3654 SWIG_fail;
3655 }
3656 if (obj1) {
3657 {
3658 arg2 = &temp2;
3659 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3660 }
3661 }
3662 {
3663 PyThreadState* __tstate = wxPyBeginAllowThreads();
3664 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3665
3666 wxPyEndAllowThreads(__tstate);
3667 if (PyErr_Occurred()) SWIG_fail;
3668 }
3669 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3670 return resultobj;
3671 fail:
3672 return NULL;
3673 }
3674
3675
3676 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3677 PyObject *obj;
3678 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3679 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3680 Py_INCREF(obj);
3681 return Py_BuildValue((char *)"");
3682 }
3683 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3684 PyObject *resultobj;
3685 wxString *arg1 = 0 ;
3686 int arg2 ;
3687 int arg3 = (int) -1 ;
3688 int arg4 = (int) -1 ;
3689 wxIcon *result;
3690 bool temp1 = False ;
3691 PyObject * obj0 = 0 ;
3692 PyObject * obj1 = 0 ;
3693 PyObject * obj2 = 0 ;
3694 PyObject * obj3 = 0 ;
3695 char *kwnames[] = {
3696 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3697 };
3698
3699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3700 {
3701 arg1 = wxString_in_helper(obj0);
3702 if (arg1 == NULL) SWIG_fail;
3703 temp1 = True;
3704 }
3705 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3706 if (PyErr_Occurred()) SWIG_fail;
3707 if (obj2) {
3708 arg3 = (int) SWIG_AsInt(obj2);
3709 if (PyErr_Occurred()) SWIG_fail;
3710 }
3711 if (obj3) {
3712 arg4 = (int) SWIG_AsInt(obj3);
3713 if (PyErr_Occurred()) SWIG_fail;
3714 }
3715 {
3716 PyThreadState* __tstate = wxPyBeginAllowThreads();
3717 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3718
3719 wxPyEndAllowThreads(__tstate);
3720 if (PyErr_Occurred()) SWIG_fail;
3721 }
3722 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3723 {
3724 if (temp1)
3725 delete arg1;
3726 }
3727 return resultobj;
3728 fail:
3729 {
3730 if (temp1)
3731 delete arg1;
3732 }
3733 return NULL;
3734 }
3735
3736
3737 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3738 PyObject *resultobj;
3739 wxIcon *arg1 = (wxIcon *) 0 ;
3740 PyObject * obj0 = 0 ;
3741 char *kwnames[] = {
3742 (char *) "self", NULL
3743 };
3744
3745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3748 {
3749 PyThreadState* __tstate = wxPyBeginAllowThreads();
3750 delete arg1;
3751
3752 wxPyEndAllowThreads(__tstate);
3753 if (PyErr_Occurred()) SWIG_fail;
3754 }
3755 Py_INCREF(Py_None); resultobj = Py_None;
3756 return resultobj;
3757 fail:
3758 return NULL;
3759 }
3760
3761
3762 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3763 PyObject *resultobj;
3764 wxIcon *result;
3765 char *kwnames[] = {
3766 NULL
3767 };
3768
3769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3770 {
3771 PyThreadState* __tstate = wxPyBeginAllowThreads();
3772 result = (wxIcon *)new wxIcon();
3773
3774 wxPyEndAllowThreads(__tstate);
3775 if (PyErr_Occurred()) SWIG_fail;
3776 }
3777 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3778 return resultobj;
3779 fail:
3780 return NULL;
3781 }
3782
3783
3784 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3785 PyObject *resultobj;
3786 wxIconLocation *arg1 = 0 ;
3787 wxIcon *result;
3788 PyObject * obj0 = 0 ;
3789 char *kwnames[] = {
3790 (char *) "loc", NULL
3791 };
3792
3793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3795 SWIG_POINTER_EXCEPTION | 0)) == -1)
3796 SWIG_fail;
3797 if (arg1 == NULL) {
3798 PyErr_SetString(PyExc_TypeError,"null reference");
3799 SWIG_fail;
3800 }
3801 {
3802 PyThreadState* __tstate = wxPyBeginAllowThreads();
3803 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3804
3805 wxPyEndAllowThreads(__tstate);
3806 if (PyErr_Occurred()) SWIG_fail;
3807 }
3808 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3809 return resultobj;
3810 fail:
3811 return NULL;
3812 }
3813
3814
3815 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3816 PyObject *resultobj;
3817 wxBitmap *arg1 = 0 ;
3818 wxIcon *result;
3819 PyObject * obj0 = 0 ;
3820 char *kwnames[] = {
3821 (char *) "bmp", NULL
3822 };
3823
3824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3826 SWIG_POINTER_EXCEPTION | 0)) == -1)
3827 SWIG_fail;
3828 if (arg1 == NULL) {
3829 PyErr_SetString(PyExc_TypeError,"null reference");
3830 SWIG_fail;
3831 }
3832 {
3833 PyThreadState* __tstate = wxPyBeginAllowThreads();
3834 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3835
3836 wxPyEndAllowThreads(__tstate);
3837 if (PyErr_Occurred()) SWIG_fail;
3838 }
3839 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3840 return resultobj;
3841 fail:
3842 return NULL;
3843 }
3844
3845
3846 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3847 PyObject *resultobj;
3848 PyObject *arg1 = (PyObject *) 0 ;
3849 wxIcon *result;
3850 PyObject * obj0 = 0 ;
3851 char *kwnames[] = {
3852 (char *) "listOfStrings", NULL
3853 };
3854
3855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3856 arg1 = obj0;
3857 {
3858 PyThreadState* __tstate = wxPyBeginAllowThreads();
3859 result = (wxIcon *)new_wxIcon(arg1);
3860
3861 wxPyEndAllowThreads(__tstate);
3862 if (PyErr_Occurred()) SWIG_fail;
3863 }
3864 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3865 return resultobj;
3866 fail:
3867 return NULL;
3868 }
3869
3870
3871 static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3872 PyObject *resultobj;
3873 wxIcon *arg1 = (wxIcon *) 0 ;
3874 wxString *arg2 = 0 ;
3875 int arg3 ;
3876 bool result;
3877 bool temp2 = False ;
3878 PyObject * obj0 = 0 ;
3879 PyObject * obj1 = 0 ;
3880 PyObject * obj2 = 0 ;
3881 char *kwnames[] = {
3882 (char *) "self",(char *) "name",(char *) "type", NULL
3883 };
3884
3885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3888 {
3889 arg2 = wxString_in_helper(obj1);
3890 if (arg2 == NULL) SWIG_fail;
3891 temp2 = True;
3892 }
3893 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3894 if (PyErr_Occurred()) SWIG_fail;
3895 {
3896 PyThreadState* __tstate = wxPyBeginAllowThreads();
3897 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3898
3899 wxPyEndAllowThreads(__tstate);
3900 if (PyErr_Occurred()) SWIG_fail;
3901 }
3902 {
3903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3904 }
3905 {
3906 if (temp2)
3907 delete arg2;
3908 }
3909 return resultobj;
3910 fail:
3911 {
3912 if (temp2)
3913 delete arg2;
3914 }
3915 return NULL;
3916 }
3917
3918
3919 static PyObject *_wrap_Icon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3920 PyObject *resultobj;
3921 wxIcon *arg1 = (wxIcon *) 0 ;
3922 long result;
3923 PyObject * obj0 = 0 ;
3924 char *kwnames[] = {
3925 (char *) "self", NULL
3926 };
3927
3928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail;
3929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3931 {
3932 PyThreadState* __tstate = wxPyBeginAllowThreads();
3933 result = (long)(arg1)->GetHandle();
3934
3935 wxPyEndAllowThreads(__tstate);
3936 if (PyErr_Occurred()) SWIG_fail;
3937 }
3938 resultobj = SWIG_FromLong((long)result);
3939 return resultobj;
3940 fail:
3941 return NULL;
3942 }
3943
3944
3945 static PyObject *_wrap_Icon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3946 PyObject *resultobj;
3947 wxIcon *arg1 = (wxIcon *) 0 ;
3948 long arg2 ;
3949 PyObject * obj0 = 0 ;
3950 PyObject * obj1 = 0 ;
3951 char *kwnames[] = {
3952 (char *) "self",(char *) "handle", NULL
3953 };
3954
3955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail;
3956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3958 arg2 = (long) SWIG_AsLong(obj1);
3959 if (PyErr_Occurred()) SWIG_fail;
3960 {
3961 PyThreadState* __tstate = wxPyBeginAllowThreads();
3962 wxIcon_SetHandle(arg1,arg2);
3963
3964 wxPyEndAllowThreads(__tstate);
3965 if (PyErr_Occurred()) SWIG_fail;
3966 }
3967 Py_INCREF(Py_None); resultobj = Py_None;
3968 return resultobj;
3969 fail:
3970 return NULL;
3971 }
3972
3973
3974 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3975 PyObject *resultobj;
3976 wxIcon *arg1 = (wxIcon *) 0 ;
3977 bool result;
3978 PyObject * obj0 = 0 ;
3979 char *kwnames[] = {
3980 (char *) "self", NULL
3981 };
3982
3983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3986 {
3987 PyThreadState* __tstate = wxPyBeginAllowThreads();
3988 result = (bool)(arg1)->Ok();
3989
3990 wxPyEndAllowThreads(__tstate);
3991 if (PyErr_Occurred()) SWIG_fail;
3992 }
3993 {
3994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3995 }
3996 return resultobj;
3997 fail:
3998 return NULL;
3999 }
4000
4001
4002 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4003 PyObject *resultobj;
4004 wxIcon *arg1 = (wxIcon *) 0 ;
4005 int result;
4006 PyObject * obj0 = 0 ;
4007 char *kwnames[] = {
4008 (char *) "self", NULL
4009 };
4010
4011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
4012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4014 {
4015 PyThreadState* __tstate = wxPyBeginAllowThreads();
4016 result = (int)(arg1)->GetWidth();
4017
4018 wxPyEndAllowThreads(__tstate);
4019 if (PyErr_Occurred()) SWIG_fail;
4020 }
4021 resultobj = SWIG_FromInt((int)result);
4022 return resultobj;
4023 fail:
4024 return NULL;
4025 }
4026
4027
4028 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4029 PyObject *resultobj;
4030 wxIcon *arg1 = (wxIcon *) 0 ;
4031 int result;
4032 PyObject * obj0 = 0 ;
4033 char *kwnames[] = {
4034 (char *) "self", NULL
4035 };
4036
4037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
4038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4040 {
4041 PyThreadState* __tstate = wxPyBeginAllowThreads();
4042 result = (int)(arg1)->GetHeight();
4043
4044 wxPyEndAllowThreads(__tstate);
4045 if (PyErr_Occurred()) SWIG_fail;
4046 }
4047 resultobj = SWIG_FromInt((int)result);
4048 return resultobj;
4049 fail:
4050 return NULL;
4051 }
4052
4053
4054 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4055 PyObject *resultobj;
4056 wxIcon *arg1 = (wxIcon *) 0 ;
4057 int result;
4058 PyObject * obj0 = 0 ;
4059 char *kwnames[] = {
4060 (char *) "self", NULL
4061 };
4062
4063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
4064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4066 {
4067 PyThreadState* __tstate = wxPyBeginAllowThreads();
4068 result = (int)(arg1)->GetDepth();
4069
4070 wxPyEndAllowThreads(__tstate);
4071 if (PyErr_Occurred()) SWIG_fail;
4072 }
4073 resultobj = SWIG_FromInt((int)result);
4074 return resultobj;
4075 fail:
4076 return NULL;
4077 }
4078
4079
4080 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4081 PyObject *resultobj;
4082 wxIcon *arg1 = (wxIcon *) 0 ;
4083 int arg2 ;
4084 PyObject * obj0 = 0 ;
4085 PyObject * obj1 = 0 ;
4086 char *kwnames[] = {
4087 (char *) "self",(char *) "w", NULL
4088 };
4089
4090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
4091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4093 arg2 = (int) SWIG_AsInt(obj1);
4094 if (PyErr_Occurred()) SWIG_fail;
4095 {
4096 PyThreadState* __tstate = wxPyBeginAllowThreads();
4097 (arg1)->SetWidth(arg2);
4098
4099 wxPyEndAllowThreads(__tstate);
4100 if (PyErr_Occurred()) SWIG_fail;
4101 }
4102 Py_INCREF(Py_None); resultobj = Py_None;
4103 return resultobj;
4104 fail:
4105 return NULL;
4106 }
4107
4108
4109 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4110 PyObject *resultobj;
4111 wxIcon *arg1 = (wxIcon *) 0 ;
4112 int arg2 ;
4113 PyObject * obj0 = 0 ;
4114 PyObject * obj1 = 0 ;
4115 char *kwnames[] = {
4116 (char *) "self",(char *) "h", NULL
4117 };
4118
4119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4122 arg2 = (int) SWIG_AsInt(obj1);
4123 if (PyErr_Occurred()) SWIG_fail;
4124 {
4125 PyThreadState* __tstate = wxPyBeginAllowThreads();
4126 (arg1)->SetHeight(arg2);
4127
4128 wxPyEndAllowThreads(__tstate);
4129 if (PyErr_Occurred()) SWIG_fail;
4130 }
4131 Py_INCREF(Py_None); resultobj = Py_None;
4132 return resultobj;
4133 fail:
4134 return NULL;
4135 }
4136
4137
4138 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4139 PyObject *resultobj;
4140 wxIcon *arg1 = (wxIcon *) 0 ;
4141 int arg2 ;
4142 PyObject * obj0 = 0 ;
4143 PyObject * obj1 = 0 ;
4144 char *kwnames[] = {
4145 (char *) "self",(char *) "d", NULL
4146 };
4147
4148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4151 arg2 = (int) SWIG_AsInt(obj1);
4152 if (PyErr_Occurred()) SWIG_fail;
4153 {
4154 PyThreadState* __tstate = wxPyBeginAllowThreads();
4155 (arg1)->SetDepth(arg2);
4156
4157 wxPyEndAllowThreads(__tstate);
4158 if (PyErr_Occurred()) SWIG_fail;
4159 }
4160 Py_INCREF(Py_None); resultobj = Py_None;
4161 return resultobj;
4162 fail:
4163 return NULL;
4164 }
4165
4166
4167 static PyObject *_wrap_Icon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4168 PyObject *resultobj;
4169 wxIcon *arg1 = (wxIcon *) 0 ;
4170 wxSize *arg2 = 0 ;
4171 wxSize temp2 ;
4172 PyObject * obj0 = 0 ;
4173 PyObject * obj1 = 0 ;
4174 char *kwnames[] = {
4175 (char *) "self",(char *) "size", NULL
4176 };
4177
4178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail;
4179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4181 {
4182 arg2 = &temp2;
4183 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4184 }
4185 {
4186 PyThreadState* __tstate = wxPyBeginAllowThreads();
4187 (arg1)->SetSize((wxSize const &)*arg2);
4188
4189 wxPyEndAllowThreads(__tstate);
4190 if (PyErr_Occurred()) SWIG_fail;
4191 }
4192 Py_INCREF(Py_None); resultobj = Py_None;
4193 return resultobj;
4194 fail:
4195 return NULL;
4196 }
4197
4198
4199 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4200 PyObject *resultobj;
4201 wxIcon *arg1 = (wxIcon *) 0 ;
4202 wxBitmap *arg2 = 0 ;
4203 PyObject * obj0 = 0 ;
4204 PyObject * obj1 = 0 ;
4205 char *kwnames[] = {
4206 (char *) "self",(char *) "bmp", NULL
4207 };
4208
4209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
4210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4212 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4213 SWIG_POINTER_EXCEPTION | 0)) == -1)
4214 SWIG_fail;
4215 if (arg2 == NULL) {
4216 PyErr_SetString(PyExc_TypeError,"null reference");
4217 SWIG_fail;
4218 }
4219 {
4220 PyThreadState* __tstate = wxPyBeginAllowThreads();
4221 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
4222
4223 wxPyEndAllowThreads(__tstate);
4224 if (PyErr_Occurred()) SWIG_fail;
4225 }
4226 Py_INCREF(Py_None); resultobj = Py_None;
4227 return resultobj;
4228 fail:
4229 return NULL;
4230 }
4231
4232
4233 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
4234 PyObject *obj;
4235 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4236 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
4237 Py_INCREF(obj);
4238 return Py_BuildValue((char *)"");
4239 }
4240 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4241 PyObject *resultobj;
4242 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4243 int arg2 = (int) 0 ;
4244 wxIconLocation *result;
4245 bool temp1 = False ;
4246 PyObject * obj0 = 0 ;
4247 PyObject * obj1 = 0 ;
4248 char *kwnames[] = {
4249 (char *) "filename",(char *) "num", NULL
4250 };
4251
4252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
4253 if (obj0) {
4254 {
4255 arg1 = wxString_in_helper(obj0);
4256 if (arg1 == NULL) SWIG_fail;
4257 temp1 = True;
4258 }
4259 }
4260 if (obj1) {
4261 arg2 = (int) SWIG_AsInt(obj1);
4262 if (PyErr_Occurred()) SWIG_fail;
4263 }
4264 {
4265 PyThreadState* __tstate = wxPyBeginAllowThreads();
4266 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4267
4268 wxPyEndAllowThreads(__tstate);
4269 if (PyErr_Occurred()) SWIG_fail;
4270 }
4271 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
4272 {
4273 if (temp1)
4274 delete arg1;
4275 }
4276 return resultobj;
4277 fail:
4278 {
4279 if (temp1)
4280 delete arg1;
4281 }
4282 return NULL;
4283 }
4284
4285
4286 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4287 PyObject *resultobj;
4288 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4289 PyObject * obj0 = 0 ;
4290 char *kwnames[] = {
4291 (char *) "self", NULL
4292 };
4293
4294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
4295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4297 {
4298 PyThreadState* __tstate = wxPyBeginAllowThreads();
4299 delete arg1;
4300
4301 wxPyEndAllowThreads(__tstate);
4302 if (PyErr_Occurred()) SWIG_fail;
4303 }
4304 Py_INCREF(Py_None); resultobj = Py_None;
4305 return resultobj;
4306 fail:
4307 return NULL;
4308 }
4309
4310
4311 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4312 PyObject *resultobj;
4313 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4314 bool result;
4315 PyObject * obj0 = 0 ;
4316 char *kwnames[] = {
4317 (char *) "self", NULL
4318 };
4319
4320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4323 {
4324 PyThreadState* __tstate = wxPyBeginAllowThreads();
4325 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4326
4327 wxPyEndAllowThreads(__tstate);
4328 if (PyErr_Occurred()) SWIG_fail;
4329 }
4330 {
4331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4332 }
4333 return resultobj;
4334 fail:
4335 return NULL;
4336 }
4337
4338
4339 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4340 PyObject *resultobj;
4341 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4342 wxString *arg2 = 0 ;
4343 bool temp2 = False ;
4344 PyObject * obj0 = 0 ;
4345 PyObject * obj1 = 0 ;
4346 char *kwnames[] = {
4347 (char *) "self",(char *) "filename", NULL
4348 };
4349
4350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4353 {
4354 arg2 = wxString_in_helper(obj1);
4355 if (arg2 == NULL) SWIG_fail;
4356 temp2 = True;
4357 }
4358 {
4359 PyThreadState* __tstate = wxPyBeginAllowThreads();
4360 (arg1)->SetFileName((wxString const &)*arg2);
4361
4362 wxPyEndAllowThreads(__tstate);
4363 if (PyErr_Occurred()) SWIG_fail;
4364 }
4365 Py_INCREF(Py_None); resultobj = Py_None;
4366 {
4367 if (temp2)
4368 delete arg2;
4369 }
4370 return resultobj;
4371 fail:
4372 {
4373 if (temp2)
4374 delete arg2;
4375 }
4376 return NULL;
4377 }
4378
4379
4380 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4381 PyObject *resultobj;
4382 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4383 wxString *result;
4384 PyObject * obj0 = 0 ;
4385 char *kwnames[] = {
4386 (char *) "self", NULL
4387 };
4388
4389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4392 {
4393 PyThreadState* __tstate = wxPyBeginAllowThreads();
4394 {
4395 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4396 result = (wxString *) &_result_ref;
4397 }
4398
4399 wxPyEndAllowThreads(__tstate);
4400 if (PyErr_Occurred()) SWIG_fail;
4401 }
4402 {
4403 #if wxUSE_UNICODE
4404 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4405 #else
4406 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4407 #endif
4408 }
4409 return resultobj;
4410 fail:
4411 return NULL;
4412 }
4413
4414
4415 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4416 PyObject *resultobj;
4417 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4418 int arg2 ;
4419 PyObject * obj0 = 0 ;
4420 PyObject * obj1 = 0 ;
4421 char *kwnames[] = {
4422 (char *) "self",(char *) "num", NULL
4423 };
4424
4425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4428 arg2 = (int) SWIG_AsInt(obj1);
4429 if (PyErr_Occurred()) SWIG_fail;
4430 {
4431 PyThreadState* __tstate = wxPyBeginAllowThreads();
4432 wxIconLocation_SetIndex(arg1,arg2);
4433
4434 wxPyEndAllowThreads(__tstate);
4435 if (PyErr_Occurred()) SWIG_fail;
4436 }
4437 Py_INCREF(Py_None); resultobj = Py_None;
4438 return resultobj;
4439 fail:
4440 return NULL;
4441 }
4442
4443
4444 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4445 PyObject *resultobj;
4446 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4447 int result;
4448 PyObject * obj0 = 0 ;
4449 char *kwnames[] = {
4450 (char *) "self", NULL
4451 };
4452
4453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4456 {
4457 PyThreadState* __tstate = wxPyBeginAllowThreads();
4458 result = (int)wxIconLocation_GetIndex(arg1);
4459
4460 wxPyEndAllowThreads(__tstate);
4461 if (PyErr_Occurred()) SWIG_fail;
4462 }
4463 resultobj = SWIG_FromInt((int)result);
4464 return resultobj;
4465 fail:
4466 return NULL;
4467 }
4468
4469
4470 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4471 PyObject *obj;
4472 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4473 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4474 Py_INCREF(obj);
4475 return Py_BuildValue((char *)"");
4476 }
4477 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4478 PyObject *resultobj;
4479 wxIconBundle *result;
4480 char *kwnames[] = {
4481 NULL
4482 };
4483
4484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4485 {
4486 PyThreadState* __tstate = wxPyBeginAllowThreads();
4487 result = (wxIconBundle *)new wxIconBundle();
4488
4489 wxPyEndAllowThreads(__tstate);
4490 if (PyErr_Occurred()) SWIG_fail;
4491 }
4492 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4493 return resultobj;
4494 fail:
4495 return NULL;
4496 }
4497
4498
4499 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4500 PyObject *resultobj;
4501 wxString *arg1 = 0 ;
4502 long arg2 ;
4503 wxIconBundle *result;
4504 bool temp1 = False ;
4505 PyObject * obj0 = 0 ;
4506 PyObject * obj1 = 0 ;
4507 char *kwnames[] = {
4508 (char *) "file",(char *) "type", NULL
4509 };
4510
4511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4512 {
4513 arg1 = wxString_in_helper(obj0);
4514 if (arg1 == NULL) SWIG_fail;
4515 temp1 = True;
4516 }
4517 arg2 = (long) SWIG_AsLong(obj1);
4518 if (PyErr_Occurred()) SWIG_fail;
4519 {
4520 PyThreadState* __tstate = wxPyBeginAllowThreads();
4521 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4522
4523 wxPyEndAllowThreads(__tstate);
4524 if (PyErr_Occurred()) SWIG_fail;
4525 }
4526 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4527 {
4528 if (temp1)
4529 delete arg1;
4530 }
4531 return resultobj;
4532 fail:
4533 {
4534 if (temp1)
4535 delete arg1;
4536 }
4537 return NULL;
4538 }
4539
4540
4541 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4542 PyObject *resultobj;
4543 wxIcon *arg1 = 0 ;
4544 wxIconBundle *result;
4545 PyObject * obj0 = 0 ;
4546 char *kwnames[] = {
4547 (char *) "icon", NULL
4548 };
4549
4550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4552 SWIG_POINTER_EXCEPTION | 0)) == -1)
4553 SWIG_fail;
4554 if (arg1 == NULL) {
4555 PyErr_SetString(PyExc_TypeError,"null reference");
4556 SWIG_fail;
4557 }
4558 {
4559 PyThreadState* __tstate = wxPyBeginAllowThreads();
4560 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4561
4562 wxPyEndAllowThreads(__tstate);
4563 if (PyErr_Occurred()) SWIG_fail;
4564 }
4565 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4566 return resultobj;
4567 fail:
4568 return NULL;
4569 }
4570
4571
4572 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4573 PyObject *resultobj;
4574 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4575 PyObject * obj0 = 0 ;
4576 char *kwnames[] = {
4577 (char *) "self", NULL
4578 };
4579
4580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4583 {
4584 PyThreadState* __tstate = wxPyBeginAllowThreads();
4585 delete arg1;
4586
4587 wxPyEndAllowThreads(__tstate);
4588 if (PyErr_Occurred()) SWIG_fail;
4589 }
4590 Py_INCREF(Py_None); resultobj = Py_None;
4591 return resultobj;
4592 fail:
4593 return NULL;
4594 }
4595
4596
4597 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4598 PyObject *resultobj;
4599 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4600 wxIcon *arg2 = 0 ;
4601 PyObject * obj0 = 0 ;
4602 PyObject * obj1 = 0 ;
4603 char *kwnames[] = {
4604 (char *) "self",(char *) "icon", NULL
4605 };
4606
4607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4610 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4611 SWIG_POINTER_EXCEPTION | 0)) == -1)
4612 SWIG_fail;
4613 if (arg2 == NULL) {
4614 PyErr_SetString(PyExc_TypeError,"null reference");
4615 SWIG_fail;
4616 }
4617 {
4618 PyThreadState* __tstate = wxPyBeginAllowThreads();
4619 (arg1)->AddIcon((wxIcon const &)*arg2);
4620
4621 wxPyEndAllowThreads(__tstate);
4622 if (PyErr_Occurred()) SWIG_fail;
4623 }
4624 Py_INCREF(Py_None); resultobj = Py_None;
4625 return resultobj;
4626 fail:
4627 return NULL;
4628 }
4629
4630
4631 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4632 PyObject *resultobj;
4633 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4634 wxString *arg2 = 0 ;
4635 long arg3 ;
4636 bool temp2 = False ;
4637 PyObject * obj0 = 0 ;
4638 PyObject * obj1 = 0 ;
4639 PyObject * obj2 = 0 ;
4640 char *kwnames[] = {
4641 (char *) "self",(char *) "file",(char *) "type", NULL
4642 };
4643
4644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4647 {
4648 arg2 = wxString_in_helper(obj1);
4649 if (arg2 == NULL) SWIG_fail;
4650 temp2 = True;
4651 }
4652 arg3 = (long) SWIG_AsLong(obj2);
4653 if (PyErr_Occurred()) SWIG_fail;
4654 {
4655 PyThreadState* __tstate = wxPyBeginAllowThreads();
4656 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4657
4658 wxPyEndAllowThreads(__tstate);
4659 if (PyErr_Occurred()) SWIG_fail;
4660 }
4661 Py_INCREF(Py_None); resultobj = Py_None;
4662 {
4663 if (temp2)
4664 delete arg2;
4665 }
4666 return resultobj;
4667 fail:
4668 {
4669 if (temp2)
4670 delete arg2;
4671 }
4672 return NULL;
4673 }
4674
4675
4676 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4677 PyObject *resultobj;
4678 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4679 wxSize *arg2 = 0 ;
4680 wxIcon *result;
4681 wxSize temp2 ;
4682 PyObject * obj0 = 0 ;
4683 PyObject * obj1 = 0 ;
4684 char *kwnames[] = {
4685 (char *) "self",(char *) "size", NULL
4686 };
4687
4688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4691 {
4692 arg2 = &temp2;
4693 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4694 }
4695 {
4696 PyThreadState* __tstate = wxPyBeginAllowThreads();
4697 {
4698 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4699 result = (wxIcon *) &_result_ref;
4700 }
4701
4702 wxPyEndAllowThreads(__tstate);
4703 if (PyErr_Occurred()) SWIG_fail;
4704 }
4705 {
4706 wxIcon* resultptr = new wxIcon(*result);
4707 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4708 }
4709 return resultobj;
4710 fail:
4711 return NULL;
4712 }
4713
4714
4715 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4716 PyObject *obj;
4717 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4718 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4719 Py_INCREF(obj);
4720 return Py_BuildValue((char *)"");
4721 }
4722 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4723 PyObject *resultobj;
4724 wxString *arg1 = (wxString *) 0 ;
4725 long arg2 ;
4726 int arg3 = (int) 0 ;
4727 int arg4 = (int) 0 ;
4728 wxCursor *result;
4729 bool temp1 = False ;
4730 PyObject * obj0 = 0 ;
4731 PyObject * obj1 = 0 ;
4732 PyObject * obj2 = 0 ;
4733 PyObject * obj3 = 0 ;
4734 char *kwnames[] = {
4735 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4736 };
4737
4738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4739 {
4740 arg1 = wxString_in_helper(obj0);
4741 if (arg1 == NULL) SWIG_fail;
4742 temp1 = True;
4743 }
4744 arg2 = (long) SWIG_AsLong(obj1);
4745 if (PyErr_Occurred()) SWIG_fail;
4746 if (obj2) {
4747 arg3 = (int) SWIG_AsInt(obj2);
4748 if (PyErr_Occurred()) SWIG_fail;
4749 }
4750 if (obj3) {
4751 arg4 = (int) SWIG_AsInt(obj3);
4752 if (PyErr_Occurred()) SWIG_fail;
4753 }
4754 {
4755 PyThreadState* __tstate = wxPyBeginAllowThreads();
4756 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4757
4758 wxPyEndAllowThreads(__tstate);
4759 if (PyErr_Occurred()) SWIG_fail;
4760 }
4761 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4762 {
4763 if (temp1)
4764 delete arg1;
4765 }
4766 return resultobj;
4767 fail:
4768 {
4769 if (temp1)
4770 delete arg1;
4771 }
4772 return NULL;
4773 }
4774
4775
4776 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4777 PyObject *resultobj;
4778 wxCursor *arg1 = (wxCursor *) 0 ;
4779 PyObject * obj0 = 0 ;
4780 char *kwnames[] = {
4781 (char *) "self", NULL
4782 };
4783
4784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4787 {
4788 PyThreadState* __tstate = wxPyBeginAllowThreads();
4789 delete arg1;
4790
4791 wxPyEndAllowThreads(__tstate);
4792 if (PyErr_Occurred()) SWIG_fail;
4793 }
4794 Py_INCREF(Py_None); resultobj = Py_None;
4795 return resultobj;
4796 fail:
4797 return NULL;
4798 }
4799
4800
4801 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4802 PyObject *resultobj;
4803 int arg1 ;
4804 wxCursor *result;
4805 PyObject * obj0 = 0 ;
4806 char *kwnames[] = {
4807 (char *) "id", NULL
4808 };
4809
4810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4811 arg1 = (int) SWIG_AsInt(obj0);
4812 if (PyErr_Occurred()) SWIG_fail;
4813 {
4814 PyThreadState* __tstate = wxPyBeginAllowThreads();
4815 result = (wxCursor *)new wxCursor(arg1);
4816
4817 wxPyEndAllowThreads(__tstate);
4818 if (PyErr_Occurred()) SWIG_fail;
4819 }
4820 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4821 return resultobj;
4822 fail:
4823 return NULL;
4824 }
4825
4826
4827 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4828 PyObject *resultobj;
4829 wxImage *arg1 = 0 ;
4830 wxCursor *result;
4831 PyObject * obj0 = 0 ;
4832 char *kwnames[] = {
4833 (char *) "image", NULL
4834 };
4835
4836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4838 SWIG_POINTER_EXCEPTION | 0)) == -1)
4839 SWIG_fail;
4840 if (arg1 == NULL) {
4841 PyErr_SetString(PyExc_TypeError,"null reference");
4842 SWIG_fail;
4843 }
4844 {
4845 PyThreadState* __tstate = wxPyBeginAllowThreads();
4846 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4847
4848 wxPyEndAllowThreads(__tstate);
4849 if (PyErr_Occurred()) SWIG_fail;
4850 }
4851 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4852 return resultobj;
4853 fail:
4854 return NULL;
4855 }
4856
4857
4858 static PyObject *_wrap_Cursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4859 PyObject *resultobj;
4860 wxCursor *arg1 = (wxCursor *) 0 ;
4861 long result;
4862 PyObject * obj0 = 0 ;
4863 char *kwnames[] = {
4864 (char *) "self", NULL
4865 };
4866
4867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail;
4868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4870 {
4871 PyThreadState* __tstate = wxPyBeginAllowThreads();
4872 result = (long)(arg1)->GetHandle();
4873
4874 wxPyEndAllowThreads(__tstate);
4875 if (PyErr_Occurred()) SWIG_fail;
4876 }
4877 resultobj = SWIG_FromLong((long)result);
4878 return resultobj;
4879 fail:
4880 return NULL;
4881 }
4882
4883
4884 static PyObject *_wrap_Cursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4885 PyObject *resultobj;
4886 wxCursor *arg1 = (wxCursor *) 0 ;
4887 long arg2 ;
4888 PyObject * obj0 = 0 ;
4889 PyObject * obj1 = 0 ;
4890 char *kwnames[] = {
4891 (char *) "self",(char *) "handle", NULL
4892 };
4893
4894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail;
4895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4897 arg2 = (long) SWIG_AsLong(obj1);
4898 if (PyErr_Occurred()) SWIG_fail;
4899 {
4900 PyThreadState* __tstate = wxPyBeginAllowThreads();
4901 wxCursor_SetHandle(arg1,arg2);
4902
4903 wxPyEndAllowThreads(__tstate);
4904 if (PyErr_Occurred()) SWIG_fail;
4905 }
4906 Py_INCREF(Py_None); resultobj = Py_None;
4907 return resultobj;
4908 fail:
4909 return NULL;
4910 }
4911
4912
4913 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4914 PyObject *resultobj;
4915 wxCursor *arg1 = (wxCursor *) 0 ;
4916 bool result;
4917 PyObject * obj0 = 0 ;
4918 char *kwnames[] = {
4919 (char *) "self", NULL
4920 };
4921
4922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4925 {
4926 PyThreadState* __tstate = wxPyBeginAllowThreads();
4927 result = (bool)(arg1)->Ok();
4928
4929 wxPyEndAllowThreads(__tstate);
4930 if (PyErr_Occurred()) SWIG_fail;
4931 }
4932 {
4933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4934 }
4935 return resultobj;
4936 fail:
4937 return NULL;
4938 }
4939
4940
4941 static PyObject *_wrap_Cursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4942 PyObject *resultobj;
4943 wxCursor *arg1 = (wxCursor *) 0 ;
4944 int result;
4945 PyObject * obj0 = 0 ;
4946 char *kwnames[] = {
4947 (char *) "self", NULL
4948 };
4949
4950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail;
4951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4953 {
4954 PyThreadState* __tstate = wxPyBeginAllowThreads();
4955 result = (int)(arg1)->GetWidth();
4956
4957 wxPyEndAllowThreads(__tstate);
4958 if (PyErr_Occurred()) SWIG_fail;
4959 }
4960 resultobj = SWIG_FromInt((int)result);
4961 return resultobj;
4962 fail:
4963 return NULL;
4964 }
4965
4966
4967 static PyObject *_wrap_Cursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4968 PyObject *resultobj;
4969 wxCursor *arg1 = (wxCursor *) 0 ;
4970 int result;
4971 PyObject * obj0 = 0 ;
4972 char *kwnames[] = {
4973 (char *) "self", NULL
4974 };
4975
4976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail;
4977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4979 {
4980 PyThreadState* __tstate = wxPyBeginAllowThreads();
4981 result = (int)(arg1)->GetHeight();
4982
4983 wxPyEndAllowThreads(__tstate);
4984 if (PyErr_Occurred()) SWIG_fail;
4985 }
4986 resultobj = SWIG_FromInt((int)result);
4987 return resultobj;
4988 fail:
4989 return NULL;
4990 }
4991
4992
4993 static PyObject *_wrap_Cursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4994 PyObject *resultobj;
4995 wxCursor *arg1 = (wxCursor *) 0 ;
4996 int result;
4997 PyObject * obj0 = 0 ;
4998 char *kwnames[] = {
4999 (char *) "self", NULL
5000 };
5001
5002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail;
5003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5005 {
5006 PyThreadState* __tstate = wxPyBeginAllowThreads();
5007 result = (int)(arg1)->GetDepth();
5008
5009 wxPyEndAllowThreads(__tstate);
5010 if (PyErr_Occurred()) SWIG_fail;
5011 }
5012 resultobj = SWIG_FromInt((int)result);
5013 return resultobj;
5014 fail:
5015 return NULL;
5016 }
5017
5018
5019 static PyObject *_wrap_Cursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5020 PyObject *resultobj;
5021 wxCursor *arg1 = (wxCursor *) 0 ;
5022 int arg2 ;
5023 PyObject * obj0 = 0 ;
5024 PyObject * obj1 = 0 ;
5025 char *kwnames[] = {
5026 (char *) "self",(char *) "w", NULL
5027 };
5028
5029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail;
5030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5032 arg2 = (int) SWIG_AsInt(obj1);
5033 if (PyErr_Occurred()) SWIG_fail;
5034 {
5035 PyThreadState* __tstate = wxPyBeginAllowThreads();
5036 (arg1)->SetWidth(arg2);
5037
5038 wxPyEndAllowThreads(__tstate);
5039 if (PyErr_Occurred()) SWIG_fail;
5040 }
5041 Py_INCREF(Py_None); resultobj = Py_None;
5042 return resultobj;
5043 fail:
5044 return NULL;
5045 }
5046
5047
5048 static PyObject *_wrap_Cursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5049 PyObject *resultobj;
5050 wxCursor *arg1 = (wxCursor *) 0 ;
5051 int arg2 ;
5052 PyObject * obj0 = 0 ;
5053 PyObject * obj1 = 0 ;
5054 char *kwnames[] = {
5055 (char *) "self",(char *) "h", NULL
5056 };
5057
5058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail;
5059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5061 arg2 = (int) SWIG_AsInt(obj1);
5062 if (PyErr_Occurred()) SWIG_fail;
5063 {
5064 PyThreadState* __tstate = wxPyBeginAllowThreads();
5065 (arg1)->SetHeight(arg2);
5066
5067 wxPyEndAllowThreads(__tstate);
5068 if (PyErr_Occurred()) SWIG_fail;
5069 }
5070 Py_INCREF(Py_None); resultobj = Py_None;
5071 return resultobj;
5072 fail:
5073 return NULL;
5074 }
5075
5076
5077 static PyObject *_wrap_Cursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
5078 PyObject *resultobj;
5079 wxCursor *arg1 = (wxCursor *) 0 ;
5080 int arg2 ;
5081 PyObject * obj0 = 0 ;
5082 PyObject * obj1 = 0 ;
5083 char *kwnames[] = {
5084 (char *) "self",(char *) "d", NULL
5085 };
5086
5087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail;
5088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5090 arg2 = (int) SWIG_AsInt(obj1);
5091 if (PyErr_Occurred()) SWIG_fail;
5092 {
5093 PyThreadState* __tstate = wxPyBeginAllowThreads();
5094 (arg1)->SetDepth(arg2);
5095
5096 wxPyEndAllowThreads(__tstate);
5097 if (PyErr_Occurred()) SWIG_fail;
5098 }
5099 Py_INCREF(Py_None); resultobj = Py_None;
5100 return resultobj;
5101 fail:
5102 return NULL;
5103 }
5104
5105
5106 static PyObject *_wrap_Cursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5107 PyObject *resultobj;
5108 wxCursor *arg1 = (wxCursor *) 0 ;
5109 wxSize *arg2 = 0 ;
5110 wxSize temp2 ;
5111 PyObject * obj0 = 0 ;
5112 PyObject * obj1 = 0 ;
5113 char *kwnames[] = {
5114 (char *) "self",(char *) "size", NULL
5115 };
5116
5117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail;
5118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5120 {
5121 arg2 = &temp2;
5122 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5123 }
5124 {
5125 PyThreadState* __tstate = wxPyBeginAllowThreads();
5126 (arg1)->SetSize((wxSize const &)*arg2);
5127
5128 wxPyEndAllowThreads(__tstate);
5129 if (PyErr_Occurred()) SWIG_fail;
5130 }
5131 Py_INCREF(Py_None); resultobj = Py_None;
5132 return resultobj;
5133 fail:
5134 return NULL;
5135 }
5136
5137
5138 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
5139 PyObject *obj;
5140 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5141 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
5142 Py_INCREF(obj);
5143 return Py_BuildValue((char *)"");
5144 }
5145 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
5146 PyObject *resultobj;
5147 int arg1 = (int) 0 ;
5148 int arg2 = (int) 0 ;
5149 int arg3 = (int) 0 ;
5150 int arg4 = (int) 0 ;
5151 wxRegion *result;
5152 PyObject * obj0 = 0 ;
5153 PyObject * obj1 = 0 ;
5154 PyObject * obj2 = 0 ;
5155 PyObject * obj3 = 0 ;
5156 char *kwnames[] = {
5157 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5158 };
5159
5160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5161 if (obj0) {
5162 arg1 = (int) SWIG_AsInt(obj0);
5163 if (PyErr_Occurred()) SWIG_fail;
5164 }
5165 if (obj1) {
5166 arg2 = (int) SWIG_AsInt(obj1);
5167 if (PyErr_Occurred()) SWIG_fail;
5168 }
5169 if (obj2) {
5170 arg3 = (int) SWIG_AsInt(obj2);
5171 if (PyErr_Occurred()) SWIG_fail;
5172 }
5173 if (obj3) {
5174 arg4 = (int) SWIG_AsInt(obj3);
5175 if (PyErr_Occurred()) SWIG_fail;
5176 }
5177 {
5178 PyThreadState* __tstate = wxPyBeginAllowThreads();
5179 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
5180
5181 wxPyEndAllowThreads(__tstate);
5182 if (PyErr_Occurred()) SWIG_fail;
5183 }
5184 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5185 return resultobj;
5186 fail:
5187 return NULL;
5188 }
5189
5190
5191 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5192 PyObject *resultobj;
5193 wxBitmap *arg1 = 0 ;
5194 wxColour const &arg2_defvalue = wxNullColour ;
5195 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
5196 int arg3 = (int) 0 ;
5197 wxRegion *result;
5198 wxColour temp2 ;
5199 PyObject * obj0 = 0 ;
5200 PyObject * obj1 = 0 ;
5201 PyObject * obj2 = 0 ;
5202 char *kwnames[] = {
5203 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5204 };
5205
5206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
5207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
5208 SWIG_POINTER_EXCEPTION | 0)) == -1)
5209 SWIG_fail;
5210 if (arg1 == NULL) {
5211 PyErr_SetString(PyExc_TypeError,"null reference");
5212 SWIG_fail;
5213 }
5214 if (obj1) {
5215 {
5216 arg2 = &temp2;
5217 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5218 }
5219 }
5220 if (obj2) {
5221 arg3 = (int) SWIG_AsInt(obj2);
5222 if (PyErr_Occurred()) SWIG_fail;
5223 }
5224 {
5225 PyThreadState* __tstate = wxPyBeginAllowThreads();
5226 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
5227
5228 wxPyEndAllowThreads(__tstate);
5229 if (PyErr_Occurred()) SWIG_fail;
5230 }
5231 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5232 return resultobj;
5233 fail:
5234 return NULL;
5235 }
5236
5237
5238 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
5239 PyObject *resultobj;
5240 int arg1 ;
5241 wxPoint *arg2 = (wxPoint *) 0 ;
5242 int arg3 = (int) wxWINDING_RULE ;
5243 wxRegion *result;
5244 PyObject * obj0 = 0 ;
5245 PyObject * obj1 = 0 ;
5246 char *kwnames[] = {
5247 (char *) "points",(char *) "fillStyle", NULL
5248 };
5249
5250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
5251 {
5252 arg2 = wxPoint_LIST_helper(obj0, &arg1);
5253 if (arg2 == NULL) SWIG_fail;
5254 }
5255 if (obj1) {
5256 arg3 = (int) SWIG_AsInt(obj1);
5257 if (PyErr_Occurred()) SWIG_fail;
5258 }
5259 {
5260 PyThreadState* __tstate = wxPyBeginAllowThreads();
5261 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
5262
5263 wxPyEndAllowThreads(__tstate);
5264 if (PyErr_Occurred()) SWIG_fail;
5265 }
5266 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5267 {
5268 if (arg2) delete [] arg2;
5269 }
5270 return resultobj;
5271 fail:
5272 {
5273 if (arg2) delete [] arg2;
5274 }
5275 return NULL;
5276 }
5277
5278
5279 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
5280 PyObject *resultobj;
5281 wxRegion *arg1 = (wxRegion *) 0 ;
5282 PyObject * obj0 = 0 ;
5283 char *kwnames[] = {
5284 (char *) "self", NULL
5285 };
5286
5287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
5288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5290 {
5291 PyThreadState* __tstate = wxPyBeginAllowThreads();
5292 delete arg1;
5293
5294 wxPyEndAllowThreads(__tstate);
5295 if (PyErr_Occurred()) SWIG_fail;
5296 }
5297 Py_INCREF(Py_None); resultobj = Py_None;
5298 return resultobj;
5299 fail:
5300 return NULL;
5301 }
5302
5303
5304 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
5305 PyObject *resultobj;
5306 wxRegion *arg1 = (wxRegion *) 0 ;
5307 PyObject * obj0 = 0 ;
5308 char *kwnames[] = {
5309 (char *) "self", NULL
5310 };
5311
5312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
5313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5315 {
5316 PyThreadState* __tstate = wxPyBeginAllowThreads();
5317 (arg1)->Clear();
5318
5319 wxPyEndAllowThreads(__tstate);
5320 if (PyErr_Occurred()) SWIG_fail;
5321 }
5322 Py_INCREF(Py_None); resultobj = Py_None;
5323 return resultobj;
5324 fail:
5325 return NULL;
5326 }
5327
5328
5329 static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
5330 PyObject *resultobj;
5331 wxRegion *arg1 = (wxRegion *) 0 ;
5332 int arg2 ;
5333 int arg3 ;
5334 bool result;
5335 PyObject * obj0 = 0 ;
5336 PyObject * obj1 = 0 ;
5337 PyObject * obj2 = 0 ;
5338 char *kwnames[] = {
5339 (char *) "self",(char *) "x",(char *) "y", NULL
5340 };
5341
5342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
5343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5345 arg2 = (int) SWIG_AsInt(obj1);
5346 if (PyErr_Occurred()) SWIG_fail;
5347 arg3 = (int) SWIG_AsInt(obj2);
5348 if (PyErr_Occurred()) SWIG_fail;
5349 {
5350 PyThreadState* __tstate = wxPyBeginAllowThreads();
5351 result = (bool)(arg1)->Offset(arg2,arg3);
5352
5353 wxPyEndAllowThreads(__tstate);
5354 if (PyErr_Occurred()) SWIG_fail;
5355 }
5356 {
5357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5358 }
5359 return resultobj;
5360 fail:
5361 return NULL;
5362 }
5363
5364
5365 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
5366 PyObject *resultobj;
5367 wxRegion *arg1 = (wxRegion *) 0 ;
5368 int arg2 ;
5369 int arg3 ;
5370 int result;
5371 PyObject * obj0 = 0 ;
5372 PyObject * obj1 = 0 ;
5373 PyObject * obj2 = 0 ;
5374 char *kwnames[] = {
5375 (char *) "self",(char *) "x",(char *) "y", NULL
5376 };
5377
5378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
5379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5381 arg2 = (int) SWIG_AsInt(obj1);
5382 if (PyErr_Occurred()) SWIG_fail;
5383 arg3 = (int) SWIG_AsInt(obj2);
5384 if (PyErr_Occurred()) SWIG_fail;
5385 {
5386 PyThreadState* __tstate = wxPyBeginAllowThreads();
5387 result = (int)(arg1)->Contains(arg2,arg3);
5388
5389 wxPyEndAllowThreads(__tstate);
5390 if (PyErr_Occurred()) SWIG_fail;
5391 }
5392 resultobj = SWIG_FromInt((int)result);
5393 return resultobj;
5394 fail:
5395 return NULL;
5396 }
5397
5398
5399 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
5400 PyObject *resultobj;
5401 wxRegion *arg1 = (wxRegion *) 0 ;
5402 wxPoint *arg2 = 0 ;
5403 int result;
5404 wxPoint temp2 ;
5405 PyObject * obj0 = 0 ;
5406 PyObject * obj1 = 0 ;
5407 char *kwnames[] = {
5408 (char *) "self",(char *) "pt", NULL
5409 };
5410
5411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
5412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5414 {
5415 arg2 = &temp2;
5416 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5417 }
5418 {
5419 PyThreadState* __tstate = wxPyBeginAllowThreads();
5420 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5421
5422 wxPyEndAllowThreads(__tstate);
5423 if (PyErr_Occurred()) SWIG_fail;
5424 }
5425 resultobj = SWIG_FromInt((int)result);
5426 return resultobj;
5427 fail:
5428 return NULL;
5429 }
5430
5431
5432 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5433 PyObject *resultobj;
5434 wxRegion *arg1 = (wxRegion *) 0 ;
5435 wxRect *arg2 = 0 ;
5436 int result;
5437 wxRect temp2 ;
5438 PyObject * obj0 = 0 ;
5439 PyObject * obj1 = 0 ;
5440 char *kwnames[] = {
5441 (char *) "self",(char *) "rect", NULL
5442 };
5443
5444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
5445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5447 {
5448 arg2 = &temp2;
5449 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5450 }
5451 {
5452 PyThreadState* __tstate = wxPyBeginAllowThreads();
5453 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5454
5455 wxPyEndAllowThreads(__tstate);
5456 if (PyErr_Occurred()) SWIG_fail;
5457 }
5458 resultobj = SWIG_FromInt((int)result);
5459 return resultobj;
5460 fail:
5461 return NULL;
5462 }
5463
5464
5465 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
5466 PyObject *resultobj;
5467 wxRegion *arg1 = (wxRegion *) 0 ;
5468 int arg2 ;
5469 int arg3 ;
5470 int arg4 ;
5471 int arg5 ;
5472 int result;
5473 PyObject * obj0 = 0 ;
5474 PyObject * obj1 = 0 ;
5475 PyObject * obj2 = 0 ;
5476 PyObject * obj3 = 0 ;
5477 PyObject * obj4 = 0 ;
5478 char *kwnames[] = {
5479 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5480 };
5481
5482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5485 arg2 = (int) SWIG_AsInt(obj1);
5486 if (PyErr_Occurred()) SWIG_fail;
5487 arg3 = (int) SWIG_AsInt(obj2);
5488 if (PyErr_Occurred()) SWIG_fail;
5489 arg4 = (int) SWIG_AsInt(obj3);
5490 if (PyErr_Occurred()) SWIG_fail;
5491 arg5 = (int) SWIG_AsInt(obj4);
5492 if (PyErr_Occurred()) SWIG_fail;
5493 {
5494 PyThreadState* __tstate = wxPyBeginAllowThreads();
5495 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5496
5497 wxPyEndAllowThreads(__tstate);
5498 if (PyErr_Occurred()) SWIG_fail;
5499 }
5500 resultobj = SWIG_FromInt((int)result);
5501 return resultobj;
5502 fail:
5503 return NULL;
5504 }
5505
5506
5507 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5508 PyObject *resultobj;
5509 wxRegion *arg1 = (wxRegion *) 0 ;
5510 wxRect result;
5511 PyObject * obj0 = 0 ;
5512 char *kwnames[] = {
5513 (char *) "self", NULL
5514 };
5515
5516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5519 {
5520 PyThreadState* __tstate = wxPyBeginAllowThreads();
5521 result = (arg1)->GetBox();
5522
5523 wxPyEndAllowThreads(__tstate);
5524 if (PyErr_Occurred()) SWIG_fail;
5525 }
5526 {
5527 wxRect * resultptr;
5528 resultptr = new wxRect((wxRect &) result);
5529 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5530 }
5531 return resultobj;
5532 fail:
5533 return NULL;
5534 }
5535
5536
5537 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
5538 PyObject *resultobj;
5539 wxRegion *arg1 = (wxRegion *) 0 ;
5540 int arg2 ;
5541 int arg3 ;
5542 int arg4 ;
5543 int arg5 ;
5544 bool result;
5545 PyObject * obj0 = 0 ;
5546 PyObject * obj1 = 0 ;
5547 PyObject * obj2 = 0 ;
5548 PyObject * obj3 = 0 ;
5549 PyObject * obj4 = 0 ;
5550 char *kwnames[] = {
5551 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5552 };
5553
5554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5557 arg2 = (int) SWIG_AsInt(obj1);
5558 if (PyErr_Occurred()) SWIG_fail;
5559 arg3 = (int) SWIG_AsInt(obj2);
5560 if (PyErr_Occurred()) SWIG_fail;
5561 arg4 = (int) SWIG_AsInt(obj3);
5562 if (PyErr_Occurred()) SWIG_fail;
5563 arg5 = (int) SWIG_AsInt(obj4);
5564 if (PyErr_Occurred()) SWIG_fail;
5565 {
5566 PyThreadState* __tstate = wxPyBeginAllowThreads();
5567 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5568
5569 wxPyEndAllowThreads(__tstate);
5570 if (PyErr_Occurred()) SWIG_fail;
5571 }
5572 {
5573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5574 }
5575 return resultobj;
5576 fail:
5577 return NULL;
5578 }
5579
5580
5581 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5582 PyObject *resultobj;
5583 wxRegion *arg1 = (wxRegion *) 0 ;
5584 wxRect *arg2 = 0 ;
5585 bool result;
5586 wxRect temp2 ;
5587 PyObject * obj0 = 0 ;
5588 PyObject * obj1 = 0 ;
5589 char *kwnames[] = {
5590 (char *) "self",(char *) "rect", NULL
5591 };
5592
5593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5596 {
5597 arg2 = &temp2;
5598 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5599 }
5600 {
5601 PyThreadState* __tstate = wxPyBeginAllowThreads();
5602 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5603
5604 wxPyEndAllowThreads(__tstate);
5605 if (PyErr_Occurred()) SWIG_fail;
5606 }
5607 {
5608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5609 }
5610 return resultobj;
5611 fail:
5612 return NULL;
5613 }
5614
5615
5616 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5617 PyObject *resultobj;
5618 wxRegion *arg1 = (wxRegion *) 0 ;
5619 wxRegion *arg2 = 0 ;
5620 bool result;
5621 PyObject * obj0 = 0 ;
5622 PyObject * obj1 = 0 ;
5623 char *kwnames[] = {
5624 (char *) "self",(char *) "region", NULL
5625 };
5626
5627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5630 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5631 SWIG_POINTER_EXCEPTION | 0)) == -1)
5632 SWIG_fail;
5633 if (arg2 == NULL) {
5634 PyErr_SetString(PyExc_TypeError,"null reference");
5635 SWIG_fail;
5636 }
5637 {
5638 PyThreadState* __tstate = wxPyBeginAllowThreads();
5639 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5640
5641 wxPyEndAllowThreads(__tstate);
5642 if (PyErr_Occurred()) SWIG_fail;
5643 }
5644 {
5645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5646 }
5647 return resultobj;
5648 fail:
5649 return NULL;
5650 }
5651
5652
5653 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5654 PyObject *resultobj;
5655 wxRegion *arg1 = (wxRegion *) 0 ;
5656 bool result;
5657 PyObject * obj0 = 0 ;
5658 char *kwnames[] = {
5659 (char *) "self", NULL
5660 };
5661
5662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5665 {
5666 PyThreadState* __tstate = wxPyBeginAllowThreads();
5667 result = (bool)(arg1)->IsEmpty();
5668
5669 wxPyEndAllowThreads(__tstate);
5670 if (PyErr_Occurred()) SWIG_fail;
5671 }
5672 {
5673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5674 }
5675 return resultobj;
5676 fail:
5677 return NULL;
5678 }
5679
5680
5681 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5682 PyObject *resultobj;
5683 wxRegion *arg1 = (wxRegion *) 0 ;
5684 int arg2 ;
5685 int arg3 ;
5686 int arg4 ;
5687 int arg5 ;
5688 bool result;
5689 PyObject * obj0 = 0 ;
5690 PyObject * obj1 = 0 ;
5691 PyObject * obj2 = 0 ;
5692 PyObject * obj3 = 0 ;
5693 PyObject * obj4 = 0 ;
5694 char *kwnames[] = {
5695 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5696 };
5697
5698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5701 arg2 = (int) SWIG_AsInt(obj1);
5702 if (PyErr_Occurred()) SWIG_fail;
5703 arg3 = (int) SWIG_AsInt(obj2);
5704 if (PyErr_Occurred()) SWIG_fail;
5705 arg4 = (int) SWIG_AsInt(obj3);
5706 if (PyErr_Occurred()) SWIG_fail;
5707 arg5 = (int) SWIG_AsInt(obj4);
5708 if (PyErr_Occurred()) SWIG_fail;
5709 {
5710 PyThreadState* __tstate = wxPyBeginAllowThreads();
5711 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5712
5713 wxPyEndAllowThreads(__tstate);
5714 if (PyErr_Occurred()) SWIG_fail;
5715 }
5716 {
5717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5718 }
5719 return resultobj;
5720 fail:
5721 return NULL;
5722 }
5723
5724
5725 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5726 PyObject *resultobj;
5727 wxRegion *arg1 = (wxRegion *) 0 ;
5728 wxRect *arg2 = 0 ;
5729 bool result;
5730 wxRect temp2 ;
5731 PyObject * obj0 = 0 ;
5732 PyObject * obj1 = 0 ;
5733 char *kwnames[] = {
5734 (char *) "self",(char *) "rect", NULL
5735 };
5736
5737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5740 {
5741 arg2 = &temp2;
5742 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5743 }
5744 {
5745 PyThreadState* __tstate = wxPyBeginAllowThreads();
5746 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5747
5748 wxPyEndAllowThreads(__tstate);
5749 if (PyErr_Occurred()) SWIG_fail;
5750 }
5751 {
5752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5753 }
5754 return resultobj;
5755 fail:
5756 return NULL;
5757 }
5758
5759
5760 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5761 PyObject *resultobj;
5762 wxRegion *arg1 = (wxRegion *) 0 ;
5763 wxRegion *arg2 = 0 ;
5764 bool result;
5765 PyObject * obj0 = 0 ;
5766 PyObject * obj1 = 0 ;
5767 char *kwnames[] = {
5768 (char *) "self",(char *) "region", NULL
5769 };
5770
5771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5774 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5775 SWIG_POINTER_EXCEPTION | 0)) == -1)
5776 SWIG_fail;
5777 if (arg2 == NULL) {
5778 PyErr_SetString(PyExc_TypeError,"null reference");
5779 SWIG_fail;
5780 }
5781 {
5782 PyThreadState* __tstate = wxPyBeginAllowThreads();
5783 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5784
5785 wxPyEndAllowThreads(__tstate);
5786 if (PyErr_Occurred()) SWIG_fail;
5787 }
5788 {
5789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5790 }
5791 return resultobj;
5792 fail:
5793 return NULL;
5794 }
5795
5796
5797 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5798 PyObject *resultobj;
5799 wxRegion *arg1 = (wxRegion *) 0 ;
5800 int arg2 ;
5801 int arg3 ;
5802 int arg4 ;
5803 int arg5 ;
5804 bool result;
5805 PyObject * obj0 = 0 ;
5806 PyObject * obj1 = 0 ;
5807 PyObject * obj2 = 0 ;
5808 PyObject * obj3 = 0 ;
5809 PyObject * obj4 = 0 ;
5810 char *kwnames[] = {
5811 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5812 };
5813
5814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5817 arg2 = (int) SWIG_AsInt(obj1);
5818 if (PyErr_Occurred()) SWIG_fail;
5819 arg3 = (int) SWIG_AsInt(obj2);
5820 if (PyErr_Occurred()) SWIG_fail;
5821 arg4 = (int) SWIG_AsInt(obj3);
5822 if (PyErr_Occurred()) SWIG_fail;
5823 arg5 = (int) SWIG_AsInt(obj4);
5824 if (PyErr_Occurred()) SWIG_fail;
5825 {
5826 PyThreadState* __tstate = wxPyBeginAllowThreads();
5827 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5828
5829 wxPyEndAllowThreads(__tstate);
5830 if (PyErr_Occurred()) SWIG_fail;
5831 }
5832 {
5833 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5834 }
5835 return resultobj;
5836 fail:
5837 return NULL;
5838 }
5839
5840
5841 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5842 PyObject *resultobj;
5843 wxRegion *arg1 = (wxRegion *) 0 ;
5844 wxRect *arg2 = 0 ;
5845 bool result;
5846 wxRect temp2 ;
5847 PyObject * obj0 = 0 ;
5848 PyObject * obj1 = 0 ;
5849 char *kwnames[] = {
5850 (char *) "self",(char *) "rect", NULL
5851 };
5852
5853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5856 {
5857 arg2 = &temp2;
5858 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5859 }
5860 {
5861 PyThreadState* __tstate = wxPyBeginAllowThreads();
5862 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5863
5864 wxPyEndAllowThreads(__tstate);
5865 if (PyErr_Occurred()) SWIG_fail;
5866 }
5867 {
5868 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5869 }
5870 return resultobj;
5871 fail:
5872 return NULL;
5873 }
5874
5875
5876 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5877 PyObject *resultobj;
5878 wxRegion *arg1 = (wxRegion *) 0 ;
5879 wxRegion *arg2 = 0 ;
5880 bool result;
5881 PyObject * obj0 = 0 ;
5882 PyObject * obj1 = 0 ;
5883 char *kwnames[] = {
5884 (char *) "self",(char *) "region", NULL
5885 };
5886
5887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5890 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5891 SWIG_POINTER_EXCEPTION | 0)) == -1)
5892 SWIG_fail;
5893 if (arg2 == NULL) {
5894 PyErr_SetString(PyExc_TypeError,"null reference");
5895 SWIG_fail;
5896 }
5897 {
5898 PyThreadState* __tstate = wxPyBeginAllowThreads();
5899 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5900
5901 wxPyEndAllowThreads(__tstate);
5902 if (PyErr_Occurred()) SWIG_fail;
5903 }
5904 {
5905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5906 }
5907 return resultobj;
5908 fail:
5909 return NULL;
5910 }
5911
5912
5913 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5914 PyObject *resultobj;
5915 wxRegion *arg1 = (wxRegion *) 0 ;
5916 int arg2 ;
5917 int arg3 ;
5918 int arg4 ;
5919 int arg5 ;
5920 bool result;
5921 PyObject * obj0 = 0 ;
5922 PyObject * obj1 = 0 ;
5923 PyObject * obj2 = 0 ;
5924 PyObject * obj3 = 0 ;
5925 PyObject * obj4 = 0 ;
5926 char *kwnames[] = {
5927 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5928 };
5929
5930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5933 arg2 = (int) SWIG_AsInt(obj1);
5934 if (PyErr_Occurred()) SWIG_fail;
5935 arg3 = (int) SWIG_AsInt(obj2);
5936 if (PyErr_Occurred()) SWIG_fail;
5937 arg4 = (int) SWIG_AsInt(obj3);
5938 if (PyErr_Occurred()) SWIG_fail;
5939 arg5 = (int) SWIG_AsInt(obj4);
5940 if (PyErr_Occurred()) SWIG_fail;
5941 {
5942 PyThreadState* __tstate = wxPyBeginAllowThreads();
5943 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5944
5945 wxPyEndAllowThreads(__tstate);
5946 if (PyErr_Occurred()) SWIG_fail;
5947 }
5948 {
5949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5950 }
5951 return resultobj;
5952 fail:
5953 return NULL;
5954 }
5955
5956
5957 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5958 PyObject *resultobj;
5959 wxRegion *arg1 = (wxRegion *) 0 ;
5960 wxRect *arg2 = 0 ;
5961 bool result;
5962 wxRect temp2 ;
5963 PyObject * obj0 = 0 ;
5964 PyObject * obj1 = 0 ;
5965 char *kwnames[] = {
5966 (char *) "self",(char *) "rect", NULL
5967 };
5968
5969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5972 {
5973 arg2 = &temp2;
5974 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5975 }
5976 {
5977 PyThreadState* __tstate = wxPyBeginAllowThreads();
5978 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5979
5980 wxPyEndAllowThreads(__tstate);
5981 if (PyErr_Occurred()) SWIG_fail;
5982 }
5983 {
5984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5985 }
5986 return resultobj;
5987 fail:
5988 return NULL;
5989 }
5990
5991
5992 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5993 PyObject *resultobj;
5994 wxRegion *arg1 = (wxRegion *) 0 ;
5995 wxRegion *arg2 = 0 ;
5996 bool result;
5997 PyObject * obj0 = 0 ;
5998 PyObject * obj1 = 0 ;
5999 char *kwnames[] = {
6000 (char *) "self",(char *) "region", NULL
6001 };
6002
6003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
6004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6006 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
6007 SWIG_POINTER_EXCEPTION | 0)) == -1)
6008 SWIG_fail;
6009 if (arg2 == NULL) {
6010 PyErr_SetString(PyExc_TypeError,"null reference");
6011 SWIG_fail;
6012 }
6013 {
6014 PyThreadState* __tstate = wxPyBeginAllowThreads();
6015 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
6016
6017 wxPyEndAllowThreads(__tstate);
6018 if (PyErr_Occurred()) SWIG_fail;
6019 }
6020 {
6021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6022 }
6023 return resultobj;
6024 fail:
6025 return NULL;
6026 }
6027
6028
6029 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
6030 PyObject *resultobj;
6031 wxRegion *arg1 = (wxRegion *) 0 ;
6032 SwigValueWrapper< wxBitmap > result;
6033 PyObject * obj0 = 0 ;
6034 char *kwnames[] = {
6035 (char *) "self", NULL
6036 };
6037
6038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
6039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6041 {
6042 PyThreadState* __tstate = wxPyBeginAllowThreads();
6043 result = (arg1)->ConvertToBitmap();
6044
6045 wxPyEndAllowThreads(__tstate);
6046 if (PyErr_Occurred()) SWIG_fail;
6047 }
6048 {
6049 wxBitmap * resultptr;
6050 resultptr = new wxBitmap((wxBitmap &) result);
6051 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
6052 }
6053 return resultobj;
6054 fail:
6055 return NULL;
6056 }
6057
6058
6059 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
6060 PyObject *resultobj;
6061 wxRegion *arg1 = (wxRegion *) 0 ;
6062 wxBitmap *arg2 = 0 ;
6063 wxColour const &arg3_defvalue = wxNullColour ;
6064 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
6065 int arg4 = (int) 0 ;
6066 bool result;
6067 wxColour temp3 ;
6068 PyObject * obj0 = 0 ;
6069 PyObject * obj1 = 0 ;
6070 PyObject * obj2 = 0 ;
6071 PyObject * obj3 = 0 ;
6072 char *kwnames[] = {
6073 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
6074 };
6075
6076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6079 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
6080 SWIG_POINTER_EXCEPTION | 0)) == -1)
6081 SWIG_fail;
6082 if (arg2 == NULL) {
6083 PyErr_SetString(PyExc_TypeError,"null reference");
6084 SWIG_fail;
6085 }
6086 if (obj2) {
6087 {
6088 arg3 = &temp3;
6089 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6090 }
6091 }
6092 if (obj3) {
6093 arg4 = (int) SWIG_AsInt(obj3);
6094 if (PyErr_Occurred()) SWIG_fail;
6095 }
6096 {
6097 PyThreadState* __tstate = wxPyBeginAllowThreads();
6098 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
6099
6100 wxPyEndAllowThreads(__tstate);
6101 if (PyErr_Occurred()) SWIG_fail;
6102 }
6103 {
6104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6105 }
6106 return resultobj;
6107 fail:
6108 return NULL;
6109 }
6110
6111
6112 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
6113 PyObject *obj;
6114 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6115 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
6116 Py_INCREF(obj);
6117 return Py_BuildValue((char *)"");
6118 }
6119 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
6120 PyObject *resultobj;
6121 wxRegion *arg1 = 0 ;
6122 wxRegionIterator *result;
6123 PyObject * obj0 = 0 ;
6124 char *kwnames[] = {
6125 (char *) "region", NULL
6126 };
6127
6128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
6129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6130 SWIG_POINTER_EXCEPTION | 0)) == -1)
6131 SWIG_fail;
6132 if (arg1 == NULL) {
6133 PyErr_SetString(PyExc_TypeError,"null reference");
6134 SWIG_fail;
6135 }
6136 {
6137 PyThreadState* __tstate = wxPyBeginAllowThreads();
6138 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
6139
6140 wxPyEndAllowThreads(__tstate);
6141 if (PyErr_Occurred()) SWIG_fail;
6142 }
6143 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
6144 return resultobj;
6145 fail:
6146 return NULL;
6147 }
6148
6149
6150 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
6151 PyObject *resultobj;
6152 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6153 PyObject * obj0 = 0 ;
6154 char *kwnames[] = {
6155 (char *) "self", NULL
6156 };
6157
6158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
6159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6161 {
6162 PyThreadState* __tstate = wxPyBeginAllowThreads();
6163 delete arg1;
6164
6165 wxPyEndAllowThreads(__tstate);
6166 if (PyErr_Occurred()) SWIG_fail;
6167 }
6168 Py_INCREF(Py_None); resultobj = Py_None;
6169 return resultobj;
6170 fail:
6171 return NULL;
6172 }
6173
6174
6175 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
6176 PyObject *resultobj;
6177 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6178 int result;
6179 PyObject * obj0 = 0 ;
6180 char *kwnames[] = {
6181 (char *) "self", NULL
6182 };
6183
6184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
6185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6187 {
6188 PyThreadState* __tstate = wxPyBeginAllowThreads();
6189 result = (int)(arg1)->GetX();
6190
6191 wxPyEndAllowThreads(__tstate);
6192 if (PyErr_Occurred()) SWIG_fail;
6193 }
6194 resultobj = SWIG_FromInt((int)result);
6195 return resultobj;
6196 fail:
6197 return NULL;
6198 }
6199
6200
6201 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
6202 PyObject *resultobj;
6203 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6204 int result;
6205 PyObject * obj0 = 0 ;
6206 char *kwnames[] = {
6207 (char *) "self", NULL
6208 };
6209
6210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
6211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6213 {
6214 PyThreadState* __tstate = wxPyBeginAllowThreads();
6215 result = (int)(arg1)->GetY();
6216
6217 wxPyEndAllowThreads(__tstate);
6218 if (PyErr_Occurred()) SWIG_fail;
6219 }
6220 resultobj = SWIG_FromInt((int)result);
6221 return resultobj;
6222 fail:
6223 return NULL;
6224 }
6225
6226
6227 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
6228 PyObject *resultobj;
6229 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6230 int result;
6231 PyObject * obj0 = 0 ;
6232 char *kwnames[] = {
6233 (char *) "self", NULL
6234 };
6235
6236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
6237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6239 {
6240 PyThreadState* __tstate = wxPyBeginAllowThreads();
6241 result = (int)(arg1)->GetW();
6242
6243 wxPyEndAllowThreads(__tstate);
6244 if (PyErr_Occurred()) SWIG_fail;
6245 }
6246 resultobj = SWIG_FromInt((int)result);
6247 return resultobj;
6248 fail:
6249 return NULL;
6250 }
6251
6252
6253 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6254 PyObject *resultobj;
6255 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6256 int result;
6257 PyObject * obj0 = 0 ;
6258 char *kwnames[] = {
6259 (char *) "self", NULL
6260 };
6261
6262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
6263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6265 {
6266 PyThreadState* __tstate = wxPyBeginAllowThreads();
6267 result = (int)(arg1)->GetWidth();
6268
6269 wxPyEndAllowThreads(__tstate);
6270 if (PyErr_Occurred()) SWIG_fail;
6271 }
6272 resultobj = SWIG_FromInt((int)result);
6273 return resultobj;
6274 fail:
6275 return NULL;
6276 }
6277
6278
6279 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
6280 PyObject *resultobj;
6281 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6282 int result;
6283 PyObject * obj0 = 0 ;
6284 char *kwnames[] = {
6285 (char *) "self", NULL
6286 };
6287
6288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
6289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6291 {
6292 PyThreadState* __tstate = wxPyBeginAllowThreads();
6293 result = (int)(arg1)->GetH();
6294
6295 wxPyEndAllowThreads(__tstate);
6296 if (PyErr_Occurred()) SWIG_fail;
6297 }
6298 resultobj = SWIG_FromInt((int)result);
6299 return resultobj;
6300 fail:
6301 return NULL;
6302 }
6303
6304
6305 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6306 PyObject *resultobj;
6307 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6308 int result;
6309 PyObject * obj0 = 0 ;
6310 char *kwnames[] = {
6311 (char *) "self", NULL
6312 };
6313
6314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
6315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6317 {
6318 PyThreadState* __tstate = wxPyBeginAllowThreads();
6319 result = (int)(arg1)->GetHeight();
6320
6321 wxPyEndAllowThreads(__tstate);
6322 if (PyErr_Occurred()) SWIG_fail;
6323 }
6324 resultobj = SWIG_FromInt((int)result);
6325 return resultobj;
6326 fail:
6327 return NULL;
6328 }
6329
6330
6331 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
6332 PyObject *resultobj;
6333 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6334 wxRect result;
6335 PyObject * obj0 = 0 ;
6336 char *kwnames[] = {
6337 (char *) "self", NULL
6338 };
6339
6340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
6341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6343 {
6344 PyThreadState* __tstate = wxPyBeginAllowThreads();
6345 result = (arg1)->GetRect();
6346
6347 wxPyEndAllowThreads(__tstate);
6348 if (PyErr_Occurred()) SWIG_fail;
6349 }
6350 {
6351 wxRect * resultptr;
6352 resultptr = new wxRect((wxRect &) result);
6353 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
6354 }
6355 return resultobj;
6356 fail:
6357 return NULL;
6358 }
6359
6360
6361 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
6362 PyObject *resultobj;
6363 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6364 bool result;
6365 PyObject * obj0 = 0 ;
6366 char *kwnames[] = {
6367 (char *) "self", NULL
6368 };
6369
6370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
6371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6373 {
6374 PyThreadState* __tstate = wxPyBeginAllowThreads();
6375 result = (bool)(arg1)->HaveRects();
6376
6377 wxPyEndAllowThreads(__tstate);
6378 if (PyErr_Occurred()) SWIG_fail;
6379 }
6380 {
6381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6382 }
6383 return resultobj;
6384 fail:
6385 return NULL;
6386 }
6387
6388
6389 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
6390 PyObject *resultobj;
6391 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6392 PyObject * obj0 = 0 ;
6393 char *kwnames[] = {
6394 (char *) "self", NULL
6395 };
6396
6397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
6398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6400 {
6401 PyThreadState* __tstate = wxPyBeginAllowThreads();
6402 (arg1)->Reset();
6403
6404 wxPyEndAllowThreads(__tstate);
6405 if (PyErr_Occurred()) SWIG_fail;
6406 }
6407 Py_INCREF(Py_None); resultobj = Py_None;
6408 return resultobj;
6409 fail:
6410 return NULL;
6411 }
6412
6413
6414 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
6415 PyObject *resultobj;
6416 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6417 PyObject * obj0 = 0 ;
6418 char *kwnames[] = {
6419 (char *) "self", NULL
6420 };
6421
6422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
6423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6425 {
6426 PyThreadState* __tstate = wxPyBeginAllowThreads();
6427 wxRegionIterator_Next(arg1);
6428
6429 wxPyEndAllowThreads(__tstate);
6430 if (PyErr_Occurred()) SWIG_fail;
6431 }
6432 Py_INCREF(Py_None); resultobj = Py_None;
6433 return resultobj;
6434 fail:
6435 return NULL;
6436 }
6437
6438
6439 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
6440 PyObject *resultobj;
6441 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6442 bool result;
6443 PyObject * obj0 = 0 ;
6444 char *kwnames[] = {
6445 (char *) "self", NULL
6446 };
6447
6448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
6449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6451 {
6452 PyThreadState* __tstate = wxPyBeginAllowThreads();
6453 result = (bool)wxRegionIterator___nonzero__(arg1);
6454
6455 wxPyEndAllowThreads(__tstate);
6456 if (PyErr_Occurred()) SWIG_fail;
6457 }
6458 {
6459 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6460 }
6461 return resultobj;
6462 fail:
6463 return NULL;
6464 }
6465
6466
6467 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
6468 PyObject *obj;
6469 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6470 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6471 Py_INCREF(obj);
6472 return Py_BuildValue((char *)"");
6473 }
6474 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6475 PyObject *resultobj;
6476 wxNativeFontInfo *result;
6477 char *kwnames[] = {
6478 NULL
6479 };
6480
6481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6482 {
6483 PyThreadState* __tstate = wxPyBeginAllowThreads();
6484 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6485
6486 wxPyEndAllowThreads(__tstate);
6487 if (PyErr_Occurred()) SWIG_fail;
6488 }
6489 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
6490 return resultobj;
6491 fail:
6492 return NULL;
6493 }
6494
6495
6496 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6497 PyObject *resultobj;
6498 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6499 PyObject * obj0 = 0 ;
6500 char *kwnames[] = {
6501 (char *) "self", NULL
6502 };
6503
6504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6507 {
6508 PyThreadState* __tstate = wxPyBeginAllowThreads();
6509 delete arg1;
6510
6511 wxPyEndAllowThreads(__tstate);
6512 if (PyErr_Occurred()) SWIG_fail;
6513 }
6514 Py_INCREF(Py_None); resultobj = Py_None;
6515 return resultobj;
6516 fail:
6517 return NULL;
6518 }
6519
6520
6521 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6522 PyObject *resultobj;
6523 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6524 PyObject * obj0 = 0 ;
6525 char *kwnames[] = {
6526 (char *) "self", NULL
6527 };
6528
6529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6532 {
6533 PyThreadState* __tstate = wxPyBeginAllowThreads();
6534 (arg1)->Init();
6535
6536 wxPyEndAllowThreads(__tstate);
6537 if (PyErr_Occurred()) SWIG_fail;
6538 }
6539 Py_INCREF(Py_None); resultobj = Py_None;
6540 return resultobj;
6541 fail:
6542 return NULL;
6543 }
6544
6545
6546 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6547 PyObject *resultobj;
6548 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6549 wxFont *arg2 = 0 ;
6550 PyObject * obj0 = 0 ;
6551 PyObject * obj1 = 0 ;
6552 char *kwnames[] = {
6553 (char *) "self",(char *) "font", NULL
6554 };
6555
6556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6559 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6560 SWIG_POINTER_EXCEPTION | 0)) == -1)
6561 SWIG_fail;
6562 if (arg2 == NULL) {
6563 PyErr_SetString(PyExc_TypeError,"null reference");
6564 SWIG_fail;
6565 }
6566 {
6567 PyThreadState* __tstate = wxPyBeginAllowThreads();
6568 (arg1)->InitFromFont((wxFont const &)*arg2);
6569
6570 wxPyEndAllowThreads(__tstate);
6571 if (PyErr_Occurred()) SWIG_fail;
6572 }
6573 Py_INCREF(Py_None); resultobj = Py_None;
6574 return resultobj;
6575 fail:
6576 return NULL;
6577 }
6578
6579
6580 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6581 PyObject *resultobj;
6582 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6583 int result;
6584 PyObject * obj0 = 0 ;
6585 char *kwnames[] = {
6586 (char *) "self", NULL
6587 };
6588
6589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6592 {
6593 PyThreadState* __tstate = wxPyBeginAllowThreads();
6594 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6595
6596 wxPyEndAllowThreads(__tstate);
6597 if (PyErr_Occurred()) SWIG_fail;
6598 }
6599 resultobj = SWIG_FromInt((int)result);
6600 return resultobj;
6601 fail:
6602 return NULL;
6603 }
6604
6605
6606 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6607 PyObject *resultobj;
6608 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6609 int result;
6610 PyObject * obj0 = 0 ;
6611 char *kwnames[] = {
6612 (char *) "self", NULL
6613 };
6614
6615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6618 {
6619 PyThreadState* __tstate = wxPyBeginAllowThreads();
6620 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6621
6622 wxPyEndAllowThreads(__tstate);
6623 if (PyErr_Occurred()) SWIG_fail;
6624 }
6625 resultobj = SWIG_FromInt((int)result);
6626 return resultobj;
6627 fail:
6628 return NULL;
6629 }
6630
6631
6632 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6633 PyObject *resultobj;
6634 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6635 int result;
6636 PyObject * obj0 = 0 ;
6637 char *kwnames[] = {
6638 (char *) "self", NULL
6639 };
6640
6641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6644 {
6645 PyThreadState* __tstate = wxPyBeginAllowThreads();
6646 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6647
6648 wxPyEndAllowThreads(__tstate);
6649 if (PyErr_Occurred()) SWIG_fail;
6650 }
6651 resultobj = SWIG_FromInt((int)result);
6652 return resultobj;
6653 fail:
6654 return NULL;
6655 }
6656
6657
6658 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6659 PyObject *resultobj;
6660 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6661 bool result;
6662 PyObject * obj0 = 0 ;
6663 char *kwnames[] = {
6664 (char *) "self", NULL
6665 };
6666
6667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6670 {
6671 PyThreadState* __tstate = wxPyBeginAllowThreads();
6672 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6673
6674 wxPyEndAllowThreads(__tstate);
6675 if (PyErr_Occurred()) SWIG_fail;
6676 }
6677 {
6678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6679 }
6680 return resultobj;
6681 fail:
6682 return NULL;
6683 }
6684
6685
6686 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6687 PyObject *resultobj;
6688 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6689 wxString result;
6690 PyObject * obj0 = 0 ;
6691 char *kwnames[] = {
6692 (char *) "self", NULL
6693 };
6694
6695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6698 {
6699 PyThreadState* __tstate = wxPyBeginAllowThreads();
6700 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6701
6702 wxPyEndAllowThreads(__tstate);
6703 if (PyErr_Occurred()) SWIG_fail;
6704 }
6705 {
6706 #if wxUSE_UNICODE
6707 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6708 #else
6709 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6710 #endif
6711 }
6712 return resultobj;
6713 fail:
6714 return NULL;
6715 }
6716
6717
6718 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6719 PyObject *resultobj;
6720 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6721 int result;
6722 PyObject * obj0 = 0 ;
6723 char *kwnames[] = {
6724 (char *) "self", NULL
6725 };
6726
6727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6730 {
6731 PyThreadState* __tstate = wxPyBeginAllowThreads();
6732 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6733
6734 wxPyEndAllowThreads(__tstate);
6735 if (PyErr_Occurred()) SWIG_fail;
6736 }
6737 resultobj = SWIG_FromInt((int)result);
6738 return resultobj;
6739 fail:
6740 return NULL;
6741 }
6742
6743
6744 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6745 PyObject *resultobj;
6746 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6747 int result;
6748 PyObject * obj0 = 0 ;
6749 char *kwnames[] = {
6750 (char *) "self", NULL
6751 };
6752
6753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6756 {
6757 PyThreadState* __tstate = wxPyBeginAllowThreads();
6758 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6759
6760 wxPyEndAllowThreads(__tstate);
6761 if (PyErr_Occurred()) SWIG_fail;
6762 }
6763 resultobj = SWIG_FromInt((int)result);
6764 return resultobj;
6765 fail:
6766 return NULL;
6767 }
6768
6769
6770 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6771 PyObject *resultobj;
6772 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6773 int arg2 ;
6774 PyObject * obj0 = 0 ;
6775 PyObject * obj1 = 0 ;
6776 char *kwnames[] = {
6777 (char *) "self",(char *) "pointsize", NULL
6778 };
6779
6780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6783 arg2 = (int) SWIG_AsInt(obj1);
6784 if (PyErr_Occurred()) SWIG_fail;
6785 {
6786 PyThreadState* __tstate = wxPyBeginAllowThreads();
6787 (arg1)->SetPointSize(arg2);
6788
6789 wxPyEndAllowThreads(__tstate);
6790 if (PyErr_Occurred()) SWIG_fail;
6791 }
6792 Py_INCREF(Py_None); resultobj = Py_None;
6793 return resultobj;
6794 fail:
6795 return NULL;
6796 }
6797
6798
6799 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6800 PyObject *resultobj;
6801 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6802 int arg2 ;
6803 PyObject * obj0 = 0 ;
6804 PyObject * obj1 = 0 ;
6805 char *kwnames[] = {
6806 (char *) "self",(char *) "style", NULL
6807 };
6808
6809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6812 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6813 if (PyErr_Occurred()) SWIG_fail;
6814 {
6815 PyThreadState* __tstate = wxPyBeginAllowThreads();
6816 (arg1)->SetStyle((wxFontStyle )arg2);
6817
6818 wxPyEndAllowThreads(__tstate);
6819 if (PyErr_Occurred()) SWIG_fail;
6820 }
6821 Py_INCREF(Py_None); resultobj = Py_None;
6822 return resultobj;
6823 fail:
6824 return NULL;
6825 }
6826
6827
6828 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6829 PyObject *resultobj;
6830 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6831 int arg2 ;
6832 PyObject * obj0 = 0 ;
6833 PyObject * obj1 = 0 ;
6834 char *kwnames[] = {
6835 (char *) "self",(char *) "weight", NULL
6836 };
6837
6838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6841 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6842 if (PyErr_Occurred()) SWIG_fail;
6843 {
6844 PyThreadState* __tstate = wxPyBeginAllowThreads();
6845 (arg1)->SetWeight((wxFontWeight )arg2);
6846
6847 wxPyEndAllowThreads(__tstate);
6848 if (PyErr_Occurred()) SWIG_fail;
6849 }
6850 Py_INCREF(Py_None); resultobj = Py_None;
6851 return resultobj;
6852 fail:
6853 return NULL;
6854 }
6855
6856
6857 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6858 PyObject *resultobj;
6859 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6860 bool arg2 ;
6861 PyObject * obj0 = 0 ;
6862 PyObject * obj1 = 0 ;
6863 char *kwnames[] = {
6864 (char *) "self",(char *) "underlined", NULL
6865 };
6866
6867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6870 arg2 = (bool) SWIG_AsBool(obj1);
6871 if (PyErr_Occurred()) SWIG_fail;
6872 {
6873 PyThreadState* __tstate = wxPyBeginAllowThreads();
6874 (arg1)->SetUnderlined(arg2);
6875
6876 wxPyEndAllowThreads(__tstate);
6877 if (PyErr_Occurred()) SWIG_fail;
6878 }
6879 Py_INCREF(Py_None); resultobj = Py_None;
6880 return resultobj;
6881 fail:
6882 return NULL;
6883 }
6884
6885
6886 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6887 PyObject *resultobj;
6888 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6889 wxString arg2 ;
6890 PyObject * obj0 = 0 ;
6891 PyObject * obj1 = 0 ;
6892 char *kwnames[] = {
6893 (char *) "self",(char *) "facename", NULL
6894 };
6895
6896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6899 {
6900 wxString* sptr = wxString_in_helper(obj1);
6901 if (sptr == NULL) SWIG_fail;
6902 arg2 = *sptr;
6903 delete sptr;
6904 }
6905 {
6906 PyThreadState* __tstate = wxPyBeginAllowThreads();
6907 (arg1)->SetFaceName(arg2);
6908
6909 wxPyEndAllowThreads(__tstate);
6910 if (PyErr_Occurred()) SWIG_fail;
6911 }
6912 Py_INCREF(Py_None); resultobj = Py_None;
6913 return resultobj;
6914 fail:
6915 return NULL;
6916 }
6917
6918
6919 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6920 PyObject *resultobj;
6921 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6922 int arg2 ;
6923 PyObject * obj0 = 0 ;
6924 PyObject * obj1 = 0 ;
6925 char *kwnames[] = {
6926 (char *) "self",(char *) "family", NULL
6927 };
6928
6929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6932 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
6933 if (PyErr_Occurred()) SWIG_fail;
6934 {
6935 PyThreadState* __tstate = wxPyBeginAllowThreads();
6936 (arg1)->SetFamily((wxFontFamily )arg2);
6937
6938 wxPyEndAllowThreads(__tstate);
6939 if (PyErr_Occurred()) SWIG_fail;
6940 }
6941 Py_INCREF(Py_None); resultobj = Py_None;
6942 return resultobj;
6943 fail:
6944 return NULL;
6945 }
6946
6947
6948 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6949 PyObject *resultobj;
6950 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6951 int arg2 ;
6952 PyObject * obj0 = 0 ;
6953 PyObject * obj1 = 0 ;
6954 char *kwnames[] = {
6955 (char *) "self",(char *) "encoding", NULL
6956 };
6957
6958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6961 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6962 if (PyErr_Occurred()) SWIG_fail;
6963 {
6964 PyThreadState* __tstate = wxPyBeginAllowThreads();
6965 (arg1)->SetEncoding((wxFontEncoding )arg2);
6966
6967 wxPyEndAllowThreads(__tstate);
6968 if (PyErr_Occurred()) SWIG_fail;
6969 }
6970 Py_INCREF(Py_None); resultobj = Py_None;
6971 return resultobj;
6972 fail:
6973 return NULL;
6974 }
6975
6976
6977 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6978 PyObject *resultobj;
6979 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6980 wxString *arg2 = 0 ;
6981 bool result;
6982 bool temp2 = False ;
6983 PyObject * obj0 = 0 ;
6984 PyObject * obj1 = 0 ;
6985 char *kwnames[] = {
6986 (char *) "self",(char *) "s", NULL
6987 };
6988
6989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6992 {
6993 arg2 = wxString_in_helper(obj1);
6994 if (arg2 == NULL) SWIG_fail;
6995 temp2 = True;
6996 }
6997 {
6998 PyThreadState* __tstate = wxPyBeginAllowThreads();
6999 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7000
7001 wxPyEndAllowThreads(__tstate);
7002 if (PyErr_Occurred()) SWIG_fail;
7003 }
7004 {
7005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7006 }
7007 {
7008 if (temp2)
7009 delete arg2;
7010 }
7011 return resultobj;
7012 fail:
7013 {
7014 if (temp2)
7015 delete arg2;
7016 }
7017 return NULL;
7018 }
7019
7020
7021 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
7022 PyObject *resultobj;
7023 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7024 wxString result;
7025 PyObject * obj0 = 0 ;
7026 char *kwnames[] = {
7027 (char *) "self", NULL
7028 };
7029
7030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
7031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7033 {
7034 PyThreadState* __tstate = wxPyBeginAllowThreads();
7035 result = ((wxNativeFontInfo const *)arg1)->ToString();
7036
7037 wxPyEndAllowThreads(__tstate);
7038 if (PyErr_Occurred()) SWIG_fail;
7039 }
7040 {
7041 #if wxUSE_UNICODE
7042 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7043 #else
7044 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7045 #endif
7046 }
7047 return resultobj;
7048 fail:
7049 return NULL;
7050 }
7051
7052
7053 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
7054 PyObject *resultobj;
7055 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7056 wxString result;
7057 PyObject * obj0 = 0 ;
7058 char *kwnames[] = {
7059 (char *) "self", NULL
7060 };
7061
7062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
7063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7065 {
7066 PyThreadState* __tstate = wxPyBeginAllowThreads();
7067 result = wxNativeFontInfo___str__(arg1);
7068
7069 wxPyEndAllowThreads(__tstate);
7070 if (PyErr_Occurred()) SWIG_fail;
7071 }
7072 {
7073 #if wxUSE_UNICODE
7074 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7075 #else
7076 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7077 #endif
7078 }
7079 return resultobj;
7080 fail:
7081 return NULL;
7082 }
7083
7084
7085 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
7086 PyObject *resultobj;
7087 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7088 wxString *arg2 = 0 ;
7089 bool result;
7090 bool temp2 = False ;
7091 PyObject * obj0 = 0 ;
7092 PyObject * obj1 = 0 ;
7093 char *kwnames[] = {
7094 (char *) "self",(char *) "s", NULL
7095 };
7096
7097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
7098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7100 {
7101 arg2 = wxString_in_helper(obj1);
7102 if (arg2 == NULL) SWIG_fail;
7103 temp2 = True;
7104 }
7105 {
7106 PyThreadState* __tstate = wxPyBeginAllowThreads();
7107 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
7108
7109 wxPyEndAllowThreads(__tstate);
7110 if (PyErr_Occurred()) SWIG_fail;
7111 }
7112 {
7113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7114 }
7115 {
7116 if (temp2)
7117 delete arg2;
7118 }
7119 return resultobj;
7120 fail:
7121 {
7122 if (temp2)
7123 delete arg2;
7124 }
7125 return NULL;
7126 }
7127
7128
7129 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
7130 PyObject *resultobj;
7131 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7132 wxString result;
7133 PyObject * obj0 = 0 ;
7134 char *kwnames[] = {
7135 (char *) "self", NULL
7136 };
7137
7138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
7139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7141 {
7142 PyThreadState* __tstate = wxPyBeginAllowThreads();
7143 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
7144
7145 wxPyEndAllowThreads(__tstate);
7146 if (PyErr_Occurred()) SWIG_fail;
7147 }
7148 {
7149 #if wxUSE_UNICODE
7150 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7151 #else
7152 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7153 #endif
7154 }
7155 return resultobj;
7156 fail:
7157 return NULL;
7158 }
7159
7160
7161 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
7162 PyObject *obj;
7163 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7164 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
7165 Py_INCREF(obj);
7166 return Py_BuildValue((char *)"");
7167 }
7168 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7169 PyObject *resultobj;
7170 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7171 wxString *arg2 = (wxString *) 0 ;
7172 bool temp2 = False ;
7173 PyObject * obj0 = 0 ;
7174 PyObject * obj1 = 0 ;
7175 char *kwnames[] = {
7176 (char *) "self",(char *) "facename", NULL
7177 };
7178
7179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
7180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7182 {
7183 arg2 = wxString_in_helper(obj1);
7184 if (arg2 == NULL) SWIG_fail;
7185 temp2 = True;
7186 }
7187 if (arg1) (arg1)->facename = *arg2;
7188
7189 Py_INCREF(Py_None); resultobj = Py_None;
7190 {
7191 if (temp2)
7192 delete arg2;
7193 }
7194 return resultobj;
7195 fail:
7196 {
7197 if (temp2)
7198 delete arg2;
7199 }
7200 return NULL;
7201 }
7202
7203
7204 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7205 PyObject *resultobj;
7206 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7207 wxString *result;
7208 PyObject * obj0 = 0 ;
7209 char *kwnames[] = {
7210 (char *) "self", NULL
7211 };
7212
7213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
7214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7216 result = (wxString *)& ((arg1)->facename);
7217
7218 {
7219 #if wxUSE_UNICODE
7220 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7221 #else
7222 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7223 #endif
7224 }
7225 return resultobj;
7226 fail:
7227 return NULL;
7228 }
7229
7230
7231 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7232 PyObject *resultobj;
7233 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7234 int arg2 ;
7235 PyObject * obj0 = 0 ;
7236 PyObject * obj1 = 0 ;
7237 char *kwnames[] = {
7238 (char *) "self",(char *) "encoding", NULL
7239 };
7240
7241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
7242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7244 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7245 if (PyErr_Occurred()) SWIG_fail;
7246 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
7247
7248 Py_INCREF(Py_None); resultobj = Py_None;
7249 return resultobj;
7250 fail:
7251 return NULL;
7252 }
7253
7254
7255 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7256 PyObject *resultobj;
7257 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7258 int result;
7259 PyObject * obj0 = 0 ;
7260 char *kwnames[] = {
7261 (char *) "self", NULL
7262 };
7263
7264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
7265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7267 result = (int) ((arg1)->encoding);
7268
7269 resultobj = SWIG_FromInt((int)result);
7270 return resultobj;
7271 fail:
7272 return NULL;
7273 }
7274
7275
7276 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7277 PyObject *resultobj;
7278 wxNativeEncodingInfo *result;
7279 char *kwnames[] = {
7280 NULL
7281 };
7282
7283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
7284 {
7285 PyThreadState* __tstate = wxPyBeginAllowThreads();
7286 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
7287
7288 wxPyEndAllowThreads(__tstate);
7289 if (PyErr_Occurred()) SWIG_fail;
7290 }
7291 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
7292 return resultobj;
7293 fail:
7294 return NULL;
7295 }
7296
7297
7298 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7299 PyObject *resultobj;
7300 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7301 PyObject * obj0 = 0 ;
7302 char *kwnames[] = {
7303 (char *) "self", NULL
7304 };
7305
7306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
7307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7309 {
7310 PyThreadState* __tstate = wxPyBeginAllowThreads();
7311 delete arg1;
7312
7313 wxPyEndAllowThreads(__tstate);
7314 if (PyErr_Occurred()) SWIG_fail;
7315 }
7316 Py_INCREF(Py_None); resultobj = Py_None;
7317 return resultobj;
7318 fail:
7319 return NULL;
7320 }
7321
7322
7323 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7324 PyObject *resultobj;
7325 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7326 wxString *arg2 = 0 ;
7327 bool result;
7328 bool temp2 = False ;
7329 PyObject * obj0 = 0 ;
7330 PyObject * obj1 = 0 ;
7331 char *kwnames[] = {
7332 (char *) "self",(char *) "s", NULL
7333 };
7334
7335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
7336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7338 {
7339 arg2 = wxString_in_helper(obj1);
7340 if (arg2 == NULL) SWIG_fail;
7341 temp2 = True;
7342 }
7343 {
7344 PyThreadState* __tstate = wxPyBeginAllowThreads();
7345 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7346
7347 wxPyEndAllowThreads(__tstate);
7348 if (PyErr_Occurred()) SWIG_fail;
7349 }
7350 {
7351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7352 }
7353 {
7354 if (temp2)
7355 delete arg2;
7356 }
7357 return resultobj;
7358 fail:
7359 {
7360 if (temp2)
7361 delete arg2;
7362 }
7363 return NULL;
7364 }
7365
7366
7367 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
7368 PyObject *resultobj;
7369 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7370 wxString result;
7371 PyObject * obj0 = 0 ;
7372 char *kwnames[] = {
7373 (char *) "self", NULL
7374 };
7375
7376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
7377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7379 {
7380 PyThreadState* __tstate = wxPyBeginAllowThreads();
7381 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
7382
7383 wxPyEndAllowThreads(__tstate);
7384 if (PyErr_Occurred()) SWIG_fail;
7385 }
7386 {
7387 #if wxUSE_UNICODE
7388 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7389 #else
7390 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7391 #endif
7392 }
7393 return resultobj;
7394 fail:
7395 return NULL;
7396 }
7397
7398
7399 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
7400 PyObject *obj;
7401 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7402 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
7403 Py_INCREF(obj);
7404 return Py_BuildValue((char *)"");
7405 }
7406 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7407 PyObject *resultobj;
7408 int arg1 ;
7409 wxNativeEncodingInfo *result;
7410 PyObject * obj0 = 0 ;
7411 char *kwnames[] = {
7412 (char *) "encoding", NULL
7413 };
7414
7415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
7416 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7417 if (PyErr_Occurred()) SWIG_fail;
7418 {
7419 PyThreadState* __tstate = wxPyBeginAllowThreads();
7420 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7421
7422 wxPyEndAllowThreads(__tstate);
7423 if (PyErr_Occurred()) SWIG_fail;
7424 }
7425 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
7426 return resultobj;
7427 fail:
7428 return NULL;
7429 }
7430
7431
7432 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7433 PyObject *resultobj;
7434 wxNativeEncodingInfo *arg1 = 0 ;
7435 bool result;
7436 PyObject * obj0 = 0 ;
7437 char *kwnames[] = {
7438 (char *) "info", NULL
7439 };
7440
7441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
7442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7443 SWIG_POINTER_EXCEPTION | 0)) == -1)
7444 SWIG_fail;
7445 if (arg1 == NULL) {
7446 PyErr_SetString(PyExc_TypeError,"null reference");
7447 SWIG_fail;
7448 }
7449 {
7450 PyThreadState* __tstate = wxPyBeginAllowThreads();
7451 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7452
7453 wxPyEndAllowThreads(__tstate);
7454 if (PyErr_Occurred()) SWIG_fail;
7455 }
7456 {
7457 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7458 }
7459 return resultobj;
7460 fail:
7461 return NULL;
7462 }
7463
7464
7465 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7466 PyObject *resultobj;
7467 wxFontMapper *result;
7468 char *kwnames[] = {
7469 NULL
7470 };
7471
7472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7473 {
7474 PyThreadState* __tstate = wxPyBeginAllowThreads();
7475 result = (wxFontMapper *)new wxFontMapper();
7476
7477 wxPyEndAllowThreads(__tstate);
7478 if (PyErr_Occurred()) SWIG_fail;
7479 }
7480 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
7481 return resultobj;
7482 fail:
7483 return NULL;
7484 }
7485
7486
7487 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7488 PyObject *resultobj;
7489 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7490 PyObject * obj0 = 0 ;
7491 char *kwnames[] = {
7492 (char *) "self", NULL
7493 };
7494
7495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7498 {
7499 PyThreadState* __tstate = wxPyBeginAllowThreads();
7500 delete arg1;
7501
7502 wxPyEndAllowThreads(__tstate);
7503 if (PyErr_Occurred()) SWIG_fail;
7504 }
7505 Py_INCREF(Py_None); resultobj = Py_None;
7506 return resultobj;
7507 fail:
7508 return NULL;
7509 }
7510
7511
7512 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
7513 PyObject *resultobj;
7514 wxFontMapper *result;
7515 char *kwnames[] = {
7516 NULL
7517 };
7518
7519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7520 {
7521 PyThreadState* __tstate = wxPyBeginAllowThreads();
7522 result = (wxFontMapper *)wxFontMapper::Get();
7523
7524 wxPyEndAllowThreads(__tstate);
7525 if (PyErr_Occurred()) SWIG_fail;
7526 }
7527 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7528 return resultobj;
7529 fail:
7530 return NULL;
7531 }
7532
7533
7534 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7535 PyObject *resultobj;
7536 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7537 wxFontMapper *result;
7538 PyObject * obj0 = 0 ;
7539 char *kwnames[] = {
7540 (char *) "mapper", NULL
7541 };
7542
7543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7546 {
7547 PyThreadState* __tstate = wxPyBeginAllowThreads();
7548 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7549
7550 wxPyEndAllowThreads(__tstate);
7551 if (PyErr_Occurred()) SWIG_fail;
7552 }
7553 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7554 return resultobj;
7555 fail:
7556 return NULL;
7557 }
7558
7559
7560 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7561 PyObject *resultobj;
7562 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7563 wxString *arg2 = 0 ;
7564 bool arg3 = (bool) True ;
7565 int result;
7566 bool temp2 = False ;
7567 PyObject * obj0 = 0 ;
7568 PyObject * obj1 = 0 ;
7569 PyObject * obj2 = 0 ;
7570 char *kwnames[] = {
7571 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7572 };
7573
7574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7577 {
7578 arg2 = wxString_in_helper(obj1);
7579 if (arg2 == NULL) SWIG_fail;
7580 temp2 = True;
7581 }
7582 if (obj2) {
7583 arg3 = (bool) SWIG_AsBool(obj2);
7584 if (PyErr_Occurred()) SWIG_fail;
7585 }
7586 {
7587 PyThreadState* __tstate = wxPyBeginAllowThreads();
7588 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7589
7590 wxPyEndAllowThreads(__tstate);
7591 if (PyErr_Occurred()) SWIG_fail;
7592 }
7593 resultobj = SWIG_FromInt((int)result);
7594 {
7595 if (temp2)
7596 delete arg2;
7597 }
7598 return resultobj;
7599 fail:
7600 {
7601 if (temp2)
7602 delete arg2;
7603 }
7604 return NULL;
7605 }
7606
7607
7608 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7609 PyObject *resultobj;
7610 size_t result;
7611 char *kwnames[] = {
7612 NULL
7613 };
7614
7615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7616 {
7617 PyThreadState* __tstate = wxPyBeginAllowThreads();
7618 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7619
7620 wxPyEndAllowThreads(__tstate);
7621 if (PyErr_Occurred()) SWIG_fail;
7622 }
7623 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7624 return resultobj;
7625 fail:
7626 return NULL;
7627 }
7628
7629
7630 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7631 PyObject *resultobj;
7632 size_t arg1 ;
7633 int result;
7634 PyObject * obj0 = 0 ;
7635 char *kwnames[] = {
7636 (char *) "n", NULL
7637 };
7638
7639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7640 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7641 if (PyErr_Occurred()) SWIG_fail;
7642 {
7643 PyThreadState* __tstate = wxPyBeginAllowThreads();
7644 result = (int)wxFontMapper::GetEncoding(arg1);
7645
7646 wxPyEndAllowThreads(__tstate);
7647 if (PyErr_Occurred()) SWIG_fail;
7648 }
7649 resultobj = SWIG_FromInt((int)result);
7650 return resultobj;
7651 fail:
7652 return NULL;
7653 }
7654
7655
7656 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7657 PyObject *resultobj;
7658 int arg1 ;
7659 wxString result;
7660 PyObject * obj0 = 0 ;
7661 char *kwnames[] = {
7662 (char *) "encoding", NULL
7663 };
7664
7665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7666 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7667 if (PyErr_Occurred()) SWIG_fail;
7668 {
7669 PyThreadState* __tstate = wxPyBeginAllowThreads();
7670 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7671
7672 wxPyEndAllowThreads(__tstate);
7673 if (PyErr_Occurred()) SWIG_fail;
7674 }
7675 {
7676 #if wxUSE_UNICODE
7677 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7678 #else
7679 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7680 #endif
7681 }
7682 return resultobj;
7683 fail:
7684 return NULL;
7685 }
7686
7687
7688 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7689 PyObject *resultobj;
7690 int arg1 ;
7691 wxString result;
7692 PyObject * obj0 = 0 ;
7693 char *kwnames[] = {
7694 (char *) "encoding", NULL
7695 };
7696
7697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7698 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7699 if (PyErr_Occurred()) SWIG_fail;
7700 {
7701 PyThreadState* __tstate = wxPyBeginAllowThreads();
7702 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7703
7704 wxPyEndAllowThreads(__tstate);
7705 if (PyErr_Occurred()) SWIG_fail;
7706 }
7707 {
7708 #if wxUSE_UNICODE
7709 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7710 #else
7711 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7712 #endif
7713 }
7714 return resultobj;
7715 fail:
7716 return NULL;
7717 }
7718
7719
7720 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
7721 PyObject *resultobj;
7722 wxString *arg1 = 0 ;
7723 int result;
7724 bool temp1 = False ;
7725 PyObject * obj0 = 0 ;
7726 char *kwnames[] = {
7727 (char *) "name", NULL
7728 };
7729
7730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7731 {
7732 arg1 = wxString_in_helper(obj0);
7733 if (arg1 == NULL) SWIG_fail;
7734 temp1 = True;
7735 }
7736 {
7737 PyThreadState* __tstate = wxPyBeginAllowThreads();
7738 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7739
7740 wxPyEndAllowThreads(__tstate);
7741 if (PyErr_Occurred()) SWIG_fail;
7742 }
7743 resultobj = SWIG_FromInt((int)result);
7744 {
7745 if (temp1)
7746 delete arg1;
7747 }
7748 return resultobj;
7749 fail:
7750 {
7751 if (temp1)
7752 delete arg1;
7753 }
7754 return NULL;
7755 }
7756
7757
7758 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7759 PyObject *resultobj;
7760 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7761 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7762 PyObject * obj0 = 0 ;
7763 PyObject * obj1 = 0 ;
7764 char *kwnames[] = {
7765 (char *) "self",(char *) "config", NULL
7766 };
7767
7768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7771 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7773 {
7774 PyThreadState* __tstate = wxPyBeginAllowThreads();
7775 (arg1)->SetConfig(arg2);
7776
7777 wxPyEndAllowThreads(__tstate);
7778 if (PyErr_Occurred()) SWIG_fail;
7779 }
7780 Py_INCREF(Py_None); resultobj = Py_None;
7781 return resultobj;
7782 fail:
7783 return NULL;
7784 }
7785
7786
7787 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7788 PyObject *resultobj;
7789 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7790 wxString *arg2 = 0 ;
7791 bool temp2 = False ;
7792 PyObject * obj0 = 0 ;
7793 PyObject * obj1 = 0 ;
7794 char *kwnames[] = {
7795 (char *) "self",(char *) "prefix", NULL
7796 };
7797
7798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7801 {
7802 arg2 = wxString_in_helper(obj1);
7803 if (arg2 == NULL) SWIG_fail;
7804 temp2 = True;
7805 }
7806 {
7807 PyThreadState* __tstate = wxPyBeginAllowThreads();
7808 (arg1)->SetConfigPath((wxString const &)*arg2);
7809
7810 wxPyEndAllowThreads(__tstate);
7811 if (PyErr_Occurred()) SWIG_fail;
7812 }
7813 Py_INCREF(Py_None); resultobj = Py_None;
7814 {
7815 if (temp2)
7816 delete arg2;
7817 }
7818 return resultobj;
7819 fail:
7820 {
7821 if (temp2)
7822 delete arg2;
7823 }
7824 return NULL;
7825 }
7826
7827
7828 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7829 PyObject *resultobj;
7830 wxString result;
7831 char *kwnames[] = {
7832 NULL
7833 };
7834
7835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7836 {
7837 PyThreadState* __tstate = wxPyBeginAllowThreads();
7838 result = wxFontMapper::GetDefaultConfigPath();
7839
7840 wxPyEndAllowThreads(__tstate);
7841 if (PyErr_Occurred()) SWIG_fail;
7842 }
7843 {
7844 #if wxUSE_UNICODE
7845 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7846 #else
7847 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7848 #endif
7849 }
7850 return resultobj;
7851 fail:
7852 return NULL;
7853 }
7854
7855
7856 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7857 PyObject *resultobj;
7858 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7859 int arg2 ;
7860 wxString const &arg3_defvalue = wxPyEmptyString ;
7861 wxString *arg3 = (wxString *) &arg3_defvalue ;
7862 bool arg4 = (bool) True ;
7863 PyObject *result;
7864 bool temp3 = False ;
7865 PyObject * obj0 = 0 ;
7866 PyObject * obj1 = 0 ;
7867 PyObject * obj2 = 0 ;
7868 PyObject * obj3 = 0 ;
7869 char *kwnames[] = {
7870 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7871 };
7872
7873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7876 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7877 if (PyErr_Occurred()) SWIG_fail;
7878 if (obj2) {
7879 {
7880 arg3 = wxString_in_helper(obj2);
7881 if (arg3 == NULL) SWIG_fail;
7882 temp3 = True;
7883 }
7884 }
7885 if (obj3) {
7886 arg4 = (bool) SWIG_AsBool(obj3);
7887 if (PyErr_Occurred()) SWIG_fail;
7888 }
7889 {
7890 PyThreadState* __tstate = wxPyBeginAllowThreads();
7891 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7892
7893 wxPyEndAllowThreads(__tstate);
7894 if (PyErr_Occurred()) SWIG_fail;
7895 }
7896 resultobj = result;
7897 {
7898 if (temp3)
7899 delete arg3;
7900 }
7901 return resultobj;
7902 fail:
7903 {
7904 if (temp3)
7905 delete arg3;
7906 }
7907 return NULL;
7908 }
7909
7910
7911 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7912 PyObject *resultobj;
7913 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7914 int arg2 ;
7915 wxString const &arg3_defvalue = wxPyEmptyString ;
7916 wxString *arg3 = (wxString *) &arg3_defvalue ;
7917 bool result;
7918 bool temp3 = False ;
7919 PyObject * obj0 = 0 ;
7920 PyObject * obj1 = 0 ;
7921 PyObject * obj2 = 0 ;
7922 char *kwnames[] = {
7923 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7924 };
7925
7926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7929 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7930 if (PyErr_Occurred()) SWIG_fail;
7931 if (obj2) {
7932 {
7933 arg3 = wxString_in_helper(obj2);
7934 if (arg3 == NULL) SWIG_fail;
7935 temp3 = True;
7936 }
7937 }
7938 {
7939 PyThreadState* __tstate = wxPyBeginAllowThreads();
7940 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7941
7942 wxPyEndAllowThreads(__tstate);
7943 if (PyErr_Occurred()) SWIG_fail;
7944 }
7945 {
7946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7947 }
7948 {
7949 if (temp3)
7950 delete arg3;
7951 }
7952 return resultobj;
7953 fail:
7954 {
7955 if (temp3)
7956 delete arg3;
7957 }
7958 return NULL;
7959 }
7960
7961
7962 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7963 PyObject *resultobj;
7964 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7965 wxWindow *arg2 = (wxWindow *) 0 ;
7966 PyObject * obj0 = 0 ;
7967 PyObject * obj1 = 0 ;
7968 char *kwnames[] = {
7969 (char *) "self",(char *) "parent", NULL
7970 };
7971
7972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7975 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7977 {
7978 PyThreadState* __tstate = wxPyBeginAllowThreads();
7979 (arg1)->SetDialogParent(arg2);
7980
7981 wxPyEndAllowThreads(__tstate);
7982 if (PyErr_Occurred()) SWIG_fail;
7983 }
7984 Py_INCREF(Py_None); resultobj = Py_None;
7985 return resultobj;
7986 fail:
7987 return NULL;
7988 }
7989
7990
7991 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7992 PyObject *resultobj;
7993 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7994 wxString *arg2 = 0 ;
7995 bool temp2 = False ;
7996 PyObject * obj0 = 0 ;
7997 PyObject * obj1 = 0 ;
7998 char *kwnames[] = {
7999 (char *) "self",(char *) "title", NULL
8000 };
8001
8002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
8003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8005 {
8006 arg2 = wxString_in_helper(obj1);
8007 if (arg2 == NULL) SWIG_fail;
8008 temp2 = True;
8009 }
8010 {
8011 PyThreadState* __tstate = wxPyBeginAllowThreads();
8012 (arg1)->SetDialogTitle((wxString const &)*arg2);
8013
8014 wxPyEndAllowThreads(__tstate);
8015 if (PyErr_Occurred()) SWIG_fail;
8016 }
8017 Py_INCREF(Py_None); resultobj = Py_None;
8018 {
8019 if (temp2)
8020 delete arg2;
8021 }
8022 return resultobj;
8023 fail:
8024 {
8025 if (temp2)
8026 delete arg2;
8027 }
8028 return NULL;
8029 }
8030
8031
8032 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
8033 PyObject *obj;
8034 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8035 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
8036 Py_INCREF(obj);
8037 return Py_BuildValue((char *)"");
8038 }
8039 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
8040 PyObject *resultobj;
8041 int arg1 ;
8042 int arg2 ;
8043 int arg3 ;
8044 int arg4 ;
8045 bool arg5 = (bool) False ;
8046 wxString const &arg6_defvalue = wxPyEmptyString ;
8047 wxString *arg6 = (wxString *) &arg6_defvalue ;
8048 int arg7 = (int) wxFONTENCODING_DEFAULT ;
8049 wxFont *result;
8050 bool temp6 = False ;
8051 PyObject * obj0 = 0 ;
8052 PyObject * obj1 = 0 ;
8053 PyObject * obj2 = 0 ;
8054 PyObject * obj3 = 0 ;
8055 PyObject * obj4 = 0 ;
8056 PyObject * obj5 = 0 ;
8057 PyObject * obj6 = 0 ;
8058 char *kwnames[] = {
8059 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
8060 };
8061
8062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
8063 arg1 = (int) SWIG_AsInt(obj0);
8064 if (PyErr_Occurred()) SWIG_fail;
8065 arg2 = (int) SWIG_AsInt(obj1);
8066 if (PyErr_Occurred()) SWIG_fail;
8067 arg3 = (int) SWIG_AsInt(obj2);
8068 if (PyErr_Occurred()) SWIG_fail;
8069 arg4 = (int) SWIG_AsInt(obj3);
8070 if (PyErr_Occurred()) SWIG_fail;
8071 if (obj4) {
8072 arg5 = (bool) SWIG_AsBool(obj4);
8073 if (PyErr_Occurred()) SWIG_fail;
8074 }
8075 if (obj5) {
8076 {
8077 arg6 = wxString_in_helper(obj5);
8078 if (arg6 == NULL) SWIG_fail;
8079 temp6 = True;
8080 }
8081 }
8082 if (obj6) {
8083 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
8084 if (PyErr_Occurred()) SWIG_fail;
8085 }
8086 {
8087 PyThreadState* __tstate = wxPyBeginAllowThreads();
8088 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
8089
8090 wxPyEndAllowThreads(__tstate);
8091 if (PyErr_Occurred()) SWIG_fail;
8092 }
8093 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8094 {
8095 if (temp6)
8096 delete arg6;
8097 }
8098 return resultobj;
8099 fail:
8100 {
8101 if (temp6)
8102 delete arg6;
8103 }
8104 return NULL;
8105 }
8106
8107
8108 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
8109 PyObject *resultobj;
8110 wxFont *arg1 = (wxFont *) 0 ;
8111 PyObject * obj0 = 0 ;
8112 char *kwnames[] = {
8113 (char *) "self", NULL
8114 };
8115
8116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
8117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8119 {
8120 PyThreadState* __tstate = wxPyBeginAllowThreads();
8121 delete arg1;
8122
8123 wxPyEndAllowThreads(__tstate);
8124 if (PyErr_Occurred()) SWIG_fail;
8125 }
8126 Py_INCREF(Py_None); resultobj = Py_None;
8127 return resultobj;
8128 fail:
8129 return NULL;
8130 }
8131
8132
8133 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8134 PyObject *resultobj;
8135 wxNativeFontInfo *arg1 = 0 ;
8136 wxFont *result;
8137 PyObject * obj0 = 0 ;
8138 char *kwnames[] = {
8139 (char *) "info", NULL
8140 };
8141
8142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
8143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
8144 SWIG_POINTER_EXCEPTION | 0)) == -1)
8145 SWIG_fail;
8146 if (arg1 == NULL) {
8147 PyErr_SetString(PyExc_TypeError,"null reference");
8148 SWIG_fail;
8149 }
8150 {
8151 PyThreadState* __tstate = wxPyBeginAllowThreads();
8152 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
8153
8154 wxPyEndAllowThreads(__tstate);
8155 if (PyErr_Occurred()) SWIG_fail;
8156 }
8157 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8158 return resultobj;
8159 fail:
8160 return NULL;
8161 }
8162
8163
8164 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
8165 PyObject *resultobj;
8166 wxString *arg1 = 0 ;
8167 wxFont *result;
8168 bool temp1 = False ;
8169 PyObject * obj0 = 0 ;
8170 char *kwnames[] = {
8171 (char *) "info", NULL
8172 };
8173
8174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
8175 {
8176 arg1 = wxString_in_helper(obj0);
8177 if (arg1 == NULL) SWIG_fail;
8178 temp1 = True;
8179 }
8180 {
8181 PyThreadState* __tstate = wxPyBeginAllowThreads();
8182 result = (wxFont *)new_wxFont((wxString const &)*arg1);
8183
8184 wxPyEndAllowThreads(__tstate);
8185 if (PyErr_Occurred()) SWIG_fail;
8186 }
8187 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8188 {
8189 if (temp1)
8190 delete arg1;
8191 }
8192 return resultobj;
8193 fail:
8194 {
8195 if (temp1)
8196 delete arg1;
8197 }
8198 return NULL;
8199 }
8200
8201
8202 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
8203 PyObject *resultobj;
8204 int arg1 ;
8205 int arg2 ;
8206 int arg3 = (int) wxFONTFLAG_DEFAULT ;
8207 wxString const &arg4_defvalue = wxPyEmptyString ;
8208 wxString *arg4 = (wxString *) &arg4_defvalue ;
8209 int arg5 = (int) wxFONTENCODING_DEFAULT ;
8210 wxFont *result;
8211 bool temp4 = False ;
8212 PyObject * obj0 = 0 ;
8213 PyObject * obj1 = 0 ;
8214 PyObject * obj2 = 0 ;
8215 PyObject * obj3 = 0 ;
8216 PyObject * obj4 = 0 ;
8217 char *kwnames[] = {
8218 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
8219 };
8220
8221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
8222 arg1 = (int) SWIG_AsInt(obj0);
8223 if (PyErr_Occurred()) SWIG_fail;
8224 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
8225 if (PyErr_Occurred()) SWIG_fail;
8226 if (obj2) {
8227 arg3 = (int) SWIG_AsInt(obj2);
8228 if (PyErr_Occurred()) SWIG_fail;
8229 }
8230 if (obj3) {
8231 {
8232 arg4 = wxString_in_helper(obj3);
8233 if (arg4 == NULL) SWIG_fail;
8234 temp4 = True;
8235 }
8236 }
8237 if (obj4) {
8238 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
8239 if (PyErr_Occurred()) SWIG_fail;
8240 }
8241 {
8242 PyThreadState* __tstate = wxPyBeginAllowThreads();
8243 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
8244
8245 wxPyEndAllowThreads(__tstate);
8246 if (PyErr_Occurred()) SWIG_fail;
8247 }
8248 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8249 {
8250 if (temp4)
8251 delete arg4;
8252 }
8253 return resultobj;
8254 fail:
8255 {
8256 if (temp4)
8257 delete arg4;
8258 }
8259 return NULL;
8260 }
8261
8262
8263 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
8264 PyObject *resultobj;
8265 wxFont *arg1 = (wxFont *) 0 ;
8266 bool result;
8267 PyObject * obj0 = 0 ;
8268 char *kwnames[] = {
8269 (char *) "self", NULL
8270 };
8271
8272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
8273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8275 {
8276 PyThreadState* __tstate = wxPyBeginAllowThreads();
8277 result = (bool)((wxFont const *)arg1)->Ok();
8278
8279 wxPyEndAllowThreads(__tstate);
8280 if (PyErr_Occurred()) SWIG_fail;
8281 }
8282 {
8283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8284 }
8285 return resultobj;
8286 fail:
8287 return NULL;
8288 }
8289
8290
8291 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
8292 PyObject *resultobj;
8293 wxFont *arg1 = (wxFont *) 0 ;
8294 wxFont *arg2 = (wxFont *) 0 ;
8295 bool result;
8296 PyObject * obj0 = 0 ;
8297 PyObject * obj1 = 0 ;
8298 char *kwnames[] = {
8299 (char *) "self",(char *) "other", NULL
8300 };
8301
8302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
8303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8305 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8307 {
8308 PyThreadState* __tstate = wxPyBeginAllowThreads();
8309 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
8310
8311 wxPyEndAllowThreads(__tstate);
8312 if (PyErr_Occurred()) SWIG_fail;
8313 }
8314 {
8315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8316 }
8317 return resultobj;
8318 fail:
8319 return NULL;
8320 }
8321
8322
8323 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
8324 PyObject *resultobj;
8325 wxFont *arg1 = (wxFont *) 0 ;
8326 wxFont *arg2 = (wxFont *) 0 ;
8327 bool result;
8328 PyObject * obj0 = 0 ;
8329 PyObject * obj1 = 0 ;
8330 char *kwnames[] = {
8331 (char *) "self",(char *) "other", NULL
8332 };
8333
8334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
8335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8337 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8339 {
8340 PyThreadState* __tstate = wxPyBeginAllowThreads();
8341 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
8342
8343 wxPyEndAllowThreads(__tstate);
8344 if (PyErr_Occurred()) SWIG_fail;
8345 }
8346 {
8347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8348 }
8349 return resultobj;
8350 fail:
8351 return NULL;
8352 }
8353
8354
8355 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8356 PyObject *resultobj;
8357 wxFont *arg1 = (wxFont *) 0 ;
8358 int result;
8359 PyObject * obj0 = 0 ;
8360 char *kwnames[] = {
8361 (char *) "self", NULL
8362 };
8363
8364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
8365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8367 {
8368 PyThreadState* __tstate = wxPyBeginAllowThreads();
8369 result = (int)((wxFont const *)arg1)->GetPointSize();
8370
8371 wxPyEndAllowThreads(__tstate);
8372 if (PyErr_Occurred()) SWIG_fail;
8373 }
8374 resultobj = SWIG_FromInt((int)result);
8375 return resultobj;
8376 fail:
8377 return NULL;
8378 }
8379
8380
8381 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8382 PyObject *resultobj;
8383 wxFont *arg1 = (wxFont *) 0 ;
8384 int result;
8385 PyObject * obj0 = 0 ;
8386 char *kwnames[] = {
8387 (char *) "self", NULL
8388 };
8389
8390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
8391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8393 {
8394 PyThreadState* __tstate = wxPyBeginAllowThreads();
8395 result = (int)((wxFont const *)arg1)->GetFamily();
8396
8397 wxPyEndAllowThreads(__tstate);
8398 if (PyErr_Occurred()) SWIG_fail;
8399 }
8400 resultobj = SWIG_FromInt((int)result);
8401 return resultobj;
8402 fail:
8403 return NULL;
8404 }
8405
8406
8407 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8408 PyObject *resultobj;
8409 wxFont *arg1 = (wxFont *) 0 ;
8410 int result;
8411 PyObject * obj0 = 0 ;
8412 char *kwnames[] = {
8413 (char *) "self", NULL
8414 };
8415
8416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
8417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8419 {
8420 PyThreadState* __tstate = wxPyBeginAllowThreads();
8421 result = (int)((wxFont const *)arg1)->GetStyle();
8422
8423 wxPyEndAllowThreads(__tstate);
8424 if (PyErr_Occurred()) SWIG_fail;
8425 }
8426 resultobj = SWIG_FromInt((int)result);
8427 return resultobj;
8428 fail:
8429 return NULL;
8430 }
8431
8432
8433 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8434 PyObject *resultobj;
8435 wxFont *arg1 = (wxFont *) 0 ;
8436 int result;
8437 PyObject * obj0 = 0 ;
8438 char *kwnames[] = {
8439 (char *) "self", NULL
8440 };
8441
8442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
8443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8445 {
8446 PyThreadState* __tstate = wxPyBeginAllowThreads();
8447 result = (int)((wxFont const *)arg1)->GetWeight();
8448
8449 wxPyEndAllowThreads(__tstate);
8450 if (PyErr_Occurred()) SWIG_fail;
8451 }
8452 resultobj = SWIG_FromInt((int)result);
8453 return resultobj;
8454 fail:
8455 return NULL;
8456 }
8457
8458
8459 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8460 PyObject *resultobj;
8461 wxFont *arg1 = (wxFont *) 0 ;
8462 bool result;
8463 PyObject * obj0 = 0 ;
8464 char *kwnames[] = {
8465 (char *) "self", NULL
8466 };
8467
8468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
8469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8471 {
8472 PyThreadState* __tstate = wxPyBeginAllowThreads();
8473 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8474
8475 wxPyEndAllowThreads(__tstate);
8476 if (PyErr_Occurred()) SWIG_fail;
8477 }
8478 {
8479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8480 }
8481 return resultobj;
8482 fail:
8483 return NULL;
8484 }
8485
8486
8487 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8488 PyObject *resultobj;
8489 wxFont *arg1 = (wxFont *) 0 ;
8490 wxString result;
8491 PyObject * obj0 = 0 ;
8492 char *kwnames[] = {
8493 (char *) "self", NULL
8494 };
8495
8496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
8497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8499 {
8500 PyThreadState* __tstate = wxPyBeginAllowThreads();
8501 result = ((wxFont const *)arg1)->GetFaceName();
8502
8503 wxPyEndAllowThreads(__tstate);
8504 if (PyErr_Occurred()) SWIG_fail;
8505 }
8506 {
8507 #if wxUSE_UNICODE
8508 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8509 #else
8510 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8511 #endif
8512 }
8513 return resultobj;
8514 fail:
8515 return NULL;
8516 }
8517
8518
8519 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8520 PyObject *resultobj;
8521 wxFont *arg1 = (wxFont *) 0 ;
8522 int result;
8523 PyObject * obj0 = 0 ;
8524 char *kwnames[] = {
8525 (char *) "self", NULL
8526 };
8527
8528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8531 {
8532 PyThreadState* __tstate = wxPyBeginAllowThreads();
8533 result = (int)((wxFont const *)arg1)->GetEncoding();
8534
8535 wxPyEndAllowThreads(__tstate);
8536 if (PyErr_Occurred()) SWIG_fail;
8537 }
8538 resultobj = SWIG_FromInt((int)result);
8539 return resultobj;
8540 fail:
8541 return NULL;
8542 }
8543
8544
8545 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8546 PyObject *resultobj;
8547 wxFont *arg1 = (wxFont *) 0 ;
8548 wxNativeFontInfo *result;
8549 PyObject * obj0 = 0 ;
8550 char *kwnames[] = {
8551 (char *) "self", NULL
8552 };
8553
8554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8557 {
8558 PyThreadState* __tstate = wxPyBeginAllowThreads();
8559 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8560
8561 wxPyEndAllowThreads(__tstate);
8562 if (PyErr_Occurred()) SWIG_fail;
8563 }
8564 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8565 return resultobj;
8566 fail:
8567 return NULL;
8568 }
8569
8570
8571 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8572 PyObject *resultobj;
8573 wxFont *arg1 = (wxFont *) 0 ;
8574 bool result;
8575 PyObject * obj0 = 0 ;
8576 char *kwnames[] = {
8577 (char *) "self", NULL
8578 };
8579
8580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8583 {
8584 PyThreadState* __tstate = wxPyBeginAllowThreads();
8585 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8586
8587 wxPyEndAllowThreads(__tstate);
8588 if (PyErr_Occurred()) SWIG_fail;
8589 }
8590 {
8591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8592 }
8593 return resultobj;
8594 fail:
8595 return NULL;
8596 }
8597
8598
8599 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8600 PyObject *resultobj;
8601 wxFont *arg1 = (wxFont *) 0 ;
8602 wxString result;
8603 PyObject * obj0 = 0 ;
8604 char *kwnames[] = {
8605 (char *) "self", NULL
8606 };
8607
8608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8611 {
8612 PyThreadState* __tstate = wxPyBeginAllowThreads();
8613 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8614
8615 wxPyEndAllowThreads(__tstate);
8616 if (PyErr_Occurred()) SWIG_fail;
8617 }
8618 {
8619 #if wxUSE_UNICODE
8620 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8621 #else
8622 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8623 #endif
8624 }
8625 return resultobj;
8626 fail:
8627 return NULL;
8628 }
8629
8630
8631 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8632 PyObject *resultobj;
8633 wxFont *arg1 = (wxFont *) 0 ;
8634 wxString result;
8635 PyObject * obj0 = 0 ;
8636 char *kwnames[] = {
8637 (char *) "self", NULL
8638 };
8639
8640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8643 {
8644 PyThreadState* __tstate = wxPyBeginAllowThreads();
8645 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8646
8647 wxPyEndAllowThreads(__tstate);
8648 if (PyErr_Occurred()) SWIG_fail;
8649 }
8650 {
8651 #if wxUSE_UNICODE
8652 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8653 #else
8654 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8655 #endif
8656 }
8657 return resultobj;
8658 fail:
8659 return NULL;
8660 }
8661
8662
8663 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8664 PyObject *resultobj;
8665 wxFont *arg1 = (wxFont *) 0 ;
8666 int arg2 ;
8667 PyObject * obj0 = 0 ;
8668 PyObject * obj1 = 0 ;
8669 char *kwnames[] = {
8670 (char *) "self",(char *) "pointSize", NULL
8671 };
8672
8673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8676 arg2 = (int) SWIG_AsInt(obj1);
8677 if (PyErr_Occurred()) SWIG_fail;
8678 {
8679 PyThreadState* __tstate = wxPyBeginAllowThreads();
8680 (arg1)->SetPointSize(arg2);
8681
8682 wxPyEndAllowThreads(__tstate);
8683 if (PyErr_Occurred()) SWIG_fail;
8684 }
8685 Py_INCREF(Py_None); resultobj = Py_None;
8686 return resultobj;
8687 fail:
8688 return NULL;
8689 }
8690
8691
8692 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8693 PyObject *resultobj;
8694 wxFont *arg1 = (wxFont *) 0 ;
8695 int arg2 ;
8696 PyObject * obj0 = 0 ;
8697 PyObject * obj1 = 0 ;
8698 char *kwnames[] = {
8699 (char *) "self",(char *) "family", NULL
8700 };
8701
8702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8705 arg2 = (int) SWIG_AsInt(obj1);
8706 if (PyErr_Occurred()) SWIG_fail;
8707 {
8708 PyThreadState* __tstate = wxPyBeginAllowThreads();
8709 (arg1)->SetFamily(arg2);
8710
8711 wxPyEndAllowThreads(__tstate);
8712 if (PyErr_Occurred()) SWIG_fail;
8713 }
8714 Py_INCREF(Py_None); resultobj = Py_None;
8715 return resultobj;
8716 fail:
8717 return NULL;
8718 }
8719
8720
8721 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8722 PyObject *resultobj;
8723 wxFont *arg1 = (wxFont *) 0 ;
8724 int arg2 ;
8725 PyObject * obj0 = 0 ;
8726 PyObject * obj1 = 0 ;
8727 char *kwnames[] = {
8728 (char *) "self",(char *) "style", NULL
8729 };
8730
8731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8734 arg2 = (int) SWIG_AsInt(obj1);
8735 if (PyErr_Occurred()) SWIG_fail;
8736 {
8737 PyThreadState* __tstate = wxPyBeginAllowThreads();
8738 (arg1)->SetStyle(arg2);
8739
8740 wxPyEndAllowThreads(__tstate);
8741 if (PyErr_Occurred()) SWIG_fail;
8742 }
8743 Py_INCREF(Py_None); resultobj = Py_None;
8744 return resultobj;
8745 fail:
8746 return NULL;
8747 }
8748
8749
8750 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8751 PyObject *resultobj;
8752 wxFont *arg1 = (wxFont *) 0 ;
8753 int arg2 ;
8754 PyObject * obj0 = 0 ;
8755 PyObject * obj1 = 0 ;
8756 char *kwnames[] = {
8757 (char *) "self",(char *) "weight", NULL
8758 };
8759
8760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8763 arg2 = (int) SWIG_AsInt(obj1);
8764 if (PyErr_Occurred()) SWIG_fail;
8765 {
8766 PyThreadState* __tstate = wxPyBeginAllowThreads();
8767 (arg1)->SetWeight(arg2);
8768
8769 wxPyEndAllowThreads(__tstate);
8770 if (PyErr_Occurred()) SWIG_fail;
8771 }
8772 Py_INCREF(Py_None); resultobj = Py_None;
8773 return resultobj;
8774 fail:
8775 return NULL;
8776 }
8777
8778
8779 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8780 PyObject *resultobj;
8781 wxFont *arg1 = (wxFont *) 0 ;
8782 wxString *arg2 = 0 ;
8783 bool temp2 = False ;
8784 PyObject * obj0 = 0 ;
8785 PyObject * obj1 = 0 ;
8786 char *kwnames[] = {
8787 (char *) "self",(char *) "faceName", NULL
8788 };
8789
8790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8793 {
8794 arg2 = wxString_in_helper(obj1);
8795 if (arg2 == NULL) SWIG_fail;
8796 temp2 = True;
8797 }
8798 {
8799 PyThreadState* __tstate = wxPyBeginAllowThreads();
8800 (arg1)->SetFaceName((wxString const &)*arg2);
8801
8802 wxPyEndAllowThreads(__tstate);
8803 if (PyErr_Occurred()) SWIG_fail;
8804 }
8805 Py_INCREF(Py_None); resultobj = Py_None;
8806 {
8807 if (temp2)
8808 delete arg2;
8809 }
8810 return resultobj;
8811 fail:
8812 {
8813 if (temp2)
8814 delete arg2;
8815 }
8816 return NULL;
8817 }
8818
8819
8820 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8821 PyObject *resultobj;
8822 wxFont *arg1 = (wxFont *) 0 ;
8823 bool arg2 ;
8824 PyObject * obj0 = 0 ;
8825 PyObject * obj1 = 0 ;
8826 char *kwnames[] = {
8827 (char *) "self",(char *) "underlined", NULL
8828 };
8829
8830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8833 arg2 = (bool) SWIG_AsBool(obj1);
8834 if (PyErr_Occurred()) SWIG_fail;
8835 {
8836 PyThreadState* __tstate = wxPyBeginAllowThreads();
8837 (arg1)->SetUnderlined(arg2);
8838
8839 wxPyEndAllowThreads(__tstate);
8840 if (PyErr_Occurred()) SWIG_fail;
8841 }
8842 Py_INCREF(Py_None); resultobj = Py_None;
8843 return resultobj;
8844 fail:
8845 return NULL;
8846 }
8847
8848
8849 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8850 PyObject *resultobj;
8851 wxFont *arg1 = (wxFont *) 0 ;
8852 int arg2 ;
8853 PyObject * obj0 = 0 ;
8854 PyObject * obj1 = 0 ;
8855 char *kwnames[] = {
8856 (char *) "self",(char *) "encoding", NULL
8857 };
8858
8859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8862 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8863 if (PyErr_Occurred()) SWIG_fail;
8864 {
8865 PyThreadState* __tstate = wxPyBeginAllowThreads();
8866 (arg1)->SetEncoding((wxFontEncoding )arg2);
8867
8868 wxPyEndAllowThreads(__tstate);
8869 if (PyErr_Occurred()) SWIG_fail;
8870 }
8871 Py_INCREF(Py_None); resultobj = Py_None;
8872 return resultobj;
8873 fail:
8874 return NULL;
8875 }
8876
8877
8878 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8879 PyObject *resultobj;
8880 wxFont *arg1 = (wxFont *) 0 ;
8881 wxNativeFontInfo *arg2 = 0 ;
8882 PyObject * obj0 = 0 ;
8883 PyObject * obj1 = 0 ;
8884 char *kwnames[] = {
8885 (char *) "self",(char *) "info", NULL
8886 };
8887
8888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8891 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8892 SWIG_POINTER_EXCEPTION | 0)) == -1)
8893 SWIG_fail;
8894 if (arg2 == NULL) {
8895 PyErr_SetString(PyExc_TypeError,"null reference");
8896 SWIG_fail;
8897 }
8898 {
8899 PyThreadState* __tstate = wxPyBeginAllowThreads();
8900 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8901
8902 wxPyEndAllowThreads(__tstate);
8903 if (PyErr_Occurred()) SWIG_fail;
8904 }
8905 Py_INCREF(Py_None); resultobj = Py_None;
8906 return resultobj;
8907 fail:
8908 return NULL;
8909 }
8910
8911
8912 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8913 PyObject *resultobj;
8914 wxFont *arg1 = (wxFont *) 0 ;
8915 wxString *arg2 = 0 ;
8916 bool temp2 = False ;
8917 PyObject * obj0 = 0 ;
8918 PyObject * obj1 = 0 ;
8919 char *kwnames[] = {
8920 (char *) "self",(char *) "info", NULL
8921 };
8922
8923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8926 {
8927 arg2 = wxString_in_helper(obj1);
8928 if (arg2 == NULL) SWIG_fail;
8929 temp2 = True;
8930 }
8931 {
8932 PyThreadState* __tstate = wxPyBeginAllowThreads();
8933 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8934
8935 wxPyEndAllowThreads(__tstate);
8936 if (PyErr_Occurred()) SWIG_fail;
8937 }
8938 Py_INCREF(Py_None); resultobj = Py_None;
8939 {
8940 if (temp2)
8941 delete arg2;
8942 }
8943 return resultobj;
8944 fail:
8945 {
8946 if (temp2)
8947 delete arg2;
8948 }
8949 return NULL;
8950 }
8951
8952
8953 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8954 PyObject *resultobj;
8955 wxFont *arg1 = (wxFont *) 0 ;
8956 wxString *arg2 = 0 ;
8957 bool temp2 = False ;
8958 PyObject * obj0 = 0 ;
8959 PyObject * obj1 = 0 ;
8960 char *kwnames[] = {
8961 (char *) "self",(char *) "info", NULL
8962 };
8963
8964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8967 {
8968 arg2 = wxString_in_helper(obj1);
8969 if (arg2 == NULL) SWIG_fail;
8970 temp2 = True;
8971 }
8972 {
8973 PyThreadState* __tstate = wxPyBeginAllowThreads();
8974 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8975
8976 wxPyEndAllowThreads(__tstate);
8977 if (PyErr_Occurred()) SWIG_fail;
8978 }
8979 Py_INCREF(Py_None); resultobj = Py_None;
8980 {
8981 if (temp2)
8982 delete arg2;
8983 }
8984 return resultobj;
8985 fail:
8986 {
8987 if (temp2)
8988 delete arg2;
8989 }
8990 return NULL;
8991 }
8992
8993
8994 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8995 PyObject *resultobj;
8996 wxFont *arg1 = (wxFont *) 0 ;
8997 wxString result;
8998 PyObject * obj0 = 0 ;
8999 char *kwnames[] = {
9000 (char *) "self", NULL
9001 };
9002
9003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
9004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9006 {
9007 PyThreadState* __tstate = wxPyBeginAllowThreads();
9008 result = ((wxFont const *)arg1)->GetFamilyString();
9009
9010 wxPyEndAllowThreads(__tstate);
9011 if (PyErr_Occurred()) SWIG_fail;
9012 }
9013 {
9014 #if wxUSE_UNICODE
9015 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9016 #else
9017 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9018 #endif
9019 }
9020 return resultobj;
9021 fail:
9022 return NULL;
9023 }
9024
9025
9026 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
9027 PyObject *resultobj;
9028 wxFont *arg1 = (wxFont *) 0 ;
9029 wxString result;
9030 PyObject * obj0 = 0 ;
9031 char *kwnames[] = {
9032 (char *) "self", NULL
9033 };
9034
9035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
9036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9038 {
9039 PyThreadState* __tstate = wxPyBeginAllowThreads();
9040 result = ((wxFont const *)arg1)->GetStyleString();
9041
9042 wxPyEndAllowThreads(__tstate);
9043 if (PyErr_Occurred()) SWIG_fail;
9044 }
9045 {
9046 #if wxUSE_UNICODE
9047 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9048 #else
9049 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9050 #endif
9051 }
9052 return resultobj;
9053 fail:
9054 return NULL;
9055 }
9056
9057
9058 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
9059 PyObject *resultobj;
9060 wxFont *arg1 = (wxFont *) 0 ;
9061 wxString result;
9062 PyObject * obj0 = 0 ;
9063 char *kwnames[] = {
9064 (char *) "self", NULL
9065 };
9066
9067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
9068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9070 {
9071 PyThreadState* __tstate = wxPyBeginAllowThreads();
9072 result = ((wxFont const *)arg1)->GetWeightString();
9073
9074 wxPyEndAllowThreads(__tstate);
9075 if (PyErr_Occurred()) SWIG_fail;
9076 }
9077 {
9078 #if wxUSE_UNICODE
9079 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9080 #else
9081 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9082 #endif
9083 }
9084 return resultobj;
9085 fail:
9086 return NULL;
9087 }
9088
9089
9090 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
9091 PyObject *resultobj;
9092 wxFont *arg1 = (wxFont *) 0 ;
9093 bool arg2 = (bool) True ;
9094 PyObject * obj0 = 0 ;
9095 PyObject * obj1 = 0 ;
9096 char *kwnames[] = {
9097 (char *) "self",(char *) "no", NULL
9098 };
9099
9100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
9101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9103 if (obj1) {
9104 arg2 = (bool) SWIG_AsBool(obj1);
9105 if (PyErr_Occurred()) SWIG_fail;
9106 }
9107 {
9108 PyThreadState* __tstate = wxPyBeginAllowThreads();
9109 (arg1)->SetNoAntiAliasing(arg2);
9110
9111 wxPyEndAllowThreads(__tstate);
9112 if (PyErr_Occurred()) SWIG_fail;
9113 }
9114 Py_INCREF(Py_None); resultobj = Py_None;
9115 return resultobj;
9116 fail:
9117 return NULL;
9118 }
9119
9120
9121 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
9122 PyObject *resultobj;
9123 wxFont *arg1 = (wxFont *) 0 ;
9124 bool result;
9125 PyObject * obj0 = 0 ;
9126 char *kwnames[] = {
9127 (char *) "self", NULL
9128 };
9129
9130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
9131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9133 {
9134 PyThreadState* __tstate = wxPyBeginAllowThreads();
9135 result = (bool)(arg1)->GetNoAntiAliasing();
9136
9137 wxPyEndAllowThreads(__tstate);
9138 if (PyErr_Occurred()) SWIG_fail;
9139 }
9140 {
9141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9142 }
9143 return resultobj;
9144 fail:
9145 return NULL;
9146 }
9147
9148
9149 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9150 PyObject *resultobj;
9151 int result;
9152 char *kwnames[] = {
9153 NULL
9154 };
9155
9156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
9157 {
9158 PyThreadState* __tstate = wxPyBeginAllowThreads();
9159 result = (int)wxFont::GetDefaultEncoding();
9160
9161 wxPyEndAllowThreads(__tstate);
9162 if (PyErr_Occurred()) SWIG_fail;
9163 }
9164 resultobj = SWIG_FromInt((int)result);
9165 return resultobj;
9166 fail:
9167 return NULL;
9168 }
9169
9170
9171 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9172 PyObject *resultobj;
9173 int arg1 ;
9174 PyObject * obj0 = 0 ;
9175 char *kwnames[] = {
9176 (char *) "encoding", NULL
9177 };
9178
9179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
9180 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
9181 if (PyErr_Occurred()) SWIG_fail;
9182 {
9183 PyThreadState* __tstate = wxPyBeginAllowThreads();
9184 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
9185
9186 wxPyEndAllowThreads(__tstate);
9187 if (PyErr_Occurred()) SWIG_fail;
9188 }
9189 Py_INCREF(Py_None); resultobj = Py_None;
9190 return resultobj;
9191 fail:
9192 return NULL;
9193 }
9194
9195
9196 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
9197 PyObject *obj;
9198 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9199 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
9200 Py_INCREF(obj);
9201 return Py_BuildValue((char *)"");
9202 }
9203 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
9204 PyObject *resultobj;
9205 wxPyFontEnumerator *result;
9206 char *kwnames[] = {
9207 NULL
9208 };
9209
9210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
9211 {
9212 PyThreadState* __tstate = wxPyBeginAllowThreads();
9213 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
9214
9215 wxPyEndAllowThreads(__tstate);
9216 if (PyErr_Occurred()) SWIG_fail;
9217 }
9218 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
9219 return resultobj;
9220 fail:
9221 return NULL;
9222 }
9223
9224
9225 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
9226 PyObject *resultobj;
9227 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9228 PyObject * obj0 = 0 ;
9229 char *kwnames[] = {
9230 (char *) "self", NULL
9231 };
9232
9233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
9234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9236 {
9237 PyThreadState* __tstate = wxPyBeginAllowThreads();
9238 delete arg1;
9239
9240 wxPyEndAllowThreads(__tstate);
9241 if (PyErr_Occurred()) SWIG_fail;
9242 }
9243 Py_INCREF(Py_None); resultobj = Py_None;
9244 return resultobj;
9245 fail:
9246 return NULL;
9247 }
9248
9249
9250 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9251 PyObject *resultobj;
9252 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9253 PyObject *arg2 = (PyObject *) 0 ;
9254 PyObject *arg3 = (PyObject *) 0 ;
9255 bool arg4 ;
9256 PyObject * obj0 = 0 ;
9257 PyObject * obj1 = 0 ;
9258 PyObject * obj2 = 0 ;
9259 PyObject * obj3 = 0 ;
9260 char *kwnames[] = {
9261 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
9262 };
9263
9264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9267 arg2 = obj1;
9268 arg3 = obj2;
9269 arg4 = (bool) SWIG_AsBool(obj3);
9270 if (PyErr_Occurred()) SWIG_fail;
9271 {
9272 PyThreadState* __tstate = wxPyBeginAllowThreads();
9273 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
9274
9275 wxPyEndAllowThreads(__tstate);
9276 if (PyErr_Occurred()) SWIG_fail;
9277 }
9278 Py_INCREF(Py_None); resultobj = Py_None;
9279 return resultobj;
9280 fail:
9281 return NULL;
9282 }
9283
9284
9285 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
9286 PyObject *resultobj;
9287 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9288 int arg2 = (int) wxFONTENCODING_SYSTEM ;
9289 bool arg3 = (bool) False ;
9290 bool result;
9291 PyObject * obj0 = 0 ;
9292 PyObject * obj1 = 0 ;
9293 PyObject * obj2 = 0 ;
9294 char *kwnames[] = {
9295 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
9296 };
9297
9298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
9299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9301 if (obj1) {
9302 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
9303 if (PyErr_Occurred()) SWIG_fail;
9304 }
9305 if (obj2) {
9306 arg3 = (bool) SWIG_AsBool(obj2);
9307 if (PyErr_Occurred()) SWIG_fail;
9308 }
9309 {
9310 PyThreadState* __tstate = wxPyBeginAllowThreads();
9311 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
9312
9313 wxPyEndAllowThreads(__tstate);
9314 if (PyErr_Occurred()) SWIG_fail;
9315 }
9316 {
9317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9318 }
9319 return resultobj;
9320 fail:
9321 return NULL;
9322 }
9323
9324
9325 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
9326 PyObject *resultobj;
9327 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9328 wxString const &arg2_defvalue = wxPyEmptyString ;
9329 wxString *arg2 = (wxString *) &arg2_defvalue ;
9330 bool result;
9331 bool temp2 = False ;
9332 PyObject * obj0 = 0 ;
9333 PyObject * obj1 = 0 ;
9334 char *kwnames[] = {
9335 (char *) "self",(char *) "facename", NULL
9336 };
9337
9338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
9339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9341 if (obj1) {
9342 {
9343 arg2 = wxString_in_helper(obj1);
9344 if (arg2 == NULL) SWIG_fail;
9345 temp2 = True;
9346 }
9347 }
9348 {
9349 PyThreadState* __tstate = wxPyBeginAllowThreads();
9350 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
9351
9352 wxPyEndAllowThreads(__tstate);
9353 if (PyErr_Occurred()) SWIG_fail;
9354 }
9355 {
9356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9357 }
9358 {
9359 if (temp2)
9360 delete arg2;
9361 }
9362 return resultobj;
9363 fail:
9364 {
9365 if (temp2)
9366 delete arg2;
9367 }
9368 return NULL;
9369 }
9370
9371
9372 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
9373 PyObject *resultobj;
9374 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9375 PyObject *result;
9376 PyObject * obj0 = 0 ;
9377 char *kwnames[] = {
9378 (char *) "self", NULL
9379 };
9380
9381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
9382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9384 {
9385 PyThreadState* __tstate = wxPyBeginAllowThreads();
9386 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
9387
9388 wxPyEndAllowThreads(__tstate);
9389 if (PyErr_Occurred()) SWIG_fail;
9390 }
9391 resultobj = result;
9392 return resultobj;
9393 fail:
9394 return NULL;
9395 }
9396
9397
9398 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
9399 PyObject *resultobj;
9400 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9401 PyObject *result;
9402 PyObject * obj0 = 0 ;
9403 char *kwnames[] = {
9404 (char *) "self", NULL
9405 };
9406
9407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
9408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9410 {
9411 PyThreadState* __tstate = wxPyBeginAllowThreads();
9412 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
9413
9414 wxPyEndAllowThreads(__tstate);
9415 if (PyErr_Occurred()) SWIG_fail;
9416 }
9417 resultobj = result;
9418 return resultobj;
9419 fail:
9420 return NULL;
9421 }
9422
9423
9424 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
9425 PyObject *obj;
9426 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9427 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9428 Py_INCREF(obj);
9429 return Py_BuildValue((char *)"");
9430 }
9431 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9432 PyObject *resultobj;
9433 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9434 int arg2 ;
9435 PyObject * obj0 = 0 ;
9436 PyObject * obj1 = 0 ;
9437 char *kwnames[] = {
9438 (char *) "self",(char *) "Language", NULL
9439 };
9440
9441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
9442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9444 arg2 = (int) SWIG_AsInt(obj1);
9445 if (PyErr_Occurred()) SWIG_fail;
9446 if (arg1) (arg1)->Language = arg2;
9447
9448 Py_INCREF(Py_None); resultobj = Py_None;
9449 return resultobj;
9450 fail:
9451 return NULL;
9452 }
9453
9454
9455 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9456 PyObject *resultobj;
9457 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9458 int result;
9459 PyObject * obj0 = 0 ;
9460 char *kwnames[] = {
9461 (char *) "self", NULL
9462 };
9463
9464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
9465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9467 result = (int) ((arg1)->Language);
9468
9469 resultobj = SWIG_FromInt((int)result);
9470 return resultobj;
9471 fail:
9472 return NULL;
9473 }
9474
9475
9476 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9477 PyObject *resultobj;
9478 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9479 wxString *arg2 = (wxString *) 0 ;
9480 bool temp2 = False ;
9481 PyObject * obj0 = 0 ;
9482 PyObject * obj1 = 0 ;
9483 char *kwnames[] = {
9484 (char *) "self",(char *) "CanonicalName", NULL
9485 };
9486
9487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
9488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9490 {
9491 arg2 = wxString_in_helper(obj1);
9492 if (arg2 == NULL) SWIG_fail;
9493 temp2 = True;
9494 }
9495 if (arg1) (arg1)->CanonicalName = *arg2;
9496
9497 Py_INCREF(Py_None); resultobj = Py_None;
9498 {
9499 if (temp2)
9500 delete arg2;
9501 }
9502 return resultobj;
9503 fail:
9504 {
9505 if (temp2)
9506 delete arg2;
9507 }
9508 return NULL;
9509 }
9510
9511
9512 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9513 PyObject *resultobj;
9514 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9515 wxString *result;
9516 PyObject * obj0 = 0 ;
9517 char *kwnames[] = {
9518 (char *) "self", NULL
9519 };
9520
9521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9524 result = (wxString *)& ((arg1)->CanonicalName);
9525
9526 {
9527 #if wxUSE_UNICODE
9528 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9529 #else
9530 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9531 #endif
9532 }
9533 return resultobj;
9534 fail:
9535 return NULL;
9536 }
9537
9538
9539 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9540 PyObject *resultobj;
9541 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9542 wxString *arg2 = (wxString *) 0 ;
9543 bool temp2 = False ;
9544 PyObject * obj0 = 0 ;
9545 PyObject * obj1 = 0 ;
9546 char *kwnames[] = {
9547 (char *) "self",(char *) "Description", NULL
9548 };
9549
9550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9553 {
9554 arg2 = wxString_in_helper(obj1);
9555 if (arg2 == NULL) SWIG_fail;
9556 temp2 = True;
9557 }
9558 if (arg1) (arg1)->Description = *arg2;
9559
9560 Py_INCREF(Py_None); resultobj = Py_None;
9561 {
9562 if (temp2)
9563 delete arg2;
9564 }
9565 return resultobj;
9566 fail:
9567 {
9568 if (temp2)
9569 delete arg2;
9570 }
9571 return NULL;
9572 }
9573
9574
9575 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9576 PyObject *resultobj;
9577 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9578 wxString *result;
9579 PyObject * obj0 = 0 ;
9580 char *kwnames[] = {
9581 (char *) "self", NULL
9582 };
9583
9584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9587 result = (wxString *)& ((arg1)->Description);
9588
9589 {
9590 #if wxUSE_UNICODE
9591 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9592 #else
9593 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9594 #endif
9595 }
9596 return resultobj;
9597 fail:
9598 return NULL;
9599 }
9600
9601
9602 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9603 PyObject *obj;
9604 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9605 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9606 Py_INCREF(obj);
9607 return Py_BuildValue((char *)"");
9608 }
9609 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9610 PyObject *resultobj;
9611 int arg1 = (int) -1 ;
9612 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9613 wxLocale *result;
9614 PyObject * obj0 = 0 ;
9615 PyObject * obj1 = 0 ;
9616 char *kwnames[] = {
9617 (char *) "language",(char *) "flags", NULL
9618 };
9619
9620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9621 if (obj0) {
9622 arg1 = (int) SWIG_AsInt(obj0);
9623 if (PyErr_Occurred()) SWIG_fail;
9624 }
9625 if (obj1) {
9626 arg2 = (int) SWIG_AsInt(obj1);
9627 if (PyErr_Occurred()) SWIG_fail;
9628 }
9629 {
9630 PyThreadState* __tstate = wxPyBeginAllowThreads();
9631 result = (wxLocale *)new_wxLocale(arg1,arg2);
9632
9633 wxPyEndAllowThreads(__tstate);
9634 if (PyErr_Occurred()) SWIG_fail;
9635 }
9636 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9637 return resultobj;
9638 fail:
9639 return NULL;
9640 }
9641
9642
9643 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9644 PyObject *resultobj;
9645 wxLocale *arg1 = (wxLocale *) 0 ;
9646 PyObject * obj0 = 0 ;
9647 char *kwnames[] = {
9648 (char *) "self", NULL
9649 };
9650
9651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9654 {
9655 PyThreadState* __tstate = wxPyBeginAllowThreads();
9656 delete arg1;
9657
9658 wxPyEndAllowThreads(__tstate);
9659 if (PyErr_Occurred()) SWIG_fail;
9660 }
9661 Py_INCREF(Py_None); resultobj = Py_None;
9662 return resultobj;
9663 fail:
9664 return NULL;
9665 }
9666
9667
9668 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9669 PyObject *resultobj;
9670 wxLocale *arg1 = (wxLocale *) 0 ;
9671 wxString *arg2 = 0 ;
9672 wxString const &arg3_defvalue = wxPyEmptyString ;
9673 wxString *arg3 = (wxString *) &arg3_defvalue ;
9674 wxString const &arg4_defvalue = wxPyEmptyString ;
9675 wxString *arg4 = (wxString *) &arg4_defvalue ;
9676 bool arg5 = (bool) True ;
9677 bool arg6 = (bool) False ;
9678 bool result;
9679 bool temp2 = False ;
9680 bool temp3 = False ;
9681 bool temp4 = False ;
9682 PyObject * obj0 = 0 ;
9683 PyObject * obj1 = 0 ;
9684 PyObject * obj2 = 0 ;
9685 PyObject * obj3 = 0 ;
9686 PyObject * obj4 = 0 ;
9687 PyObject * obj5 = 0 ;
9688 char *kwnames[] = {
9689 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9690 };
9691
9692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9695 {
9696 arg2 = wxString_in_helper(obj1);
9697 if (arg2 == NULL) SWIG_fail;
9698 temp2 = True;
9699 }
9700 if (obj2) {
9701 {
9702 arg3 = wxString_in_helper(obj2);
9703 if (arg3 == NULL) SWIG_fail;
9704 temp3 = True;
9705 }
9706 }
9707 if (obj3) {
9708 {
9709 arg4 = wxString_in_helper(obj3);
9710 if (arg4 == NULL) SWIG_fail;
9711 temp4 = True;
9712 }
9713 }
9714 if (obj4) {
9715 arg5 = (bool) SWIG_AsBool(obj4);
9716 if (PyErr_Occurred()) SWIG_fail;
9717 }
9718 if (obj5) {
9719 arg6 = (bool) SWIG_AsBool(obj5);
9720 if (PyErr_Occurred()) SWIG_fail;
9721 }
9722 {
9723 PyThreadState* __tstate = wxPyBeginAllowThreads();
9724 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9725
9726 wxPyEndAllowThreads(__tstate);
9727 if (PyErr_Occurred()) SWIG_fail;
9728 }
9729 {
9730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9731 }
9732 {
9733 if (temp2)
9734 delete arg2;
9735 }
9736 {
9737 if (temp3)
9738 delete arg3;
9739 }
9740 {
9741 if (temp4)
9742 delete arg4;
9743 }
9744 return resultobj;
9745 fail:
9746 {
9747 if (temp2)
9748 delete arg2;
9749 }
9750 {
9751 if (temp3)
9752 delete arg3;
9753 }
9754 {
9755 if (temp4)
9756 delete arg4;
9757 }
9758 return NULL;
9759 }
9760
9761
9762 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9763 PyObject *resultobj;
9764 wxLocale *arg1 = (wxLocale *) 0 ;
9765 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9766 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9767 bool result;
9768 PyObject * obj0 = 0 ;
9769 PyObject * obj1 = 0 ;
9770 PyObject * obj2 = 0 ;
9771 char *kwnames[] = {
9772 (char *) "self",(char *) "language",(char *) "flags", NULL
9773 };
9774
9775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9778 if (obj1) {
9779 arg2 = (int) SWIG_AsInt(obj1);
9780 if (PyErr_Occurred()) SWIG_fail;
9781 }
9782 if (obj2) {
9783 arg3 = (int) SWIG_AsInt(obj2);
9784 if (PyErr_Occurred()) SWIG_fail;
9785 }
9786 {
9787 PyThreadState* __tstate = wxPyBeginAllowThreads();
9788 result = (bool)(arg1)->Init(arg2,arg3);
9789
9790 wxPyEndAllowThreads(__tstate);
9791 if (PyErr_Occurred()) SWIG_fail;
9792 }
9793 {
9794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9795 }
9796 return resultobj;
9797 fail:
9798 return NULL;
9799 }
9800
9801
9802 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9803 PyObject *resultobj;
9804 int result;
9805 char *kwnames[] = {
9806 NULL
9807 };
9808
9809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9810 {
9811 PyThreadState* __tstate = wxPyBeginAllowThreads();
9812 result = (int)wxLocale::GetSystemLanguage();
9813
9814 wxPyEndAllowThreads(__tstate);
9815 if (PyErr_Occurred()) SWIG_fail;
9816 }
9817 resultobj = SWIG_FromInt((int)result);
9818 return resultobj;
9819 fail:
9820 return NULL;
9821 }
9822
9823
9824 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9825 PyObject *resultobj;
9826 int result;
9827 char *kwnames[] = {
9828 NULL
9829 };
9830
9831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9832 {
9833 PyThreadState* __tstate = wxPyBeginAllowThreads();
9834 result = (int)wxLocale::GetSystemEncoding();
9835
9836 wxPyEndAllowThreads(__tstate);
9837 if (PyErr_Occurred()) SWIG_fail;
9838 }
9839 resultobj = SWIG_FromInt((int)result);
9840 return resultobj;
9841 fail:
9842 return NULL;
9843 }
9844
9845
9846 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9847 PyObject *resultobj;
9848 wxString result;
9849 char *kwnames[] = {
9850 NULL
9851 };
9852
9853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9854 {
9855 PyThreadState* __tstate = wxPyBeginAllowThreads();
9856 result = wxLocale::GetSystemEncodingName();
9857
9858 wxPyEndAllowThreads(__tstate);
9859 if (PyErr_Occurred()) SWIG_fail;
9860 }
9861 {
9862 #if wxUSE_UNICODE
9863 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9864 #else
9865 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9866 #endif
9867 }
9868 return resultobj;
9869 fail:
9870 return NULL;
9871 }
9872
9873
9874 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9875 PyObject *resultobj;
9876 wxLocale *arg1 = (wxLocale *) 0 ;
9877 bool result;
9878 PyObject * obj0 = 0 ;
9879 char *kwnames[] = {
9880 (char *) "self", NULL
9881 };
9882
9883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9886 {
9887 PyThreadState* __tstate = wxPyBeginAllowThreads();
9888 result = (bool)((wxLocale const *)arg1)->IsOk();
9889
9890 wxPyEndAllowThreads(__tstate);
9891 if (PyErr_Occurred()) SWIG_fail;
9892 }
9893 {
9894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9895 }
9896 return resultobj;
9897 fail:
9898 return NULL;
9899 }
9900
9901
9902 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9903 PyObject *resultobj;
9904 wxLocale *arg1 = (wxLocale *) 0 ;
9905 wxString result;
9906 PyObject * obj0 = 0 ;
9907 char *kwnames[] = {
9908 (char *) "self", NULL
9909 };
9910
9911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9914 {
9915 PyThreadState* __tstate = wxPyBeginAllowThreads();
9916 result = ((wxLocale const *)arg1)->GetLocale();
9917
9918 wxPyEndAllowThreads(__tstate);
9919 if (PyErr_Occurred()) SWIG_fail;
9920 }
9921 {
9922 #if wxUSE_UNICODE
9923 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9924 #else
9925 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9926 #endif
9927 }
9928 return resultobj;
9929 fail:
9930 return NULL;
9931 }
9932
9933
9934 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9935 PyObject *resultobj;
9936 wxLocale *arg1 = (wxLocale *) 0 ;
9937 int result;
9938 PyObject * obj0 = 0 ;
9939 char *kwnames[] = {
9940 (char *) "self", NULL
9941 };
9942
9943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9946 {
9947 PyThreadState* __tstate = wxPyBeginAllowThreads();
9948 result = (int)((wxLocale const *)arg1)->GetLanguage();
9949
9950 wxPyEndAllowThreads(__tstate);
9951 if (PyErr_Occurred()) SWIG_fail;
9952 }
9953 resultobj = SWIG_FromInt((int)result);
9954 return resultobj;
9955 fail:
9956 return NULL;
9957 }
9958
9959
9960 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9961 PyObject *resultobj;
9962 wxLocale *arg1 = (wxLocale *) 0 ;
9963 wxString result;
9964 PyObject * obj0 = 0 ;
9965 char *kwnames[] = {
9966 (char *) "self", NULL
9967 };
9968
9969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9972 {
9973 PyThreadState* __tstate = wxPyBeginAllowThreads();
9974 result = ((wxLocale const *)arg1)->GetSysName();
9975
9976 wxPyEndAllowThreads(__tstate);
9977 if (PyErr_Occurred()) SWIG_fail;
9978 }
9979 {
9980 #if wxUSE_UNICODE
9981 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9982 #else
9983 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9984 #endif
9985 }
9986 return resultobj;
9987 fail:
9988 return NULL;
9989 }
9990
9991
9992 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9993 PyObject *resultobj;
9994 wxLocale *arg1 = (wxLocale *) 0 ;
9995 wxString result;
9996 PyObject * obj0 = 0 ;
9997 char *kwnames[] = {
9998 (char *) "self", NULL
9999 };
10000
10001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
10002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10004 {
10005 PyThreadState* __tstate = wxPyBeginAllowThreads();
10006 result = ((wxLocale const *)arg1)->GetCanonicalName();
10007
10008 wxPyEndAllowThreads(__tstate);
10009 if (PyErr_Occurred()) SWIG_fail;
10010 }
10011 {
10012 #if wxUSE_UNICODE
10013 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10014 #else
10015 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10016 #endif
10017 }
10018 return resultobj;
10019 fail:
10020 return NULL;
10021 }
10022
10023
10024 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
10025 PyObject *resultobj;
10026 wxString *arg1 = 0 ;
10027 bool temp1 = False ;
10028 PyObject * obj0 = 0 ;
10029 char *kwnames[] = {
10030 (char *) "prefix", NULL
10031 };
10032
10033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
10034 {
10035 arg1 = wxString_in_helper(obj0);
10036 if (arg1 == NULL) SWIG_fail;
10037 temp1 = True;
10038 }
10039 {
10040 PyThreadState* __tstate = wxPyBeginAllowThreads();
10041 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
10042
10043 wxPyEndAllowThreads(__tstate);
10044 if (PyErr_Occurred()) SWIG_fail;
10045 }
10046 Py_INCREF(Py_None); resultobj = Py_None;
10047 {
10048 if (temp1)
10049 delete arg1;
10050 }
10051 return resultobj;
10052 fail:
10053 {
10054 if (temp1)
10055 delete arg1;
10056 }
10057 return NULL;
10058 }
10059
10060
10061 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
10062 PyObject *resultobj;
10063 wxLocale *arg1 = (wxLocale *) 0 ;
10064 wxString *arg2 = 0 ;
10065 bool result;
10066 bool temp2 = False ;
10067 PyObject * obj0 = 0 ;
10068 PyObject * obj1 = 0 ;
10069 char *kwnames[] = {
10070 (char *) "self",(char *) "szDomain", NULL
10071 };
10072
10073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
10074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10076 {
10077 arg2 = wxString_in_helper(obj1);
10078 if (arg2 == NULL) SWIG_fail;
10079 temp2 = True;
10080 }
10081 {
10082 PyThreadState* __tstate = wxPyBeginAllowThreads();
10083 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
10084
10085 wxPyEndAllowThreads(__tstate);
10086 if (PyErr_Occurred()) SWIG_fail;
10087 }
10088 {
10089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10090 }
10091 {
10092 if (temp2)
10093 delete arg2;
10094 }
10095 return resultobj;
10096 fail:
10097 {
10098 if (temp2)
10099 delete arg2;
10100 }
10101 return NULL;
10102 }
10103
10104
10105 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
10106 PyObject *resultobj;
10107 wxLocale *arg1 = (wxLocale *) 0 ;
10108 wxString *arg2 = 0 ;
10109 bool result;
10110 bool temp2 = False ;
10111 PyObject * obj0 = 0 ;
10112 PyObject * obj1 = 0 ;
10113 char *kwnames[] = {
10114 (char *) "self",(char *) "szDomain", NULL
10115 };
10116
10117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
10118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10120 {
10121 arg2 = wxString_in_helper(obj1);
10122 if (arg2 == NULL) SWIG_fail;
10123 temp2 = True;
10124 }
10125 {
10126 PyThreadState* __tstate = wxPyBeginAllowThreads();
10127 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
10128
10129 wxPyEndAllowThreads(__tstate);
10130 if (PyErr_Occurred()) SWIG_fail;
10131 }
10132 {
10133 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10134 }
10135 {
10136 if (temp2)
10137 delete arg2;
10138 }
10139 return resultobj;
10140 fail:
10141 {
10142 if (temp2)
10143 delete arg2;
10144 }
10145 return NULL;
10146 }
10147
10148
10149 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
10150 PyObject *resultobj;
10151 int arg1 ;
10152 wxLanguageInfo *result;
10153 PyObject * obj0 = 0 ;
10154 char *kwnames[] = {
10155 (char *) "lang", NULL
10156 };
10157
10158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
10159 arg1 = (int) SWIG_AsInt(obj0);
10160 if (PyErr_Occurred()) SWIG_fail;
10161 {
10162 PyThreadState* __tstate = wxPyBeginAllowThreads();
10163 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
10164
10165 wxPyEndAllowThreads(__tstate);
10166 if (PyErr_Occurred()) SWIG_fail;
10167 }
10168 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10169 return resultobj;
10170 fail:
10171 return NULL;
10172 }
10173
10174
10175 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
10176 PyObject *resultobj;
10177 int arg1 ;
10178 wxString result;
10179 PyObject * obj0 = 0 ;
10180 char *kwnames[] = {
10181 (char *) "lang", NULL
10182 };
10183
10184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
10185 arg1 = (int) SWIG_AsInt(obj0);
10186 if (PyErr_Occurred()) SWIG_fail;
10187 {
10188 PyThreadState* __tstate = wxPyBeginAllowThreads();
10189 result = wxLocale::GetLanguageName(arg1);
10190
10191 wxPyEndAllowThreads(__tstate);
10192 if (PyErr_Occurred()) SWIG_fail;
10193 }
10194 {
10195 #if wxUSE_UNICODE
10196 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10197 #else
10198 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10199 #endif
10200 }
10201 return resultobj;
10202 fail:
10203 return NULL;
10204 }
10205
10206
10207 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
10208 PyObject *resultobj;
10209 wxString *arg1 = 0 ;
10210 wxLanguageInfo *result;
10211 bool temp1 = False ;
10212 PyObject * obj0 = 0 ;
10213 char *kwnames[] = {
10214 (char *) "locale", NULL
10215 };
10216
10217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
10218 {
10219 arg1 = wxString_in_helper(obj0);
10220 if (arg1 == NULL) SWIG_fail;
10221 temp1 = True;
10222 }
10223 {
10224 PyThreadState* __tstate = wxPyBeginAllowThreads();
10225 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
10226
10227 wxPyEndAllowThreads(__tstate);
10228 if (PyErr_Occurred()) SWIG_fail;
10229 }
10230 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10231 {
10232 if (temp1)
10233 delete arg1;
10234 }
10235 return resultobj;
10236 fail:
10237 {
10238 if (temp1)
10239 delete arg1;
10240 }
10241 return NULL;
10242 }
10243
10244
10245 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
10246 PyObject *resultobj;
10247 wxLanguageInfo *arg1 = 0 ;
10248 PyObject * obj0 = 0 ;
10249 char *kwnames[] = {
10250 (char *) "info", NULL
10251 };
10252
10253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
10254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
10255 SWIG_POINTER_EXCEPTION | 0)) == -1)
10256 SWIG_fail;
10257 if (arg1 == NULL) {
10258 PyErr_SetString(PyExc_TypeError,"null reference");
10259 SWIG_fail;
10260 }
10261 {
10262 PyThreadState* __tstate = wxPyBeginAllowThreads();
10263 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
10264
10265 wxPyEndAllowThreads(__tstate);
10266 if (PyErr_Occurred()) SWIG_fail;
10267 }
10268 Py_INCREF(Py_None); resultobj = Py_None;
10269 return resultobj;
10270 fail:
10271 return NULL;
10272 }
10273
10274
10275 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
10276 PyObject *resultobj;
10277 wxLocale *arg1 = (wxLocale *) 0 ;
10278 wxString *arg2 = 0 ;
10279 wxString const &arg3_defvalue = wxPyEmptyString ;
10280 wxString *arg3 = (wxString *) &arg3_defvalue ;
10281 wxString result;
10282 bool temp2 = False ;
10283 bool temp3 = False ;
10284 PyObject * obj0 = 0 ;
10285 PyObject * obj1 = 0 ;
10286 PyObject * obj2 = 0 ;
10287 char *kwnames[] = {
10288 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
10289 };
10290
10291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
10292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10294 {
10295 arg2 = wxString_in_helper(obj1);
10296 if (arg2 == NULL) SWIG_fail;
10297 temp2 = True;
10298 }
10299 if (obj2) {
10300 {
10301 arg3 = wxString_in_helper(obj2);
10302 if (arg3 == NULL) SWIG_fail;
10303 temp3 = True;
10304 }
10305 }
10306 {
10307 PyThreadState* __tstate = wxPyBeginAllowThreads();
10308 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
10309
10310 wxPyEndAllowThreads(__tstate);
10311 if (PyErr_Occurred()) SWIG_fail;
10312 }
10313 {
10314 #if wxUSE_UNICODE
10315 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10316 #else
10317 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10318 #endif
10319 }
10320 {
10321 if (temp2)
10322 delete arg2;
10323 }
10324 {
10325 if (temp3)
10326 delete arg3;
10327 }
10328 return resultobj;
10329 fail:
10330 {
10331 if (temp2)
10332 delete arg2;
10333 }
10334 {
10335 if (temp3)
10336 delete arg3;
10337 }
10338 return NULL;
10339 }
10340
10341
10342 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
10343 PyObject *resultobj;
10344 wxLocale *arg1 = (wxLocale *) 0 ;
10345 wxString *result;
10346 PyObject * obj0 = 0 ;
10347 char *kwnames[] = {
10348 (char *) "self", NULL
10349 };
10350
10351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
10352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10354 {
10355 PyThreadState* __tstate = wxPyBeginAllowThreads();
10356 {
10357 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
10358 result = (wxString *) &_result_ref;
10359 }
10360
10361 wxPyEndAllowThreads(__tstate);
10362 if (PyErr_Occurred()) SWIG_fail;
10363 }
10364 {
10365 #if wxUSE_UNICODE
10366 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10367 #else
10368 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10369 #endif
10370 }
10371 return resultobj;
10372 fail:
10373 return NULL;
10374 }
10375
10376
10377 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
10378 PyObject *obj;
10379 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10380 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
10381 Py_INCREF(obj);
10382 return Py_BuildValue((char *)"");
10383 }
10384 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
10385 PyObject *resultobj;
10386 wxLocale *result;
10387 char *kwnames[] = {
10388 NULL
10389 };
10390
10391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
10392 {
10393 PyThreadState* __tstate = wxPyBeginAllowThreads();
10394 result = (wxLocale *)wxGetLocale();
10395
10396 wxPyEndAllowThreads(__tstate);
10397 if (PyErr_Occurred()) SWIG_fail;
10398 }
10399 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
10400 return resultobj;
10401 fail:
10402 return NULL;
10403 }
10404
10405
10406 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
10407 PyObject *resultobj;
10408 wxString *arg1 = 0 ;
10409 wxString result;
10410 bool temp1 = False ;
10411 PyObject * obj0 = 0 ;
10412
10413 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
10414 {
10415 arg1 = wxString_in_helper(obj0);
10416 if (arg1 == NULL) SWIG_fail;
10417 temp1 = True;
10418 }
10419 {
10420 PyThreadState* __tstate = wxPyBeginAllowThreads();
10421 result = wxGetTranslation((wxString const &)*arg1);
10422
10423 wxPyEndAllowThreads(__tstate);
10424 if (PyErr_Occurred()) SWIG_fail;
10425 }
10426 {
10427 #if wxUSE_UNICODE
10428 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10429 #else
10430 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10431 #endif
10432 }
10433 {
10434 if (temp1)
10435 delete arg1;
10436 }
10437 return resultobj;
10438 fail:
10439 {
10440 if (temp1)
10441 delete arg1;
10442 }
10443 return NULL;
10444 }
10445
10446
10447 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
10448 PyObject *resultobj;
10449 wxString *arg1 = 0 ;
10450 wxString *arg2 = 0 ;
10451 size_t arg3 ;
10452 wxString result;
10453 bool temp1 = False ;
10454 bool temp2 = False ;
10455 PyObject * obj0 = 0 ;
10456 PyObject * obj1 = 0 ;
10457 PyObject * obj2 = 0 ;
10458
10459 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10460 {
10461 arg1 = wxString_in_helper(obj0);
10462 if (arg1 == NULL) SWIG_fail;
10463 temp1 = True;
10464 }
10465 {
10466 arg2 = wxString_in_helper(obj1);
10467 if (arg2 == NULL) SWIG_fail;
10468 temp2 = True;
10469 }
10470 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
10471 if (PyErr_Occurred()) SWIG_fail;
10472 {
10473 PyThreadState* __tstate = wxPyBeginAllowThreads();
10474 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10475
10476 wxPyEndAllowThreads(__tstate);
10477 if (PyErr_Occurred()) SWIG_fail;
10478 }
10479 {
10480 #if wxUSE_UNICODE
10481 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10482 #else
10483 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10484 #endif
10485 }
10486 {
10487 if (temp1)
10488 delete arg1;
10489 }
10490 {
10491 if (temp2)
10492 delete arg2;
10493 }
10494 return resultobj;
10495 fail:
10496 {
10497 if (temp1)
10498 delete arg1;
10499 }
10500 {
10501 if (temp2)
10502 delete arg2;
10503 }
10504 return NULL;
10505 }
10506
10507
10508 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10509 int argc;
10510 PyObject *argv[4];
10511 int ii;
10512
10513 argc = PyObject_Length(args);
10514 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10515 argv[ii] = PyTuple_GetItem(args,ii);
10516 }
10517 if (argc == 1) {
10518 int _v;
10519 {
10520 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10521 }
10522 if (_v) {
10523 return _wrap_GetTranslation__SWIG_0(self,args);
10524 }
10525 }
10526 if (argc == 3) {
10527 int _v;
10528 {
10529 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10530 }
10531 if (_v) {
10532 {
10533 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10534 }
10535 if (_v) {
10536 _v = SWIG_CheckUnsignedLong(argv[2]);
10537 if (_v) {
10538 return _wrap_GetTranslation__SWIG_1(self,args);
10539 }
10540 }
10541 }
10542 }
10543
10544 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10545 return NULL;
10546 }
10547
10548
10549 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10550 PyObject *resultobj;
10551 wxEncodingConverter *result;
10552 char *kwnames[] = {
10553 NULL
10554 };
10555
10556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10557 {
10558 PyThreadState* __tstate = wxPyBeginAllowThreads();
10559 result = (wxEncodingConverter *)new wxEncodingConverter();
10560
10561 wxPyEndAllowThreads(__tstate);
10562 if (PyErr_Occurred()) SWIG_fail;
10563 }
10564 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10565 return resultobj;
10566 fail:
10567 return NULL;
10568 }
10569
10570
10571 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10572 PyObject *resultobj;
10573 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10574 PyObject * obj0 = 0 ;
10575 char *kwnames[] = {
10576 (char *) "self", NULL
10577 };
10578
10579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10582 {
10583 PyThreadState* __tstate = wxPyBeginAllowThreads();
10584 delete arg1;
10585
10586 wxPyEndAllowThreads(__tstate);
10587 if (PyErr_Occurred()) SWIG_fail;
10588 }
10589 Py_INCREF(Py_None); resultobj = Py_None;
10590 return resultobj;
10591 fail:
10592 return NULL;
10593 }
10594
10595
10596 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10597 PyObject *resultobj;
10598 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10599 int arg2 ;
10600 int arg3 ;
10601 int arg4 = (int) wxCONVERT_STRICT ;
10602 bool result;
10603 PyObject * obj0 = 0 ;
10604 PyObject * obj1 = 0 ;
10605 PyObject * obj2 = 0 ;
10606 PyObject * obj3 = 0 ;
10607 char *kwnames[] = {
10608 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10609 };
10610
10611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10614 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10615 if (PyErr_Occurred()) SWIG_fail;
10616 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10617 if (PyErr_Occurred()) SWIG_fail;
10618 if (obj3) {
10619 arg4 = (int) SWIG_AsInt(obj3);
10620 if (PyErr_Occurred()) SWIG_fail;
10621 }
10622 {
10623 PyThreadState* __tstate = wxPyBeginAllowThreads();
10624 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10625
10626 wxPyEndAllowThreads(__tstate);
10627 if (PyErr_Occurred()) SWIG_fail;
10628 }
10629 {
10630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10631 }
10632 return resultobj;
10633 fail:
10634 return NULL;
10635 }
10636
10637
10638 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10639 PyObject *resultobj;
10640 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10641 wxString *arg2 = 0 ;
10642 wxString result;
10643 bool temp2 = False ;
10644 PyObject * obj0 = 0 ;
10645 PyObject * obj1 = 0 ;
10646 char *kwnames[] = {
10647 (char *) "self",(char *) "input", NULL
10648 };
10649
10650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10653 {
10654 arg2 = wxString_in_helper(obj1);
10655 if (arg2 == NULL) SWIG_fail;
10656 temp2 = True;
10657 }
10658 {
10659 PyThreadState* __tstate = wxPyBeginAllowThreads();
10660 result = (arg1)->Convert((wxString const &)*arg2);
10661
10662 wxPyEndAllowThreads(__tstate);
10663 if (PyErr_Occurred()) SWIG_fail;
10664 }
10665 {
10666 #if wxUSE_UNICODE
10667 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10668 #else
10669 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10670 #endif
10671 }
10672 {
10673 if (temp2)
10674 delete arg2;
10675 }
10676 return resultobj;
10677 fail:
10678 {
10679 if (temp2)
10680 delete arg2;
10681 }
10682 return NULL;
10683 }
10684
10685
10686 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10687 PyObject *resultobj;
10688 int arg1 ;
10689 int arg2 = (int) wxPLATFORM_CURRENT ;
10690 wxFontEncodingArray result;
10691 PyObject * obj0 = 0 ;
10692 PyObject * obj1 = 0 ;
10693 char *kwnames[] = {
10694 (char *) "enc",(char *) "platform", NULL
10695 };
10696
10697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10698 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10699 if (PyErr_Occurred()) SWIG_fail;
10700 if (obj1) {
10701 arg2 = (int) SWIG_AsInt(obj1);
10702 if (PyErr_Occurred()) SWIG_fail;
10703 }
10704 {
10705 PyThreadState* __tstate = wxPyBeginAllowThreads();
10706 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10707
10708 wxPyEndAllowThreads(__tstate);
10709 if (PyErr_Occurred()) SWIG_fail;
10710 }
10711 {
10712 resultobj = PyList_New(0);
10713 for (size_t i=0; i < (&result)->GetCount(); i++) {
10714 PyObject* number = PyInt_FromLong((&result)->Item(i));
10715 PyList_Append(resultobj, number);
10716 Py_DECREF(number);
10717 }
10718 }
10719 return resultobj;
10720 fail:
10721 return NULL;
10722 }
10723
10724
10725 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10726 PyObject *resultobj;
10727 int arg1 ;
10728 wxFontEncodingArray result;
10729 PyObject * obj0 = 0 ;
10730 char *kwnames[] = {
10731 (char *) "enc", NULL
10732 };
10733
10734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10735 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10736 if (PyErr_Occurred()) SWIG_fail;
10737 {
10738 PyThreadState* __tstate = wxPyBeginAllowThreads();
10739 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10740
10741 wxPyEndAllowThreads(__tstate);
10742 if (PyErr_Occurred()) SWIG_fail;
10743 }
10744 {
10745 resultobj = PyList_New(0);
10746 for (size_t i=0; i < (&result)->GetCount(); i++) {
10747 PyObject* number = PyInt_FromLong((&result)->Item(i));
10748 PyList_Append(resultobj, number);
10749 Py_DECREF(number);
10750 }
10751 }
10752 return resultobj;
10753 fail:
10754 return NULL;
10755 }
10756
10757
10758 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10759 PyObject *resultobj;
10760 int arg1 ;
10761 int arg2 ;
10762 bool result;
10763 PyObject * obj0 = 0 ;
10764 PyObject * obj1 = 0 ;
10765 char *kwnames[] = {
10766 (char *) "encIn",(char *) "encOut", NULL
10767 };
10768
10769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10770 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10771 if (PyErr_Occurred()) SWIG_fail;
10772 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10773 if (PyErr_Occurred()) SWIG_fail;
10774 {
10775 PyThreadState* __tstate = wxPyBeginAllowThreads();
10776 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10777
10778 wxPyEndAllowThreads(__tstate);
10779 if (PyErr_Occurred()) SWIG_fail;
10780 }
10781 {
10782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10783 }
10784 return resultobj;
10785 fail:
10786 return NULL;
10787 }
10788
10789
10790 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10791 PyObject *obj;
10792 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10793 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10794 Py_INCREF(obj);
10795 return Py_BuildValue((char *)"");
10796 }
10797 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10798 PyObject *resultobj;
10799 wxDC *arg1 = (wxDC *) 0 ;
10800 PyObject * obj0 = 0 ;
10801 char *kwnames[] = {
10802 (char *) "self", NULL
10803 };
10804
10805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10808 {
10809 PyThreadState* __tstate = wxPyBeginAllowThreads();
10810 delete arg1;
10811
10812 wxPyEndAllowThreads(__tstate);
10813 if (PyErr_Occurred()) SWIG_fail;
10814 }
10815 Py_INCREF(Py_None); resultobj = Py_None;
10816 return resultobj;
10817 fail:
10818 return NULL;
10819 }
10820
10821
10822 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10823 PyObject *resultobj;
10824 wxDC *arg1 = (wxDC *) 0 ;
10825 PyObject * obj0 = 0 ;
10826 char *kwnames[] = {
10827 (char *) "self", NULL
10828 };
10829
10830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10833 {
10834 PyThreadState* __tstate = wxPyBeginAllowThreads();
10835 (arg1)->BeginDrawing();
10836
10837 wxPyEndAllowThreads(__tstate);
10838 if (PyErr_Occurred()) SWIG_fail;
10839 }
10840 Py_INCREF(Py_None); resultobj = Py_None;
10841 return resultobj;
10842 fail:
10843 return NULL;
10844 }
10845
10846
10847 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10848 PyObject *resultobj;
10849 wxDC *arg1 = (wxDC *) 0 ;
10850 PyObject * obj0 = 0 ;
10851 char *kwnames[] = {
10852 (char *) "self", NULL
10853 };
10854
10855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10858 {
10859 PyThreadState* __tstate = wxPyBeginAllowThreads();
10860 (arg1)->EndDrawing();
10861
10862 wxPyEndAllowThreads(__tstate);
10863 if (PyErr_Occurred()) SWIG_fail;
10864 }
10865 Py_INCREF(Py_None); resultobj = Py_None;
10866 return resultobj;
10867 fail:
10868 return NULL;
10869 }
10870
10871
10872 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
10873 PyObject *resultobj;
10874 wxDC *arg1 = (wxDC *) 0 ;
10875 int arg2 ;
10876 int arg3 ;
10877 wxColour *arg4 = 0 ;
10878 int arg5 = (int) wxFLOOD_SURFACE ;
10879 bool result;
10880 wxColour temp4 ;
10881 PyObject * obj0 = 0 ;
10882 PyObject * obj1 = 0 ;
10883 PyObject * obj2 = 0 ;
10884 PyObject * obj3 = 0 ;
10885 PyObject * obj4 = 0 ;
10886 char *kwnames[] = {
10887 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10888 };
10889
10890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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 arg4 = &temp4;
10899 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10900 }
10901 if (obj4) {
10902 arg5 = (int) SWIG_AsInt(obj4);
10903 if (PyErr_Occurred()) SWIG_fail;
10904 }
10905 {
10906 PyThreadState* __tstate = wxPyBeginAllowThreads();
10907 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10908
10909 wxPyEndAllowThreads(__tstate);
10910 if (PyErr_Occurred()) SWIG_fail;
10911 }
10912 {
10913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10914 }
10915 return resultobj;
10916 fail:
10917 return NULL;
10918 }
10919
10920
10921 static PyObject *_wrap_DC_FloodFillPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10922 PyObject *resultobj;
10923 wxDC *arg1 = (wxDC *) 0 ;
10924 wxPoint *arg2 = 0 ;
10925 wxColour *arg3 = 0 ;
10926 int arg4 = (int) wxFLOOD_SURFACE ;
10927 bool result;
10928 wxPoint temp2 ;
10929 wxColour temp3 ;
10930 PyObject * obj0 = 0 ;
10931 PyObject * obj1 = 0 ;
10932 PyObject * obj2 = 0 ;
10933 PyObject * obj3 = 0 ;
10934 char *kwnames[] = {
10935 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10936 };
10937
10938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10941 {
10942 arg2 = &temp2;
10943 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10944 }
10945 {
10946 arg3 = &temp3;
10947 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10948 }
10949 if (obj3) {
10950 arg4 = (int) SWIG_AsInt(obj3);
10951 if (PyErr_Occurred()) SWIG_fail;
10952 }
10953 {
10954 PyThreadState* __tstate = wxPyBeginAllowThreads();
10955 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10956
10957 wxPyEndAllowThreads(__tstate);
10958 if (PyErr_Occurred()) SWIG_fail;
10959 }
10960 {
10961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10962 }
10963 return resultobj;
10964 fail:
10965 return NULL;
10966 }
10967
10968
10969 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10970 PyObject *resultobj;
10971 wxDC *arg1 = (wxDC *) 0 ;
10972 int arg2 ;
10973 int arg3 ;
10974 wxColour result;
10975 PyObject * obj0 = 0 ;
10976 PyObject * obj1 = 0 ;
10977 PyObject * obj2 = 0 ;
10978 char *kwnames[] = {
10979 (char *) "self",(char *) "x",(char *) "y", NULL
10980 };
10981
10982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
10983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10985 arg2 = (int) SWIG_AsInt(obj1);
10986 if (PyErr_Occurred()) SWIG_fail;
10987 arg3 = (int) SWIG_AsInt(obj2);
10988 if (PyErr_Occurred()) SWIG_fail;
10989 {
10990 PyThreadState* __tstate = wxPyBeginAllowThreads();
10991 result = wxDC_GetPixel(arg1,arg2,arg3);
10992
10993 wxPyEndAllowThreads(__tstate);
10994 if (PyErr_Occurred()) SWIG_fail;
10995 }
10996 {
10997 wxColour * resultptr;
10998 resultptr = new wxColour((wxColour &) result);
10999 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11000 }
11001 return resultobj;
11002 fail:
11003 return NULL;
11004 }
11005
11006
11007 static PyObject *_wrap_DC_GetPixelPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11008 PyObject *resultobj;
11009 wxDC *arg1 = (wxDC *) 0 ;
11010 wxPoint *arg2 = 0 ;
11011 wxColour result;
11012 wxPoint temp2 ;
11013 PyObject * obj0 = 0 ;
11014 PyObject * obj1 = 0 ;
11015 char *kwnames[] = {
11016 (char *) "self",(char *) "pt", NULL
11017 };
11018
11019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
11020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11022 {
11023 arg2 = &temp2;
11024 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11025 }
11026 {
11027 PyThreadState* __tstate = wxPyBeginAllowThreads();
11028 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
11029
11030 wxPyEndAllowThreads(__tstate);
11031 if (PyErr_Occurred()) SWIG_fail;
11032 }
11033 {
11034 wxColour * resultptr;
11035 resultptr = new wxColour((wxColour &) result);
11036 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11037 }
11038 return resultobj;
11039 fail:
11040 return NULL;
11041 }
11042
11043
11044 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
11045 PyObject *resultobj;
11046 wxDC *arg1 = (wxDC *) 0 ;
11047 int arg2 ;
11048 int arg3 ;
11049 int arg4 ;
11050 int arg5 ;
11051 PyObject * obj0 = 0 ;
11052 PyObject * obj1 = 0 ;
11053 PyObject * obj2 = 0 ;
11054 PyObject * obj3 = 0 ;
11055 PyObject * obj4 = 0 ;
11056 char *kwnames[] = {
11057 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
11058 };
11059
11060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11063 arg2 = (int) SWIG_AsInt(obj1);
11064 if (PyErr_Occurred()) SWIG_fail;
11065 arg3 = (int) SWIG_AsInt(obj2);
11066 if (PyErr_Occurred()) SWIG_fail;
11067 arg4 = (int) SWIG_AsInt(obj3);
11068 if (PyErr_Occurred()) SWIG_fail;
11069 arg5 = (int) SWIG_AsInt(obj4);
11070 if (PyErr_Occurred()) SWIG_fail;
11071 {
11072 PyThreadState* __tstate = wxPyBeginAllowThreads();
11073 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
11074
11075 wxPyEndAllowThreads(__tstate);
11076 if (PyErr_Occurred()) SWIG_fail;
11077 }
11078 Py_INCREF(Py_None); resultobj = Py_None;
11079 return resultobj;
11080 fail:
11081 return NULL;
11082 }
11083
11084
11085 static PyObject *_wrap_DC_DrawLinePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11086 PyObject *resultobj;
11087 wxDC *arg1 = (wxDC *) 0 ;
11088 wxPoint *arg2 = 0 ;
11089 wxPoint *arg3 = 0 ;
11090 wxPoint temp2 ;
11091 wxPoint temp3 ;
11092 PyObject * obj0 = 0 ;
11093 PyObject * obj1 = 0 ;
11094 PyObject * obj2 = 0 ;
11095 char *kwnames[] = {
11096 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
11097 };
11098
11099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11102 {
11103 arg2 = &temp2;
11104 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11105 }
11106 {
11107 arg3 = &temp3;
11108 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11109 }
11110 {
11111 PyThreadState* __tstate = wxPyBeginAllowThreads();
11112 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
11113
11114 wxPyEndAllowThreads(__tstate);
11115 if (PyErr_Occurred()) SWIG_fail;
11116 }
11117 Py_INCREF(Py_None); resultobj = Py_None;
11118 return resultobj;
11119 fail:
11120 return NULL;
11121 }
11122
11123
11124 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
11125 PyObject *resultobj;
11126 wxDC *arg1 = (wxDC *) 0 ;
11127 int arg2 ;
11128 int arg3 ;
11129 PyObject * obj0 = 0 ;
11130 PyObject * obj1 = 0 ;
11131 PyObject * obj2 = 0 ;
11132 char *kwnames[] = {
11133 (char *) "self",(char *) "x",(char *) "y", NULL
11134 };
11135
11136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
11137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11139 arg2 = (int) SWIG_AsInt(obj1);
11140 if (PyErr_Occurred()) SWIG_fail;
11141 arg3 = (int) SWIG_AsInt(obj2);
11142 if (PyErr_Occurred()) SWIG_fail;
11143 {
11144 PyThreadState* __tstate = wxPyBeginAllowThreads();
11145 (arg1)->CrossHair(arg2,arg3);
11146
11147 wxPyEndAllowThreads(__tstate);
11148 if (PyErr_Occurred()) SWIG_fail;
11149 }
11150 Py_INCREF(Py_None); resultobj = Py_None;
11151 return resultobj;
11152 fail:
11153 return NULL;
11154 }
11155
11156
11157 static PyObject *_wrap_DC_CrossHairPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11158 PyObject *resultobj;
11159 wxDC *arg1 = (wxDC *) 0 ;
11160 wxPoint *arg2 = 0 ;
11161 wxPoint temp2 ;
11162 PyObject * obj0 = 0 ;
11163 PyObject * obj1 = 0 ;
11164 char *kwnames[] = {
11165 (char *) "self",(char *) "pt", NULL
11166 };
11167
11168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
11169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11171 {
11172 arg2 = &temp2;
11173 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11174 }
11175 {
11176 PyThreadState* __tstate = wxPyBeginAllowThreads();
11177 (arg1)->CrossHair((wxPoint const &)*arg2);
11178
11179 wxPyEndAllowThreads(__tstate);
11180 if (PyErr_Occurred()) SWIG_fail;
11181 }
11182 Py_INCREF(Py_None); resultobj = Py_None;
11183 return resultobj;
11184 fail:
11185 return NULL;
11186 }
11187
11188
11189 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
11190 PyObject *resultobj;
11191 wxDC *arg1 = (wxDC *) 0 ;
11192 int arg2 ;
11193 int arg3 ;
11194 int arg4 ;
11195 int arg5 ;
11196 int arg6 ;
11197 int arg7 ;
11198 PyObject * obj0 = 0 ;
11199 PyObject * obj1 = 0 ;
11200 PyObject * obj2 = 0 ;
11201 PyObject * obj3 = 0 ;
11202 PyObject * obj4 = 0 ;
11203 PyObject * obj5 = 0 ;
11204 PyObject * obj6 = 0 ;
11205 char *kwnames[] = {
11206 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
11207 };
11208
11209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11212 arg2 = (int) SWIG_AsInt(obj1);
11213 if (PyErr_Occurred()) SWIG_fail;
11214 arg3 = (int) SWIG_AsInt(obj2);
11215 if (PyErr_Occurred()) SWIG_fail;
11216 arg4 = (int) SWIG_AsInt(obj3);
11217 if (PyErr_Occurred()) SWIG_fail;
11218 arg5 = (int) SWIG_AsInt(obj4);
11219 if (PyErr_Occurred()) SWIG_fail;
11220 arg6 = (int) SWIG_AsInt(obj5);
11221 if (PyErr_Occurred()) SWIG_fail;
11222 arg7 = (int) SWIG_AsInt(obj6);
11223 if (PyErr_Occurred()) SWIG_fail;
11224 {
11225 PyThreadState* __tstate = wxPyBeginAllowThreads();
11226 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
11227
11228 wxPyEndAllowThreads(__tstate);
11229 if (PyErr_Occurred()) SWIG_fail;
11230 }
11231 Py_INCREF(Py_None); resultobj = Py_None;
11232 return resultobj;
11233 fail:
11234 return NULL;
11235 }
11236
11237
11238 static PyObject *_wrap_DC_DrawArcPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11239 PyObject *resultobj;
11240 wxDC *arg1 = (wxDC *) 0 ;
11241 wxPoint *arg2 = 0 ;
11242 wxPoint *arg3 = 0 ;
11243 wxPoint *arg4 = 0 ;
11244 wxPoint temp2 ;
11245 wxPoint temp3 ;
11246 wxPoint temp4 ;
11247 PyObject * obj0 = 0 ;
11248 PyObject * obj1 = 0 ;
11249 PyObject * obj2 = 0 ;
11250 PyObject * obj3 = 0 ;
11251 char *kwnames[] = {
11252 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
11253 };
11254
11255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11258 {
11259 arg2 = &temp2;
11260 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11261 }
11262 {
11263 arg3 = &temp3;
11264 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11265 }
11266 {
11267 arg4 = &temp4;
11268 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11269 }
11270 {
11271 PyThreadState* __tstate = wxPyBeginAllowThreads();
11272 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
11273
11274 wxPyEndAllowThreads(__tstate);
11275 if (PyErr_Occurred()) SWIG_fail;
11276 }
11277 Py_INCREF(Py_None); resultobj = Py_None;
11278 return resultobj;
11279 fail:
11280 return NULL;
11281 }
11282
11283
11284 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
11285 PyObject *resultobj;
11286 wxDC *arg1 = (wxDC *) 0 ;
11287 int arg2 ;
11288 int arg3 ;
11289 int arg4 ;
11290 int arg5 ;
11291 PyObject * obj0 = 0 ;
11292 PyObject * obj1 = 0 ;
11293 PyObject * obj2 = 0 ;
11294 PyObject * obj3 = 0 ;
11295 PyObject * obj4 = 0 ;
11296 char *kwnames[] = {
11297 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11298 };
11299
11300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11303 arg2 = (int) SWIG_AsInt(obj1);
11304 if (PyErr_Occurred()) SWIG_fail;
11305 arg3 = (int) SWIG_AsInt(obj2);
11306 if (PyErr_Occurred()) SWIG_fail;
11307 arg4 = (int) SWIG_AsInt(obj3);
11308 if (PyErr_Occurred()) SWIG_fail;
11309 arg5 = (int) SWIG_AsInt(obj4);
11310 if (PyErr_Occurred()) SWIG_fail;
11311 {
11312 PyThreadState* __tstate = wxPyBeginAllowThreads();
11313 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
11314
11315 wxPyEndAllowThreads(__tstate);
11316 if (PyErr_Occurred()) SWIG_fail;
11317 }
11318 Py_INCREF(Py_None); resultobj = Py_None;
11319 return resultobj;
11320 fail:
11321 return NULL;
11322 }
11323
11324
11325 static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11326 PyObject *resultobj;
11327 wxDC *arg1 = (wxDC *) 0 ;
11328 wxRect *arg2 = 0 ;
11329 wxRect temp2 ;
11330 PyObject * obj0 = 0 ;
11331 PyObject * obj1 = 0 ;
11332 char *kwnames[] = {
11333 (char *) "self",(char *) "rect", NULL
11334 };
11335
11336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
11337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11339 {
11340 arg2 = &temp2;
11341 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11342 }
11343 {
11344 PyThreadState* __tstate = wxPyBeginAllowThreads();
11345 (arg1)->DrawCheckMark((wxRect const &)*arg2);
11346
11347 wxPyEndAllowThreads(__tstate);
11348 if (PyErr_Occurred()) SWIG_fail;
11349 }
11350 Py_INCREF(Py_None); resultobj = Py_None;
11351 return resultobj;
11352 fail:
11353 return NULL;
11354 }
11355
11356
11357 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
11358 PyObject *resultobj;
11359 wxDC *arg1 = (wxDC *) 0 ;
11360 int arg2 ;
11361 int arg3 ;
11362 int arg4 ;
11363 int arg5 ;
11364 double arg6 ;
11365 double arg7 ;
11366 PyObject * obj0 = 0 ;
11367 PyObject * obj1 = 0 ;
11368 PyObject * obj2 = 0 ;
11369 PyObject * obj3 = 0 ;
11370 PyObject * obj4 = 0 ;
11371 PyObject * obj5 = 0 ;
11372 PyObject * obj6 = 0 ;
11373 char *kwnames[] = {
11374 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
11375 };
11376
11377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11380 arg2 = (int) SWIG_AsInt(obj1);
11381 if (PyErr_Occurred()) SWIG_fail;
11382 arg3 = (int) SWIG_AsInt(obj2);
11383 if (PyErr_Occurred()) SWIG_fail;
11384 arg4 = (int) SWIG_AsInt(obj3);
11385 if (PyErr_Occurred()) SWIG_fail;
11386 arg5 = (int) SWIG_AsInt(obj4);
11387 if (PyErr_Occurred()) SWIG_fail;
11388 arg6 = (double) SWIG_AsDouble(obj5);
11389 if (PyErr_Occurred()) SWIG_fail;
11390 arg7 = (double) SWIG_AsDouble(obj6);
11391 if (PyErr_Occurred()) SWIG_fail;
11392 {
11393 PyThreadState* __tstate = wxPyBeginAllowThreads();
11394 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
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_DrawEllipticArcPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11407 PyObject *resultobj;
11408 wxDC *arg1 = (wxDC *) 0 ;
11409 wxPoint *arg2 = 0 ;
11410 wxSize *arg3 = 0 ;
11411 double arg4 ;
11412 double arg5 ;
11413 wxPoint temp2 ;
11414 wxSize temp3 ;
11415 PyObject * obj0 = 0 ;
11416 PyObject * obj1 = 0 ;
11417 PyObject * obj2 = 0 ;
11418 PyObject * obj3 = 0 ;
11419 PyObject * obj4 = 0 ;
11420 char *kwnames[] = {
11421 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
11422 };
11423
11424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11427 {
11428 arg2 = &temp2;
11429 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11430 }
11431 {
11432 arg3 = &temp3;
11433 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11434 }
11435 arg4 = (double) SWIG_AsDouble(obj3);
11436 if (PyErr_Occurred()) SWIG_fail;
11437 arg5 = (double) SWIG_AsDouble(obj4);
11438 if (PyErr_Occurred()) SWIG_fail;
11439 {
11440 PyThreadState* __tstate = wxPyBeginAllowThreads();
11441 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
11442
11443 wxPyEndAllowThreads(__tstate);
11444 if (PyErr_Occurred()) SWIG_fail;
11445 }
11446 Py_INCREF(Py_None); resultobj = Py_None;
11447 return resultobj;
11448 fail:
11449 return NULL;
11450 }
11451
11452
11453 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11454 PyObject *resultobj;
11455 wxDC *arg1 = (wxDC *) 0 ;
11456 int arg2 ;
11457 int arg3 ;
11458 PyObject * obj0 = 0 ;
11459 PyObject * obj1 = 0 ;
11460 PyObject * obj2 = 0 ;
11461 char *kwnames[] = {
11462 (char *) "self",(char *) "x",(char *) "y", NULL
11463 };
11464
11465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11468 arg2 = (int) SWIG_AsInt(obj1);
11469 if (PyErr_Occurred()) SWIG_fail;
11470 arg3 = (int) SWIG_AsInt(obj2);
11471 if (PyErr_Occurred()) SWIG_fail;
11472 {
11473 PyThreadState* __tstate = wxPyBeginAllowThreads();
11474 (arg1)->DrawPoint(arg2,arg3);
11475
11476 wxPyEndAllowThreads(__tstate);
11477 if (PyErr_Occurred()) SWIG_fail;
11478 }
11479 Py_INCREF(Py_None); resultobj = Py_None;
11480 return resultobj;
11481 fail:
11482 return NULL;
11483 }
11484
11485
11486 static PyObject *_wrap_DC_DrawPointPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11487 PyObject *resultobj;
11488 wxDC *arg1 = (wxDC *) 0 ;
11489 wxPoint *arg2 = 0 ;
11490 wxPoint temp2 ;
11491 PyObject * obj0 = 0 ;
11492 PyObject * obj1 = 0 ;
11493 char *kwnames[] = {
11494 (char *) "self",(char *) "pt", NULL
11495 };
11496
11497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
11498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11500 {
11501 arg2 = &temp2;
11502 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11503 }
11504 {
11505 PyThreadState* __tstate = wxPyBeginAllowThreads();
11506 (arg1)->DrawPoint((wxPoint const &)*arg2);
11507
11508 wxPyEndAllowThreads(__tstate);
11509 if (PyErr_Occurred()) SWIG_fail;
11510 }
11511 Py_INCREF(Py_None); resultobj = Py_None;
11512 return resultobj;
11513 fail:
11514 return NULL;
11515 }
11516
11517
11518 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11519 PyObject *resultobj;
11520 wxDC *arg1 = (wxDC *) 0 ;
11521 int arg2 ;
11522 int arg3 ;
11523 int arg4 ;
11524 int arg5 ;
11525 PyObject * obj0 = 0 ;
11526 PyObject * obj1 = 0 ;
11527 PyObject * obj2 = 0 ;
11528 PyObject * obj3 = 0 ;
11529 PyObject * obj4 = 0 ;
11530 char *kwnames[] = {
11531 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11532 };
11533
11534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11537 arg2 = (int) SWIG_AsInt(obj1);
11538 if (PyErr_Occurred()) SWIG_fail;
11539 arg3 = (int) SWIG_AsInt(obj2);
11540 if (PyErr_Occurred()) SWIG_fail;
11541 arg4 = (int) SWIG_AsInt(obj3);
11542 if (PyErr_Occurred()) SWIG_fail;
11543 arg5 = (int) SWIG_AsInt(obj4);
11544 if (PyErr_Occurred()) SWIG_fail;
11545 {
11546 PyThreadState* __tstate = wxPyBeginAllowThreads();
11547 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11548
11549 wxPyEndAllowThreads(__tstate);
11550 if (PyErr_Occurred()) SWIG_fail;
11551 }
11552 Py_INCREF(Py_None); resultobj = Py_None;
11553 return resultobj;
11554 fail:
11555 return NULL;
11556 }
11557
11558
11559 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11560 PyObject *resultobj;
11561 wxDC *arg1 = (wxDC *) 0 ;
11562 wxRect *arg2 = 0 ;
11563 wxRect temp2 ;
11564 PyObject * obj0 = 0 ;
11565 PyObject * obj1 = 0 ;
11566 char *kwnames[] = {
11567 (char *) "self",(char *) "rect", NULL
11568 };
11569
11570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11573 {
11574 arg2 = &temp2;
11575 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11576 }
11577 {
11578 PyThreadState* __tstate = wxPyBeginAllowThreads();
11579 (arg1)->DrawRectangle((wxRect const &)*arg2);
11580
11581 wxPyEndAllowThreads(__tstate);
11582 if (PyErr_Occurred()) SWIG_fail;
11583 }
11584 Py_INCREF(Py_None); resultobj = Py_None;
11585 return resultobj;
11586 fail:
11587 return NULL;
11588 }
11589
11590
11591 static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11592 PyObject *resultobj;
11593 wxDC *arg1 = (wxDC *) 0 ;
11594 wxPoint *arg2 = 0 ;
11595 wxSize *arg3 = 0 ;
11596 wxPoint temp2 ;
11597 wxSize temp3 ;
11598 PyObject * obj0 = 0 ;
11599 PyObject * obj1 = 0 ;
11600 PyObject * obj2 = 0 ;
11601 char *kwnames[] = {
11602 (char *) "self",(char *) "pt",(char *) "sz", NULL
11603 };
11604
11605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",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 = &temp2;
11610 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11611 }
11612 {
11613 arg3 = &temp3;
11614 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11615 }
11616 {
11617 PyThreadState* __tstate = wxPyBeginAllowThreads();
11618 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11619
11620 wxPyEndAllowThreads(__tstate);
11621 if (PyErr_Occurred()) SWIG_fail;
11622 }
11623 Py_INCREF(Py_None); resultobj = Py_None;
11624 return resultobj;
11625 fail:
11626 return NULL;
11627 }
11628
11629
11630 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11631 PyObject *resultobj;
11632 wxDC *arg1 = (wxDC *) 0 ;
11633 int arg2 ;
11634 int arg3 ;
11635 int arg4 ;
11636 int arg5 ;
11637 double arg6 ;
11638 PyObject * obj0 = 0 ;
11639 PyObject * obj1 = 0 ;
11640 PyObject * obj2 = 0 ;
11641 PyObject * obj3 = 0 ;
11642 PyObject * obj4 = 0 ;
11643 PyObject * obj5 = 0 ;
11644 char *kwnames[] = {
11645 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11646 };
11647
11648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11651 arg2 = (int) SWIG_AsInt(obj1);
11652 if (PyErr_Occurred()) SWIG_fail;
11653 arg3 = (int) SWIG_AsInt(obj2);
11654 if (PyErr_Occurred()) SWIG_fail;
11655 arg4 = (int) SWIG_AsInt(obj3);
11656 if (PyErr_Occurred()) SWIG_fail;
11657 arg5 = (int) SWIG_AsInt(obj4);
11658 if (PyErr_Occurred()) SWIG_fail;
11659 arg6 = (double) SWIG_AsDouble(obj5);
11660 if (PyErr_Occurred()) SWIG_fail;
11661 {
11662 PyThreadState* __tstate = wxPyBeginAllowThreads();
11663 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11664
11665 wxPyEndAllowThreads(__tstate);
11666 if (PyErr_Occurred()) SWIG_fail;
11667 }
11668 Py_INCREF(Py_None); resultobj = Py_None;
11669 return resultobj;
11670 fail:
11671 return NULL;
11672 }
11673
11674
11675 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11676 PyObject *resultobj;
11677 wxDC *arg1 = (wxDC *) 0 ;
11678 wxRect *arg2 = 0 ;
11679 double arg3 ;
11680 wxRect temp2 ;
11681 PyObject * obj0 = 0 ;
11682 PyObject * obj1 = 0 ;
11683 PyObject * obj2 = 0 ;
11684 char *kwnames[] = {
11685 (char *) "self",(char *) "r",(char *) "radius", NULL
11686 };
11687
11688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11691 {
11692 arg2 = &temp2;
11693 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11694 }
11695 arg3 = (double) SWIG_AsDouble(obj2);
11696 if (PyErr_Occurred()) SWIG_fail;
11697 {
11698 PyThreadState* __tstate = wxPyBeginAllowThreads();
11699 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11700
11701 wxPyEndAllowThreads(__tstate);
11702 if (PyErr_Occurred()) SWIG_fail;
11703 }
11704 Py_INCREF(Py_None); resultobj = Py_None;
11705 return resultobj;
11706 fail:
11707 return NULL;
11708 }
11709
11710
11711 static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11712 PyObject *resultobj;
11713 wxDC *arg1 = (wxDC *) 0 ;
11714 wxPoint *arg2 = 0 ;
11715 wxSize *arg3 = 0 ;
11716 double arg4 ;
11717 wxPoint temp2 ;
11718 wxSize temp3 ;
11719 PyObject * obj0 = 0 ;
11720 PyObject * obj1 = 0 ;
11721 PyObject * obj2 = 0 ;
11722 PyObject * obj3 = 0 ;
11723 char *kwnames[] = {
11724 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11725 };
11726
11727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11730 {
11731 arg2 = &temp2;
11732 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11733 }
11734 {
11735 arg3 = &temp3;
11736 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11737 }
11738 arg4 = (double) SWIG_AsDouble(obj3);
11739 if (PyErr_Occurred()) SWIG_fail;
11740 {
11741 PyThreadState* __tstate = wxPyBeginAllowThreads();
11742 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11743
11744 wxPyEndAllowThreads(__tstate);
11745 if (PyErr_Occurred()) SWIG_fail;
11746 }
11747 Py_INCREF(Py_None); resultobj = Py_None;
11748 return resultobj;
11749 fail:
11750 return NULL;
11751 }
11752
11753
11754 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11755 PyObject *resultobj;
11756 wxDC *arg1 = (wxDC *) 0 ;
11757 int arg2 ;
11758 int arg3 ;
11759 int arg4 ;
11760 PyObject * obj0 = 0 ;
11761 PyObject * obj1 = 0 ;
11762 PyObject * obj2 = 0 ;
11763 PyObject * obj3 = 0 ;
11764 char *kwnames[] = {
11765 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11766 };
11767
11768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11771 arg2 = (int) SWIG_AsInt(obj1);
11772 if (PyErr_Occurred()) SWIG_fail;
11773 arg3 = (int) SWIG_AsInt(obj2);
11774 if (PyErr_Occurred()) SWIG_fail;
11775 arg4 = (int) SWIG_AsInt(obj3);
11776 if (PyErr_Occurred()) SWIG_fail;
11777 {
11778 PyThreadState* __tstate = wxPyBeginAllowThreads();
11779 (arg1)->DrawCircle(arg2,arg3,arg4);
11780
11781 wxPyEndAllowThreads(__tstate);
11782 if (PyErr_Occurred()) SWIG_fail;
11783 }
11784 Py_INCREF(Py_None); resultobj = Py_None;
11785 return resultobj;
11786 fail:
11787 return NULL;
11788 }
11789
11790
11791 static PyObject *_wrap_DC_DrawCirclePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11792 PyObject *resultobj;
11793 wxDC *arg1 = (wxDC *) 0 ;
11794 wxPoint *arg2 = 0 ;
11795 int arg3 ;
11796 wxPoint temp2 ;
11797 PyObject * obj0 = 0 ;
11798 PyObject * obj1 = 0 ;
11799 PyObject * obj2 = 0 ;
11800 char *kwnames[] = {
11801 (char *) "self",(char *) "pt",(char *) "radius", NULL
11802 };
11803
11804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11807 {
11808 arg2 = &temp2;
11809 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11810 }
11811 arg3 = (int) SWIG_AsInt(obj2);
11812 if (PyErr_Occurred()) SWIG_fail;
11813 {
11814 PyThreadState* __tstate = wxPyBeginAllowThreads();
11815 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11816
11817 wxPyEndAllowThreads(__tstate);
11818 if (PyErr_Occurred()) SWIG_fail;
11819 }
11820 Py_INCREF(Py_None); resultobj = Py_None;
11821 return resultobj;
11822 fail:
11823 return NULL;
11824 }
11825
11826
11827 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11828 PyObject *resultobj;
11829 wxDC *arg1 = (wxDC *) 0 ;
11830 int arg2 ;
11831 int arg3 ;
11832 int arg4 ;
11833 int arg5 ;
11834 PyObject * obj0 = 0 ;
11835 PyObject * obj1 = 0 ;
11836 PyObject * obj2 = 0 ;
11837 PyObject * obj3 = 0 ;
11838 PyObject * obj4 = 0 ;
11839 char *kwnames[] = {
11840 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11841 };
11842
11843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11846 arg2 = (int) SWIG_AsInt(obj1);
11847 if (PyErr_Occurred()) SWIG_fail;
11848 arg3 = (int) SWIG_AsInt(obj2);
11849 if (PyErr_Occurred()) SWIG_fail;
11850 arg4 = (int) SWIG_AsInt(obj3);
11851 if (PyErr_Occurred()) SWIG_fail;
11852 arg5 = (int) SWIG_AsInt(obj4);
11853 if (PyErr_Occurred()) SWIG_fail;
11854 {
11855 PyThreadState* __tstate = wxPyBeginAllowThreads();
11856 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11857
11858 wxPyEndAllowThreads(__tstate);
11859 if (PyErr_Occurred()) SWIG_fail;
11860 }
11861 Py_INCREF(Py_None); resultobj = Py_None;
11862 return resultobj;
11863 fail:
11864 return NULL;
11865 }
11866
11867
11868 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11869 PyObject *resultobj;
11870 wxDC *arg1 = (wxDC *) 0 ;
11871 wxRect *arg2 = 0 ;
11872 wxRect temp2 ;
11873 PyObject * obj0 = 0 ;
11874 PyObject * obj1 = 0 ;
11875 char *kwnames[] = {
11876 (char *) "self",(char *) "rect", NULL
11877 };
11878
11879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11882 {
11883 arg2 = &temp2;
11884 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11885 }
11886 {
11887 PyThreadState* __tstate = wxPyBeginAllowThreads();
11888 (arg1)->DrawEllipse((wxRect const &)*arg2);
11889
11890 wxPyEndAllowThreads(__tstate);
11891 if (PyErr_Occurred()) SWIG_fail;
11892 }
11893 Py_INCREF(Py_None); resultobj = Py_None;
11894 return resultobj;
11895 fail:
11896 return NULL;
11897 }
11898
11899
11900 static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11901 PyObject *resultobj;
11902 wxDC *arg1 = (wxDC *) 0 ;
11903 wxPoint *arg2 = 0 ;
11904 wxSize *arg3 = 0 ;
11905 wxPoint temp2 ;
11906 wxSize temp3 ;
11907 PyObject * obj0 = 0 ;
11908 PyObject * obj1 = 0 ;
11909 PyObject * obj2 = 0 ;
11910 char *kwnames[] = {
11911 (char *) "self",(char *) "pt",(char *) "sz", NULL
11912 };
11913
11914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11917 {
11918 arg2 = &temp2;
11919 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11920 }
11921 {
11922 arg3 = &temp3;
11923 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11924 }
11925 {
11926 PyThreadState* __tstate = wxPyBeginAllowThreads();
11927 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11928
11929 wxPyEndAllowThreads(__tstate);
11930 if (PyErr_Occurred()) SWIG_fail;
11931 }
11932 Py_INCREF(Py_None); resultobj = Py_None;
11933 return resultobj;
11934 fail:
11935 return NULL;
11936 }
11937
11938
11939 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11940 PyObject *resultobj;
11941 wxDC *arg1 = (wxDC *) 0 ;
11942 wxIcon *arg2 = 0 ;
11943 int arg3 ;
11944 int arg4 ;
11945 PyObject * obj0 = 0 ;
11946 PyObject * obj1 = 0 ;
11947 PyObject * obj2 = 0 ;
11948 PyObject * obj3 = 0 ;
11949 char *kwnames[] = {
11950 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11951 };
11952
11953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11956 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11957 SWIG_POINTER_EXCEPTION | 0)) == -1)
11958 SWIG_fail;
11959 if (arg2 == NULL) {
11960 PyErr_SetString(PyExc_TypeError,"null reference");
11961 SWIG_fail;
11962 }
11963 arg3 = (int) SWIG_AsInt(obj2);
11964 if (PyErr_Occurred()) SWIG_fail;
11965 arg4 = (int) SWIG_AsInt(obj3);
11966 if (PyErr_Occurred()) SWIG_fail;
11967 {
11968 PyThreadState* __tstate = wxPyBeginAllowThreads();
11969 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11970
11971 wxPyEndAllowThreads(__tstate);
11972 if (PyErr_Occurred()) SWIG_fail;
11973 }
11974 Py_INCREF(Py_None); resultobj = Py_None;
11975 return resultobj;
11976 fail:
11977 return NULL;
11978 }
11979
11980
11981 static PyObject *_wrap_DC_DrawIconPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11982 PyObject *resultobj;
11983 wxDC *arg1 = (wxDC *) 0 ;
11984 wxIcon *arg2 = 0 ;
11985 wxPoint *arg3 = 0 ;
11986 wxPoint temp3 ;
11987 PyObject * obj0 = 0 ;
11988 PyObject * obj1 = 0 ;
11989 PyObject * obj2 = 0 ;
11990 char *kwnames[] = {
11991 (char *) "self",(char *) "icon",(char *) "pt", NULL
11992 };
11993
11994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11997 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11998 SWIG_POINTER_EXCEPTION | 0)) == -1)
11999 SWIG_fail;
12000 if (arg2 == NULL) {
12001 PyErr_SetString(PyExc_TypeError,"null reference");
12002 SWIG_fail;
12003 }
12004 {
12005 arg3 = &temp3;
12006 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12007 }
12008 {
12009 PyThreadState* __tstate = wxPyBeginAllowThreads();
12010 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
12011
12012 wxPyEndAllowThreads(__tstate);
12013 if (PyErr_Occurred()) SWIG_fail;
12014 }
12015 Py_INCREF(Py_None); resultobj = Py_None;
12016 return resultobj;
12017 fail:
12018 return NULL;
12019 }
12020
12021
12022 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
12023 PyObject *resultobj;
12024 wxDC *arg1 = (wxDC *) 0 ;
12025 wxBitmap *arg2 = 0 ;
12026 int arg3 ;
12027 int arg4 ;
12028 bool arg5 = (bool) False ;
12029 PyObject * obj0 = 0 ;
12030 PyObject * obj1 = 0 ;
12031 PyObject * obj2 = 0 ;
12032 PyObject * obj3 = 0 ;
12033 PyObject * obj4 = 0 ;
12034 char *kwnames[] = {
12035 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
12036 };
12037
12038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12041 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
12042 SWIG_POINTER_EXCEPTION | 0)) == -1)
12043 SWIG_fail;
12044 if (arg2 == NULL) {
12045 PyErr_SetString(PyExc_TypeError,"null reference");
12046 SWIG_fail;
12047 }
12048 arg3 = (int) SWIG_AsInt(obj2);
12049 if (PyErr_Occurred()) SWIG_fail;
12050 arg4 = (int) SWIG_AsInt(obj3);
12051 if (PyErr_Occurred()) SWIG_fail;
12052 if (obj4) {
12053 arg5 = (bool) SWIG_AsBool(obj4);
12054 if (PyErr_Occurred()) SWIG_fail;
12055 }
12056 {
12057 PyThreadState* __tstate = wxPyBeginAllowThreads();
12058 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
12059
12060 wxPyEndAllowThreads(__tstate);
12061 if (PyErr_Occurred()) SWIG_fail;
12062 }
12063 Py_INCREF(Py_None); resultobj = Py_None;
12064 return resultobj;
12065 fail:
12066 return NULL;
12067 }
12068
12069
12070 static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
12071 PyObject *resultobj;
12072 wxDC *arg1 = (wxDC *) 0 ;
12073 wxBitmap *arg2 = 0 ;
12074 wxPoint *arg3 = 0 ;
12075 bool arg4 = (bool) False ;
12076 wxPoint temp3 ;
12077 PyObject * obj0 = 0 ;
12078 PyObject * obj1 = 0 ;
12079 PyObject * obj2 = 0 ;
12080 PyObject * obj3 = 0 ;
12081 char *kwnames[] = {
12082 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
12083 };
12084
12085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12088 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
12089 SWIG_POINTER_EXCEPTION | 0)) == -1)
12090 SWIG_fail;
12091 if (arg2 == NULL) {
12092 PyErr_SetString(PyExc_TypeError,"null reference");
12093 SWIG_fail;
12094 }
12095 {
12096 arg3 = &temp3;
12097 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12098 }
12099 if (obj3) {
12100 arg4 = (bool) SWIG_AsBool(obj3);
12101 if (PyErr_Occurred()) SWIG_fail;
12102 }
12103 {
12104 PyThreadState* __tstate = wxPyBeginAllowThreads();
12105 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
12106
12107 wxPyEndAllowThreads(__tstate);
12108 if (PyErr_Occurred()) SWIG_fail;
12109 }
12110 Py_INCREF(Py_None); resultobj = Py_None;
12111 return resultobj;
12112 fail:
12113 return NULL;
12114 }
12115
12116
12117 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
12118 PyObject *resultobj;
12119 wxDC *arg1 = (wxDC *) 0 ;
12120 wxString *arg2 = 0 ;
12121 int arg3 ;
12122 int arg4 ;
12123 bool temp2 = False ;
12124 PyObject * obj0 = 0 ;
12125 PyObject * obj1 = 0 ;
12126 PyObject * obj2 = 0 ;
12127 PyObject * obj3 = 0 ;
12128 char *kwnames[] = {
12129 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
12130 };
12131
12132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12135 {
12136 arg2 = wxString_in_helper(obj1);
12137 if (arg2 == NULL) SWIG_fail;
12138 temp2 = True;
12139 }
12140 arg3 = (int) SWIG_AsInt(obj2);
12141 if (PyErr_Occurred()) SWIG_fail;
12142 arg4 = (int) SWIG_AsInt(obj3);
12143 if (PyErr_Occurred()) SWIG_fail;
12144 {
12145 PyThreadState* __tstate = wxPyBeginAllowThreads();
12146 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
12147
12148 wxPyEndAllowThreads(__tstate);
12149 if (PyErr_Occurred()) SWIG_fail;
12150 }
12151 Py_INCREF(Py_None); resultobj = Py_None;
12152 {
12153 if (temp2)
12154 delete arg2;
12155 }
12156 return resultobj;
12157 fail:
12158 {
12159 if (temp2)
12160 delete arg2;
12161 }
12162 return NULL;
12163 }
12164
12165
12166 static PyObject *_wrap_DC_DrawTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
12167 PyObject *resultobj;
12168 wxDC *arg1 = (wxDC *) 0 ;
12169 wxString *arg2 = 0 ;
12170 wxPoint *arg3 = 0 ;
12171 bool temp2 = False ;
12172 wxPoint temp3 ;
12173 PyObject * obj0 = 0 ;
12174 PyObject * obj1 = 0 ;
12175 PyObject * obj2 = 0 ;
12176 char *kwnames[] = {
12177 (char *) "self",(char *) "text",(char *) "pt", NULL
12178 };
12179
12180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
12181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12183 {
12184 arg2 = wxString_in_helper(obj1);
12185 if (arg2 == NULL) SWIG_fail;
12186 temp2 = True;
12187 }
12188 {
12189 arg3 = &temp3;
12190 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12191 }
12192 {
12193 PyThreadState* __tstate = wxPyBeginAllowThreads();
12194 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
12195
12196 wxPyEndAllowThreads(__tstate);
12197 if (PyErr_Occurred()) SWIG_fail;
12198 }
12199 Py_INCREF(Py_None); resultobj = Py_None;
12200 {
12201 if (temp2)
12202 delete arg2;
12203 }
12204 return resultobj;
12205 fail:
12206 {
12207 if (temp2)
12208 delete arg2;
12209 }
12210 return NULL;
12211 }
12212
12213
12214 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
12215 PyObject *resultobj;
12216 wxDC *arg1 = (wxDC *) 0 ;
12217 wxString *arg2 = 0 ;
12218 int arg3 ;
12219 int arg4 ;
12220 double arg5 ;
12221 bool temp2 = False ;
12222 PyObject * obj0 = 0 ;
12223 PyObject * obj1 = 0 ;
12224 PyObject * obj2 = 0 ;
12225 PyObject * obj3 = 0 ;
12226 PyObject * obj4 = 0 ;
12227 char *kwnames[] = {
12228 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
12229 };
12230
12231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12234 {
12235 arg2 = wxString_in_helper(obj1);
12236 if (arg2 == NULL) SWIG_fail;
12237 temp2 = True;
12238 }
12239 arg3 = (int) SWIG_AsInt(obj2);
12240 if (PyErr_Occurred()) SWIG_fail;
12241 arg4 = (int) SWIG_AsInt(obj3);
12242 if (PyErr_Occurred()) SWIG_fail;
12243 arg5 = (double) SWIG_AsDouble(obj4);
12244 if (PyErr_Occurred()) SWIG_fail;
12245 {
12246 PyThreadState* __tstate = wxPyBeginAllowThreads();
12247 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
12248
12249 wxPyEndAllowThreads(__tstate);
12250 if (PyErr_Occurred()) SWIG_fail;
12251 }
12252 Py_INCREF(Py_None); resultobj = Py_None;
12253 {
12254 if (temp2)
12255 delete arg2;
12256 }
12257 return resultobj;
12258 fail:
12259 {
12260 if (temp2)
12261 delete arg2;
12262 }
12263 return NULL;
12264 }
12265
12266
12267 static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
12268 PyObject *resultobj;
12269 wxDC *arg1 = (wxDC *) 0 ;
12270 wxString *arg2 = 0 ;
12271 wxPoint *arg3 = 0 ;
12272 double arg4 ;
12273 bool temp2 = False ;
12274 wxPoint temp3 ;
12275 PyObject * obj0 = 0 ;
12276 PyObject * obj1 = 0 ;
12277 PyObject * obj2 = 0 ;
12278 PyObject * obj3 = 0 ;
12279 char *kwnames[] = {
12280 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
12281 };
12282
12283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12286 {
12287 arg2 = wxString_in_helper(obj1);
12288 if (arg2 == NULL) SWIG_fail;
12289 temp2 = True;
12290 }
12291 {
12292 arg3 = &temp3;
12293 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12294 }
12295 arg4 = (double) SWIG_AsDouble(obj3);
12296 if (PyErr_Occurred()) SWIG_fail;
12297 {
12298 PyThreadState* __tstate = wxPyBeginAllowThreads();
12299 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
12300
12301 wxPyEndAllowThreads(__tstate);
12302 if (PyErr_Occurred()) SWIG_fail;
12303 }
12304 Py_INCREF(Py_None); resultobj = Py_None;
12305 {
12306 if (temp2)
12307 delete arg2;
12308 }
12309 return resultobj;
12310 fail:
12311 {
12312 if (temp2)
12313 delete arg2;
12314 }
12315 return NULL;
12316 }
12317
12318
12319 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
12320 PyObject *resultobj;
12321 wxDC *arg1 = (wxDC *) 0 ;
12322 int arg2 ;
12323 int arg3 ;
12324 int arg4 ;
12325 int arg5 ;
12326 wxDC *arg6 = (wxDC *) 0 ;
12327 int arg7 ;
12328 int arg8 ;
12329 int arg9 = (int) wxCOPY ;
12330 bool arg10 = (bool) False ;
12331 int arg11 = (int) -1 ;
12332 int arg12 = (int) -1 ;
12333 bool result;
12334 PyObject * obj0 = 0 ;
12335 PyObject * obj1 = 0 ;
12336 PyObject * obj2 = 0 ;
12337 PyObject * obj3 = 0 ;
12338 PyObject * obj4 = 0 ;
12339 PyObject * obj5 = 0 ;
12340 PyObject * obj6 = 0 ;
12341 PyObject * obj7 = 0 ;
12342 PyObject * obj8 = 0 ;
12343 PyObject * obj9 = 0 ;
12344 PyObject * obj10 = 0 ;
12345 PyObject * obj11 = 0 ;
12346 char *kwnames[] = {
12347 (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
12348 };
12349
12350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO|OOOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail;
12351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12353 arg2 = (int) SWIG_AsInt(obj1);
12354 if (PyErr_Occurred()) SWIG_fail;
12355 arg3 = (int) SWIG_AsInt(obj2);
12356 if (PyErr_Occurred()) SWIG_fail;
12357 arg4 = (int) SWIG_AsInt(obj3);
12358 if (PyErr_Occurred()) SWIG_fail;
12359 arg5 = (int) SWIG_AsInt(obj4);
12360 if (PyErr_Occurred()) SWIG_fail;
12361 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
12362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12363 arg7 = (int) SWIG_AsInt(obj6);
12364 if (PyErr_Occurred()) SWIG_fail;
12365 arg8 = (int) SWIG_AsInt(obj7);
12366 if (PyErr_Occurred()) SWIG_fail;
12367 if (obj8) {
12368 arg9 = (int) SWIG_AsInt(obj8);
12369 if (PyErr_Occurred()) SWIG_fail;
12370 }
12371 if (obj9) {
12372 arg10 = (bool) SWIG_AsBool(obj9);
12373 if (PyErr_Occurred()) SWIG_fail;
12374 }
12375 if (obj10) {
12376 arg11 = (int) SWIG_AsInt(obj10);
12377 if (PyErr_Occurred()) SWIG_fail;
12378 }
12379 if (obj11) {
12380 arg12 = (int) SWIG_AsInt(obj11);
12381 if (PyErr_Occurred()) SWIG_fail;
12382 }
12383 {
12384 PyThreadState* __tstate = wxPyBeginAllowThreads();
12385 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12386
12387 wxPyEndAllowThreads(__tstate);
12388 if (PyErr_Occurred()) SWIG_fail;
12389 }
12390 {
12391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12392 }
12393 return resultobj;
12394 fail:
12395 return NULL;
12396 }
12397
12398
12399 static PyObject *_wrap_DC_BlitPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12400 PyObject *resultobj;
12401 wxDC *arg1 = (wxDC *) 0 ;
12402 wxPoint *arg2 = 0 ;
12403 wxSize *arg3 = 0 ;
12404 wxDC *arg4 = (wxDC *) 0 ;
12405 wxPoint *arg5 = 0 ;
12406 int arg6 = (int) wxCOPY ;
12407 bool arg7 = (bool) False ;
12408 wxPoint const &arg8_defvalue = wxDefaultPosition ;
12409 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
12410 bool result;
12411 wxPoint temp2 ;
12412 wxSize temp3 ;
12413 wxPoint temp5 ;
12414 wxPoint temp8 ;
12415 PyObject * obj0 = 0 ;
12416 PyObject * obj1 = 0 ;
12417 PyObject * obj2 = 0 ;
12418 PyObject * obj3 = 0 ;
12419 PyObject * obj4 = 0 ;
12420 PyObject * obj5 = 0 ;
12421 PyObject * obj6 = 0 ;
12422 PyObject * obj7 = 0 ;
12423 char *kwnames[] = {
12424 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12425 };
12426
12427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12430 {
12431 arg2 = &temp2;
12432 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12433 }
12434 {
12435 arg3 = &temp3;
12436 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12437 }
12438 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
12439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12440 {
12441 arg5 = &temp5;
12442 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12443 }
12444 if (obj5) {
12445 arg6 = (int) SWIG_AsInt(obj5);
12446 if (PyErr_Occurred()) SWIG_fail;
12447 }
12448 if (obj6) {
12449 arg7 = (bool) SWIG_AsBool(obj6);
12450 if (PyErr_Occurred()) SWIG_fail;
12451 }
12452 if (obj7) {
12453 {
12454 arg8 = &temp8;
12455 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
12456 }
12457 }
12458 {
12459 PyThreadState* __tstate = wxPyBeginAllowThreads();
12460 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12461
12462 wxPyEndAllowThreads(__tstate);
12463 if (PyErr_Occurred()) SWIG_fail;
12464 }
12465 {
12466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12467 }
12468 return resultobj;
12469 fail:
12470 return NULL;
12471 }
12472
12473
12474 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12475 PyObject *resultobj;
12476 wxDC *arg1 = (wxDC *) 0 ;
12477 int arg2 ;
12478 int arg3 ;
12479 int arg4 ;
12480 int arg5 ;
12481 PyObject * obj0 = 0 ;
12482 PyObject * obj1 = 0 ;
12483 PyObject * obj2 = 0 ;
12484 PyObject * obj3 = 0 ;
12485 PyObject * obj4 = 0 ;
12486 char *kwnames[] = {
12487 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12488 };
12489
12490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12493 arg2 = (int) SWIG_AsInt(obj1);
12494 if (PyErr_Occurred()) SWIG_fail;
12495 arg3 = (int) SWIG_AsInt(obj2);
12496 if (PyErr_Occurred()) SWIG_fail;
12497 arg4 = (int) SWIG_AsInt(obj3);
12498 if (PyErr_Occurred()) SWIG_fail;
12499 arg5 = (int) SWIG_AsInt(obj4);
12500 if (PyErr_Occurred()) SWIG_fail;
12501 {
12502 PyThreadState* __tstate = wxPyBeginAllowThreads();
12503 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12504
12505 wxPyEndAllowThreads(__tstate);
12506 if (PyErr_Occurred()) SWIG_fail;
12507 }
12508 Py_INCREF(Py_None); resultobj = Py_None;
12509 return resultobj;
12510 fail:
12511 return NULL;
12512 }
12513
12514
12515 static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12516 PyObject *resultobj;
12517 wxDC *arg1 = (wxDC *) 0 ;
12518 wxPoint *arg2 = 0 ;
12519 wxSize *arg3 = 0 ;
12520 wxPoint temp2 ;
12521 wxSize temp3 ;
12522 PyObject * obj0 = 0 ;
12523 PyObject * obj1 = 0 ;
12524 PyObject * obj2 = 0 ;
12525 char *kwnames[] = {
12526 (char *) "self",(char *) "pt",(char *) "sz", NULL
12527 };
12528
12529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12532 {
12533 arg2 = &temp2;
12534 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12535 }
12536 {
12537 arg3 = &temp3;
12538 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12539 }
12540 {
12541 PyThreadState* __tstate = wxPyBeginAllowThreads();
12542 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12543
12544 wxPyEndAllowThreads(__tstate);
12545 if (PyErr_Occurred()) SWIG_fail;
12546 }
12547 Py_INCREF(Py_None); resultobj = Py_None;
12548 return resultobj;
12549 fail:
12550 return NULL;
12551 }
12552
12553
12554 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12555 PyObject *resultobj;
12556 wxDC *arg1 = (wxDC *) 0 ;
12557 wxRegion *arg2 = 0 ;
12558 PyObject * obj0 = 0 ;
12559 PyObject * obj1 = 0 ;
12560 char *kwnames[] = {
12561 (char *) "self",(char *) "region", NULL
12562 };
12563
12564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12567 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12568 SWIG_POINTER_EXCEPTION | 0)) == -1)
12569 SWIG_fail;
12570 if (arg2 == NULL) {
12571 PyErr_SetString(PyExc_TypeError,"null reference");
12572 SWIG_fail;
12573 }
12574 {
12575 PyThreadState* __tstate = wxPyBeginAllowThreads();
12576 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12577
12578 wxPyEndAllowThreads(__tstate);
12579 if (PyErr_Occurred()) SWIG_fail;
12580 }
12581 Py_INCREF(Py_None); resultobj = Py_None;
12582 return resultobj;
12583 fail:
12584 return NULL;
12585 }
12586
12587
12588 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12589 PyObject *resultobj;
12590 wxDC *arg1 = (wxDC *) 0 ;
12591 wxRect *arg2 = 0 ;
12592 wxRect temp2 ;
12593 PyObject * obj0 = 0 ;
12594 PyObject * obj1 = 0 ;
12595 char *kwnames[] = {
12596 (char *) "self",(char *) "rect", NULL
12597 };
12598
12599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12602 {
12603 arg2 = &temp2;
12604 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12605 }
12606 {
12607 PyThreadState* __tstate = wxPyBeginAllowThreads();
12608 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12609
12610 wxPyEndAllowThreads(__tstate);
12611 if (PyErr_Occurred()) SWIG_fail;
12612 }
12613 Py_INCREF(Py_None); resultobj = Py_None;
12614 return resultobj;
12615 fail:
12616 return NULL;
12617 }
12618
12619
12620 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12621 PyObject *resultobj;
12622 wxDC *arg1 = (wxDC *) 0 ;
12623 int arg2 ;
12624 wxPoint *arg3 = (wxPoint *) 0 ;
12625 int arg4 = (int) 0 ;
12626 int arg5 = (int) 0 ;
12627 PyObject * obj0 = 0 ;
12628 PyObject * obj1 = 0 ;
12629 PyObject * obj2 = 0 ;
12630 PyObject * obj3 = 0 ;
12631 char *kwnames[] = {
12632 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12633 };
12634
12635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12638 {
12639 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12640 if (arg3 == NULL) SWIG_fail;
12641 }
12642 if (obj2) {
12643 arg4 = (int) SWIG_AsInt(obj2);
12644 if (PyErr_Occurred()) SWIG_fail;
12645 }
12646 if (obj3) {
12647 arg5 = (int) SWIG_AsInt(obj3);
12648 if (PyErr_Occurred()) SWIG_fail;
12649 }
12650 {
12651 PyThreadState* __tstate = wxPyBeginAllowThreads();
12652 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12653
12654 wxPyEndAllowThreads(__tstate);
12655 if (PyErr_Occurred()) SWIG_fail;
12656 }
12657 Py_INCREF(Py_None); resultobj = Py_None;
12658 {
12659 if (arg3) delete [] arg3;
12660 }
12661 return resultobj;
12662 fail:
12663 {
12664 if (arg3) delete [] arg3;
12665 }
12666 return NULL;
12667 }
12668
12669
12670 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12671 PyObject *resultobj;
12672 wxDC *arg1 = (wxDC *) 0 ;
12673 int arg2 ;
12674 wxPoint *arg3 = (wxPoint *) 0 ;
12675 int arg4 = (int) 0 ;
12676 int arg5 = (int) 0 ;
12677 int arg6 = (int) wxODDEVEN_RULE ;
12678 PyObject * obj0 = 0 ;
12679 PyObject * obj1 = 0 ;
12680 PyObject * obj2 = 0 ;
12681 PyObject * obj3 = 0 ;
12682 PyObject * obj4 = 0 ;
12683 char *kwnames[] = {
12684 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12685 };
12686
12687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12690 {
12691 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12692 if (arg3 == NULL) SWIG_fail;
12693 }
12694 if (obj2) {
12695 arg4 = (int) SWIG_AsInt(obj2);
12696 if (PyErr_Occurred()) SWIG_fail;
12697 }
12698 if (obj3) {
12699 arg5 = (int) SWIG_AsInt(obj3);
12700 if (PyErr_Occurred()) SWIG_fail;
12701 }
12702 if (obj4) {
12703 arg6 = (int) SWIG_AsInt(obj4);
12704 if (PyErr_Occurred()) SWIG_fail;
12705 }
12706 {
12707 PyThreadState* __tstate = wxPyBeginAllowThreads();
12708 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12709
12710 wxPyEndAllowThreads(__tstate);
12711 if (PyErr_Occurred()) SWIG_fail;
12712 }
12713 Py_INCREF(Py_None); resultobj = Py_None;
12714 {
12715 if (arg3) delete [] arg3;
12716 }
12717 return resultobj;
12718 fail:
12719 {
12720 if (arg3) delete [] arg3;
12721 }
12722 return NULL;
12723 }
12724
12725
12726 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12727 PyObject *resultobj;
12728 wxDC *arg1 = (wxDC *) 0 ;
12729 wxString *arg2 = 0 ;
12730 wxRect *arg3 = 0 ;
12731 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12732 int arg5 = (int) -1 ;
12733 bool temp2 = False ;
12734 wxRect temp3 ;
12735 PyObject * obj0 = 0 ;
12736 PyObject * obj1 = 0 ;
12737 PyObject * obj2 = 0 ;
12738 PyObject * obj3 = 0 ;
12739 PyObject * obj4 = 0 ;
12740 char *kwnames[] = {
12741 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12742 };
12743
12744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12747 {
12748 arg2 = wxString_in_helper(obj1);
12749 if (arg2 == NULL) SWIG_fail;
12750 temp2 = True;
12751 }
12752 {
12753 arg3 = &temp3;
12754 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12755 }
12756 if (obj3) {
12757 arg4 = (int) SWIG_AsInt(obj3);
12758 if (PyErr_Occurred()) SWIG_fail;
12759 }
12760 if (obj4) {
12761 arg5 = (int) SWIG_AsInt(obj4);
12762 if (PyErr_Occurred()) SWIG_fail;
12763 }
12764 {
12765 PyThreadState* __tstate = wxPyBeginAllowThreads();
12766 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12767
12768 wxPyEndAllowThreads(__tstate);
12769 if (PyErr_Occurred()) SWIG_fail;
12770 }
12771 Py_INCREF(Py_None); resultobj = Py_None;
12772 {
12773 if (temp2)
12774 delete arg2;
12775 }
12776 return resultobj;
12777 fail:
12778 {
12779 if (temp2)
12780 delete arg2;
12781 }
12782 return NULL;
12783 }
12784
12785
12786 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12787 PyObject *resultobj;
12788 wxDC *arg1 = (wxDC *) 0 ;
12789 wxString *arg2 = 0 ;
12790 wxBitmap *arg3 = 0 ;
12791 wxRect *arg4 = 0 ;
12792 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12793 int arg6 = (int) -1 ;
12794 wxRect result;
12795 bool temp2 = False ;
12796 wxRect temp4 ;
12797 PyObject * obj0 = 0 ;
12798 PyObject * obj1 = 0 ;
12799 PyObject * obj2 = 0 ;
12800 PyObject * obj3 = 0 ;
12801 PyObject * obj4 = 0 ;
12802 PyObject * obj5 = 0 ;
12803 char *kwnames[] = {
12804 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12805 };
12806
12807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12810 {
12811 arg2 = wxString_in_helper(obj1);
12812 if (arg2 == NULL) SWIG_fail;
12813 temp2 = True;
12814 }
12815 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12816 SWIG_POINTER_EXCEPTION | 0)) == -1)
12817 SWIG_fail;
12818 if (arg3 == NULL) {
12819 PyErr_SetString(PyExc_TypeError,"null reference");
12820 SWIG_fail;
12821 }
12822 {
12823 arg4 = &temp4;
12824 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12825 }
12826 if (obj4) {
12827 arg5 = (int) SWIG_AsInt(obj4);
12828 if (PyErr_Occurred()) SWIG_fail;
12829 }
12830 if (obj5) {
12831 arg6 = (int) SWIG_AsInt(obj5);
12832 if (PyErr_Occurred()) SWIG_fail;
12833 }
12834 {
12835 PyThreadState* __tstate = wxPyBeginAllowThreads();
12836 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12837
12838 wxPyEndAllowThreads(__tstate);
12839 if (PyErr_Occurred()) SWIG_fail;
12840 }
12841 {
12842 wxRect * resultptr;
12843 resultptr = new wxRect((wxRect &) result);
12844 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12845 }
12846 {
12847 if (temp2)
12848 delete arg2;
12849 }
12850 return resultobj;
12851 fail:
12852 {
12853 if (temp2)
12854 delete arg2;
12855 }
12856 return NULL;
12857 }
12858
12859
12860 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12861 PyObject *resultobj;
12862 wxDC *arg1 = (wxDC *) 0 ;
12863 int arg2 ;
12864 wxPoint *arg3 = (wxPoint *) 0 ;
12865 PyObject * obj0 = 0 ;
12866 PyObject * obj1 = 0 ;
12867 char *kwnames[] = {
12868 (char *) "self",(char *) "points", NULL
12869 };
12870
12871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12874 {
12875 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12876 if (arg3 == NULL) SWIG_fail;
12877 }
12878 {
12879 PyThreadState* __tstate = wxPyBeginAllowThreads();
12880 (arg1)->DrawSpline(arg2,arg3);
12881
12882 wxPyEndAllowThreads(__tstate);
12883 if (PyErr_Occurred()) SWIG_fail;
12884 }
12885 Py_INCREF(Py_None); resultobj = Py_None;
12886 {
12887 if (arg3) delete [] arg3;
12888 }
12889 return resultobj;
12890 fail:
12891 {
12892 if (arg3) delete [] arg3;
12893 }
12894 return NULL;
12895 }
12896
12897
12898 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12899 PyObject *resultobj;
12900 wxDC *arg1 = (wxDC *) 0 ;
12901 PyObject * obj0 = 0 ;
12902 char *kwnames[] = {
12903 (char *) "self", NULL
12904 };
12905
12906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12909 {
12910 PyThreadState* __tstate = wxPyBeginAllowThreads();
12911 (arg1)->Clear();
12912
12913 wxPyEndAllowThreads(__tstate);
12914 if (PyErr_Occurred()) SWIG_fail;
12915 }
12916 Py_INCREF(Py_None); resultobj = Py_None;
12917 return resultobj;
12918 fail:
12919 return NULL;
12920 }
12921
12922
12923 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12924 PyObject *resultobj;
12925 wxDC *arg1 = (wxDC *) 0 ;
12926 wxString *arg2 = 0 ;
12927 bool result;
12928 bool temp2 = False ;
12929 PyObject * obj0 = 0 ;
12930 PyObject * obj1 = 0 ;
12931 char *kwnames[] = {
12932 (char *) "self",(char *) "message", NULL
12933 };
12934
12935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12938 {
12939 arg2 = wxString_in_helper(obj1);
12940 if (arg2 == NULL) SWIG_fail;
12941 temp2 = True;
12942 }
12943 {
12944 PyThreadState* __tstate = wxPyBeginAllowThreads();
12945 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12946
12947 wxPyEndAllowThreads(__tstate);
12948 if (PyErr_Occurred()) SWIG_fail;
12949 }
12950 {
12951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12952 }
12953 {
12954 if (temp2)
12955 delete arg2;
12956 }
12957 return resultobj;
12958 fail:
12959 {
12960 if (temp2)
12961 delete arg2;
12962 }
12963 return NULL;
12964 }
12965
12966
12967 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12968 PyObject *resultobj;
12969 wxDC *arg1 = (wxDC *) 0 ;
12970 PyObject * obj0 = 0 ;
12971 char *kwnames[] = {
12972 (char *) "self", NULL
12973 };
12974
12975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12978 {
12979 PyThreadState* __tstate = wxPyBeginAllowThreads();
12980 (arg1)->EndDoc();
12981
12982 wxPyEndAllowThreads(__tstate);
12983 if (PyErr_Occurred()) SWIG_fail;
12984 }
12985 Py_INCREF(Py_None); resultobj = Py_None;
12986 return resultobj;
12987 fail:
12988 return NULL;
12989 }
12990
12991
12992 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12993 PyObject *resultobj;
12994 wxDC *arg1 = (wxDC *) 0 ;
12995 PyObject * obj0 = 0 ;
12996 char *kwnames[] = {
12997 (char *) "self", NULL
12998 };
12999
13000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
13001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13003 {
13004 PyThreadState* __tstate = wxPyBeginAllowThreads();
13005 (arg1)->StartPage();
13006
13007 wxPyEndAllowThreads(__tstate);
13008 if (PyErr_Occurred()) SWIG_fail;
13009 }
13010 Py_INCREF(Py_None); resultobj = Py_None;
13011 return resultobj;
13012 fail:
13013 return NULL;
13014 }
13015
13016
13017 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13018 PyObject *resultobj;
13019 wxDC *arg1 = (wxDC *) 0 ;
13020 PyObject * obj0 = 0 ;
13021 char *kwnames[] = {
13022 (char *) "self", NULL
13023 };
13024
13025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
13026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13028 {
13029 PyThreadState* __tstate = wxPyBeginAllowThreads();
13030 (arg1)->EndPage();
13031
13032 wxPyEndAllowThreads(__tstate);
13033 if (PyErr_Occurred()) SWIG_fail;
13034 }
13035 Py_INCREF(Py_None); resultobj = Py_None;
13036 return resultobj;
13037 fail:
13038 return NULL;
13039 }
13040
13041
13042 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13043 PyObject *resultobj;
13044 wxDC *arg1 = (wxDC *) 0 ;
13045 wxFont *arg2 = 0 ;
13046 PyObject * obj0 = 0 ;
13047 PyObject * obj1 = 0 ;
13048 char *kwnames[] = {
13049 (char *) "self",(char *) "font", NULL
13050 };
13051
13052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
13053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13055 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
13056 SWIG_POINTER_EXCEPTION | 0)) == -1)
13057 SWIG_fail;
13058 if (arg2 == NULL) {
13059 PyErr_SetString(PyExc_TypeError,"null reference");
13060 SWIG_fail;
13061 }
13062 {
13063 PyThreadState* __tstate = wxPyBeginAllowThreads();
13064 (arg1)->SetFont((wxFont const &)*arg2);
13065
13066 wxPyEndAllowThreads(__tstate);
13067 if (PyErr_Occurred()) SWIG_fail;
13068 }
13069 Py_INCREF(Py_None); resultobj = Py_None;
13070 return resultobj;
13071 fail:
13072 return NULL;
13073 }
13074
13075
13076 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13077 PyObject *resultobj;
13078 wxDC *arg1 = (wxDC *) 0 ;
13079 wxPen *arg2 = 0 ;
13080 PyObject * obj0 = 0 ;
13081 PyObject * obj1 = 0 ;
13082 char *kwnames[] = {
13083 (char *) "self",(char *) "pen", NULL
13084 };
13085
13086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
13087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13089 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
13090 SWIG_POINTER_EXCEPTION | 0)) == -1)
13091 SWIG_fail;
13092 if (arg2 == NULL) {
13093 PyErr_SetString(PyExc_TypeError,"null reference");
13094 SWIG_fail;
13095 }
13096 {
13097 PyThreadState* __tstate = wxPyBeginAllowThreads();
13098 (arg1)->SetPen((wxPen const &)*arg2);
13099
13100 wxPyEndAllowThreads(__tstate);
13101 if (PyErr_Occurred()) SWIG_fail;
13102 }
13103 Py_INCREF(Py_None); resultobj = Py_None;
13104 return resultobj;
13105 fail:
13106 return NULL;
13107 }
13108
13109
13110 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13111 PyObject *resultobj;
13112 wxDC *arg1 = (wxDC *) 0 ;
13113 wxBrush *arg2 = 0 ;
13114 PyObject * obj0 = 0 ;
13115 PyObject * obj1 = 0 ;
13116 char *kwnames[] = {
13117 (char *) "self",(char *) "brush", NULL
13118 };
13119
13120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
13121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13123 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13124 SWIG_POINTER_EXCEPTION | 0)) == -1)
13125 SWIG_fail;
13126 if (arg2 == NULL) {
13127 PyErr_SetString(PyExc_TypeError,"null reference");
13128 SWIG_fail;
13129 }
13130 {
13131 PyThreadState* __tstate = wxPyBeginAllowThreads();
13132 (arg1)->SetBrush((wxBrush const &)*arg2);
13133
13134 wxPyEndAllowThreads(__tstate);
13135 if (PyErr_Occurred()) SWIG_fail;
13136 }
13137 Py_INCREF(Py_None); resultobj = Py_None;
13138 return resultobj;
13139 fail:
13140 return NULL;
13141 }
13142
13143
13144 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13145 PyObject *resultobj;
13146 wxDC *arg1 = (wxDC *) 0 ;
13147 wxBrush *arg2 = 0 ;
13148 PyObject * obj0 = 0 ;
13149 PyObject * obj1 = 0 ;
13150 char *kwnames[] = {
13151 (char *) "self",(char *) "brush", NULL
13152 };
13153
13154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
13155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13157 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13158 SWIG_POINTER_EXCEPTION | 0)) == -1)
13159 SWIG_fail;
13160 if (arg2 == NULL) {
13161 PyErr_SetString(PyExc_TypeError,"null reference");
13162 SWIG_fail;
13163 }
13164 {
13165 PyThreadState* __tstate = wxPyBeginAllowThreads();
13166 (arg1)->SetBackground((wxBrush const &)*arg2);
13167
13168 wxPyEndAllowThreads(__tstate);
13169 if (PyErr_Occurred()) SWIG_fail;
13170 }
13171 Py_INCREF(Py_None); resultobj = Py_None;
13172 return resultobj;
13173 fail:
13174 return NULL;
13175 }
13176
13177
13178 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13179 PyObject *resultobj;
13180 wxDC *arg1 = (wxDC *) 0 ;
13181 int arg2 ;
13182 PyObject * obj0 = 0 ;
13183 PyObject * obj1 = 0 ;
13184 char *kwnames[] = {
13185 (char *) "self",(char *) "mode", NULL
13186 };
13187
13188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
13189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13191 arg2 = (int) SWIG_AsInt(obj1);
13192 if (PyErr_Occurred()) SWIG_fail;
13193 {
13194 PyThreadState* __tstate = wxPyBeginAllowThreads();
13195 (arg1)->SetBackgroundMode(arg2);
13196
13197 wxPyEndAllowThreads(__tstate);
13198 if (PyErr_Occurred()) SWIG_fail;
13199 }
13200 Py_INCREF(Py_None); resultobj = Py_None;
13201 return resultobj;
13202 fail:
13203 return NULL;
13204 }
13205
13206
13207 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
13208 PyObject *resultobj;
13209 wxDC *arg1 = (wxDC *) 0 ;
13210 wxPalette *arg2 = 0 ;
13211 PyObject * obj0 = 0 ;
13212 PyObject * obj1 = 0 ;
13213 char *kwnames[] = {
13214 (char *) "self",(char *) "palette", NULL
13215 };
13216
13217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
13218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13220 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
13221 SWIG_POINTER_EXCEPTION | 0)) == -1)
13222 SWIG_fail;
13223 if (arg2 == NULL) {
13224 PyErr_SetString(PyExc_TypeError,"null reference");
13225 SWIG_fail;
13226 }
13227 {
13228 PyThreadState* __tstate = wxPyBeginAllowThreads();
13229 (arg1)->SetPalette((wxPalette const &)*arg2);
13230
13231 wxPyEndAllowThreads(__tstate);
13232 if (PyErr_Occurred()) SWIG_fail;
13233 }
13234 Py_INCREF(Py_None); resultobj = Py_None;
13235 return resultobj;
13236 fail:
13237 return NULL;
13238 }
13239
13240
13241 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
13242 PyObject *resultobj;
13243 wxDC *arg1 = (wxDC *) 0 ;
13244 PyObject * obj0 = 0 ;
13245 char *kwnames[] = {
13246 (char *) "self", NULL
13247 };
13248
13249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
13250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13252 {
13253 PyThreadState* __tstate = wxPyBeginAllowThreads();
13254 (arg1)->DestroyClippingRegion();
13255
13256 wxPyEndAllowThreads(__tstate);
13257 if (PyErr_Occurred()) SWIG_fail;
13258 }
13259 Py_INCREF(Py_None); resultobj = Py_None;
13260 return resultobj;
13261 fail:
13262 return NULL;
13263 }
13264
13265
13266 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
13267 PyObject *resultobj;
13268 wxDC *arg1 = (wxDC *) 0 ;
13269 int *arg2 = (int *) 0 ;
13270 int *arg3 = (int *) 0 ;
13271 int *arg4 = (int *) 0 ;
13272 int *arg5 = (int *) 0 ;
13273 int temp2 ;
13274 int temp3 ;
13275 int temp4 ;
13276 int temp5 ;
13277 PyObject * obj0 = 0 ;
13278 char *kwnames[] = {
13279 (char *) "self", NULL
13280 };
13281
13282 arg2 = &temp2;
13283 arg3 = &temp3;
13284 arg4 = &temp4;
13285 arg5 = &temp5;
13286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
13287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13289 {
13290 PyThreadState* __tstate = wxPyBeginAllowThreads();
13291 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
13292
13293 wxPyEndAllowThreads(__tstate);
13294 if (PyErr_Occurred()) SWIG_fail;
13295 }
13296 Py_INCREF(Py_None); resultobj = Py_None;
13297 {
13298 PyObject *o = PyInt_FromLong((long) (*arg2));
13299 resultobj = t_output_helper(resultobj,o);
13300 }
13301 {
13302 PyObject *o = PyInt_FromLong((long) (*arg3));
13303 resultobj = t_output_helper(resultobj,o);
13304 }
13305 {
13306 PyObject *o = PyInt_FromLong((long) (*arg4));
13307 resultobj = t_output_helper(resultobj,o);
13308 }
13309 {
13310 PyObject *o = PyInt_FromLong((long) (*arg5));
13311 resultobj = t_output_helper(resultobj,o);
13312 }
13313 return resultobj;
13314 fail:
13315 return NULL;
13316 }
13317
13318
13319 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
13320 PyObject *resultobj;
13321 wxDC *arg1 = (wxDC *) 0 ;
13322 wxRect result;
13323 PyObject * obj0 = 0 ;
13324 char *kwnames[] = {
13325 (char *) "self", NULL
13326 };
13327
13328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
13329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13331 {
13332 PyThreadState* __tstate = wxPyBeginAllowThreads();
13333 result = wxDC_GetClippingRect(arg1);
13334
13335 wxPyEndAllowThreads(__tstate);
13336 if (PyErr_Occurred()) SWIG_fail;
13337 }
13338 {
13339 wxRect * resultptr;
13340 resultptr = new wxRect((wxRect &) result);
13341 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
13342 }
13343 return resultobj;
13344 fail:
13345 return NULL;
13346 }
13347
13348
13349 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
13350 PyObject *resultobj;
13351 wxDC *arg1 = (wxDC *) 0 ;
13352 int result;
13353 PyObject * obj0 = 0 ;
13354 char *kwnames[] = {
13355 (char *) "self", NULL
13356 };
13357
13358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
13359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13361 {
13362 PyThreadState* __tstate = wxPyBeginAllowThreads();
13363 result = (int)((wxDC const *)arg1)->GetCharHeight();
13364
13365 wxPyEndAllowThreads(__tstate);
13366 if (PyErr_Occurred()) SWIG_fail;
13367 }
13368 resultobj = SWIG_FromInt((int)result);
13369 return resultobj;
13370 fail:
13371 return NULL;
13372 }
13373
13374
13375 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
13376 PyObject *resultobj;
13377 wxDC *arg1 = (wxDC *) 0 ;
13378 int result;
13379 PyObject * obj0 = 0 ;
13380 char *kwnames[] = {
13381 (char *) "self", NULL
13382 };
13383
13384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
13385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13387 {
13388 PyThreadState* __tstate = wxPyBeginAllowThreads();
13389 result = (int)((wxDC const *)arg1)->GetCharWidth();
13390
13391 wxPyEndAllowThreads(__tstate);
13392 if (PyErr_Occurred()) SWIG_fail;
13393 }
13394 resultobj = SWIG_FromInt((int)result);
13395 return resultobj;
13396 fail:
13397 return NULL;
13398 }
13399
13400
13401 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13402 PyObject *resultobj;
13403 wxDC *arg1 = (wxDC *) 0 ;
13404 wxString *arg2 = 0 ;
13405 int *arg3 = (int *) 0 ;
13406 int *arg4 = (int *) 0 ;
13407 bool temp2 = False ;
13408 int temp3 ;
13409 int temp4 ;
13410 PyObject * obj0 = 0 ;
13411 PyObject * obj1 = 0 ;
13412 char *kwnames[] = {
13413 (char *) "self",(char *) "string", NULL
13414 };
13415
13416 arg3 = &temp3;
13417 arg4 = &temp4;
13418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
13419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13421 {
13422 arg2 = wxString_in_helper(obj1);
13423 if (arg2 == NULL) SWIG_fail;
13424 temp2 = True;
13425 }
13426 {
13427 PyThreadState* __tstate = wxPyBeginAllowThreads();
13428 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13429
13430 wxPyEndAllowThreads(__tstate);
13431 if (PyErr_Occurred()) SWIG_fail;
13432 }
13433 Py_INCREF(Py_None); resultobj = Py_None;
13434 {
13435 PyObject *o = PyInt_FromLong((long) (*arg3));
13436 resultobj = t_output_helper(resultobj,o);
13437 }
13438 {
13439 PyObject *o = PyInt_FromLong((long) (*arg4));
13440 resultobj = t_output_helper(resultobj,o);
13441 }
13442 {
13443 if (temp2)
13444 delete arg2;
13445 }
13446 return resultobj;
13447 fail:
13448 {
13449 if (temp2)
13450 delete arg2;
13451 }
13452 return NULL;
13453 }
13454
13455
13456 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13457 PyObject *resultobj;
13458 wxDC *arg1 = (wxDC *) 0 ;
13459 wxString *arg2 = 0 ;
13460 int *arg3 = (int *) 0 ;
13461 int *arg4 = (int *) 0 ;
13462 int *arg5 = (int *) 0 ;
13463 int *arg6 = (int *) 0 ;
13464 wxFont *arg7 = (wxFont *) NULL ;
13465 bool temp2 = False ;
13466 int temp3 ;
13467 int temp4 ;
13468 int temp5 ;
13469 int temp6 ;
13470 PyObject * obj0 = 0 ;
13471 PyObject * obj1 = 0 ;
13472 PyObject * obj2 = 0 ;
13473 char *kwnames[] = {
13474 (char *) "self",(char *) "string",(char *) "font", NULL
13475 };
13476
13477 arg3 = &temp3;
13478 arg4 = &temp4;
13479 arg5 = &temp5;
13480 arg6 = &temp6;
13481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13484 {
13485 arg2 = wxString_in_helper(obj1);
13486 if (arg2 == NULL) SWIG_fail;
13487 temp2 = True;
13488 }
13489 if (obj2) {
13490 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
13491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13492 }
13493 {
13494 PyThreadState* __tstate = wxPyBeginAllowThreads();
13495 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13496
13497 wxPyEndAllowThreads(__tstate);
13498 if (PyErr_Occurred()) SWIG_fail;
13499 }
13500 Py_INCREF(Py_None); resultobj = Py_None;
13501 {
13502 PyObject *o = PyInt_FromLong((long) (*arg3));
13503 resultobj = t_output_helper(resultobj,o);
13504 }
13505 {
13506 PyObject *o = PyInt_FromLong((long) (*arg4));
13507 resultobj = t_output_helper(resultobj,o);
13508 }
13509 {
13510 PyObject *o = PyInt_FromLong((long) (*arg5));
13511 resultobj = t_output_helper(resultobj,o);
13512 }
13513 {
13514 PyObject *o = PyInt_FromLong((long) (*arg6));
13515 resultobj = t_output_helper(resultobj,o);
13516 }
13517 {
13518 if (temp2)
13519 delete arg2;
13520 }
13521 return resultobj;
13522 fail:
13523 {
13524 if (temp2)
13525 delete arg2;
13526 }
13527 return NULL;
13528 }
13529
13530
13531 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13532 PyObject *resultobj;
13533 wxDC *arg1 = (wxDC *) 0 ;
13534 wxString *arg2 = 0 ;
13535 int *arg3 = (int *) 0 ;
13536 int *arg4 = (int *) 0 ;
13537 int *arg5 = (int *) 0 ;
13538 wxFont *arg6 = (wxFont *) NULL ;
13539 bool temp2 = False ;
13540 int temp3 ;
13541 int temp4 ;
13542 int temp5 ;
13543 PyObject * obj0 = 0 ;
13544 PyObject * obj1 = 0 ;
13545 PyObject * obj2 = 0 ;
13546 char *kwnames[] = {
13547 (char *) "self",(char *) "text",(char *) "font", NULL
13548 };
13549
13550 arg3 = &temp3;
13551 arg4 = &temp4;
13552 arg5 = &temp5;
13553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13556 {
13557 arg2 = wxString_in_helper(obj1);
13558 if (arg2 == NULL) SWIG_fail;
13559 temp2 = True;
13560 }
13561 if (obj2) {
13562 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13564 }
13565 {
13566 PyThreadState* __tstate = wxPyBeginAllowThreads();
13567 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13568
13569 wxPyEndAllowThreads(__tstate);
13570 if (PyErr_Occurred()) SWIG_fail;
13571 }
13572 Py_INCREF(Py_None); resultobj = Py_None;
13573 {
13574 PyObject *o = PyInt_FromLong((long) (*arg3));
13575 resultobj = t_output_helper(resultobj,o);
13576 }
13577 {
13578 PyObject *o = PyInt_FromLong((long) (*arg4));
13579 resultobj = t_output_helper(resultobj,o);
13580 }
13581 {
13582 PyObject *o = PyInt_FromLong((long) (*arg5));
13583 resultobj = t_output_helper(resultobj,o);
13584 }
13585 {
13586 if (temp2)
13587 delete arg2;
13588 }
13589 return resultobj;
13590 fail:
13591 {
13592 if (temp2)
13593 delete arg2;
13594 }
13595 return NULL;
13596 }
13597
13598
13599 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
13600 PyObject *resultobj;
13601 wxDC *arg1 = (wxDC *) 0 ;
13602 wxString *arg2 = 0 ;
13603 wxArrayInt result;
13604 bool temp2 = False ;
13605 PyObject * obj0 = 0 ;
13606 PyObject * obj1 = 0 ;
13607 char *kwnames[] = {
13608 (char *) "self",(char *) "text", NULL
13609 };
13610
13611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13614 {
13615 arg2 = wxString_in_helper(obj1);
13616 if (arg2 == NULL) SWIG_fail;
13617 temp2 = True;
13618 }
13619 {
13620 PyThreadState* __tstate = wxPyBeginAllowThreads();
13621 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13622
13623 wxPyEndAllowThreads(__tstate);
13624 if (PyErr_Occurred()) SWIG_fail;
13625 }
13626 {
13627 resultobj = PyList_New(0);
13628 size_t idx;
13629 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13630 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13631 PyList_Append(resultobj, val);
13632 Py_DECREF(val);
13633 }
13634 }
13635 {
13636 if (temp2)
13637 delete arg2;
13638 }
13639 return resultobj;
13640 fail:
13641 {
13642 if (temp2)
13643 delete arg2;
13644 }
13645 return NULL;
13646 }
13647
13648
13649 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13650 PyObject *resultobj;
13651 wxDC *arg1 = (wxDC *) 0 ;
13652 wxSize result;
13653 PyObject * obj0 = 0 ;
13654 char *kwnames[] = {
13655 (char *) "self", NULL
13656 };
13657
13658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13661 {
13662 PyThreadState* __tstate = wxPyBeginAllowThreads();
13663 result = (arg1)->GetSize();
13664
13665 wxPyEndAllowThreads(__tstate);
13666 if (PyErr_Occurred()) SWIG_fail;
13667 }
13668 {
13669 wxSize * resultptr;
13670 resultptr = new wxSize((wxSize &) result);
13671 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13672 }
13673 return resultobj;
13674 fail:
13675 return NULL;
13676 }
13677
13678
13679 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13680 PyObject *resultobj;
13681 wxDC *arg1 = (wxDC *) 0 ;
13682 int *arg2 = (int *) 0 ;
13683 int *arg3 = (int *) 0 ;
13684 int temp2 ;
13685 int temp3 ;
13686 PyObject * obj0 = 0 ;
13687 char *kwnames[] = {
13688 (char *) "self", NULL
13689 };
13690
13691 arg2 = &temp2;
13692 arg3 = &temp3;
13693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13696 {
13697 PyThreadState* __tstate = wxPyBeginAllowThreads();
13698 (arg1)->GetSize(arg2,arg3);
13699
13700 wxPyEndAllowThreads(__tstate);
13701 if (PyErr_Occurred()) SWIG_fail;
13702 }
13703 Py_INCREF(Py_None); resultobj = Py_None;
13704 {
13705 PyObject *o = PyInt_FromLong((long) (*arg2));
13706 resultobj = t_output_helper(resultobj,o);
13707 }
13708 {
13709 PyObject *o = PyInt_FromLong((long) (*arg3));
13710 resultobj = t_output_helper(resultobj,o);
13711 }
13712 return resultobj;
13713 fail:
13714 return NULL;
13715 }
13716
13717
13718 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13719 PyObject *resultobj;
13720 wxDC *arg1 = (wxDC *) 0 ;
13721 wxSize result;
13722 PyObject * obj0 = 0 ;
13723 char *kwnames[] = {
13724 (char *) "self", NULL
13725 };
13726
13727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13730 {
13731 PyThreadState* __tstate = wxPyBeginAllowThreads();
13732 result = ((wxDC const *)arg1)->GetSizeMM();
13733
13734 wxPyEndAllowThreads(__tstate);
13735 if (PyErr_Occurred()) SWIG_fail;
13736 }
13737 {
13738 wxSize * resultptr;
13739 resultptr = new wxSize((wxSize &) result);
13740 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13741 }
13742 return resultobj;
13743 fail:
13744 return NULL;
13745 }
13746
13747
13748 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13749 PyObject *resultobj;
13750 wxDC *arg1 = (wxDC *) 0 ;
13751 int *arg2 = (int *) 0 ;
13752 int *arg3 = (int *) 0 ;
13753 int temp2 ;
13754 int temp3 ;
13755 PyObject * obj0 = 0 ;
13756 char *kwnames[] = {
13757 (char *) "self", NULL
13758 };
13759
13760 arg2 = &temp2;
13761 arg3 = &temp3;
13762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13765 {
13766 PyThreadState* __tstate = wxPyBeginAllowThreads();
13767 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13768
13769 wxPyEndAllowThreads(__tstate);
13770 if (PyErr_Occurred()) SWIG_fail;
13771 }
13772 Py_INCREF(Py_None); resultobj = Py_None;
13773 {
13774 PyObject *o = PyInt_FromLong((long) (*arg2));
13775 resultobj = t_output_helper(resultobj,o);
13776 }
13777 {
13778 PyObject *o = PyInt_FromLong((long) (*arg3));
13779 resultobj = t_output_helper(resultobj,o);
13780 }
13781 return resultobj;
13782 fail:
13783 return NULL;
13784 }
13785
13786
13787 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13788 PyObject *resultobj;
13789 wxDC *arg1 = (wxDC *) 0 ;
13790 int arg2 ;
13791 int result;
13792 PyObject * obj0 = 0 ;
13793 PyObject * obj1 = 0 ;
13794 char *kwnames[] = {
13795 (char *) "self",(char *) "x", NULL
13796 };
13797
13798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13801 arg2 = (int) SWIG_AsInt(obj1);
13802 if (PyErr_Occurred()) SWIG_fail;
13803 {
13804 PyThreadState* __tstate = wxPyBeginAllowThreads();
13805 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13806
13807 wxPyEndAllowThreads(__tstate);
13808 if (PyErr_Occurred()) SWIG_fail;
13809 }
13810 resultobj = SWIG_FromInt((int)result);
13811 return resultobj;
13812 fail:
13813 return NULL;
13814 }
13815
13816
13817 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13818 PyObject *resultobj;
13819 wxDC *arg1 = (wxDC *) 0 ;
13820 int arg2 ;
13821 int result;
13822 PyObject * obj0 = 0 ;
13823 PyObject * obj1 = 0 ;
13824 char *kwnames[] = {
13825 (char *) "self",(char *) "y", NULL
13826 };
13827
13828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13831 arg2 = (int) SWIG_AsInt(obj1);
13832 if (PyErr_Occurred()) SWIG_fail;
13833 {
13834 PyThreadState* __tstate = wxPyBeginAllowThreads();
13835 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13836
13837 wxPyEndAllowThreads(__tstate);
13838 if (PyErr_Occurred()) SWIG_fail;
13839 }
13840 resultobj = SWIG_FromInt((int)result);
13841 return resultobj;
13842 fail:
13843 return NULL;
13844 }
13845
13846
13847 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13848 PyObject *resultobj;
13849 wxDC *arg1 = (wxDC *) 0 ;
13850 int arg2 ;
13851 int result;
13852 PyObject * obj0 = 0 ;
13853 PyObject * obj1 = 0 ;
13854 char *kwnames[] = {
13855 (char *) "self",(char *) "x", NULL
13856 };
13857
13858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13861 arg2 = (int) SWIG_AsInt(obj1);
13862 if (PyErr_Occurred()) SWIG_fail;
13863 {
13864 PyThreadState* __tstate = wxPyBeginAllowThreads();
13865 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13866
13867 wxPyEndAllowThreads(__tstate);
13868 if (PyErr_Occurred()) SWIG_fail;
13869 }
13870 resultobj = SWIG_FromInt((int)result);
13871 return resultobj;
13872 fail:
13873 return NULL;
13874 }
13875
13876
13877 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13878 PyObject *resultobj;
13879 wxDC *arg1 = (wxDC *) 0 ;
13880 int arg2 ;
13881 int result;
13882 PyObject * obj0 = 0 ;
13883 PyObject * obj1 = 0 ;
13884 char *kwnames[] = {
13885 (char *) "self",(char *) "y", NULL
13886 };
13887
13888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13891 arg2 = (int) SWIG_AsInt(obj1);
13892 if (PyErr_Occurred()) SWIG_fail;
13893 {
13894 PyThreadState* __tstate = wxPyBeginAllowThreads();
13895 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13896
13897 wxPyEndAllowThreads(__tstate);
13898 if (PyErr_Occurred()) SWIG_fail;
13899 }
13900 resultobj = SWIG_FromInt((int)result);
13901 return resultobj;
13902 fail:
13903 return NULL;
13904 }
13905
13906
13907 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13908 PyObject *resultobj;
13909 wxDC *arg1 = (wxDC *) 0 ;
13910 int arg2 ;
13911 int result;
13912 PyObject * obj0 = 0 ;
13913 PyObject * obj1 = 0 ;
13914 char *kwnames[] = {
13915 (char *) "self",(char *) "x", NULL
13916 };
13917
13918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13921 arg2 = (int) SWIG_AsInt(obj1);
13922 if (PyErr_Occurred()) SWIG_fail;
13923 {
13924 PyThreadState* __tstate = wxPyBeginAllowThreads();
13925 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13926
13927 wxPyEndAllowThreads(__tstate);
13928 if (PyErr_Occurred()) SWIG_fail;
13929 }
13930 resultobj = SWIG_FromInt((int)result);
13931 return resultobj;
13932 fail:
13933 return NULL;
13934 }
13935
13936
13937 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13938 PyObject *resultobj;
13939 wxDC *arg1 = (wxDC *) 0 ;
13940 int arg2 ;
13941 int result;
13942 PyObject * obj0 = 0 ;
13943 PyObject * obj1 = 0 ;
13944 char *kwnames[] = {
13945 (char *) "self",(char *) "y", NULL
13946 };
13947
13948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13951 arg2 = (int) SWIG_AsInt(obj1);
13952 if (PyErr_Occurred()) SWIG_fail;
13953 {
13954 PyThreadState* __tstate = wxPyBeginAllowThreads();
13955 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13956
13957 wxPyEndAllowThreads(__tstate);
13958 if (PyErr_Occurred()) SWIG_fail;
13959 }
13960 resultobj = SWIG_FromInt((int)result);
13961 return resultobj;
13962 fail:
13963 return NULL;
13964 }
13965
13966
13967 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13968 PyObject *resultobj;
13969 wxDC *arg1 = (wxDC *) 0 ;
13970 int arg2 ;
13971 int result;
13972 PyObject * obj0 = 0 ;
13973 PyObject * obj1 = 0 ;
13974 char *kwnames[] = {
13975 (char *) "self",(char *) "x", NULL
13976 };
13977
13978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13981 arg2 = (int) SWIG_AsInt(obj1);
13982 if (PyErr_Occurred()) SWIG_fail;
13983 {
13984 PyThreadState* __tstate = wxPyBeginAllowThreads();
13985 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13986
13987 wxPyEndAllowThreads(__tstate);
13988 if (PyErr_Occurred()) SWIG_fail;
13989 }
13990 resultobj = SWIG_FromInt((int)result);
13991 return resultobj;
13992 fail:
13993 return NULL;
13994 }
13995
13996
13997 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13998 PyObject *resultobj;
13999 wxDC *arg1 = (wxDC *) 0 ;
14000 int arg2 ;
14001 int result;
14002 PyObject * obj0 = 0 ;
14003 PyObject * obj1 = 0 ;
14004 char *kwnames[] = {
14005 (char *) "self",(char *) "y", NULL
14006 };
14007
14008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
14009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14011 arg2 = (int) SWIG_AsInt(obj1);
14012 if (PyErr_Occurred()) SWIG_fail;
14013 {
14014 PyThreadState* __tstate = wxPyBeginAllowThreads();
14015 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
14016
14017 wxPyEndAllowThreads(__tstate);
14018 if (PyErr_Occurred()) SWIG_fail;
14019 }
14020 resultobj = SWIG_FromInt((int)result);
14021 return resultobj;
14022 fail:
14023 return NULL;
14024 }
14025
14026
14027 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
14028 PyObject *resultobj;
14029 wxDC *arg1 = (wxDC *) 0 ;
14030 bool result;
14031 PyObject * obj0 = 0 ;
14032 char *kwnames[] = {
14033 (char *) "self", NULL
14034 };
14035
14036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
14037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14039 {
14040 PyThreadState* __tstate = wxPyBeginAllowThreads();
14041 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
14042
14043 wxPyEndAllowThreads(__tstate);
14044 if (PyErr_Occurred()) SWIG_fail;
14045 }
14046 {
14047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14048 }
14049 return resultobj;
14050 fail:
14051 return NULL;
14052 }
14053
14054
14055 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
14056 PyObject *resultobj;
14057 wxDC *arg1 = (wxDC *) 0 ;
14058 bool result;
14059 PyObject * obj0 = 0 ;
14060 char *kwnames[] = {
14061 (char *) "self", NULL
14062 };
14063
14064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
14065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14067 {
14068 PyThreadState* __tstate = wxPyBeginAllowThreads();
14069 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
14070
14071 wxPyEndAllowThreads(__tstate);
14072 if (PyErr_Occurred()) SWIG_fail;
14073 }
14074 {
14075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14076 }
14077 return resultobj;
14078 fail:
14079 return NULL;
14080 }
14081
14082
14083 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
14084 PyObject *resultobj;
14085 wxDC *arg1 = (wxDC *) 0 ;
14086 int result;
14087 PyObject * obj0 = 0 ;
14088 char *kwnames[] = {
14089 (char *) "self", NULL
14090 };
14091
14092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
14093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14095 {
14096 PyThreadState* __tstate = wxPyBeginAllowThreads();
14097 result = (int)((wxDC const *)arg1)->GetDepth();
14098
14099 wxPyEndAllowThreads(__tstate);
14100 if (PyErr_Occurred()) SWIG_fail;
14101 }
14102 resultobj = SWIG_FromInt((int)result);
14103 return resultobj;
14104 fail:
14105 return NULL;
14106 }
14107
14108
14109 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
14110 PyObject *resultobj;
14111 wxDC *arg1 = (wxDC *) 0 ;
14112 wxSize result;
14113 PyObject * obj0 = 0 ;
14114 char *kwnames[] = {
14115 (char *) "self", NULL
14116 };
14117
14118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
14119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14121 {
14122 PyThreadState* __tstate = wxPyBeginAllowThreads();
14123 result = ((wxDC const *)arg1)->GetPPI();
14124
14125 wxPyEndAllowThreads(__tstate);
14126 if (PyErr_Occurred()) SWIG_fail;
14127 }
14128 {
14129 wxSize * resultptr;
14130 resultptr = new wxSize((wxSize &) result);
14131 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14132 }
14133 return resultobj;
14134 fail:
14135 return NULL;
14136 }
14137
14138
14139 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
14140 PyObject *resultobj;
14141 wxDC *arg1 = (wxDC *) 0 ;
14142 bool result;
14143 PyObject * obj0 = 0 ;
14144 char *kwnames[] = {
14145 (char *) "self", NULL
14146 };
14147
14148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
14149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14151 {
14152 PyThreadState* __tstate = wxPyBeginAllowThreads();
14153 result = (bool)((wxDC const *)arg1)->Ok();
14154
14155 wxPyEndAllowThreads(__tstate);
14156 if (PyErr_Occurred()) SWIG_fail;
14157 }
14158 {
14159 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14160 }
14161 return resultobj;
14162 fail:
14163 return NULL;
14164 }
14165
14166
14167 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14168 PyObject *resultobj;
14169 wxDC *arg1 = (wxDC *) 0 ;
14170 int result;
14171 PyObject * obj0 = 0 ;
14172 char *kwnames[] = {
14173 (char *) "self", NULL
14174 };
14175
14176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
14177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14179 {
14180 PyThreadState* __tstate = wxPyBeginAllowThreads();
14181 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
14182
14183 wxPyEndAllowThreads(__tstate);
14184 if (PyErr_Occurred()) SWIG_fail;
14185 }
14186 resultobj = SWIG_FromInt((int)result);
14187 return resultobj;
14188 fail:
14189 return NULL;
14190 }
14191
14192
14193 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14194 PyObject *resultobj;
14195 wxDC *arg1 = (wxDC *) 0 ;
14196 wxBrush *result;
14197 PyObject * obj0 = 0 ;
14198 char *kwnames[] = {
14199 (char *) "self", NULL
14200 };
14201
14202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
14203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14205 {
14206 PyThreadState* __tstate = wxPyBeginAllowThreads();
14207 {
14208 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
14209 result = (wxBrush *) &_result_ref;
14210 }
14211
14212 wxPyEndAllowThreads(__tstate);
14213 if (PyErr_Occurred()) SWIG_fail;
14214 }
14215 {
14216 wxBrush* resultptr = new wxBrush(*result);
14217 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14218 }
14219 return resultobj;
14220 fail:
14221 return NULL;
14222 }
14223
14224
14225 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14226 PyObject *resultobj;
14227 wxDC *arg1 = (wxDC *) 0 ;
14228 wxBrush *result;
14229 PyObject * obj0 = 0 ;
14230 char *kwnames[] = {
14231 (char *) "self", NULL
14232 };
14233
14234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
14235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14237 {
14238 PyThreadState* __tstate = wxPyBeginAllowThreads();
14239 {
14240 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
14241 result = (wxBrush *) &_result_ref;
14242 }
14243
14244 wxPyEndAllowThreads(__tstate);
14245 if (PyErr_Occurred()) SWIG_fail;
14246 }
14247 {
14248 wxBrush* resultptr = new wxBrush(*result);
14249 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14250 }
14251 return resultobj;
14252 fail:
14253 return NULL;
14254 }
14255
14256
14257 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14258 PyObject *resultobj;
14259 wxDC *arg1 = (wxDC *) 0 ;
14260 wxFont *result;
14261 PyObject * obj0 = 0 ;
14262 char *kwnames[] = {
14263 (char *) "self", NULL
14264 };
14265
14266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
14267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14269 {
14270 PyThreadState* __tstate = wxPyBeginAllowThreads();
14271 {
14272 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
14273 result = (wxFont *) &_result_ref;
14274 }
14275
14276 wxPyEndAllowThreads(__tstate);
14277 if (PyErr_Occurred()) SWIG_fail;
14278 }
14279 {
14280 wxFont* resultptr = new wxFont(*result);
14281 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
14282 }
14283 return resultobj;
14284 fail:
14285 return NULL;
14286 }
14287
14288
14289 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
14290 PyObject *resultobj;
14291 wxDC *arg1 = (wxDC *) 0 ;
14292 wxPen *result;
14293 PyObject * obj0 = 0 ;
14294 char *kwnames[] = {
14295 (char *) "self", NULL
14296 };
14297
14298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
14299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14301 {
14302 PyThreadState* __tstate = wxPyBeginAllowThreads();
14303 {
14304 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
14305 result = (wxPen *) &_result_ref;
14306 }
14307
14308 wxPyEndAllowThreads(__tstate);
14309 if (PyErr_Occurred()) SWIG_fail;
14310 }
14311 {
14312 wxPen* resultptr = new wxPen(*result);
14313 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
14314 }
14315 return resultobj;
14316 fail:
14317 return NULL;
14318 }
14319
14320
14321 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14322 PyObject *resultobj;
14323 wxDC *arg1 = (wxDC *) 0 ;
14324 wxColour *result;
14325 PyObject * obj0 = 0 ;
14326 char *kwnames[] = {
14327 (char *) "self", NULL
14328 };
14329
14330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
14331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14333 {
14334 PyThreadState* __tstate = wxPyBeginAllowThreads();
14335 {
14336 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
14337 result = (wxColour *) &_result_ref;
14338 }
14339
14340 wxPyEndAllowThreads(__tstate);
14341 if (PyErr_Occurred()) SWIG_fail;
14342 }
14343 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14344 return resultobj;
14345 fail:
14346 return NULL;
14347 }
14348
14349
14350 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14351 PyObject *resultobj;
14352 wxDC *arg1 = (wxDC *) 0 ;
14353 wxColour *result;
14354 PyObject * obj0 = 0 ;
14355 char *kwnames[] = {
14356 (char *) "self", NULL
14357 };
14358
14359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
14360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14362 {
14363 PyThreadState* __tstate = wxPyBeginAllowThreads();
14364 {
14365 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
14366 result = (wxColour *) &_result_ref;
14367 }
14368
14369 wxPyEndAllowThreads(__tstate);
14370 if (PyErr_Occurred()) SWIG_fail;
14371 }
14372 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14373 return resultobj;
14374 fail:
14375 return NULL;
14376 }
14377
14378
14379 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14380 PyObject *resultobj;
14381 wxDC *arg1 = (wxDC *) 0 ;
14382 wxColour *arg2 = 0 ;
14383 wxColour temp2 ;
14384 PyObject * obj0 = 0 ;
14385 PyObject * obj1 = 0 ;
14386 char *kwnames[] = {
14387 (char *) "self",(char *) "colour", NULL
14388 };
14389
14390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
14391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14393 {
14394 arg2 = &temp2;
14395 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14396 }
14397 {
14398 PyThreadState* __tstate = wxPyBeginAllowThreads();
14399 (arg1)->SetTextForeground((wxColour const &)*arg2);
14400
14401 wxPyEndAllowThreads(__tstate);
14402 if (PyErr_Occurred()) SWIG_fail;
14403 }
14404 Py_INCREF(Py_None); resultobj = Py_None;
14405 return resultobj;
14406 fail:
14407 return NULL;
14408 }
14409
14410
14411 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14412 PyObject *resultobj;
14413 wxDC *arg1 = (wxDC *) 0 ;
14414 wxColour *arg2 = 0 ;
14415 wxColour temp2 ;
14416 PyObject * obj0 = 0 ;
14417 PyObject * obj1 = 0 ;
14418 char *kwnames[] = {
14419 (char *) "self",(char *) "colour", NULL
14420 };
14421
14422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
14423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14425 {
14426 arg2 = &temp2;
14427 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14428 }
14429 {
14430 PyThreadState* __tstate = wxPyBeginAllowThreads();
14431 (arg1)->SetTextBackground((wxColour const &)*arg2);
14432
14433 wxPyEndAllowThreads(__tstate);
14434 if (PyErr_Occurred()) SWIG_fail;
14435 }
14436 Py_INCREF(Py_None); resultobj = Py_None;
14437 return resultobj;
14438 fail:
14439 return NULL;
14440 }
14441
14442
14443 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14444 PyObject *resultobj;
14445 wxDC *arg1 = (wxDC *) 0 ;
14446 int result;
14447 PyObject * obj0 = 0 ;
14448 char *kwnames[] = {
14449 (char *) "self", NULL
14450 };
14451
14452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
14453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14455 {
14456 PyThreadState* __tstate = wxPyBeginAllowThreads();
14457 result = (int)((wxDC const *)arg1)->GetMapMode();
14458
14459 wxPyEndAllowThreads(__tstate);
14460 if (PyErr_Occurred()) SWIG_fail;
14461 }
14462 resultobj = SWIG_FromInt((int)result);
14463 return resultobj;
14464 fail:
14465 return NULL;
14466 }
14467
14468
14469 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14470 PyObject *resultobj;
14471 wxDC *arg1 = (wxDC *) 0 ;
14472 int arg2 ;
14473 PyObject * obj0 = 0 ;
14474 PyObject * obj1 = 0 ;
14475 char *kwnames[] = {
14476 (char *) "self",(char *) "mode", NULL
14477 };
14478
14479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
14480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14482 arg2 = (int) SWIG_AsInt(obj1);
14483 if (PyErr_Occurred()) SWIG_fail;
14484 {
14485 PyThreadState* __tstate = wxPyBeginAllowThreads();
14486 (arg1)->SetMapMode(arg2);
14487
14488 wxPyEndAllowThreads(__tstate);
14489 if (PyErr_Occurred()) SWIG_fail;
14490 }
14491 Py_INCREF(Py_None); resultobj = Py_None;
14492 return resultobj;
14493 fail:
14494 return NULL;
14495 }
14496
14497
14498 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14499 PyObject *resultobj;
14500 wxDC *arg1 = (wxDC *) 0 ;
14501 double *arg2 = (double *) 0 ;
14502 double *arg3 = (double *) 0 ;
14503 double temp2 ;
14504 double temp3 ;
14505 PyObject * obj0 = 0 ;
14506 char *kwnames[] = {
14507 (char *) "self", NULL
14508 };
14509
14510 arg2 = &temp2;
14511 arg3 = &temp3;
14512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14515 {
14516 PyThreadState* __tstate = wxPyBeginAllowThreads();
14517 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14518
14519 wxPyEndAllowThreads(__tstate);
14520 if (PyErr_Occurred()) SWIG_fail;
14521 }
14522 Py_INCREF(Py_None); resultobj = Py_None;
14523 {
14524 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14525 resultobj = t_output_helper(resultobj,o);
14526 }
14527 {
14528 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14529 resultobj = t_output_helper(resultobj,o);
14530 }
14531 return resultobj;
14532 fail:
14533 return NULL;
14534 }
14535
14536
14537 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14538 PyObject *resultobj;
14539 wxDC *arg1 = (wxDC *) 0 ;
14540 double arg2 ;
14541 double arg3 ;
14542 PyObject * obj0 = 0 ;
14543 PyObject * obj1 = 0 ;
14544 PyObject * obj2 = 0 ;
14545 char *kwnames[] = {
14546 (char *) "self",(char *) "x",(char *) "y", NULL
14547 };
14548
14549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14552 arg2 = (double) SWIG_AsDouble(obj1);
14553 if (PyErr_Occurred()) SWIG_fail;
14554 arg3 = (double) SWIG_AsDouble(obj2);
14555 if (PyErr_Occurred()) SWIG_fail;
14556 {
14557 PyThreadState* __tstate = wxPyBeginAllowThreads();
14558 (arg1)->SetUserScale(arg2,arg3);
14559
14560 wxPyEndAllowThreads(__tstate);
14561 if (PyErr_Occurred()) SWIG_fail;
14562 }
14563 Py_INCREF(Py_None); resultobj = Py_None;
14564 return resultobj;
14565 fail:
14566 return NULL;
14567 }
14568
14569
14570 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14571 PyObject *resultobj;
14572 wxDC *arg1 = (wxDC *) 0 ;
14573 double *arg2 = (double *) 0 ;
14574 double *arg3 = (double *) 0 ;
14575 double temp2 ;
14576 double temp3 ;
14577 PyObject * obj0 = 0 ;
14578 char *kwnames[] = {
14579 (char *) "self", NULL
14580 };
14581
14582 arg2 = &temp2;
14583 arg3 = &temp3;
14584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14587 {
14588 PyThreadState* __tstate = wxPyBeginAllowThreads();
14589 (arg1)->GetLogicalScale(arg2,arg3);
14590
14591 wxPyEndAllowThreads(__tstate);
14592 if (PyErr_Occurred()) SWIG_fail;
14593 }
14594 Py_INCREF(Py_None); resultobj = Py_None;
14595 {
14596 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14597 resultobj = t_output_helper(resultobj,o);
14598 }
14599 {
14600 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14601 resultobj = t_output_helper(resultobj,o);
14602 }
14603 return resultobj;
14604 fail:
14605 return NULL;
14606 }
14607
14608
14609 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14610 PyObject *resultobj;
14611 wxDC *arg1 = (wxDC *) 0 ;
14612 double arg2 ;
14613 double arg3 ;
14614 PyObject * obj0 = 0 ;
14615 PyObject * obj1 = 0 ;
14616 PyObject * obj2 = 0 ;
14617 char *kwnames[] = {
14618 (char *) "self",(char *) "x",(char *) "y", NULL
14619 };
14620
14621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14624 arg2 = (double) SWIG_AsDouble(obj1);
14625 if (PyErr_Occurred()) SWIG_fail;
14626 arg3 = (double) SWIG_AsDouble(obj2);
14627 if (PyErr_Occurred()) SWIG_fail;
14628 {
14629 PyThreadState* __tstate = wxPyBeginAllowThreads();
14630 (arg1)->SetLogicalScale(arg2,arg3);
14631
14632 wxPyEndAllowThreads(__tstate);
14633 if (PyErr_Occurred()) SWIG_fail;
14634 }
14635 Py_INCREF(Py_None); resultobj = Py_None;
14636 return resultobj;
14637 fail:
14638 return NULL;
14639 }
14640
14641
14642 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14643 PyObject *resultobj;
14644 wxDC *arg1 = (wxDC *) 0 ;
14645 wxPoint result;
14646 PyObject * obj0 = 0 ;
14647 char *kwnames[] = {
14648 (char *) "self", NULL
14649 };
14650
14651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14654 {
14655 PyThreadState* __tstate = wxPyBeginAllowThreads();
14656 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14657
14658 wxPyEndAllowThreads(__tstate);
14659 if (PyErr_Occurred()) SWIG_fail;
14660 }
14661 {
14662 wxPoint * resultptr;
14663 resultptr = new wxPoint((wxPoint &) result);
14664 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14665 }
14666 return resultobj;
14667 fail:
14668 return NULL;
14669 }
14670
14671
14672 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14673 PyObject *resultobj;
14674 wxDC *arg1 = (wxDC *) 0 ;
14675 int *arg2 = (int *) 0 ;
14676 int *arg3 = (int *) 0 ;
14677 int temp2 ;
14678 int temp3 ;
14679 PyObject * obj0 = 0 ;
14680 char *kwnames[] = {
14681 (char *) "self", NULL
14682 };
14683
14684 arg2 = &temp2;
14685 arg3 = &temp3;
14686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14689 {
14690 PyThreadState* __tstate = wxPyBeginAllowThreads();
14691 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14692
14693 wxPyEndAllowThreads(__tstate);
14694 if (PyErr_Occurred()) SWIG_fail;
14695 }
14696 Py_INCREF(Py_None); resultobj = Py_None;
14697 {
14698 PyObject *o = PyInt_FromLong((long) (*arg2));
14699 resultobj = t_output_helper(resultobj,o);
14700 }
14701 {
14702 PyObject *o = PyInt_FromLong((long) (*arg3));
14703 resultobj = t_output_helper(resultobj,o);
14704 }
14705 return resultobj;
14706 fail:
14707 return NULL;
14708 }
14709
14710
14711 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14712 PyObject *resultobj;
14713 wxDC *arg1 = (wxDC *) 0 ;
14714 int arg2 ;
14715 int arg3 ;
14716 PyObject * obj0 = 0 ;
14717 PyObject * obj1 = 0 ;
14718 PyObject * obj2 = 0 ;
14719 char *kwnames[] = {
14720 (char *) "self",(char *) "x",(char *) "y", NULL
14721 };
14722
14723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14726 arg2 = (int) SWIG_AsInt(obj1);
14727 if (PyErr_Occurred()) SWIG_fail;
14728 arg3 = (int) SWIG_AsInt(obj2);
14729 if (PyErr_Occurred()) SWIG_fail;
14730 {
14731 PyThreadState* __tstate = wxPyBeginAllowThreads();
14732 (arg1)->SetLogicalOrigin(arg2,arg3);
14733
14734 wxPyEndAllowThreads(__tstate);
14735 if (PyErr_Occurred()) SWIG_fail;
14736 }
14737 Py_INCREF(Py_None); resultobj = Py_None;
14738 return resultobj;
14739 fail:
14740 return NULL;
14741 }
14742
14743
14744 static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14745 PyObject *resultobj;
14746 wxDC *arg1 = (wxDC *) 0 ;
14747 wxPoint *arg2 = 0 ;
14748 wxPoint temp2 ;
14749 PyObject * obj0 = 0 ;
14750 PyObject * obj1 = 0 ;
14751 char *kwnames[] = {
14752 (char *) "self",(char *) "point", NULL
14753 };
14754
14755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14758 {
14759 arg2 = &temp2;
14760 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14761 }
14762 {
14763 PyThreadState* __tstate = wxPyBeginAllowThreads();
14764 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
14765
14766 wxPyEndAllowThreads(__tstate);
14767 if (PyErr_Occurred()) SWIG_fail;
14768 }
14769 Py_INCREF(Py_None); resultobj = Py_None;
14770 return resultobj;
14771 fail:
14772 return NULL;
14773 }
14774
14775
14776 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14777 PyObject *resultobj;
14778 wxDC *arg1 = (wxDC *) 0 ;
14779 wxPoint result;
14780 PyObject * obj0 = 0 ;
14781 char *kwnames[] = {
14782 (char *) "self", NULL
14783 };
14784
14785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14788 {
14789 PyThreadState* __tstate = wxPyBeginAllowThreads();
14790 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14791
14792 wxPyEndAllowThreads(__tstate);
14793 if (PyErr_Occurred()) SWIG_fail;
14794 }
14795 {
14796 wxPoint * resultptr;
14797 resultptr = new wxPoint((wxPoint &) result);
14798 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14799 }
14800 return resultobj;
14801 fail:
14802 return NULL;
14803 }
14804
14805
14806 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14807 PyObject *resultobj;
14808 wxDC *arg1 = (wxDC *) 0 ;
14809 int *arg2 = (int *) 0 ;
14810 int *arg3 = (int *) 0 ;
14811 int temp2 ;
14812 int temp3 ;
14813 PyObject * obj0 = 0 ;
14814 char *kwnames[] = {
14815 (char *) "self", NULL
14816 };
14817
14818 arg2 = &temp2;
14819 arg3 = &temp3;
14820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14823 {
14824 PyThreadState* __tstate = wxPyBeginAllowThreads();
14825 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14826
14827 wxPyEndAllowThreads(__tstate);
14828 if (PyErr_Occurred()) SWIG_fail;
14829 }
14830 Py_INCREF(Py_None); resultobj = Py_None;
14831 {
14832 PyObject *o = PyInt_FromLong((long) (*arg2));
14833 resultobj = t_output_helper(resultobj,o);
14834 }
14835 {
14836 PyObject *o = PyInt_FromLong((long) (*arg3));
14837 resultobj = t_output_helper(resultobj,o);
14838 }
14839 return resultobj;
14840 fail:
14841 return NULL;
14842 }
14843
14844
14845 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14846 PyObject *resultobj;
14847 wxDC *arg1 = (wxDC *) 0 ;
14848 int arg2 ;
14849 int arg3 ;
14850 PyObject * obj0 = 0 ;
14851 PyObject * obj1 = 0 ;
14852 PyObject * obj2 = 0 ;
14853 char *kwnames[] = {
14854 (char *) "self",(char *) "x",(char *) "y", NULL
14855 };
14856
14857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14860 arg2 = (int) SWIG_AsInt(obj1);
14861 if (PyErr_Occurred()) SWIG_fail;
14862 arg3 = (int) SWIG_AsInt(obj2);
14863 if (PyErr_Occurred()) SWIG_fail;
14864 {
14865 PyThreadState* __tstate = wxPyBeginAllowThreads();
14866 (arg1)->SetDeviceOrigin(arg2,arg3);
14867
14868 wxPyEndAllowThreads(__tstate);
14869 if (PyErr_Occurred()) SWIG_fail;
14870 }
14871 Py_INCREF(Py_None); resultobj = Py_None;
14872 return resultobj;
14873 fail:
14874 return NULL;
14875 }
14876
14877
14878 static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14879 PyObject *resultobj;
14880 wxDC *arg1 = (wxDC *) 0 ;
14881 wxPoint *arg2 = 0 ;
14882 wxPoint temp2 ;
14883 PyObject * obj0 = 0 ;
14884 PyObject * obj1 = 0 ;
14885 char *kwnames[] = {
14886 (char *) "self",(char *) "point", NULL
14887 };
14888
14889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14892 {
14893 arg2 = &temp2;
14894 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14895 }
14896 {
14897 PyThreadState* __tstate = wxPyBeginAllowThreads();
14898 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
14899
14900 wxPyEndAllowThreads(__tstate);
14901 if (PyErr_Occurred()) SWIG_fail;
14902 }
14903 Py_INCREF(Py_None); resultobj = Py_None;
14904 return resultobj;
14905 fail:
14906 return NULL;
14907 }
14908
14909
14910 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14911 PyObject *resultobj;
14912 wxDC *arg1 = (wxDC *) 0 ;
14913 bool arg2 ;
14914 bool arg3 ;
14915 PyObject * obj0 = 0 ;
14916 PyObject * obj1 = 0 ;
14917 PyObject * obj2 = 0 ;
14918 char *kwnames[] = {
14919 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14920 };
14921
14922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14925 arg2 = (bool) SWIG_AsBool(obj1);
14926 if (PyErr_Occurred()) SWIG_fail;
14927 arg3 = (bool) SWIG_AsBool(obj2);
14928 if (PyErr_Occurred()) SWIG_fail;
14929 {
14930 PyThreadState* __tstate = wxPyBeginAllowThreads();
14931 (arg1)->SetAxisOrientation(arg2,arg3);
14932
14933 wxPyEndAllowThreads(__tstate);
14934 if (PyErr_Occurred()) SWIG_fail;
14935 }
14936 Py_INCREF(Py_None); resultobj = Py_None;
14937 return resultobj;
14938 fail:
14939 return NULL;
14940 }
14941
14942
14943 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14944 PyObject *resultobj;
14945 wxDC *arg1 = (wxDC *) 0 ;
14946 int result;
14947 PyObject * obj0 = 0 ;
14948 char *kwnames[] = {
14949 (char *) "self", NULL
14950 };
14951
14952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14955 {
14956 PyThreadState* __tstate = wxPyBeginAllowThreads();
14957 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14958
14959 wxPyEndAllowThreads(__tstate);
14960 if (PyErr_Occurred()) SWIG_fail;
14961 }
14962 resultobj = SWIG_FromInt((int)result);
14963 return resultobj;
14964 fail:
14965 return NULL;
14966 }
14967
14968
14969 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14970 PyObject *resultobj;
14971 wxDC *arg1 = (wxDC *) 0 ;
14972 int arg2 ;
14973 PyObject * obj0 = 0 ;
14974 PyObject * obj1 = 0 ;
14975 char *kwnames[] = {
14976 (char *) "self",(char *) "function", NULL
14977 };
14978
14979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14982 arg2 = (int) SWIG_AsInt(obj1);
14983 if (PyErr_Occurred()) SWIG_fail;
14984 {
14985 PyThreadState* __tstate = wxPyBeginAllowThreads();
14986 (arg1)->SetLogicalFunction(arg2);
14987
14988 wxPyEndAllowThreads(__tstate);
14989 if (PyErr_Occurred()) SWIG_fail;
14990 }
14991 Py_INCREF(Py_None); resultobj = Py_None;
14992 return resultobj;
14993 fail:
14994 return NULL;
14995 }
14996
14997
14998 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14999 PyObject *resultobj;
15000 wxDC *arg1 = (wxDC *) 0 ;
15001 bool arg2 ;
15002 PyObject * obj0 = 0 ;
15003 PyObject * obj1 = 0 ;
15004 char *kwnames[] = {
15005 (char *) "self",(char *) "opt", NULL
15006 };
15007
15008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
15009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15011 arg2 = (bool) SWIG_AsBool(obj1);
15012 if (PyErr_Occurred()) SWIG_fail;
15013 {
15014 PyThreadState* __tstate = wxPyBeginAllowThreads();
15015 (arg1)->SetOptimization(arg2);
15016
15017 wxPyEndAllowThreads(__tstate);
15018 if (PyErr_Occurred()) SWIG_fail;
15019 }
15020 Py_INCREF(Py_None); resultobj = Py_None;
15021 return resultobj;
15022 fail:
15023 return NULL;
15024 }
15025
15026
15027 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
15028 PyObject *resultobj;
15029 wxDC *arg1 = (wxDC *) 0 ;
15030 bool result;
15031 PyObject * obj0 = 0 ;
15032 char *kwnames[] = {
15033 (char *) "self", NULL
15034 };
15035
15036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
15037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15039 {
15040 PyThreadState* __tstate = wxPyBeginAllowThreads();
15041 result = (bool)(arg1)->GetOptimization();
15042
15043 wxPyEndAllowThreads(__tstate);
15044 if (PyErr_Occurred()) SWIG_fail;
15045 }
15046 {
15047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15048 }
15049 return resultobj;
15050 fail:
15051 return NULL;
15052 }
15053
15054
15055 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15056 PyObject *resultobj;
15057 wxDC *arg1 = (wxDC *) 0 ;
15058 int arg2 ;
15059 int arg3 ;
15060 PyObject * obj0 = 0 ;
15061 PyObject * obj1 = 0 ;
15062 PyObject * obj2 = 0 ;
15063 char *kwnames[] = {
15064 (char *) "self",(char *) "x",(char *) "y", NULL
15065 };
15066
15067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
15068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15070 arg2 = (int) SWIG_AsInt(obj1);
15071 if (PyErr_Occurred()) SWIG_fail;
15072 arg3 = (int) SWIG_AsInt(obj2);
15073 if (PyErr_Occurred()) SWIG_fail;
15074 {
15075 PyThreadState* __tstate = wxPyBeginAllowThreads();
15076 (arg1)->CalcBoundingBox(arg2,arg3);
15077
15078 wxPyEndAllowThreads(__tstate);
15079 if (PyErr_Occurred()) SWIG_fail;
15080 }
15081 Py_INCREF(Py_None); resultobj = Py_None;
15082 return resultobj;
15083 fail:
15084 return NULL;
15085 }
15086
15087
15088 static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
15089 PyObject *resultobj;
15090 wxDC *arg1 = (wxDC *) 0 ;
15091 wxPoint *arg2 = 0 ;
15092 wxPoint temp2 ;
15093 PyObject * obj0 = 0 ;
15094 PyObject * obj1 = 0 ;
15095 char *kwnames[] = {
15096 (char *) "self",(char *) "point", NULL
15097 };
15098
15099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
15100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15102 {
15103 arg2 = &temp2;
15104 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15105 }
15106 {
15107 PyThreadState* __tstate = wxPyBeginAllowThreads();
15108 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
15109
15110 wxPyEndAllowThreads(__tstate);
15111 if (PyErr_Occurred()) SWIG_fail;
15112 }
15113 Py_INCREF(Py_None); resultobj = Py_None;
15114 return resultobj;
15115 fail:
15116 return NULL;
15117 }
15118
15119
15120 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15121 PyObject *resultobj;
15122 wxDC *arg1 = (wxDC *) 0 ;
15123 PyObject * obj0 = 0 ;
15124 char *kwnames[] = {
15125 (char *) "self", NULL
15126 };
15127
15128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
15129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15131 {
15132 PyThreadState* __tstate = wxPyBeginAllowThreads();
15133 (arg1)->ResetBoundingBox();
15134
15135 wxPyEndAllowThreads(__tstate);
15136 if (PyErr_Occurred()) SWIG_fail;
15137 }
15138 Py_INCREF(Py_None); resultobj = Py_None;
15139 return resultobj;
15140 fail:
15141 return NULL;
15142 }
15143
15144
15145 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
15146 PyObject *resultobj;
15147 wxDC *arg1 = (wxDC *) 0 ;
15148 int result;
15149 PyObject * obj0 = 0 ;
15150 char *kwnames[] = {
15151 (char *) "self", NULL
15152 };
15153
15154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
15155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15157 {
15158 PyThreadState* __tstate = wxPyBeginAllowThreads();
15159 result = (int)((wxDC const *)arg1)->MinX();
15160
15161 wxPyEndAllowThreads(__tstate);
15162 if (PyErr_Occurred()) SWIG_fail;
15163 }
15164 resultobj = SWIG_FromInt((int)result);
15165 return resultobj;
15166 fail:
15167 return NULL;
15168 }
15169
15170
15171 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
15172 PyObject *resultobj;
15173 wxDC *arg1 = (wxDC *) 0 ;
15174 int result;
15175 PyObject * obj0 = 0 ;
15176 char *kwnames[] = {
15177 (char *) "self", NULL
15178 };
15179
15180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
15181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15183 {
15184 PyThreadState* __tstate = wxPyBeginAllowThreads();
15185 result = (int)((wxDC const *)arg1)->MaxX();
15186
15187 wxPyEndAllowThreads(__tstate);
15188 if (PyErr_Occurred()) SWIG_fail;
15189 }
15190 resultobj = SWIG_FromInt((int)result);
15191 return resultobj;
15192 fail:
15193 return NULL;
15194 }
15195
15196
15197 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
15198 PyObject *resultobj;
15199 wxDC *arg1 = (wxDC *) 0 ;
15200 int result;
15201 PyObject * obj0 = 0 ;
15202 char *kwnames[] = {
15203 (char *) "self", NULL
15204 };
15205
15206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
15207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15209 {
15210 PyThreadState* __tstate = wxPyBeginAllowThreads();
15211 result = (int)((wxDC const *)arg1)->MinY();
15212
15213 wxPyEndAllowThreads(__tstate);
15214 if (PyErr_Occurred()) SWIG_fail;
15215 }
15216 resultobj = SWIG_FromInt((int)result);
15217 return resultobj;
15218 fail:
15219 return NULL;
15220 }
15221
15222
15223 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
15224 PyObject *resultobj;
15225 wxDC *arg1 = (wxDC *) 0 ;
15226 int result;
15227 PyObject * obj0 = 0 ;
15228 char *kwnames[] = {
15229 (char *) "self", NULL
15230 };
15231
15232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
15233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15235 {
15236 PyThreadState* __tstate = wxPyBeginAllowThreads();
15237 result = (int)((wxDC const *)arg1)->MaxY();
15238
15239 wxPyEndAllowThreads(__tstate);
15240 if (PyErr_Occurred()) SWIG_fail;
15241 }
15242 resultobj = SWIG_FromInt((int)result);
15243 return resultobj;
15244 fail:
15245 return NULL;
15246 }
15247
15248
15249 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15250 PyObject *resultobj;
15251 wxDC *arg1 = (wxDC *) 0 ;
15252 int *arg2 = (int *) 0 ;
15253 int *arg3 = (int *) 0 ;
15254 int *arg4 = (int *) 0 ;
15255 int *arg5 = (int *) 0 ;
15256 int temp2 ;
15257 int temp3 ;
15258 int temp4 ;
15259 int temp5 ;
15260 PyObject * obj0 = 0 ;
15261 char *kwnames[] = {
15262 (char *) "self", NULL
15263 };
15264
15265 arg2 = &temp2;
15266 arg3 = &temp3;
15267 arg4 = &temp4;
15268 arg5 = &temp5;
15269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
15270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15272 {
15273 PyThreadState* __tstate = wxPyBeginAllowThreads();
15274 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
15275
15276 wxPyEndAllowThreads(__tstate);
15277 if (PyErr_Occurred()) SWIG_fail;
15278 }
15279 Py_INCREF(Py_None); resultobj = Py_None;
15280 {
15281 PyObject *o = PyInt_FromLong((long) (*arg2));
15282 resultobj = t_output_helper(resultobj,o);
15283 }
15284 {
15285 PyObject *o = PyInt_FromLong((long) (*arg3));
15286 resultobj = t_output_helper(resultobj,o);
15287 }
15288 {
15289 PyObject *o = PyInt_FromLong((long) (*arg4));
15290 resultobj = t_output_helper(resultobj,o);
15291 }
15292 {
15293 PyObject *o = PyInt_FromLong((long) (*arg5));
15294 resultobj = t_output_helper(resultobj,o);
15295 }
15296 return resultobj;
15297 fail:
15298 return NULL;
15299 }
15300
15301
15302 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
15303 PyObject *resultobj;
15304 wxDC *arg1 = (wxDC *) 0 ;
15305 PyObject *arg2 = (PyObject *) 0 ;
15306 PyObject *arg3 = (PyObject *) 0 ;
15307 PyObject *arg4 = (PyObject *) 0 ;
15308 PyObject *result;
15309 PyObject * obj0 = 0 ;
15310 PyObject * obj1 = 0 ;
15311 PyObject * obj2 = 0 ;
15312 PyObject * obj3 = 0 ;
15313 char *kwnames[] = {
15314 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15315 };
15316
15317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15320 arg2 = obj1;
15321 arg3 = obj2;
15322 arg4 = obj3;
15323 {
15324 PyThreadState* __tstate = wxPyBeginAllowThreads();
15325 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
15326
15327 wxPyEndAllowThreads(__tstate);
15328 if (PyErr_Occurred()) SWIG_fail;
15329 }
15330 resultobj = result;
15331 return resultobj;
15332 fail:
15333 return NULL;
15334 }
15335
15336
15337 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
15338 PyObject *resultobj;
15339 wxDC *arg1 = (wxDC *) 0 ;
15340 PyObject *arg2 = (PyObject *) 0 ;
15341 PyObject *arg3 = (PyObject *) 0 ;
15342 PyObject *arg4 = (PyObject *) 0 ;
15343 PyObject *result;
15344 PyObject * obj0 = 0 ;
15345 PyObject * obj1 = 0 ;
15346 PyObject * obj2 = 0 ;
15347 PyObject * obj3 = 0 ;
15348 char *kwnames[] = {
15349 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15350 };
15351
15352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15355 arg2 = obj1;
15356 arg3 = obj2;
15357 arg4 = obj3;
15358 {
15359 PyThreadState* __tstate = wxPyBeginAllowThreads();
15360 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
15361
15362 wxPyEndAllowThreads(__tstate);
15363 if (PyErr_Occurred()) SWIG_fail;
15364 }
15365 resultobj = result;
15366 return resultobj;
15367 fail:
15368 return NULL;
15369 }
15370
15371
15372 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
15373 PyObject *resultobj;
15374 wxDC *arg1 = (wxDC *) 0 ;
15375 PyObject *arg2 = (PyObject *) 0 ;
15376 PyObject *arg3 = (PyObject *) 0 ;
15377 PyObject *arg4 = (PyObject *) 0 ;
15378 PyObject *result;
15379 PyObject * obj0 = 0 ;
15380 PyObject * obj1 = 0 ;
15381 PyObject * obj2 = 0 ;
15382 PyObject * obj3 = 0 ;
15383 char *kwnames[] = {
15384 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15385 };
15386
15387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15390 arg2 = obj1;
15391 arg3 = obj2;
15392 arg4 = obj3;
15393 {
15394 PyThreadState* __tstate = wxPyBeginAllowThreads();
15395 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
15396
15397 wxPyEndAllowThreads(__tstate);
15398 if (PyErr_Occurred()) SWIG_fail;
15399 }
15400 resultobj = result;
15401 return resultobj;
15402 fail:
15403 return NULL;
15404 }
15405
15406
15407 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
15408 PyObject *resultobj;
15409 wxDC *arg1 = (wxDC *) 0 ;
15410 PyObject *arg2 = (PyObject *) 0 ;
15411 PyObject *arg3 = (PyObject *) 0 ;
15412 PyObject *arg4 = (PyObject *) 0 ;
15413 PyObject *result;
15414 PyObject * obj0 = 0 ;
15415 PyObject * obj1 = 0 ;
15416 PyObject * obj2 = 0 ;
15417 PyObject * obj3 = 0 ;
15418 char *kwnames[] = {
15419 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15420 };
15421
15422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15425 arg2 = obj1;
15426 arg3 = obj2;
15427 arg4 = obj3;
15428 {
15429 PyThreadState* __tstate = wxPyBeginAllowThreads();
15430 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
15431
15432 wxPyEndAllowThreads(__tstate);
15433 if (PyErr_Occurred()) SWIG_fail;
15434 }
15435 resultobj = result;
15436 return resultobj;
15437 fail:
15438 return NULL;
15439 }
15440
15441
15442 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
15443 PyObject *resultobj;
15444 wxDC *arg1 = (wxDC *) 0 ;
15445 PyObject *arg2 = (PyObject *) 0 ;
15446 PyObject *arg3 = (PyObject *) 0 ;
15447 PyObject *arg4 = (PyObject *) 0 ;
15448 PyObject *result;
15449 PyObject * obj0 = 0 ;
15450 PyObject * obj1 = 0 ;
15451 PyObject * obj2 = 0 ;
15452 PyObject * obj3 = 0 ;
15453 char *kwnames[] = {
15454 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15455 };
15456
15457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15460 arg2 = obj1;
15461 arg3 = obj2;
15462 arg4 = obj3;
15463 {
15464 PyThreadState* __tstate = wxPyBeginAllowThreads();
15465 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
15466
15467 wxPyEndAllowThreads(__tstate);
15468 if (PyErr_Occurred()) SWIG_fail;
15469 }
15470 resultobj = result;
15471 return resultobj;
15472 fail:
15473 return NULL;
15474 }
15475
15476
15477 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
15478 PyObject *resultobj;
15479 wxDC *arg1 = (wxDC *) 0 ;
15480 PyObject *arg2 = (PyObject *) 0 ;
15481 PyObject *arg3 = (PyObject *) 0 ;
15482 PyObject *arg4 = (PyObject *) 0 ;
15483 PyObject *arg5 = (PyObject *) 0 ;
15484 PyObject *result;
15485 PyObject * obj0 = 0 ;
15486 PyObject * obj1 = 0 ;
15487 PyObject * obj2 = 0 ;
15488 PyObject * obj3 = 0 ;
15489 PyObject * obj4 = 0 ;
15490 char *kwnames[] = {
15491 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
15492 };
15493
15494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15497 arg2 = obj1;
15498 arg3 = obj2;
15499 arg4 = obj3;
15500 arg5 = obj4;
15501 {
15502 PyThreadState* __tstate = wxPyBeginAllowThreads();
15503 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
15504
15505 wxPyEndAllowThreads(__tstate);
15506 if (PyErr_Occurred()) SWIG_fail;
15507 }
15508 resultobj = result;
15509 return resultobj;
15510 fail:
15511 return NULL;
15512 }
15513
15514
15515 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
15516 PyObject *obj;
15517 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15518 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15519 Py_INCREF(obj);
15520 return Py_BuildValue((char *)"");
15521 }
15522 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15523 PyObject *resultobj;
15524 wxMemoryDC *result;
15525 char *kwnames[] = {
15526 NULL
15527 };
15528
15529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15530 {
15531 PyThreadState* __tstate = wxPyBeginAllowThreads();
15532 result = (wxMemoryDC *)new wxMemoryDC();
15533
15534 wxPyEndAllowThreads(__tstate);
15535 if (PyErr_Occurred()) SWIG_fail;
15536 }
15537 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15538 return resultobj;
15539 fail:
15540 return NULL;
15541 }
15542
15543
15544 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15545 PyObject *resultobj;
15546 wxDC *arg1 = (wxDC *) 0 ;
15547 wxMemoryDC *result;
15548 PyObject * obj0 = 0 ;
15549 char *kwnames[] = {
15550 (char *) "oldDC", NULL
15551 };
15552
15553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15556 {
15557 PyThreadState* __tstate = wxPyBeginAllowThreads();
15558 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15559
15560 wxPyEndAllowThreads(__tstate);
15561 if (PyErr_Occurred()) SWIG_fail;
15562 }
15563 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15564 return resultobj;
15565 fail:
15566 return NULL;
15567 }
15568
15569
15570 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
15571 PyObject *resultobj;
15572 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15573 wxBitmap *arg2 = 0 ;
15574 PyObject * obj0 = 0 ;
15575 PyObject * obj1 = 0 ;
15576 char *kwnames[] = {
15577 (char *) "self",(char *) "bitmap", NULL
15578 };
15579
15580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15583 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15584 SWIG_POINTER_EXCEPTION | 0)) == -1)
15585 SWIG_fail;
15586 if (arg2 == NULL) {
15587 PyErr_SetString(PyExc_TypeError,"null reference");
15588 SWIG_fail;
15589 }
15590 {
15591 PyThreadState* __tstate = wxPyBeginAllowThreads();
15592 (arg1)->SelectObject((wxBitmap const &)*arg2);
15593
15594 wxPyEndAllowThreads(__tstate);
15595 if (PyErr_Occurred()) SWIG_fail;
15596 }
15597 Py_INCREF(Py_None); resultobj = Py_None;
15598 return resultobj;
15599 fail:
15600 return NULL;
15601 }
15602
15603
15604 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
15605 PyObject *obj;
15606 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15607 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15608 Py_INCREF(obj);
15609 return Py_BuildValue((char *)"");
15610 }
15611 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
15612 PyObject *resultobj;
15613 wxDC *arg1 = (wxDC *) 0 ;
15614 wxBitmap *arg2 = 0 ;
15615 wxBufferedDC *result;
15616 PyObject * obj0 = 0 ;
15617 PyObject * obj1 = 0 ;
15618
15619 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15622 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15623 SWIG_POINTER_EXCEPTION | 0)) == -1)
15624 SWIG_fail;
15625 if (arg2 == NULL) {
15626 PyErr_SetString(PyExc_TypeError,"null reference");
15627 SWIG_fail;
15628 }
15629 {
15630 PyThreadState* __tstate = wxPyBeginAllowThreads();
15631 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15632
15633 wxPyEndAllowThreads(__tstate);
15634 if (PyErr_Occurred()) SWIG_fail;
15635 }
15636 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15637 return resultobj;
15638 fail:
15639 return NULL;
15640 }
15641
15642
15643 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
15644 PyObject *resultobj;
15645 wxDC *arg1 = (wxDC *) 0 ;
15646 wxSize *arg2 = 0 ;
15647 wxBufferedDC *result;
15648 wxSize temp2 ;
15649 PyObject * obj0 = 0 ;
15650 PyObject * obj1 = 0 ;
15651
15652 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15655 {
15656 arg2 = &temp2;
15657 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15658 }
15659 {
15660 PyThreadState* __tstate = wxPyBeginAllowThreads();
15661 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15662
15663 wxPyEndAllowThreads(__tstate);
15664 if (PyErr_Occurred()) SWIG_fail;
15665 }
15666 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15667 return resultobj;
15668 fail:
15669 return NULL;
15670 }
15671
15672
15673 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15674 int argc;
15675 PyObject *argv[3];
15676 int ii;
15677
15678 argc = PyObject_Length(args);
15679 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15680 argv[ii] = PyTuple_GetItem(args,ii);
15681 }
15682 if (argc == 2) {
15683 int _v;
15684 {
15685 void *ptr;
15686 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15687 _v = 0;
15688 PyErr_Clear();
15689 } else {
15690 _v = 1;
15691 }
15692 }
15693 if (_v) {
15694 {
15695 void *ptr;
15696 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15697 _v = 0;
15698 PyErr_Clear();
15699 } else {
15700 _v = 1;
15701 }
15702 }
15703 if (_v) {
15704 return _wrap_new_BufferedDC__SWIG_0(self,args);
15705 }
15706 }
15707 }
15708 if (argc == 2) {
15709 int _v;
15710 {
15711 void *ptr;
15712 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15713 _v = 0;
15714 PyErr_Clear();
15715 } else {
15716 _v = 1;
15717 }
15718 }
15719 if (_v) {
15720 {
15721 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15722 }
15723 if (_v) {
15724 return _wrap_new_BufferedDC__SWIG_1(self,args);
15725 }
15726 }
15727 }
15728
15729 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15730 return NULL;
15731 }
15732
15733
15734 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
15735 PyObject *resultobj;
15736 wxDC *arg1 = (wxDC *) 0 ;
15737 wxSize *arg2 = 0 ;
15738 wxBufferedDC *result;
15739 wxSize temp2 ;
15740 PyObject * obj0 = 0 ;
15741 PyObject * obj1 = 0 ;
15742
15743 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
15744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15746 {
15747 arg2 = &temp2;
15748 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15749 }
15750 {
15751 PyThreadState* __tstate = wxPyBeginAllowThreads();
15752 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15753
15754 wxPyEndAllowThreads(__tstate);
15755 if (PyErr_Occurred()) SWIG_fail;
15756 }
15757 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15758 return resultobj;
15759 fail:
15760 return NULL;
15761 }
15762
15763
15764 static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15765 PyObject *resultobj;
15766 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15767 PyObject * obj0 = 0 ;
15768 char *kwnames[] = {
15769 (char *) "self", NULL
15770 };
15771
15772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15775 {
15776 PyThreadState* __tstate = wxPyBeginAllowThreads();
15777 delete arg1;
15778
15779 wxPyEndAllowThreads(__tstate);
15780 if (PyErr_Occurred()) SWIG_fail;
15781 }
15782 Py_INCREF(Py_None); resultobj = Py_None;
15783 return resultobj;
15784 fail:
15785 return NULL;
15786 }
15787
15788
15789 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15790 PyObject *resultobj;
15791 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15792 PyObject * obj0 = 0 ;
15793 char *kwnames[] = {
15794 (char *) "self", NULL
15795 };
15796
15797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15800 {
15801 PyThreadState* __tstate = wxPyBeginAllowThreads();
15802 (arg1)->UnMask();
15803
15804 wxPyEndAllowThreads(__tstate);
15805 if (PyErr_Occurred()) SWIG_fail;
15806 }
15807 Py_INCREF(Py_None); resultobj = Py_None;
15808 return resultobj;
15809 fail:
15810 return NULL;
15811 }
15812
15813
15814 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15815 PyObject *obj;
15816 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15817 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15818 Py_INCREF(obj);
15819 return Py_BuildValue((char *)"");
15820 }
15821 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15822 PyObject *resultobj;
15823 wxWindow *arg1 = (wxWindow *) 0 ;
15824 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15825 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15826 wxBufferedPaintDC *result;
15827 PyObject * obj0 = 0 ;
15828 PyObject * obj1 = 0 ;
15829 char *kwnames[] = {
15830 (char *) "window",(char *) "buffer", NULL
15831 };
15832
15833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15836 if (obj1) {
15837 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15838 SWIG_POINTER_EXCEPTION | 0)) == -1)
15839 SWIG_fail;
15840 if (arg2 == NULL) {
15841 PyErr_SetString(PyExc_TypeError,"null reference");
15842 SWIG_fail;
15843 }
15844 }
15845 {
15846 PyThreadState* __tstate = wxPyBeginAllowThreads();
15847 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15848
15849 wxPyEndAllowThreads(__tstate);
15850 if (PyErr_Occurred()) SWIG_fail;
15851 }
15852 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15853 return resultobj;
15854 fail:
15855 return NULL;
15856 }
15857
15858
15859 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15860 PyObject *obj;
15861 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15862 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15863 Py_INCREF(obj);
15864 return Py_BuildValue((char *)"");
15865 }
15866 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15867 PyObject *resultobj;
15868 wxScreenDC *result;
15869 char *kwnames[] = {
15870 NULL
15871 };
15872
15873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15874 {
15875 PyThreadState* __tstate = wxPyBeginAllowThreads();
15876 result = (wxScreenDC *)new wxScreenDC();
15877
15878 wxPyEndAllowThreads(__tstate);
15879 if (PyErr_Occurred()) SWIG_fail;
15880 }
15881 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15882 return resultobj;
15883 fail:
15884 return NULL;
15885 }
15886
15887
15888 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15889 PyObject *resultobj;
15890 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15891 wxWindow *arg2 = (wxWindow *) 0 ;
15892 bool result;
15893 PyObject * obj0 = 0 ;
15894 PyObject * obj1 = 0 ;
15895 char *kwnames[] = {
15896 (char *) "self",(char *) "window", NULL
15897 };
15898
15899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15902 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15904 {
15905 PyThreadState* __tstate = wxPyBeginAllowThreads();
15906 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15907
15908 wxPyEndAllowThreads(__tstate);
15909 if (PyErr_Occurred()) SWIG_fail;
15910 }
15911 {
15912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15913 }
15914 return resultobj;
15915 fail:
15916 return NULL;
15917 }
15918
15919
15920 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15921 PyObject *resultobj;
15922 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15923 wxRect *arg2 = (wxRect *) NULL ;
15924 bool result;
15925 PyObject * obj0 = 0 ;
15926 PyObject * obj1 = 0 ;
15927 char *kwnames[] = {
15928 (char *) "self",(char *) "rect", NULL
15929 };
15930
15931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15934 if (obj1) {
15935 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15937 }
15938 {
15939 PyThreadState* __tstate = wxPyBeginAllowThreads();
15940 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15941
15942 wxPyEndAllowThreads(__tstate);
15943 if (PyErr_Occurred()) SWIG_fail;
15944 }
15945 {
15946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15947 }
15948 return resultobj;
15949 fail:
15950 return NULL;
15951 }
15952
15953
15954 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15955 PyObject *resultobj;
15956 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15957 bool result;
15958 PyObject * obj0 = 0 ;
15959 char *kwnames[] = {
15960 (char *) "self", NULL
15961 };
15962
15963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15966 {
15967 PyThreadState* __tstate = wxPyBeginAllowThreads();
15968 result = (bool)(arg1)->EndDrawingOnTop();
15969
15970 wxPyEndAllowThreads(__tstate);
15971 if (PyErr_Occurred()) SWIG_fail;
15972 }
15973 {
15974 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15975 }
15976 return resultobj;
15977 fail:
15978 return NULL;
15979 }
15980
15981
15982 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15983 PyObject *obj;
15984 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15985 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15986 Py_INCREF(obj);
15987 return Py_BuildValue((char *)"");
15988 }
15989 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15990 PyObject *resultobj;
15991 wxWindow *arg1 = (wxWindow *) 0 ;
15992 wxClientDC *result;
15993 PyObject * obj0 = 0 ;
15994 char *kwnames[] = {
15995 (char *) "win", NULL
15996 };
15997
15998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16001 {
16002 PyThreadState* __tstate = wxPyBeginAllowThreads();
16003 result = (wxClientDC *)new wxClientDC(arg1);
16004
16005 wxPyEndAllowThreads(__tstate);
16006 if (PyErr_Occurred()) SWIG_fail;
16007 }
16008 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
16009 return resultobj;
16010 fail:
16011 return NULL;
16012 }
16013
16014
16015 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
16016 PyObject *obj;
16017 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16018 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
16019 Py_INCREF(obj);
16020 return Py_BuildValue((char *)"");
16021 }
16022 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16023 PyObject *resultobj;
16024 wxWindow *arg1 = (wxWindow *) 0 ;
16025 wxPaintDC *result;
16026 PyObject * obj0 = 0 ;
16027 char *kwnames[] = {
16028 (char *) "win", NULL
16029 };
16030
16031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
16032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16034 {
16035 PyThreadState* __tstate = wxPyBeginAllowThreads();
16036 result = (wxPaintDC *)new wxPaintDC(arg1);
16037
16038 wxPyEndAllowThreads(__tstate);
16039 if (PyErr_Occurred()) SWIG_fail;
16040 }
16041 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
16042 return resultobj;
16043 fail:
16044 return NULL;
16045 }
16046
16047
16048 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
16049 PyObject *obj;
16050 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16051 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
16052 Py_INCREF(obj);
16053 return Py_BuildValue((char *)"");
16054 }
16055 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16056 PyObject *resultobj;
16057 wxWindow *arg1 = (wxWindow *) 0 ;
16058 wxWindowDC *result;
16059 PyObject * obj0 = 0 ;
16060 char *kwnames[] = {
16061 (char *) "win", NULL
16062 };
16063
16064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
16065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16067 {
16068 PyThreadState* __tstate = wxPyBeginAllowThreads();
16069 result = (wxWindowDC *)new wxWindowDC(arg1);
16070
16071 wxPyEndAllowThreads(__tstate);
16072 if (PyErr_Occurred()) SWIG_fail;
16073 }
16074 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
16075 return resultobj;
16076 fail:
16077 return NULL;
16078 }
16079
16080
16081 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
16082 PyObject *obj;
16083 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16084 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
16085 Py_INCREF(obj);
16086 return Py_BuildValue((char *)"");
16087 }
16088 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16089 PyObject *resultobj;
16090 wxDC *arg1 = 0 ;
16091 bool arg2 ;
16092 wxMirrorDC *result;
16093 PyObject * obj0 = 0 ;
16094 PyObject * obj1 = 0 ;
16095 char *kwnames[] = {
16096 (char *) "dc",(char *) "mirror", NULL
16097 };
16098
16099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
16100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
16101 SWIG_POINTER_EXCEPTION | 0)) == -1)
16102 SWIG_fail;
16103 if (arg1 == NULL) {
16104 PyErr_SetString(PyExc_TypeError,"null reference");
16105 SWIG_fail;
16106 }
16107 arg2 = (bool) SWIG_AsBool(obj1);
16108 if (PyErr_Occurred()) SWIG_fail;
16109 {
16110 PyThreadState* __tstate = wxPyBeginAllowThreads();
16111 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
16112
16113 wxPyEndAllowThreads(__tstate);
16114 if (PyErr_Occurred()) SWIG_fail;
16115 }
16116 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
16117 return resultobj;
16118 fail:
16119 return NULL;
16120 }
16121
16122
16123 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
16124 PyObject *obj;
16125 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16126 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
16127 Py_INCREF(obj);
16128 return Py_BuildValue((char *)"");
16129 }
16130 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16131 PyObject *resultobj;
16132 wxPrintData *arg1 = 0 ;
16133 wxPostScriptDC *result;
16134 PyObject * obj0 = 0 ;
16135 char *kwnames[] = {
16136 (char *) "printData", NULL
16137 };
16138
16139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
16140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16141 SWIG_POINTER_EXCEPTION | 0)) == -1)
16142 SWIG_fail;
16143 if (arg1 == NULL) {
16144 PyErr_SetString(PyExc_TypeError,"null reference");
16145 SWIG_fail;
16146 }
16147 {
16148 PyThreadState* __tstate = wxPyBeginAllowThreads();
16149 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
16150
16151 wxPyEndAllowThreads(__tstate);
16152 if (PyErr_Occurred()) SWIG_fail;
16153 }
16154 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
16155 return resultobj;
16156 fail:
16157 return NULL;
16158 }
16159
16160
16161 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
16162 PyObject *resultobj;
16163 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16164 wxPrintData *result;
16165 PyObject * obj0 = 0 ;
16166 char *kwnames[] = {
16167 (char *) "self", NULL
16168 };
16169
16170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
16171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16173 {
16174 PyThreadState* __tstate = wxPyBeginAllowThreads();
16175 {
16176 wxPrintData &_result_ref = (arg1)->GetPrintData();
16177 result = (wxPrintData *) &_result_ref;
16178 }
16179
16180 wxPyEndAllowThreads(__tstate);
16181 if (PyErr_Occurred()) SWIG_fail;
16182 }
16183 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
16184 return resultobj;
16185 fail:
16186 return NULL;
16187 }
16188
16189
16190 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
16191 PyObject *resultobj;
16192 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16193 wxPrintData *arg2 = 0 ;
16194 PyObject * obj0 = 0 ;
16195 PyObject * obj1 = 0 ;
16196 char *kwnames[] = {
16197 (char *) "self",(char *) "data", NULL
16198 };
16199
16200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
16201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16203 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
16204 SWIG_POINTER_EXCEPTION | 0)) == -1)
16205 SWIG_fail;
16206 if (arg2 == NULL) {
16207 PyErr_SetString(PyExc_TypeError,"null reference");
16208 SWIG_fail;
16209 }
16210 {
16211 PyThreadState* __tstate = wxPyBeginAllowThreads();
16212 (arg1)->SetPrintData((wxPrintData const &)*arg2);
16213
16214 wxPyEndAllowThreads(__tstate);
16215 if (PyErr_Occurred()) SWIG_fail;
16216 }
16217 Py_INCREF(Py_None); resultobj = Py_None;
16218 return resultobj;
16219 fail:
16220 return NULL;
16221 }
16222
16223
16224 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
16225 PyObject *resultobj;
16226 int arg1 ;
16227 PyObject * obj0 = 0 ;
16228 char *kwnames[] = {
16229 (char *) "ppi", NULL
16230 };
16231
16232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
16233 arg1 = (int) SWIG_AsInt(obj0);
16234 if (PyErr_Occurred()) SWIG_fail;
16235 {
16236 PyThreadState* __tstate = wxPyBeginAllowThreads();
16237 wxPostScriptDC::SetResolution(arg1);
16238
16239 wxPyEndAllowThreads(__tstate);
16240 if (PyErr_Occurred()) SWIG_fail;
16241 }
16242 Py_INCREF(Py_None); resultobj = Py_None;
16243 return resultobj;
16244 fail:
16245 return NULL;
16246 }
16247
16248
16249 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
16250 PyObject *resultobj;
16251 int result;
16252 char *kwnames[] = {
16253 NULL
16254 };
16255
16256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
16257 {
16258 PyThreadState* __tstate = wxPyBeginAllowThreads();
16259 result = (int)wxPostScriptDC::GetResolution();
16260
16261 wxPyEndAllowThreads(__tstate);
16262 if (PyErr_Occurred()) SWIG_fail;
16263 }
16264 resultobj = SWIG_FromInt((int)result);
16265 return resultobj;
16266 fail:
16267 return NULL;
16268 }
16269
16270
16271 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
16272 PyObject *obj;
16273 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16274 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
16275 Py_INCREF(obj);
16276 return Py_BuildValue((char *)"");
16277 }
16278 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
16279 PyObject *resultobj;
16280 wxString const &arg1_defvalue = wxPyEmptyString ;
16281 wxString *arg1 = (wxString *) &arg1_defvalue ;
16282 wxMetaFile *result;
16283 bool temp1 = False ;
16284 PyObject * obj0 = 0 ;
16285 char *kwnames[] = {
16286 (char *) "filename", NULL
16287 };
16288
16289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
16290 if (obj0) {
16291 {
16292 arg1 = wxString_in_helper(obj0);
16293 if (arg1 == NULL) SWIG_fail;
16294 temp1 = True;
16295 }
16296 }
16297 {
16298 PyThreadState* __tstate = wxPyBeginAllowThreads();
16299 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
16300
16301 wxPyEndAllowThreads(__tstate);
16302 if (PyErr_Occurred()) SWIG_fail;
16303 }
16304 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
16305 {
16306 if (temp1)
16307 delete arg1;
16308 }
16309 return resultobj;
16310 fail:
16311 {
16312 if (temp1)
16313 delete arg1;
16314 }
16315 return NULL;
16316 }
16317
16318
16319 static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
16320 PyObject *resultobj;
16321 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16322 PyObject * obj0 = 0 ;
16323 char *kwnames[] = {
16324 (char *) "self", NULL
16325 };
16326
16327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
16328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16330 {
16331 PyThreadState* __tstate = wxPyBeginAllowThreads();
16332 delete arg1;
16333
16334 wxPyEndAllowThreads(__tstate);
16335 if (PyErr_Occurred()) SWIG_fail;
16336 }
16337 Py_INCREF(Py_None); resultobj = Py_None;
16338 return resultobj;
16339 fail:
16340 return NULL;
16341 }
16342
16343
16344 static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
16345 PyObject *resultobj;
16346 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16347 bool result;
16348 PyObject * obj0 = 0 ;
16349 char *kwnames[] = {
16350 (char *) "self", NULL
16351 };
16352
16353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
16354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16356 {
16357 PyThreadState* __tstate = wxPyBeginAllowThreads();
16358 result = (bool)(arg1)->Ok();
16359
16360 wxPyEndAllowThreads(__tstate);
16361 if (PyErr_Occurred()) SWIG_fail;
16362 }
16363 {
16364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16365 }
16366 return resultobj;
16367 fail:
16368 return NULL;
16369 }
16370
16371
16372 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
16373 PyObject *resultobj;
16374 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16375 int arg2 = (int) 0 ;
16376 int arg3 = (int) 0 ;
16377 bool result;
16378 PyObject * obj0 = 0 ;
16379 PyObject * obj1 = 0 ;
16380 PyObject * obj2 = 0 ;
16381 char *kwnames[] = {
16382 (char *) "self",(char *) "width",(char *) "height", NULL
16383 };
16384
16385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
16386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16388 if (obj1) {
16389 arg2 = (int) SWIG_AsInt(obj1);
16390 if (PyErr_Occurred()) SWIG_fail;
16391 }
16392 if (obj2) {
16393 arg3 = (int) SWIG_AsInt(obj2);
16394 if (PyErr_Occurred()) SWIG_fail;
16395 }
16396 {
16397 PyThreadState* __tstate = wxPyBeginAllowThreads();
16398 result = (bool)(arg1)->SetClipboard(arg2,arg3);
16399
16400 wxPyEndAllowThreads(__tstate);
16401 if (PyErr_Occurred()) SWIG_fail;
16402 }
16403 {
16404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16405 }
16406 return resultobj;
16407 fail:
16408 return NULL;
16409 }
16410
16411
16412 static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16413 PyObject *resultobj;
16414 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16415 wxSize result;
16416 PyObject * obj0 = 0 ;
16417 char *kwnames[] = {
16418 (char *) "self", NULL
16419 };
16420
16421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
16422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16424 {
16425 PyThreadState* __tstate = wxPyBeginAllowThreads();
16426 result = (arg1)->GetSize();
16427
16428 wxPyEndAllowThreads(__tstate);
16429 if (PyErr_Occurred()) SWIG_fail;
16430 }
16431 {
16432 wxSize * resultptr;
16433 resultptr = new wxSize((wxSize &) result);
16434 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16435 }
16436 return resultobj;
16437 fail:
16438 return NULL;
16439 }
16440
16441
16442 static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
16443 PyObject *resultobj;
16444 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16445 int result;
16446 PyObject * obj0 = 0 ;
16447 char *kwnames[] = {
16448 (char *) "self", NULL
16449 };
16450
16451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
16452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16454 {
16455 PyThreadState* __tstate = wxPyBeginAllowThreads();
16456 result = (int)(arg1)->GetWidth();
16457
16458 wxPyEndAllowThreads(__tstate);
16459 if (PyErr_Occurred()) SWIG_fail;
16460 }
16461 resultobj = SWIG_FromInt((int)result);
16462 return resultobj;
16463 fail:
16464 return NULL;
16465 }
16466
16467
16468 static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
16469 PyObject *resultobj;
16470 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16471 int result;
16472 PyObject * obj0 = 0 ;
16473 char *kwnames[] = {
16474 (char *) "self", NULL
16475 };
16476
16477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
16478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16480 {
16481 PyThreadState* __tstate = wxPyBeginAllowThreads();
16482 result = (int)(arg1)->GetHeight();
16483
16484 wxPyEndAllowThreads(__tstate);
16485 if (PyErr_Occurred()) SWIG_fail;
16486 }
16487 resultobj = SWIG_FromInt((int)result);
16488 return resultobj;
16489 fail:
16490 return NULL;
16491 }
16492
16493
16494 static PyObject *_wrap_MetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
16495 PyObject *resultobj;
16496 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16497 wxString *result;
16498 PyObject * obj0 = 0 ;
16499 char *kwnames[] = {
16500 (char *) "self", NULL
16501 };
16502
16503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail;
16504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16506 {
16507 PyThreadState* __tstate = wxPyBeginAllowThreads();
16508 {
16509 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
16510 result = (wxString *) &_result_ref;
16511 }
16512
16513 wxPyEndAllowThreads(__tstate);
16514 if (PyErr_Occurred()) SWIG_fail;
16515 }
16516 {
16517 #if wxUSE_UNICODE
16518 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16519 #else
16520 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16521 #endif
16522 }
16523 return resultobj;
16524 fail:
16525 return NULL;
16526 }
16527
16528
16529 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
16530 PyObject *obj;
16531 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16532 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
16533 Py_INCREF(obj);
16534 return Py_BuildValue((char *)"");
16535 }
16536 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16537 PyObject *resultobj;
16538 wxString const &arg1_defvalue = wxPyEmptyString ;
16539 wxString *arg1 = (wxString *) &arg1_defvalue ;
16540 int arg2 = (int) 0 ;
16541 int arg3 = (int) 0 ;
16542 wxString const &arg4_defvalue = wxPyEmptyString ;
16543 wxString *arg4 = (wxString *) &arg4_defvalue ;
16544 wxMetaFileDC *result;
16545 bool temp1 = False ;
16546 bool temp4 = False ;
16547 PyObject * obj0 = 0 ;
16548 PyObject * obj1 = 0 ;
16549 PyObject * obj2 = 0 ;
16550 PyObject * obj3 = 0 ;
16551 char *kwnames[] = {
16552 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
16553 };
16554
16555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16556 if (obj0) {
16557 {
16558 arg1 = wxString_in_helper(obj0);
16559 if (arg1 == NULL) SWIG_fail;
16560 temp1 = True;
16561 }
16562 }
16563 if (obj1) {
16564 arg2 = (int) SWIG_AsInt(obj1);
16565 if (PyErr_Occurred()) SWIG_fail;
16566 }
16567 if (obj2) {
16568 arg3 = (int) SWIG_AsInt(obj2);
16569 if (PyErr_Occurred()) SWIG_fail;
16570 }
16571 if (obj3) {
16572 {
16573 arg4 = wxString_in_helper(obj3);
16574 if (arg4 == NULL) SWIG_fail;
16575 temp4 = True;
16576 }
16577 }
16578 {
16579 PyThreadState* __tstate = wxPyBeginAllowThreads();
16580 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
16581
16582 wxPyEndAllowThreads(__tstate);
16583 if (PyErr_Occurred()) SWIG_fail;
16584 }
16585 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
16586 {
16587 if (temp1)
16588 delete arg1;
16589 }
16590 {
16591 if (temp4)
16592 delete arg4;
16593 }
16594 return resultobj;
16595 fail:
16596 {
16597 if (temp1)
16598 delete arg1;
16599 }
16600 {
16601 if (temp4)
16602 delete arg4;
16603 }
16604 return NULL;
16605 }
16606
16607
16608 static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
16609 PyObject *resultobj;
16610 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
16611 wxMetaFile *result;
16612 PyObject * obj0 = 0 ;
16613 char *kwnames[] = {
16614 (char *) "self", NULL
16615 };
16616
16617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
16618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
16619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16620 {
16621 PyThreadState* __tstate = wxPyBeginAllowThreads();
16622 result = (wxMetaFile *)(arg1)->Close();
16623
16624 wxPyEndAllowThreads(__tstate);
16625 if (PyErr_Occurred()) SWIG_fail;
16626 }
16627 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
16628 return resultobj;
16629 fail:
16630 return NULL;
16631 }
16632
16633
16634 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
16635 PyObject *obj;
16636 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16637 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16638 Py_INCREF(obj);
16639 return Py_BuildValue((char *)"");
16640 }
16641 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16642 PyObject *resultobj;
16643 wxPrintData *arg1 = 0 ;
16644 wxPrinterDC *result;
16645 PyObject * obj0 = 0 ;
16646 char *kwnames[] = {
16647 (char *) "printData", NULL
16648 };
16649
16650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16652 SWIG_POINTER_EXCEPTION | 0)) == -1)
16653 SWIG_fail;
16654 if (arg1 == NULL) {
16655 PyErr_SetString(PyExc_TypeError,"null reference");
16656 SWIG_fail;
16657 }
16658 {
16659 PyThreadState* __tstate = wxPyBeginAllowThreads();
16660 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16661
16662 wxPyEndAllowThreads(__tstate);
16663 if (PyErr_Occurred()) SWIG_fail;
16664 }
16665 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
16666 return resultobj;
16667 fail:
16668 return NULL;
16669 }
16670
16671
16672 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
16673 PyObject *obj;
16674 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16675 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16676 Py_INCREF(obj);
16677 return Py_BuildValue((char *)"");
16678 }
16679 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16680 PyObject *resultobj;
16681 int arg1 ;
16682 int arg2 ;
16683 int arg3 = (int) True ;
16684 int arg4 = (int) 1 ;
16685 wxImageList *result;
16686 PyObject * obj0 = 0 ;
16687 PyObject * obj1 = 0 ;
16688 PyObject * obj2 = 0 ;
16689 PyObject * obj3 = 0 ;
16690 char *kwnames[] = {
16691 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16692 };
16693
16694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16695 arg1 = (int) SWIG_AsInt(obj0);
16696 if (PyErr_Occurred()) SWIG_fail;
16697 arg2 = (int) SWIG_AsInt(obj1);
16698 if (PyErr_Occurred()) SWIG_fail;
16699 if (obj2) {
16700 arg3 = (int) SWIG_AsInt(obj2);
16701 if (PyErr_Occurred()) SWIG_fail;
16702 }
16703 if (obj3) {
16704 arg4 = (int) SWIG_AsInt(obj3);
16705 if (PyErr_Occurred()) SWIG_fail;
16706 }
16707 {
16708 PyThreadState* __tstate = wxPyBeginAllowThreads();
16709 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16710
16711 wxPyEndAllowThreads(__tstate);
16712 if (PyErr_Occurred()) SWIG_fail;
16713 }
16714 {
16715 resultobj = wxPyMake_wxObject(result);
16716 }
16717 return resultobj;
16718 fail:
16719 return NULL;
16720 }
16721
16722
16723 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16724 PyObject *resultobj;
16725 wxImageList *arg1 = (wxImageList *) 0 ;
16726 PyObject * obj0 = 0 ;
16727 char *kwnames[] = {
16728 (char *) "self", NULL
16729 };
16730
16731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16734 {
16735 PyThreadState* __tstate = wxPyBeginAllowThreads();
16736 delete arg1;
16737
16738 wxPyEndAllowThreads(__tstate);
16739 if (PyErr_Occurred()) SWIG_fail;
16740 }
16741 Py_INCREF(Py_None); resultobj = Py_None;
16742 return resultobj;
16743 fail:
16744 return NULL;
16745 }
16746
16747
16748 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16749 PyObject *resultobj;
16750 wxImageList *arg1 = (wxImageList *) 0 ;
16751 wxBitmap *arg2 = 0 ;
16752 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16753 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16754 int result;
16755 PyObject * obj0 = 0 ;
16756 PyObject * obj1 = 0 ;
16757 PyObject * obj2 = 0 ;
16758 char *kwnames[] = {
16759 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16760 };
16761
16762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16765 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16766 SWIG_POINTER_EXCEPTION | 0)) == -1)
16767 SWIG_fail;
16768 if (arg2 == NULL) {
16769 PyErr_SetString(PyExc_TypeError,"null reference");
16770 SWIG_fail;
16771 }
16772 if (obj2) {
16773 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16774 SWIG_POINTER_EXCEPTION | 0)) == -1)
16775 SWIG_fail;
16776 if (arg3 == NULL) {
16777 PyErr_SetString(PyExc_TypeError,"null reference");
16778 SWIG_fail;
16779 }
16780 }
16781 {
16782 PyThreadState* __tstate = wxPyBeginAllowThreads();
16783 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16784
16785 wxPyEndAllowThreads(__tstate);
16786 if (PyErr_Occurred()) SWIG_fail;
16787 }
16788 resultobj = SWIG_FromInt((int)result);
16789 return resultobj;
16790 fail:
16791 return NULL;
16792 }
16793
16794
16795 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16796 PyObject *resultobj;
16797 wxImageList *arg1 = (wxImageList *) 0 ;
16798 wxBitmap *arg2 = 0 ;
16799 wxColour *arg3 = 0 ;
16800 int result;
16801 wxColour temp3 ;
16802 PyObject * obj0 = 0 ;
16803 PyObject * obj1 = 0 ;
16804 PyObject * obj2 = 0 ;
16805 char *kwnames[] = {
16806 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16807 };
16808
16809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16812 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16813 SWIG_POINTER_EXCEPTION | 0)) == -1)
16814 SWIG_fail;
16815 if (arg2 == NULL) {
16816 PyErr_SetString(PyExc_TypeError,"null reference");
16817 SWIG_fail;
16818 }
16819 {
16820 arg3 = &temp3;
16821 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16822 }
16823 {
16824 PyThreadState* __tstate = wxPyBeginAllowThreads();
16825 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16826
16827 wxPyEndAllowThreads(__tstate);
16828 if (PyErr_Occurred()) SWIG_fail;
16829 }
16830 resultobj = SWIG_FromInt((int)result);
16831 return resultobj;
16832 fail:
16833 return NULL;
16834 }
16835
16836
16837 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16838 PyObject *resultobj;
16839 wxImageList *arg1 = (wxImageList *) 0 ;
16840 wxIcon *arg2 = 0 ;
16841 int result;
16842 PyObject * obj0 = 0 ;
16843 PyObject * obj1 = 0 ;
16844 char *kwnames[] = {
16845 (char *) "self",(char *) "icon", NULL
16846 };
16847
16848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16851 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16852 SWIG_POINTER_EXCEPTION | 0)) == -1)
16853 SWIG_fail;
16854 if (arg2 == NULL) {
16855 PyErr_SetString(PyExc_TypeError,"null reference");
16856 SWIG_fail;
16857 }
16858 {
16859 PyThreadState* __tstate = wxPyBeginAllowThreads();
16860 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16861
16862 wxPyEndAllowThreads(__tstate);
16863 if (PyErr_Occurred()) SWIG_fail;
16864 }
16865 resultobj = SWIG_FromInt((int)result);
16866 return resultobj;
16867 fail:
16868 return NULL;
16869 }
16870
16871
16872 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16873 PyObject *resultobj;
16874 wxImageList *arg1 = (wxImageList *) 0 ;
16875 int arg2 ;
16876 wxBitmap *arg3 = 0 ;
16877 wxBitmap const &arg4_defvalue = wxNullBitmap ;
16878 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
16879 bool result;
16880 PyObject * obj0 = 0 ;
16881 PyObject * obj1 = 0 ;
16882 PyObject * obj2 = 0 ;
16883 PyObject * obj3 = 0 ;
16884 char *kwnames[] = {
16885 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
16886 };
16887
16888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16891 arg2 = (int) SWIG_AsInt(obj1);
16892 if (PyErr_Occurred()) SWIG_fail;
16893 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16894 SWIG_POINTER_EXCEPTION | 0)) == -1)
16895 SWIG_fail;
16896 if (arg3 == NULL) {
16897 PyErr_SetString(PyExc_TypeError,"null reference");
16898 SWIG_fail;
16899 }
16900 if (obj3) {
16901 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
16902 SWIG_POINTER_EXCEPTION | 0)) == -1)
16903 SWIG_fail;
16904 if (arg4 == NULL) {
16905 PyErr_SetString(PyExc_TypeError,"null reference");
16906 SWIG_fail;
16907 }
16908 }
16909 {
16910 PyThreadState* __tstate = wxPyBeginAllowThreads();
16911 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
16912
16913 wxPyEndAllowThreads(__tstate);
16914 if (PyErr_Occurred()) SWIG_fail;
16915 }
16916 {
16917 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16918 }
16919 return resultobj;
16920 fail:
16921 return NULL;
16922 }
16923
16924
16925 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16926 PyObject *resultobj;
16927 wxImageList *arg1 = (wxImageList *) 0 ;
16928 int arg2 ;
16929 wxDC *arg3 = 0 ;
16930 int arg4 ;
16931 int arg5 ;
16932 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16933 bool arg7 = (bool) (bool)False ;
16934 bool result;
16935 PyObject * obj0 = 0 ;
16936 PyObject * obj1 = 0 ;
16937 PyObject * obj2 = 0 ;
16938 PyObject * obj3 = 0 ;
16939 PyObject * obj4 = 0 ;
16940 PyObject * obj5 = 0 ;
16941 PyObject * obj6 = 0 ;
16942 char *kwnames[] = {
16943 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16944 };
16945
16946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16949 arg2 = (int) SWIG_AsInt(obj1);
16950 if (PyErr_Occurred()) SWIG_fail;
16951 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16952 SWIG_POINTER_EXCEPTION | 0)) == -1)
16953 SWIG_fail;
16954 if (arg3 == NULL) {
16955 PyErr_SetString(PyExc_TypeError,"null reference");
16956 SWIG_fail;
16957 }
16958 arg4 = (int) SWIG_AsInt(obj3);
16959 if (PyErr_Occurred()) SWIG_fail;
16960 arg5 = (int) SWIG_AsInt(obj4);
16961 if (PyErr_Occurred()) SWIG_fail;
16962 if (obj5) {
16963 arg6 = (int) SWIG_AsInt(obj5);
16964 if (PyErr_Occurred()) SWIG_fail;
16965 }
16966 if (obj6) {
16967 arg7 = (bool const) SWIG_AsBool(obj6);
16968 if (PyErr_Occurred()) SWIG_fail;
16969 }
16970 {
16971 PyThreadState* __tstate = wxPyBeginAllowThreads();
16972 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16973
16974 wxPyEndAllowThreads(__tstate);
16975 if (PyErr_Occurred()) SWIG_fail;
16976 }
16977 {
16978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16979 }
16980 return resultobj;
16981 fail:
16982 return NULL;
16983 }
16984
16985
16986 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16987 PyObject *resultobj;
16988 wxImageList *arg1 = (wxImageList *) 0 ;
16989 int result;
16990 PyObject * obj0 = 0 ;
16991 char *kwnames[] = {
16992 (char *) "self", NULL
16993 };
16994
16995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16998 {
16999 PyThreadState* __tstate = wxPyBeginAllowThreads();
17000 result = (int)(arg1)->GetImageCount();
17001
17002 wxPyEndAllowThreads(__tstate);
17003 if (PyErr_Occurred()) SWIG_fail;
17004 }
17005 resultobj = SWIG_FromInt((int)result);
17006 return resultobj;
17007 fail:
17008 return NULL;
17009 }
17010
17011
17012 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
17013 PyObject *resultobj;
17014 wxImageList *arg1 = (wxImageList *) 0 ;
17015 int arg2 ;
17016 bool result;
17017 PyObject * obj0 = 0 ;
17018 PyObject * obj1 = 0 ;
17019 char *kwnames[] = {
17020 (char *) "self",(char *) "index", NULL
17021 };
17022
17023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
17024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17026 arg2 = (int) SWIG_AsInt(obj1);
17027 if (PyErr_Occurred()) SWIG_fail;
17028 {
17029 PyThreadState* __tstate = wxPyBeginAllowThreads();
17030 result = (bool)(arg1)->Remove(arg2);
17031
17032 wxPyEndAllowThreads(__tstate);
17033 if (PyErr_Occurred()) SWIG_fail;
17034 }
17035 {
17036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17037 }
17038 return resultobj;
17039 fail:
17040 return NULL;
17041 }
17042
17043
17044 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
17045 PyObject *resultobj;
17046 wxImageList *arg1 = (wxImageList *) 0 ;
17047 bool result;
17048 PyObject * obj0 = 0 ;
17049 char *kwnames[] = {
17050 (char *) "self", NULL
17051 };
17052
17053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
17054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17056 {
17057 PyThreadState* __tstate = wxPyBeginAllowThreads();
17058 result = (bool)(arg1)->RemoveAll();
17059
17060 wxPyEndAllowThreads(__tstate);
17061 if (PyErr_Occurred()) SWIG_fail;
17062 }
17063 {
17064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17065 }
17066 return resultobj;
17067 fail:
17068 return NULL;
17069 }
17070
17071
17072 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
17073 PyObject *resultobj;
17074 wxImageList *arg1 = (wxImageList *) 0 ;
17075 int arg2 ;
17076 int *arg3 = 0 ;
17077 int *arg4 = 0 ;
17078 int temp3 ;
17079 int temp4 ;
17080 PyObject * obj0 = 0 ;
17081 PyObject * obj1 = 0 ;
17082 char *kwnames[] = {
17083 (char *) "self",(char *) "index", NULL
17084 };
17085
17086 arg3 = &temp3;
17087 arg4 = &temp4;
17088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
17089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17091 arg2 = (int) SWIG_AsInt(obj1);
17092 if (PyErr_Occurred()) SWIG_fail;
17093 {
17094 PyThreadState* __tstate = wxPyBeginAllowThreads();
17095 (arg1)->GetSize(arg2,*arg3,*arg4);
17096
17097 wxPyEndAllowThreads(__tstate);
17098 if (PyErr_Occurred()) SWIG_fail;
17099 }
17100 Py_INCREF(Py_None); resultobj = Py_None;
17101 {
17102 PyObject *o = PyInt_FromLong((long) (*arg3));
17103 resultobj = t_output_helper(resultobj,o);
17104 }
17105 {
17106 PyObject *o = PyInt_FromLong((long) (*arg4));
17107 resultobj = t_output_helper(resultobj,o);
17108 }
17109 return resultobj;
17110 fail:
17111 return NULL;
17112 }
17113
17114
17115 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
17116 PyObject *obj;
17117 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17118 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
17119 Py_INCREF(obj);
17120 return Py_BuildValue((char *)"");
17121 }
17122 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
17123 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
17124 return 1;
17125 }
17126
17127
17128 static PyObject *_wrap_NORMAL_FONT_get() {
17129 PyObject *pyobj;
17130
17131 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
17132 return pyobj;
17133 }
17134
17135
17136 static int _wrap_SMALL_FONT_set(PyObject *_val) {
17137 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
17138 return 1;
17139 }
17140
17141
17142 static PyObject *_wrap_SMALL_FONT_get() {
17143 PyObject *pyobj;
17144
17145 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
17146 return pyobj;
17147 }
17148
17149
17150 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
17151 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
17152 return 1;
17153 }
17154
17155
17156 static PyObject *_wrap_ITALIC_FONT_get() {
17157 PyObject *pyobj;
17158
17159 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
17160 return pyobj;
17161 }
17162
17163
17164 static int _wrap_SWISS_FONT_set(PyObject *_val) {
17165 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
17166 return 1;
17167 }
17168
17169
17170 static PyObject *_wrap_SWISS_FONT_get() {
17171 PyObject *pyobj;
17172
17173 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
17174 return pyobj;
17175 }
17176
17177
17178 static int _wrap_RED_PEN_set(PyObject *_val) {
17179 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
17180 return 1;
17181 }
17182
17183
17184 static PyObject *_wrap_RED_PEN_get() {
17185 PyObject *pyobj;
17186
17187 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
17188 return pyobj;
17189 }
17190
17191
17192 static int _wrap_CYAN_PEN_set(PyObject *_val) {
17193 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
17194 return 1;
17195 }
17196
17197
17198 static PyObject *_wrap_CYAN_PEN_get() {
17199 PyObject *pyobj;
17200
17201 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
17202 return pyobj;
17203 }
17204
17205
17206 static int _wrap_GREEN_PEN_set(PyObject *_val) {
17207 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
17208 return 1;
17209 }
17210
17211
17212 static PyObject *_wrap_GREEN_PEN_get() {
17213 PyObject *pyobj;
17214
17215 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
17216 return pyobj;
17217 }
17218
17219
17220 static int _wrap_BLACK_PEN_set(PyObject *_val) {
17221 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
17222 return 1;
17223 }
17224
17225
17226 static PyObject *_wrap_BLACK_PEN_get() {
17227 PyObject *pyobj;
17228
17229 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
17230 return pyobj;
17231 }
17232
17233
17234 static int _wrap_WHITE_PEN_set(PyObject *_val) {
17235 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
17236 return 1;
17237 }
17238
17239
17240 static PyObject *_wrap_WHITE_PEN_get() {
17241 PyObject *pyobj;
17242
17243 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
17244 return pyobj;
17245 }
17246
17247
17248 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
17249 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
17250 return 1;
17251 }
17252
17253
17254 static PyObject *_wrap_TRANSPARENT_PEN_get() {
17255 PyObject *pyobj;
17256
17257 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
17258 return pyobj;
17259 }
17260
17261
17262 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
17263 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
17264 return 1;
17265 }
17266
17267
17268 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
17269 PyObject *pyobj;
17270
17271 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
17272 return pyobj;
17273 }
17274
17275
17276 static int _wrap_GREY_PEN_set(PyObject *_val) {
17277 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
17278 return 1;
17279 }
17280
17281
17282 static PyObject *_wrap_GREY_PEN_get() {
17283 PyObject *pyobj;
17284
17285 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
17286 return pyobj;
17287 }
17288
17289
17290 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
17291 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
17292 return 1;
17293 }
17294
17295
17296 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
17297 PyObject *pyobj;
17298
17299 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17300 return pyobj;
17301 }
17302
17303
17304 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
17305 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
17306 return 1;
17307 }
17308
17309
17310 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
17311 PyObject *pyobj;
17312
17313 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17314 return pyobj;
17315 }
17316
17317
17318 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
17319 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
17320 return 1;
17321 }
17322
17323
17324 static PyObject *_wrap_BLUE_BRUSH_get() {
17325 PyObject *pyobj;
17326
17327 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17328 return pyobj;
17329 }
17330
17331
17332 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
17333 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
17334 return 1;
17335 }
17336
17337
17338 static PyObject *_wrap_GREEN_BRUSH_get() {
17339 PyObject *pyobj;
17340
17341 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17342 return pyobj;
17343 }
17344
17345
17346 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
17347 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
17348 return 1;
17349 }
17350
17351
17352 static PyObject *_wrap_WHITE_BRUSH_get() {
17353 PyObject *pyobj;
17354
17355 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17356 return pyobj;
17357 }
17358
17359
17360 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
17361 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
17362 return 1;
17363 }
17364
17365
17366 static PyObject *_wrap_BLACK_BRUSH_get() {
17367 PyObject *pyobj;
17368
17369 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
17370 return pyobj;
17371 }
17372
17373
17374 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
17375 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
17376 return 1;
17377 }
17378
17379
17380 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
17381 PyObject *pyobj;
17382
17383 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
17384 return pyobj;
17385 }
17386
17387
17388 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
17389 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
17390 return 1;
17391 }
17392
17393
17394 static PyObject *_wrap_CYAN_BRUSH_get() {
17395 PyObject *pyobj;
17396
17397 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17398 return pyobj;
17399 }
17400
17401
17402 static int _wrap_RED_BRUSH_set(PyObject *_val) {
17403 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
17404 return 1;
17405 }
17406
17407
17408 static PyObject *_wrap_RED_BRUSH_get() {
17409 PyObject *pyobj;
17410
17411 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
17412 return pyobj;
17413 }
17414
17415
17416 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
17417 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
17418 return 1;
17419 }
17420
17421
17422 static PyObject *_wrap_GREY_BRUSH_get() {
17423 PyObject *pyobj;
17424
17425 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17426 return pyobj;
17427 }
17428
17429
17430 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
17431 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
17432 return 1;
17433 }
17434
17435
17436 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
17437 PyObject *pyobj;
17438
17439 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17440 return pyobj;
17441 }
17442
17443
17444 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
17445 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
17446 return 1;
17447 }
17448
17449
17450 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
17451 PyObject *pyobj;
17452
17453 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17454 return pyobj;
17455 }
17456
17457
17458 static int _wrap_BLACK_set(PyObject *_val) {
17459 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
17460 return 1;
17461 }
17462
17463
17464 static PyObject *_wrap_BLACK_get() {
17465 PyObject *pyobj;
17466
17467 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
17468 return pyobj;
17469 }
17470
17471
17472 static int _wrap_WHITE_set(PyObject *_val) {
17473 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
17474 return 1;
17475 }
17476
17477
17478 static PyObject *_wrap_WHITE_get() {
17479 PyObject *pyobj;
17480
17481 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
17482 return pyobj;
17483 }
17484
17485
17486 static int _wrap_RED_set(PyObject *_val) {
17487 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
17488 return 1;
17489 }
17490
17491
17492 static PyObject *_wrap_RED_get() {
17493 PyObject *pyobj;
17494
17495 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
17496 return pyobj;
17497 }
17498
17499
17500 static int _wrap_BLUE_set(PyObject *_val) {
17501 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
17502 return 1;
17503 }
17504
17505
17506 static PyObject *_wrap_BLUE_get() {
17507 PyObject *pyobj;
17508
17509 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
17510 return pyobj;
17511 }
17512
17513
17514 static int _wrap_GREEN_set(PyObject *_val) {
17515 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
17516 return 1;
17517 }
17518
17519
17520 static PyObject *_wrap_GREEN_get() {
17521 PyObject *pyobj;
17522
17523 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
17524 return pyobj;
17525 }
17526
17527
17528 static int _wrap_CYAN_set(PyObject *_val) {
17529 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
17530 return 1;
17531 }
17532
17533
17534 static PyObject *_wrap_CYAN_get() {
17535 PyObject *pyobj;
17536
17537 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
17538 return pyobj;
17539 }
17540
17541
17542 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
17543 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
17544 return 1;
17545 }
17546
17547
17548 static PyObject *_wrap_LIGHT_GREY_get() {
17549 PyObject *pyobj;
17550
17551 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
17552 return pyobj;
17553 }
17554
17555
17556 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
17557 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
17558 return 1;
17559 }
17560
17561
17562 static PyObject *_wrap_STANDARD_CURSOR_get() {
17563 PyObject *pyobj;
17564
17565 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
17566 return pyobj;
17567 }
17568
17569
17570 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
17571 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
17572 return 1;
17573 }
17574
17575
17576 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
17577 PyObject *pyobj;
17578
17579 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17580 return pyobj;
17581 }
17582
17583
17584 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
17585 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
17586 return 1;
17587 }
17588
17589
17590 static PyObject *_wrap_CROSS_CURSOR_get() {
17591 PyObject *pyobj;
17592
17593 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17594 return pyobj;
17595 }
17596
17597
17598 static int _wrap_NullBitmap_set(PyObject *_val) {
17599 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
17600 return 1;
17601 }
17602
17603
17604 static PyObject *_wrap_NullBitmap_get() {
17605 PyObject *pyobj;
17606
17607 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
17608 return pyobj;
17609 }
17610
17611
17612 static int _wrap_NullIcon_set(PyObject *_val) {
17613 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
17614 return 1;
17615 }
17616
17617
17618 static PyObject *_wrap_NullIcon_get() {
17619 PyObject *pyobj;
17620
17621 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
17622 return pyobj;
17623 }
17624
17625
17626 static int _wrap_NullCursor_set(PyObject *_val) {
17627 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
17628 return 1;
17629 }
17630
17631
17632 static PyObject *_wrap_NullCursor_get() {
17633 PyObject *pyobj;
17634
17635 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
17636 return pyobj;
17637 }
17638
17639
17640 static int _wrap_NullPen_set(PyObject *_val) {
17641 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
17642 return 1;
17643 }
17644
17645
17646 static PyObject *_wrap_NullPen_get() {
17647 PyObject *pyobj;
17648
17649 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
17650 return pyobj;
17651 }
17652
17653
17654 static int _wrap_NullBrush_set(PyObject *_val) {
17655 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
17656 return 1;
17657 }
17658
17659
17660 static PyObject *_wrap_NullBrush_get() {
17661 PyObject *pyobj;
17662
17663 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
17664 return pyobj;
17665 }
17666
17667
17668 static int _wrap_NullPalette_set(PyObject *_val) {
17669 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17670 return 1;
17671 }
17672
17673
17674 static PyObject *_wrap_NullPalette_get() {
17675 PyObject *pyobj;
17676
17677 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
17678 return pyobj;
17679 }
17680
17681
17682 static int _wrap_NullFont_set(PyObject *_val) {
17683 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17684 return 1;
17685 }
17686
17687
17688 static PyObject *_wrap_NullFont_get() {
17689 PyObject *pyobj;
17690
17691 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
17692 return pyobj;
17693 }
17694
17695
17696 static int _wrap_NullColour_set(PyObject *_val) {
17697 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17698 return 1;
17699 }
17700
17701
17702 static PyObject *_wrap_NullColour_get() {
17703 PyObject *pyobj;
17704
17705 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17706 return pyobj;
17707 }
17708
17709
17710 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
17711 PyObject *resultobj;
17712 wxPenList *arg1 = (wxPenList *) 0 ;
17713 wxPen *arg2 = (wxPen *) 0 ;
17714 PyObject * obj0 = 0 ;
17715 PyObject * obj1 = 0 ;
17716 char *kwnames[] = {
17717 (char *) "self",(char *) "pen", NULL
17718 };
17719
17720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17723 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17725 {
17726 PyThreadState* __tstate = wxPyBeginAllowThreads();
17727 (arg1)->AddPen(arg2);
17728
17729 wxPyEndAllowThreads(__tstate);
17730 if (PyErr_Occurred()) SWIG_fail;
17731 }
17732 Py_INCREF(Py_None); resultobj = Py_None;
17733 return resultobj;
17734 fail:
17735 return NULL;
17736 }
17737
17738
17739 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17740 PyObject *resultobj;
17741 wxPenList *arg1 = (wxPenList *) 0 ;
17742 wxColour *arg2 = 0 ;
17743 int arg3 ;
17744 int arg4 ;
17745 wxPen *result;
17746 wxColour temp2 ;
17747 PyObject * obj0 = 0 ;
17748 PyObject * obj1 = 0 ;
17749 PyObject * obj2 = 0 ;
17750 PyObject * obj3 = 0 ;
17751 char *kwnames[] = {
17752 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17753 };
17754
17755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17758 {
17759 arg2 = &temp2;
17760 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17761 }
17762 arg3 = (int) SWIG_AsInt(obj2);
17763 if (PyErr_Occurred()) SWIG_fail;
17764 arg4 = (int) SWIG_AsInt(obj3);
17765 if (PyErr_Occurred()) SWIG_fail;
17766 {
17767 PyThreadState* __tstate = wxPyBeginAllowThreads();
17768 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17769
17770 wxPyEndAllowThreads(__tstate);
17771 if (PyErr_Occurred()) SWIG_fail;
17772 }
17773 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17774 return resultobj;
17775 fail:
17776 return NULL;
17777 }
17778
17779
17780 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17781 PyObject *resultobj;
17782 wxPenList *arg1 = (wxPenList *) 0 ;
17783 wxPen *arg2 = (wxPen *) 0 ;
17784 PyObject * obj0 = 0 ;
17785 PyObject * obj1 = 0 ;
17786 char *kwnames[] = {
17787 (char *) "self",(char *) "pen", NULL
17788 };
17789
17790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17793 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17795 {
17796 PyThreadState* __tstate = wxPyBeginAllowThreads();
17797 (arg1)->RemovePen(arg2);
17798
17799 wxPyEndAllowThreads(__tstate);
17800 if (PyErr_Occurred()) SWIG_fail;
17801 }
17802 Py_INCREF(Py_None); resultobj = Py_None;
17803 return resultobj;
17804 fail:
17805 return NULL;
17806 }
17807
17808
17809 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17810 PyObject *resultobj;
17811 wxPenList *arg1 = (wxPenList *) 0 ;
17812 int result;
17813 PyObject * obj0 = 0 ;
17814 char *kwnames[] = {
17815 (char *) "self", NULL
17816 };
17817
17818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17821 {
17822 PyThreadState* __tstate = wxPyBeginAllowThreads();
17823 result = (int)(arg1)->GetCount();
17824
17825 wxPyEndAllowThreads(__tstate);
17826 if (PyErr_Occurred()) SWIG_fail;
17827 }
17828 resultobj = SWIG_FromInt((int)result);
17829 return resultobj;
17830 fail:
17831 return NULL;
17832 }
17833
17834
17835 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17836 PyObject *obj;
17837 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17838 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17839 Py_INCREF(obj);
17840 return Py_BuildValue((char *)"");
17841 }
17842 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17843 PyObject *resultobj;
17844 wxBrushList *arg1 = (wxBrushList *) 0 ;
17845 wxBrush *arg2 = (wxBrush *) 0 ;
17846 PyObject * obj0 = 0 ;
17847 PyObject * obj1 = 0 ;
17848 char *kwnames[] = {
17849 (char *) "self",(char *) "brush", NULL
17850 };
17851
17852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17855 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17857 {
17858 PyThreadState* __tstate = wxPyBeginAllowThreads();
17859 (arg1)->AddBrush(arg2);
17860
17861 wxPyEndAllowThreads(__tstate);
17862 if (PyErr_Occurred()) SWIG_fail;
17863 }
17864 Py_INCREF(Py_None); resultobj = Py_None;
17865 return resultobj;
17866 fail:
17867 return NULL;
17868 }
17869
17870
17871 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17872 PyObject *resultobj;
17873 wxBrushList *arg1 = (wxBrushList *) 0 ;
17874 wxColour *arg2 = 0 ;
17875 int arg3 ;
17876 wxBrush *result;
17877 wxColour temp2 ;
17878 PyObject * obj0 = 0 ;
17879 PyObject * obj1 = 0 ;
17880 PyObject * obj2 = 0 ;
17881 char *kwnames[] = {
17882 (char *) "self",(char *) "colour",(char *) "style", NULL
17883 };
17884
17885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17888 {
17889 arg2 = &temp2;
17890 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17891 }
17892 arg3 = (int) SWIG_AsInt(obj2);
17893 if (PyErr_Occurred()) SWIG_fail;
17894 {
17895 PyThreadState* __tstate = wxPyBeginAllowThreads();
17896 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17897
17898 wxPyEndAllowThreads(__tstate);
17899 if (PyErr_Occurred()) SWIG_fail;
17900 }
17901 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17902 return resultobj;
17903 fail:
17904 return NULL;
17905 }
17906
17907
17908 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17909 PyObject *resultobj;
17910 wxBrushList *arg1 = (wxBrushList *) 0 ;
17911 wxBrush *arg2 = (wxBrush *) 0 ;
17912 PyObject * obj0 = 0 ;
17913 PyObject * obj1 = 0 ;
17914 char *kwnames[] = {
17915 (char *) "self",(char *) "brush", NULL
17916 };
17917
17918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17921 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17923 {
17924 PyThreadState* __tstate = wxPyBeginAllowThreads();
17925 (arg1)->RemoveBrush(arg2);
17926
17927 wxPyEndAllowThreads(__tstate);
17928 if (PyErr_Occurred()) SWIG_fail;
17929 }
17930 Py_INCREF(Py_None); resultobj = Py_None;
17931 return resultobj;
17932 fail:
17933 return NULL;
17934 }
17935
17936
17937 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17938 PyObject *resultobj;
17939 wxBrushList *arg1 = (wxBrushList *) 0 ;
17940 int result;
17941 PyObject * obj0 = 0 ;
17942 char *kwnames[] = {
17943 (char *) "self", NULL
17944 };
17945
17946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17949 {
17950 PyThreadState* __tstate = wxPyBeginAllowThreads();
17951 result = (int)(arg1)->GetCount();
17952
17953 wxPyEndAllowThreads(__tstate);
17954 if (PyErr_Occurred()) SWIG_fail;
17955 }
17956 resultobj = SWIG_FromInt((int)result);
17957 return resultobj;
17958 fail:
17959 return NULL;
17960 }
17961
17962
17963 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17964 PyObject *obj;
17965 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17966 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17967 Py_INCREF(obj);
17968 return Py_BuildValue((char *)"");
17969 }
17970 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17971 PyObject *resultobj;
17972 wxColourDatabase *result;
17973 char *kwnames[] = {
17974 NULL
17975 };
17976
17977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17978 {
17979 PyThreadState* __tstate = wxPyBeginAllowThreads();
17980 result = (wxColourDatabase *)new wxColourDatabase();
17981
17982 wxPyEndAllowThreads(__tstate);
17983 if (PyErr_Occurred()) SWIG_fail;
17984 }
17985 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17986 return resultobj;
17987 fail:
17988 return NULL;
17989 }
17990
17991
17992 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17993 PyObject *resultobj;
17994 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17995 PyObject * obj0 = 0 ;
17996 char *kwnames[] = {
17997 (char *) "self", NULL
17998 };
17999
18000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
18001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18003 {
18004 PyThreadState* __tstate = wxPyBeginAllowThreads();
18005 delete arg1;
18006
18007 wxPyEndAllowThreads(__tstate);
18008 if (PyErr_Occurred()) SWIG_fail;
18009 }
18010 Py_INCREF(Py_None); resultobj = Py_None;
18011 return resultobj;
18012 fail:
18013 return NULL;
18014 }
18015
18016
18017 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
18018 PyObject *resultobj;
18019 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18020 wxString *arg2 = 0 ;
18021 wxColour result;
18022 bool temp2 = False ;
18023 PyObject * obj0 = 0 ;
18024 PyObject * obj1 = 0 ;
18025 char *kwnames[] = {
18026 (char *) "self",(char *) "name", NULL
18027 };
18028
18029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
18030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18032 {
18033 arg2 = wxString_in_helper(obj1);
18034 if (arg2 == NULL) SWIG_fail;
18035 temp2 = True;
18036 }
18037 {
18038 PyThreadState* __tstate = wxPyBeginAllowThreads();
18039 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
18040
18041 wxPyEndAllowThreads(__tstate);
18042 if (PyErr_Occurred()) SWIG_fail;
18043 }
18044 {
18045 wxColour * resultptr;
18046 resultptr = new wxColour((wxColour &) result);
18047 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18048 }
18049 {
18050 if (temp2)
18051 delete arg2;
18052 }
18053 return resultobj;
18054 fail:
18055 {
18056 if (temp2)
18057 delete arg2;
18058 }
18059 return NULL;
18060 }
18061
18062
18063 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
18064 PyObject *resultobj;
18065 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18066 wxColour *arg2 = 0 ;
18067 wxString result;
18068 wxColour temp2 ;
18069 PyObject * obj0 = 0 ;
18070 PyObject * obj1 = 0 ;
18071 char *kwnames[] = {
18072 (char *) "self",(char *) "colour", NULL
18073 };
18074
18075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
18076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18078 {
18079 arg2 = &temp2;
18080 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18081 }
18082 {
18083 PyThreadState* __tstate = wxPyBeginAllowThreads();
18084 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
18085
18086 wxPyEndAllowThreads(__tstate);
18087 if (PyErr_Occurred()) SWIG_fail;
18088 }
18089 {
18090 #if wxUSE_UNICODE
18091 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18092 #else
18093 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18094 #endif
18095 }
18096 return resultobj;
18097 fail:
18098 return NULL;
18099 }
18100
18101
18102 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18103 PyObject *resultobj;
18104 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18105 wxString *arg2 = 0 ;
18106 wxColour *arg3 = 0 ;
18107 bool temp2 = False ;
18108 wxColour temp3 ;
18109 PyObject * obj0 = 0 ;
18110 PyObject * obj1 = 0 ;
18111 PyObject * obj2 = 0 ;
18112 char *kwnames[] = {
18113 (char *) "self",(char *) "name",(char *) "colour", NULL
18114 };
18115
18116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
18117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18119 {
18120 arg2 = wxString_in_helper(obj1);
18121 if (arg2 == NULL) SWIG_fail;
18122 temp2 = True;
18123 }
18124 {
18125 arg3 = &temp3;
18126 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18127 }
18128 {
18129 PyThreadState* __tstate = wxPyBeginAllowThreads();
18130 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
18131
18132 wxPyEndAllowThreads(__tstate);
18133 if (PyErr_Occurred()) SWIG_fail;
18134 }
18135 Py_INCREF(Py_None); resultobj = Py_None;
18136 {
18137 if (temp2)
18138 delete arg2;
18139 }
18140 return resultobj;
18141 fail:
18142 {
18143 if (temp2)
18144 delete arg2;
18145 }
18146 return NULL;
18147 }
18148
18149
18150 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
18151 PyObject *resultobj;
18152 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18153 wxString *arg2 = 0 ;
18154 int arg3 ;
18155 int arg4 ;
18156 int arg5 ;
18157 bool temp2 = False ;
18158 PyObject * obj0 = 0 ;
18159 PyObject * obj1 = 0 ;
18160 PyObject * obj2 = 0 ;
18161 PyObject * obj3 = 0 ;
18162 PyObject * obj4 = 0 ;
18163 char *kwnames[] = {
18164 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
18165 };
18166
18167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18170 {
18171 arg2 = wxString_in_helper(obj1);
18172 if (arg2 == NULL) SWIG_fail;
18173 temp2 = True;
18174 }
18175 arg3 = (int) SWIG_AsInt(obj2);
18176 if (PyErr_Occurred()) SWIG_fail;
18177 arg4 = (int) SWIG_AsInt(obj3);
18178 if (PyErr_Occurred()) SWIG_fail;
18179 arg5 = (int) SWIG_AsInt(obj4);
18180 if (PyErr_Occurred()) SWIG_fail;
18181 {
18182 PyThreadState* __tstate = wxPyBeginAllowThreads();
18183 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
18184
18185 wxPyEndAllowThreads(__tstate);
18186 if (PyErr_Occurred()) SWIG_fail;
18187 }
18188 Py_INCREF(Py_None); resultobj = Py_None;
18189 {
18190 if (temp2)
18191 delete arg2;
18192 }
18193 return resultobj;
18194 fail:
18195 {
18196 if (temp2)
18197 delete arg2;
18198 }
18199 return NULL;
18200 }
18201
18202
18203 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
18204 PyObject *obj;
18205 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18206 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
18207 Py_INCREF(obj);
18208 return Py_BuildValue((char *)"");
18209 }
18210 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18211 PyObject *resultobj;
18212 wxFontList *arg1 = (wxFontList *) 0 ;
18213 wxFont *arg2 = (wxFont *) 0 ;
18214 PyObject * obj0 = 0 ;
18215 PyObject * obj1 = 0 ;
18216 char *kwnames[] = {
18217 (char *) "self",(char *) "font", NULL
18218 };
18219
18220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
18221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18223 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18225 {
18226 PyThreadState* __tstate = wxPyBeginAllowThreads();
18227 (arg1)->AddFont(arg2);
18228
18229 wxPyEndAllowThreads(__tstate);
18230 if (PyErr_Occurred()) SWIG_fail;
18231 }
18232 Py_INCREF(Py_None); resultobj = Py_None;
18233 return resultobj;
18234 fail:
18235 return NULL;
18236 }
18237
18238
18239 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18240 PyObject *resultobj;
18241 wxFontList *arg1 = (wxFontList *) 0 ;
18242 int arg2 ;
18243 int arg3 ;
18244 int arg4 ;
18245 int arg5 ;
18246 bool arg6 = (bool) False ;
18247 wxString const &arg7_defvalue = wxPyEmptyString ;
18248 wxString *arg7 = (wxString *) &arg7_defvalue ;
18249 int arg8 = (int) wxFONTENCODING_DEFAULT ;
18250 wxFont *result;
18251 bool temp7 = False ;
18252 PyObject * obj0 = 0 ;
18253 PyObject * obj1 = 0 ;
18254 PyObject * obj2 = 0 ;
18255 PyObject * obj3 = 0 ;
18256 PyObject * obj4 = 0 ;
18257 PyObject * obj5 = 0 ;
18258 PyObject * obj6 = 0 ;
18259 PyObject * obj7 = 0 ;
18260 char *kwnames[] = {
18261 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
18262 };
18263
18264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
18265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18267 arg2 = (int) SWIG_AsInt(obj1);
18268 if (PyErr_Occurred()) SWIG_fail;
18269 arg3 = (int) SWIG_AsInt(obj2);
18270 if (PyErr_Occurred()) SWIG_fail;
18271 arg4 = (int) SWIG_AsInt(obj3);
18272 if (PyErr_Occurred()) SWIG_fail;
18273 arg5 = (int) SWIG_AsInt(obj4);
18274 if (PyErr_Occurred()) SWIG_fail;
18275 if (obj5) {
18276 arg6 = (bool) SWIG_AsBool(obj5);
18277 if (PyErr_Occurred()) SWIG_fail;
18278 }
18279 if (obj6) {
18280 {
18281 arg7 = wxString_in_helper(obj6);
18282 if (arg7 == NULL) SWIG_fail;
18283 temp7 = True;
18284 }
18285 }
18286 if (obj7) {
18287 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
18288 if (PyErr_Occurred()) SWIG_fail;
18289 }
18290 {
18291 PyThreadState* __tstate = wxPyBeginAllowThreads();
18292 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
18293
18294 wxPyEndAllowThreads(__tstate);
18295 if (PyErr_Occurred()) SWIG_fail;
18296 }
18297 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
18298 {
18299 if (temp7)
18300 delete arg7;
18301 }
18302 return resultobj;
18303 fail:
18304 {
18305 if (temp7)
18306 delete arg7;
18307 }
18308 return NULL;
18309 }
18310
18311
18312 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18313 PyObject *resultobj;
18314 wxFontList *arg1 = (wxFontList *) 0 ;
18315 wxFont *arg2 = (wxFont *) 0 ;
18316 PyObject * obj0 = 0 ;
18317 PyObject * obj1 = 0 ;
18318 char *kwnames[] = {
18319 (char *) "self",(char *) "font", NULL
18320 };
18321
18322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
18323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18325 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18327 {
18328 PyThreadState* __tstate = wxPyBeginAllowThreads();
18329 (arg1)->RemoveFont(arg2);
18330
18331 wxPyEndAllowThreads(__tstate);
18332 if (PyErr_Occurred()) SWIG_fail;
18333 }
18334 Py_INCREF(Py_None); resultobj = Py_None;
18335 return resultobj;
18336 fail:
18337 return NULL;
18338 }
18339
18340
18341 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
18342 PyObject *resultobj;
18343 wxFontList *arg1 = (wxFontList *) 0 ;
18344 int result;
18345 PyObject * obj0 = 0 ;
18346 char *kwnames[] = {
18347 (char *) "self", NULL
18348 };
18349
18350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
18351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18353 {
18354 PyThreadState* __tstate = wxPyBeginAllowThreads();
18355 result = (int)(arg1)->GetCount();
18356
18357 wxPyEndAllowThreads(__tstate);
18358 if (PyErr_Occurred()) SWIG_fail;
18359 }
18360 resultobj = SWIG_FromInt((int)result);
18361 return resultobj;
18362 fail:
18363 return NULL;
18364 }
18365
18366
18367 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
18368 PyObject *obj;
18369 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18370 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
18371 Py_INCREF(obj);
18372 return Py_BuildValue((char *)"");
18373 }
18374 static int _wrap_TheFontList_set(PyObject *_val) {
18375 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
18376 return 1;
18377 }
18378
18379
18380 static PyObject *_wrap_TheFontList_get() {
18381 PyObject *pyobj;
18382
18383 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
18384 return pyobj;
18385 }
18386
18387
18388 static int _wrap_ThePenList_set(PyObject *_val) {
18389 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
18390 return 1;
18391 }
18392
18393
18394 static PyObject *_wrap_ThePenList_get() {
18395 PyObject *pyobj;
18396
18397 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
18398 return pyobj;
18399 }
18400
18401
18402 static int _wrap_TheBrushList_set(PyObject *_val) {
18403 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
18404 return 1;
18405 }
18406
18407
18408 static PyObject *_wrap_TheBrushList_get() {
18409 PyObject *pyobj;
18410
18411 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
18412 return pyobj;
18413 }
18414
18415
18416 static int _wrap_TheColourDatabase_set(PyObject *_val) {
18417 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
18418 return 1;
18419 }
18420
18421
18422 static PyObject *_wrap_TheColourDatabase_get() {
18423 PyObject *pyobj;
18424
18425 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
18426 return pyobj;
18427 }
18428
18429
18430 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
18431 PyObject *resultobj;
18432 wxEffects *result;
18433 char *kwnames[] = {
18434 NULL
18435 };
18436
18437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
18438 {
18439 PyThreadState* __tstate = wxPyBeginAllowThreads();
18440 result = (wxEffects *)new wxEffects();
18441
18442 wxPyEndAllowThreads(__tstate);
18443 if (PyErr_Occurred()) SWIG_fail;
18444 }
18445 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
18446 return resultobj;
18447 fail:
18448 return NULL;
18449 }
18450
18451
18452 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18453 PyObject *resultobj;
18454 wxEffects *arg1 = (wxEffects *) 0 ;
18455 wxColour result;
18456 PyObject * obj0 = 0 ;
18457 char *kwnames[] = {
18458 (char *) "self", NULL
18459 };
18460
18461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
18462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18464 {
18465 PyThreadState* __tstate = wxPyBeginAllowThreads();
18466 result = ((wxEffects const *)arg1)->GetHighlightColour();
18467
18468 wxPyEndAllowThreads(__tstate);
18469 if (PyErr_Occurred()) SWIG_fail;
18470 }
18471 {
18472 wxColour * resultptr;
18473 resultptr = new wxColour((wxColour &) result);
18474 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18475 }
18476 return resultobj;
18477 fail:
18478 return NULL;
18479 }
18480
18481
18482 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18483 PyObject *resultobj;
18484 wxEffects *arg1 = (wxEffects *) 0 ;
18485 wxColour result;
18486 PyObject * obj0 = 0 ;
18487 char *kwnames[] = {
18488 (char *) "self", NULL
18489 };
18490
18491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
18492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18494 {
18495 PyThreadState* __tstate = wxPyBeginAllowThreads();
18496 result = ((wxEffects const *)arg1)->GetLightShadow();
18497
18498 wxPyEndAllowThreads(__tstate);
18499 if (PyErr_Occurred()) SWIG_fail;
18500 }
18501 {
18502 wxColour * resultptr;
18503 resultptr = new wxColour((wxColour &) result);
18504 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18505 }
18506 return resultobj;
18507 fail:
18508 return NULL;
18509 }
18510
18511
18512 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18513 PyObject *resultobj;
18514 wxEffects *arg1 = (wxEffects *) 0 ;
18515 wxColour result;
18516 PyObject * obj0 = 0 ;
18517 char *kwnames[] = {
18518 (char *) "self", NULL
18519 };
18520
18521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
18522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18524 {
18525 PyThreadState* __tstate = wxPyBeginAllowThreads();
18526 result = ((wxEffects const *)arg1)->GetFaceColour();
18527
18528 wxPyEndAllowThreads(__tstate);
18529 if (PyErr_Occurred()) SWIG_fail;
18530 }
18531 {
18532 wxColour * resultptr;
18533 resultptr = new wxColour((wxColour &) result);
18534 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18535 }
18536 return resultobj;
18537 fail:
18538 return NULL;
18539 }
18540
18541
18542 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18543 PyObject *resultobj;
18544 wxEffects *arg1 = (wxEffects *) 0 ;
18545 wxColour result;
18546 PyObject * obj0 = 0 ;
18547 char *kwnames[] = {
18548 (char *) "self", NULL
18549 };
18550
18551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
18552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18554 {
18555 PyThreadState* __tstate = wxPyBeginAllowThreads();
18556 result = ((wxEffects const *)arg1)->GetMediumShadow();
18557
18558 wxPyEndAllowThreads(__tstate);
18559 if (PyErr_Occurred()) SWIG_fail;
18560 }
18561 {
18562 wxColour * resultptr;
18563 resultptr = new wxColour((wxColour &) result);
18564 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18565 }
18566 return resultobj;
18567 fail:
18568 return NULL;
18569 }
18570
18571
18572 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18573 PyObject *resultobj;
18574 wxEffects *arg1 = (wxEffects *) 0 ;
18575 wxColour result;
18576 PyObject * obj0 = 0 ;
18577 char *kwnames[] = {
18578 (char *) "self", NULL
18579 };
18580
18581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
18582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18584 {
18585 PyThreadState* __tstate = wxPyBeginAllowThreads();
18586 result = ((wxEffects const *)arg1)->GetDarkShadow();
18587
18588 wxPyEndAllowThreads(__tstate);
18589 if (PyErr_Occurred()) SWIG_fail;
18590 }
18591 {
18592 wxColour * resultptr;
18593 resultptr = new wxColour((wxColour &) result);
18594 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18595 }
18596 return resultobj;
18597 fail:
18598 return NULL;
18599 }
18600
18601
18602 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18603 PyObject *resultobj;
18604 wxEffects *arg1 = (wxEffects *) 0 ;
18605 wxColour *arg2 = 0 ;
18606 wxColour temp2 ;
18607 PyObject * obj0 = 0 ;
18608 PyObject * obj1 = 0 ;
18609 char *kwnames[] = {
18610 (char *) "self",(char *) "c", NULL
18611 };
18612
18613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
18614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18616 {
18617 arg2 = &temp2;
18618 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18619 }
18620 {
18621 PyThreadState* __tstate = wxPyBeginAllowThreads();
18622 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18623
18624 wxPyEndAllowThreads(__tstate);
18625 if (PyErr_Occurred()) SWIG_fail;
18626 }
18627 Py_INCREF(Py_None); resultobj = Py_None;
18628 return resultobj;
18629 fail:
18630 return NULL;
18631 }
18632
18633
18634 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18635 PyObject *resultobj;
18636 wxEffects *arg1 = (wxEffects *) 0 ;
18637 wxColour *arg2 = 0 ;
18638 wxColour temp2 ;
18639 PyObject * obj0 = 0 ;
18640 PyObject * obj1 = 0 ;
18641 char *kwnames[] = {
18642 (char *) "self",(char *) "c", NULL
18643 };
18644
18645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
18646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18648 {
18649 arg2 = &temp2;
18650 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18651 }
18652 {
18653 PyThreadState* __tstate = wxPyBeginAllowThreads();
18654 (arg1)->SetLightShadow((wxColour const &)*arg2);
18655
18656 wxPyEndAllowThreads(__tstate);
18657 if (PyErr_Occurred()) SWIG_fail;
18658 }
18659 Py_INCREF(Py_None); resultobj = Py_None;
18660 return resultobj;
18661 fail:
18662 return NULL;
18663 }
18664
18665
18666 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18667 PyObject *resultobj;
18668 wxEffects *arg1 = (wxEffects *) 0 ;
18669 wxColour *arg2 = 0 ;
18670 wxColour temp2 ;
18671 PyObject * obj0 = 0 ;
18672 PyObject * obj1 = 0 ;
18673 char *kwnames[] = {
18674 (char *) "self",(char *) "c", NULL
18675 };
18676
18677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18680 {
18681 arg2 = &temp2;
18682 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18683 }
18684 {
18685 PyThreadState* __tstate = wxPyBeginAllowThreads();
18686 (arg1)->SetFaceColour((wxColour const &)*arg2);
18687
18688 wxPyEndAllowThreads(__tstate);
18689 if (PyErr_Occurred()) SWIG_fail;
18690 }
18691 Py_INCREF(Py_None); resultobj = Py_None;
18692 return resultobj;
18693 fail:
18694 return NULL;
18695 }
18696
18697
18698 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18699 PyObject *resultobj;
18700 wxEffects *arg1 = (wxEffects *) 0 ;
18701 wxColour *arg2 = 0 ;
18702 wxColour temp2 ;
18703 PyObject * obj0 = 0 ;
18704 PyObject * obj1 = 0 ;
18705 char *kwnames[] = {
18706 (char *) "self",(char *) "c", NULL
18707 };
18708
18709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18712 {
18713 arg2 = &temp2;
18714 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18715 }
18716 {
18717 PyThreadState* __tstate = wxPyBeginAllowThreads();
18718 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18719
18720 wxPyEndAllowThreads(__tstate);
18721 if (PyErr_Occurred()) SWIG_fail;
18722 }
18723 Py_INCREF(Py_None); resultobj = Py_None;
18724 return resultobj;
18725 fail:
18726 return NULL;
18727 }
18728
18729
18730 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18731 PyObject *resultobj;
18732 wxEffects *arg1 = (wxEffects *) 0 ;
18733 wxColour *arg2 = 0 ;
18734 wxColour temp2 ;
18735 PyObject * obj0 = 0 ;
18736 PyObject * obj1 = 0 ;
18737 char *kwnames[] = {
18738 (char *) "self",(char *) "c", NULL
18739 };
18740
18741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18744 {
18745 arg2 = &temp2;
18746 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18747 }
18748 {
18749 PyThreadState* __tstate = wxPyBeginAllowThreads();
18750 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18751
18752 wxPyEndAllowThreads(__tstate);
18753 if (PyErr_Occurred()) SWIG_fail;
18754 }
18755 Py_INCREF(Py_None); resultobj = Py_None;
18756 return resultobj;
18757 fail:
18758 return NULL;
18759 }
18760
18761
18762 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18763 PyObject *resultobj;
18764 wxEffects *arg1 = (wxEffects *) 0 ;
18765 wxColour *arg2 = 0 ;
18766 wxColour *arg3 = 0 ;
18767 wxColour *arg4 = 0 ;
18768 wxColour *arg5 = 0 ;
18769 wxColour *arg6 = 0 ;
18770 wxColour temp2 ;
18771 wxColour temp3 ;
18772 wxColour temp4 ;
18773 wxColour temp5 ;
18774 wxColour temp6 ;
18775 PyObject * obj0 = 0 ;
18776 PyObject * obj1 = 0 ;
18777 PyObject * obj2 = 0 ;
18778 PyObject * obj3 = 0 ;
18779 PyObject * obj4 = 0 ;
18780 PyObject * obj5 = 0 ;
18781 char *kwnames[] = {
18782 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18783 };
18784
18785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18788 {
18789 arg2 = &temp2;
18790 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18791 }
18792 {
18793 arg3 = &temp3;
18794 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18795 }
18796 {
18797 arg4 = &temp4;
18798 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18799 }
18800 {
18801 arg5 = &temp5;
18802 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18803 }
18804 {
18805 arg6 = &temp6;
18806 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18807 }
18808 {
18809 PyThreadState* __tstate = wxPyBeginAllowThreads();
18810 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18811
18812 wxPyEndAllowThreads(__tstate);
18813 if (PyErr_Occurred()) SWIG_fail;
18814 }
18815 Py_INCREF(Py_None); resultobj = Py_None;
18816 return resultobj;
18817 fail:
18818 return NULL;
18819 }
18820
18821
18822 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18823 PyObject *resultobj;
18824 wxEffects *arg1 = (wxEffects *) 0 ;
18825 wxDC *arg2 = 0 ;
18826 wxRect *arg3 = 0 ;
18827 int arg4 = (int) 1 ;
18828 wxRect temp3 ;
18829 PyObject * obj0 = 0 ;
18830 PyObject * obj1 = 0 ;
18831 PyObject * obj2 = 0 ;
18832 PyObject * obj3 = 0 ;
18833 char *kwnames[] = {
18834 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18835 };
18836
18837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18840 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18841 SWIG_POINTER_EXCEPTION | 0)) == -1)
18842 SWIG_fail;
18843 if (arg2 == NULL) {
18844 PyErr_SetString(PyExc_TypeError,"null reference");
18845 SWIG_fail;
18846 }
18847 {
18848 arg3 = &temp3;
18849 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18850 }
18851 if (obj3) {
18852 arg4 = (int) SWIG_AsInt(obj3);
18853 if (PyErr_Occurred()) SWIG_fail;
18854 }
18855 {
18856 PyThreadState* __tstate = wxPyBeginAllowThreads();
18857 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18858
18859 wxPyEndAllowThreads(__tstate);
18860 if (PyErr_Occurred()) SWIG_fail;
18861 }
18862 Py_INCREF(Py_None); resultobj = Py_None;
18863 return resultobj;
18864 fail:
18865 return NULL;
18866 }
18867
18868
18869 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18870 PyObject *resultobj;
18871 wxEffects *arg1 = (wxEffects *) 0 ;
18872 wxRect *arg2 = 0 ;
18873 wxDC *arg3 = 0 ;
18874 wxBitmap *arg4 = 0 ;
18875 bool result;
18876 wxRect temp2 ;
18877 PyObject * obj0 = 0 ;
18878 PyObject * obj1 = 0 ;
18879 PyObject * obj2 = 0 ;
18880 PyObject * obj3 = 0 ;
18881 char *kwnames[] = {
18882 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18883 };
18884
18885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18888 {
18889 arg2 = &temp2;
18890 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18891 }
18892 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18893 SWIG_POINTER_EXCEPTION | 0)) == -1)
18894 SWIG_fail;
18895 if (arg3 == NULL) {
18896 PyErr_SetString(PyExc_TypeError,"null reference");
18897 SWIG_fail;
18898 }
18899 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18900 SWIG_POINTER_EXCEPTION | 0)) == -1)
18901 SWIG_fail;
18902 if (arg4 == NULL) {
18903 PyErr_SetString(PyExc_TypeError,"null reference");
18904 SWIG_fail;
18905 }
18906 {
18907 PyThreadState* __tstate = wxPyBeginAllowThreads();
18908 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18909
18910 wxPyEndAllowThreads(__tstate);
18911 if (PyErr_Occurred()) SWIG_fail;
18912 }
18913 {
18914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18915 }
18916 return resultobj;
18917 fail:
18918 return NULL;
18919 }
18920
18921
18922 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18923 PyObject *obj;
18924 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18925 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18926 Py_INCREF(obj);
18927 return Py_BuildValue((char *)"");
18928 }
18929 static PyMethodDef SwigMethods[] = {
18930 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18931 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18932 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18933 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18934 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18935 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18936 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
18937 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18938 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
18939 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
18940 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18941 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18942 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18943 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18944 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
18945 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
18946 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
18947 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
18948 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18949 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18950 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
18951 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
18952 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18953 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18954 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18955 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18956 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18957 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18958 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18959 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18960 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18961 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18962 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18963 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18964 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18965 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18966 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18967 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18968 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18969 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18970 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18971 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18972 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18973 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
18974 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS },
18975 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
18976 { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS },
18977 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS },
18978 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
18979 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
18980 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
18981 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18982 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18983 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18984 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18985 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18986 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18987 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18988 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18989 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18990 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18991 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18992 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
18993 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
18994 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18995 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18996 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
18997 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
18998 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
18999 { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
19000 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
19001 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
19002 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
19003 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
19004 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
19005 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS },
19006 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
19007 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
19008 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
19009 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
19010 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
19011 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
19012 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
19013 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
19014 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
19015 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
19016 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
19017 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
19018 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
19019 { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
19020 { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
19021 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
19022 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
19023 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
19024 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
19025 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
19026 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
19027 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
19028 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
19029 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
19030 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
19031 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
19032 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
19033 { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS },
19034 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS },
19035 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
19036 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
19037 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
19038 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
19039 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
19040 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
19041 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
19042 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS },
19043 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
19044 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
19045 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
19046 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
19047 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
19048 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
19049 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
19050 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
19051 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
19052 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
19053 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
19054 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
19055 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
19056 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
19057 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
19058 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
19059 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
19060 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
19061 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
19062 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
19063 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
19064 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
19065 { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS },
19066 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS },
19067 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
19068 { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS },
19069 { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS },
19070 { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS },
19071 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS },
19072 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
19073 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
19074 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS },
19075 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
19076 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
19077 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
19078 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
19079 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
19080 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
19081 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
19082 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
19083 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
19084 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
19085 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
19086 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
19087 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
19088 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
19089 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
19090 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
19091 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
19092 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
19093 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
19094 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
19095 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
19096 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
19097 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
19098 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
19099 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
19100 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
19101 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
19102 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
19103 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
19104 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
19105 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
19106 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
19107 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
19108 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
19109 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
19110 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
19111 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
19112 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
19113 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
19114 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
19115 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
19116 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
19117 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19118 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19119 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
19120 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
19121 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
19122 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
19123 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
19124 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
19125 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
19126 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
19127 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
19128 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
19129 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
19130 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
19131 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
19132 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
19133 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
19134 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
19135 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
19136 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
19137 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
19138 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
19139 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
19140 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
19141 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
19142 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
19143 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
19144 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
19145 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
19146 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
19147 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
19148 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
19149 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
19150 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
19151 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
19152 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
19153 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
19154 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
19155 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
19156 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
19157 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
19158 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
19159 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
19160 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
19161 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS },
19162 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
19163 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
19164 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
19165 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
19166 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
19167 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
19168 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
19169 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
19170 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
19171 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
19172 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
19173 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
19174 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
19175 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
19176 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
19177 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
19178 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
19179 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
19180 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
19181 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
19182 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
19183 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
19184 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
19185 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19186 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
19187 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
19188 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
19189 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
19190 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
19191 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
19192 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
19193 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
19194 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
19195 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
19196 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19197 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
19198 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
19199 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
19200 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
19201 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
19202 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
19203 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
19204 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
19205 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
19206 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
19207 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
19208 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
19209 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
19210 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
19211 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
19212 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
19213 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
19214 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
19215 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
19216 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
19217 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
19218 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
19219 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
19220 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
19221 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
19222 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
19223 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
19224 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
19225 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
19226 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
19227 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
19228 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
19229 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
19230 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
19231 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
19232 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
19233 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
19234 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
19235 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
19236 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
19237 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
19238 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
19239 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
19240 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
19241 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
19242 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
19243 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
19244 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
19245 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
19246 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
19247 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
19248 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
19249 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
19250 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
19251 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
19252 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
19253 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
19254 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
19255 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
19256 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
19257 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
19258 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS },
19259 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
19260 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS },
19261 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
19262 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS },
19263 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
19264 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS },
19265 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
19266 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS },
19267 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
19268 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS },
19269 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
19270 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS },
19271 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
19272 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS },
19273 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
19274 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
19275 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
19276 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
19277 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
19278 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
19279 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
19280 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS },
19281 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
19282 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
19283 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS },
19284 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
19285 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS },
19286 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
19287 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS },
19288 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
19289 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS },
19290 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
19291 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS },
19292 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
19293 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS },
19294 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
19295 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS },
19296 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
19297 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
19298 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
19299 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
19300 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
19301 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
19302 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
19303 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
19304 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
19305 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
19306 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
19307 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
19308 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
19309 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
19310 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
19311 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
19312 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
19313 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
19314 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
19315 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
19316 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
19317 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
19318 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
19319 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
19320 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
19321 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
19322 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
19323 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
19324 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
19325 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
19326 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
19327 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
19328 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
19329 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
19330 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
19331 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
19332 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
19333 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
19334 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
19335 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
19336 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
19337 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
19338 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
19339 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
19340 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
19341 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
19342 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
19343 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
19344 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
19345 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
19346 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
19347 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
19348 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
19349 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
19350 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
19351 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
19352 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
19353 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
19354 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
19355 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
19356 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
19357 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
19358 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS },
19359 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
19360 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
19361 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
19362 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS },
19363 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
19364 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
19365 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
19366 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
19367 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
19368 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
19369 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS },
19370 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
19371 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
19372 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
19373 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
19374 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
19375 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
19376 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
19377 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
19378 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
19379 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
19380 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
19381 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
19382 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
19383 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
19384 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
19385 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
19386 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
19387 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
19388 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
19389 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
19390 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
19391 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
19392 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
19393 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
19394 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
19395 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
19396 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
19397 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
19398 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
19399 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
19400 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
19401 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
19402 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
19403 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
19404 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
19405 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
19406 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
19407 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
19408 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
19409 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
19410 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
19411 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
19412 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
19413 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
19414 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS },
19415 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
19416 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
19417 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
19418 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
19419 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
19420 { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
19421 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
19422 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
19423 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
19424 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
19425 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
19426 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
19427 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
19428 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
19429 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
19430 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
19431 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
19432 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
19433 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
19434 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
19435 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
19436 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
19437 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
19438 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
19439 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
19440 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
19441 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
19442 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
19443 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
19444 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
19445 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
19446 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
19447 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
19448 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
19449 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
19450 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
19451 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
19452 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
19453 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
19454 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
19455 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
19456 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
19457 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
19458 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
19459 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
19460 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
19461 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
19462 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
19463 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
19464 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
19465 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
19466 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
19467 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
19468 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
19469 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
19470 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
19471 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
19472 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
19473 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
19474 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
19475 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
19476 { NULL, NULL }
19477 };
19478
19479
19480 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
19481
19482 static void *_p_wxControlTo_p_wxWindow(void *x) {
19483 return (void *)((wxWindow *) ((wxControl *) x));
19484 }
19485 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
19486 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
19487 }
19488 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
19489 return (void *)((wxWindow *) ((wxMenuBar *) x));
19490 }
19491 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
19492 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
19493 }
19494 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
19495 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
19496 }
19497 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
19498 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
19499 }
19500 static void *_p_wxPenTo_p_wxObject(void *x) {
19501 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
19502 }
19503 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
19504 return (void *)((wxObject *) ((wxRegionIterator *) x));
19505 }
19506 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
19507 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
19508 }
19509 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
19510 return (void *)((wxObject *) ((wxSizerItem *) x));
19511 }
19512 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
19513 return (void *)((wxObject *) ((wxColourDatabase *) x));
19514 }
19515 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
19516 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
19517 }
19518 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
19519 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
19520 }
19521 static void *_p_wxIconTo_p_wxObject(void *x) {
19522 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
19523 }
19524 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
19525 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
19526 }
19527 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
19528 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
19529 }
19530 static void *_p_wxSizerTo_p_wxObject(void *x) {
19531 return (void *)((wxObject *) ((wxSizer *) x));
19532 }
19533 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
19534 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
19535 }
19536 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
19537 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
19538 }
19539 static void *_p_wxPenListTo_p_wxObject(void *x) {
19540 return (void *)((wxObject *) ((wxPenList *) x));
19541 }
19542 static void *_p_wxEventTo_p_wxObject(void *x) {
19543 return (void *)((wxObject *) ((wxEvent *) x));
19544 }
19545 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
19546 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
19547 }
19548 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
19549 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
19550 }
19551 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
19552 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
19553 }
19554 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
19555 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
19556 }
19557 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
19558 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
19559 }
19560 static void *_p_wxDCTo_p_wxObject(void *x) {
19561 return (void *)((wxObject *) ((wxDC *) x));
19562 }
19563 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
19564 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
19565 }
19566 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
19567 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
19568 }
19569 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
19570 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
19571 }
19572 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
19573 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
19574 }
19575 static void *_p_wxControlTo_p_wxObject(void *x) {
19576 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
19577 }
19578 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
19579 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
19580 }
19581 static void *_p_wxClientDCTo_p_wxObject(void *x) {
19582 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
19583 }
19584 static void *_p_wxFSFileTo_p_wxObject(void *x) {
19585 return (void *)((wxObject *) ((wxFSFile *) x));
19586 }
19587 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
19588 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
19589 }
19590 static void *_p_wxRegionTo_p_wxObject(void *x) {
19591 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
19592 }
19593 static void *_p_wxPySizerTo_p_wxObject(void *x) {
19594 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
19595 }
19596 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
19597 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
19598 }
19599 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
19600 return (void *)((wxObject *) ((wxGDIObject *) x));
19601 }
19602 static void *_p_wxEffectsTo_p_wxObject(void *x) {
19603 return (void *)((wxObject *) ((wxEffects *) x));
19604 }
19605 static void *_p_wxPyEventTo_p_wxObject(void *x) {
19606 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
19607 }
19608 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
19609 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
19610 }
19611 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
19612 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
19613 }
19614 static void *_p_wxShowEventTo_p_wxObject(void *x) {
19615 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
19616 }
19617 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
19618 return (void *)((wxObject *) ((wxMenuItem *) x));
19619 }
19620 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
19621 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
19622 }
19623 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
19624 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
19625 }
19626 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
19627 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
19628 }
19629 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
19630 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
19631 }
19632 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
19633 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
19634 }
19635 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
19636 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
19637 }
19638 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
19639 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
19640 }
19641 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
19642 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
19643 }
19644 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
19645 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19646 }
19647 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19648 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19649 }
19650 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19651 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19652 }
19653 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19654 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19655 }
19656 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19657 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19658 }
19659 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19660 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19661 }
19662 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19663 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19664 }
19665 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19666 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19667 }
19668 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19669 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19670 }
19671 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19672 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19673 }
19674 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19675 return (void *)((wxObject *) ((wxImageHandler *) x));
19676 }
19677 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19678 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19679 }
19680 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19681 return (void *)((wxObject *) ((wxEvtHandler *) x));
19682 }
19683 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19684 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19685 }
19686 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19687 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19688 }
19689 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19690 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19691 }
19692 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19693 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19694 }
19695 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19696 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19697 }
19698 static void *_p_wxImageTo_p_wxObject(void *x) {
19699 return (void *)((wxObject *) ((wxImage *) x));
19700 }
19701 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19702 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19703 }
19704 static void *_p_wxPaletteTo_p_wxObject(void *x) {
19705 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19706 }
19707 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19708 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19709 }
19710 static void *_p_wxImageListTo_p_wxObject(void *x) {
19711 return (void *)((wxObject *) ((wxImageList *) x));
19712 }
19713 static void *_p_wxCursorTo_p_wxObject(void *x) {
19714 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19715 }
19716 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19717 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19718 }
19719 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19720 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19721 }
19722 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19723 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19724 }
19725 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19726 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19727 }
19728 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19729 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19730 }
19731 static void *_p_wxWindowTo_p_wxObject(void *x) {
19732 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19733 }
19734 static void *_p_wxMenuTo_p_wxObject(void *x) {
19735 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19736 }
19737 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19738 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19739 }
19740 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19741 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19742 }
19743 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19744 return (void *)((wxObject *) ((wxBrushList *) x));
19745 }
19746 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19747 return (void *)((wxObject *) ((wxFileSystem *) x));
19748 }
19749 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19750 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19751 }
19752 static void *_p_wxMaskTo_p_wxObject(void *x) {
19753 return (void *)((wxObject *) ((wxMask *) x));
19754 }
19755 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19756 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19757 }
19758 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19759 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19760 }
19761 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19762 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19763 }
19764 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19765 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19766 }
19767 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19768 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19769 }
19770 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19771 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19772 }
19773 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19774 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19775 }
19776 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19777 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19778 }
19779 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19780 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19781 }
19782 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19783 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19784 }
19785 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19786 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19787 }
19788 static void *_p_wxFontTo_p_wxObject(void *x) {
19789 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19790 }
19791 static void *_p_wxBrushTo_p_wxObject(void *x) {
19792 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19793 }
19794 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19795 return (void *)((wxObject *) ((wxMetaFile *) x));
19796 }
19797 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19798 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19799 }
19800 static void *_p_wxColourTo_p_wxObject(void *x) {
19801 return (void *)((wxObject *) ((wxColour *) x));
19802 }
19803 static void *_p_wxFontListTo_p_wxObject(void *x) {
19804 return (void *)((wxObject *) ((wxFontList *) x));
19805 }
19806 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19807 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19808 }
19809 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19810 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19811 }
19812 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19813 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19814 }
19815 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19816 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19817 }
19818 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19819 return (void *)((wxDC *) ((wxScreenDC *) x));
19820 }
19821 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19822 return (void *)((wxDC *) ((wxMirrorDC *) x));
19823 }
19824 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19825 return (void *)((wxDC *) ((wxMemoryDC *) x));
19826 }
19827 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19828 return (void *)((wxDC *) ((wxWindowDC *) x));
19829 }
19830 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19831 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19832 }
19833 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19834 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19835 }
19836 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19837 return (void *)((wxDC *) ((wxClientDC *) x));
19838 }
19839 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19840 return (void *)((wxDC *) ((wxPaintDC *) x));
19841 }
19842 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19843 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19844 }
19845 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19846 return (void *)((wxDC *) ((wxPrinterDC *) x));
19847 }
19848 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19849 return (void *)((wxGDIObject *) ((wxIcon *) x));
19850 }
19851 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19852 return (void *)((wxGDIObject *) ((wxPalette *) x));
19853 }
19854 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19855 return (void *)((wxGDIObject *) ((wxPen *) x));
19856 }
19857 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19858 return (void *)((wxGDIObject *) ((wxFont *) x));
19859 }
19860 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19861 return (void *)((wxGDIObject *) ((wxCursor *) x));
19862 }
19863 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19864 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19865 }
19866 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19867 return (void *)((wxGDIObject *) ((wxRegion *) x));
19868 }
19869 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19870 return (void *)((wxGDIObject *) ((wxBrush *) x));
19871 }
19872 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}};
19873 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}};
19874 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}};
19875 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}};
19876 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}};
19877 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}};
19878 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}};
19879 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}};
19880 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}};
19881 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}};
19882 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}};
19883 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}};
19884 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}};
19885 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}};
19886 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}};
19887 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}};
19888 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}};
19889 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}};
19890 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}};
19891 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}};
19892 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}};
19893 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}};
19894 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}};
19895 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}};
19896 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}};
19897 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}};
19898 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}};
19899 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}};
19900 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}};
19901 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}};
19902 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}};
19903 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}};
19904 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}};
19905 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}};
19906 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}};
19907 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}};
19908 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}};
19909 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}};
19910 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}};
19911 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}};
19912 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}};
19913 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}};
19914 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}};
19915 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}};
19916 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}};
19917 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}};
19918 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}};
19919 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}};
19920 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}};
19921 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}};
19922 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}};
19923 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}};
19924 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}};
19925 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}};
19926 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}};
19927
19928 static swig_type_info *swig_types_initial[] = {
19929 _swigt__p_wxPostScriptDC,
19930 _swigt__p_wxBrush,
19931 _swigt__p_wxColour,
19932 _swigt__p_wxDC,
19933 _swigt__p_wxMirrorDC,
19934 _swigt__p_byte,
19935 _swigt__p_wxPyFontEnumerator,
19936 _swigt__p_char,
19937 _swigt__p_wxIconLocation,
19938 _swigt__p_wxImage,
19939 _swigt__p_wxMetaFileDC,
19940 _swigt__p_wxMask,
19941 _swigt__p_wxSize,
19942 _swigt__p_wxFont,
19943 _swigt__p_wxWindow,
19944 _swigt__p_double,
19945 _swigt__p_wxMemoryDC,
19946 _swigt__p_wxFontMapper,
19947 _swigt__p_wxEffects,
19948 _swigt__p_wxNativeEncodingInfo,
19949 _swigt__p_wxPalette,
19950 _swigt__p_wxBitmap,
19951 _swigt__p_wxObject,
19952 _swigt__p_wxRegionIterator,
19953 _swigt__p_wxRect,
19954 _swigt__p_wxString,
19955 _swigt__p_wxPrinterDC,
19956 _swigt__p_wxIconBundle,
19957 _swigt__p_wxPoint,
19958 _swigt__p_wxDash,
19959 _swigt__p_wxScreenDC,
19960 _swigt__p_wxCursor,
19961 _swigt__p_wxClientDC,
19962 _swigt__p_wxBufferedDC,
19963 _swigt__p_wxImageList,
19964 _swigt__p_unsigned_char,
19965 _swigt__p_wxGDIObject,
19966 _swigt__p_wxIcon,
19967 _swigt__p_wxLocale,
19968 _swigt__p_wxRegion,
19969 _swigt__p_wxLanguageInfo,
19970 _swigt__p_wxConfigBase,
19971 _swigt__p_wxWindowDC,
19972 _swigt__p_wxPrintData,
19973 _swigt__p_wxBrushList,
19974 _swigt__p_wxFontList,
19975 _swigt__p_wxPen,
19976 _swigt__p_wxBufferedPaintDC,
19977 _swigt__p_wxPaintDC,
19978 _swigt__p_wxPenList,
19979 _swigt__p_int,
19980 _swigt__p_wxMetaFile,
19981 _swigt__p_wxNativeFontInfo,
19982 _swigt__p_wxEncodingConverter,
19983 _swigt__p_wxColourDatabase,
19984 0
19985 };
19986
19987
19988 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19989
19990 static swig_const_info swig_const_table[] = {
19991 {0}};
19992
19993 #ifdef __cplusplus
19994 }
19995 #endif
19996
19997 #ifdef __cplusplus
19998 extern "C"
19999 #endif
20000 SWIGEXPORT(void) SWIG_init(void) {
20001 static PyObject *SWIG_globals = 0;
20002 static int typeinit = 0;
20003 PyObject *m, *d;
20004 int i;
20005 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
20006 m = Py_InitModule((char *) SWIG_name, SwigMethods);
20007 d = PyModule_GetDict(m);
20008
20009 if (!typeinit) {
20010 for (i = 0; swig_types_initial[i]; i++) {
20011 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
20012 }
20013 typeinit = 1;
20014 }
20015 SWIG_InstallConstants(d,swig_const_table);
20016
20017 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
20018 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
20019 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
20020 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
20021 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
20022 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
20023 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
20024 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
20025 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
20026 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
20027 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
20028 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
20029 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
20030 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
20031 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
20032 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
20033 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
20034 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
20035 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
20036 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
20037 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
20038 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
20039 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
20040 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
20041 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
20042 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
20043 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
20044 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
20045 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
20046 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
20047 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
20048 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
20049 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
20050 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
20051 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
20052 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
20053 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
20054 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
20055 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
20056 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
20057 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
20058 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
20059 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
20060 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
20061 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
20062 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
20063 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
20064 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
20065 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
20066 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U));
20067 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
20068 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
20069 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
20070 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
20071 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
20072 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
20073 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
20074 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
20075 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
20076 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
20077 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
20078 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
20079 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
20080 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
20081 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
20082 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
20083 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
20084 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
20085 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
20086 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
20087 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
20088 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
20089 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
20090 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
20091 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
20092 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
20093 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
20094 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
20095 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
20096 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
20097 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
20098 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
20099 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
20100 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
20101 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
20102 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
20103 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
20104 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
20105 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
20106 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
20107 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
20108 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
20109 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
20110 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
20111 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
20112 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
20113 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
20114 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
20115 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
20116 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
20117 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
20118 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
20119 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
20120 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
20121 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
20122 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
20123 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
20124 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
20125 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
20126 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
20127 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
20128 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
20129 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
20130 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
20131 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
20132 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
20133 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
20134 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
20135 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
20136 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
20137 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
20138 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
20139 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
20140 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
20141 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
20142 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
20143 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
20144
20145 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
20146
20147 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
20148 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
20149 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
20150 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
20151 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
20152 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
20153 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
20154 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
20155 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
20156 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
20157 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
20158 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
20159 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
20160 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
20161 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
20162 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
20163 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
20164 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
20165 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
20166 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
20167 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
20168 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
20169 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
20170 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
20171 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
20172 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
20173 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
20174 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
20175 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
20176 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
20177 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
20178 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
20179 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
20180 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
20181 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
20182 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
20183 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
20184 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
20185 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
20186 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
20187 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
20188 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
20189 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
20190 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
20191 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
20192 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
20193 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
20194 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
20195 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
20196 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
20197 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
20198 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
20199 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
20200 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
20201 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
20202 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
20203 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
20204 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
20205 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
20206 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
20207 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
20208 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
20209 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
20210 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
20211 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
20212 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
20213 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
20214 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
20215 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
20216 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
20217 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
20218 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
20219 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
20220 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
20221 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
20222 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
20223 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
20224 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
20225 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
20226 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
20227 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
20228 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
20229 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
20230 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
20231 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
20232 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
20233 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
20234 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
20235 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
20236 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
20237 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
20238 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
20239 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
20240 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
20241 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
20242 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
20243 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
20244 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
20245 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
20246 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
20247 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
20248 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
20249 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
20250 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
20251 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
20252 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
20253 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
20254 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
20255 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
20256 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
20257 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
20258 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
20259 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
20260 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
20261 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
20262 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
20263 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
20264 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
20265 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
20266 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
20267 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
20268 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
20269 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
20270 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
20271 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
20272 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
20273 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
20274 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
20275 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
20276 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
20277 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
20278 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
20279 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
20280 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
20281 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
20282 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
20283 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
20284 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
20285 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
20286 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
20287 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
20288 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
20289 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
20290 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
20291 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
20292 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
20293 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
20294 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
20295 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
20296 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
20297 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
20298 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
20299 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
20300 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
20301 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
20302 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
20303 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
20304 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
20305 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
20306 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
20307 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
20308 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
20309 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
20310 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
20311 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
20312 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
20313 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
20314 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
20315 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
20316 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
20317 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
20318 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
20319 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
20320 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
20321 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
20322 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
20323 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
20324 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
20325 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
20326 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
20327 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
20328 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
20329 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
20330 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
20331 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
20332 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
20333 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
20334 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
20335 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
20336 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
20337 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
20338 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
20339 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
20340 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
20341 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
20342 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
20343 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
20344 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
20345 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
20346 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
20347 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
20348 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
20349 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
20350 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
20351 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
20352 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
20353 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
20354 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
20355 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
20356 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
20357 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
20358 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
20359 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
20360 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
20361 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
20362 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
20363 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
20364 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
20365 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
20366 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
20367 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
20368 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
20369 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
20370 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
20371 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
20372 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
20373 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
20374 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
20375 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
20376 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
20377 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
20378 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
20379 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
20380 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
20381 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
20382 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
20383 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
20384 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
20385 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
20386 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
20387 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
20388 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
20389 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
20390 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
20391 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
20392 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
20393 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
20394 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
20395 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
20396 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
20397 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
20398 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
20399 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
20400 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
20401 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
20402 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
20403 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
20404 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
20405 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
20406 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
20407 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
20408 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
20409 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
20410 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
20411 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
20412 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
20413 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
20414 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
20415 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
20416 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
20417 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
20418 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
20419 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
20420 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
20421 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
20422 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
20423 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
20424 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
20425 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
20426 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
20427 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
20428 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
20429 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
20430 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
20431 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
20432 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
20433 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
20434 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
20435 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
20436 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
20437 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
20438 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
20439 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
20440 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
20441 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
20442 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
20443 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
20444 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
20445 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
20446 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
20447
20448 // Work around a chicken/egg problem in drawlist.cpp
20449 wxPyDrawList_SetAPIPtr();
20450
20451 }
20452