]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
Updated layout test
[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
756 #include "wx/wxPython/pydrawxxx.h"
757
758 wxColour wxDC_GetPixel(wxDC *self,int x,int y){
759 wxColour col;
760 self->GetPixel(x, y, &col);
761 return col;
762 }
763 wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
764 wxColour col;
765 self->GetPixel(pt, &col);
766 return col;
767 }
768
769 SWIGSTATICINLINE(double)
770 SWIG_AsDouble(PyObject *obj)
771 {
772 if (PyNumber_Check(obj))
773 return PyFloat_AsDouble(obj);
774 else {
775 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
776 obj->ob_type->tp_name);
777 PyErr_SetObject(PyExc_TypeError, errmsg);
778 Py_DECREF(errmsg);
779 return 0;
780 }
781 }
782
783
784 SWIGSTATICINLINE(int)
785 SWIG_CheckDouble(PyObject* obj)
786 {
787 SWIG_AsDouble(obj);
788 if (PyErr_Occurred()) {
789 PyErr_Clear();
790 return 0;
791 } else {
792 return 1;
793 }
794 }
795
796 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
797 wxRect rv;
798 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
799 return rv;
800 }
801 wxRect wxDC_GetClippingRect(wxDC *self){
802 wxRect rect;
803 self->GetClippingBox(rect);
804 return rect;
805 }
806 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
807 wxArrayInt widths;
808 self->GetPartialTextExtents(text, widths);
809 return widths;
810 }
811 void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
812 self->SetLogicalOrigin(point.x, point.y);
813 }
814 void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
815 self->SetDeviceOrigin(point.x, point.y);
816 }
817 void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
818 self->CalcBoundingBox(point.x, point.y);
819 }
820 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
821 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
822 }
823 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
824 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
825 }
826 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
827 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
828 }
829 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
830 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
831 }
832 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
833 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
834 }
835 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
836 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
837 }
838
839 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
840 *x1 = dc->MinX();
841 *y1 = dc->MinY();
842 *x2 = dc->MaxX();
843 *y2 = dc->MaxY();
844 }
845
846
847 #include <wx/dcbuffer.h>
848
849
850 #include <wx/dcps.h>
851
852
853 #include <wx/metafile.h>
854
855
856
857 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
858 self->AddColour(name, wxColour(red, green, blue));
859 }
860
861 #include <wx/effects.h>
862
863 #ifdef __cplusplus
864 extern "C" {
865 #endif
866 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
867 PyObject *resultobj;
868 wxGDIObject *result;
869 char *kwnames[] = {
870 NULL
871 };
872
873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
874 {
875 PyThreadState* __tstate = wxPyBeginAllowThreads();
876 result = (wxGDIObject *)new wxGDIObject();
877
878 wxPyEndAllowThreads(__tstate);
879 if (PyErr_Occurred()) SWIG_fail;
880 }
881 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
882 return resultobj;
883 fail:
884 return NULL;
885 }
886
887
888 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
889 PyObject *resultobj;
890 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
891 PyObject * obj0 = 0 ;
892 char *kwnames[] = {
893 (char *) "self", NULL
894 };
895
896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
899 {
900 PyThreadState* __tstate = wxPyBeginAllowThreads();
901 delete arg1;
902
903 wxPyEndAllowThreads(__tstate);
904 if (PyErr_Occurred()) SWIG_fail;
905 }
906 Py_INCREF(Py_None); resultobj = Py_None;
907 return resultobj;
908 fail:
909 return NULL;
910 }
911
912
913 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
914 PyObject *resultobj;
915 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
916 bool result;
917 PyObject * obj0 = 0 ;
918 char *kwnames[] = {
919 (char *) "self", NULL
920 };
921
922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
925 {
926 PyThreadState* __tstate = wxPyBeginAllowThreads();
927 result = (bool)(arg1)->GetVisible();
928
929 wxPyEndAllowThreads(__tstate);
930 if (PyErr_Occurred()) SWIG_fail;
931 }
932 {
933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
934 }
935 return resultobj;
936 fail:
937 return NULL;
938 }
939
940
941 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
942 PyObject *resultobj;
943 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
944 bool arg2 ;
945 PyObject * obj0 = 0 ;
946 PyObject * obj1 = 0 ;
947 char *kwnames[] = {
948 (char *) "self",(char *) "visible", NULL
949 };
950
951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
954 arg2 = (bool) SWIG_AsBool(obj1);
955 if (PyErr_Occurred()) SWIG_fail;
956 {
957 PyThreadState* __tstate = wxPyBeginAllowThreads();
958 (arg1)->SetVisible(arg2);
959
960 wxPyEndAllowThreads(__tstate);
961 if (PyErr_Occurred()) SWIG_fail;
962 }
963 Py_INCREF(Py_None); resultobj = Py_None;
964 return resultobj;
965 fail:
966 return NULL;
967 }
968
969
970 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
971 PyObject *resultobj;
972 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
973 bool result;
974 PyObject * obj0 = 0 ;
975 char *kwnames[] = {
976 (char *) "self", NULL
977 };
978
979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
982 {
983 PyThreadState* __tstate = wxPyBeginAllowThreads();
984 result = (bool)(arg1)->IsNull();
985
986 wxPyEndAllowThreads(__tstate);
987 if (PyErr_Occurred()) SWIG_fail;
988 }
989 {
990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
991 }
992 return resultobj;
993 fail:
994 return NULL;
995 }
996
997
998 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
999 PyObject *obj;
1000 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1001 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1002 Py_INCREF(obj);
1003 return Py_BuildValue((char *)"");
1004 }
1005 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1006 PyObject *resultobj;
1007 unsigned char arg1 = (unsigned char) 0 ;
1008 unsigned char arg2 = (unsigned char) 0 ;
1009 unsigned char arg3 = (unsigned char) 0 ;
1010 wxColour *result;
1011 PyObject * obj0 = 0 ;
1012 PyObject * obj1 = 0 ;
1013 PyObject * obj2 = 0 ;
1014 char *kwnames[] = {
1015 (char *) "red",(char *) "green",(char *) "blue", NULL
1016 };
1017
1018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1019 if (obj0) {
1020 arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0);
1021 if (PyErr_Occurred()) SWIG_fail;
1022 }
1023 if (obj1) {
1024 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1025 if (PyErr_Occurred()) SWIG_fail;
1026 }
1027 if (obj2) {
1028 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1029 if (PyErr_Occurred()) SWIG_fail;
1030 }
1031 {
1032 PyThreadState* __tstate = wxPyBeginAllowThreads();
1033 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1034
1035 wxPyEndAllowThreads(__tstate);
1036 if (PyErr_Occurred()) SWIG_fail;
1037 }
1038 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1039 return resultobj;
1040 fail:
1041 return NULL;
1042 }
1043
1044
1045 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1046 PyObject *resultobj;
1047 wxString *arg1 = 0 ;
1048 wxColour *result;
1049 bool temp1 = False ;
1050 PyObject * obj0 = 0 ;
1051 char *kwnames[] = {
1052 (char *) "colorName", NULL
1053 };
1054
1055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1056 {
1057 arg1 = wxString_in_helper(obj0);
1058 if (arg1 == NULL) SWIG_fail;
1059 temp1 = True;
1060 }
1061 {
1062 PyThreadState* __tstate = wxPyBeginAllowThreads();
1063 result = (wxColour *)new wxColour((wxString const &)*arg1);
1064
1065 wxPyEndAllowThreads(__tstate);
1066 if (PyErr_Occurred()) SWIG_fail;
1067 }
1068 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1069 {
1070 if (temp1)
1071 delete arg1;
1072 }
1073 return resultobj;
1074 fail:
1075 {
1076 if (temp1)
1077 delete arg1;
1078 }
1079 return NULL;
1080 }
1081
1082
1083 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1084 PyObject *resultobj;
1085 unsigned long arg1 ;
1086 wxColour *result;
1087 PyObject * obj0 = 0 ;
1088 char *kwnames[] = {
1089 (char *) "colRGB", NULL
1090 };
1091
1092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1093 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1094 if (PyErr_Occurred()) SWIG_fail;
1095 {
1096 PyThreadState* __tstate = wxPyBeginAllowThreads();
1097 result = (wxColour *)new wxColour(arg1);
1098
1099 wxPyEndAllowThreads(__tstate);
1100 if (PyErr_Occurred()) SWIG_fail;
1101 }
1102 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1103 return resultobj;
1104 fail:
1105 return NULL;
1106 }
1107
1108
1109 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1110 PyObject *resultobj;
1111 wxColour *arg1 = (wxColour *) 0 ;
1112 PyObject * obj0 = 0 ;
1113 char *kwnames[] = {
1114 (char *) "self", NULL
1115 };
1116
1117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1120 {
1121 PyThreadState* __tstate = wxPyBeginAllowThreads();
1122 delete arg1;
1123
1124 wxPyEndAllowThreads(__tstate);
1125 if (PyErr_Occurred()) SWIG_fail;
1126 }
1127 Py_INCREF(Py_None); resultobj = Py_None;
1128 return resultobj;
1129 fail:
1130 return NULL;
1131 }
1132
1133
1134 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1135 PyObject *resultobj;
1136 wxColour *arg1 = (wxColour *) 0 ;
1137 unsigned char result;
1138 PyObject * obj0 = 0 ;
1139 char *kwnames[] = {
1140 (char *) "self", NULL
1141 };
1142
1143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1146 {
1147 PyThreadState* __tstate = wxPyBeginAllowThreads();
1148 result = (unsigned char)(arg1)->Red();
1149
1150 wxPyEndAllowThreads(__tstate);
1151 if (PyErr_Occurred()) SWIG_fail;
1152 }
1153 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1154 return resultobj;
1155 fail:
1156 return NULL;
1157 }
1158
1159
1160 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1161 PyObject *resultobj;
1162 wxColour *arg1 = (wxColour *) 0 ;
1163 unsigned char result;
1164 PyObject * obj0 = 0 ;
1165 char *kwnames[] = {
1166 (char *) "self", NULL
1167 };
1168
1169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1172 {
1173 PyThreadState* __tstate = wxPyBeginAllowThreads();
1174 result = (unsigned char)(arg1)->Green();
1175
1176 wxPyEndAllowThreads(__tstate);
1177 if (PyErr_Occurred()) SWIG_fail;
1178 }
1179 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1180 return resultobj;
1181 fail:
1182 return NULL;
1183 }
1184
1185
1186 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1187 PyObject *resultobj;
1188 wxColour *arg1 = (wxColour *) 0 ;
1189 unsigned char result;
1190 PyObject * obj0 = 0 ;
1191 char *kwnames[] = {
1192 (char *) "self", NULL
1193 };
1194
1195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1198 {
1199 PyThreadState* __tstate = wxPyBeginAllowThreads();
1200 result = (unsigned char)(arg1)->Blue();
1201
1202 wxPyEndAllowThreads(__tstate);
1203 if (PyErr_Occurred()) SWIG_fail;
1204 }
1205 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1206 return resultobj;
1207 fail:
1208 return NULL;
1209 }
1210
1211
1212 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1213 PyObject *resultobj;
1214 wxColour *arg1 = (wxColour *) 0 ;
1215 bool result;
1216 PyObject * obj0 = 0 ;
1217 char *kwnames[] = {
1218 (char *) "self", NULL
1219 };
1220
1221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1224 {
1225 PyThreadState* __tstate = wxPyBeginAllowThreads();
1226 result = (bool)(arg1)->Ok();
1227
1228 wxPyEndAllowThreads(__tstate);
1229 if (PyErr_Occurred()) SWIG_fail;
1230 }
1231 {
1232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1233 }
1234 return resultobj;
1235 fail:
1236 return NULL;
1237 }
1238
1239
1240 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1241 PyObject *resultobj;
1242 wxColour *arg1 = (wxColour *) 0 ;
1243 unsigned char arg2 ;
1244 unsigned char arg3 ;
1245 unsigned char arg4 ;
1246 PyObject * obj0 = 0 ;
1247 PyObject * obj1 = 0 ;
1248 PyObject * obj2 = 0 ;
1249 PyObject * obj3 = 0 ;
1250 char *kwnames[] = {
1251 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1252 };
1253
1254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1257 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1258 if (PyErr_Occurred()) SWIG_fail;
1259 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1260 if (PyErr_Occurred()) SWIG_fail;
1261 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
1262 if (PyErr_Occurred()) SWIG_fail;
1263 {
1264 PyThreadState* __tstate = wxPyBeginAllowThreads();
1265 (arg1)->Set(arg2,arg3,arg4);
1266
1267 wxPyEndAllowThreads(__tstate);
1268 if (PyErr_Occurred()) SWIG_fail;
1269 }
1270 Py_INCREF(Py_None); resultobj = Py_None;
1271 return resultobj;
1272 fail:
1273 return NULL;
1274 }
1275
1276
1277 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1278 PyObject *resultobj;
1279 wxColour *arg1 = (wxColour *) 0 ;
1280 unsigned long arg2 ;
1281 PyObject * obj0 = 0 ;
1282 PyObject * obj1 = 0 ;
1283 char *kwnames[] = {
1284 (char *) "self",(char *) "colRGB", NULL
1285 };
1286
1287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1290 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1291 if (PyErr_Occurred()) SWIG_fail;
1292 {
1293 PyThreadState* __tstate = wxPyBeginAllowThreads();
1294 (arg1)->Set(arg2);
1295
1296 wxPyEndAllowThreads(__tstate);
1297 if (PyErr_Occurred()) SWIG_fail;
1298 }
1299 Py_INCREF(Py_None); resultobj = Py_None;
1300 return resultobj;
1301 fail:
1302 return NULL;
1303 }
1304
1305
1306 static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1307 PyObject *resultobj;
1308 wxColour *arg1 = (wxColour *) 0 ;
1309 wxString *arg2 = 0 ;
1310 bool temp2 = False ;
1311 PyObject * obj0 = 0 ;
1312 PyObject * obj1 = 0 ;
1313 char *kwnames[] = {
1314 (char *) "self",(char *) "colourName", NULL
1315 };
1316
1317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1320 {
1321 arg2 = wxString_in_helper(obj1);
1322 if (arg2 == NULL) SWIG_fail;
1323 temp2 = True;
1324 }
1325 {
1326 PyThreadState* __tstate = wxPyBeginAllowThreads();
1327 (arg1)->InitFromName((wxString const &)*arg2);
1328
1329 wxPyEndAllowThreads(__tstate);
1330 if (PyErr_Occurred()) SWIG_fail;
1331 }
1332 Py_INCREF(Py_None); resultobj = Py_None;
1333 {
1334 if (temp2)
1335 delete arg2;
1336 }
1337 return resultobj;
1338 fail:
1339 {
1340 if (temp2)
1341 delete arg2;
1342 }
1343 return NULL;
1344 }
1345
1346
1347 static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1348 PyObject *resultobj;
1349 wxColour *arg1 = (wxColour *) 0 ;
1350 long result;
1351 PyObject * obj0 = 0 ;
1352 char *kwnames[] = {
1353 (char *) "self", NULL
1354 };
1355
1356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1359 {
1360 PyThreadState* __tstate = wxPyBeginAllowThreads();
1361 result = (long)((wxColour const *)arg1)->GetPixel();
1362
1363 wxPyEndAllowThreads(__tstate);
1364 if (PyErr_Occurred()) SWIG_fail;
1365 }
1366 resultobj = SWIG_FromLong((long)result);
1367 return resultobj;
1368 fail:
1369 return NULL;
1370 }
1371
1372
1373 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1374 PyObject *resultobj;
1375 wxColour *arg1 = (wxColour *) 0 ;
1376 wxColour *arg2 = 0 ;
1377 bool result;
1378 wxColour temp2 ;
1379 PyObject * obj0 = 0 ;
1380 PyObject * obj1 = 0 ;
1381 char *kwnames[] = {
1382 (char *) "self",(char *) "colour", NULL
1383 };
1384
1385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1388 {
1389 arg2 = &temp2;
1390 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1391 }
1392 {
1393 PyThreadState* __tstate = wxPyBeginAllowThreads();
1394 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1395
1396 wxPyEndAllowThreads(__tstate);
1397 if (PyErr_Occurred()) SWIG_fail;
1398 }
1399 {
1400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1401 }
1402 return resultobj;
1403 fail:
1404 return NULL;
1405 }
1406
1407
1408 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1409 PyObject *resultobj;
1410 wxColour *arg1 = (wxColour *) 0 ;
1411 wxColour *arg2 = 0 ;
1412 bool result;
1413 wxColour temp2 ;
1414 PyObject * obj0 = 0 ;
1415 PyObject * obj1 = 0 ;
1416 char *kwnames[] = {
1417 (char *) "self",(char *) "colour", NULL
1418 };
1419
1420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1423 {
1424 arg2 = &temp2;
1425 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1426 }
1427 {
1428 PyThreadState* __tstate = wxPyBeginAllowThreads();
1429 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1430
1431 wxPyEndAllowThreads(__tstate);
1432 if (PyErr_Occurred()) SWIG_fail;
1433 }
1434 {
1435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1436 }
1437 return resultobj;
1438 fail:
1439 return NULL;
1440 }
1441
1442
1443 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1444 PyObject *resultobj;
1445 wxColour *arg1 = (wxColour *) 0 ;
1446 PyObject *result;
1447 PyObject * obj0 = 0 ;
1448 char *kwnames[] = {
1449 (char *) "self", NULL
1450 };
1451
1452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1455 {
1456 PyThreadState* __tstate = wxPyBeginAllowThreads();
1457 result = (PyObject *)wxColour_Get(arg1);
1458
1459 wxPyEndAllowThreads(__tstate);
1460 if (PyErr_Occurred()) SWIG_fail;
1461 }
1462 resultobj = result;
1463 return resultobj;
1464 fail:
1465 return NULL;
1466 }
1467
1468
1469 static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1470 PyObject *resultobj;
1471 wxColour *arg1 = (wxColour *) 0 ;
1472 unsigned long result;
1473 PyObject * obj0 = 0 ;
1474 char *kwnames[] = {
1475 (char *) "self", NULL
1476 };
1477
1478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1481 {
1482 PyThreadState* __tstate = wxPyBeginAllowThreads();
1483 result = (unsigned long)wxColour_GetRGB(arg1);
1484
1485 wxPyEndAllowThreads(__tstate);
1486 if (PyErr_Occurred()) SWIG_fail;
1487 }
1488 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
1489 return resultobj;
1490 fail:
1491 return NULL;
1492 }
1493
1494
1495 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1496 PyObject *obj;
1497 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1498 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1499 Py_INCREF(obj);
1500 return Py_BuildValue((char *)"");
1501 }
1502 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1503 PyObject *resultobj;
1504 int arg1 ;
1505 unsigned char *arg2 = (unsigned char *) 0 ;
1506 unsigned char *arg3 = (unsigned char *) 0 ;
1507 unsigned char *arg4 = (unsigned char *) 0 ;
1508 wxPalette *result;
1509 PyObject * obj0 = 0 ;
1510 PyObject * obj1 = 0 ;
1511 PyObject * obj2 = 0 ;
1512 PyObject * obj3 = 0 ;
1513 char *kwnames[] = {
1514 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1515 };
1516
1517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1518 arg1 = (int) SWIG_AsInt(obj0);
1519 if (PyErr_Occurred()) SWIG_fail;
1520 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1522 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1524 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1526 {
1527 PyThreadState* __tstate = wxPyBeginAllowThreads();
1528 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1529
1530 wxPyEndAllowThreads(__tstate);
1531 if (PyErr_Occurred()) SWIG_fail;
1532 }
1533 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1534 return resultobj;
1535 fail:
1536 return NULL;
1537 }
1538
1539
1540 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1541 PyObject *resultobj;
1542 wxPalette *arg1 = (wxPalette *) 0 ;
1543 PyObject * obj0 = 0 ;
1544 char *kwnames[] = {
1545 (char *) "self", NULL
1546 };
1547
1548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1551 {
1552 PyThreadState* __tstate = wxPyBeginAllowThreads();
1553 delete arg1;
1554
1555 wxPyEndAllowThreads(__tstate);
1556 if (PyErr_Occurred()) SWIG_fail;
1557 }
1558 Py_INCREF(Py_None); resultobj = Py_None;
1559 return resultobj;
1560 fail:
1561 return NULL;
1562 }
1563
1564
1565 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1566 PyObject *resultobj;
1567 wxPalette *arg1 = (wxPalette *) 0 ;
1568 byte arg2 ;
1569 byte arg3 ;
1570 byte arg4 ;
1571 int result;
1572 PyObject * obj0 = 0 ;
1573 PyObject * obj1 = 0 ;
1574 PyObject * obj2 = 0 ;
1575 PyObject * obj3 = 0 ;
1576 char *kwnames[] = {
1577 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1578 };
1579
1580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1583 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1584 if (PyErr_Occurred()) SWIG_fail;
1585 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1586 if (PyErr_Occurred()) SWIG_fail;
1587 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1588 if (PyErr_Occurred()) SWIG_fail;
1589 {
1590 PyThreadState* __tstate = wxPyBeginAllowThreads();
1591 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1592
1593 wxPyEndAllowThreads(__tstate);
1594 if (PyErr_Occurred()) SWIG_fail;
1595 }
1596 resultobj = SWIG_FromInt((int)result);
1597 return resultobj;
1598 fail:
1599 return NULL;
1600 }
1601
1602
1603 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1604 PyObject *resultobj;
1605 wxPalette *arg1 = (wxPalette *) 0 ;
1606 int arg2 ;
1607 byte *arg3 = (byte *) 0 ;
1608 byte *arg4 = (byte *) 0 ;
1609 byte *arg5 = (byte *) 0 ;
1610 bool result;
1611 byte temp3 ;
1612 byte temp4 ;
1613 byte temp5 ;
1614 PyObject * obj0 = 0 ;
1615 PyObject * obj1 = 0 ;
1616 char *kwnames[] = {
1617 (char *) "self",(char *) "pixel", NULL
1618 };
1619
1620 arg3 = &temp3;
1621 arg4 = &temp4;
1622 arg5 = &temp5;
1623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1626 arg2 = (int) SWIG_AsInt(obj1);
1627 if (PyErr_Occurred()) SWIG_fail;
1628 {
1629 PyThreadState* __tstate = wxPyBeginAllowThreads();
1630 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1631
1632 wxPyEndAllowThreads(__tstate);
1633 if (PyErr_Occurred()) SWIG_fail;
1634 }
1635 {
1636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1637 }
1638 {
1639 PyObject *o = PyInt_FromLong((long) (*arg3));
1640 resultobj = t_output_helper(resultobj,o);
1641 }
1642 {
1643 PyObject *o = PyInt_FromLong((long) (*arg4));
1644 resultobj = t_output_helper(resultobj,o);
1645 }
1646 {
1647 PyObject *o = PyInt_FromLong((long) (*arg5));
1648 resultobj = t_output_helper(resultobj,o);
1649 }
1650 return resultobj;
1651 fail:
1652 return NULL;
1653 }
1654
1655
1656 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1657 PyObject *resultobj;
1658 wxPalette *arg1 = (wxPalette *) 0 ;
1659 bool result;
1660 PyObject * obj0 = 0 ;
1661 char *kwnames[] = {
1662 (char *) "self", NULL
1663 };
1664
1665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1668 {
1669 PyThreadState* __tstate = wxPyBeginAllowThreads();
1670 result = (bool)(arg1)->Ok();
1671
1672 wxPyEndAllowThreads(__tstate);
1673 if (PyErr_Occurred()) SWIG_fail;
1674 }
1675 {
1676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1677 }
1678 return resultobj;
1679 fail:
1680 return NULL;
1681 }
1682
1683
1684 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1685 PyObject *obj;
1686 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1687 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1688 Py_INCREF(obj);
1689 return Py_BuildValue((char *)"");
1690 }
1691 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1692 PyObject *resultobj;
1693 wxColour *arg1 = 0 ;
1694 int arg2 = (int) 1 ;
1695 int arg3 = (int) wxSOLID ;
1696 wxPen *result;
1697 wxColour temp1 ;
1698 PyObject * obj0 = 0 ;
1699 PyObject * obj1 = 0 ;
1700 PyObject * obj2 = 0 ;
1701 char *kwnames[] = {
1702 (char *) "colour",(char *) "width",(char *) "style", NULL
1703 };
1704
1705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1706 {
1707 arg1 = &temp1;
1708 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1709 }
1710 if (obj1) {
1711 arg2 = (int) SWIG_AsInt(obj1);
1712 if (PyErr_Occurred()) SWIG_fail;
1713 }
1714 if (obj2) {
1715 arg3 = (int) SWIG_AsInt(obj2);
1716 if (PyErr_Occurred()) SWIG_fail;
1717 }
1718 {
1719 PyThreadState* __tstate = wxPyBeginAllowThreads();
1720 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1721
1722 wxPyEndAllowThreads(__tstate);
1723 if (PyErr_Occurred()) SWIG_fail;
1724 }
1725 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1726 return resultobj;
1727 fail:
1728 return NULL;
1729 }
1730
1731
1732 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1733 PyObject *resultobj;
1734 wxPen *arg1 = (wxPen *) 0 ;
1735 PyObject * obj0 = 0 ;
1736 char *kwnames[] = {
1737 (char *) "self", NULL
1738 };
1739
1740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1743 {
1744 PyThreadState* __tstate = wxPyBeginAllowThreads();
1745 delete arg1;
1746
1747 wxPyEndAllowThreads(__tstate);
1748 if (PyErr_Occurred()) SWIG_fail;
1749 }
1750 Py_INCREF(Py_None); resultobj = Py_None;
1751 return resultobj;
1752 fail:
1753 return NULL;
1754 }
1755
1756
1757 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1758 PyObject *resultobj;
1759 wxPen *arg1 = (wxPen *) 0 ;
1760 int result;
1761 PyObject * obj0 = 0 ;
1762 char *kwnames[] = {
1763 (char *) "self", NULL
1764 };
1765
1766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1769 {
1770 PyThreadState* __tstate = wxPyBeginAllowThreads();
1771 result = (int)(arg1)->GetCap();
1772
1773 wxPyEndAllowThreads(__tstate);
1774 if (PyErr_Occurred()) SWIG_fail;
1775 }
1776 resultobj = SWIG_FromInt((int)result);
1777 return resultobj;
1778 fail:
1779 return NULL;
1780 }
1781
1782
1783 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1784 PyObject *resultobj;
1785 wxPen *arg1 = (wxPen *) 0 ;
1786 wxColour result;
1787 PyObject * obj0 = 0 ;
1788 char *kwnames[] = {
1789 (char *) "self", NULL
1790 };
1791
1792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1795 {
1796 PyThreadState* __tstate = wxPyBeginAllowThreads();
1797 result = (arg1)->GetColour();
1798
1799 wxPyEndAllowThreads(__tstate);
1800 if (PyErr_Occurred()) SWIG_fail;
1801 }
1802 {
1803 wxColour * resultptr;
1804 resultptr = new wxColour((wxColour &) result);
1805 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1806 }
1807 return resultobj;
1808 fail:
1809 return NULL;
1810 }
1811
1812
1813 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1814 PyObject *resultobj;
1815 wxPen *arg1 = (wxPen *) 0 ;
1816 int result;
1817 PyObject * obj0 = 0 ;
1818 char *kwnames[] = {
1819 (char *) "self", NULL
1820 };
1821
1822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1825 {
1826 PyThreadState* __tstate = wxPyBeginAllowThreads();
1827 result = (int)(arg1)->GetJoin();
1828
1829 wxPyEndAllowThreads(__tstate);
1830 if (PyErr_Occurred()) SWIG_fail;
1831 }
1832 resultobj = SWIG_FromInt((int)result);
1833 return resultobj;
1834 fail:
1835 return NULL;
1836 }
1837
1838
1839 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1840 PyObject *resultobj;
1841 wxPen *arg1 = (wxPen *) 0 ;
1842 int result;
1843 PyObject * obj0 = 0 ;
1844 char *kwnames[] = {
1845 (char *) "self", NULL
1846 };
1847
1848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1851 {
1852 PyThreadState* __tstate = wxPyBeginAllowThreads();
1853 result = (int)(arg1)->GetStyle();
1854
1855 wxPyEndAllowThreads(__tstate);
1856 if (PyErr_Occurred()) SWIG_fail;
1857 }
1858 resultobj = SWIG_FromInt((int)result);
1859 return resultobj;
1860 fail:
1861 return NULL;
1862 }
1863
1864
1865 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1866 PyObject *resultobj;
1867 wxPen *arg1 = (wxPen *) 0 ;
1868 int result;
1869 PyObject * obj0 = 0 ;
1870 char *kwnames[] = {
1871 (char *) "self", NULL
1872 };
1873
1874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1877 {
1878 PyThreadState* __tstate = wxPyBeginAllowThreads();
1879 result = (int)(arg1)->GetWidth();
1880
1881 wxPyEndAllowThreads(__tstate);
1882 if (PyErr_Occurred()) SWIG_fail;
1883 }
1884 resultobj = SWIG_FromInt((int)result);
1885 return resultobj;
1886 fail:
1887 return NULL;
1888 }
1889
1890
1891 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1892 PyObject *resultobj;
1893 wxPen *arg1 = (wxPen *) 0 ;
1894 bool result;
1895 PyObject * obj0 = 0 ;
1896 char *kwnames[] = {
1897 (char *) "self", NULL
1898 };
1899
1900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1903 {
1904 PyThreadState* __tstate = wxPyBeginAllowThreads();
1905 result = (bool)(arg1)->Ok();
1906
1907 wxPyEndAllowThreads(__tstate);
1908 if (PyErr_Occurred()) SWIG_fail;
1909 }
1910 {
1911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1912 }
1913 return resultobj;
1914 fail:
1915 return NULL;
1916 }
1917
1918
1919 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1920 PyObject *resultobj;
1921 wxPen *arg1 = (wxPen *) 0 ;
1922 int arg2 ;
1923 PyObject * obj0 = 0 ;
1924 PyObject * obj1 = 0 ;
1925 char *kwnames[] = {
1926 (char *) "self",(char *) "cap_style", NULL
1927 };
1928
1929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1932 arg2 = (int) SWIG_AsInt(obj1);
1933 if (PyErr_Occurred()) SWIG_fail;
1934 {
1935 PyThreadState* __tstate = wxPyBeginAllowThreads();
1936 (arg1)->SetCap(arg2);
1937
1938 wxPyEndAllowThreads(__tstate);
1939 if (PyErr_Occurred()) SWIG_fail;
1940 }
1941 Py_INCREF(Py_None); resultobj = Py_None;
1942 return resultobj;
1943 fail:
1944 return NULL;
1945 }
1946
1947
1948 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1949 PyObject *resultobj;
1950 wxPen *arg1 = (wxPen *) 0 ;
1951 wxColour *arg2 = 0 ;
1952 wxColour temp2 ;
1953 PyObject * obj0 = 0 ;
1954 PyObject * obj1 = 0 ;
1955 char *kwnames[] = {
1956 (char *) "self",(char *) "colour", NULL
1957 };
1958
1959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1962 {
1963 arg2 = &temp2;
1964 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1965 }
1966 {
1967 PyThreadState* __tstate = wxPyBeginAllowThreads();
1968 (arg1)->SetColour(*arg2);
1969
1970 wxPyEndAllowThreads(__tstate);
1971 if (PyErr_Occurred()) SWIG_fail;
1972 }
1973 Py_INCREF(Py_None); resultobj = Py_None;
1974 return resultobj;
1975 fail:
1976 return NULL;
1977 }
1978
1979
1980 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1981 PyObject *resultobj;
1982 wxPen *arg1 = (wxPen *) 0 ;
1983 int arg2 ;
1984 PyObject * obj0 = 0 ;
1985 PyObject * obj1 = 0 ;
1986 char *kwnames[] = {
1987 (char *) "self",(char *) "join_style", NULL
1988 };
1989
1990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
1991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1993 arg2 = (int) SWIG_AsInt(obj1);
1994 if (PyErr_Occurred()) SWIG_fail;
1995 {
1996 PyThreadState* __tstate = wxPyBeginAllowThreads();
1997 (arg1)->SetJoin(arg2);
1998
1999 wxPyEndAllowThreads(__tstate);
2000 if (PyErr_Occurred()) SWIG_fail;
2001 }
2002 Py_INCREF(Py_None); resultobj = Py_None;
2003 return resultobj;
2004 fail:
2005 return NULL;
2006 }
2007
2008
2009 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2010 PyObject *resultobj;
2011 wxPen *arg1 = (wxPen *) 0 ;
2012 int arg2 ;
2013 PyObject * obj0 = 0 ;
2014 PyObject * obj1 = 0 ;
2015 char *kwnames[] = {
2016 (char *) "self",(char *) "style", NULL
2017 };
2018
2019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2022 arg2 = (int) SWIG_AsInt(obj1);
2023 if (PyErr_Occurred()) SWIG_fail;
2024 {
2025 PyThreadState* __tstate = wxPyBeginAllowThreads();
2026 (arg1)->SetStyle(arg2);
2027
2028 wxPyEndAllowThreads(__tstate);
2029 if (PyErr_Occurred()) SWIG_fail;
2030 }
2031 Py_INCREF(Py_None); resultobj = Py_None;
2032 return resultobj;
2033 fail:
2034 return NULL;
2035 }
2036
2037
2038 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2039 PyObject *resultobj;
2040 wxPen *arg1 = (wxPen *) 0 ;
2041 int arg2 ;
2042 PyObject * obj0 = 0 ;
2043 PyObject * obj1 = 0 ;
2044 char *kwnames[] = {
2045 (char *) "self",(char *) "width", NULL
2046 };
2047
2048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2051 arg2 = (int) SWIG_AsInt(obj1);
2052 if (PyErr_Occurred()) SWIG_fail;
2053 {
2054 PyThreadState* __tstate = wxPyBeginAllowThreads();
2055 (arg1)->SetWidth(arg2);
2056
2057 wxPyEndAllowThreads(__tstate);
2058 if (PyErr_Occurred()) SWIG_fail;
2059 }
2060 Py_INCREF(Py_None); resultobj = Py_None;
2061 return resultobj;
2062 fail:
2063 return NULL;
2064 }
2065
2066
2067 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2068 PyObject *resultobj;
2069 wxPen *arg1 = (wxPen *) 0 ;
2070 int arg2 ;
2071 wxDash *arg3 = (wxDash *) 0 ;
2072 PyObject * obj0 = 0 ;
2073 PyObject * obj1 = 0 ;
2074 char *kwnames[] = {
2075 (char *) "self",(char *) "dashes", NULL
2076 };
2077
2078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2081 {
2082 arg2 = PyList_Size(obj1);
2083 arg3 = (wxDash*)byte_LIST_helper(obj1);
2084 if (arg3 == NULL) SWIG_fail;
2085 }
2086 {
2087 PyThreadState* __tstate = wxPyBeginAllowThreads();
2088 (arg1)->SetDashes(arg2,arg3);
2089
2090 wxPyEndAllowThreads(__tstate);
2091 if (PyErr_Occurred()) SWIG_fail;
2092 }
2093 Py_INCREF(Py_None); resultobj = Py_None;
2094 {
2095 if (arg3) delete [] arg3;
2096 }
2097 return resultobj;
2098 fail:
2099 {
2100 if (arg3) delete [] arg3;
2101 }
2102 return NULL;
2103 }
2104
2105
2106 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2107 PyObject *resultobj;
2108 wxPen *arg1 = (wxPen *) 0 ;
2109 PyObject *result;
2110 PyObject * obj0 = 0 ;
2111 char *kwnames[] = {
2112 (char *) "self", NULL
2113 };
2114
2115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2118 {
2119 PyThreadState* __tstate = wxPyBeginAllowThreads();
2120 result = (PyObject *)wxPen_GetDashes(arg1);
2121
2122 wxPyEndAllowThreads(__tstate);
2123 if (PyErr_Occurred()) SWIG_fail;
2124 }
2125 resultobj = result;
2126 return resultobj;
2127 fail:
2128 return NULL;
2129 }
2130
2131
2132 static PyObject *_wrap_Pen__SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2133 PyObject *resultobj;
2134 wxPen *arg1 = (wxPen *) 0 ;
2135 PyObject *arg2 = (PyObject *) 0 ;
2136 PyObject *arg3 = (PyObject *) 0 ;
2137 PyObject * obj0 = 0 ;
2138 PyObject * obj1 = 0 ;
2139 PyObject * obj2 = 0 ;
2140 char *kwnames[] = {
2141 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
2142 };
2143
2144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
2145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2147 arg2 = obj1;
2148 arg3 = obj2;
2149 {
2150 PyThreadState* __tstate = wxPyBeginAllowThreads();
2151 wxPen__SetDashes(arg1,arg2,arg3);
2152
2153 wxPyEndAllowThreads(__tstate);
2154 if (PyErr_Occurred()) SWIG_fail;
2155 }
2156 Py_INCREF(Py_None); resultobj = Py_None;
2157 return resultobj;
2158 fail:
2159 return NULL;
2160 }
2161
2162
2163 static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
2164 PyObject *resultobj;
2165 wxPen *arg1 = (wxPen *) 0 ;
2166 int result;
2167 PyObject * obj0 = 0 ;
2168 char *kwnames[] = {
2169 (char *) "self", NULL
2170 };
2171
2172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
2173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2175 {
2176 PyThreadState* __tstate = wxPyBeginAllowThreads();
2177 result = (int)((wxPen const *)arg1)->GetDashCount();
2178
2179 wxPyEndAllowThreads(__tstate);
2180 if (PyErr_Occurred()) SWIG_fail;
2181 }
2182 resultobj = SWIG_FromInt((int)result);
2183 return resultobj;
2184 fail:
2185 return NULL;
2186 }
2187
2188
2189 static PyObject *_wrap_Pen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2190 PyObject *resultobj;
2191 wxPen *arg1 = (wxPen *) 0 ;
2192 wxBitmap *result;
2193 PyObject * obj0 = 0 ;
2194 char *kwnames[] = {
2195 (char *) "self", NULL
2196 };
2197
2198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail;
2199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2201 {
2202 PyThreadState* __tstate = wxPyBeginAllowThreads();
2203 result = (wxBitmap *)(arg1)->GetStipple();
2204
2205 wxPyEndAllowThreads(__tstate);
2206 if (PyErr_Occurred()) SWIG_fail;
2207 }
2208 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2209 return resultobj;
2210 fail:
2211 return NULL;
2212 }
2213
2214
2215 static PyObject *_wrap_Pen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2216 PyObject *resultobj;
2217 wxPen *arg1 = (wxPen *) 0 ;
2218 wxBitmap *arg2 = 0 ;
2219 PyObject * obj0 = 0 ;
2220 PyObject * obj1 = 0 ;
2221 char *kwnames[] = {
2222 (char *) "self",(char *) "stipple", NULL
2223 };
2224
2225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2228 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2229 SWIG_POINTER_EXCEPTION | 0)) == -1)
2230 SWIG_fail;
2231 if (arg2 == NULL) {
2232 PyErr_SetString(PyExc_TypeError,"null reference");
2233 SWIG_fail;
2234 }
2235 {
2236 PyThreadState* __tstate = wxPyBeginAllowThreads();
2237 (arg1)->SetStipple(*arg2);
2238
2239 wxPyEndAllowThreads(__tstate);
2240 if (PyErr_Occurred()) SWIG_fail;
2241 }
2242 Py_INCREF(Py_None); resultobj = Py_None;
2243 return resultobj;
2244 fail:
2245 return NULL;
2246 }
2247
2248
2249 static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2250 PyObject *resultobj;
2251 wxPen *arg1 = (wxPen *) 0 ;
2252 wxPen *arg2 = (wxPen *) 0 ;
2253 bool result;
2254 PyObject * obj0 = 0 ;
2255 PyObject * obj1 = 0 ;
2256 char *kwnames[] = {
2257 (char *) "self",(char *) "other", NULL
2258 };
2259
2260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2263 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2265 {
2266 PyThreadState* __tstate = wxPyBeginAllowThreads();
2267 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2268
2269 wxPyEndAllowThreads(__tstate);
2270 if (PyErr_Occurred()) SWIG_fail;
2271 }
2272 {
2273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2274 }
2275 return resultobj;
2276 fail:
2277 return NULL;
2278 }
2279
2280
2281 static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2282 PyObject *resultobj;
2283 wxPen *arg1 = (wxPen *) 0 ;
2284 wxPen *arg2 = (wxPen *) 0 ;
2285 bool result;
2286 PyObject * obj0 = 0 ;
2287 PyObject * obj1 = 0 ;
2288 char *kwnames[] = {
2289 (char *) "self",(char *) "other", NULL
2290 };
2291
2292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2295 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2297 {
2298 PyThreadState* __tstate = wxPyBeginAllowThreads();
2299 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2300
2301 wxPyEndAllowThreads(__tstate);
2302 if (PyErr_Occurred()) SWIG_fail;
2303 }
2304 {
2305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2306 }
2307 return resultobj;
2308 fail:
2309 return NULL;
2310 }
2311
2312
2313 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
2314 PyObject *obj;
2315 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2316 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2317 Py_INCREF(obj);
2318 return Py_BuildValue((char *)"");
2319 }
2320 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2321 PyObject *resultobj;
2322 wxColour *arg1 = 0 ;
2323 int arg2 = (int) wxSOLID ;
2324 wxBrush *result;
2325 wxColour temp1 ;
2326 PyObject * obj0 = 0 ;
2327 PyObject * obj1 = 0 ;
2328 char *kwnames[] = {
2329 (char *) "colour",(char *) "style", NULL
2330 };
2331
2332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2333 {
2334 arg1 = &temp1;
2335 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2336 }
2337 if (obj1) {
2338 arg2 = (int) SWIG_AsInt(obj1);
2339 if (PyErr_Occurred()) SWIG_fail;
2340 }
2341 {
2342 PyThreadState* __tstate = wxPyBeginAllowThreads();
2343 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2344
2345 wxPyEndAllowThreads(__tstate);
2346 if (PyErr_Occurred()) SWIG_fail;
2347 }
2348 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2349 return resultobj;
2350 fail:
2351 return NULL;
2352 }
2353
2354
2355 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2356 PyObject *resultobj;
2357 wxBrush *arg1 = (wxBrush *) 0 ;
2358 PyObject * obj0 = 0 ;
2359 char *kwnames[] = {
2360 (char *) "self", NULL
2361 };
2362
2363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2366 {
2367 PyThreadState* __tstate = wxPyBeginAllowThreads();
2368 delete arg1;
2369
2370 wxPyEndAllowThreads(__tstate);
2371 if (PyErr_Occurred()) SWIG_fail;
2372 }
2373 Py_INCREF(Py_None); resultobj = Py_None;
2374 return resultobj;
2375 fail:
2376 return NULL;
2377 }
2378
2379
2380 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2381 PyObject *resultobj;
2382 wxBrush *arg1 = (wxBrush *) 0 ;
2383 wxColour *arg2 = 0 ;
2384 wxColour temp2 ;
2385 PyObject * obj0 = 0 ;
2386 PyObject * obj1 = 0 ;
2387 char *kwnames[] = {
2388 (char *) "self",(char *) "col", NULL
2389 };
2390
2391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2394 {
2395 arg2 = &temp2;
2396 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2397 }
2398 {
2399 PyThreadState* __tstate = wxPyBeginAllowThreads();
2400 (arg1)->SetColour((wxColour const &)*arg2);
2401
2402 wxPyEndAllowThreads(__tstate);
2403 if (PyErr_Occurred()) SWIG_fail;
2404 }
2405 Py_INCREF(Py_None); resultobj = Py_None;
2406 return resultobj;
2407 fail:
2408 return NULL;
2409 }
2410
2411
2412 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2413 PyObject *resultobj;
2414 wxBrush *arg1 = (wxBrush *) 0 ;
2415 int arg2 ;
2416 PyObject * obj0 = 0 ;
2417 PyObject * obj1 = 0 ;
2418 char *kwnames[] = {
2419 (char *) "self",(char *) "style", NULL
2420 };
2421
2422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2425 arg2 = (int) SWIG_AsInt(obj1);
2426 if (PyErr_Occurred()) SWIG_fail;
2427 {
2428 PyThreadState* __tstate = wxPyBeginAllowThreads();
2429 (arg1)->SetStyle(arg2);
2430
2431 wxPyEndAllowThreads(__tstate);
2432 if (PyErr_Occurred()) SWIG_fail;
2433 }
2434 Py_INCREF(Py_None); resultobj = Py_None;
2435 return resultobj;
2436 fail:
2437 return NULL;
2438 }
2439
2440
2441 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2442 PyObject *resultobj;
2443 wxBrush *arg1 = (wxBrush *) 0 ;
2444 wxBitmap *arg2 = 0 ;
2445 PyObject * obj0 = 0 ;
2446 PyObject * obj1 = 0 ;
2447 char *kwnames[] = {
2448 (char *) "self",(char *) "stipple", NULL
2449 };
2450
2451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2454 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2455 SWIG_POINTER_EXCEPTION | 0)) == -1)
2456 SWIG_fail;
2457 if (arg2 == NULL) {
2458 PyErr_SetString(PyExc_TypeError,"null reference");
2459 SWIG_fail;
2460 }
2461 {
2462 PyThreadState* __tstate = wxPyBeginAllowThreads();
2463 (arg1)->SetStipple((wxBitmap const &)*arg2);
2464
2465 wxPyEndAllowThreads(__tstate);
2466 if (PyErr_Occurred()) SWIG_fail;
2467 }
2468 Py_INCREF(Py_None); resultobj = Py_None;
2469 return resultobj;
2470 fail:
2471 return NULL;
2472 }
2473
2474
2475 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2476 PyObject *resultobj;
2477 wxBrush *arg1 = (wxBrush *) 0 ;
2478 wxColour result;
2479 PyObject * obj0 = 0 ;
2480 char *kwnames[] = {
2481 (char *) "self", NULL
2482 };
2483
2484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2487 {
2488 PyThreadState* __tstate = wxPyBeginAllowThreads();
2489 result = ((wxBrush const *)arg1)->GetColour();
2490
2491 wxPyEndAllowThreads(__tstate);
2492 if (PyErr_Occurred()) SWIG_fail;
2493 }
2494 {
2495 wxColour * resultptr;
2496 resultptr = new wxColour((wxColour &) result);
2497 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2498 }
2499 return resultobj;
2500 fail:
2501 return NULL;
2502 }
2503
2504
2505 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2506 PyObject *resultobj;
2507 wxBrush *arg1 = (wxBrush *) 0 ;
2508 int result;
2509 PyObject * obj0 = 0 ;
2510 char *kwnames[] = {
2511 (char *) "self", NULL
2512 };
2513
2514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2517 {
2518 PyThreadState* __tstate = wxPyBeginAllowThreads();
2519 result = (int)((wxBrush const *)arg1)->GetStyle();
2520
2521 wxPyEndAllowThreads(__tstate);
2522 if (PyErr_Occurred()) SWIG_fail;
2523 }
2524 resultobj = SWIG_FromInt((int)result);
2525 return resultobj;
2526 fail:
2527 return NULL;
2528 }
2529
2530
2531 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2532 PyObject *resultobj;
2533 wxBrush *arg1 = (wxBrush *) 0 ;
2534 wxBitmap *result;
2535 PyObject * obj0 = 0 ;
2536 char *kwnames[] = {
2537 (char *) "self", NULL
2538 };
2539
2540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2543 {
2544 PyThreadState* __tstate = wxPyBeginAllowThreads();
2545 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2546
2547 wxPyEndAllowThreads(__tstate);
2548 if (PyErr_Occurred()) SWIG_fail;
2549 }
2550 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2551 return resultobj;
2552 fail:
2553 return NULL;
2554 }
2555
2556
2557 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2558 PyObject *resultobj;
2559 wxBrush *arg1 = (wxBrush *) 0 ;
2560 bool result;
2561 PyObject * obj0 = 0 ;
2562 char *kwnames[] = {
2563 (char *) "self", NULL
2564 };
2565
2566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2569 {
2570 PyThreadState* __tstate = wxPyBeginAllowThreads();
2571 result = (bool)(arg1)->Ok();
2572
2573 wxPyEndAllowThreads(__tstate);
2574 if (PyErr_Occurred()) SWIG_fail;
2575 }
2576 {
2577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2578 }
2579 return resultobj;
2580 fail:
2581 return NULL;
2582 }
2583
2584
2585 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2586 PyObject *obj;
2587 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2588 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2589 Py_INCREF(obj);
2590 return Py_BuildValue((char *)"");
2591 }
2592 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2593 PyObject *resultobj;
2594 wxString *arg1 = 0 ;
2595 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2596 wxBitmap *result;
2597 bool temp1 = False ;
2598 PyObject * obj0 = 0 ;
2599 PyObject * obj1 = 0 ;
2600 char *kwnames[] = {
2601 (char *) "name",(char *) "type", NULL
2602 };
2603
2604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2605 {
2606 arg1 = wxString_in_helper(obj0);
2607 if (arg1 == NULL) SWIG_fail;
2608 temp1 = True;
2609 }
2610 if (obj1) {
2611 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2612 if (PyErr_Occurred()) SWIG_fail;
2613 }
2614 {
2615 PyThreadState* __tstate = wxPyBeginAllowThreads();
2616 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2617
2618 wxPyEndAllowThreads(__tstate);
2619 if (PyErr_Occurred()) SWIG_fail;
2620 }
2621 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2622 {
2623 if (temp1)
2624 delete arg1;
2625 }
2626 return resultobj;
2627 fail:
2628 {
2629 if (temp1)
2630 delete arg1;
2631 }
2632 return NULL;
2633 }
2634
2635
2636 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2637 PyObject *resultobj;
2638 wxBitmap *arg1 = (wxBitmap *) 0 ;
2639 PyObject * obj0 = 0 ;
2640 char *kwnames[] = {
2641 (char *) "self", NULL
2642 };
2643
2644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2647 {
2648 PyThreadState* __tstate = wxPyBeginAllowThreads();
2649 delete arg1;
2650
2651 wxPyEndAllowThreads(__tstate);
2652 if (PyErr_Occurred()) SWIG_fail;
2653 }
2654 Py_INCREF(Py_None); resultobj = Py_None;
2655 return resultobj;
2656 fail:
2657 return NULL;
2658 }
2659
2660
2661 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2662 PyObject *resultobj;
2663 int arg1 ;
2664 int arg2 ;
2665 int arg3 = (int) -1 ;
2666 wxBitmap *result;
2667 PyObject * obj0 = 0 ;
2668 PyObject * obj1 = 0 ;
2669 PyObject * obj2 = 0 ;
2670 char *kwnames[] = {
2671 (char *) "width",(char *) "height",(char *) "depth", NULL
2672 };
2673
2674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2675 arg1 = (int) SWIG_AsInt(obj0);
2676 if (PyErr_Occurred()) SWIG_fail;
2677 arg2 = (int) SWIG_AsInt(obj1);
2678 if (PyErr_Occurred()) SWIG_fail;
2679 if (obj2) {
2680 arg3 = (int) SWIG_AsInt(obj2);
2681 if (PyErr_Occurred()) SWIG_fail;
2682 }
2683 {
2684 PyThreadState* __tstate = wxPyBeginAllowThreads();
2685 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2686
2687 wxPyEndAllowThreads(__tstate);
2688 if (PyErr_Occurred()) SWIG_fail;
2689 }
2690 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2691 return resultobj;
2692 fail:
2693 return NULL;
2694 }
2695
2696
2697 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2698 PyObject *resultobj;
2699 wxIcon *arg1 = 0 ;
2700 wxBitmap *result;
2701 PyObject * obj0 = 0 ;
2702 char *kwnames[] = {
2703 (char *) "icon", NULL
2704 };
2705
2706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2708 SWIG_POINTER_EXCEPTION | 0)) == -1)
2709 SWIG_fail;
2710 if (arg1 == NULL) {
2711 PyErr_SetString(PyExc_TypeError,"null reference");
2712 SWIG_fail;
2713 }
2714 {
2715 PyThreadState* __tstate = wxPyBeginAllowThreads();
2716 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2717
2718 wxPyEndAllowThreads(__tstate);
2719 if (PyErr_Occurred()) SWIG_fail;
2720 }
2721 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2722 return resultobj;
2723 fail:
2724 return NULL;
2725 }
2726
2727
2728 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2729 PyObject *resultobj;
2730 wxImage *arg1 = 0 ;
2731 int arg2 = (int) -1 ;
2732 wxBitmap *result;
2733 PyObject * obj0 = 0 ;
2734 PyObject * obj1 = 0 ;
2735 char *kwnames[] = {
2736 (char *) "image",(char *) "depth", NULL
2737 };
2738
2739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2741 SWIG_POINTER_EXCEPTION | 0)) == -1)
2742 SWIG_fail;
2743 if (arg1 == NULL) {
2744 PyErr_SetString(PyExc_TypeError,"null reference");
2745 SWIG_fail;
2746 }
2747 if (obj1) {
2748 arg2 = (int) SWIG_AsInt(obj1);
2749 if (PyErr_Occurred()) SWIG_fail;
2750 }
2751 {
2752 PyThreadState* __tstate = wxPyBeginAllowThreads();
2753 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2754
2755 wxPyEndAllowThreads(__tstate);
2756 if (PyErr_Occurred()) SWIG_fail;
2757 }
2758 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2759 return resultobj;
2760 fail:
2761 return NULL;
2762 }
2763
2764
2765 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2766 PyObject *resultobj;
2767 PyObject *arg1 = (PyObject *) 0 ;
2768 wxBitmap *result;
2769 PyObject * obj0 = 0 ;
2770 char *kwnames[] = {
2771 (char *) "listOfStrings", NULL
2772 };
2773
2774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2775 arg1 = obj0;
2776 {
2777 PyThreadState* __tstate = wxPyBeginAllowThreads();
2778 result = (wxBitmap *)new_wxBitmap(arg1);
2779
2780 wxPyEndAllowThreads(__tstate);
2781 if (PyErr_Occurred()) SWIG_fail;
2782 }
2783 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2784 return resultobj;
2785 fail:
2786 return NULL;
2787 }
2788
2789
2790 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2791 PyObject *resultobj;
2792 PyObject *arg1 = (PyObject *) 0 ;
2793 int arg2 ;
2794 int arg3 ;
2795 int arg4 = (int) 1 ;
2796 wxBitmap *result;
2797 PyObject * obj0 = 0 ;
2798 PyObject * obj1 = 0 ;
2799 PyObject * obj2 = 0 ;
2800 PyObject * obj3 = 0 ;
2801 char *kwnames[] = {
2802 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2803 };
2804
2805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2806 arg1 = obj0;
2807 arg2 = (int) SWIG_AsInt(obj1);
2808 if (PyErr_Occurred()) SWIG_fail;
2809 arg3 = (int) SWIG_AsInt(obj2);
2810 if (PyErr_Occurred()) SWIG_fail;
2811 if (obj3) {
2812 arg4 = (int) SWIG_AsInt(obj3);
2813 if (PyErr_Occurred()) SWIG_fail;
2814 }
2815 {
2816 PyThreadState* __tstate = wxPyBeginAllowThreads();
2817 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2818
2819 wxPyEndAllowThreads(__tstate);
2820 if (PyErr_Occurred()) SWIG_fail;
2821 }
2822 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2823 return resultobj;
2824 fail:
2825 return NULL;
2826 }
2827
2828
2829 static PyObject *_wrap_Bitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
2830 PyObject *resultobj;
2831 wxBitmap *arg1 = (wxBitmap *) 0 ;
2832 wxPalette *arg2 = 0 ;
2833 PyObject * obj0 = 0 ;
2834 PyObject * obj1 = 0 ;
2835 char *kwnames[] = {
2836 (char *) "self",(char *) "palette", NULL
2837 };
2838
2839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail;
2840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2842 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
2843 SWIG_POINTER_EXCEPTION | 0)) == -1)
2844 SWIG_fail;
2845 if (arg2 == NULL) {
2846 PyErr_SetString(PyExc_TypeError,"null reference");
2847 SWIG_fail;
2848 }
2849 {
2850 PyThreadState* __tstate = wxPyBeginAllowThreads();
2851 (arg1)->SetPalette(*arg2);
2852
2853 wxPyEndAllowThreads(__tstate);
2854 if (PyErr_Occurred()) SWIG_fail;
2855 }
2856 Py_INCREF(Py_None); resultobj = Py_None;
2857 return resultobj;
2858 fail:
2859 return NULL;
2860 }
2861
2862
2863 static PyObject *_wrap_Bitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2864 PyObject *resultobj;
2865 wxBitmap *arg1 = (wxBitmap *) 0 ;
2866 long result;
2867 PyObject * obj0 = 0 ;
2868 char *kwnames[] = {
2869 (char *) "self", NULL
2870 };
2871
2872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail;
2873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2875 {
2876 PyThreadState* __tstate = wxPyBeginAllowThreads();
2877 result = (long)(arg1)->GetHandle();
2878
2879 wxPyEndAllowThreads(__tstate);
2880 if (PyErr_Occurred()) SWIG_fail;
2881 }
2882 resultobj = SWIG_FromLong((long)result);
2883 return resultobj;
2884 fail:
2885 return NULL;
2886 }
2887
2888
2889 static PyObject *_wrap_Bitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2890 PyObject *resultobj;
2891 wxBitmap *arg1 = (wxBitmap *) 0 ;
2892 long arg2 ;
2893 PyObject * obj0 = 0 ;
2894 PyObject * obj1 = 0 ;
2895 char *kwnames[] = {
2896 (char *) "self",(char *) "handle", NULL
2897 };
2898
2899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail;
2900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2902 arg2 = (long) SWIG_AsLong(obj1);
2903 if (PyErr_Occurred()) SWIG_fail;
2904 {
2905 PyThreadState* __tstate = wxPyBeginAllowThreads();
2906 wxBitmap_SetHandle(arg1,arg2);
2907
2908 wxPyEndAllowThreads(__tstate);
2909 if (PyErr_Occurred()) SWIG_fail;
2910 }
2911 Py_INCREF(Py_None); resultobj = Py_None;
2912 return resultobj;
2913 fail:
2914 return NULL;
2915 }
2916
2917
2918 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2919 PyObject *resultobj;
2920 wxBitmap *arg1 = (wxBitmap *) 0 ;
2921 bool result;
2922 PyObject * obj0 = 0 ;
2923 char *kwnames[] = {
2924 (char *) "self", NULL
2925 };
2926
2927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2930 {
2931 PyThreadState* __tstate = wxPyBeginAllowThreads();
2932 result = (bool)(arg1)->Ok();
2933
2934 wxPyEndAllowThreads(__tstate);
2935 if (PyErr_Occurred()) SWIG_fail;
2936 }
2937 {
2938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2939 }
2940 return resultobj;
2941 fail:
2942 return NULL;
2943 }
2944
2945
2946 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2947 PyObject *resultobj;
2948 wxBitmap *arg1 = (wxBitmap *) 0 ;
2949 int result;
2950 PyObject * obj0 = 0 ;
2951 char *kwnames[] = {
2952 (char *) "self", NULL
2953 };
2954
2955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2958 {
2959 PyThreadState* __tstate = wxPyBeginAllowThreads();
2960 result = (int)(arg1)->GetWidth();
2961
2962 wxPyEndAllowThreads(__tstate);
2963 if (PyErr_Occurred()) SWIG_fail;
2964 }
2965 resultobj = SWIG_FromInt((int)result);
2966 return resultobj;
2967 fail:
2968 return NULL;
2969 }
2970
2971
2972 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2973 PyObject *resultobj;
2974 wxBitmap *arg1 = (wxBitmap *) 0 ;
2975 int result;
2976 PyObject * obj0 = 0 ;
2977 char *kwnames[] = {
2978 (char *) "self", NULL
2979 };
2980
2981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2984 {
2985 PyThreadState* __tstate = wxPyBeginAllowThreads();
2986 result = (int)(arg1)->GetHeight();
2987
2988 wxPyEndAllowThreads(__tstate);
2989 if (PyErr_Occurred()) SWIG_fail;
2990 }
2991 resultobj = SWIG_FromInt((int)result);
2992 return resultobj;
2993 fail:
2994 return NULL;
2995 }
2996
2997
2998 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2999 PyObject *resultobj;
3000 wxBitmap *arg1 = (wxBitmap *) 0 ;
3001 int result;
3002 PyObject * obj0 = 0 ;
3003 char *kwnames[] = {
3004 (char *) "self", NULL
3005 };
3006
3007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
3008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3010 {
3011 PyThreadState* __tstate = wxPyBeginAllowThreads();
3012 result = (int)(arg1)->GetDepth();
3013
3014 wxPyEndAllowThreads(__tstate);
3015 if (PyErr_Occurred()) SWIG_fail;
3016 }
3017 resultobj = SWIG_FromInt((int)result);
3018 return resultobj;
3019 fail:
3020 return NULL;
3021 }
3022
3023
3024 static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3025 PyObject *resultobj;
3026 wxBitmap *arg1 = (wxBitmap *) 0 ;
3027 wxSize result;
3028 PyObject * obj0 = 0 ;
3029 char *kwnames[] = {
3030 (char *) "self", NULL
3031 };
3032
3033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
3034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3036 {
3037 PyThreadState* __tstate = wxPyBeginAllowThreads();
3038 result = wxBitmap_GetSize(arg1);
3039
3040 wxPyEndAllowThreads(__tstate);
3041 if (PyErr_Occurred()) SWIG_fail;
3042 }
3043 {
3044 wxSize * resultptr;
3045 resultptr = new wxSize((wxSize &) result);
3046 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3047 }
3048 return resultobj;
3049 fail:
3050 return NULL;
3051 }
3052
3053
3054 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3055 PyObject *resultobj;
3056 wxBitmap *arg1 = (wxBitmap *) 0 ;
3057 SwigValueWrapper< wxImage > result;
3058 PyObject * obj0 = 0 ;
3059 char *kwnames[] = {
3060 (char *) "self", NULL
3061 };
3062
3063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
3064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3066 {
3067 PyThreadState* __tstate = wxPyBeginAllowThreads();
3068 result = ((wxBitmap const *)arg1)->ConvertToImage();
3069
3070 wxPyEndAllowThreads(__tstate);
3071 if (PyErr_Occurred()) SWIG_fail;
3072 }
3073 {
3074 wxImage * resultptr;
3075 resultptr = new wxImage((wxImage &) result);
3076 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3077 }
3078 return resultobj;
3079 fail:
3080 return NULL;
3081 }
3082
3083
3084 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3085 PyObject *resultobj;
3086 wxBitmap *arg1 = (wxBitmap *) 0 ;
3087 wxMask *result;
3088 PyObject * obj0 = 0 ;
3089 char *kwnames[] = {
3090 (char *) "self", NULL
3091 };
3092
3093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3096 {
3097 PyThreadState* __tstate = wxPyBeginAllowThreads();
3098 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3099
3100 wxPyEndAllowThreads(__tstate);
3101 if (PyErr_Occurred()) SWIG_fail;
3102 }
3103 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3104 return resultobj;
3105 fail:
3106 return NULL;
3107 }
3108
3109
3110 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3111 PyObject *resultobj;
3112 wxBitmap *arg1 = (wxBitmap *) 0 ;
3113 wxMask *arg2 = (wxMask *) 0 ;
3114 PyObject * obj0 = 0 ;
3115 PyObject * obj1 = 0 ;
3116 char *kwnames[] = {
3117 (char *) "self",(char *) "mask", NULL
3118 };
3119
3120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3123 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3125 {
3126 PyThreadState* __tstate = wxPyBeginAllowThreads();
3127 (arg1)->SetMask(arg2);
3128
3129 wxPyEndAllowThreads(__tstate);
3130 if (PyErr_Occurred()) SWIG_fail;
3131 }
3132 Py_INCREF(Py_None); resultobj = Py_None;
3133 return resultobj;
3134 fail:
3135 return NULL;
3136 }
3137
3138
3139 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3140 PyObject *resultobj;
3141 wxBitmap *arg1 = (wxBitmap *) 0 ;
3142 wxColour *arg2 = 0 ;
3143 wxColour temp2 ;
3144 PyObject * obj0 = 0 ;
3145 PyObject * obj1 = 0 ;
3146 char *kwnames[] = {
3147 (char *) "self",(char *) "colour", NULL
3148 };
3149
3150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3153 {
3154 arg2 = &temp2;
3155 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3156 }
3157 {
3158 PyThreadState* __tstate = wxPyBeginAllowThreads();
3159 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3160
3161 wxPyEndAllowThreads(__tstate);
3162 if (PyErr_Occurred()) SWIG_fail;
3163 }
3164 Py_INCREF(Py_None); resultobj = Py_None;
3165 return resultobj;
3166 fail:
3167 return NULL;
3168 }
3169
3170
3171 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3172 PyObject *resultobj;
3173 wxBitmap *arg1 = (wxBitmap *) 0 ;
3174 wxRect *arg2 = 0 ;
3175 SwigValueWrapper< wxBitmap > result;
3176 wxRect temp2 ;
3177 PyObject * obj0 = 0 ;
3178 PyObject * obj1 = 0 ;
3179 char *kwnames[] = {
3180 (char *) "self",(char *) "rect", NULL
3181 };
3182
3183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3186 {
3187 arg2 = &temp2;
3188 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3189 }
3190 {
3191 PyThreadState* __tstate = wxPyBeginAllowThreads();
3192 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3193
3194 wxPyEndAllowThreads(__tstate);
3195 if (PyErr_Occurred()) SWIG_fail;
3196 }
3197 {
3198 wxBitmap * resultptr;
3199 resultptr = new wxBitmap((wxBitmap &) result);
3200 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3201 }
3202 return resultobj;
3203 fail:
3204 return NULL;
3205 }
3206
3207
3208 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3209 PyObject *resultobj;
3210 wxBitmap *arg1 = (wxBitmap *) 0 ;
3211 wxString *arg2 = 0 ;
3212 int arg3 ;
3213 wxPalette *arg4 = (wxPalette *) NULL ;
3214 bool result;
3215 bool temp2 = False ;
3216 PyObject * obj0 = 0 ;
3217 PyObject * obj1 = 0 ;
3218 PyObject * obj2 = 0 ;
3219 PyObject * obj3 = 0 ;
3220 char *kwnames[] = {
3221 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3222 };
3223
3224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3227 {
3228 arg2 = wxString_in_helper(obj1);
3229 if (arg2 == NULL) SWIG_fail;
3230 temp2 = True;
3231 }
3232 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3233 if (PyErr_Occurred()) SWIG_fail;
3234 if (obj3) {
3235 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3237 }
3238 {
3239 PyThreadState* __tstate = wxPyBeginAllowThreads();
3240 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3241
3242 wxPyEndAllowThreads(__tstate);
3243 if (PyErr_Occurred()) SWIG_fail;
3244 }
3245 {
3246 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3247 }
3248 {
3249 if (temp2)
3250 delete arg2;
3251 }
3252 return resultobj;
3253 fail:
3254 {
3255 if (temp2)
3256 delete arg2;
3257 }
3258 return NULL;
3259 }
3260
3261
3262 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3263 PyObject *resultobj;
3264 wxBitmap *arg1 = (wxBitmap *) 0 ;
3265 wxString *arg2 = 0 ;
3266 int arg3 ;
3267 bool result;
3268 bool temp2 = False ;
3269 PyObject * obj0 = 0 ;
3270 PyObject * obj1 = 0 ;
3271 PyObject * obj2 = 0 ;
3272 char *kwnames[] = {
3273 (char *) "self",(char *) "name",(char *) "type", NULL
3274 };
3275
3276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3279 {
3280 arg2 = wxString_in_helper(obj1);
3281 if (arg2 == NULL) SWIG_fail;
3282 temp2 = True;
3283 }
3284 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3285 if (PyErr_Occurred()) SWIG_fail;
3286 {
3287 PyThreadState* __tstate = wxPyBeginAllowThreads();
3288 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3289
3290 wxPyEndAllowThreads(__tstate);
3291 if (PyErr_Occurred()) SWIG_fail;
3292 }
3293 {
3294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3295 }
3296 {
3297 if (temp2)
3298 delete arg2;
3299 }
3300 return resultobj;
3301 fail:
3302 {
3303 if (temp2)
3304 delete arg2;
3305 }
3306 return NULL;
3307 }
3308
3309
3310 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3311 PyObject *resultobj;
3312 wxBitmap *arg1 = (wxBitmap *) 0 ;
3313 wxIcon *arg2 = 0 ;
3314 bool result;
3315 PyObject * obj0 = 0 ;
3316 PyObject * obj1 = 0 ;
3317 char *kwnames[] = {
3318 (char *) "self",(char *) "icon", NULL
3319 };
3320
3321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3324 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3325 SWIG_POINTER_EXCEPTION | 0)) == -1)
3326 SWIG_fail;
3327 if (arg2 == NULL) {
3328 PyErr_SetString(PyExc_TypeError,"null reference");
3329 SWIG_fail;
3330 }
3331 {
3332 PyThreadState* __tstate = wxPyBeginAllowThreads();
3333 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3334
3335 wxPyEndAllowThreads(__tstate);
3336 if (PyErr_Occurred()) SWIG_fail;
3337 }
3338 {
3339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3340 }
3341 return resultobj;
3342 fail:
3343 return NULL;
3344 }
3345
3346
3347 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3348 PyObject *resultobj;
3349 wxBitmap *arg1 = (wxBitmap *) 0 ;
3350 int arg2 ;
3351 PyObject * obj0 = 0 ;
3352 PyObject * obj1 = 0 ;
3353 char *kwnames[] = {
3354 (char *) "self",(char *) "height", NULL
3355 };
3356
3357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3360 arg2 = (int) SWIG_AsInt(obj1);
3361 if (PyErr_Occurred()) SWIG_fail;
3362 {
3363 PyThreadState* __tstate = wxPyBeginAllowThreads();
3364 (arg1)->SetHeight(arg2);
3365
3366 wxPyEndAllowThreads(__tstate);
3367 if (PyErr_Occurred()) SWIG_fail;
3368 }
3369 Py_INCREF(Py_None); resultobj = Py_None;
3370 return resultobj;
3371 fail:
3372 return NULL;
3373 }
3374
3375
3376 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3377 PyObject *resultobj;
3378 wxBitmap *arg1 = (wxBitmap *) 0 ;
3379 int arg2 ;
3380 PyObject * obj0 = 0 ;
3381 PyObject * obj1 = 0 ;
3382 char *kwnames[] = {
3383 (char *) "self",(char *) "width", NULL
3384 };
3385
3386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3389 arg2 = (int) SWIG_AsInt(obj1);
3390 if (PyErr_Occurred()) SWIG_fail;
3391 {
3392 PyThreadState* __tstate = wxPyBeginAllowThreads();
3393 (arg1)->SetWidth(arg2);
3394
3395 wxPyEndAllowThreads(__tstate);
3396 if (PyErr_Occurred()) SWIG_fail;
3397 }
3398 Py_INCREF(Py_None); resultobj = Py_None;
3399 return resultobj;
3400 fail:
3401 return NULL;
3402 }
3403
3404
3405 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3406 PyObject *resultobj;
3407 wxBitmap *arg1 = (wxBitmap *) 0 ;
3408 int arg2 ;
3409 PyObject * obj0 = 0 ;
3410 PyObject * obj1 = 0 ;
3411 char *kwnames[] = {
3412 (char *) "self",(char *) "depth", NULL
3413 };
3414
3415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3418 arg2 = (int) SWIG_AsInt(obj1);
3419 if (PyErr_Occurred()) SWIG_fail;
3420 {
3421 PyThreadState* __tstate = wxPyBeginAllowThreads();
3422 (arg1)->SetDepth(arg2);
3423
3424 wxPyEndAllowThreads(__tstate);
3425 if (PyErr_Occurred()) SWIG_fail;
3426 }
3427 Py_INCREF(Py_None); resultobj = Py_None;
3428 return resultobj;
3429 fail:
3430 return NULL;
3431 }
3432
3433
3434 static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3435 PyObject *resultobj;
3436 wxBitmap *arg1 = (wxBitmap *) 0 ;
3437 wxSize *arg2 = 0 ;
3438 wxSize temp2 ;
3439 PyObject * obj0 = 0 ;
3440 PyObject * obj1 = 0 ;
3441 char *kwnames[] = {
3442 (char *) "self",(char *) "size", NULL
3443 };
3444
3445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3448 {
3449 arg2 = &temp2;
3450 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3451 }
3452 {
3453 PyThreadState* __tstate = wxPyBeginAllowThreads();
3454 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3455
3456 wxPyEndAllowThreads(__tstate);
3457 if (PyErr_Occurred()) SWIG_fail;
3458 }
3459 Py_INCREF(Py_None); resultobj = Py_None;
3460 return resultobj;
3461 fail:
3462 return NULL;
3463 }
3464
3465
3466 static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3467 PyObject *resultobj;
3468 wxBitmap *arg1 = (wxBitmap *) 0 ;
3469 wxCursor *arg2 = 0 ;
3470 bool result;
3471 PyObject * obj0 = 0 ;
3472 PyObject * obj1 = 0 ;
3473 char *kwnames[] = {
3474 (char *) "self",(char *) "cursor", NULL
3475 };
3476
3477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail;
3478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3480 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
3481 SWIG_POINTER_EXCEPTION | 0)) == -1)
3482 SWIG_fail;
3483 if (arg2 == NULL) {
3484 PyErr_SetString(PyExc_TypeError,"null reference");
3485 SWIG_fail;
3486 }
3487 {
3488 PyThreadState* __tstate = wxPyBeginAllowThreads();
3489 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
3490
3491 wxPyEndAllowThreads(__tstate);
3492 if (PyErr_Occurred()) SWIG_fail;
3493 }
3494 {
3495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3496 }
3497 return resultobj;
3498 fail:
3499 return NULL;
3500 }
3501
3502
3503 static PyObject *_wrap_Bitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3504 PyObject *resultobj;
3505 wxBitmap *arg1 = (wxBitmap *) 0 ;
3506 int result;
3507 PyObject * obj0 = 0 ;
3508 char *kwnames[] = {
3509 (char *) "self", NULL
3510 };
3511
3512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail;
3513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3515 {
3516 PyThreadState* __tstate = wxPyBeginAllowThreads();
3517 result = (int)(arg1)->GetQuality();
3518
3519 wxPyEndAllowThreads(__tstate);
3520 if (PyErr_Occurred()) SWIG_fail;
3521 }
3522 resultobj = SWIG_FromInt((int)result);
3523 return resultobj;
3524 fail:
3525 return NULL;
3526 }
3527
3528
3529 static PyObject *_wrap_Bitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3530 PyObject *resultobj;
3531 wxBitmap *arg1 = (wxBitmap *) 0 ;
3532 int arg2 ;
3533 PyObject * obj0 = 0 ;
3534 PyObject * obj1 = 0 ;
3535 char *kwnames[] = {
3536 (char *) "self",(char *) "q", NULL
3537 };
3538
3539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetQuality",kwnames,&obj0,&obj1)) goto fail;
3540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3542 arg2 = (int) SWIG_AsInt(obj1);
3543 if (PyErr_Occurred()) SWIG_fail;
3544 {
3545 PyThreadState* __tstate = wxPyBeginAllowThreads();
3546 (arg1)->SetQuality(arg2);
3547
3548 wxPyEndAllowThreads(__tstate);
3549 if (PyErr_Occurred()) SWIG_fail;
3550 }
3551 Py_INCREF(Py_None); resultobj = Py_None;
3552 return resultobj;
3553 fail:
3554 return NULL;
3555 }
3556
3557
3558 static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3559 PyObject *resultobj;
3560 wxBitmap *arg1 = (wxBitmap *) 0 ;
3561 wxBitmap *arg2 = (wxBitmap *) 0 ;
3562 bool result;
3563 PyObject * obj0 = 0 ;
3564 PyObject * obj1 = 0 ;
3565 char *kwnames[] = {
3566 (char *) "self",(char *) "other", NULL
3567 };
3568
3569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3572 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3574 {
3575 PyThreadState* __tstate = wxPyBeginAllowThreads();
3576 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3577
3578 wxPyEndAllowThreads(__tstate);
3579 if (PyErr_Occurred()) SWIG_fail;
3580 }
3581 {
3582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3583 }
3584 return resultobj;
3585 fail:
3586 return NULL;
3587 }
3588
3589
3590 static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3591 PyObject *resultobj;
3592 wxBitmap *arg1 = (wxBitmap *) 0 ;
3593 wxBitmap *arg2 = (wxBitmap *) 0 ;
3594 bool result;
3595 PyObject * obj0 = 0 ;
3596 PyObject * obj1 = 0 ;
3597 char *kwnames[] = {
3598 (char *) "self",(char *) "other", NULL
3599 };
3600
3601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3604 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3606 {
3607 PyThreadState* __tstate = wxPyBeginAllowThreads();
3608 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3609
3610 wxPyEndAllowThreads(__tstate);
3611 if (PyErr_Occurred()) SWIG_fail;
3612 }
3613 {
3614 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3615 }
3616 return resultobj;
3617 fail:
3618 return NULL;
3619 }
3620
3621
3622 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3623 PyObject *obj;
3624 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3625 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3626 Py_INCREF(obj);
3627 return Py_BuildValue((char *)"");
3628 }
3629 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3630 PyObject *resultobj;
3631 wxBitmap *arg1 = 0 ;
3632 wxColour const &arg2_defvalue = wxNullColour ;
3633 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3634 wxMask *result;
3635 wxColour temp2 ;
3636 PyObject * obj0 = 0 ;
3637 PyObject * obj1 = 0 ;
3638 char *kwnames[] = {
3639 (char *) "bitmap",(char *) "colour", NULL
3640 };
3641
3642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3644 SWIG_POINTER_EXCEPTION | 0)) == -1)
3645 SWIG_fail;
3646 if (arg1 == NULL) {
3647 PyErr_SetString(PyExc_TypeError,"null reference");
3648 SWIG_fail;
3649 }
3650 if (obj1) {
3651 {
3652 arg2 = &temp2;
3653 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3654 }
3655 }
3656 {
3657 PyThreadState* __tstate = wxPyBeginAllowThreads();
3658 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3659
3660 wxPyEndAllowThreads(__tstate);
3661 if (PyErr_Occurred()) SWIG_fail;
3662 }
3663 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3664 return resultobj;
3665 fail:
3666 return NULL;
3667 }
3668
3669
3670 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3671 PyObject *obj;
3672 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3673 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3674 Py_INCREF(obj);
3675 return Py_BuildValue((char *)"");
3676 }
3677 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3678 PyObject *resultobj;
3679 wxString *arg1 = 0 ;
3680 int arg2 ;
3681 int arg3 = (int) -1 ;
3682 int arg4 = (int) -1 ;
3683 wxIcon *result;
3684 bool temp1 = False ;
3685 PyObject * obj0 = 0 ;
3686 PyObject * obj1 = 0 ;
3687 PyObject * obj2 = 0 ;
3688 PyObject * obj3 = 0 ;
3689 char *kwnames[] = {
3690 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3691 };
3692
3693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3694 {
3695 arg1 = wxString_in_helper(obj0);
3696 if (arg1 == NULL) SWIG_fail;
3697 temp1 = True;
3698 }
3699 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3700 if (PyErr_Occurred()) SWIG_fail;
3701 if (obj2) {
3702 arg3 = (int) SWIG_AsInt(obj2);
3703 if (PyErr_Occurred()) SWIG_fail;
3704 }
3705 if (obj3) {
3706 arg4 = (int) SWIG_AsInt(obj3);
3707 if (PyErr_Occurred()) SWIG_fail;
3708 }
3709 {
3710 PyThreadState* __tstate = wxPyBeginAllowThreads();
3711 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3712
3713 wxPyEndAllowThreads(__tstate);
3714 if (PyErr_Occurred()) SWIG_fail;
3715 }
3716 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3717 {
3718 if (temp1)
3719 delete arg1;
3720 }
3721 return resultobj;
3722 fail:
3723 {
3724 if (temp1)
3725 delete arg1;
3726 }
3727 return NULL;
3728 }
3729
3730
3731 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3732 PyObject *resultobj;
3733 wxIcon *arg1 = (wxIcon *) 0 ;
3734 PyObject * obj0 = 0 ;
3735 char *kwnames[] = {
3736 (char *) "self", NULL
3737 };
3738
3739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3742 {
3743 PyThreadState* __tstate = wxPyBeginAllowThreads();
3744 delete arg1;
3745
3746 wxPyEndAllowThreads(__tstate);
3747 if (PyErr_Occurred()) SWIG_fail;
3748 }
3749 Py_INCREF(Py_None); resultobj = Py_None;
3750 return resultobj;
3751 fail:
3752 return NULL;
3753 }
3754
3755
3756 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3757 PyObject *resultobj;
3758 wxIcon *result;
3759 char *kwnames[] = {
3760 NULL
3761 };
3762
3763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3764 {
3765 PyThreadState* __tstate = wxPyBeginAllowThreads();
3766 result = (wxIcon *)new wxIcon();
3767
3768 wxPyEndAllowThreads(__tstate);
3769 if (PyErr_Occurred()) SWIG_fail;
3770 }
3771 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3772 return resultobj;
3773 fail:
3774 return NULL;
3775 }
3776
3777
3778 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3779 PyObject *resultobj;
3780 wxIconLocation *arg1 = 0 ;
3781 wxIcon *result;
3782 PyObject * obj0 = 0 ;
3783 char *kwnames[] = {
3784 (char *) "loc", NULL
3785 };
3786
3787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3789 SWIG_POINTER_EXCEPTION | 0)) == -1)
3790 SWIG_fail;
3791 if (arg1 == NULL) {
3792 PyErr_SetString(PyExc_TypeError,"null reference");
3793 SWIG_fail;
3794 }
3795 {
3796 PyThreadState* __tstate = wxPyBeginAllowThreads();
3797 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3798
3799 wxPyEndAllowThreads(__tstate);
3800 if (PyErr_Occurred()) SWIG_fail;
3801 }
3802 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3803 return resultobj;
3804 fail:
3805 return NULL;
3806 }
3807
3808
3809 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3810 PyObject *resultobj;
3811 wxBitmap *arg1 = 0 ;
3812 wxIcon *result;
3813 PyObject * obj0 = 0 ;
3814 char *kwnames[] = {
3815 (char *) "bmp", NULL
3816 };
3817
3818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3820 SWIG_POINTER_EXCEPTION | 0)) == -1)
3821 SWIG_fail;
3822 if (arg1 == NULL) {
3823 PyErr_SetString(PyExc_TypeError,"null reference");
3824 SWIG_fail;
3825 }
3826 {
3827 PyThreadState* __tstate = wxPyBeginAllowThreads();
3828 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3829
3830 wxPyEndAllowThreads(__tstate);
3831 if (PyErr_Occurred()) SWIG_fail;
3832 }
3833 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3834 return resultobj;
3835 fail:
3836 return NULL;
3837 }
3838
3839
3840 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3841 PyObject *resultobj;
3842 PyObject *arg1 = (PyObject *) 0 ;
3843 wxIcon *result;
3844 PyObject * obj0 = 0 ;
3845 char *kwnames[] = {
3846 (char *) "listOfStrings", NULL
3847 };
3848
3849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3850 arg1 = obj0;
3851 {
3852 PyThreadState* __tstate = wxPyBeginAllowThreads();
3853 result = (wxIcon *)new_wxIcon(arg1);
3854
3855 wxPyEndAllowThreads(__tstate);
3856 if (PyErr_Occurred()) SWIG_fail;
3857 }
3858 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3859 return resultobj;
3860 fail:
3861 return NULL;
3862 }
3863
3864
3865 static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3866 PyObject *resultobj;
3867 wxIcon *arg1 = (wxIcon *) 0 ;
3868 wxString *arg2 = 0 ;
3869 int arg3 ;
3870 bool result;
3871 bool temp2 = False ;
3872 PyObject * obj0 = 0 ;
3873 PyObject * obj1 = 0 ;
3874 PyObject * obj2 = 0 ;
3875 char *kwnames[] = {
3876 (char *) "self",(char *) "name",(char *) "type", NULL
3877 };
3878
3879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3882 {
3883 arg2 = wxString_in_helper(obj1);
3884 if (arg2 == NULL) SWIG_fail;
3885 temp2 = True;
3886 }
3887 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3888 if (PyErr_Occurred()) SWIG_fail;
3889 {
3890 PyThreadState* __tstate = wxPyBeginAllowThreads();
3891 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3892
3893 wxPyEndAllowThreads(__tstate);
3894 if (PyErr_Occurred()) SWIG_fail;
3895 }
3896 {
3897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3898 }
3899 {
3900 if (temp2)
3901 delete arg2;
3902 }
3903 return resultobj;
3904 fail:
3905 {
3906 if (temp2)
3907 delete arg2;
3908 }
3909 return NULL;
3910 }
3911
3912
3913 static PyObject *_wrap_Icon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3914 PyObject *resultobj;
3915 wxIcon *arg1 = (wxIcon *) 0 ;
3916 long result;
3917 PyObject * obj0 = 0 ;
3918 char *kwnames[] = {
3919 (char *) "self", NULL
3920 };
3921
3922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail;
3923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3925 {
3926 PyThreadState* __tstate = wxPyBeginAllowThreads();
3927 result = (long)(arg1)->GetHandle();
3928
3929 wxPyEndAllowThreads(__tstate);
3930 if (PyErr_Occurred()) SWIG_fail;
3931 }
3932 resultobj = SWIG_FromLong((long)result);
3933 return resultobj;
3934 fail:
3935 return NULL;
3936 }
3937
3938
3939 static PyObject *_wrap_Icon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3940 PyObject *resultobj;
3941 wxIcon *arg1 = (wxIcon *) 0 ;
3942 long arg2 ;
3943 PyObject * obj0 = 0 ;
3944 PyObject * obj1 = 0 ;
3945 char *kwnames[] = {
3946 (char *) "self",(char *) "handle", NULL
3947 };
3948
3949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail;
3950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3952 arg2 = (long) SWIG_AsLong(obj1);
3953 if (PyErr_Occurred()) SWIG_fail;
3954 {
3955 PyThreadState* __tstate = wxPyBeginAllowThreads();
3956 wxIcon_SetHandle(arg1,arg2);
3957
3958 wxPyEndAllowThreads(__tstate);
3959 if (PyErr_Occurred()) SWIG_fail;
3960 }
3961 Py_INCREF(Py_None); resultobj = Py_None;
3962 return resultobj;
3963 fail:
3964 return NULL;
3965 }
3966
3967
3968 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3969 PyObject *resultobj;
3970 wxIcon *arg1 = (wxIcon *) 0 ;
3971 bool result;
3972 PyObject * obj0 = 0 ;
3973 char *kwnames[] = {
3974 (char *) "self", NULL
3975 };
3976
3977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3980 {
3981 PyThreadState* __tstate = wxPyBeginAllowThreads();
3982 result = (bool)(arg1)->Ok();
3983
3984 wxPyEndAllowThreads(__tstate);
3985 if (PyErr_Occurred()) SWIG_fail;
3986 }
3987 {
3988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3989 }
3990 return resultobj;
3991 fail:
3992 return NULL;
3993 }
3994
3995
3996 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3997 PyObject *resultobj;
3998 wxIcon *arg1 = (wxIcon *) 0 ;
3999 int result;
4000 PyObject * obj0 = 0 ;
4001 char *kwnames[] = {
4002 (char *) "self", NULL
4003 };
4004
4005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
4006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4008 {
4009 PyThreadState* __tstate = wxPyBeginAllowThreads();
4010 result = (int)(arg1)->GetWidth();
4011
4012 wxPyEndAllowThreads(__tstate);
4013 if (PyErr_Occurred()) SWIG_fail;
4014 }
4015 resultobj = SWIG_FromInt((int)result);
4016 return resultobj;
4017 fail:
4018 return NULL;
4019 }
4020
4021
4022 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4023 PyObject *resultobj;
4024 wxIcon *arg1 = (wxIcon *) 0 ;
4025 int result;
4026 PyObject * obj0 = 0 ;
4027 char *kwnames[] = {
4028 (char *) "self", NULL
4029 };
4030
4031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
4032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4034 {
4035 PyThreadState* __tstate = wxPyBeginAllowThreads();
4036 result = (int)(arg1)->GetHeight();
4037
4038 wxPyEndAllowThreads(__tstate);
4039 if (PyErr_Occurred()) SWIG_fail;
4040 }
4041 resultobj = SWIG_FromInt((int)result);
4042 return resultobj;
4043 fail:
4044 return NULL;
4045 }
4046
4047
4048 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4049 PyObject *resultobj;
4050 wxIcon *arg1 = (wxIcon *) 0 ;
4051 int result;
4052 PyObject * obj0 = 0 ;
4053 char *kwnames[] = {
4054 (char *) "self", NULL
4055 };
4056
4057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
4058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4060 {
4061 PyThreadState* __tstate = wxPyBeginAllowThreads();
4062 result = (int)(arg1)->GetDepth();
4063
4064 wxPyEndAllowThreads(__tstate);
4065 if (PyErr_Occurred()) SWIG_fail;
4066 }
4067 resultobj = SWIG_FromInt((int)result);
4068 return resultobj;
4069 fail:
4070 return NULL;
4071 }
4072
4073
4074 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4075 PyObject *resultobj;
4076 wxIcon *arg1 = (wxIcon *) 0 ;
4077 int arg2 ;
4078 PyObject * obj0 = 0 ;
4079 PyObject * obj1 = 0 ;
4080 char *kwnames[] = {
4081 (char *) "self",(char *) "w", NULL
4082 };
4083
4084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
4085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4087 arg2 = (int) SWIG_AsInt(obj1);
4088 if (PyErr_Occurred()) SWIG_fail;
4089 {
4090 PyThreadState* __tstate = wxPyBeginAllowThreads();
4091 (arg1)->SetWidth(arg2);
4092
4093 wxPyEndAllowThreads(__tstate);
4094 if (PyErr_Occurred()) SWIG_fail;
4095 }
4096 Py_INCREF(Py_None); resultobj = Py_None;
4097 return resultobj;
4098 fail:
4099 return NULL;
4100 }
4101
4102
4103 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4104 PyObject *resultobj;
4105 wxIcon *arg1 = (wxIcon *) 0 ;
4106 int arg2 ;
4107 PyObject * obj0 = 0 ;
4108 PyObject * obj1 = 0 ;
4109 char *kwnames[] = {
4110 (char *) "self",(char *) "h", NULL
4111 };
4112
4113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4116 arg2 = (int) SWIG_AsInt(obj1);
4117 if (PyErr_Occurred()) SWIG_fail;
4118 {
4119 PyThreadState* __tstate = wxPyBeginAllowThreads();
4120 (arg1)->SetHeight(arg2);
4121
4122 wxPyEndAllowThreads(__tstate);
4123 if (PyErr_Occurred()) SWIG_fail;
4124 }
4125 Py_INCREF(Py_None); resultobj = Py_None;
4126 return resultobj;
4127 fail:
4128 return NULL;
4129 }
4130
4131
4132 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4133 PyObject *resultobj;
4134 wxIcon *arg1 = (wxIcon *) 0 ;
4135 int arg2 ;
4136 PyObject * obj0 = 0 ;
4137 PyObject * obj1 = 0 ;
4138 char *kwnames[] = {
4139 (char *) "self",(char *) "d", NULL
4140 };
4141
4142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4145 arg2 = (int) SWIG_AsInt(obj1);
4146 if (PyErr_Occurred()) SWIG_fail;
4147 {
4148 PyThreadState* __tstate = wxPyBeginAllowThreads();
4149 (arg1)->SetDepth(arg2);
4150
4151 wxPyEndAllowThreads(__tstate);
4152 if (PyErr_Occurred()) SWIG_fail;
4153 }
4154 Py_INCREF(Py_None); resultobj = Py_None;
4155 return resultobj;
4156 fail:
4157 return NULL;
4158 }
4159
4160
4161 static PyObject *_wrap_Icon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4162 PyObject *resultobj;
4163 wxIcon *arg1 = (wxIcon *) 0 ;
4164 wxSize *arg2 = 0 ;
4165 wxSize temp2 ;
4166 PyObject * obj0 = 0 ;
4167 PyObject * obj1 = 0 ;
4168 char *kwnames[] = {
4169 (char *) "self",(char *) "size", NULL
4170 };
4171
4172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail;
4173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4175 {
4176 arg2 = &temp2;
4177 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4178 }
4179 {
4180 PyThreadState* __tstate = wxPyBeginAllowThreads();
4181 (arg1)->SetSize((wxSize const &)*arg2);
4182
4183 wxPyEndAllowThreads(__tstate);
4184 if (PyErr_Occurred()) SWIG_fail;
4185 }
4186 Py_INCREF(Py_None); resultobj = Py_None;
4187 return resultobj;
4188 fail:
4189 return NULL;
4190 }
4191
4192
4193 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4194 PyObject *resultobj;
4195 wxIcon *arg1 = (wxIcon *) 0 ;
4196 wxBitmap *arg2 = 0 ;
4197 PyObject * obj0 = 0 ;
4198 PyObject * obj1 = 0 ;
4199 char *kwnames[] = {
4200 (char *) "self",(char *) "bmp", NULL
4201 };
4202
4203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
4204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4206 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4207 SWIG_POINTER_EXCEPTION | 0)) == -1)
4208 SWIG_fail;
4209 if (arg2 == NULL) {
4210 PyErr_SetString(PyExc_TypeError,"null reference");
4211 SWIG_fail;
4212 }
4213 {
4214 PyThreadState* __tstate = wxPyBeginAllowThreads();
4215 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
4216
4217 wxPyEndAllowThreads(__tstate);
4218 if (PyErr_Occurred()) SWIG_fail;
4219 }
4220 Py_INCREF(Py_None); resultobj = Py_None;
4221 return resultobj;
4222 fail:
4223 return NULL;
4224 }
4225
4226
4227 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
4228 PyObject *obj;
4229 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4230 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
4231 Py_INCREF(obj);
4232 return Py_BuildValue((char *)"");
4233 }
4234 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4235 PyObject *resultobj;
4236 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4237 int arg2 = (int) 0 ;
4238 wxIconLocation *result;
4239 bool temp1 = False ;
4240 PyObject * obj0 = 0 ;
4241 PyObject * obj1 = 0 ;
4242 char *kwnames[] = {
4243 (char *) "filename",(char *) "num", NULL
4244 };
4245
4246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
4247 if (obj0) {
4248 {
4249 arg1 = wxString_in_helper(obj0);
4250 if (arg1 == NULL) SWIG_fail;
4251 temp1 = True;
4252 }
4253 }
4254 if (obj1) {
4255 arg2 = (int) SWIG_AsInt(obj1);
4256 if (PyErr_Occurred()) SWIG_fail;
4257 }
4258 {
4259 PyThreadState* __tstate = wxPyBeginAllowThreads();
4260 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4261
4262 wxPyEndAllowThreads(__tstate);
4263 if (PyErr_Occurred()) SWIG_fail;
4264 }
4265 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
4266 {
4267 if (temp1)
4268 delete arg1;
4269 }
4270 return resultobj;
4271 fail:
4272 {
4273 if (temp1)
4274 delete arg1;
4275 }
4276 return NULL;
4277 }
4278
4279
4280 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4281 PyObject *resultobj;
4282 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4283 PyObject * obj0 = 0 ;
4284 char *kwnames[] = {
4285 (char *) "self", NULL
4286 };
4287
4288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
4289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4291 {
4292 PyThreadState* __tstate = wxPyBeginAllowThreads();
4293 delete arg1;
4294
4295 wxPyEndAllowThreads(__tstate);
4296 if (PyErr_Occurred()) SWIG_fail;
4297 }
4298 Py_INCREF(Py_None); resultobj = Py_None;
4299 return resultobj;
4300 fail:
4301 return NULL;
4302 }
4303
4304
4305 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4306 PyObject *resultobj;
4307 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4308 bool result;
4309 PyObject * obj0 = 0 ;
4310 char *kwnames[] = {
4311 (char *) "self", NULL
4312 };
4313
4314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4317 {
4318 PyThreadState* __tstate = wxPyBeginAllowThreads();
4319 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4320
4321 wxPyEndAllowThreads(__tstate);
4322 if (PyErr_Occurred()) SWIG_fail;
4323 }
4324 {
4325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4326 }
4327 return resultobj;
4328 fail:
4329 return NULL;
4330 }
4331
4332
4333 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4334 PyObject *resultobj;
4335 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4336 wxString *arg2 = 0 ;
4337 bool temp2 = False ;
4338 PyObject * obj0 = 0 ;
4339 PyObject * obj1 = 0 ;
4340 char *kwnames[] = {
4341 (char *) "self",(char *) "filename", NULL
4342 };
4343
4344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4347 {
4348 arg2 = wxString_in_helper(obj1);
4349 if (arg2 == NULL) SWIG_fail;
4350 temp2 = True;
4351 }
4352 {
4353 PyThreadState* __tstate = wxPyBeginAllowThreads();
4354 (arg1)->SetFileName((wxString const &)*arg2);
4355
4356 wxPyEndAllowThreads(__tstate);
4357 if (PyErr_Occurred()) SWIG_fail;
4358 }
4359 Py_INCREF(Py_None); resultobj = Py_None;
4360 {
4361 if (temp2)
4362 delete arg2;
4363 }
4364 return resultobj;
4365 fail:
4366 {
4367 if (temp2)
4368 delete arg2;
4369 }
4370 return NULL;
4371 }
4372
4373
4374 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4375 PyObject *resultobj;
4376 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4377 wxString *result;
4378 PyObject * obj0 = 0 ;
4379 char *kwnames[] = {
4380 (char *) "self", NULL
4381 };
4382
4383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4386 {
4387 PyThreadState* __tstate = wxPyBeginAllowThreads();
4388 {
4389 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4390 result = (wxString *) &_result_ref;
4391 }
4392
4393 wxPyEndAllowThreads(__tstate);
4394 if (PyErr_Occurred()) SWIG_fail;
4395 }
4396 {
4397 #if wxUSE_UNICODE
4398 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4399 #else
4400 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4401 #endif
4402 }
4403 return resultobj;
4404 fail:
4405 return NULL;
4406 }
4407
4408
4409 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4410 PyObject *resultobj;
4411 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4412 int arg2 ;
4413 PyObject * obj0 = 0 ;
4414 PyObject * obj1 = 0 ;
4415 char *kwnames[] = {
4416 (char *) "self",(char *) "num", NULL
4417 };
4418
4419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4422 arg2 = (int) SWIG_AsInt(obj1);
4423 if (PyErr_Occurred()) SWIG_fail;
4424 {
4425 PyThreadState* __tstate = wxPyBeginAllowThreads();
4426 wxIconLocation_SetIndex(arg1,arg2);
4427
4428 wxPyEndAllowThreads(__tstate);
4429 if (PyErr_Occurred()) SWIG_fail;
4430 }
4431 Py_INCREF(Py_None); resultobj = Py_None;
4432 return resultobj;
4433 fail:
4434 return NULL;
4435 }
4436
4437
4438 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4439 PyObject *resultobj;
4440 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4441 int result;
4442 PyObject * obj0 = 0 ;
4443 char *kwnames[] = {
4444 (char *) "self", NULL
4445 };
4446
4447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4450 {
4451 PyThreadState* __tstate = wxPyBeginAllowThreads();
4452 result = (int)wxIconLocation_GetIndex(arg1);
4453
4454 wxPyEndAllowThreads(__tstate);
4455 if (PyErr_Occurred()) SWIG_fail;
4456 }
4457 resultobj = SWIG_FromInt((int)result);
4458 return resultobj;
4459 fail:
4460 return NULL;
4461 }
4462
4463
4464 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4465 PyObject *obj;
4466 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4467 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4468 Py_INCREF(obj);
4469 return Py_BuildValue((char *)"");
4470 }
4471 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4472 PyObject *resultobj;
4473 wxIconBundle *result;
4474 char *kwnames[] = {
4475 NULL
4476 };
4477
4478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4479 {
4480 PyThreadState* __tstate = wxPyBeginAllowThreads();
4481 result = (wxIconBundle *)new wxIconBundle();
4482
4483 wxPyEndAllowThreads(__tstate);
4484 if (PyErr_Occurred()) SWIG_fail;
4485 }
4486 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4487 return resultobj;
4488 fail:
4489 return NULL;
4490 }
4491
4492
4493 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4494 PyObject *resultobj;
4495 wxString *arg1 = 0 ;
4496 long arg2 ;
4497 wxIconBundle *result;
4498 bool temp1 = False ;
4499 PyObject * obj0 = 0 ;
4500 PyObject * obj1 = 0 ;
4501 char *kwnames[] = {
4502 (char *) "file",(char *) "type", NULL
4503 };
4504
4505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4506 {
4507 arg1 = wxString_in_helper(obj0);
4508 if (arg1 == NULL) SWIG_fail;
4509 temp1 = True;
4510 }
4511 arg2 = (long) SWIG_AsLong(obj1);
4512 if (PyErr_Occurred()) SWIG_fail;
4513 {
4514 PyThreadState* __tstate = wxPyBeginAllowThreads();
4515 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4516
4517 wxPyEndAllowThreads(__tstate);
4518 if (PyErr_Occurred()) SWIG_fail;
4519 }
4520 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4521 {
4522 if (temp1)
4523 delete arg1;
4524 }
4525 return resultobj;
4526 fail:
4527 {
4528 if (temp1)
4529 delete arg1;
4530 }
4531 return NULL;
4532 }
4533
4534
4535 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4536 PyObject *resultobj;
4537 wxIcon *arg1 = 0 ;
4538 wxIconBundle *result;
4539 PyObject * obj0 = 0 ;
4540 char *kwnames[] = {
4541 (char *) "icon", NULL
4542 };
4543
4544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4546 SWIG_POINTER_EXCEPTION | 0)) == -1)
4547 SWIG_fail;
4548 if (arg1 == NULL) {
4549 PyErr_SetString(PyExc_TypeError,"null reference");
4550 SWIG_fail;
4551 }
4552 {
4553 PyThreadState* __tstate = wxPyBeginAllowThreads();
4554 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4555
4556 wxPyEndAllowThreads(__tstate);
4557 if (PyErr_Occurred()) SWIG_fail;
4558 }
4559 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4560 return resultobj;
4561 fail:
4562 return NULL;
4563 }
4564
4565
4566 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4567 PyObject *resultobj;
4568 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4569 PyObject * obj0 = 0 ;
4570 char *kwnames[] = {
4571 (char *) "self", NULL
4572 };
4573
4574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4577 {
4578 PyThreadState* __tstate = wxPyBeginAllowThreads();
4579 delete arg1;
4580
4581 wxPyEndAllowThreads(__tstate);
4582 if (PyErr_Occurred()) SWIG_fail;
4583 }
4584 Py_INCREF(Py_None); resultobj = Py_None;
4585 return resultobj;
4586 fail:
4587 return NULL;
4588 }
4589
4590
4591 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4592 PyObject *resultobj;
4593 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4594 wxIcon *arg2 = 0 ;
4595 PyObject * obj0 = 0 ;
4596 PyObject * obj1 = 0 ;
4597 char *kwnames[] = {
4598 (char *) "self",(char *) "icon", NULL
4599 };
4600
4601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4604 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4605 SWIG_POINTER_EXCEPTION | 0)) == -1)
4606 SWIG_fail;
4607 if (arg2 == NULL) {
4608 PyErr_SetString(PyExc_TypeError,"null reference");
4609 SWIG_fail;
4610 }
4611 {
4612 PyThreadState* __tstate = wxPyBeginAllowThreads();
4613 (arg1)->AddIcon((wxIcon const &)*arg2);
4614
4615 wxPyEndAllowThreads(__tstate);
4616 if (PyErr_Occurred()) SWIG_fail;
4617 }
4618 Py_INCREF(Py_None); resultobj = Py_None;
4619 return resultobj;
4620 fail:
4621 return NULL;
4622 }
4623
4624
4625 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4626 PyObject *resultobj;
4627 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4628 wxString *arg2 = 0 ;
4629 long arg3 ;
4630 bool temp2 = False ;
4631 PyObject * obj0 = 0 ;
4632 PyObject * obj1 = 0 ;
4633 PyObject * obj2 = 0 ;
4634 char *kwnames[] = {
4635 (char *) "self",(char *) "file",(char *) "type", NULL
4636 };
4637
4638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4641 {
4642 arg2 = wxString_in_helper(obj1);
4643 if (arg2 == NULL) SWIG_fail;
4644 temp2 = True;
4645 }
4646 arg3 = (long) SWIG_AsLong(obj2);
4647 if (PyErr_Occurred()) SWIG_fail;
4648 {
4649 PyThreadState* __tstate = wxPyBeginAllowThreads();
4650 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4651
4652 wxPyEndAllowThreads(__tstate);
4653 if (PyErr_Occurred()) SWIG_fail;
4654 }
4655 Py_INCREF(Py_None); resultobj = Py_None;
4656 {
4657 if (temp2)
4658 delete arg2;
4659 }
4660 return resultobj;
4661 fail:
4662 {
4663 if (temp2)
4664 delete arg2;
4665 }
4666 return NULL;
4667 }
4668
4669
4670 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4671 PyObject *resultobj;
4672 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4673 wxSize *arg2 = 0 ;
4674 wxIcon *result;
4675 wxSize temp2 ;
4676 PyObject * obj0 = 0 ;
4677 PyObject * obj1 = 0 ;
4678 char *kwnames[] = {
4679 (char *) "self",(char *) "size", NULL
4680 };
4681
4682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4685 {
4686 arg2 = &temp2;
4687 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4688 }
4689 {
4690 PyThreadState* __tstate = wxPyBeginAllowThreads();
4691 {
4692 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4693 result = (wxIcon *) &_result_ref;
4694 }
4695
4696 wxPyEndAllowThreads(__tstate);
4697 if (PyErr_Occurred()) SWIG_fail;
4698 }
4699 {
4700 wxIcon* resultptr = new wxIcon(*result);
4701 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4702 }
4703 return resultobj;
4704 fail:
4705 return NULL;
4706 }
4707
4708
4709 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4710 PyObject *obj;
4711 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4712 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4713 Py_INCREF(obj);
4714 return Py_BuildValue((char *)"");
4715 }
4716 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4717 PyObject *resultobj;
4718 wxString *arg1 = (wxString *) 0 ;
4719 long arg2 ;
4720 int arg3 = (int) 0 ;
4721 int arg4 = (int) 0 ;
4722 wxCursor *result;
4723 bool temp1 = False ;
4724 PyObject * obj0 = 0 ;
4725 PyObject * obj1 = 0 ;
4726 PyObject * obj2 = 0 ;
4727 PyObject * obj3 = 0 ;
4728 char *kwnames[] = {
4729 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4730 };
4731
4732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4733 {
4734 arg1 = wxString_in_helper(obj0);
4735 if (arg1 == NULL) SWIG_fail;
4736 temp1 = True;
4737 }
4738 arg2 = (long) SWIG_AsLong(obj1);
4739 if (PyErr_Occurred()) SWIG_fail;
4740 if (obj2) {
4741 arg3 = (int) SWIG_AsInt(obj2);
4742 if (PyErr_Occurred()) SWIG_fail;
4743 }
4744 if (obj3) {
4745 arg4 = (int) SWIG_AsInt(obj3);
4746 if (PyErr_Occurred()) SWIG_fail;
4747 }
4748 {
4749 PyThreadState* __tstate = wxPyBeginAllowThreads();
4750 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4751
4752 wxPyEndAllowThreads(__tstate);
4753 if (PyErr_Occurred()) SWIG_fail;
4754 }
4755 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4756 {
4757 if (temp1)
4758 delete arg1;
4759 }
4760 return resultobj;
4761 fail:
4762 {
4763 if (temp1)
4764 delete arg1;
4765 }
4766 return NULL;
4767 }
4768
4769
4770 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4771 PyObject *resultobj;
4772 wxCursor *arg1 = (wxCursor *) 0 ;
4773 PyObject * obj0 = 0 ;
4774 char *kwnames[] = {
4775 (char *) "self", NULL
4776 };
4777
4778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4781 {
4782 PyThreadState* __tstate = wxPyBeginAllowThreads();
4783 delete arg1;
4784
4785 wxPyEndAllowThreads(__tstate);
4786 if (PyErr_Occurred()) SWIG_fail;
4787 }
4788 Py_INCREF(Py_None); resultobj = Py_None;
4789 return resultobj;
4790 fail:
4791 return NULL;
4792 }
4793
4794
4795 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4796 PyObject *resultobj;
4797 int arg1 ;
4798 wxCursor *result;
4799 PyObject * obj0 = 0 ;
4800 char *kwnames[] = {
4801 (char *) "id", NULL
4802 };
4803
4804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4805 arg1 = (int) SWIG_AsInt(obj0);
4806 if (PyErr_Occurred()) SWIG_fail;
4807 {
4808 PyThreadState* __tstate = wxPyBeginAllowThreads();
4809 result = (wxCursor *)new wxCursor(arg1);
4810
4811 wxPyEndAllowThreads(__tstate);
4812 if (PyErr_Occurred()) SWIG_fail;
4813 }
4814 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4815 return resultobj;
4816 fail:
4817 return NULL;
4818 }
4819
4820
4821 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4822 PyObject *resultobj;
4823 wxImage *arg1 = 0 ;
4824 wxCursor *result;
4825 PyObject * obj0 = 0 ;
4826 char *kwnames[] = {
4827 (char *) "image", NULL
4828 };
4829
4830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4832 SWIG_POINTER_EXCEPTION | 0)) == -1)
4833 SWIG_fail;
4834 if (arg1 == NULL) {
4835 PyErr_SetString(PyExc_TypeError,"null reference");
4836 SWIG_fail;
4837 }
4838 {
4839 PyThreadState* __tstate = wxPyBeginAllowThreads();
4840 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4841
4842 wxPyEndAllowThreads(__tstate);
4843 if (PyErr_Occurred()) SWIG_fail;
4844 }
4845 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4846 return resultobj;
4847 fail:
4848 return NULL;
4849 }
4850
4851
4852 static PyObject *_wrap_Cursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4853 PyObject *resultobj;
4854 wxCursor *arg1 = (wxCursor *) 0 ;
4855 long result;
4856 PyObject * obj0 = 0 ;
4857 char *kwnames[] = {
4858 (char *) "self", NULL
4859 };
4860
4861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail;
4862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4864 {
4865 PyThreadState* __tstate = wxPyBeginAllowThreads();
4866 result = (long)(arg1)->GetHandle();
4867
4868 wxPyEndAllowThreads(__tstate);
4869 if (PyErr_Occurred()) SWIG_fail;
4870 }
4871 resultobj = SWIG_FromLong((long)result);
4872 return resultobj;
4873 fail:
4874 return NULL;
4875 }
4876
4877
4878 static PyObject *_wrap_Cursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4879 PyObject *resultobj;
4880 wxCursor *arg1 = (wxCursor *) 0 ;
4881 long arg2 ;
4882 PyObject * obj0 = 0 ;
4883 PyObject * obj1 = 0 ;
4884 char *kwnames[] = {
4885 (char *) "self",(char *) "handle", NULL
4886 };
4887
4888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail;
4889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4891 arg2 = (long) SWIG_AsLong(obj1);
4892 if (PyErr_Occurred()) SWIG_fail;
4893 {
4894 PyThreadState* __tstate = wxPyBeginAllowThreads();
4895 wxCursor_SetHandle(arg1,arg2);
4896
4897 wxPyEndAllowThreads(__tstate);
4898 if (PyErr_Occurred()) SWIG_fail;
4899 }
4900 Py_INCREF(Py_None); resultobj = Py_None;
4901 return resultobj;
4902 fail:
4903 return NULL;
4904 }
4905
4906
4907 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4908 PyObject *resultobj;
4909 wxCursor *arg1 = (wxCursor *) 0 ;
4910 bool result;
4911 PyObject * obj0 = 0 ;
4912 char *kwnames[] = {
4913 (char *) "self", NULL
4914 };
4915
4916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4919 {
4920 PyThreadState* __tstate = wxPyBeginAllowThreads();
4921 result = (bool)(arg1)->Ok();
4922
4923 wxPyEndAllowThreads(__tstate);
4924 if (PyErr_Occurred()) SWIG_fail;
4925 }
4926 {
4927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4928 }
4929 return resultobj;
4930 fail:
4931 return NULL;
4932 }
4933
4934
4935 static PyObject *_wrap_Cursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4936 PyObject *resultobj;
4937 wxCursor *arg1 = (wxCursor *) 0 ;
4938 int result;
4939 PyObject * obj0 = 0 ;
4940 char *kwnames[] = {
4941 (char *) "self", NULL
4942 };
4943
4944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail;
4945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4947 {
4948 PyThreadState* __tstate = wxPyBeginAllowThreads();
4949 result = (int)(arg1)->GetWidth();
4950
4951 wxPyEndAllowThreads(__tstate);
4952 if (PyErr_Occurred()) SWIG_fail;
4953 }
4954 resultobj = SWIG_FromInt((int)result);
4955 return resultobj;
4956 fail:
4957 return NULL;
4958 }
4959
4960
4961 static PyObject *_wrap_Cursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4962 PyObject *resultobj;
4963 wxCursor *arg1 = (wxCursor *) 0 ;
4964 int result;
4965 PyObject * obj0 = 0 ;
4966 char *kwnames[] = {
4967 (char *) "self", NULL
4968 };
4969
4970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail;
4971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4973 {
4974 PyThreadState* __tstate = wxPyBeginAllowThreads();
4975 result = (int)(arg1)->GetHeight();
4976
4977 wxPyEndAllowThreads(__tstate);
4978 if (PyErr_Occurred()) SWIG_fail;
4979 }
4980 resultobj = SWIG_FromInt((int)result);
4981 return resultobj;
4982 fail:
4983 return NULL;
4984 }
4985
4986
4987 static PyObject *_wrap_Cursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4988 PyObject *resultobj;
4989 wxCursor *arg1 = (wxCursor *) 0 ;
4990 int result;
4991 PyObject * obj0 = 0 ;
4992 char *kwnames[] = {
4993 (char *) "self", NULL
4994 };
4995
4996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail;
4997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4999 {
5000 PyThreadState* __tstate = wxPyBeginAllowThreads();
5001 result = (int)(arg1)->GetDepth();
5002
5003 wxPyEndAllowThreads(__tstate);
5004 if (PyErr_Occurred()) SWIG_fail;
5005 }
5006 resultobj = SWIG_FromInt((int)result);
5007 return resultobj;
5008 fail:
5009 return NULL;
5010 }
5011
5012
5013 static PyObject *_wrap_Cursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5014 PyObject *resultobj;
5015 wxCursor *arg1 = (wxCursor *) 0 ;
5016 int arg2 ;
5017 PyObject * obj0 = 0 ;
5018 PyObject * obj1 = 0 ;
5019 char *kwnames[] = {
5020 (char *) "self",(char *) "w", NULL
5021 };
5022
5023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail;
5024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5026 arg2 = (int) SWIG_AsInt(obj1);
5027 if (PyErr_Occurred()) SWIG_fail;
5028 {
5029 PyThreadState* __tstate = wxPyBeginAllowThreads();
5030 (arg1)->SetWidth(arg2);
5031
5032 wxPyEndAllowThreads(__tstate);
5033 if (PyErr_Occurred()) SWIG_fail;
5034 }
5035 Py_INCREF(Py_None); resultobj = Py_None;
5036 return resultobj;
5037 fail:
5038 return NULL;
5039 }
5040
5041
5042 static PyObject *_wrap_Cursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5043 PyObject *resultobj;
5044 wxCursor *arg1 = (wxCursor *) 0 ;
5045 int arg2 ;
5046 PyObject * obj0 = 0 ;
5047 PyObject * obj1 = 0 ;
5048 char *kwnames[] = {
5049 (char *) "self",(char *) "h", NULL
5050 };
5051
5052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail;
5053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5055 arg2 = (int) SWIG_AsInt(obj1);
5056 if (PyErr_Occurred()) SWIG_fail;
5057 {
5058 PyThreadState* __tstate = wxPyBeginAllowThreads();
5059 (arg1)->SetHeight(arg2);
5060
5061 wxPyEndAllowThreads(__tstate);
5062 if (PyErr_Occurred()) SWIG_fail;
5063 }
5064 Py_INCREF(Py_None); resultobj = Py_None;
5065 return resultobj;
5066 fail:
5067 return NULL;
5068 }
5069
5070
5071 static PyObject *_wrap_Cursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
5072 PyObject *resultobj;
5073 wxCursor *arg1 = (wxCursor *) 0 ;
5074 int arg2 ;
5075 PyObject * obj0 = 0 ;
5076 PyObject * obj1 = 0 ;
5077 char *kwnames[] = {
5078 (char *) "self",(char *) "d", NULL
5079 };
5080
5081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail;
5082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5084 arg2 = (int) SWIG_AsInt(obj1);
5085 if (PyErr_Occurred()) SWIG_fail;
5086 {
5087 PyThreadState* __tstate = wxPyBeginAllowThreads();
5088 (arg1)->SetDepth(arg2);
5089
5090 wxPyEndAllowThreads(__tstate);
5091 if (PyErr_Occurred()) SWIG_fail;
5092 }
5093 Py_INCREF(Py_None); resultobj = Py_None;
5094 return resultobj;
5095 fail:
5096 return NULL;
5097 }
5098
5099
5100 static PyObject *_wrap_Cursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5101 PyObject *resultobj;
5102 wxCursor *arg1 = (wxCursor *) 0 ;
5103 wxSize *arg2 = 0 ;
5104 wxSize temp2 ;
5105 PyObject * obj0 = 0 ;
5106 PyObject * obj1 = 0 ;
5107 char *kwnames[] = {
5108 (char *) "self",(char *) "size", NULL
5109 };
5110
5111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail;
5112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5114 {
5115 arg2 = &temp2;
5116 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5117 }
5118 {
5119 PyThreadState* __tstate = wxPyBeginAllowThreads();
5120 (arg1)->SetSize((wxSize const &)*arg2);
5121
5122 wxPyEndAllowThreads(__tstate);
5123 if (PyErr_Occurred()) SWIG_fail;
5124 }
5125 Py_INCREF(Py_None); resultobj = Py_None;
5126 return resultobj;
5127 fail:
5128 return NULL;
5129 }
5130
5131
5132 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
5133 PyObject *obj;
5134 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5135 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
5136 Py_INCREF(obj);
5137 return Py_BuildValue((char *)"");
5138 }
5139 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
5140 PyObject *resultobj;
5141 int arg1 = (int) 0 ;
5142 int arg2 = (int) 0 ;
5143 int arg3 = (int) 0 ;
5144 int arg4 = (int) 0 ;
5145 wxRegion *result;
5146 PyObject * obj0 = 0 ;
5147 PyObject * obj1 = 0 ;
5148 PyObject * obj2 = 0 ;
5149 PyObject * obj3 = 0 ;
5150 char *kwnames[] = {
5151 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5152 };
5153
5154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5155 if (obj0) {
5156 arg1 = (int) SWIG_AsInt(obj0);
5157 if (PyErr_Occurred()) SWIG_fail;
5158 }
5159 if (obj1) {
5160 arg2 = (int) SWIG_AsInt(obj1);
5161 if (PyErr_Occurred()) SWIG_fail;
5162 }
5163 if (obj2) {
5164 arg3 = (int) SWIG_AsInt(obj2);
5165 if (PyErr_Occurred()) SWIG_fail;
5166 }
5167 if (obj3) {
5168 arg4 = (int) SWIG_AsInt(obj3);
5169 if (PyErr_Occurred()) SWIG_fail;
5170 }
5171 {
5172 PyThreadState* __tstate = wxPyBeginAllowThreads();
5173 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
5174
5175 wxPyEndAllowThreads(__tstate);
5176 if (PyErr_Occurred()) SWIG_fail;
5177 }
5178 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5179 return resultobj;
5180 fail:
5181 return NULL;
5182 }
5183
5184
5185 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5186 PyObject *resultobj;
5187 wxBitmap *arg1 = 0 ;
5188 wxColour const &arg2_defvalue = wxNullColour ;
5189 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
5190 int arg3 = (int) 0 ;
5191 wxRegion *result;
5192 wxColour temp2 ;
5193 PyObject * obj0 = 0 ;
5194 PyObject * obj1 = 0 ;
5195 PyObject * obj2 = 0 ;
5196 char *kwnames[] = {
5197 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5198 };
5199
5200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
5201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
5202 SWIG_POINTER_EXCEPTION | 0)) == -1)
5203 SWIG_fail;
5204 if (arg1 == NULL) {
5205 PyErr_SetString(PyExc_TypeError,"null reference");
5206 SWIG_fail;
5207 }
5208 if (obj1) {
5209 {
5210 arg2 = &temp2;
5211 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5212 }
5213 }
5214 if (obj2) {
5215 arg3 = (int) SWIG_AsInt(obj2);
5216 if (PyErr_Occurred()) SWIG_fail;
5217 }
5218 {
5219 PyThreadState* __tstate = wxPyBeginAllowThreads();
5220 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
5221
5222 wxPyEndAllowThreads(__tstate);
5223 if (PyErr_Occurred()) SWIG_fail;
5224 }
5225 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5226 return resultobj;
5227 fail:
5228 return NULL;
5229 }
5230
5231
5232 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
5233 PyObject *resultobj;
5234 int arg1 ;
5235 wxPoint *arg2 = (wxPoint *) 0 ;
5236 int arg3 = (int) wxWINDING_RULE ;
5237 wxRegion *result;
5238 PyObject * obj0 = 0 ;
5239 PyObject * obj1 = 0 ;
5240 char *kwnames[] = {
5241 (char *) "points",(char *) "fillStyle", NULL
5242 };
5243
5244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
5245 {
5246 arg2 = wxPoint_LIST_helper(obj0, &arg1);
5247 if (arg2 == NULL) SWIG_fail;
5248 }
5249 if (obj1) {
5250 arg3 = (int) SWIG_AsInt(obj1);
5251 if (PyErr_Occurred()) SWIG_fail;
5252 }
5253 {
5254 PyThreadState* __tstate = wxPyBeginAllowThreads();
5255 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
5256
5257 wxPyEndAllowThreads(__tstate);
5258 if (PyErr_Occurred()) SWIG_fail;
5259 }
5260 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5261 {
5262 if (arg2) delete [] arg2;
5263 }
5264 return resultobj;
5265 fail:
5266 {
5267 if (arg2) delete [] arg2;
5268 }
5269 return NULL;
5270 }
5271
5272
5273 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
5274 PyObject *resultobj;
5275 wxRegion *arg1 = (wxRegion *) 0 ;
5276 PyObject * obj0 = 0 ;
5277 char *kwnames[] = {
5278 (char *) "self", NULL
5279 };
5280
5281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
5282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5284 {
5285 PyThreadState* __tstate = wxPyBeginAllowThreads();
5286 delete arg1;
5287
5288 wxPyEndAllowThreads(__tstate);
5289 if (PyErr_Occurred()) SWIG_fail;
5290 }
5291 Py_INCREF(Py_None); resultobj = Py_None;
5292 return resultobj;
5293 fail:
5294 return NULL;
5295 }
5296
5297
5298 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
5299 PyObject *resultobj;
5300 wxRegion *arg1 = (wxRegion *) 0 ;
5301 PyObject * obj0 = 0 ;
5302 char *kwnames[] = {
5303 (char *) "self", NULL
5304 };
5305
5306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
5307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5309 {
5310 PyThreadState* __tstate = wxPyBeginAllowThreads();
5311 (arg1)->Clear();
5312
5313 wxPyEndAllowThreads(__tstate);
5314 if (PyErr_Occurred()) SWIG_fail;
5315 }
5316 Py_INCREF(Py_None); resultobj = Py_None;
5317 return resultobj;
5318 fail:
5319 return NULL;
5320 }
5321
5322
5323 static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
5324 PyObject *resultobj;
5325 wxRegion *arg1 = (wxRegion *) 0 ;
5326 int arg2 ;
5327 int arg3 ;
5328 bool result;
5329 PyObject * obj0 = 0 ;
5330 PyObject * obj1 = 0 ;
5331 PyObject * obj2 = 0 ;
5332 char *kwnames[] = {
5333 (char *) "self",(char *) "x",(char *) "y", NULL
5334 };
5335
5336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
5337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5339 arg2 = (int) SWIG_AsInt(obj1);
5340 if (PyErr_Occurred()) SWIG_fail;
5341 arg3 = (int) SWIG_AsInt(obj2);
5342 if (PyErr_Occurred()) SWIG_fail;
5343 {
5344 PyThreadState* __tstate = wxPyBeginAllowThreads();
5345 result = (bool)(arg1)->Offset(arg2,arg3);
5346
5347 wxPyEndAllowThreads(__tstate);
5348 if (PyErr_Occurred()) SWIG_fail;
5349 }
5350 {
5351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5352 }
5353 return resultobj;
5354 fail:
5355 return NULL;
5356 }
5357
5358
5359 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
5360 PyObject *resultobj;
5361 wxRegion *arg1 = (wxRegion *) 0 ;
5362 int arg2 ;
5363 int arg3 ;
5364 int result;
5365 PyObject * obj0 = 0 ;
5366 PyObject * obj1 = 0 ;
5367 PyObject * obj2 = 0 ;
5368 char *kwnames[] = {
5369 (char *) "self",(char *) "x",(char *) "y", NULL
5370 };
5371
5372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
5373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5375 arg2 = (int) SWIG_AsInt(obj1);
5376 if (PyErr_Occurred()) SWIG_fail;
5377 arg3 = (int) SWIG_AsInt(obj2);
5378 if (PyErr_Occurred()) SWIG_fail;
5379 {
5380 PyThreadState* __tstate = wxPyBeginAllowThreads();
5381 result = (int)(arg1)->Contains(arg2,arg3);
5382
5383 wxPyEndAllowThreads(__tstate);
5384 if (PyErr_Occurred()) SWIG_fail;
5385 }
5386 resultobj = SWIG_FromInt((int)result);
5387 return resultobj;
5388 fail:
5389 return NULL;
5390 }
5391
5392
5393 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
5394 PyObject *resultobj;
5395 wxRegion *arg1 = (wxRegion *) 0 ;
5396 wxPoint *arg2 = 0 ;
5397 int result;
5398 wxPoint temp2 ;
5399 PyObject * obj0 = 0 ;
5400 PyObject * obj1 = 0 ;
5401 char *kwnames[] = {
5402 (char *) "self",(char *) "pt", NULL
5403 };
5404
5405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
5406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5408 {
5409 arg2 = &temp2;
5410 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5411 }
5412 {
5413 PyThreadState* __tstate = wxPyBeginAllowThreads();
5414 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5415
5416 wxPyEndAllowThreads(__tstate);
5417 if (PyErr_Occurred()) SWIG_fail;
5418 }
5419 resultobj = SWIG_FromInt((int)result);
5420 return resultobj;
5421 fail:
5422 return NULL;
5423 }
5424
5425
5426 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5427 PyObject *resultobj;
5428 wxRegion *arg1 = (wxRegion *) 0 ;
5429 wxRect *arg2 = 0 ;
5430 int result;
5431 wxRect temp2 ;
5432 PyObject * obj0 = 0 ;
5433 PyObject * obj1 = 0 ;
5434 char *kwnames[] = {
5435 (char *) "self",(char *) "rect", NULL
5436 };
5437
5438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
5439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5441 {
5442 arg2 = &temp2;
5443 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5444 }
5445 {
5446 PyThreadState* __tstate = wxPyBeginAllowThreads();
5447 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5448
5449 wxPyEndAllowThreads(__tstate);
5450 if (PyErr_Occurred()) SWIG_fail;
5451 }
5452 resultobj = SWIG_FromInt((int)result);
5453 return resultobj;
5454 fail:
5455 return NULL;
5456 }
5457
5458
5459 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
5460 PyObject *resultobj;
5461 wxRegion *arg1 = (wxRegion *) 0 ;
5462 int arg2 ;
5463 int arg3 ;
5464 int arg4 ;
5465 int arg5 ;
5466 int result;
5467 PyObject * obj0 = 0 ;
5468 PyObject * obj1 = 0 ;
5469 PyObject * obj2 = 0 ;
5470 PyObject * obj3 = 0 ;
5471 PyObject * obj4 = 0 ;
5472 char *kwnames[] = {
5473 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5474 };
5475
5476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5479 arg2 = (int) SWIG_AsInt(obj1);
5480 if (PyErr_Occurred()) SWIG_fail;
5481 arg3 = (int) SWIG_AsInt(obj2);
5482 if (PyErr_Occurred()) SWIG_fail;
5483 arg4 = (int) SWIG_AsInt(obj3);
5484 if (PyErr_Occurred()) SWIG_fail;
5485 arg5 = (int) SWIG_AsInt(obj4);
5486 if (PyErr_Occurred()) SWIG_fail;
5487 {
5488 PyThreadState* __tstate = wxPyBeginAllowThreads();
5489 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5490
5491 wxPyEndAllowThreads(__tstate);
5492 if (PyErr_Occurred()) SWIG_fail;
5493 }
5494 resultobj = SWIG_FromInt((int)result);
5495 return resultobj;
5496 fail:
5497 return NULL;
5498 }
5499
5500
5501 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5502 PyObject *resultobj;
5503 wxRegion *arg1 = (wxRegion *) 0 ;
5504 wxRect result;
5505 PyObject * obj0 = 0 ;
5506 char *kwnames[] = {
5507 (char *) "self", NULL
5508 };
5509
5510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5513 {
5514 PyThreadState* __tstate = wxPyBeginAllowThreads();
5515 result = (arg1)->GetBox();
5516
5517 wxPyEndAllowThreads(__tstate);
5518 if (PyErr_Occurred()) SWIG_fail;
5519 }
5520 {
5521 wxRect * resultptr;
5522 resultptr = new wxRect((wxRect &) result);
5523 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5524 }
5525 return resultobj;
5526 fail:
5527 return NULL;
5528 }
5529
5530
5531 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
5532 PyObject *resultobj;
5533 wxRegion *arg1 = (wxRegion *) 0 ;
5534 int arg2 ;
5535 int arg3 ;
5536 int arg4 ;
5537 int arg5 ;
5538 bool result;
5539 PyObject * obj0 = 0 ;
5540 PyObject * obj1 = 0 ;
5541 PyObject * obj2 = 0 ;
5542 PyObject * obj3 = 0 ;
5543 PyObject * obj4 = 0 ;
5544 char *kwnames[] = {
5545 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5546 };
5547
5548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5551 arg2 = (int) SWIG_AsInt(obj1);
5552 if (PyErr_Occurred()) SWIG_fail;
5553 arg3 = (int) SWIG_AsInt(obj2);
5554 if (PyErr_Occurred()) SWIG_fail;
5555 arg4 = (int) SWIG_AsInt(obj3);
5556 if (PyErr_Occurred()) SWIG_fail;
5557 arg5 = (int) SWIG_AsInt(obj4);
5558 if (PyErr_Occurred()) SWIG_fail;
5559 {
5560 PyThreadState* __tstate = wxPyBeginAllowThreads();
5561 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5562
5563 wxPyEndAllowThreads(__tstate);
5564 if (PyErr_Occurred()) SWIG_fail;
5565 }
5566 {
5567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5568 }
5569 return resultobj;
5570 fail:
5571 return NULL;
5572 }
5573
5574
5575 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5576 PyObject *resultobj;
5577 wxRegion *arg1 = (wxRegion *) 0 ;
5578 wxRect *arg2 = 0 ;
5579 bool result;
5580 wxRect temp2 ;
5581 PyObject * obj0 = 0 ;
5582 PyObject * obj1 = 0 ;
5583 char *kwnames[] = {
5584 (char *) "self",(char *) "rect", NULL
5585 };
5586
5587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5590 {
5591 arg2 = &temp2;
5592 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5593 }
5594 {
5595 PyThreadState* __tstate = wxPyBeginAllowThreads();
5596 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5597
5598 wxPyEndAllowThreads(__tstate);
5599 if (PyErr_Occurred()) SWIG_fail;
5600 }
5601 {
5602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5603 }
5604 return resultobj;
5605 fail:
5606 return NULL;
5607 }
5608
5609
5610 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5611 PyObject *resultobj;
5612 wxRegion *arg1 = (wxRegion *) 0 ;
5613 wxRegion *arg2 = 0 ;
5614 bool result;
5615 PyObject * obj0 = 0 ;
5616 PyObject * obj1 = 0 ;
5617 char *kwnames[] = {
5618 (char *) "self",(char *) "region", NULL
5619 };
5620
5621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5624 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5625 SWIG_POINTER_EXCEPTION | 0)) == -1)
5626 SWIG_fail;
5627 if (arg2 == NULL) {
5628 PyErr_SetString(PyExc_TypeError,"null reference");
5629 SWIG_fail;
5630 }
5631 {
5632 PyThreadState* __tstate = wxPyBeginAllowThreads();
5633 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5634
5635 wxPyEndAllowThreads(__tstate);
5636 if (PyErr_Occurred()) SWIG_fail;
5637 }
5638 {
5639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5640 }
5641 return resultobj;
5642 fail:
5643 return NULL;
5644 }
5645
5646
5647 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5648 PyObject *resultobj;
5649 wxRegion *arg1 = (wxRegion *) 0 ;
5650 bool result;
5651 PyObject * obj0 = 0 ;
5652 char *kwnames[] = {
5653 (char *) "self", NULL
5654 };
5655
5656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5659 {
5660 PyThreadState* __tstate = wxPyBeginAllowThreads();
5661 result = (bool)(arg1)->IsEmpty();
5662
5663 wxPyEndAllowThreads(__tstate);
5664 if (PyErr_Occurred()) SWIG_fail;
5665 }
5666 {
5667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5668 }
5669 return resultobj;
5670 fail:
5671 return NULL;
5672 }
5673
5674
5675 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5676 PyObject *resultobj;
5677 wxRegion *arg1 = (wxRegion *) 0 ;
5678 int arg2 ;
5679 int arg3 ;
5680 int arg4 ;
5681 int arg5 ;
5682 bool result;
5683 PyObject * obj0 = 0 ;
5684 PyObject * obj1 = 0 ;
5685 PyObject * obj2 = 0 ;
5686 PyObject * obj3 = 0 ;
5687 PyObject * obj4 = 0 ;
5688 char *kwnames[] = {
5689 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5690 };
5691
5692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5695 arg2 = (int) SWIG_AsInt(obj1);
5696 if (PyErr_Occurred()) SWIG_fail;
5697 arg3 = (int) SWIG_AsInt(obj2);
5698 if (PyErr_Occurred()) SWIG_fail;
5699 arg4 = (int) SWIG_AsInt(obj3);
5700 if (PyErr_Occurred()) SWIG_fail;
5701 arg5 = (int) SWIG_AsInt(obj4);
5702 if (PyErr_Occurred()) SWIG_fail;
5703 {
5704 PyThreadState* __tstate = wxPyBeginAllowThreads();
5705 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5706
5707 wxPyEndAllowThreads(__tstate);
5708 if (PyErr_Occurred()) SWIG_fail;
5709 }
5710 {
5711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5712 }
5713 return resultobj;
5714 fail:
5715 return NULL;
5716 }
5717
5718
5719 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5720 PyObject *resultobj;
5721 wxRegion *arg1 = (wxRegion *) 0 ;
5722 wxRect *arg2 = 0 ;
5723 bool result;
5724 wxRect temp2 ;
5725 PyObject * obj0 = 0 ;
5726 PyObject * obj1 = 0 ;
5727 char *kwnames[] = {
5728 (char *) "self",(char *) "rect", NULL
5729 };
5730
5731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5734 {
5735 arg2 = &temp2;
5736 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5737 }
5738 {
5739 PyThreadState* __tstate = wxPyBeginAllowThreads();
5740 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5741
5742 wxPyEndAllowThreads(__tstate);
5743 if (PyErr_Occurred()) SWIG_fail;
5744 }
5745 {
5746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5747 }
5748 return resultobj;
5749 fail:
5750 return NULL;
5751 }
5752
5753
5754 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5755 PyObject *resultobj;
5756 wxRegion *arg1 = (wxRegion *) 0 ;
5757 wxRegion *arg2 = 0 ;
5758 bool result;
5759 PyObject * obj0 = 0 ;
5760 PyObject * obj1 = 0 ;
5761 char *kwnames[] = {
5762 (char *) "self",(char *) "region", NULL
5763 };
5764
5765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5768 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5769 SWIG_POINTER_EXCEPTION | 0)) == -1)
5770 SWIG_fail;
5771 if (arg2 == NULL) {
5772 PyErr_SetString(PyExc_TypeError,"null reference");
5773 SWIG_fail;
5774 }
5775 {
5776 PyThreadState* __tstate = wxPyBeginAllowThreads();
5777 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5778
5779 wxPyEndAllowThreads(__tstate);
5780 if (PyErr_Occurred()) SWIG_fail;
5781 }
5782 {
5783 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5784 }
5785 return resultobj;
5786 fail:
5787 return NULL;
5788 }
5789
5790
5791 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5792 PyObject *resultobj;
5793 wxRegion *arg1 = (wxRegion *) 0 ;
5794 int arg2 ;
5795 int arg3 ;
5796 int arg4 ;
5797 int arg5 ;
5798 bool result;
5799 PyObject * obj0 = 0 ;
5800 PyObject * obj1 = 0 ;
5801 PyObject * obj2 = 0 ;
5802 PyObject * obj3 = 0 ;
5803 PyObject * obj4 = 0 ;
5804 char *kwnames[] = {
5805 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5806 };
5807
5808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5811 arg2 = (int) SWIG_AsInt(obj1);
5812 if (PyErr_Occurred()) SWIG_fail;
5813 arg3 = (int) SWIG_AsInt(obj2);
5814 if (PyErr_Occurred()) SWIG_fail;
5815 arg4 = (int) SWIG_AsInt(obj3);
5816 if (PyErr_Occurred()) SWIG_fail;
5817 arg5 = (int) SWIG_AsInt(obj4);
5818 if (PyErr_Occurred()) SWIG_fail;
5819 {
5820 PyThreadState* __tstate = wxPyBeginAllowThreads();
5821 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5822
5823 wxPyEndAllowThreads(__tstate);
5824 if (PyErr_Occurred()) SWIG_fail;
5825 }
5826 {
5827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5828 }
5829 return resultobj;
5830 fail:
5831 return NULL;
5832 }
5833
5834
5835 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5836 PyObject *resultobj;
5837 wxRegion *arg1 = (wxRegion *) 0 ;
5838 wxRect *arg2 = 0 ;
5839 bool result;
5840 wxRect temp2 ;
5841 PyObject * obj0 = 0 ;
5842 PyObject * obj1 = 0 ;
5843 char *kwnames[] = {
5844 (char *) "self",(char *) "rect", NULL
5845 };
5846
5847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5850 {
5851 arg2 = &temp2;
5852 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5853 }
5854 {
5855 PyThreadState* __tstate = wxPyBeginAllowThreads();
5856 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5857
5858 wxPyEndAllowThreads(__tstate);
5859 if (PyErr_Occurred()) SWIG_fail;
5860 }
5861 {
5862 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5863 }
5864 return resultobj;
5865 fail:
5866 return NULL;
5867 }
5868
5869
5870 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5871 PyObject *resultobj;
5872 wxRegion *arg1 = (wxRegion *) 0 ;
5873 wxRegion *arg2 = 0 ;
5874 bool result;
5875 PyObject * obj0 = 0 ;
5876 PyObject * obj1 = 0 ;
5877 char *kwnames[] = {
5878 (char *) "self",(char *) "region", NULL
5879 };
5880
5881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5884 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5885 SWIG_POINTER_EXCEPTION | 0)) == -1)
5886 SWIG_fail;
5887 if (arg2 == NULL) {
5888 PyErr_SetString(PyExc_TypeError,"null reference");
5889 SWIG_fail;
5890 }
5891 {
5892 PyThreadState* __tstate = wxPyBeginAllowThreads();
5893 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5894
5895 wxPyEndAllowThreads(__tstate);
5896 if (PyErr_Occurred()) SWIG_fail;
5897 }
5898 {
5899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5900 }
5901 return resultobj;
5902 fail:
5903 return NULL;
5904 }
5905
5906
5907 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5908 PyObject *resultobj;
5909 wxRegion *arg1 = (wxRegion *) 0 ;
5910 int arg2 ;
5911 int arg3 ;
5912 int arg4 ;
5913 int arg5 ;
5914 bool result;
5915 PyObject * obj0 = 0 ;
5916 PyObject * obj1 = 0 ;
5917 PyObject * obj2 = 0 ;
5918 PyObject * obj3 = 0 ;
5919 PyObject * obj4 = 0 ;
5920 char *kwnames[] = {
5921 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5922 };
5923
5924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5927 arg2 = (int) SWIG_AsInt(obj1);
5928 if (PyErr_Occurred()) SWIG_fail;
5929 arg3 = (int) SWIG_AsInt(obj2);
5930 if (PyErr_Occurred()) SWIG_fail;
5931 arg4 = (int) SWIG_AsInt(obj3);
5932 if (PyErr_Occurred()) SWIG_fail;
5933 arg5 = (int) SWIG_AsInt(obj4);
5934 if (PyErr_Occurred()) SWIG_fail;
5935 {
5936 PyThreadState* __tstate = wxPyBeginAllowThreads();
5937 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5938
5939 wxPyEndAllowThreads(__tstate);
5940 if (PyErr_Occurred()) SWIG_fail;
5941 }
5942 {
5943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5944 }
5945 return resultobj;
5946 fail:
5947 return NULL;
5948 }
5949
5950
5951 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5952 PyObject *resultobj;
5953 wxRegion *arg1 = (wxRegion *) 0 ;
5954 wxRect *arg2 = 0 ;
5955 bool result;
5956 wxRect temp2 ;
5957 PyObject * obj0 = 0 ;
5958 PyObject * obj1 = 0 ;
5959 char *kwnames[] = {
5960 (char *) "self",(char *) "rect", NULL
5961 };
5962
5963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5966 {
5967 arg2 = &temp2;
5968 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5969 }
5970 {
5971 PyThreadState* __tstate = wxPyBeginAllowThreads();
5972 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5973
5974 wxPyEndAllowThreads(__tstate);
5975 if (PyErr_Occurred()) SWIG_fail;
5976 }
5977 {
5978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5979 }
5980 return resultobj;
5981 fail:
5982 return NULL;
5983 }
5984
5985
5986 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5987 PyObject *resultobj;
5988 wxRegion *arg1 = (wxRegion *) 0 ;
5989 wxRegion *arg2 = 0 ;
5990 bool result;
5991 PyObject * obj0 = 0 ;
5992 PyObject * obj1 = 0 ;
5993 char *kwnames[] = {
5994 (char *) "self",(char *) "region", NULL
5995 };
5996
5997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6000 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
6001 SWIG_POINTER_EXCEPTION | 0)) == -1)
6002 SWIG_fail;
6003 if (arg2 == NULL) {
6004 PyErr_SetString(PyExc_TypeError,"null reference");
6005 SWIG_fail;
6006 }
6007 {
6008 PyThreadState* __tstate = wxPyBeginAllowThreads();
6009 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
6010
6011 wxPyEndAllowThreads(__tstate);
6012 if (PyErr_Occurred()) SWIG_fail;
6013 }
6014 {
6015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6016 }
6017 return resultobj;
6018 fail:
6019 return NULL;
6020 }
6021
6022
6023 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
6024 PyObject *resultobj;
6025 wxRegion *arg1 = (wxRegion *) 0 ;
6026 SwigValueWrapper< wxBitmap > result;
6027 PyObject * obj0 = 0 ;
6028 char *kwnames[] = {
6029 (char *) "self", NULL
6030 };
6031
6032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
6033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6035 {
6036 PyThreadState* __tstate = wxPyBeginAllowThreads();
6037 result = (arg1)->ConvertToBitmap();
6038
6039 wxPyEndAllowThreads(__tstate);
6040 if (PyErr_Occurred()) SWIG_fail;
6041 }
6042 {
6043 wxBitmap * resultptr;
6044 resultptr = new wxBitmap((wxBitmap &) result);
6045 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
6046 }
6047 return resultobj;
6048 fail:
6049 return NULL;
6050 }
6051
6052
6053 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
6054 PyObject *resultobj;
6055 wxRegion *arg1 = (wxRegion *) 0 ;
6056 wxBitmap *arg2 = 0 ;
6057 wxColour const &arg3_defvalue = wxNullColour ;
6058 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
6059 int arg4 = (int) 0 ;
6060 bool result;
6061 wxColour temp3 ;
6062 PyObject * obj0 = 0 ;
6063 PyObject * obj1 = 0 ;
6064 PyObject * obj2 = 0 ;
6065 PyObject * obj3 = 0 ;
6066 char *kwnames[] = {
6067 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
6068 };
6069
6070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6073 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
6074 SWIG_POINTER_EXCEPTION | 0)) == -1)
6075 SWIG_fail;
6076 if (arg2 == NULL) {
6077 PyErr_SetString(PyExc_TypeError,"null reference");
6078 SWIG_fail;
6079 }
6080 if (obj2) {
6081 {
6082 arg3 = &temp3;
6083 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6084 }
6085 }
6086 if (obj3) {
6087 arg4 = (int) SWIG_AsInt(obj3);
6088 if (PyErr_Occurred()) SWIG_fail;
6089 }
6090 {
6091 PyThreadState* __tstate = wxPyBeginAllowThreads();
6092 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
6093
6094 wxPyEndAllowThreads(__tstate);
6095 if (PyErr_Occurred()) SWIG_fail;
6096 }
6097 {
6098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6099 }
6100 return resultobj;
6101 fail:
6102 return NULL;
6103 }
6104
6105
6106 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
6107 PyObject *obj;
6108 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6109 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
6110 Py_INCREF(obj);
6111 return Py_BuildValue((char *)"");
6112 }
6113 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
6114 PyObject *resultobj;
6115 wxRegion *arg1 = 0 ;
6116 wxRegionIterator *result;
6117 PyObject * obj0 = 0 ;
6118 char *kwnames[] = {
6119 (char *) "region", NULL
6120 };
6121
6122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
6123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6124 SWIG_POINTER_EXCEPTION | 0)) == -1)
6125 SWIG_fail;
6126 if (arg1 == NULL) {
6127 PyErr_SetString(PyExc_TypeError,"null reference");
6128 SWIG_fail;
6129 }
6130 {
6131 PyThreadState* __tstate = wxPyBeginAllowThreads();
6132 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
6133
6134 wxPyEndAllowThreads(__tstate);
6135 if (PyErr_Occurred()) SWIG_fail;
6136 }
6137 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
6138 return resultobj;
6139 fail:
6140 return NULL;
6141 }
6142
6143
6144 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
6145 PyObject *resultobj;
6146 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6147 PyObject * obj0 = 0 ;
6148 char *kwnames[] = {
6149 (char *) "self", NULL
6150 };
6151
6152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
6153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6155 {
6156 PyThreadState* __tstate = wxPyBeginAllowThreads();
6157 delete arg1;
6158
6159 wxPyEndAllowThreads(__tstate);
6160 if (PyErr_Occurred()) SWIG_fail;
6161 }
6162 Py_INCREF(Py_None); resultobj = Py_None;
6163 return resultobj;
6164 fail:
6165 return NULL;
6166 }
6167
6168
6169 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
6170 PyObject *resultobj;
6171 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6172 int result;
6173 PyObject * obj0 = 0 ;
6174 char *kwnames[] = {
6175 (char *) "self", NULL
6176 };
6177
6178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
6179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6181 {
6182 PyThreadState* __tstate = wxPyBeginAllowThreads();
6183 result = (int)(arg1)->GetX();
6184
6185 wxPyEndAllowThreads(__tstate);
6186 if (PyErr_Occurred()) SWIG_fail;
6187 }
6188 resultobj = SWIG_FromInt((int)result);
6189 return resultobj;
6190 fail:
6191 return NULL;
6192 }
6193
6194
6195 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
6196 PyObject *resultobj;
6197 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6198 int result;
6199 PyObject * obj0 = 0 ;
6200 char *kwnames[] = {
6201 (char *) "self", NULL
6202 };
6203
6204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
6205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6207 {
6208 PyThreadState* __tstate = wxPyBeginAllowThreads();
6209 result = (int)(arg1)->GetY();
6210
6211 wxPyEndAllowThreads(__tstate);
6212 if (PyErr_Occurred()) SWIG_fail;
6213 }
6214 resultobj = SWIG_FromInt((int)result);
6215 return resultobj;
6216 fail:
6217 return NULL;
6218 }
6219
6220
6221 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
6222 PyObject *resultobj;
6223 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6224 int result;
6225 PyObject * obj0 = 0 ;
6226 char *kwnames[] = {
6227 (char *) "self", NULL
6228 };
6229
6230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
6231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6233 {
6234 PyThreadState* __tstate = wxPyBeginAllowThreads();
6235 result = (int)(arg1)->GetW();
6236
6237 wxPyEndAllowThreads(__tstate);
6238 if (PyErr_Occurred()) SWIG_fail;
6239 }
6240 resultobj = SWIG_FromInt((int)result);
6241 return resultobj;
6242 fail:
6243 return NULL;
6244 }
6245
6246
6247 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6248 PyObject *resultobj;
6249 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6250 int result;
6251 PyObject * obj0 = 0 ;
6252 char *kwnames[] = {
6253 (char *) "self", NULL
6254 };
6255
6256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
6257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6259 {
6260 PyThreadState* __tstate = wxPyBeginAllowThreads();
6261 result = (int)(arg1)->GetWidth();
6262
6263 wxPyEndAllowThreads(__tstate);
6264 if (PyErr_Occurred()) SWIG_fail;
6265 }
6266 resultobj = SWIG_FromInt((int)result);
6267 return resultobj;
6268 fail:
6269 return NULL;
6270 }
6271
6272
6273 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
6274 PyObject *resultobj;
6275 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6276 int result;
6277 PyObject * obj0 = 0 ;
6278 char *kwnames[] = {
6279 (char *) "self", NULL
6280 };
6281
6282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
6283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6285 {
6286 PyThreadState* __tstate = wxPyBeginAllowThreads();
6287 result = (int)(arg1)->GetH();
6288
6289 wxPyEndAllowThreads(__tstate);
6290 if (PyErr_Occurred()) SWIG_fail;
6291 }
6292 resultobj = SWIG_FromInt((int)result);
6293 return resultobj;
6294 fail:
6295 return NULL;
6296 }
6297
6298
6299 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6300 PyObject *resultobj;
6301 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6302 int result;
6303 PyObject * obj0 = 0 ;
6304 char *kwnames[] = {
6305 (char *) "self", NULL
6306 };
6307
6308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
6309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6311 {
6312 PyThreadState* __tstate = wxPyBeginAllowThreads();
6313 result = (int)(arg1)->GetHeight();
6314
6315 wxPyEndAllowThreads(__tstate);
6316 if (PyErr_Occurred()) SWIG_fail;
6317 }
6318 resultobj = SWIG_FromInt((int)result);
6319 return resultobj;
6320 fail:
6321 return NULL;
6322 }
6323
6324
6325 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
6326 PyObject *resultobj;
6327 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6328 wxRect result;
6329 PyObject * obj0 = 0 ;
6330 char *kwnames[] = {
6331 (char *) "self", NULL
6332 };
6333
6334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
6335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6337 {
6338 PyThreadState* __tstate = wxPyBeginAllowThreads();
6339 result = (arg1)->GetRect();
6340
6341 wxPyEndAllowThreads(__tstate);
6342 if (PyErr_Occurred()) SWIG_fail;
6343 }
6344 {
6345 wxRect * resultptr;
6346 resultptr = new wxRect((wxRect &) result);
6347 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
6348 }
6349 return resultobj;
6350 fail:
6351 return NULL;
6352 }
6353
6354
6355 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
6356 PyObject *resultobj;
6357 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6358 bool result;
6359 PyObject * obj0 = 0 ;
6360 char *kwnames[] = {
6361 (char *) "self", NULL
6362 };
6363
6364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
6365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6367 {
6368 PyThreadState* __tstate = wxPyBeginAllowThreads();
6369 result = (bool)(arg1)->HaveRects();
6370
6371 wxPyEndAllowThreads(__tstate);
6372 if (PyErr_Occurred()) SWIG_fail;
6373 }
6374 {
6375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6376 }
6377 return resultobj;
6378 fail:
6379 return NULL;
6380 }
6381
6382
6383 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
6384 PyObject *resultobj;
6385 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6386 PyObject * obj0 = 0 ;
6387 char *kwnames[] = {
6388 (char *) "self", NULL
6389 };
6390
6391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
6392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6394 {
6395 PyThreadState* __tstate = wxPyBeginAllowThreads();
6396 (arg1)->Reset();
6397
6398 wxPyEndAllowThreads(__tstate);
6399 if (PyErr_Occurred()) SWIG_fail;
6400 }
6401 Py_INCREF(Py_None); resultobj = Py_None;
6402 return resultobj;
6403 fail:
6404 return NULL;
6405 }
6406
6407
6408 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
6409 PyObject *resultobj;
6410 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6411 PyObject * obj0 = 0 ;
6412 char *kwnames[] = {
6413 (char *) "self", NULL
6414 };
6415
6416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
6417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6419 {
6420 PyThreadState* __tstate = wxPyBeginAllowThreads();
6421 wxRegionIterator_Next(arg1);
6422
6423 wxPyEndAllowThreads(__tstate);
6424 if (PyErr_Occurred()) SWIG_fail;
6425 }
6426 Py_INCREF(Py_None); resultobj = Py_None;
6427 return resultobj;
6428 fail:
6429 return NULL;
6430 }
6431
6432
6433 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
6434 PyObject *resultobj;
6435 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6436 bool result;
6437 PyObject * obj0 = 0 ;
6438 char *kwnames[] = {
6439 (char *) "self", NULL
6440 };
6441
6442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
6443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6445 {
6446 PyThreadState* __tstate = wxPyBeginAllowThreads();
6447 result = (bool)wxRegionIterator___nonzero__(arg1);
6448
6449 wxPyEndAllowThreads(__tstate);
6450 if (PyErr_Occurred()) SWIG_fail;
6451 }
6452 {
6453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6454 }
6455 return resultobj;
6456 fail:
6457 return NULL;
6458 }
6459
6460
6461 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
6462 PyObject *obj;
6463 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6464 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6465 Py_INCREF(obj);
6466 return Py_BuildValue((char *)"");
6467 }
6468 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6469 PyObject *resultobj;
6470 wxNativeFontInfo *result;
6471 char *kwnames[] = {
6472 NULL
6473 };
6474
6475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6476 {
6477 PyThreadState* __tstate = wxPyBeginAllowThreads();
6478 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6479
6480 wxPyEndAllowThreads(__tstate);
6481 if (PyErr_Occurred()) SWIG_fail;
6482 }
6483 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
6484 return resultobj;
6485 fail:
6486 return NULL;
6487 }
6488
6489
6490 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6491 PyObject *resultobj;
6492 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6493 PyObject * obj0 = 0 ;
6494 char *kwnames[] = {
6495 (char *) "self", NULL
6496 };
6497
6498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6501 {
6502 PyThreadState* __tstate = wxPyBeginAllowThreads();
6503 delete arg1;
6504
6505 wxPyEndAllowThreads(__tstate);
6506 if (PyErr_Occurred()) SWIG_fail;
6507 }
6508 Py_INCREF(Py_None); resultobj = Py_None;
6509 return resultobj;
6510 fail:
6511 return NULL;
6512 }
6513
6514
6515 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6516 PyObject *resultobj;
6517 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6518 PyObject * obj0 = 0 ;
6519 char *kwnames[] = {
6520 (char *) "self", NULL
6521 };
6522
6523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6526 {
6527 PyThreadState* __tstate = wxPyBeginAllowThreads();
6528 (arg1)->Init();
6529
6530 wxPyEndAllowThreads(__tstate);
6531 if (PyErr_Occurred()) SWIG_fail;
6532 }
6533 Py_INCREF(Py_None); resultobj = Py_None;
6534 return resultobj;
6535 fail:
6536 return NULL;
6537 }
6538
6539
6540 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6541 PyObject *resultobj;
6542 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6543 wxFont *arg2 = 0 ;
6544 PyObject * obj0 = 0 ;
6545 PyObject * obj1 = 0 ;
6546 char *kwnames[] = {
6547 (char *) "self",(char *) "font", NULL
6548 };
6549
6550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6553 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6554 SWIG_POINTER_EXCEPTION | 0)) == -1)
6555 SWIG_fail;
6556 if (arg2 == NULL) {
6557 PyErr_SetString(PyExc_TypeError,"null reference");
6558 SWIG_fail;
6559 }
6560 {
6561 PyThreadState* __tstate = wxPyBeginAllowThreads();
6562 (arg1)->InitFromFont((wxFont const &)*arg2);
6563
6564 wxPyEndAllowThreads(__tstate);
6565 if (PyErr_Occurred()) SWIG_fail;
6566 }
6567 Py_INCREF(Py_None); resultobj = Py_None;
6568 return resultobj;
6569 fail:
6570 return NULL;
6571 }
6572
6573
6574 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6575 PyObject *resultobj;
6576 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6577 int result;
6578 PyObject * obj0 = 0 ;
6579 char *kwnames[] = {
6580 (char *) "self", NULL
6581 };
6582
6583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6586 {
6587 PyThreadState* __tstate = wxPyBeginAllowThreads();
6588 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6589
6590 wxPyEndAllowThreads(__tstate);
6591 if (PyErr_Occurred()) SWIG_fail;
6592 }
6593 resultobj = SWIG_FromInt((int)result);
6594 return resultobj;
6595 fail:
6596 return NULL;
6597 }
6598
6599
6600 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6601 PyObject *resultobj;
6602 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6603 int result;
6604 PyObject * obj0 = 0 ;
6605 char *kwnames[] = {
6606 (char *) "self", NULL
6607 };
6608
6609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6612 {
6613 PyThreadState* __tstate = wxPyBeginAllowThreads();
6614 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6615
6616 wxPyEndAllowThreads(__tstate);
6617 if (PyErr_Occurred()) SWIG_fail;
6618 }
6619 resultobj = SWIG_FromInt((int)result);
6620 return resultobj;
6621 fail:
6622 return NULL;
6623 }
6624
6625
6626 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6627 PyObject *resultobj;
6628 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6629 int result;
6630 PyObject * obj0 = 0 ;
6631 char *kwnames[] = {
6632 (char *) "self", NULL
6633 };
6634
6635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6638 {
6639 PyThreadState* __tstate = wxPyBeginAllowThreads();
6640 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6641
6642 wxPyEndAllowThreads(__tstate);
6643 if (PyErr_Occurred()) SWIG_fail;
6644 }
6645 resultobj = SWIG_FromInt((int)result);
6646 return resultobj;
6647 fail:
6648 return NULL;
6649 }
6650
6651
6652 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6653 PyObject *resultobj;
6654 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6655 bool result;
6656 PyObject * obj0 = 0 ;
6657 char *kwnames[] = {
6658 (char *) "self", NULL
6659 };
6660
6661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6664 {
6665 PyThreadState* __tstate = wxPyBeginAllowThreads();
6666 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6667
6668 wxPyEndAllowThreads(__tstate);
6669 if (PyErr_Occurred()) SWIG_fail;
6670 }
6671 {
6672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6673 }
6674 return resultobj;
6675 fail:
6676 return NULL;
6677 }
6678
6679
6680 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6681 PyObject *resultobj;
6682 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6683 wxString result;
6684 PyObject * obj0 = 0 ;
6685 char *kwnames[] = {
6686 (char *) "self", NULL
6687 };
6688
6689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6692 {
6693 PyThreadState* __tstate = wxPyBeginAllowThreads();
6694 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6695
6696 wxPyEndAllowThreads(__tstate);
6697 if (PyErr_Occurred()) SWIG_fail;
6698 }
6699 {
6700 #if wxUSE_UNICODE
6701 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6702 #else
6703 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6704 #endif
6705 }
6706 return resultobj;
6707 fail:
6708 return NULL;
6709 }
6710
6711
6712 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6713 PyObject *resultobj;
6714 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6715 int result;
6716 PyObject * obj0 = 0 ;
6717 char *kwnames[] = {
6718 (char *) "self", NULL
6719 };
6720
6721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6724 {
6725 PyThreadState* __tstate = wxPyBeginAllowThreads();
6726 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6727
6728 wxPyEndAllowThreads(__tstate);
6729 if (PyErr_Occurred()) SWIG_fail;
6730 }
6731 resultobj = SWIG_FromInt((int)result);
6732 return resultobj;
6733 fail:
6734 return NULL;
6735 }
6736
6737
6738 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6739 PyObject *resultobj;
6740 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6741 int result;
6742 PyObject * obj0 = 0 ;
6743 char *kwnames[] = {
6744 (char *) "self", NULL
6745 };
6746
6747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6750 {
6751 PyThreadState* __tstate = wxPyBeginAllowThreads();
6752 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6753
6754 wxPyEndAllowThreads(__tstate);
6755 if (PyErr_Occurred()) SWIG_fail;
6756 }
6757 resultobj = SWIG_FromInt((int)result);
6758 return resultobj;
6759 fail:
6760 return NULL;
6761 }
6762
6763
6764 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6765 PyObject *resultobj;
6766 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6767 int arg2 ;
6768 PyObject * obj0 = 0 ;
6769 PyObject * obj1 = 0 ;
6770 char *kwnames[] = {
6771 (char *) "self",(char *) "pointsize", NULL
6772 };
6773
6774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6777 arg2 = (int) SWIG_AsInt(obj1);
6778 if (PyErr_Occurred()) SWIG_fail;
6779 {
6780 PyThreadState* __tstate = wxPyBeginAllowThreads();
6781 (arg1)->SetPointSize(arg2);
6782
6783 wxPyEndAllowThreads(__tstate);
6784 if (PyErr_Occurred()) SWIG_fail;
6785 }
6786 Py_INCREF(Py_None); resultobj = Py_None;
6787 return resultobj;
6788 fail:
6789 return NULL;
6790 }
6791
6792
6793 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6794 PyObject *resultobj;
6795 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6796 int arg2 ;
6797 PyObject * obj0 = 0 ;
6798 PyObject * obj1 = 0 ;
6799 char *kwnames[] = {
6800 (char *) "self",(char *) "style", NULL
6801 };
6802
6803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6806 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6807 if (PyErr_Occurred()) SWIG_fail;
6808 {
6809 PyThreadState* __tstate = wxPyBeginAllowThreads();
6810 (arg1)->SetStyle((wxFontStyle )arg2);
6811
6812 wxPyEndAllowThreads(__tstate);
6813 if (PyErr_Occurred()) SWIG_fail;
6814 }
6815 Py_INCREF(Py_None); resultobj = Py_None;
6816 return resultobj;
6817 fail:
6818 return NULL;
6819 }
6820
6821
6822 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6823 PyObject *resultobj;
6824 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6825 int arg2 ;
6826 PyObject * obj0 = 0 ;
6827 PyObject * obj1 = 0 ;
6828 char *kwnames[] = {
6829 (char *) "self",(char *) "weight", NULL
6830 };
6831
6832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6835 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6836 if (PyErr_Occurred()) SWIG_fail;
6837 {
6838 PyThreadState* __tstate = wxPyBeginAllowThreads();
6839 (arg1)->SetWeight((wxFontWeight )arg2);
6840
6841 wxPyEndAllowThreads(__tstate);
6842 if (PyErr_Occurred()) SWIG_fail;
6843 }
6844 Py_INCREF(Py_None); resultobj = Py_None;
6845 return resultobj;
6846 fail:
6847 return NULL;
6848 }
6849
6850
6851 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6852 PyObject *resultobj;
6853 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6854 bool arg2 ;
6855 PyObject * obj0 = 0 ;
6856 PyObject * obj1 = 0 ;
6857 char *kwnames[] = {
6858 (char *) "self",(char *) "underlined", NULL
6859 };
6860
6861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6864 arg2 = (bool) SWIG_AsBool(obj1);
6865 if (PyErr_Occurred()) SWIG_fail;
6866 {
6867 PyThreadState* __tstate = wxPyBeginAllowThreads();
6868 (arg1)->SetUnderlined(arg2);
6869
6870 wxPyEndAllowThreads(__tstate);
6871 if (PyErr_Occurred()) SWIG_fail;
6872 }
6873 Py_INCREF(Py_None); resultobj = Py_None;
6874 return resultobj;
6875 fail:
6876 return NULL;
6877 }
6878
6879
6880 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6881 PyObject *resultobj;
6882 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6883 wxString arg2 ;
6884 PyObject * obj0 = 0 ;
6885 PyObject * obj1 = 0 ;
6886 char *kwnames[] = {
6887 (char *) "self",(char *) "facename", NULL
6888 };
6889
6890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6893 {
6894 wxString* sptr = wxString_in_helper(obj1);
6895 if (sptr == NULL) SWIG_fail;
6896 arg2 = *sptr;
6897 delete sptr;
6898 }
6899 {
6900 PyThreadState* __tstate = wxPyBeginAllowThreads();
6901 (arg1)->SetFaceName(arg2);
6902
6903 wxPyEndAllowThreads(__tstate);
6904 if (PyErr_Occurred()) SWIG_fail;
6905 }
6906 Py_INCREF(Py_None); resultobj = Py_None;
6907 return resultobj;
6908 fail:
6909 return NULL;
6910 }
6911
6912
6913 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6914 PyObject *resultobj;
6915 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6916 int arg2 ;
6917 PyObject * obj0 = 0 ;
6918 PyObject * obj1 = 0 ;
6919 char *kwnames[] = {
6920 (char *) "self",(char *) "family", NULL
6921 };
6922
6923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6926 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
6927 if (PyErr_Occurred()) SWIG_fail;
6928 {
6929 PyThreadState* __tstate = wxPyBeginAllowThreads();
6930 (arg1)->SetFamily((wxFontFamily )arg2);
6931
6932 wxPyEndAllowThreads(__tstate);
6933 if (PyErr_Occurred()) SWIG_fail;
6934 }
6935 Py_INCREF(Py_None); resultobj = Py_None;
6936 return resultobj;
6937 fail:
6938 return NULL;
6939 }
6940
6941
6942 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6943 PyObject *resultobj;
6944 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6945 int arg2 ;
6946 PyObject * obj0 = 0 ;
6947 PyObject * obj1 = 0 ;
6948 char *kwnames[] = {
6949 (char *) "self",(char *) "encoding", NULL
6950 };
6951
6952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6955 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6956 if (PyErr_Occurred()) SWIG_fail;
6957 {
6958 PyThreadState* __tstate = wxPyBeginAllowThreads();
6959 (arg1)->SetEncoding((wxFontEncoding )arg2);
6960
6961 wxPyEndAllowThreads(__tstate);
6962 if (PyErr_Occurred()) SWIG_fail;
6963 }
6964 Py_INCREF(Py_None); resultobj = Py_None;
6965 return resultobj;
6966 fail:
6967 return NULL;
6968 }
6969
6970
6971 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6972 PyObject *resultobj;
6973 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6974 wxString *arg2 = 0 ;
6975 bool result;
6976 bool temp2 = False ;
6977 PyObject * obj0 = 0 ;
6978 PyObject * obj1 = 0 ;
6979 char *kwnames[] = {
6980 (char *) "self",(char *) "s", NULL
6981 };
6982
6983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6986 {
6987 arg2 = wxString_in_helper(obj1);
6988 if (arg2 == NULL) SWIG_fail;
6989 temp2 = True;
6990 }
6991 {
6992 PyThreadState* __tstate = wxPyBeginAllowThreads();
6993 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6994
6995 wxPyEndAllowThreads(__tstate);
6996 if (PyErr_Occurred()) SWIG_fail;
6997 }
6998 {
6999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7000 }
7001 {
7002 if (temp2)
7003 delete arg2;
7004 }
7005 return resultobj;
7006 fail:
7007 {
7008 if (temp2)
7009 delete arg2;
7010 }
7011 return NULL;
7012 }
7013
7014
7015 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
7016 PyObject *resultobj;
7017 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7018 wxString result;
7019 PyObject * obj0 = 0 ;
7020 char *kwnames[] = {
7021 (char *) "self", NULL
7022 };
7023
7024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
7025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7027 {
7028 PyThreadState* __tstate = wxPyBeginAllowThreads();
7029 result = ((wxNativeFontInfo const *)arg1)->ToString();
7030
7031 wxPyEndAllowThreads(__tstate);
7032 if (PyErr_Occurred()) SWIG_fail;
7033 }
7034 {
7035 #if wxUSE_UNICODE
7036 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7037 #else
7038 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7039 #endif
7040 }
7041 return resultobj;
7042 fail:
7043 return NULL;
7044 }
7045
7046
7047 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
7048 PyObject *resultobj;
7049 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7050 wxString result;
7051 PyObject * obj0 = 0 ;
7052 char *kwnames[] = {
7053 (char *) "self", NULL
7054 };
7055
7056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
7057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7059 {
7060 PyThreadState* __tstate = wxPyBeginAllowThreads();
7061 result = wxNativeFontInfo___str__(arg1);
7062
7063 wxPyEndAllowThreads(__tstate);
7064 if (PyErr_Occurred()) SWIG_fail;
7065 }
7066 {
7067 #if wxUSE_UNICODE
7068 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7069 #else
7070 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7071 #endif
7072 }
7073 return resultobj;
7074 fail:
7075 return NULL;
7076 }
7077
7078
7079 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
7080 PyObject *resultobj;
7081 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7082 wxString *arg2 = 0 ;
7083 bool result;
7084 bool temp2 = False ;
7085 PyObject * obj0 = 0 ;
7086 PyObject * obj1 = 0 ;
7087 char *kwnames[] = {
7088 (char *) "self",(char *) "s", NULL
7089 };
7090
7091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
7092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7094 {
7095 arg2 = wxString_in_helper(obj1);
7096 if (arg2 == NULL) SWIG_fail;
7097 temp2 = True;
7098 }
7099 {
7100 PyThreadState* __tstate = wxPyBeginAllowThreads();
7101 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
7102
7103 wxPyEndAllowThreads(__tstate);
7104 if (PyErr_Occurred()) SWIG_fail;
7105 }
7106 {
7107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7108 }
7109 {
7110 if (temp2)
7111 delete arg2;
7112 }
7113 return resultobj;
7114 fail:
7115 {
7116 if (temp2)
7117 delete arg2;
7118 }
7119 return NULL;
7120 }
7121
7122
7123 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
7124 PyObject *resultobj;
7125 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7126 wxString result;
7127 PyObject * obj0 = 0 ;
7128 char *kwnames[] = {
7129 (char *) "self", NULL
7130 };
7131
7132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
7133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7135 {
7136 PyThreadState* __tstate = wxPyBeginAllowThreads();
7137 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
7138
7139 wxPyEndAllowThreads(__tstate);
7140 if (PyErr_Occurred()) SWIG_fail;
7141 }
7142 {
7143 #if wxUSE_UNICODE
7144 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7145 #else
7146 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7147 #endif
7148 }
7149 return resultobj;
7150 fail:
7151 return NULL;
7152 }
7153
7154
7155 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
7156 PyObject *obj;
7157 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7158 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
7159 Py_INCREF(obj);
7160 return Py_BuildValue((char *)"");
7161 }
7162 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7163 PyObject *resultobj;
7164 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7165 wxString *arg2 = (wxString *) 0 ;
7166 bool temp2 = False ;
7167 PyObject * obj0 = 0 ;
7168 PyObject * obj1 = 0 ;
7169 char *kwnames[] = {
7170 (char *) "self",(char *) "facename", NULL
7171 };
7172
7173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
7174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7176 {
7177 arg2 = wxString_in_helper(obj1);
7178 if (arg2 == NULL) SWIG_fail;
7179 temp2 = True;
7180 }
7181 if (arg1) (arg1)->facename = *arg2;
7182
7183 Py_INCREF(Py_None); resultobj = Py_None;
7184 {
7185 if (temp2)
7186 delete arg2;
7187 }
7188 return resultobj;
7189 fail:
7190 {
7191 if (temp2)
7192 delete arg2;
7193 }
7194 return NULL;
7195 }
7196
7197
7198 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7199 PyObject *resultobj;
7200 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7201 wxString *result;
7202 PyObject * obj0 = 0 ;
7203 char *kwnames[] = {
7204 (char *) "self", NULL
7205 };
7206
7207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
7208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7210 result = (wxString *)& ((arg1)->facename);
7211
7212 {
7213 #if wxUSE_UNICODE
7214 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7215 #else
7216 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7217 #endif
7218 }
7219 return resultobj;
7220 fail:
7221 return NULL;
7222 }
7223
7224
7225 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7226 PyObject *resultobj;
7227 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7228 int arg2 ;
7229 PyObject * obj0 = 0 ;
7230 PyObject * obj1 = 0 ;
7231 char *kwnames[] = {
7232 (char *) "self",(char *) "encoding", NULL
7233 };
7234
7235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
7236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7238 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7239 if (PyErr_Occurred()) SWIG_fail;
7240 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
7241
7242 Py_INCREF(Py_None); resultobj = Py_None;
7243 return resultobj;
7244 fail:
7245 return NULL;
7246 }
7247
7248
7249 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7250 PyObject *resultobj;
7251 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7252 int result;
7253 PyObject * obj0 = 0 ;
7254 char *kwnames[] = {
7255 (char *) "self", NULL
7256 };
7257
7258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
7259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7261 result = (int) ((arg1)->encoding);
7262
7263 resultobj = SWIG_FromInt((int)result);
7264 return resultobj;
7265 fail:
7266 return NULL;
7267 }
7268
7269
7270 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7271 PyObject *resultobj;
7272 wxNativeEncodingInfo *result;
7273 char *kwnames[] = {
7274 NULL
7275 };
7276
7277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
7278 {
7279 PyThreadState* __tstate = wxPyBeginAllowThreads();
7280 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
7281
7282 wxPyEndAllowThreads(__tstate);
7283 if (PyErr_Occurred()) SWIG_fail;
7284 }
7285 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
7286 return resultobj;
7287 fail:
7288 return NULL;
7289 }
7290
7291
7292 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7293 PyObject *resultobj;
7294 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7295 PyObject * obj0 = 0 ;
7296 char *kwnames[] = {
7297 (char *) "self", NULL
7298 };
7299
7300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
7301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7303 {
7304 PyThreadState* __tstate = wxPyBeginAllowThreads();
7305 delete arg1;
7306
7307 wxPyEndAllowThreads(__tstate);
7308 if (PyErr_Occurred()) SWIG_fail;
7309 }
7310 Py_INCREF(Py_None); resultobj = Py_None;
7311 return resultobj;
7312 fail:
7313 return NULL;
7314 }
7315
7316
7317 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7318 PyObject *resultobj;
7319 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7320 wxString *arg2 = 0 ;
7321 bool result;
7322 bool temp2 = False ;
7323 PyObject * obj0 = 0 ;
7324 PyObject * obj1 = 0 ;
7325 char *kwnames[] = {
7326 (char *) "self",(char *) "s", NULL
7327 };
7328
7329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
7330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7332 {
7333 arg2 = wxString_in_helper(obj1);
7334 if (arg2 == NULL) SWIG_fail;
7335 temp2 = True;
7336 }
7337 {
7338 PyThreadState* __tstate = wxPyBeginAllowThreads();
7339 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7340
7341 wxPyEndAllowThreads(__tstate);
7342 if (PyErr_Occurred()) SWIG_fail;
7343 }
7344 {
7345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7346 }
7347 {
7348 if (temp2)
7349 delete arg2;
7350 }
7351 return resultobj;
7352 fail:
7353 {
7354 if (temp2)
7355 delete arg2;
7356 }
7357 return NULL;
7358 }
7359
7360
7361 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
7362 PyObject *resultobj;
7363 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7364 wxString result;
7365 PyObject * obj0 = 0 ;
7366 char *kwnames[] = {
7367 (char *) "self", NULL
7368 };
7369
7370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
7371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7373 {
7374 PyThreadState* __tstate = wxPyBeginAllowThreads();
7375 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
7376
7377 wxPyEndAllowThreads(__tstate);
7378 if (PyErr_Occurred()) SWIG_fail;
7379 }
7380 {
7381 #if wxUSE_UNICODE
7382 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7383 #else
7384 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7385 #endif
7386 }
7387 return resultobj;
7388 fail:
7389 return NULL;
7390 }
7391
7392
7393 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
7394 PyObject *obj;
7395 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7396 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
7397 Py_INCREF(obj);
7398 return Py_BuildValue((char *)"");
7399 }
7400 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7401 PyObject *resultobj;
7402 int arg1 ;
7403 wxNativeEncodingInfo *result;
7404 PyObject * obj0 = 0 ;
7405 char *kwnames[] = {
7406 (char *) "encoding", NULL
7407 };
7408
7409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
7410 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7411 if (PyErr_Occurred()) SWIG_fail;
7412 {
7413 PyThreadState* __tstate = wxPyBeginAllowThreads();
7414 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7415
7416 wxPyEndAllowThreads(__tstate);
7417 if (PyErr_Occurred()) SWIG_fail;
7418 }
7419 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
7420 return resultobj;
7421 fail:
7422 return NULL;
7423 }
7424
7425
7426 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7427 PyObject *resultobj;
7428 wxNativeEncodingInfo *arg1 = 0 ;
7429 bool result;
7430 PyObject * obj0 = 0 ;
7431 char *kwnames[] = {
7432 (char *) "info", NULL
7433 };
7434
7435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
7436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7437 SWIG_POINTER_EXCEPTION | 0)) == -1)
7438 SWIG_fail;
7439 if (arg1 == NULL) {
7440 PyErr_SetString(PyExc_TypeError,"null reference");
7441 SWIG_fail;
7442 }
7443 {
7444 PyThreadState* __tstate = wxPyBeginAllowThreads();
7445 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7446
7447 wxPyEndAllowThreads(__tstate);
7448 if (PyErr_Occurred()) SWIG_fail;
7449 }
7450 {
7451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7452 }
7453 return resultobj;
7454 fail:
7455 return NULL;
7456 }
7457
7458
7459 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7460 PyObject *resultobj;
7461 wxFontMapper *result;
7462 char *kwnames[] = {
7463 NULL
7464 };
7465
7466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7467 {
7468 PyThreadState* __tstate = wxPyBeginAllowThreads();
7469 result = (wxFontMapper *)new wxFontMapper();
7470
7471 wxPyEndAllowThreads(__tstate);
7472 if (PyErr_Occurred()) SWIG_fail;
7473 }
7474 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
7475 return resultobj;
7476 fail:
7477 return NULL;
7478 }
7479
7480
7481 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7482 PyObject *resultobj;
7483 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7484 PyObject * obj0 = 0 ;
7485 char *kwnames[] = {
7486 (char *) "self", NULL
7487 };
7488
7489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7492 {
7493 PyThreadState* __tstate = wxPyBeginAllowThreads();
7494 delete arg1;
7495
7496 wxPyEndAllowThreads(__tstate);
7497 if (PyErr_Occurred()) SWIG_fail;
7498 }
7499 Py_INCREF(Py_None); resultobj = Py_None;
7500 return resultobj;
7501 fail:
7502 return NULL;
7503 }
7504
7505
7506 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
7507 PyObject *resultobj;
7508 wxFontMapper *result;
7509 char *kwnames[] = {
7510 NULL
7511 };
7512
7513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7514 {
7515 PyThreadState* __tstate = wxPyBeginAllowThreads();
7516 result = (wxFontMapper *)wxFontMapper::Get();
7517
7518 wxPyEndAllowThreads(__tstate);
7519 if (PyErr_Occurred()) SWIG_fail;
7520 }
7521 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7522 return resultobj;
7523 fail:
7524 return NULL;
7525 }
7526
7527
7528 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7529 PyObject *resultobj;
7530 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7531 wxFontMapper *result;
7532 PyObject * obj0 = 0 ;
7533 char *kwnames[] = {
7534 (char *) "mapper", NULL
7535 };
7536
7537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7540 {
7541 PyThreadState* __tstate = wxPyBeginAllowThreads();
7542 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7543
7544 wxPyEndAllowThreads(__tstate);
7545 if (PyErr_Occurred()) SWIG_fail;
7546 }
7547 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7548 return resultobj;
7549 fail:
7550 return NULL;
7551 }
7552
7553
7554 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7555 PyObject *resultobj;
7556 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7557 wxString *arg2 = 0 ;
7558 bool arg3 = (bool) True ;
7559 int result;
7560 bool temp2 = False ;
7561 PyObject * obj0 = 0 ;
7562 PyObject * obj1 = 0 ;
7563 PyObject * obj2 = 0 ;
7564 char *kwnames[] = {
7565 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7566 };
7567
7568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7571 {
7572 arg2 = wxString_in_helper(obj1);
7573 if (arg2 == NULL) SWIG_fail;
7574 temp2 = True;
7575 }
7576 if (obj2) {
7577 arg3 = (bool) SWIG_AsBool(obj2);
7578 if (PyErr_Occurred()) SWIG_fail;
7579 }
7580 {
7581 PyThreadState* __tstate = wxPyBeginAllowThreads();
7582 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7583
7584 wxPyEndAllowThreads(__tstate);
7585 if (PyErr_Occurred()) SWIG_fail;
7586 }
7587 resultobj = SWIG_FromInt((int)result);
7588 {
7589 if (temp2)
7590 delete arg2;
7591 }
7592 return resultobj;
7593 fail:
7594 {
7595 if (temp2)
7596 delete arg2;
7597 }
7598 return NULL;
7599 }
7600
7601
7602 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7603 PyObject *resultobj;
7604 size_t result;
7605 char *kwnames[] = {
7606 NULL
7607 };
7608
7609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7610 {
7611 PyThreadState* __tstate = wxPyBeginAllowThreads();
7612 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7613
7614 wxPyEndAllowThreads(__tstate);
7615 if (PyErr_Occurred()) SWIG_fail;
7616 }
7617 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7618 return resultobj;
7619 fail:
7620 return NULL;
7621 }
7622
7623
7624 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7625 PyObject *resultobj;
7626 size_t arg1 ;
7627 int result;
7628 PyObject * obj0 = 0 ;
7629 char *kwnames[] = {
7630 (char *) "n", NULL
7631 };
7632
7633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7634 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7635 if (PyErr_Occurred()) SWIG_fail;
7636 {
7637 PyThreadState* __tstate = wxPyBeginAllowThreads();
7638 result = (int)wxFontMapper::GetEncoding(arg1);
7639
7640 wxPyEndAllowThreads(__tstate);
7641 if (PyErr_Occurred()) SWIG_fail;
7642 }
7643 resultobj = SWIG_FromInt((int)result);
7644 return resultobj;
7645 fail:
7646 return NULL;
7647 }
7648
7649
7650 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7651 PyObject *resultobj;
7652 int arg1 ;
7653 wxString result;
7654 PyObject * obj0 = 0 ;
7655 char *kwnames[] = {
7656 (char *) "encoding", NULL
7657 };
7658
7659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7660 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7661 if (PyErr_Occurred()) SWIG_fail;
7662 {
7663 PyThreadState* __tstate = wxPyBeginAllowThreads();
7664 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7665
7666 wxPyEndAllowThreads(__tstate);
7667 if (PyErr_Occurred()) SWIG_fail;
7668 }
7669 {
7670 #if wxUSE_UNICODE
7671 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7672 #else
7673 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7674 #endif
7675 }
7676 return resultobj;
7677 fail:
7678 return NULL;
7679 }
7680
7681
7682 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7683 PyObject *resultobj;
7684 int arg1 ;
7685 wxString result;
7686 PyObject * obj0 = 0 ;
7687 char *kwnames[] = {
7688 (char *) "encoding", NULL
7689 };
7690
7691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7692 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7693 if (PyErr_Occurred()) SWIG_fail;
7694 {
7695 PyThreadState* __tstate = wxPyBeginAllowThreads();
7696 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7697
7698 wxPyEndAllowThreads(__tstate);
7699 if (PyErr_Occurred()) SWIG_fail;
7700 }
7701 {
7702 #if wxUSE_UNICODE
7703 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7704 #else
7705 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7706 #endif
7707 }
7708 return resultobj;
7709 fail:
7710 return NULL;
7711 }
7712
7713
7714 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
7715 PyObject *resultobj;
7716 wxString *arg1 = 0 ;
7717 int result;
7718 bool temp1 = False ;
7719 PyObject * obj0 = 0 ;
7720 char *kwnames[] = {
7721 (char *) "name", NULL
7722 };
7723
7724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7725 {
7726 arg1 = wxString_in_helper(obj0);
7727 if (arg1 == NULL) SWIG_fail;
7728 temp1 = True;
7729 }
7730 {
7731 PyThreadState* __tstate = wxPyBeginAllowThreads();
7732 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7733
7734 wxPyEndAllowThreads(__tstate);
7735 if (PyErr_Occurred()) SWIG_fail;
7736 }
7737 resultobj = SWIG_FromInt((int)result);
7738 {
7739 if (temp1)
7740 delete arg1;
7741 }
7742 return resultobj;
7743 fail:
7744 {
7745 if (temp1)
7746 delete arg1;
7747 }
7748 return NULL;
7749 }
7750
7751
7752 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7753 PyObject *resultobj;
7754 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7755 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7756 PyObject * obj0 = 0 ;
7757 PyObject * obj1 = 0 ;
7758 char *kwnames[] = {
7759 (char *) "self",(char *) "config", NULL
7760 };
7761
7762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7765 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7767 {
7768 PyThreadState* __tstate = wxPyBeginAllowThreads();
7769 (arg1)->SetConfig(arg2);
7770
7771 wxPyEndAllowThreads(__tstate);
7772 if (PyErr_Occurred()) SWIG_fail;
7773 }
7774 Py_INCREF(Py_None); resultobj = Py_None;
7775 return resultobj;
7776 fail:
7777 return NULL;
7778 }
7779
7780
7781 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7782 PyObject *resultobj;
7783 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7784 wxString *arg2 = 0 ;
7785 bool temp2 = False ;
7786 PyObject * obj0 = 0 ;
7787 PyObject * obj1 = 0 ;
7788 char *kwnames[] = {
7789 (char *) "self",(char *) "prefix", NULL
7790 };
7791
7792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7795 {
7796 arg2 = wxString_in_helper(obj1);
7797 if (arg2 == NULL) SWIG_fail;
7798 temp2 = True;
7799 }
7800 {
7801 PyThreadState* __tstate = wxPyBeginAllowThreads();
7802 (arg1)->SetConfigPath((wxString const &)*arg2);
7803
7804 wxPyEndAllowThreads(__tstate);
7805 if (PyErr_Occurred()) SWIG_fail;
7806 }
7807 Py_INCREF(Py_None); resultobj = Py_None;
7808 {
7809 if (temp2)
7810 delete arg2;
7811 }
7812 return resultobj;
7813 fail:
7814 {
7815 if (temp2)
7816 delete arg2;
7817 }
7818 return NULL;
7819 }
7820
7821
7822 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7823 PyObject *resultobj;
7824 wxString result;
7825 char *kwnames[] = {
7826 NULL
7827 };
7828
7829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7830 {
7831 PyThreadState* __tstate = wxPyBeginAllowThreads();
7832 result = wxFontMapper::GetDefaultConfigPath();
7833
7834 wxPyEndAllowThreads(__tstate);
7835 if (PyErr_Occurred()) SWIG_fail;
7836 }
7837 {
7838 #if wxUSE_UNICODE
7839 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7840 #else
7841 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7842 #endif
7843 }
7844 return resultobj;
7845 fail:
7846 return NULL;
7847 }
7848
7849
7850 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7851 PyObject *resultobj;
7852 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7853 int arg2 ;
7854 wxString const &arg3_defvalue = wxPyEmptyString ;
7855 wxString *arg3 = (wxString *) &arg3_defvalue ;
7856 bool arg4 = (bool) True ;
7857 PyObject *result;
7858 bool temp3 = False ;
7859 PyObject * obj0 = 0 ;
7860 PyObject * obj1 = 0 ;
7861 PyObject * obj2 = 0 ;
7862 PyObject * obj3 = 0 ;
7863 char *kwnames[] = {
7864 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7865 };
7866
7867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7870 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7871 if (PyErr_Occurred()) SWIG_fail;
7872 if (obj2) {
7873 {
7874 arg3 = wxString_in_helper(obj2);
7875 if (arg3 == NULL) SWIG_fail;
7876 temp3 = True;
7877 }
7878 }
7879 if (obj3) {
7880 arg4 = (bool) SWIG_AsBool(obj3);
7881 if (PyErr_Occurred()) SWIG_fail;
7882 }
7883 {
7884 PyThreadState* __tstate = wxPyBeginAllowThreads();
7885 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7886
7887 wxPyEndAllowThreads(__tstate);
7888 if (PyErr_Occurred()) SWIG_fail;
7889 }
7890 resultobj = result;
7891 {
7892 if (temp3)
7893 delete arg3;
7894 }
7895 return resultobj;
7896 fail:
7897 {
7898 if (temp3)
7899 delete arg3;
7900 }
7901 return NULL;
7902 }
7903
7904
7905 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7906 PyObject *resultobj;
7907 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7908 int arg2 ;
7909 wxString const &arg3_defvalue = wxPyEmptyString ;
7910 wxString *arg3 = (wxString *) &arg3_defvalue ;
7911 bool result;
7912 bool temp3 = False ;
7913 PyObject * obj0 = 0 ;
7914 PyObject * obj1 = 0 ;
7915 PyObject * obj2 = 0 ;
7916 char *kwnames[] = {
7917 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7918 };
7919
7920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7923 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7924 if (PyErr_Occurred()) SWIG_fail;
7925 if (obj2) {
7926 {
7927 arg3 = wxString_in_helper(obj2);
7928 if (arg3 == NULL) SWIG_fail;
7929 temp3 = True;
7930 }
7931 }
7932 {
7933 PyThreadState* __tstate = wxPyBeginAllowThreads();
7934 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7935
7936 wxPyEndAllowThreads(__tstate);
7937 if (PyErr_Occurred()) SWIG_fail;
7938 }
7939 {
7940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7941 }
7942 {
7943 if (temp3)
7944 delete arg3;
7945 }
7946 return resultobj;
7947 fail:
7948 {
7949 if (temp3)
7950 delete arg3;
7951 }
7952 return NULL;
7953 }
7954
7955
7956 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7957 PyObject *resultobj;
7958 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7959 wxWindow *arg2 = (wxWindow *) 0 ;
7960 PyObject * obj0 = 0 ;
7961 PyObject * obj1 = 0 ;
7962 char *kwnames[] = {
7963 (char *) "self",(char *) "parent", NULL
7964 };
7965
7966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7969 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7971 {
7972 PyThreadState* __tstate = wxPyBeginAllowThreads();
7973 (arg1)->SetDialogParent(arg2);
7974
7975 wxPyEndAllowThreads(__tstate);
7976 if (PyErr_Occurred()) SWIG_fail;
7977 }
7978 Py_INCREF(Py_None); resultobj = Py_None;
7979 return resultobj;
7980 fail:
7981 return NULL;
7982 }
7983
7984
7985 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7986 PyObject *resultobj;
7987 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7988 wxString *arg2 = 0 ;
7989 bool temp2 = False ;
7990 PyObject * obj0 = 0 ;
7991 PyObject * obj1 = 0 ;
7992 char *kwnames[] = {
7993 (char *) "self",(char *) "title", NULL
7994 };
7995
7996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7999 {
8000 arg2 = wxString_in_helper(obj1);
8001 if (arg2 == NULL) SWIG_fail;
8002 temp2 = True;
8003 }
8004 {
8005 PyThreadState* __tstate = wxPyBeginAllowThreads();
8006 (arg1)->SetDialogTitle((wxString const &)*arg2);
8007
8008 wxPyEndAllowThreads(__tstate);
8009 if (PyErr_Occurred()) SWIG_fail;
8010 }
8011 Py_INCREF(Py_None); resultobj = Py_None;
8012 {
8013 if (temp2)
8014 delete arg2;
8015 }
8016 return resultobj;
8017 fail:
8018 {
8019 if (temp2)
8020 delete arg2;
8021 }
8022 return NULL;
8023 }
8024
8025
8026 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
8027 PyObject *obj;
8028 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8029 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
8030 Py_INCREF(obj);
8031 return Py_BuildValue((char *)"");
8032 }
8033 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
8034 PyObject *resultobj;
8035 int arg1 ;
8036 int arg2 ;
8037 int arg3 ;
8038 int arg4 ;
8039 bool arg5 = (bool) False ;
8040 wxString const &arg6_defvalue = wxPyEmptyString ;
8041 wxString *arg6 = (wxString *) &arg6_defvalue ;
8042 int arg7 = (int) wxFONTENCODING_DEFAULT ;
8043 wxFont *result;
8044 bool temp6 = False ;
8045 PyObject * obj0 = 0 ;
8046 PyObject * obj1 = 0 ;
8047 PyObject * obj2 = 0 ;
8048 PyObject * obj3 = 0 ;
8049 PyObject * obj4 = 0 ;
8050 PyObject * obj5 = 0 ;
8051 PyObject * obj6 = 0 ;
8052 char *kwnames[] = {
8053 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
8054 };
8055
8056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
8057 arg1 = (int) SWIG_AsInt(obj0);
8058 if (PyErr_Occurred()) SWIG_fail;
8059 arg2 = (int) SWIG_AsInt(obj1);
8060 if (PyErr_Occurred()) SWIG_fail;
8061 arg3 = (int) SWIG_AsInt(obj2);
8062 if (PyErr_Occurred()) SWIG_fail;
8063 arg4 = (int) SWIG_AsInt(obj3);
8064 if (PyErr_Occurred()) SWIG_fail;
8065 if (obj4) {
8066 arg5 = (bool) SWIG_AsBool(obj4);
8067 if (PyErr_Occurred()) SWIG_fail;
8068 }
8069 if (obj5) {
8070 {
8071 arg6 = wxString_in_helper(obj5);
8072 if (arg6 == NULL) SWIG_fail;
8073 temp6 = True;
8074 }
8075 }
8076 if (obj6) {
8077 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
8078 if (PyErr_Occurred()) SWIG_fail;
8079 }
8080 {
8081 PyThreadState* __tstate = wxPyBeginAllowThreads();
8082 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
8083
8084 wxPyEndAllowThreads(__tstate);
8085 if (PyErr_Occurred()) SWIG_fail;
8086 }
8087 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8088 {
8089 if (temp6)
8090 delete arg6;
8091 }
8092 return resultobj;
8093 fail:
8094 {
8095 if (temp6)
8096 delete arg6;
8097 }
8098 return NULL;
8099 }
8100
8101
8102 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
8103 PyObject *resultobj;
8104 wxFont *arg1 = (wxFont *) 0 ;
8105 PyObject * obj0 = 0 ;
8106 char *kwnames[] = {
8107 (char *) "self", NULL
8108 };
8109
8110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
8111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8113 {
8114 PyThreadState* __tstate = wxPyBeginAllowThreads();
8115 delete arg1;
8116
8117 wxPyEndAllowThreads(__tstate);
8118 if (PyErr_Occurred()) SWIG_fail;
8119 }
8120 Py_INCREF(Py_None); resultobj = Py_None;
8121 return resultobj;
8122 fail:
8123 return NULL;
8124 }
8125
8126
8127 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8128 PyObject *resultobj;
8129 wxNativeFontInfo *arg1 = 0 ;
8130 wxFont *result;
8131 PyObject * obj0 = 0 ;
8132 char *kwnames[] = {
8133 (char *) "info", NULL
8134 };
8135
8136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
8137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
8138 SWIG_POINTER_EXCEPTION | 0)) == -1)
8139 SWIG_fail;
8140 if (arg1 == NULL) {
8141 PyErr_SetString(PyExc_TypeError,"null reference");
8142 SWIG_fail;
8143 }
8144 {
8145 PyThreadState* __tstate = wxPyBeginAllowThreads();
8146 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
8147
8148 wxPyEndAllowThreads(__tstate);
8149 if (PyErr_Occurred()) SWIG_fail;
8150 }
8151 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8152 return resultobj;
8153 fail:
8154 return NULL;
8155 }
8156
8157
8158 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
8159 PyObject *resultobj;
8160 wxString *arg1 = 0 ;
8161 wxFont *result;
8162 bool temp1 = False ;
8163 PyObject * obj0 = 0 ;
8164 char *kwnames[] = {
8165 (char *) "info", NULL
8166 };
8167
8168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
8169 {
8170 arg1 = wxString_in_helper(obj0);
8171 if (arg1 == NULL) SWIG_fail;
8172 temp1 = True;
8173 }
8174 {
8175 PyThreadState* __tstate = wxPyBeginAllowThreads();
8176 result = (wxFont *)new_wxFont((wxString const &)*arg1);
8177
8178 wxPyEndAllowThreads(__tstate);
8179 if (PyErr_Occurred()) SWIG_fail;
8180 }
8181 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8182 {
8183 if (temp1)
8184 delete arg1;
8185 }
8186 return resultobj;
8187 fail:
8188 {
8189 if (temp1)
8190 delete arg1;
8191 }
8192 return NULL;
8193 }
8194
8195
8196 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
8197 PyObject *resultobj;
8198 int arg1 ;
8199 int arg2 ;
8200 int arg3 = (int) wxFONTFLAG_DEFAULT ;
8201 wxString const &arg4_defvalue = wxPyEmptyString ;
8202 wxString *arg4 = (wxString *) &arg4_defvalue ;
8203 int arg5 = (int) wxFONTENCODING_DEFAULT ;
8204 wxFont *result;
8205 bool temp4 = False ;
8206 PyObject * obj0 = 0 ;
8207 PyObject * obj1 = 0 ;
8208 PyObject * obj2 = 0 ;
8209 PyObject * obj3 = 0 ;
8210 PyObject * obj4 = 0 ;
8211 char *kwnames[] = {
8212 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
8213 };
8214
8215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
8216 arg1 = (int) SWIG_AsInt(obj0);
8217 if (PyErr_Occurred()) SWIG_fail;
8218 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
8219 if (PyErr_Occurred()) SWIG_fail;
8220 if (obj2) {
8221 arg3 = (int) SWIG_AsInt(obj2);
8222 if (PyErr_Occurred()) SWIG_fail;
8223 }
8224 if (obj3) {
8225 {
8226 arg4 = wxString_in_helper(obj3);
8227 if (arg4 == NULL) SWIG_fail;
8228 temp4 = True;
8229 }
8230 }
8231 if (obj4) {
8232 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
8233 if (PyErr_Occurred()) SWIG_fail;
8234 }
8235 {
8236 PyThreadState* __tstate = wxPyBeginAllowThreads();
8237 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
8238
8239 wxPyEndAllowThreads(__tstate);
8240 if (PyErr_Occurred()) SWIG_fail;
8241 }
8242 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8243 {
8244 if (temp4)
8245 delete arg4;
8246 }
8247 return resultobj;
8248 fail:
8249 {
8250 if (temp4)
8251 delete arg4;
8252 }
8253 return NULL;
8254 }
8255
8256
8257 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
8258 PyObject *resultobj;
8259 wxFont *arg1 = (wxFont *) 0 ;
8260 bool result;
8261 PyObject * obj0 = 0 ;
8262 char *kwnames[] = {
8263 (char *) "self", NULL
8264 };
8265
8266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
8267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8269 {
8270 PyThreadState* __tstate = wxPyBeginAllowThreads();
8271 result = (bool)((wxFont const *)arg1)->Ok();
8272
8273 wxPyEndAllowThreads(__tstate);
8274 if (PyErr_Occurred()) SWIG_fail;
8275 }
8276 {
8277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8278 }
8279 return resultobj;
8280 fail:
8281 return NULL;
8282 }
8283
8284
8285 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
8286 PyObject *resultobj;
8287 wxFont *arg1 = (wxFont *) 0 ;
8288 wxFont *arg2 = (wxFont *) 0 ;
8289 bool result;
8290 PyObject * obj0 = 0 ;
8291 PyObject * obj1 = 0 ;
8292 char *kwnames[] = {
8293 (char *) "self",(char *) "other", NULL
8294 };
8295
8296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
8297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8299 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8301 {
8302 PyThreadState* __tstate = wxPyBeginAllowThreads();
8303 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
8304
8305 wxPyEndAllowThreads(__tstate);
8306 if (PyErr_Occurred()) SWIG_fail;
8307 }
8308 {
8309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8310 }
8311 return resultobj;
8312 fail:
8313 return NULL;
8314 }
8315
8316
8317 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
8318 PyObject *resultobj;
8319 wxFont *arg1 = (wxFont *) 0 ;
8320 wxFont *arg2 = (wxFont *) 0 ;
8321 bool result;
8322 PyObject * obj0 = 0 ;
8323 PyObject * obj1 = 0 ;
8324 char *kwnames[] = {
8325 (char *) "self",(char *) "other", NULL
8326 };
8327
8328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
8329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8331 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8333 {
8334 PyThreadState* __tstate = wxPyBeginAllowThreads();
8335 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
8336
8337 wxPyEndAllowThreads(__tstate);
8338 if (PyErr_Occurred()) SWIG_fail;
8339 }
8340 {
8341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8342 }
8343 return resultobj;
8344 fail:
8345 return NULL;
8346 }
8347
8348
8349 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8350 PyObject *resultobj;
8351 wxFont *arg1 = (wxFont *) 0 ;
8352 int result;
8353 PyObject * obj0 = 0 ;
8354 char *kwnames[] = {
8355 (char *) "self", NULL
8356 };
8357
8358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
8359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8361 {
8362 PyThreadState* __tstate = wxPyBeginAllowThreads();
8363 result = (int)((wxFont const *)arg1)->GetPointSize();
8364
8365 wxPyEndAllowThreads(__tstate);
8366 if (PyErr_Occurred()) SWIG_fail;
8367 }
8368 resultobj = SWIG_FromInt((int)result);
8369 return resultobj;
8370 fail:
8371 return NULL;
8372 }
8373
8374
8375 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8376 PyObject *resultobj;
8377 wxFont *arg1 = (wxFont *) 0 ;
8378 int result;
8379 PyObject * obj0 = 0 ;
8380 char *kwnames[] = {
8381 (char *) "self", NULL
8382 };
8383
8384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
8385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8387 {
8388 PyThreadState* __tstate = wxPyBeginAllowThreads();
8389 result = (int)((wxFont const *)arg1)->GetFamily();
8390
8391 wxPyEndAllowThreads(__tstate);
8392 if (PyErr_Occurred()) SWIG_fail;
8393 }
8394 resultobj = SWIG_FromInt((int)result);
8395 return resultobj;
8396 fail:
8397 return NULL;
8398 }
8399
8400
8401 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8402 PyObject *resultobj;
8403 wxFont *arg1 = (wxFont *) 0 ;
8404 int result;
8405 PyObject * obj0 = 0 ;
8406 char *kwnames[] = {
8407 (char *) "self", NULL
8408 };
8409
8410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
8411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8413 {
8414 PyThreadState* __tstate = wxPyBeginAllowThreads();
8415 result = (int)((wxFont const *)arg1)->GetStyle();
8416
8417 wxPyEndAllowThreads(__tstate);
8418 if (PyErr_Occurred()) SWIG_fail;
8419 }
8420 resultobj = SWIG_FromInt((int)result);
8421 return resultobj;
8422 fail:
8423 return NULL;
8424 }
8425
8426
8427 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8428 PyObject *resultobj;
8429 wxFont *arg1 = (wxFont *) 0 ;
8430 int result;
8431 PyObject * obj0 = 0 ;
8432 char *kwnames[] = {
8433 (char *) "self", NULL
8434 };
8435
8436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
8437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8439 {
8440 PyThreadState* __tstate = wxPyBeginAllowThreads();
8441 result = (int)((wxFont const *)arg1)->GetWeight();
8442
8443 wxPyEndAllowThreads(__tstate);
8444 if (PyErr_Occurred()) SWIG_fail;
8445 }
8446 resultobj = SWIG_FromInt((int)result);
8447 return resultobj;
8448 fail:
8449 return NULL;
8450 }
8451
8452
8453 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8454 PyObject *resultobj;
8455 wxFont *arg1 = (wxFont *) 0 ;
8456 bool result;
8457 PyObject * obj0 = 0 ;
8458 char *kwnames[] = {
8459 (char *) "self", NULL
8460 };
8461
8462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
8463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8465 {
8466 PyThreadState* __tstate = wxPyBeginAllowThreads();
8467 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8468
8469 wxPyEndAllowThreads(__tstate);
8470 if (PyErr_Occurred()) SWIG_fail;
8471 }
8472 {
8473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8474 }
8475 return resultobj;
8476 fail:
8477 return NULL;
8478 }
8479
8480
8481 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8482 PyObject *resultobj;
8483 wxFont *arg1 = (wxFont *) 0 ;
8484 wxString result;
8485 PyObject * obj0 = 0 ;
8486 char *kwnames[] = {
8487 (char *) "self", NULL
8488 };
8489
8490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
8491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8493 {
8494 PyThreadState* __tstate = wxPyBeginAllowThreads();
8495 result = ((wxFont const *)arg1)->GetFaceName();
8496
8497 wxPyEndAllowThreads(__tstate);
8498 if (PyErr_Occurred()) SWIG_fail;
8499 }
8500 {
8501 #if wxUSE_UNICODE
8502 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8503 #else
8504 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8505 #endif
8506 }
8507 return resultobj;
8508 fail:
8509 return NULL;
8510 }
8511
8512
8513 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8514 PyObject *resultobj;
8515 wxFont *arg1 = (wxFont *) 0 ;
8516 int result;
8517 PyObject * obj0 = 0 ;
8518 char *kwnames[] = {
8519 (char *) "self", NULL
8520 };
8521
8522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8525 {
8526 PyThreadState* __tstate = wxPyBeginAllowThreads();
8527 result = (int)((wxFont const *)arg1)->GetEncoding();
8528
8529 wxPyEndAllowThreads(__tstate);
8530 if (PyErr_Occurred()) SWIG_fail;
8531 }
8532 resultobj = SWIG_FromInt((int)result);
8533 return resultobj;
8534 fail:
8535 return NULL;
8536 }
8537
8538
8539 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8540 PyObject *resultobj;
8541 wxFont *arg1 = (wxFont *) 0 ;
8542 wxNativeFontInfo *result;
8543 PyObject * obj0 = 0 ;
8544 char *kwnames[] = {
8545 (char *) "self", NULL
8546 };
8547
8548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8551 {
8552 PyThreadState* __tstate = wxPyBeginAllowThreads();
8553 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8554
8555 wxPyEndAllowThreads(__tstate);
8556 if (PyErr_Occurred()) SWIG_fail;
8557 }
8558 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8559 return resultobj;
8560 fail:
8561 return NULL;
8562 }
8563
8564
8565 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8566 PyObject *resultobj;
8567 wxFont *arg1 = (wxFont *) 0 ;
8568 bool result;
8569 PyObject * obj0 = 0 ;
8570 char *kwnames[] = {
8571 (char *) "self", NULL
8572 };
8573
8574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8577 {
8578 PyThreadState* __tstate = wxPyBeginAllowThreads();
8579 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8580
8581 wxPyEndAllowThreads(__tstate);
8582 if (PyErr_Occurred()) SWIG_fail;
8583 }
8584 {
8585 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8586 }
8587 return resultobj;
8588 fail:
8589 return NULL;
8590 }
8591
8592
8593 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8594 PyObject *resultobj;
8595 wxFont *arg1 = (wxFont *) 0 ;
8596 wxString result;
8597 PyObject * obj0 = 0 ;
8598 char *kwnames[] = {
8599 (char *) "self", NULL
8600 };
8601
8602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8605 {
8606 PyThreadState* __tstate = wxPyBeginAllowThreads();
8607 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8608
8609 wxPyEndAllowThreads(__tstate);
8610 if (PyErr_Occurred()) SWIG_fail;
8611 }
8612 {
8613 #if wxUSE_UNICODE
8614 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8615 #else
8616 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8617 #endif
8618 }
8619 return resultobj;
8620 fail:
8621 return NULL;
8622 }
8623
8624
8625 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8626 PyObject *resultobj;
8627 wxFont *arg1 = (wxFont *) 0 ;
8628 wxString result;
8629 PyObject * obj0 = 0 ;
8630 char *kwnames[] = {
8631 (char *) "self", NULL
8632 };
8633
8634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8637 {
8638 PyThreadState* __tstate = wxPyBeginAllowThreads();
8639 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8640
8641 wxPyEndAllowThreads(__tstate);
8642 if (PyErr_Occurred()) SWIG_fail;
8643 }
8644 {
8645 #if wxUSE_UNICODE
8646 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8647 #else
8648 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8649 #endif
8650 }
8651 return resultobj;
8652 fail:
8653 return NULL;
8654 }
8655
8656
8657 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8658 PyObject *resultobj;
8659 wxFont *arg1 = (wxFont *) 0 ;
8660 int arg2 ;
8661 PyObject * obj0 = 0 ;
8662 PyObject * obj1 = 0 ;
8663 char *kwnames[] = {
8664 (char *) "self",(char *) "pointSize", NULL
8665 };
8666
8667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8670 arg2 = (int) SWIG_AsInt(obj1);
8671 if (PyErr_Occurred()) SWIG_fail;
8672 {
8673 PyThreadState* __tstate = wxPyBeginAllowThreads();
8674 (arg1)->SetPointSize(arg2);
8675
8676 wxPyEndAllowThreads(__tstate);
8677 if (PyErr_Occurred()) SWIG_fail;
8678 }
8679 Py_INCREF(Py_None); resultobj = Py_None;
8680 return resultobj;
8681 fail:
8682 return NULL;
8683 }
8684
8685
8686 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8687 PyObject *resultobj;
8688 wxFont *arg1 = (wxFont *) 0 ;
8689 int arg2 ;
8690 PyObject * obj0 = 0 ;
8691 PyObject * obj1 = 0 ;
8692 char *kwnames[] = {
8693 (char *) "self",(char *) "family", NULL
8694 };
8695
8696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8699 arg2 = (int) SWIG_AsInt(obj1);
8700 if (PyErr_Occurred()) SWIG_fail;
8701 {
8702 PyThreadState* __tstate = wxPyBeginAllowThreads();
8703 (arg1)->SetFamily(arg2);
8704
8705 wxPyEndAllowThreads(__tstate);
8706 if (PyErr_Occurred()) SWIG_fail;
8707 }
8708 Py_INCREF(Py_None); resultobj = Py_None;
8709 return resultobj;
8710 fail:
8711 return NULL;
8712 }
8713
8714
8715 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8716 PyObject *resultobj;
8717 wxFont *arg1 = (wxFont *) 0 ;
8718 int arg2 ;
8719 PyObject * obj0 = 0 ;
8720 PyObject * obj1 = 0 ;
8721 char *kwnames[] = {
8722 (char *) "self",(char *) "style", NULL
8723 };
8724
8725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8728 arg2 = (int) SWIG_AsInt(obj1);
8729 if (PyErr_Occurred()) SWIG_fail;
8730 {
8731 PyThreadState* __tstate = wxPyBeginAllowThreads();
8732 (arg1)->SetStyle(arg2);
8733
8734 wxPyEndAllowThreads(__tstate);
8735 if (PyErr_Occurred()) SWIG_fail;
8736 }
8737 Py_INCREF(Py_None); resultobj = Py_None;
8738 return resultobj;
8739 fail:
8740 return NULL;
8741 }
8742
8743
8744 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8745 PyObject *resultobj;
8746 wxFont *arg1 = (wxFont *) 0 ;
8747 int arg2 ;
8748 PyObject * obj0 = 0 ;
8749 PyObject * obj1 = 0 ;
8750 char *kwnames[] = {
8751 (char *) "self",(char *) "weight", NULL
8752 };
8753
8754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8757 arg2 = (int) SWIG_AsInt(obj1);
8758 if (PyErr_Occurred()) SWIG_fail;
8759 {
8760 PyThreadState* __tstate = wxPyBeginAllowThreads();
8761 (arg1)->SetWeight(arg2);
8762
8763 wxPyEndAllowThreads(__tstate);
8764 if (PyErr_Occurred()) SWIG_fail;
8765 }
8766 Py_INCREF(Py_None); resultobj = Py_None;
8767 return resultobj;
8768 fail:
8769 return NULL;
8770 }
8771
8772
8773 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8774 PyObject *resultobj;
8775 wxFont *arg1 = (wxFont *) 0 ;
8776 wxString *arg2 = 0 ;
8777 bool temp2 = False ;
8778 PyObject * obj0 = 0 ;
8779 PyObject * obj1 = 0 ;
8780 char *kwnames[] = {
8781 (char *) "self",(char *) "faceName", NULL
8782 };
8783
8784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8787 {
8788 arg2 = wxString_in_helper(obj1);
8789 if (arg2 == NULL) SWIG_fail;
8790 temp2 = True;
8791 }
8792 {
8793 PyThreadState* __tstate = wxPyBeginAllowThreads();
8794 (arg1)->SetFaceName((wxString const &)*arg2);
8795
8796 wxPyEndAllowThreads(__tstate);
8797 if (PyErr_Occurred()) SWIG_fail;
8798 }
8799 Py_INCREF(Py_None); resultobj = Py_None;
8800 {
8801 if (temp2)
8802 delete arg2;
8803 }
8804 return resultobj;
8805 fail:
8806 {
8807 if (temp2)
8808 delete arg2;
8809 }
8810 return NULL;
8811 }
8812
8813
8814 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8815 PyObject *resultobj;
8816 wxFont *arg1 = (wxFont *) 0 ;
8817 bool arg2 ;
8818 PyObject * obj0 = 0 ;
8819 PyObject * obj1 = 0 ;
8820 char *kwnames[] = {
8821 (char *) "self",(char *) "underlined", NULL
8822 };
8823
8824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8827 arg2 = (bool) SWIG_AsBool(obj1);
8828 if (PyErr_Occurred()) SWIG_fail;
8829 {
8830 PyThreadState* __tstate = wxPyBeginAllowThreads();
8831 (arg1)->SetUnderlined(arg2);
8832
8833 wxPyEndAllowThreads(__tstate);
8834 if (PyErr_Occurred()) SWIG_fail;
8835 }
8836 Py_INCREF(Py_None); resultobj = Py_None;
8837 return resultobj;
8838 fail:
8839 return NULL;
8840 }
8841
8842
8843 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8844 PyObject *resultobj;
8845 wxFont *arg1 = (wxFont *) 0 ;
8846 int arg2 ;
8847 PyObject * obj0 = 0 ;
8848 PyObject * obj1 = 0 ;
8849 char *kwnames[] = {
8850 (char *) "self",(char *) "encoding", NULL
8851 };
8852
8853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8856 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8857 if (PyErr_Occurred()) SWIG_fail;
8858 {
8859 PyThreadState* __tstate = wxPyBeginAllowThreads();
8860 (arg1)->SetEncoding((wxFontEncoding )arg2);
8861
8862 wxPyEndAllowThreads(__tstate);
8863 if (PyErr_Occurred()) SWIG_fail;
8864 }
8865 Py_INCREF(Py_None); resultobj = Py_None;
8866 return resultobj;
8867 fail:
8868 return NULL;
8869 }
8870
8871
8872 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8873 PyObject *resultobj;
8874 wxFont *arg1 = (wxFont *) 0 ;
8875 wxNativeFontInfo *arg2 = 0 ;
8876 PyObject * obj0 = 0 ;
8877 PyObject * obj1 = 0 ;
8878 char *kwnames[] = {
8879 (char *) "self",(char *) "info", NULL
8880 };
8881
8882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8885 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8886 SWIG_POINTER_EXCEPTION | 0)) == -1)
8887 SWIG_fail;
8888 if (arg2 == NULL) {
8889 PyErr_SetString(PyExc_TypeError,"null reference");
8890 SWIG_fail;
8891 }
8892 {
8893 PyThreadState* __tstate = wxPyBeginAllowThreads();
8894 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8895
8896 wxPyEndAllowThreads(__tstate);
8897 if (PyErr_Occurred()) SWIG_fail;
8898 }
8899 Py_INCREF(Py_None); resultobj = Py_None;
8900 return resultobj;
8901 fail:
8902 return NULL;
8903 }
8904
8905
8906 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8907 PyObject *resultobj;
8908 wxFont *arg1 = (wxFont *) 0 ;
8909 wxString *arg2 = 0 ;
8910 bool temp2 = False ;
8911 PyObject * obj0 = 0 ;
8912 PyObject * obj1 = 0 ;
8913 char *kwnames[] = {
8914 (char *) "self",(char *) "info", NULL
8915 };
8916
8917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8920 {
8921 arg2 = wxString_in_helper(obj1);
8922 if (arg2 == NULL) SWIG_fail;
8923 temp2 = True;
8924 }
8925 {
8926 PyThreadState* __tstate = wxPyBeginAllowThreads();
8927 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8928
8929 wxPyEndAllowThreads(__tstate);
8930 if (PyErr_Occurred()) SWIG_fail;
8931 }
8932 Py_INCREF(Py_None); resultobj = Py_None;
8933 {
8934 if (temp2)
8935 delete arg2;
8936 }
8937 return resultobj;
8938 fail:
8939 {
8940 if (temp2)
8941 delete arg2;
8942 }
8943 return NULL;
8944 }
8945
8946
8947 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8948 PyObject *resultobj;
8949 wxFont *arg1 = (wxFont *) 0 ;
8950 wxString *arg2 = 0 ;
8951 bool temp2 = False ;
8952 PyObject * obj0 = 0 ;
8953 PyObject * obj1 = 0 ;
8954 char *kwnames[] = {
8955 (char *) "self",(char *) "info", NULL
8956 };
8957
8958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8961 {
8962 arg2 = wxString_in_helper(obj1);
8963 if (arg2 == NULL) SWIG_fail;
8964 temp2 = True;
8965 }
8966 {
8967 PyThreadState* __tstate = wxPyBeginAllowThreads();
8968 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8969
8970 wxPyEndAllowThreads(__tstate);
8971 if (PyErr_Occurred()) SWIG_fail;
8972 }
8973 Py_INCREF(Py_None); resultobj = Py_None;
8974 {
8975 if (temp2)
8976 delete arg2;
8977 }
8978 return resultobj;
8979 fail:
8980 {
8981 if (temp2)
8982 delete arg2;
8983 }
8984 return NULL;
8985 }
8986
8987
8988 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8989 PyObject *resultobj;
8990 wxFont *arg1 = (wxFont *) 0 ;
8991 wxString result;
8992 PyObject * obj0 = 0 ;
8993 char *kwnames[] = {
8994 (char *) "self", NULL
8995 };
8996
8997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9000 {
9001 PyThreadState* __tstate = wxPyBeginAllowThreads();
9002 result = ((wxFont const *)arg1)->GetFamilyString();
9003
9004 wxPyEndAllowThreads(__tstate);
9005 if (PyErr_Occurred()) SWIG_fail;
9006 }
9007 {
9008 #if wxUSE_UNICODE
9009 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9010 #else
9011 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9012 #endif
9013 }
9014 return resultobj;
9015 fail:
9016 return NULL;
9017 }
9018
9019
9020 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
9021 PyObject *resultobj;
9022 wxFont *arg1 = (wxFont *) 0 ;
9023 wxString result;
9024 PyObject * obj0 = 0 ;
9025 char *kwnames[] = {
9026 (char *) "self", NULL
9027 };
9028
9029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
9030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9032 {
9033 PyThreadState* __tstate = wxPyBeginAllowThreads();
9034 result = ((wxFont const *)arg1)->GetStyleString();
9035
9036 wxPyEndAllowThreads(__tstate);
9037 if (PyErr_Occurred()) SWIG_fail;
9038 }
9039 {
9040 #if wxUSE_UNICODE
9041 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9042 #else
9043 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9044 #endif
9045 }
9046 return resultobj;
9047 fail:
9048 return NULL;
9049 }
9050
9051
9052 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
9053 PyObject *resultobj;
9054 wxFont *arg1 = (wxFont *) 0 ;
9055 wxString result;
9056 PyObject * obj0 = 0 ;
9057 char *kwnames[] = {
9058 (char *) "self", NULL
9059 };
9060
9061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
9062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9064 {
9065 PyThreadState* __tstate = wxPyBeginAllowThreads();
9066 result = ((wxFont const *)arg1)->GetWeightString();
9067
9068 wxPyEndAllowThreads(__tstate);
9069 if (PyErr_Occurred()) SWIG_fail;
9070 }
9071 {
9072 #if wxUSE_UNICODE
9073 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9074 #else
9075 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9076 #endif
9077 }
9078 return resultobj;
9079 fail:
9080 return NULL;
9081 }
9082
9083
9084 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
9085 PyObject *resultobj;
9086 wxFont *arg1 = (wxFont *) 0 ;
9087 bool arg2 = (bool) True ;
9088 PyObject * obj0 = 0 ;
9089 PyObject * obj1 = 0 ;
9090 char *kwnames[] = {
9091 (char *) "self",(char *) "no", NULL
9092 };
9093
9094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
9095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9097 if (obj1) {
9098 arg2 = (bool) SWIG_AsBool(obj1);
9099 if (PyErr_Occurred()) SWIG_fail;
9100 }
9101 {
9102 PyThreadState* __tstate = wxPyBeginAllowThreads();
9103 (arg1)->SetNoAntiAliasing(arg2);
9104
9105 wxPyEndAllowThreads(__tstate);
9106 if (PyErr_Occurred()) SWIG_fail;
9107 }
9108 Py_INCREF(Py_None); resultobj = Py_None;
9109 return resultobj;
9110 fail:
9111 return NULL;
9112 }
9113
9114
9115 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
9116 PyObject *resultobj;
9117 wxFont *arg1 = (wxFont *) 0 ;
9118 bool result;
9119 PyObject * obj0 = 0 ;
9120 char *kwnames[] = {
9121 (char *) "self", NULL
9122 };
9123
9124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
9125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9127 {
9128 PyThreadState* __tstate = wxPyBeginAllowThreads();
9129 result = (bool)(arg1)->GetNoAntiAliasing();
9130
9131 wxPyEndAllowThreads(__tstate);
9132 if (PyErr_Occurred()) SWIG_fail;
9133 }
9134 {
9135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9136 }
9137 return resultobj;
9138 fail:
9139 return NULL;
9140 }
9141
9142
9143 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9144 PyObject *resultobj;
9145 int result;
9146 char *kwnames[] = {
9147 NULL
9148 };
9149
9150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
9151 {
9152 PyThreadState* __tstate = wxPyBeginAllowThreads();
9153 result = (int)wxFont::GetDefaultEncoding();
9154
9155 wxPyEndAllowThreads(__tstate);
9156 if (PyErr_Occurred()) SWIG_fail;
9157 }
9158 resultobj = SWIG_FromInt((int)result);
9159 return resultobj;
9160 fail:
9161 return NULL;
9162 }
9163
9164
9165 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9166 PyObject *resultobj;
9167 int arg1 ;
9168 PyObject * obj0 = 0 ;
9169 char *kwnames[] = {
9170 (char *) "encoding", NULL
9171 };
9172
9173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
9174 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
9175 if (PyErr_Occurred()) SWIG_fail;
9176 {
9177 PyThreadState* __tstate = wxPyBeginAllowThreads();
9178 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
9179
9180 wxPyEndAllowThreads(__tstate);
9181 if (PyErr_Occurred()) SWIG_fail;
9182 }
9183 Py_INCREF(Py_None); resultobj = Py_None;
9184 return resultobj;
9185 fail:
9186 return NULL;
9187 }
9188
9189
9190 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
9191 PyObject *obj;
9192 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9193 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
9194 Py_INCREF(obj);
9195 return Py_BuildValue((char *)"");
9196 }
9197 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
9198 PyObject *resultobj;
9199 wxPyFontEnumerator *result;
9200 char *kwnames[] = {
9201 NULL
9202 };
9203
9204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
9205 {
9206 PyThreadState* __tstate = wxPyBeginAllowThreads();
9207 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
9208
9209 wxPyEndAllowThreads(__tstate);
9210 if (PyErr_Occurred()) SWIG_fail;
9211 }
9212 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
9213 return resultobj;
9214 fail:
9215 return NULL;
9216 }
9217
9218
9219 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
9220 PyObject *resultobj;
9221 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9222 PyObject * obj0 = 0 ;
9223 char *kwnames[] = {
9224 (char *) "self", NULL
9225 };
9226
9227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
9228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9230 {
9231 PyThreadState* __tstate = wxPyBeginAllowThreads();
9232 delete arg1;
9233
9234 wxPyEndAllowThreads(__tstate);
9235 if (PyErr_Occurred()) SWIG_fail;
9236 }
9237 Py_INCREF(Py_None); resultobj = Py_None;
9238 return resultobj;
9239 fail:
9240 return NULL;
9241 }
9242
9243
9244 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9245 PyObject *resultobj;
9246 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9247 PyObject *arg2 = (PyObject *) 0 ;
9248 PyObject *arg3 = (PyObject *) 0 ;
9249 bool arg4 ;
9250 PyObject * obj0 = 0 ;
9251 PyObject * obj1 = 0 ;
9252 PyObject * obj2 = 0 ;
9253 PyObject * obj3 = 0 ;
9254 char *kwnames[] = {
9255 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
9256 };
9257
9258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9261 arg2 = obj1;
9262 arg3 = obj2;
9263 arg4 = (bool) SWIG_AsBool(obj3);
9264 if (PyErr_Occurred()) SWIG_fail;
9265 {
9266 PyThreadState* __tstate = wxPyBeginAllowThreads();
9267 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
9268
9269 wxPyEndAllowThreads(__tstate);
9270 if (PyErr_Occurred()) SWIG_fail;
9271 }
9272 Py_INCREF(Py_None); resultobj = Py_None;
9273 return resultobj;
9274 fail:
9275 return NULL;
9276 }
9277
9278
9279 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
9280 PyObject *resultobj;
9281 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9282 int arg2 = (int) wxFONTENCODING_SYSTEM ;
9283 bool arg3 = (bool) False ;
9284 bool result;
9285 PyObject * obj0 = 0 ;
9286 PyObject * obj1 = 0 ;
9287 PyObject * obj2 = 0 ;
9288 char *kwnames[] = {
9289 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
9290 };
9291
9292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
9293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9295 if (obj1) {
9296 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
9297 if (PyErr_Occurred()) SWIG_fail;
9298 }
9299 if (obj2) {
9300 arg3 = (bool) SWIG_AsBool(obj2);
9301 if (PyErr_Occurred()) SWIG_fail;
9302 }
9303 {
9304 PyThreadState* __tstate = wxPyBeginAllowThreads();
9305 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
9306
9307 wxPyEndAllowThreads(__tstate);
9308 if (PyErr_Occurred()) SWIG_fail;
9309 }
9310 {
9311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9312 }
9313 return resultobj;
9314 fail:
9315 return NULL;
9316 }
9317
9318
9319 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
9320 PyObject *resultobj;
9321 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9322 wxString const &arg2_defvalue = wxPyEmptyString ;
9323 wxString *arg2 = (wxString *) &arg2_defvalue ;
9324 bool result;
9325 bool temp2 = False ;
9326 PyObject * obj0 = 0 ;
9327 PyObject * obj1 = 0 ;
9328 char *kwnames[] = {
9329 (char *) "self",(char *) "facename", NULL
9330 };
9331
9332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
9333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9335 if (obj1) {
9336 {
9337 arg2 = wxString_in_helper(obj1);
9338 if (arg2 == NULL) SWIG_fail;
9339 temp2 = True;
9340 }
9341 }
9342 {
9343 PyThreadState* __tstate = wxPyBeginAllowThreads();
9344 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
9345
9346 wxPyEndAllowThreads(__tstate);
9347 if (PyErr_Occurred()) SWIG_fail;
9348 }
9349 {
9350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9351 }
9352 {
9353 if (temp2)
9354 delete arg2;
9355 }
9356 return resultobj;
9357 fail:
9358 {
9359 if (temp2)
9360 delete arg2;
9361 }
9362 return NULL;
9363 }
9364
9365
9366 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
9367 PyObject *resultobj;
9368 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9369 PyObject *result;
9370 PyObject * obj0 = 0 ;
9371 char *kwnames[] = {
9372 (char *) "self", NULL
9373 };
9374
9375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
9376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9378 {
9379 PyThreadState* __tstate = wxPyBeginAllowThreads();
9380 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
9381
9382 wxPyEndAllowThreads(__tstate);
9383 if (PyErr_Occurred()) SWIG_fail;
9384 }
9385 resultobj = result;
9386 return resultobj;
9387 fail:
9388 return NULL;
9389 }
9390
9391
9392 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
9393 PyObject *resultobj;
9394 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9395 PyObject *result;
9396 PyObject * obj0 = 0 ;
9397 char *kwnames[] = {
9398 (char *) "self", NULL
9399 };
9400
9401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
9402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9404 {
9405 PyThreadState* __tstate = wxPyBeginAllowThreads();
9406 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
9407
9408 wxPyEndAllowThreads(__tstate);
9409 if (PyErr_Occurred()) SWIG_fail;
9410 }
9411 resultobj = result;
9412 return resultobj;
9413 fail:
9414 return NULL;
9415 }
9416
9417
9418 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
9419 PyObject *obj;
9420 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9421 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9422 Py_INCREF(obj);
9423 return Py_BuildValue((char *)"");
9424 }
9425 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9426 PyObject *resultobj;
9427 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9428 int arg2 ;
9429 PyObject * obj0 = 0 ;
9430 PyObject * obj1 = 0 ;
9431 char *kwnames[] = {
9432 (char *) "self",(char *) "Language", NULL
9433 };
9434
9435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
9436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9438 arg2 = (int) SWIG_AsInt(obj1);
9439 if (PyErr_Occurred()) SWIG_fail;
9440 if (arg1) (arg1)->Language = arg2;
9441
9442 Py_INCREF(Py_None); resultobj = Py_None;
9443 return resultobj;
9444 fail:
9445 return NULL;
9446 }
9447
9448
9449 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9450 PyObject *resultobj;
9451 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9452 int result;
9453 PyObject * obj0 = 0 ;
9454 char *kwnames[] = {
9455 (char *) "self", NULL
9456 };
9457
9458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
9459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9461 result = (int) ((arg1)->Language);
9462
9463 resultobj = SWIG_FromInt((int)result);
9464 return resultobj;
9465 fail:
9466 return NULL;
9467 }
9468
9469
9470 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9471 PyObject *resultobj;
9472 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9473 wxString *arg2 = (wxString *) 0 ;
9474 bool temp2 = False ;
9475 PyObject * obj0 = 0 ;
9476 PyObject * obj1 = 0 ;
9477 char *kwnames[] = {
9478 (char *) "self",(char *) "CanonicalName", NULL
9479 };
9480
9481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
9482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9484 {
9485 arg2 = wxString_in_helper(obj1);
9486 if (arg2 == NULL) SWIG_fail;
9487 temp2 = True;
9488 }
9489 if (arg1) (arg1)->CanonicalName = *arg2;
9490
9491 Py_INCREF(Py_None); resultobj = Py_None;
9492 {
9493 if (temp2)
9494 delete arg2;
9495 }
9496 return resultobj;
9497 fail:
9498 {
9499 if (temp2)
9500 delete arg2;
9501 }
9502 return NULL;
9503 }
9504
9505
9506 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9507 PyObject *resultobj;
9508 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9509 wxString *result;
9510 PyObject * obj0 = 0 ;
9511 char *kwnames[] = {
9512 (char *) "self", NULL
9513 };
9514
9515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9518 result = (wxString *)& ((arg1)->CanonicalName);
9519
9520 {
9521 #if wxUSE_UNICODE
9522 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9523 #else
9524 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9525 #endif
9526 }
9527 return resultobj;
9528 fail:
9529 return NULL;
9530 }
9531
9532
9533 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9534 PyObject *resultobj;
9535 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9536 wxString *arg2 = (wxString *) 0 ;
9537 bool temp2 = False ;
9538 PyObject * obj0 = 0 ;
9539 PyObject * obj1 = 0 ;
9540 char *kwnames[] = {
9541 (char *) "self",(char *) "Description", NULL
9542 };
9543
9544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9547 {
9548 arg2 = wxString_in_helper(obj1);
9549 if (arg2 == NULL) SWIG_fail;
9550 temp2 = True;
9551 }
9552 if (arg1) (arg1)->Description = *arg2;
9553
9554 Py_INCREF(Py_None); resultobj = Py_None;
9555 {
9556 if (temp2)
9557 delete arg2;
9558 }
9559 return resultobj;
9560 fail:
9561 {
9562 if (temp2)
9563 delete arg2;
9564 }
9565 return NULL;
9566 }
9567
9568
9569 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9570 PyObject *resultobj;
9571 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9572 wxString *result;
9573 PyObject * obj0 = 0 ;
9574 char *kwnames[] = {
9575 (char *) "self", NULL
9576 };
9577
9578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9581 result = (wxString *)& ((arg1)->Description);
9582
9583 {
9584 #if wxUSE_UNICODE
9585 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9586 #else
9587 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9588 #endif
9589 }
9590 return resultobj;
9591 fail:
9592 return NULL;
9593 }
9594
9595
9596 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9597 PyObject *obj;
9598 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9599 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9600 Py_INCREF(obj);
9601 return Py_BuildValue((char *)"");
9602 }
9603 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9604 PyObject *resultobj;
9605 int arg1 = (int) wxLANGUAGE_DEFAULT ;
9606 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9607 wxLocale *result;
9608 PyObject * obj0 = 0 ;
9609 PyObject * obj1 = 0 ;
9610 char *kwnames[] = {
9611 (char *) "language",(char *) "flags", NULL
9612 };
9613
9614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9615 if (obj0) {
9616 arg1 = (int) SWIG_AsInt(obj0);
9617 if (PyErr_Occurred()) SWIG_fail;
9618 }
9619 if (obj1) {
9620 arg2 = (int) SWIG_AsInt(obj1);
9621 if (PyErr_Occurred()) SWIG_fail;
9622 }
9623 {
9624 PyThreadState* __tstate = wxPyBeginAllowThreads();
9625 result = (wxLocale *)new wxLocale(arg1,arg2);
9626
9627 wxPyEndAllowThreads(__tstate);
9628 if (PyErr_Occurred()) SWIG_fail;
9629 }
9630 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9631 return resultobj;
9632 fail:
9633 return NULL;
9634 }
9635
9636
9637 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9638 PyObject *resultobj;
9639 wxLocale *arg1 = (wxLocale *) 0 ;
9640 PyObject * obj0 = 0 ;
9641 char *kwnames[] = {
9642 (char *) "self", NULL
9643 };
9644
9645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9648 {
9649 PyThreadState* __tstate = wxPyBeginAllowThreads();
9650 delete arg1;
9651
9652 wxPyEndAllowThreads(__tstate);
9653 if (PyErr_Occurred()) SWIG_fail;
9654 }
9655 Py_INCREF(Py_None); resultobj = Py_None;
9656 return resultobj;
9657 fail:
9658 return NULL;
9659 }
9660
9661
9662 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9663 PyObject *resultobj;
9664 wxLocale *arg1 = (wxLocale *) 0 ;
9665 wxString *arg2 = 0 ;
9666 wxString const &arg3_defvalue = wxPyEmptyString ;
9667 wxString *arg3 = (wxString *) &arg3_defvalue ;
9668 wxString const &arg4_defvalue = wxPyEmptyString ;
9669 wxString *arg4 = (wxString *) &arg4_defvalue ;
9670 bool arg5 = (bool) True ;
9671 bool arg6 = (bool) False ;
9672 bool result;
9673 bool temp2 = False ;
9674 bool temp3 = False ;
9675 bool temp4 = False ;
9676 PyObject * obj0 = 0 ;
9677 PyObject * obj1 = 0 ;
9678 PyObject * obj2 = 0 ;
9679 PyObject * obj3 = 0 ;
9680 PyObject * obj4 = 0 ;
9681 PyObject * obj5 = 0 ;
9682 char *kwnames[] = {
9683 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9684 };
9685
9686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9689 {
9690 arg2 = wxString_in_helper(obj1);
9691 if (arg2 == NULL) SWIG_fail;
9692 temp2 = True;
9693 }
9694 if (obj2) {
9695 {
9696 arg3 = wxString_in_helper(obj2);
9697 if (arg3 == NULL) SWIG_fail;
9698 temp3 = True;
9699 }
9700 }
9701 if (obj3) {
9702 {
9703 arg4 = wxString_in_helper(obj3);
9704 if (arg4 == NULL) SWIG_fail;
9705 temp4 = True;
9706 }
9707 }
9708 if (obj4) {
9709 arg5 = (bool) SWIG_AsBool(obj4);
9710 if (PyErr_Occurred()) SWIG_fail;
9711 }
9712 if (obj5) {
9713 arg6 = (bool) SWIG_AsBool(obj5);
9714 if (PyErr_Occurred()) SWIG_fail;
9715 }
9716 {
9717 PyThreadState* __tstate = wxPyBeginAllowThreads();
9718 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9719
9720 wxPyEndAllowThreads(__tstate);
9721 if (PyErr_Occurred()) SWIG_fail;
9722 }
9723 {
9724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9725 }
9726 {
9727 if (temp2)
9728 delete arg2;
9729 }
9730 {
9731 if (temp3)
9732 delete arg3;
9733 }
9734 {
9735 if (temp4)
9736 delete arg4;
9737 }
9738 return resultobj;
9739 fail:
9740 {
9741 if (temp2)
9742 delete arg2;
9743 }
9744 {
9745 if (temp3)
9746 delete arg3;
9747 }
9748 {
9749 if (temp4)
9750 delete arg4;
9751 }
9752 return NULL;
9753 }
9754
9755
9756 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9757 PyObject *resultobj;
9758 wxLocale *arg1 = (wxLocale *) 0 ;
9759 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9760 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9761 bool result;
9762 PyObject * obj0 = 0 ;
9763 PyObject * obj1 = 0 ;
9764 PyObject * obj2 = 0 ;
9765 char *kwnames[] = {
9766 (char *) "self",(char *) "language",(char *) "flags", NULL
9767 };
9768
9769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9772 if (obj1) {
9773 arg2 = (int) SWIG_AsInt(obj1);
9774 if (PyErr_Occurred()) SWIG_fail;
9775 }
9776 if (obj2) {
9777 arg3 = (int) SWIG_AsInt(obj2);
9778 if (PyErr_Occurred()) SWIG_fail;
9779 }
9780 {
9781 PyThreadState* __tstate = wxPyBeginAllowThreads();
9782 result = (bool)(arg1)->Init(arg2,arg3);
9783
9784 wxPyEndAllowThreads(__tstate);
9785 if (PyErr_Occurred()) SWIG_fail;
9786 }
9787 {
9788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9789 }
9790 return resultobj;
9791 fail:
9792 return NULL;
9793 }
9794
9795
9796 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9797 PyObject *resultobj;
9798 int result;
9799 char *kwnames[] = {
9800 NULL
9801 };
9802
9803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9804 {
9805 PyThreadState* __tstate = wxPyBeginAllowThreads();
9806 result = (int)wxLocale::GetSystemLanguage();
9807
9808 wxPyEndAllowThreads(__tstate);
9809 if (PyErr_Occurred()) SWIG_fail;
9810 }
9811 resultobj = SWIG_FromInt((int)result);
9812 return resultobj;
9813 fail:
9814 return NULL;
9815 }
9816
9817
9818 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9819 PyObject *resultobj;
9820 int result;
9821 char *kwnames[] = {
9822 NULL
9823 };
9824
9825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9826 {
9827 PyThreadState* __tstate = wxPyBeginAllowThreads();
9828 result = (int)wxLocale::GetSystemEncoding();
9829
9830 wxPyEndAllowThreads(__tstate);
9831 if (PyErr_Occurred()) SWIG_fail;
9832 }
9833 resultobj = SWIG_FromInt((int)result);
9834 return resultobj;
9835 fail:
9836 return NULL;
9837 }
9838
9839
9840 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9841 PyObject *resultobj;
9842 wxString result;
9843 char *kwnames[] = {
9844 NULL
9845 };
9846
9847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9848 {
9849 PyThreadState* __tstate = wxPyBeginAllowThreads();
9850 result = wxLocale::GetSystemEncodingName();
9851
9852 wxPyEndAllowThreads(__tstate);
9853 if (PyErr_Occurred()) SWIG_fail;
9854 }
9855 {
9856 #if wxUSE_UNICODE
9857 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9858 #else
9859 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9860 #endif
9861 }
9862 return resultobj;
9863 fail:
9864 return NULL;
9865 }
9866
9867
9868 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9869 PyObject *resultobj;
9870 wxLocale *arg1 = (wxLocale *) 0 ;
9871 bool result;
9872 PyObject * obj0 = 0 ;
9873 char *kwnames[] = {
9874 (char *) "self", NULL
9875 };
9876
9877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9880 {
9881 PyThreadState* __tstate = wxPyBeginAllowThreads();
9882 result = (bool)((wxLocale const *)arg1)->IsOk();
9883
9884 wxPyEndAllowThreads(__tstate);
9885 if (PyErr_Occurred()) SWIG_fail;
9886 }
9887 {
9888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9889 }
9890 return resultobj;
9891 fail:
9892 return NULL;
9893 }
9894
9895
9896 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9897 PyObject *resultobj;
9898 wxLocale *arg1 = (wxLocale *) 0 ;
9899 wxString result;
9900 PyObject * obj0 = 0 ;
9901 char *kwnames[] = {
9902 (char *) "self", NULL
9903 };
9904
9905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9908 {
9909 PyThreadState* __tstate = wxPyBeginAllowThreads();
9910 result = ((wxLocale const *)arg1)->GetLocale();
9911
9912 wxPyEndAllowThreads(__tstate);
9913 if (PyErr_Occurred()) SWIG_fail;
9914 }
9915 {
9916 #if wxUSE_UNICODE
9917 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9918 #else
9919 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9920 #endif
9921 }
9922 return resultobj;
9923 fail:
9924 return NULL;
9925 }
9926
9927
9928 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9929 PyObject *resultobj;
9930 wxLocale *arg1 = (wxLocale *) 0 ;
9931 int result;
9932 PyObject * obj0 = 0 ;
9933 char *kwnames[] = {
9934 (char *) "self", NULL
9935 };
9936
9937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9940 {
9941 PyThreadState* __tstate = wxPyBeginAllowThreads();
9942 result = (int)((wxLocale const *)arg1)->GetLanguage();
9943
9944 wxPyEndAllowThreads(__tstate);
9945 if (PyErr_Occurred()) SWIG_fail;
9946 }
9947 resultobj = SWIG_FromInt((int)result);
9948 return resultobj;
9949 fail:
9950 return NULL;
9951 }
9952
9953
9954 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9955 PyObject *resultobj;
9956 wxLocale *arg1 = (wxLocale *) 0 ;
9957 wxString result;
9958 PyObject * obj0 = 0 ;
9959 char *kwnames[] = {
9960 (char *) "self", NULL
9961 };
9962
9963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9966 {
9967 PyThreadState* __tstate = wxPyBeginAllowThreads();
9968 result = ((wxLocale const *)arg1)->GetSysName();
9969
9970 wxPyEndAllowThreads(__tstate);
9971 if (PyErr_Occurred()) SWIG_fail;
9972 }
9973 {
9974 #if wxUSE_UNICODE
9975 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9976 #else
9977 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9978 #endif
9979 }
9980 return resultobj;
9981 fail:
9982 return NULL;
9983 }
9984
9985
9986 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9987 PyObject *resultobj;
9988 wxLocale *arg1 = (wxLocale *) 0 ;
9989 wxString result;
9990 PyObject * obj0 = 0 ;
9991 char *kwnames[] = {
9992 (char *) "self", NULL
9993 };
9994
9995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9998 {
9999 PyThreadState* __tstate = wxPyBeginAllowThreads();
10000 result = ((wxLocale const *)arg1)->GetCanonicalName();
10001
10002 wxPyEndAllowThreads(__tstate);
10003 if (PyErr_Occurred()) SWIG_fail;
10004 }
10005 {
10006 #if wxUSE_UNICODE
10007 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10008 #else
10009 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10010 #endif
10011 }
10012 return resultobj;
10013 fail:
10014 return NULL;
10015 }
10016
10017
10018 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
10019 PyObject *resultobj;
10020 wxString *arg1 = 0 ;
10021 bool temp1 = False ;
10022 PyObject * obj0 = 0 ;
10023 char *kwnames[] = {
10024 (char *) "prefix", NULL
10025 };
10026
10027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
10028 {
10029 arg1 = wxString_in_helper(obj0);
10030 if (arg1 == NULL) SWIG_fail;
10031 temp1 = True;
10032 }
10033 {
10034 PyThreadState* __tstate = wxPyBeginAllowThreads();
10035 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
10036
10037 wxPyEndAllowThreads(__tstate);
10038 if (PyErr_Occurred()) SWIG_fail;
10039 }
10040 Py_INCREF(Py_None); resultobj = Py_None;
10041 {
10042 if (temp1)
10043 delete arg1;
10044 }
10045 return resultobj;
10046 fail:
10047 {
10048 if (temp1)
10049 delete arg1;
10050 }
10051 return NULL;
10052 }
10053
10054
10055 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
10056 PyObject *resultobj;
10057 wxLocale *arg1 = (wxLocale *) 0 ;
10058 wxString *arg2 = 0 ;
10059 bool result;
10060 bool temp2 = False ;
10061 PyObject * obj0 = 0 ;
10062 PyObject * obj1 = 0 ;
10063 char *kwnames[] = {
10064 (char *) "self",(char *) "szDomain", NULL
10065 };
10066
10067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
10068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10070 {
10071 arg2 = wxString_in_helper(obj1);
10072 if (arg2 == NULL) SWIG_fail;
10073 temp2 = True;
10074 }
10075 {
10076 PyThreadState* __tstate = wxPyBeginAllowThreads();
10077 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
10078
10079 wxPyEndAllowThreads(__tstate);
10080 if (PyErr_Occurred()) SWIG_fail;
10081 }
10082 {
10083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10084 }
10085 {
10086 if (temp2)
10087 delete arg2;
10088 }
10089 return resultobj;
10090 fail:
10091 {
10092 if (temp2)
10093 delete arg2;
10094 }
10095 return NULL;
10096 }
10097
10098
10099 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
10100 PyObject *resultobj;
10101 wxLocale *arg1 = (wxLocale *) 0 ;
10102 wxString *arg2 = 0 ;
10103 bool result;
10104 bool temp2 = False ;
10105 PyObject * obj0 = 0 ;
10106 PyObject * obj1 = 0 ;
10107 char *kwnames[] = {
10108 (char *) "self",(char *) "szDomain", NULL
10109 };
10110
10111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
10112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10114 {
10115 arg2 = wxString_in_helper(obj1);
10116 if (arg2 == NULL) SWIG_fail;
10117 temp2 = True;
10118 }
10119 {
10120 PyThreadState* __tstate = wxPyBeginAllowThreads();
10121 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
10122
10123 wxPyEndAllowThreads(__tstate);
10124 if (PyErr_Occurred()) SWIG_fail;
10125 }
10126 {
10127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10128 }
10129 {
10130 if (temp2)
10131 delete arg2;
10132 }
10133 return resultobj;
10134 fail:
10135 {
10136 if (temp2)
10137 delete arg2;
10138 }
10139 return NULL;
10140 }
10141
10142
10143 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
10144 PyObject *resultobj;
10145 int arg1 ;
10146 wxLanguageInfo *result;
10147 PyObject * obj0 = 0 ;
10148 char *kwnames[] = {
10149 (char *) "lang", NULL
10150 };
10151
10152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
10153 arg1 = (int) SWIG_AsInt(obj0);
10154 if (PyErr_Occurred()) SWIG_fail;
10155 {
10156 PyThreadState* __tstate = wxPyBeginAllowThreads();
10157 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
10158
10159 wxPyEndAllowThreads(__tstate);
10160 if (PyErr_Occurred()) SWIG_fail;
10161 }
10162 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10163 return resultobj;
10164 fail:
10165 return NULL;
10166 }
10167
10168
10169 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
10170 PyObject *resultobj;
10171 int arg1 ;
10172 wxString result;
10173 PyObject * obj0 = 0 ;
10174 char *kwnames[] = {
10175 (char *) "lang", NULL
10176 };
10177
10178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
10179 arg1 = (int) SWIG_AsInt(obj0);
10180 if (PyErr_Occurred()) SWIG_fail;
10181 {
10182 PyThreadState* __tstate = wxPyBeginAllowThreads();
10183 result = wxLocale::GetLanguageName(arg1);
10184
10185 wxPyEndAllowThreads(__tstate);
10186 if (PyErr_Occurred()) SWIG_fail;
10187 }
10188 {
10189 #if wxUSE_UNICODE
10190 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10191 #else
10192 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10193 #endif
10194 }
10195 return resultobj;
10196 fail:
10197 return NULL;
10198 }
10199
10200
10201 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
10202 PyObject *resultobj;
10203 wxString *arg1 = 0 ;
10204 wxLanguageInfo *result;
10205 bool temp1 = False ;
10206 PyObject * obj0 = 0 ;
10207 char *kwnames[] = {
10208 (char *) "locale", NULL
10209 };
10210
10211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
10212 {
10213 arg1 = wxString_in_helper(obj0);
10214 if (arg1 == NULL) SWIG_fail;
10215 temp1 = True;
10216 }
10217 {
10218 PyThreadState* __tstate = wxPyBeginAllowThreads();
10219 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
10220
10221 wxPyEndAllowThreads(__tstate);
10222 if (PyErr_Occurred()) SWIG_fail;
10223 }
10224 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10225 {
10226 if (temp1)
10227 delete arg1;
10228 }
10229 return resultobj;
10230 fail:
10231 {
10232 if (temp1)
10233 delete arg1;
10234 }
10235 return NULL;
10236 }
10237
10238
10239 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
10240 PyObject *resultobj;
10241 wxLanguageInfo *arg1 = 0 ;
10242 PyObject * obj0 = 0 ;
10243 char *kwnames[] = {
10244 (char *) "info", NULL
10245 };
10246
10247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
10248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
10249 SWIG_POINTER_EXCEPTION | 0)) == -1)
10250 SWIG_fail;
10251 if (arg1 == NULL) {
10252 PyErr_SetString(PyExc_TypeError,"null reference");
10253 SWIG_fail;
10254 }
10255 {
10256 PyThreadState* __tstate = wxPyBeginAllowThreads();
10257 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
10258
10259 wxPyEndAllowThreads(__tstate);
10260 if (PyErr_Occurred()) SWIG_fail;
10261 }
10262 Py_INCREF(Py_None); resultobj = Py_None;
10263 return resultobj;
10264 fail:
10265 return NULL;
10266 }
10267
10268
10269 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
10270 PyObject *resultobj;
10271 wxLocale *arg1 = (wxLocale *) 0 ;
10272 wxString *arg2 = 0 ;
10273 wxString const &arg3_defvalue = wxPyEmptyString ;
10274 wxString *arg3 = (wxString *) &arg3_defvalue ;
10275 wxString result;
10276 bool temp2 = False ;
10277 bool temp3 = False ;
10278 PyObject * obj0 = 0 ;
10279 PyObject * obj1 = 0 ;
10280 PyObject * obj2 = 0 ;
10281 char *kwnames[] = {
10282 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
10283 };
10284
10285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
10286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10288 {
10289 arg2 = wxString_in_helper(obj1);
10290 if (arg2 == NULL) SWIG_fail;
10291 temp2 = True;
10292 }
10293 if (obj2) {
10294 {
10295 arg3 = wxString_in_helper(obj2);
10296 if (arg3 == NULL) SWIG_fail;
10297 temp3 = True;
10298 }
10299 }
10300 {
10301 PyThreadState* __tstate = wxPyBeginAllowThreads();
10302 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
10303
10304 wxPyEndAllowThreads(__tstate);
10305 if (PyErr_Occurred()) SWIG_fail;
10306 }
10307 {
10308 #if wxUSE_UNICODE
10309 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10310 #else
10311 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10312 #endif
10313 }
10314 {
10315 if (temp2)
10316 delete arg2;
10317 }
10318 {
10319 if (temp3)
10320 delete arg3;
10321 }
10322 return resultobj;
10323 fail:
10324 {
10325 if (temp2)
10326 delete arg2;
10327 }
10328 {
10329 if (temp3)
10330 delete arg3;
10331 }
10332 return NULL;
10333 }
10334
10335
10336 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
10337 PyObject *resultobj;
10338 wxLocale *arg1 = (wxLocale *) 0 ;
10339 wxString *result;
10340 PyObject * obj0 = 0 ;
10341 char *kwnames[] = {
10342 (char *) "self", NULL
10343 };
10344
10345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
10346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10348 {
10349 PyThreadState* __tstate = wxPyBeginAllowThreads();
10350 {
10351 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
10352 result = (wxString *) &_result_ref;
10353 }
10354
10355 wxPyEndAllowThreads(__tstate);
10356 if (PyErr_Occurred()) SWIG_fail;
10357 }
10358 {
10359 #if wxUSE_UNICODE
10360 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10361 #else
10362 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10363 #endif
10364 }
10365 return resultobj;
10366 fail:
10367 return NULL;
10368 }
10369
10370
10371 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
10372 PyObject *obj;
10373 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10374 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
10375 Py_INCREF(obj);
10376 return Py_BuildValue((char *)"");
10377 }
10378 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
10379 PyObject *resultobj;
10380 wxLocale *result;
10381 char *kwnames[] = {
10382 NULL
10383 };
10384
10385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
10386 {
10387 PyThreadState* __tstate = wxPyBeginAllowThreads();
10388 result = (wxLocale *)wxGetLocale();
10389
10390 wxPyEndAllowThreads(__tstate);
10391 if (PyErr_Occurred()) SWIG_fail;
10392 }
10393 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
10394 return resultobj;
10395 fail:
10396 return NULL;
10397 }
10398
10399
10400 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
10401 PyObject *resultobj;
10402 wxString *arg1 = 0 ;
10403 wxString result;
10404 bool temp1 = False ;
10405 PyObject * obj0 = 0 ;
10406
10407 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
10408 {
10409 arg1 = wxString_in_helper(obj0);
10410 if (arg1 == NULL) SWIG_fail;
10411 temp1 = True;
10412 }
10413 {
10414 PyThreadState* __tstate = wxPyBeginAllowThreads();
10415 result = wxGetTranslation((wxString const &)*arg1);
10416
10417 wxPyEndAllowThreads(__tstate);
10418 if (PyErr_Occurred()) SWIG_fail;
10419 }
10420 {
10421 #if wxUSE_UNICODE
10422 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10423 #else
10424 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10425 #endif
10426 }
10427 {
10428 if (temp1)
10429 delete arg1;
10430 }
10431 return resultobj;
10432 fail:
10433 {
10434 if (temp1)
10435 delete arg1;
10436 }
10437 return NULL;
10438 }
10439
10440
10441 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
10442 PyObject *resultobj;
10443 wxString *arg1 = 0 ;
10444 wxString *arg2 = 0 ;
10445 size_t arg3 ;
10446 wxString result;
10447 bool temp1 = False ;
10448 bool temp2 = False ;
10449 PyObject * obj0 = 0 ;
10450 PyObject * obj1 = 0 ;
10451 PyObject * obj2 = 0 ;
10452
10453 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10454 {
10455 arg1 = wxString_in_helper(obj0);
10456 if (arg1 == NULL) SWIG_fail;
10457 temp1 = True;
10458 }
10459 {
10460 arg2 = wxString_in_helper(obj1);
10461 if (arg2 == NULL) SWIG_fail;
10462 temp2 = True;
10463 }
10464 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
10465 if (PyErr_Occurred()) SWIG_fail;
10466 {
10467 PyThreadState* __tstate = wxPyBeginAllowThreads();
10468 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10469
10470 wxPyEndAllowThreads(__tstate);
10471 if (PyErr_Occurred()) SWIG_fail;
10472 }
10473 {
10474 #if wxUSE_UNICODE
10475 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10476 #else
10477 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10478 #endif
10479 }
10480 {
10481 if (temp1)
10482 delete arg1;
10483 }
10484 {
10485 if (temp2)
10486 delete arg2;
10487 }
10488 return resultobj;
10489 fail:
10490 {
10491 if (temp1)
10492 delete arg1;
10493 }
10494 {
10495 if (temp2)
10496 delete arg2;
10497 }
10498 return NULL;
10499 }
10500
10501
10502 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10503 int argc;
10504 PyObject *argv[4];
10505 int ii;
10506
10507 argc = PyObject_Length(args);
10508 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10509 argv[ii] = PyTuple_GetItem(args,ii);
10510 }
10511 if (argc == 1) {
10512 int _v;
10513 {
10514 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10515 }
10516 if (_v) {
10517 return _wrap_GetTranslation__SWIG_0(self,args);
10518 }
10519 }
10520 if (argc == 3) {
10521 int _v;
10522 {
10523 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10524 }
10525 if (_v) {
10526 {
10527 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10528 }
10529 if (_v) {
10530 _v = SWIG_CheckUnsignedLong(argv[2]);
10531 if (_v) {
10532 return _wrap_GetTranslation__SWIG_1(self,args);
10533 }
10534 }
10535 }
10536 }
10537
10538 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10539 return NULL;
10540 }
10541
10542
10543 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10544 PyObject *resultobj;
10545 wxEncodingConverter *result;
10546 char *kwnames[] = {
10547 NULL
10548 };
10549
10550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10551 {
10552 PyThreadState* __tstate = wxPyBeginAllowThreads();
10553 result = (wxEncodingConverter *)new wxEncodingConverter();
10554
10555 wxPyEndAllowThreads(__tstate);
10556 if (PyErr_Occurred()) SWIG_fail;
10557 }
10558 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10559 return resultobj;
10560 fail:
10561 return NULL;
10562 }
10563
10564
10565 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10566 PyObject *resultobj;
10567 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10568 PyObject * obj0 = 0 ;
10569 char *kwnames[] = {
10570 (char *) "self", NULL
10571 };
10572
10573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10576 {
10577 PyThreadState* __tstate = wxPyBeginAllowThreads();
10578 delete arg1;
10579
10580 wxPyEndAllowThreads(__tstate);
10581 if (PyErr_Occurred()) SWIG_fail;
10582 }
10583 Py_INCREF(Py_None); resultobj = Py_None;
10584 return resultobj;
10585 fail:
10586 return NULL;
10587 }
10588
10589
10590 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10591 PyObject *resultobj;
10592 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10593 int arg2 ;
10594 int arg3 ;
10595 int arg4 = (int) wxCONVERT_STRICT ;
10596 bool result;
10597 PyObject * obj0 = 0 ;
10598 PyObject * obj1 = 0 ;
10599 PyObject * obj2 = 0 ;
10600 PyObject * obj3 = 0 ;
10601 char *kwnames[] = {
10602 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10603 };
10604
10605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10608 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10609 if (PyErr_Occurred()) SWIG_fail;
10610 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10611 if (PyErr_Occurred()) SWIG_fail;
10612 if (obj3) {
10613 arg4 = (int) SWIG_AsInt(obj3);
10614 if (PyErr_Occurred()) SWIG_fail;
10615 }
10616 {
10617 PyThreadState* __tstate = wxPyBeginAllowThreads();
10618 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10619
10620 wxPyEndAllowThreads(__tstate);
10621 if (PyErr_Occurred()) SWIG_fail;
10622 }
10623 {
10624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10625 }
10626 return resultobj;
10627 fail:
10628 return NULL;
10629 }
10630
10631
10632 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10633 PyObject *resultobj;
10634 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10635 wxString *arg2 = 0 ;
10636 wxString result;
10637 bool temp2 = False ;
10638 PyObject * obj0 = 0 ;
10639 PyObject * obj1 = 0 ;
10640 char *kwnames[] = {
10641 (char *) "self",(char *) "input", NULL
10642 };
10643
10644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10647 {
10648 arg2 = wxString_in_helper(obj1);
10649 if (arg2 == NULL) SWIG_fail;
10650 temp2 = True;
10651 }
10652 {
10653 PyThreadState* __tstate = wxPyBeginAllowThreads();
10654 result = (arg1)->Convert((wxString const &)*arg2);
10655
10656 wxPyEndAllowThreads(__tstate);
10657 if (PyErr_Occurred()) SWIG_fail;
10658 }
10659 {
10660 #if wxUSE_UNICODE
10661 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10662 #else
10663 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10664 #endif
10665 }
10666 {
10667 if (temp2)
10668 delete arg2;
10669 }
10670 return resultobj;
10671 fail:
10672 {
10673 if (temp2)
10674 delete arg2;
10675 }
10676 return NULL;
10677 }
10678
10679
10680 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10681 PyObject *resultobj;
10682 int arg1 ;
10683 int arg2 = (int) wxPLATFORM_CURRENT ;
10684 wxFontEncodingArray result;
10685 PyObject * obj0 = 0 ;
10686 PyObject * obj1 = 0 ;
10687 char *kwnames[] = {
10688 (char *) "enc",(char *) "platform", NULL
10689 };
10690
10691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10692 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10693 if (PyErr_Occurred()) SWIG_fail;
10694 if (obj1) {
10695 arg2 = (int) SWIG_AsInt(obj1);
10696 if (PyErr_Occurred()) SWIG_fail;
10697 }
10698 {
10699 PyThreadState* __tstate = wxPyBeginAllowThreads();
10700 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10701
10702 wxPyEndAllowThreads(__tstate);
10703 if (PyErr_Occurred()) SWIG_fail;
10704 }
10705 {
10706 resultobj = PyList_New(0);
10707 for (size_t i=0; i < (&result)->GetCount(); i++) {
10708 PyObject* number = PyInt_FromLong((&result)->Item(i));
10709 PyList_Append(resultobj, number);
10710 Py_DECREF(number);
10711 }
10712 }
10713 return resultobj;
10714 fail:
10715 return NULL;
10716 }
10717
10718
10719 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10720 PyObject *resultobj;
10721 int arg1 ;
10722 wxFontEncodingArray result;
10723 PyObject * obj0 = 0 ;
10724 char *kwnames[] = {
10725 (char *) "enc", NULL
10726 };
10727
10728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10729 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10730 if (PyErr_Occurred()) SWIG_fail;
10731 {
10732 PyThreadState* __tstate = wxPyBeginAllowThreads();
10733 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10734
10735 wxPyEndAllowThreads(__tstate);
10736 if (PyErr_Occurred()) SWIG_fail;
10737 }
10738 {
10739 resultobj = PyList_New(0);
10740 for (size_t i=0; i < (&result)->GetCount(); i++) {
10741 PyObject* number = PyInt_FromLong((&result)->Item(i));
10742 PyList_Append(resultobj, number);
10743 Py_DECREF(number);
10744 }
10745 }
10746 return resultobj;
10747 fail:
10748 return NULL;
10749 }
10750
10751
10752 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10753 PyObject *resultobj;
10754 int arg1 ;
10755 int arg2 ;
10756 bool result;
10757 PyObject * obj0 = 0 ;
10758 PyObject * obj1 = 0 ;
10759 char *kwnames[] = {
10760 (char *) "encIn",(char *) "encOut", NULL
10761 };
10762
10763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10764 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10765 if (PyErr_Occurred()) SWIG_fail;
10766 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10767 if (PyErr_Occurred()) SWIG_fail;
10768 {
10769 PyThreadState* __tstate = wxPyBeginAllowThreads();
10770 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10771
10772 wxPyEndAllowThreads(__tstate);
10773 if (PyErr_Occurred()) SWIG_fail;
10774 }
10775 {
10776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10777 }
10778 return resultobj;
10779 fail:
10780 return NULL;
10781 }
10782
10783
10784 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10785 PyObject *obj;
10786 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10787 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10788 Py_INCREF(obj);
10789 return Py_BuildValue((char *)"");
10790 }
10791 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10792 PyObject *resultobj;
10793 wxDC *arg1 = (wxDC *) 0 ;
10794 PyObject * obj0 = 0 ;
10795 char *kwnames[] = {
10796 (char *) "self", NULL
10797 };
10798
10799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10802 {
10803 PyThreadState* __tstate = wxPyBeginAllowThreads();
10804 delete arg1;
10805
10806 wxPyEndAllowThreads(__tstate);
10807 if (PyErr_Occurred()) SWIG_fail;
10808 }
10809 Py_INCREF(Py_None); resultobj = Py_None;
10810 return resultobj;
10811 fail:
10812 return NULL;
10813 }
10814
10815
10816 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10817 PyObject *resultobj;
10818 wxDC *arg1 = (wxDC *) 0 ;
10819 PyObject * obj0 = 0 ;
10820 char *kwnames[] = {
10821 (char *) "self", NULL
10822 };
10823
10824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10827 {
10828 PyThreadState* __tstate = wxPyBeginAllowThreads();
10829 (arg1)->BeginDrawing();
10830
10831 wxPyEndAllowThreads(__tstate);
10832 if (PyErr_Occurred()) SWIG_fail;
10833 }
10834 Py_INCREF(Py_None); resultobj = Py_None;
10835 return resultobj;
10836 fail:
10837 return NULL;
10838 }
10839
10840
10841 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10842 PyObject *resultobj;
10843 wxDC *arg1 = (wxDC *) 0 ;
10844 PyObject * obj0 = 0 ;
10845 char *kwnames[] = {
10846 (char *) "self", NULL
10847 };
10848
10849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10852 {
10853 PyThreadState* __tstate = wxPyBeginAllowThreads();
10854 (arg1)->EndDrawing();
10855
10856 wxPyEndAllowThreads(__tstate);
10857 if (PyErr_Occurred()) SWIG_fail;
10858 }
10859 Py_INCREF(Py_None); resultobj = Py_None;
10860 return resultobj;
10861 fail:
10862 return NULL;
10863 }
10864
10865
10866 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
10867 PyObject *resultobj;
10868 wxDC *arg1 = (wxDC *) 0 ;
10869 int arg2 ;
10870 int arg3 ;
10871 wxColour *arg4 = 0 ;
10872 int arg5 = (int) wxFLOOD_SURFACE ;
10873 bool result;
10874 wxColour temp4 ;
10875 PyObject * obj0 = 0 ;
10876 PyObject * obj1 = 0 ;
10877 PyObject * obj2 = 0 ;
10878 PyObject * obj3 = 0 ;
10879 PyObject * obj4 = 0 ;
10880 char *kwnames[] = {
10881 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10882 };
10883
10884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10887 arg2 = (int) SWIG_AsInt(obj1);
10888 if (PyErr_Occurred()) SWIG_fail;
10889 arg3 = (int) SWIG_AsInt(obj2);
10890 if (PyErr_Occurred()) SWIG_fail;
10891 {
10892 arg4 = &temp4;
10893 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10894 }
10895 if (obj4) {
10896 arg5 = (int) SWIG_AsInt(obj4);
10897 if (PyErr_Occurred()) SWIG_fail;
10898 }
10899 {
10900 PyThreadState* __tstate = wxPyBeginAllowThreads();
10901 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10902
10903 wxPyEndAllowThreads(__tstate);
10904 if (PyErr_Occurred()) SWIG_fail;
10905 }
10906 {
10907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10908 }
10909 return resultobj;
10910 fail:
10911 return NULL;
10912 }
10913
10914
10915 static PyObject *_wrap_DC_FloodFillPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10916 PyObject *resultobj;
10917 wxDC *arg1 = (wxDC *) 0 ;
10918 wxPoint *arg2 = 0 ;
10919 wxColour *arg3 = 0 ;
10920 int arg4 = (int) wxFLOOD_SURFACE ;
10921 bool result;
10922 wxPoint temp2 ;
10923 wxColour temp3 ;
10924 PyObject * obj0 = 0 ;
10925 PyObject * obj1 = 0 ;
10926 PyObject * obj2 = 0 ;
10927 PyObject * obj3 = 0 ;
10928 char *kwnames[] = {
10929 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10930 };
10931
10932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10935 {
10936 arg2 = &temp2;
10937 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10938 }
10939 {
10940 arg3 = &temp3;
10941 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10942 }
10943 if (obj3) {
10944 arg4 = (int) SWIG_AsInt(obj3);
10945 if (PyErr_Occurred()) SWIG_fail;
10946 }
10947 {
10948 PyThreadState* __tstate = wxPyBeginAllowThreads();
10949 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10950
10951 wxPyEndAllowThreads(__tstate);
10952 if (PyErr_Occurred()) SWIG_fail;
10953 }
10954 {
10955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10956 }
10957 return resultobj;
10958 fail:
10959 return NULL;
10960 }
10961
10962
10963 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10964 PyObject *resultobj;
10965 wxDC *arg1 = (wxDC *) 0 ;
10966 int arg2 ;
10967 int arg3 ;
10968 wxColour result;
10969 PyObject * obj0 = 0 ;
10970 PyObject * obj1 = 0 ;
10971 PyObject * obj2 = 0 ;
10972 char *kwnames[] = {
10973 (char *) "self",(char *) "x",(char *) "y", NULL
10974 };
10975
10976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
10977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10979 arg2 = (int) SWIG_AsInt(obj1);
10980 if (PyErr_Occurred()) SWIG_fail;
10981 arg3 = (int) SWIG_AsInt(obj2);
10982 if (PyErr_Occurred()) SWIG_fail;
10983 {
10984 PyThreadState* __tstate = wxPyBeginAllowThreads();
10985 result = wxDC_GetPixel(arg1,arg2,arg3);
10986
10987 wxPyEndAllowThreads(__tstate);
10988 if (PyErr_Occurred()) SWIG_fail;
10989 }
10990 {
10991 wxColour * resultptr;
10992 resultptr = new wxColour((wxColour &) result);
10993 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10994 }
10995 return resultobj;
10996 fail:
10997 return NULL;
10998 }
10999
11000
11001 static PyObject *_wrap_DC_GetPixelPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11002 PyObject *resultobj;
11003 wxDC *arg1 = (wxDC *) 0 ;
11004 wxPoint *arg2 = 0 ;
11005 wxColour result;
11006 wxPoint temp2 ;
11007 PyObject * obj0 = 0 ;
11008 PyObject * obj1 = 0 ;
11009 char *kwnames[] = {
11010 (char *) "self",(char *) "pt", NULL
11011 };
11012
11013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
11014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11016 {
11017 arg2 = &temp2;
11018 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11019 }
11020 {
11021 PyThreadState* __tstate = wxPyBeginAllowThreads();
11022 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
11023
11024 wxPyEndAllowThreads(__tstate);
11025 if (PyErr_Occurred()) SWIG_fail;
11026 }
11027 {
11028 wxColour * resultptr;
11029 resultptr = new wxColour((wxColour &) result);
11030 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11031 }
11032 return resultobj;
11033 fail:
11034 return NULL;
11035 }
11036
11037
11038 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
11039 PyObject *resultobj;
11040 wxDC *arg1 = (wxDC *) 0 ;
11041 int arg2 ;
11042 int arg3 ;
11043 int arg4 ;
11044 int arg5 ;
11045 PyObject * obj0 = 0 ;
11046 PyObject * obj1 = 0 ;
11047 PyObject * obj2 = 0 ;
11048 PyObject * obj3 = 0 ;
11049 PyObject * obj4 = 0 ;
11050 char *kwnames[] = {
11051 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
11052 };
11053
11054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11057 arg2 = (int) SWIG_AsInt(obj1);
11058 if (PyErr_Occurred()) SWIG_fail;
11059 arg3 = (int) SWIG_AsInt(obj2);
11060 if (PyErr_Occurred()) SWIG_fail;
11061 arg4 = (int) SWIG_AsInt(obj3);
11062 if (PyErr_Occurred()) SWIG_fail;
11063 arg5 = (int) SWIG_AsInt(obj4);
11064 if (PyErr_Occurred()) SWIG_fail;
11065 {
11066 PyThreadState* __tstate = wxPyBeginAllowThreads();
11067 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
11068
11069 wxPyEndAllowThreads(__tstate);
11070 if (PyErr_Occurred()) SWIG_fail;
11071 }
11072 Py_INCREF(Py_None); resultobj = Py_None;
11073 return resultobj;
11074 fail:
11075 return NULL;
11076 }
11077
11078
11079 static PyObject *_wrap_DC_DrawLinePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11080 PyObject *resultobj;
11081 wxDC *arg1 = (wxDC *) 0 ;
11082 wxPoint *arg2 = 0 ;
11083 wxPoint *arg3 = 0 ;
11084 wxPoint temp2 ;
11085 wxPoint temp3 ;
11086 PyObject * obj0 = 0 ;
11087 PyObject * obj1 = 0 ;
11088 PyObject * obj2 = 0 ;
11089 char *kwnames[] = {
11090 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
11091 };
11092
11093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11096 {
11097 arg2 = &temp2;
11098 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11099 }
11100 {
11101 arg3 = &temp3;
11102 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11103 }
11104 {
11105 PyThreadState* __tstate = wxPyBeginAllowThreads();
11106 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
11107
11108 wxPyEndAllowThreads(__tstate);
11109 if (PyErr_Occurred()) SWIG_fail;
11110 }
11111 Py_INCREF(Py_None); resultobj = Py_None;
11112 return resultobj;
11113 fail:
11114 return NULL;
11115 }
11116
11117
11118 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
11119 PyObject *resultobj;
11120 wxDC *arg1 = (wxDC *) 0 ;
11121 int arg2 ;
11122 int arg3 ;
11123 PyObject * obj0 = 0 ;
11124 PyObject * obj1 = 0 ;
11125 PyObject * obj2 = 0 ;
11126 char *kwnames[] = {
11127 (char *) "self",(char *) "x",(char *) "y", NULL
11128 };
11129
11130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
11131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11133 arg2 = (int) SWIG_AsInt(obj1);
11134 if (PyErr_Occurred()) SWIG_fail;
11135 arg3 = (int) SWIG_AsInt(obj2);
11136 if (PyErr_Occurred()) SWIG_fail;
11137 {
11138 PyThreadState* __tstate = wxPyBeginAllowThreads();
11139 (arg1)->CrossHair(arg2,arg3);
11140
11141 wxPyEndAllowThreads(__tstate);
11142 if (PyErr_Occurred()) SWIG_fail;
11143 }
11144 Py_INCREF(Py_None); resultobj = Py_None;
11145 return resultobj;
11146 fail:
11147 return NULL;
11148 }
11149
11150
11151 static PyObject *_wrap_DC_CrossHairPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11152 PyObject *resultobj;
11153 wxDC *arg1 = (wxDC *) 0 ;
11154 wxPoint *arg2 = 0 ;
11155 wxPoint temp2 ;
11156 PyObject * obj0 = 0 ;
11157 PyObject * obj1 = 0 ;
11158 char *kwnames[] = {
11159 (char *) "self",(char *) "pt", NULL
11160 };
11161
11162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
11163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11165 {
11166 arg2 = &temp2;
11167 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11168 }
11169 {
11170 PyThreadState* __tstate = wxPyBeginAllowThreads();
11171 (arg1)->CrossHair((wxPoint const &)*arg2);
11172
11173 wxPyEndAllowThreads(__tstate);
11174 if (PyErr_Occurred()) SWIG_fail;
11175 }
11176 Py_INCREF(Py_None); resultobj = Py_None;
11177 return resultobj;
11178 fail:
11179 return NULL;
11180 }
11181
11182
11183 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
11184 PyObject *resultobj;
11185 wxDC *arg1 = (wxDC *) 0 ;
11186 int arg2 ;
11187 int arg3 ;
11188 int arg4 ;
11189 int arg5 ;
11190 int arg6 ;
11191 int arg7 ;
11192 PyObject * obj0 = 0 ;
11193 PyObject * obj1 = 0 ;
11194 PyObject * obj2 = 0 ;
11195 PyObject * obj3 = 0 ;
11196 PyObject * obj4 = 0 ;
11197 PyObject * obj5 = 0 ;
11198 PyObject * obj6 = 0 ;
11199 char *kwnames[] = {
11200 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
11201 };
11202
11203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11206 arg2 = (int) SWIG_AsInt(obj1);
11207 if (PyErr_Occurred()) SWIG_fail;
11208 arg3 = (int) SWIG_AsInt(obj2);
11209 if (PyErr_Occurred()) SWIG_fail;
11210 arg4 = (int) SWIG_AsInt(obj3);
11211 if (PyErr_Occurred()) SWIG_fail;
11212 arg5 = (int) SWIG_AsInt(obj4);
11213 if (PyErr_Occurred()) SWIG_fail;
11214 arg6 = (int) SWIG_AsInt(obj5);
11215 if (PyErr_Occurred()) SWIG_fail;
11216 arg7 = (int) SWIG_AsInt(obj6);
11217 if (PyErr_Occurred()) SWIG_fail;
11218 {
11219 PyThreadState* __tstate = wxPyBeginAllowThreads();
11220 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
11221
11222 wxPyEndAllowThreads(__tstate);
11223 if (PyErr_Occurred()) SWIG_fail;
11224 }
11225 Py_INCREF(Py_None); resultobj = Py_None;
11226 return resultobj;
11227 fail:
11228 return NULL;
11229 }
11230
11231
11232 static PyObject *_wrap_DC_DrawArcPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11233 PyObject *resultobj;
11234 wxDC *arg1 = (wxDC *) 0 ;
11235 wxPoint *arg2 = 0 ;
11236 wxPoint *arg3 = 0 ;
11237 wxPoint *arg4 = 0 ;
11238 wxPoint temp2 ;
11239 wxPoint temp3 ;
11240 wxPoint temp4 ;
11241 PyObject * obj0 = 0 ;
11242 PyObject * obj1 = 0 ;
11243 PyObject * obj2 = 0 ;
11244 PyObject * obj3 = 0 ;
11245 char *kwnames[] = {
11246 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
11247 };
11248
11249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11252 {
11253 arg2 = &temp2;
11254 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11255 }
11256 {
11257 arg3 = &temp3;
11258 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11259 }
11260 {
11261 arg4 = &temp4;
11262 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11263 }
11264 {
11265 PyThreadState* __tstate = wxPyBeginAllowThreads();
11266 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
11267
11268 wxPyEndAllowThreads(__tstate);
11269 if (PyErr_Occurred()) SWIG_fail;
11270 }
11271 Py_INCREF(Py_None); resultobj = Py_None;
11272 return resultobj;
11273 fail:
11274 return NULL;
11275 }
11276
11277
11278 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
11279 PyObject *resultobj;
11280 wxDC *arg1 = (wxDC *) 0 ;
11281 int arg2 ;
11282 int arg3 ;
11283 int arg4 ;
11284 int arg5 ;
11285 PyObject * obj0 = 0 ;
11286 PyObject * obj1 = 0 ;
11287 PyObject * obj2 = 0 ;
11288 PyObject * obj3 = 0 ;
11289 PyObject * obj4 = 0 ;
11290 char *kwnames[] = {
11291 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11292 };
11293
11294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11297 arg2 = (int) SWIG_AsInt(obj1);
11298 if (PyErr_Occurred()) SWIG_fail;
11299 arg3 = (int) SWIG_AsInt(obj2);
11300 if (PyErr_Occurred()) SWIG_fail;
11301 arg4 = (int) SWIG_AsInt(obj3);
11302 if (PyErr_Occurred()) SWIG_fail;
11303 arg5 = (int) SWIG_AsInt(obj4);
11304 if (PyErr_Occurred()) SWIG_fail;
11305 {
11306 PyThreadState* __tstate = wxPyBeginAllowThreads();
11307 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
11308
11309 wxPyEndAllowThreads(__tstate);
11310 if (PyErr_Occurred()) SWIG_fail;
11311 }
11312 Py_INCREF(Py_None); resultobj = Py_None;
11313 return resultobj;
11314 fail:
11315 return NULL;
11316 }
11317
11318
11319 static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11320 PyObject *resultobj;
11321 wxDC *arg1 = (wxDC *) 0 ;
11322 wxRect *arg2 = 0 ;
11323 wxRect temp2 ;
11324 PyObject * obj0 = 0 ;
11325 PyObject * obj1 = 0 ;
11326 char *kwnames[] = {
11327 (char *) "self",(char *) "rect", NULL
11328 };
11329
11330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
11331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11333 {
11334 arg2 = &temp2;
11335 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11336 }
11337 {
11338 PyThreadState* __tstate = wxPyBeginAllowThreads();
11339 (arg1)->DrawCheckMark((wxRect const &)*arg2);
11340
11341 wxPyEndAllowThreads(__tstate);
11342 if (PyErr_Occurred()) SWIG_fail;
11343 }
11344 Py_INCREF(Py_None); resultobj = Py_None;
11345 return resultobj;
11346 fail:
11347 return NULL;
11348 }
11349
11350
11351 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
11352 PyObject *resultobj;
11353 wxDC *arg1 = (wxDC *) 0 ;
11354 int arg2 ;
11355 int arg3 ;
11356 int arg4 ;
11357 int arg5 ;
11358 double arg6 ;
11359 double arg7 ;
11360 PyObject * obj0 = 0 ;
11361 PyObject * obj1 = 0 ;
11362 PyObject * obj2 = 0 ;
11363 PyObject * obj3 = 0 ;
11364 PyObject * obj4 = 0 ;
11365 PyObject * obj5 = 0 ;
11366 PyObject * obj6 = 0 ;
11367 char *kwnames[] = {
11368 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
11369 };
11370
11371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11374 arg2 = (int) SWIG_AsInt(obj1);
11375 if (PyErr_Occurred()) SWIG_fail;
11376 arg3 = (int) SWIG_AsInt(obj2);
11377 if (PyErr_Occurred()) SWIG_fail;
11378 arg4 = (int) SWIG_AsInt(obj3);
11379 if (PyErr_Occurred()) SWIG_fail;
11380 arg5 = (int) SWIG_AsInt(obj4);
11381 if (PyErr_Occurred()) SWIG_fail;
11382 arg6 = (double) SWIG_AsDouble(obj5);
11383 if (PyErr_Occurred()) SWIG_fail;
11384 arg7 = (double) SWIG_AsDouble(obj6);
11385 if (PyErr_Occurred()) SWIG_fail;
11386 {
11387 PyThreadState* __tstate = wxPyBeginAllowThreads();
11388 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
11389
11390 wxPyEndAllowThreads(__tstate);
11391 if (PyErr_Occurred()) SWIG_fail;
11392 }
11393 Py_INCREF(Py_None); resultobj = Py_None;
11394 return resultobj;
11395 fail:
11396 return NULL;
11397 }
11398
11399
11400 static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11401 PyObject *resultobj;
11402 wxDC *arg1 = (wxDC *) 0 ;
11403 wxPoint *arg2 = 0 ;
11404 wxSize *arg3 = 0 ;
11405 double arg4 ;
11406 double arg5 ;
11407 wxPoint temp2 ;
11408 wxSize temp3 ;
11409 PyObject * obj0 = 0 ;
11410 PyObject * obj1 = 0 ;
11411 PyObject * obj2 = 0 ;
11412 PyObject * obj3 = 0 ;
11413 PyObject * obj4 = 0 ;
11414 char *kwnames[] = {
11415 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
11416 };
11417
11418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11421 {
11422 arg2 = &temp2;
11423 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11424 }
11425 {
11426 arg3 = &temp3;
11427 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11428 }
11429 arg4 = (double) SWIG_AsDouble(obj3);
11430 if (PyErr_Occurred()) SWIG_fail;
11431 arg5 = (double) SWIG_AsDouble(obj4);
11432 if (PyErr_Occurred()) SWIG_fail;
11433 {
11434 PyThreadState* __tstate = wxPyBeginAllowThreads();
11435 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
11436
11437 wxPyEndAllowThreads(__tstate);
11438 if (PyErr_Occurred()) SWIG_fail;
11439 }
11440 Py_INCREF(Py_None); resultobj = Py_None;
11441 return resultobj;
11442 fail:
11443 return NULL;
11444 }
11445
11446
11447 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11448 PyObject *resultobj;
11449 wxDC *arg1 = (wxDC *) 0 ;
11450 int arg2 ;
11451 int arg3 ;
11452 PyObject * obj0 = 0 ;
11453 PyObject * obj1 = 0 ;
11454 PyObject * obj2 = 0 ;
11455 char *kwnames[] = {
11456 (char *) "self",(char *) "x",(char *) "y", NULL
11457 };
11458
11459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11462 arg2 = (int) SWIG_AsInt(obj1);
11463 if (PyErr_Occurred()) SWIG_fail;
11464 arg3 = (int) SWIG_AsInt(obj2);
11465 if (PyErr_Occurred()) SWIG_fail;
11466 {
11467 PyThreadState* __tstate = wxPyBeginAllowThreads();
11468 (arg1)->DrawPoint(arg2,arg3);
11469
11470 wxPyEndAllowThreads(__tstate);
11471 if (PyErr_Occurred()) SWIG_fail;
11472 }
11473 Py_INCREF(Py_None); resultobj = Py_None;
11474 return resultobj;
11475 fail:
11476 return NULL;
11477 }
11478
11479
11480 static PyObject *_wrap_DC_DrawPointPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11481 PyObject *resultobj;
11482 wxDC *arg1 = (wxDC *) 0 ;
11483 wxPoint *arg2 = 0 ;
11484 wxPoint temp2 ;
11485 PyObject * obj0 = 0 ;
11486 PyObject * obj1 = 0 ;
11487 char *kwnames[] = {
11488 (char *) "self",(char *) "pt", NULL
11489 };
11490
11491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
11492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11494 {
11495 arg2 = &temp2;
11496 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11497 }
11498 {
11499 PyThreadState* __tstate = wxPyBeginAllowThreads();
11500 (arg1)->DrawPoint((wxPoint const &)*arg2);
11501
11502 wxPyEndAllowThreads(__tstate);
11503 if (PyErr_Occurred()) SWIG_fail;
11504 }
11505 Py_INCREF(Py_None); resultobj = Py_None;
11506 return resultobj;
11507 fail:
11508 return NULL;
11509 }
11510
11511
11512 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11513 PyObject *resultobj;
11514 wxDC *arg1 = (wxDC *) 0 ;
11515 int arg2 ;
11516 int arg3 ;
11517 int arg4 ;
11518 int arg5 ;
11519 PyObject * obj0 = 0 ;
11520 PyObject * obj1 = 0 ;
11521 PyObject * obj2 = 0 ;
11522 PyObject * obj3 = 0 ;
11523 PyObject * obj4 = 0 ;
11524 char *kwnames[] = {
11525 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11526 };
11527
11528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11531 arg2 = (int) SWIG_AsInt(obj1);
11532 if (PyErr_Occurred()) SWIG_fail;
11533 arg3 = (int) SWIG_AsInt(obj2);
11534 if (PyErr_Occurred()) SWIG_fail;
11535 arg4 = (int) SWIG_AsInt(obj3);
11536 if (PyErr_Occurred()) SWIG_fail;
11537 arg5 = (int) SWIG_AsInt(obj4);
11538 if (PyErr_Occurred()) SWIG_fail;
11539 {
11540 PyThreadState* __tstate = wxPyBeginAllowThreads();
11541 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11542
11543 wxPyEndAllowThreads(__tstate);
11544 if (PyErr_Occurred()) SWIG_fail;
11545 }
11546 Py_INCREF(Py_None); resultobj = Py_None;
11547 return resultobj;
11548 fail:
11549 return NULL;
11550 }
11551
11552
11553 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11554 PyObject *resultobj;
11555 wxDC *arg1 = (wxDC *) 0 ;
11556 wxRect *arg2 = 0 ;
11557 wxRect temp2 ;
11558 PyObject * obj0 = 0 ;
11559 PyObject * obj1 = 0 ;
11560 char *kwnames[] = {
11561 (char *) "self",(char *) "rect", NULL
11562 };
11563
11564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11567 {
11568 arg2 = &temp2;
11569 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11570 }
11571 {
11572 PyThreadState* __tstate = wxPyBeginAllowThreads();
11573 (arg1)->DrawRectangle((wxRect const &)*arg2);
11574
11575 wxPyEndAllowThreads(__tstate);
11576 if (PyErr_Occurred()) SWIG_fail;
11577 }
11578 Py_INCREF(Py_None); resultobj = Py_None;
11579 return resultobj;
11580 fail:
11581 return NULL;
11582 }
11583
11584
11585 static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11586 PyObject *resultobj;
11587 wxDC *arg1 = (wxDC *) 0 ;
11588 wxPoint *arg2 = 0 ;
11589 wxSize *arg3 = 0 ;
11590 wxPoint temp2 ;
11591 wxSize temp3 ;
11592 PyObject * obj0 = 0 ;
11593 PyObject * obj1 = 0 ;
11594 PyObject * obj2 = 0 ;
11595 char *kwnames[] = {
11596 (char *) "self",(char *) "pt",(char *) "sz", NULL
11597 };
11598
11599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11602 {
11603 arg2 = &temp2;
11604 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11605 }
11606 {
11607 arg3 = &temp3;
11608 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11609 }
11610 {
11611 PyThreadState* __tstate = wxPyBeginAllowThreads();
11612 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11613
11614 wxPyEndAllowThreads(__tstate);
11615 if (PyErr_Occurred()) SWIG_fail;
11616 }
11617 Py_INCREF(Py_None); resultobj = Py_None;
11618 return resultobj;
11619 fail:
11620 return NULL;
11621 }
11622
11623
11624 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11625 PyObject *resultobj;
11626 wxDC *arg1 = (wxDC *) 0 ;
11627 int arg2 ;
11628 int arg3 ;
11629 int arg4 ;
11630 int arg5 ;
11631 double arg6 ;
11632 PyObject * obj0 = 0 ;
11633 PyObject * obj1 = 0 ;
11634 PyObject * obj2 = 0 ;
11635 PyObject * obj3 = 0 ;
11636 PyObject * obj4 = 0 ;
11637 PyObject * obj5 = 0 ;
11638 char *kwnames[] = {
11639 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11640 };
11641
11642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11645 arg2 = (int) SWIG_AsInt(obj1);
11646 if (PyErr_Occurred()) SWIG_fail;
11647 arg3 = (int) SWIG_AsInt(obj2);
11648 if (PyErr_Occurred()) SWIG_fail;
11649 arg4 = (int) SWIG_AsInt(obj3);
11650 if (PyErr_Occurred()) SWIG_fail;
11651 arg5 = (int) SWIG_AsInt(obj4);
11652 if (PyErr_Occurred()) SWIG_fail;
11653 arg6 = (double) SWIG_AsDouble(obj5);
11654 if (PyErr_Occurred()) SWIG_fail;
11655 {
11656 PyThreadState* __tstate = wxPyBeginAllowThreads();
11657 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11658
11659 wxPyEndAllowThreads(__tstate);
11660 if (PyErr_Occurred()) SWIG_fail;
11661 }
11662 Py_INCREF(Py_None); resultobj = Py_None;
11663 return resultobj;
11664 fail:
11665 return NULL;
11666 }
11667
11668
11669 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11670 PyObject *resultobj;
11671 wxDC *arg1 = (wxDC *) 0 ;
11672 wxRect *arg2 = 0 ;
11673 double arg3 ;
11674 wxRect temp2 ;
11675 PyObject * obj0 = 0 ;
11676 PyObject * obj1 = 0 ;
11677 PyObject * obj2 = 0 ;
11678 char *kwnames[] = {
11679 (char *) "self",(char *) "r",(char *) "radius", NULL
11680 };
11681
11682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11685 {
11686 arg2 = &temp2;
11687 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11688 }
11689 arg3 = (double) SWIG_AsDouble(obj2);
11690 if (PyErr_Occurred()) SWIG_fail;
11691 {
11692 PyThreadState* __tstate = wxPyBeginAllowThreads();
11693 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11694
11695 wxPyEndAllowThreads(__tstate);
11696 if (PyErr_Occurred()) SWIG_fail;
11697 }
11698 Py_INCREF(Py_None); resultobj = Py_None;
11699 return resultobj;
11700 fail:
11701 return NULL;
11702 }
11703
11704
11705 static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11706 PyObject *resultobj;
11707 wxDC *arg1 = (wxDC *) 0 ;
11708 wxPoint *arg2 = 0 ;
11709 wxSize *arg3 = 0 ;
11710 double arg4 ;
11711 wxPoint temp2 ;
11712 wxSize temp3 ;
11713 PyObject * obj0 = 0 ;
11714 PyObject * obj1 = 0 ;
11715 PyObject * obj2 = 0 ;
11716 PyObject * obj3 = 0 ;
11717 char *kwnames[] = {
11718 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11719 };
11720
11721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11724 {
11725 arg2 = &temp2;
11726 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11727 }
11728 {
11729 arg3 = &temp3;
11730 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11731 }
11732 arg4 = (double) SWIG_AsDouble(obj3);
11733 if (PyErr_Occurred()) SWIG_fail;
11734 {
11735 PyThreadState* __tstate = wxPyBeginAllowThreads();
11736 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11737
11738 wxPyEndAllowThreads(__tstate);
11739 if (PyErr_Occurred()) SWIG_fail;
11740 }
11741 Py_INCREF(Py_None); resultobj = Py_None;
11742 return resultobj;
11743 fail:
11744 return NULL;
11745 }
11746
11747
11748 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11749 PyObject *resultobj;
11750 wxDC *arg1 = (wxDC *) 0 ;
11751 int arg2 ;
11752 int arg3 ;
11753 int arg4 ;
11754 PyObject * obj0 = 0 ;
11755 PyObject * obj1 = 0 ;
11756 PyObject * obj2 = 0 ;
11757 PyObject * obj3 = 0 ;
11758 char *kwnames[] = {
11759 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11760 };
11761
11762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11765 arg2 = (int) SWIG_AsInt(obj1);
11766 if (PyErr_Occurred()) SWIG_fail;
11767 arg3 = (int) SWIG_AsInt(obj2);
11768 if (PyErr_Occurred()) SWIG_fail;
11769 arg4 = (int) SWIG_AsInt(obj3);
11770 if (PyErr_Occurred()) SWIG_fail;
11771 {
11772 PyThreadState* __tstate = wxPyBeginAllowThreads();
11773 (arg1)->DrawCircle(arg2,arg3,arg4);
11774
11775 wxPyEndAllowThreads(__tstate);
11776 if (PyErr_Occurred()) SWIG_fail;
11777 }
11778 Py_INCREF(Py_None); resultobj = Py_None;
11779 return resultobj;
11780 fail:
11781 return NULL;
11782 }
11783
11784
11785 static PyObject *_wrap_DC_DrawCirclePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11786 PyObject *resultobj;
11787 wxDC *arg1 = (wxDC *) 0 ;
11788 wxPoint *arg2 = 0 ;
11789 int arg3 ;
11790 wxPoint temp2 ;
11791 PyObject * obj0 = 0 ;
11792 PyObject * obj1 = 0 ;
11793 PyObject * obj2 = 0 ;
11794 char *kwnames[] = {
11795 (char *) "self",(char *) "pt",(char *) "radius", NULL
11796 };
11797
11798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11801 {
11802 arg2 = &temp2;
11803 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11804 }
11805 arg3 = (int) SWIG_AsInt(obj2);
11806 if (PyErr_Occurred()) SWIG_fail;
11807 {
11808 PyThreadState* __tstate = wxPyBeginAllowThreads();
11809 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11810
11811 wxPyEndAllowThreads(__tstate);
11812 if (PyErr_Occurred()) SWIG_fail;
11813 }
11814 Py_INCREF(Py_None); resultobj = Py_None;
11815 return resultobj;
11816 fail:
11817 return NULL;
11818 }
11819
11820
11821 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11822 PyObject *resultobj;
11823 wxDC *arg1 = (wxDC *) 0 ;
11824 int arg2 ;
11825 int arg3 ;
11826 int arg4 ;
11827 int arg5 ;
11828 PyObject * obj0 = 0 ;
11829 PyObject * obj1 = 0 ;
11830 PyObject * obj2 = 0 ;
11831 PyObject * obj3 = 0 ;
11832 PyObject * obj4 = 0 ;
11833 char *kwnames[] = {
11834 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11835 };
11836
11837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11840 arg2 = (int) SWIG_AsInt(obj1);
11841 if (PyErr_Occurred()) SWIG_fail;
11842 arg3 = (int) SWIG_AsInt(obj2);
11843 if (PyErr_Occurred()) SWIG_fail;
11844 arg4 = (int) SWIG_AsInt(obj3);
11845 if (PyErr_Occurred()) SWIG_fail;
11846 arg5 = (int) SWIG_AsInt(obj4);
11847 if (PyErr_Occurred()) SWIG_fail;
11848 {
11849 PyThreadState* __tstate = wxPyBeginAllowThreads();
11850 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11851
11852 wxPyEndAllowThreads(__tstate);
11853 if (PyErr_Occurred()) SWIG_fail;
11854 }
11855 Py_INCREF(Py_None); resultobj = Py_None;
11856 return resultobj;
11857 fail:
11858 return NULL;
11859 }
11860
11861
11862 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11863 PyObject *resultobj;
11864 wxDC *arg1 = (wxDC *) 0 ;
11865 wxRect *arg2 = 0 ;
11866 wxRect temp2 ;
11867 PyObject * obj0 = 0 ;
11868 PyObject * obj1 = 0 ;
11869 char *kwnames[] = {
11870 (char *) "self",(char *) "rect", NULL
11871 };
11872
11873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11876 {
11877 arg2 = &temp2;
11878 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11879 }
11880 {
11881 PyThreadState* __tstate = wxPyBeginAllowThreads();
11882 (arg1)->DrawEllipse((wxRect const &)*arg2);
11883
11884 wxPyEndAllowThreads(__tstate);
11885 if (PyErr_Occurred()) SWIG_fail;
11886 }
11887 Py_INCREF(Py_None); resultobj = Py_None;
11888 return resultobj;
11889 fail:
11890 return NULL;
11891 }
11892
11893
11894 static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11895 PyObject *resultobj;
11896 wxDC *arg1 = (wxDC *) 0 ;
11897 wxPoint *arg2 = 0 ;
11898 wxSize *arg3 = 0 ;
11899 wxPoint temp2 ;
11900 wxSize temp3 ;
11901 PyObject * obj0 = 0 ;
11902 PyObject * obj1 = 0 ;
11903 PyObject * obj2 = 0 ;
11904 char *kwnames[] = {
11905 (char *) "self",(char *) "pt",(char *) "sz", NULL
11906 };
11907
11908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11911 {
11912 arg2 = &temp2;
11913 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11914 }
11915 {
11916 arg3 = &temp3;
11917 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11918 }
11919 {
11920 PyThreadState* __tstate = wxPyBeginAllowThreads();
11921 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11922
11923 wxPyEndAllowThreads(__tstate);
11924 if (PyErr_Occurred()) SWIG_fail;
11925 }
11926 Py_INCREF(Py_None); resultobj = Py_None;
11927 return resultobj;
11928 fail:
11929 return NULL;
11930 }
11931
11932
11933 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11934 PyObject *resultobj;
11935 wxDC *arg1 = (wxDC *) 0 ;
11936 wxIcon *arg2 = 0 ;
11937 int arg3 ;
11938 int arg4 ;
11939 PyObject * obj0 = 0 ;
11940 PyObject * obj1 = 0 ;
11941 PyObject * obj2 = 0 ;
11942 PyObject * obj3 = 0 ;
11943 char *kwnames[] = {
11944 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11945 };
11946
11947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11950 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11951 SWIG_POINTER_EXCEPTION | 0)) == -1)
11952 SWIG_fail;
11953 if (arg2 == NULL) {
11954 PyErr_SetString(PyExc_TypeError,"null reference");
11955 SWIG_fail;
11956 }
11957 arg3 = (int) SWIG_AsInt(obj2);
11958 if (PyErr_Occurred()) SWIG_fail;
11959 arg4 = (int) SWIG_AsInt(obj3);
11960 if (PyErr_Occurred()) SWIG_fail;
11961 {
11962 PyThreadState* __tstate = wxPyBeginAllowThreads();
11963 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11964
11965 wxPyEndAllowThreads(__tstate);
11966 if (PyErr_Occurred()) SWIG_fail;
11967 }
11968 Py_INCREF(Py_None); resultobj = Py_None;
11969 return resultobj;
11970 fail:
11971 return NULL;
11972 }
11973
11974
11975 static PyObject *_wrap_DC_DrawIconPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11976 PyObject *resultobj;
11977 wxDC *arg1 = (wxDC *) 0 ;
11978 wxIcon *arg2 = 0 ;
11979 wxPoint *arg3 = 0 ;
11980 wxPoint temp3 ;
11981 PyObject * obj0 = 0 ;
11982 PyObject * obj1 = 0 ;
11983 PyObject * obj2 = 0 ;
11984 char *kwnames[] = {
11985 (char *) "self",(char *) "icon",(char *) "pt", NULL
11986 };
11987
11988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11991 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11992 SWIG_POINTER_EXCEPTION | 0)) == -1)
11993 SWIG_fail;
11994 if (arg2 == NULL) {
11995 PyErr_SetString(PyExc_TypeError,"null reference");
11996 SWIG_fail;
11997 }
11998 {
11999 arg3 = &temp3;
12000 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12001 }
12002 {
12003 PyThreadState* __tstate = wxPyBeginAllowThreads();
12004 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
12005
12006 wxPyEndAllowThreads(__tstate);
12007 if (PyErr_Occurred()) SWIG_fail;
12008 }
12009 Py_INCREF(Py_None); resultobj = Py_None;
12010 return resultobj;
12011 fail:
12012 return NULL;
12013 }
12014
12015
12016 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
12017 PyObject *resultobj;
12018 wxDC *arg1 = (wxDC *) 0 ;
12019 wxBitmap *arg2 = 0 ;
12020 int arg3 ;
12021 int arg4 ;
12022 bool arg5 = (bool) False ;
12023 PyObject * obj0 = 0 ;
12024 PyObject * obj1 = 0 ;
12025 PyObject * obj2 = 0 ;
12026 PyObject * obj3 = 0 ;
12027 PyObject * obj4 = 0 ;
12028 char *kwnames[] = {
12029 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
12030 };
12031
12032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12035 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
12036 SWIG_POINTER_EXCEPTION | 0)) == -1)
12037 SWIG_fail;
12038 if (arg2 == NULL) {
12039 PyErr_SetString(PyExc_TypeError,"null reference");
12040 SWIG_fail;
12041 }
12042 arg3 = (int) SWIG_AsInt(obj2);
12043 if (PyErr_Occurred()) SWIG_fail;
12044 arg4 = (int) SWIG_AsInt(obj3);
12045 if (PyErr_Occurred()) SWIG_fail;
12046 if (obj4) {
12047 arg5 = (bool) SWIG_AsBool(obj4);
12048 if (PyErr_Occurred()) SWIG_fail;
12049 }
12050 {
12051 PyThreadState* __tstate = wxPyBeginAllowThreads();
12052 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
12053
12054 wxPyEndAllowThreads(__tstate);
12055 if (PyErr_Occurred()) SWIG_fail;
12056 }
12057 Py_INCREF(Py_None); resultobj = Py_None;
12058 return resultobj;
12059 fail:
12060 return NULL;
12061 }
12062
12063
12064 static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
12065 PyObject *resultobj;
12066 wxDC *arg1 = (wxDC *) 0 ;
12067 wxBitmap *arg2 = 0 ;
12068 wxPoint *arg3 = 0 ;
12069 bool arg4 = (bool) False ;
12070 wxPoint temp3 ;
12071 PyObject * obj0 = 0 ;
12072 PyObject * obj1 = 0 ;
12073 PyObject * obj2 = 0 ;
12074 PyObject * obj3 = 0 ;
12075 char *kwnames[] = {
12076 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
12077 };
12078
12079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12082 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
12083 SWIG_POINTER_EXCEPTION | 0)) == -1)
12084 SWIG_fail;
12085 if (arg2 == NULL) {
12086 PyErr_SetString(PyExc_TypeError,"null reference");
12087 SWIG_fail;
12088 }
12089 {
12090 arg3 = &temp3;
12091 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12092 }
12093 if (obj3) {
12094 arg4 = (bool) SWIG_AsBool(obj3);
12095 if (PyErr_Occurred()) SWIG_fail;
12096 }
12097 {
12098 PyThreadState* __tstate = wxPyBeginAllowThreads();
12099 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
12100
12101 wxPyEndAllowThreads(__tstate);
12102 if (PyErr_Occurred()) SWIG_fail;
12103 }
12104 Py_INCREF(Py_None); resultobj = Py_None;
12105 return resultobj;
12106 fail:
12107 return NULL;
12108 }
12109
12110
12111 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
12112 PyObject *resultobj;
12113 wxDC *arg1 = (wxDC *) 0 ;
12114 wxString *arg2 = 0 ;
12115 int arg3 ;
12116 int arg4 ;
12117 bool temp2 = False ;
12118 PyObject * obj0 = 0 ;
12119 PyObject * obj1 = 0 ;
12120 PyObject * obj2 = 0 ;
12121 PyObject * obj3 = 0 ;
12122 char *kwnames[] = {
12123 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
12124 };
12125
12126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12129 {
12130 arg2 = wxString_in_helper(obj1);
12131 if (arg2 == NULL) SWIG_fail;
12132 temp2 = True;
12133 }
12134 arg3 = (int) SWIG_AsInt(obj2);
12135 if (PyErr_Occurred()) SWIG_fail;
12136 arg4 = (int) SWIG_AsInt(obj3);
12137 if (PyErr_Occurred()) SWIG_fail;
12138 {
12139 PyThreadState* __tstate = wxPyBeginAllowThreads();
12140 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
12141
12142 wxPyEndAllowThreads(__tstate);
12143 if (PyErr_Occurred()) SWIG_fail;
12144 }
12145 Py_INCREF(Py_None); resultobj = Py_None;
12146 {
12147 if (temp2)
12148 delete arg2;
12149 }
12150 return resultobj;
12151 fail:
12152 {
12153 if (temp2)
12154 delete arg2;
12155 }
12156 return NULL;
12157 }
12158
12159
12160 static PyObject *_wrap_DC_DrawTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
12161 PyObject *resultobj;
12162 wxDC *arg1 = (wxDC *) 0 ;
12163 wxString *arg2 = 0 ;
12164 wxPoint *arg3 = 0 ;
12165 bool temp2 = False ;
12166 wxPoint temp3 ;
12167 PyObject * obj0 = 0 ;
12168 PyObject * obj1 = 0 ;
12169 PyObject * obj2 = 0 ;
12170 char *kwnames[] = {
12171 (char *) "self",(char *) "text",(char *) "pt", NULL
12172 };
12173
12174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
12175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12177 {
12178 arg2 = wxString_in_helper(obj1);
12179 if (arg2 == NULL) SWIG_fail;
12180 temp2 = True;
12181 }
12182 {
12183 arg3 = &temp3;
12184 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12185 }
12186 {
12187 PyThreadState* __tstate = wxPyBeginAllowThreads();
12188 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
12189
12190 wxPyEndAllowThreads(__tstate);
12191 if (PyErr_Occurred()) SWIG_fail;
12192 }
12193 Py_INCREF(Py_None); resultobj = Py_None;
12194 {
12195 if (temp2)
12196 delete arg2;
12197 }
12198 return resultobj;
12199 fail:
12200 {
12201 if (temp2)
12202 delete arg2;
12203 }
12204 return NULL;
12205 }
12206
12207
12208 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
12209 PyObject *resultobj;
12210 wxDC *arg1 = (wxDC *) 0 ;
12211 wxString *arg2 = 0 ;
12212 int arg3 ;
12213 int arg4 ;
12214 double arg5 ;
12215 bool temp2 = False ;
12216 PyObject * obj0 = 0 ;
12217 PyObject * obj1 = 0 ;
12218 PyObject * obj2 = 0 ;
12219 PyObject * obj3 = 0 ;
12220 PyObject * obj4 = 0 ;
12221 char *kwnames[] = {
12222 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
12223 };
12224
12225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12228 {
12229 arg2 = wxString_in_helper(obj1);
12230 if (arg2 == NULL) SWIG_fail;
12231 temp2 = True;
12232 }
12233 arg3 = (int) SWIG_AsInt(obj2);
12234 if (PyErr_Occurred()) SWIG_fail;
12235 arg4 = (int) SWIG_AsInt(obj3);
12236 if (PyErr_Occurred()) SWIG_fail;
12237 arg5 = (double) SWIG_AsDouble(obj4);
12238 if (PyErr_Occurred()) SWIG_fail;
12239 {
12240 PyThreadState* __tstate = wxPyBeginAllowThreads();
12241 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
12242
12243 wxPyEndAllowThreads(__tstate);
12244 if (PyErr_Occurred()) SWIG_fail;
12245 }
12246 Py_INCREF(Py_None); resultobj = Py_None;
12247 {
12248 if (temp2)
12249 delete arg2;
12250 }
12251 return resultobj;
12252 fail:
12253 {
12254 if (temp2)
12255 delete arg2;
12256 }
12257 return NULL;
12258 }
12259
12260
12261 static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
12262 PyObject *resultobj;
12263 wxDC *arg1 = (wxDC *) 0 ;
12264 wxString *arg2 = 0 ;
12265 wxPoint *arg3 = 0 ;
12266 double arg4 ;
12267 bool temp2 = False ;
12268 wxPoint temp3 ;
12269 PyObject * obj0 = 0 ;
12270 PyObject * obj1 = 0 ;
12271 PyObject * obj2 = 0 ;
12272 PyObject * obj3 = 0 ;
12273 char *kwnames[] = {
12274 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
12275 };
12276
12277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12280 {
12281 arg2 = wxString_in_helper(obj1);
12282 if (arg2 == NULL) SWIG_fail;
12283 temp2 = True;
12284 }
12285 {
12286 arg3 = &temp3;
12287 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12288 }
12289 arg4 = (double) SWIG_AsDouble(obj3);
12290 if (PyErr_Occurred()) SWIG_fail;
12291 {
12292 PyThreadState* __tstate = wxPyBeginAllowThreads();
12293 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
12294
12295 wxPyEndAllowThreads(__tstate);
12296 if (PyErr_Occurred()) SWIG_fail;
12297 }
12298 Py_INCREF(Py_None); resultobj = Py_None;
12299 {
12300 if (temp2)
12301 delete arg2;
12302 }
12303 return resultobj;
12304 fail:
12305 {
12306 if (temp2)
12307 delete arg2;
12308 }
12309 return NULL;
12310 }
12311
12312
12313 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
12314 PyObject *resultobj;
12315 wxDC *arg1 = (wxDC *) 0 ;
12316 int arg2 ;
12317 int arg3 ;
12318 int arg4 ;
12319 int arg5 ;
12320 wxDC *arg6 = (wxDC *) 0 ;
12321 int arg7 ;
12322 int arg8 ;
12323 int arg9 = (int) wxCOPY ;
12324 bool arg10 = (bool) False ;
12325 int arg11 = (int) -1 ;
12326 int arg12 = (int) -1 ;
12327 bool result;
12328 PyObject * obj0 = 0 ;
12329 PyObject * obj1 = 0 ;
12330 PyObject * obj2 = 0 ;
12331 PyObject * obj3 = 0 ;
12332 PyObject * obj4 = 0 ;
12333 PyObject * obj5 = 0 ;
12334 PyObject * obj6 = 0 ;
12335 PyObject * obj7 = 0 ;
12336 PyObject * obj8 = 0 ;
12337 PyObject * obj9 = 0 ;
12338 PyObject * obj10 = 0 ;
12339 PyObject * obj11 = 0 ;
12340 char *kwnames[] = {
12341 (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
12342 };
12343
12344 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;
12345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12347 arg2 = (int) SWIG_AsInt(obj1);
12348 if (PyErr_Occurred()) SWIG_fail;
12349 arg3 = (int) SWIG_AsInt(obj2);
12350 if (PyErr_Occurred()) SWIG_fail;
12351 arg4 = (int) SWIG_AsInt(obj3);
12352 if (PyErr_Occurred()) SWIG_fail;
12353 arg5 = (int) SWIG_AsInt(obj4);
12354 if (PyErr_Occurred()) SWIG_fail;
12355 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
12356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12357 arg7 = (int) SWIG_AsInt(obj6);
12358 if (PyErr_Occurred()) SWIG_fail;
12359 arg8 = (int) SWIG_AsInt(obj7);
12360 if (PyErr_Occurred()) SWIG_fail;
12361 if (obj8) {
12362 arg9 = (int) SWIG_AsInt(obj8);
12363 if (PyErr_Occurred()) SWIG_fail;
12364 }
12365 if (obj9) {
12366 arg10 = (bool) SWIG_AsBool(obj9);
12367 if (PyErr_Occurred()) SWIG_fail;
12368 }
12369 if (obj10) {
12370 arg11 = (int) SWIG_AsInt(obj10);
12371 if (PyErr_Occurred()) SWIG_fail;
12372 }
12373 if (obj11) {
12374 arg12 = (int) SWIG_AsInt(obj11);
12375 if (PyErr_Occurred()) SWIG_fail;
12376 }
12377 {
12378 PyThreadState* __tstate = wxPyBeginAllowThreads();
12379 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12380
12381 wxPyEndAllowThreads(__tstate);
12382 if (PyErr_Occurred()) SWIG_fail;
12383 }
12384 {
12385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12386 }
12387 return resultobj;
12388 fail:
12389 return NULL;
12390 }
12391
12392
12393 static PyObject *_wrap_DC_BlitPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12394 PyObject *resultobj;
12395 wxDC *arg1 = (wxDC *) 0 ;
12396 wxPoint *arg2 = 0 ;
12397 wxSize *arg3 = 0 ;
12398 wxDC *arg4 = (wxDC *) 0 ;
12399 wxPoint *arg5 = 0 ;
12400 int arg6 = (int) wxCOPY ;
12401 bool arg7 = (bool) False ;
12402 wxPoint const &arg8_defvalue = wxDefaultPosition ;
12403 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
12404 bool result;
12405 wxPoint temp2 ;
12406 wxSize temp3 ;
12407 wxPoint temp5 ;
12408 wxPoint temp8 ;
12409 PyObject * obj0 = 0 ;
12410 PyObject * obj1 = 0 ;
12411 PyObject * obj2 = 0 ;
12412 PyObject * obj3 = 0 ;
12413 PyObject * obj4 = 0 ;
12414 PyObject * obj5 = 0 ;
12415 PyObject * obj6 = 0 ;
12416 PyObject * obj7 = 0 ;
12417 char *kwnames[] = {
12418 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12419 };
12420
12421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12424 {
12425 arg2 = &temp2;
12426 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12427 }
12428 {
12429 arg3 = &temp3;
12430 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12431 }
12432 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
12433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12434 {
12435 arg5 = &temp5;
12436 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12437 }
12438 if (obj5) {
12439 arg6 = (int) SWIG_AsInt(obj5);
12440 if (PyErr_Occurred()) SWIG_fail;
12441 }
12442 if (obj6) {
12443 arg7 = (bool) SWIG_AsBool(obj6);
12444 if (PyErr_Occurred()) SWIG_fail;
12445 }
12446 if (obj7) {
12447 {
12448 arg8 = &temp8;
12449 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
12450 }
12451 }
12452 {
12453 PyThreadState* __tstate = wxPyBeginAllowThreads();
12454 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12455
12456 wxPyEndAllowThreads(__tstate);
12457 if (PyErr_Occurred()) SWIG_fail;
12458 }
12459 {
12460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12461 }
12462 return resultobj;
12463 fail:
12464 return NULL;
12465 }
12466
12467
12468 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12469 PyObject *resultobj;
12470 wxDC *arg1 = (wxDC *) 0 ;
12471 int arg2 ;
12472 int arg3 ;
12473 int arg4 ;
12474 int arg5 ;
12475 PyObject * obj0 = 0 ;
12476 PyObject * obj1 = 0 ;
12477 PyObject * obj2 = 0 ;
12478 PyObject * obj3 = 0 ;
12479 PyObject * obj4 = 0 ;
12480 char *kwnames[] = {
12481 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12482 };
12483
12484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12487 arg2 = (int) SWIG_AsInt(obj1);
12488 if (PyErr_Occurred()) SWIG_fail;
12489 arg3 = (int) SWIG_AsInt(obj2);
12490 if (PyErr_Occurred()) SWIG_fail;
12491 arg4 = (int) SWIG_AsInt(obj3);
12492 if (PyErr_Occurred()) SWIG_fail;
12493 arg5 = (int) SWIG_AsInt(obj4);
12494 if (PyErr_Occurred()) SWIG_fail;
12495 {
12496 PyThreadState* __tstate = wxPyBeginAllowThreads();
12497 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12498
12499 wxPyEndAllowThreads(__tstate);
12500 if (PyErr_Occurred()) SWIG_fail;
12501 }
12502 Py_INCREF(Py_None); resultobj = Py_None;
12503 return resultobj;
12504 fail:
12505 return NULL;
12506 }
12507
12508
12509 static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12510 PyObject *resultobj;
12511 wxDC *arg1 = (wxDC *) 0 ;
12512 wxPoint *arg2 = 0 ;
12513 wxSize *arg3 = 0 ;
12514 wxPoint temp2 ;
12515 wxSize temp3 ;
12516 PyObject * obj0 = 0 ;
12517 PyObject * obj1 = 0 ;
12518 PyObject * obj2 = 0 ;
12519 char *kwnames[] = {
12520 (char *) "self",(char *) "pt",(char *) "sz", NULL
12521 };
12522
12523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12526 {
12527 arg2 = &temp2;
12528 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12529 }
12530 {
12531 arg3 = &temp3;
12532 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12533 }
12534 {
12535 PyThreadState* __tstate = wxPyBeginAllowThreads();
12536 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12537
12538 wxPyEndAllowThreads(__tstate);
12539 if (PyErr_Occurred()) SWIG_fail;
12540 }
12541 Py_INCREF(Py_None); resultobj = Py_None;
12542 return resultobj;
12543 fail:
12544 return NULL;
12545 }
12546
12547
12548 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12549 PyObject *resultobj;
12550 wxDC *arg1 = (wxDC *) 0 ;
12551 wxRegion *arg2 = 0 ;
12552 PyObject * obj0 = 0 ;
12553 PyObject * obj1 = 0 ;
12554 char *kwnames[] = {
12555 (char *) "self",(char *) "region", NULL
12556 };
12557
12558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12561 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12562 SWIG_POINTER_EXCEPTION | 0)) == -1)
12563 SWIG_fail;
12564 if (arg2 == NULL) {
12565 PyErr_SetString(PyExc_TypeError,"null reference");
12566 SWIG_fail;
12567 }
12568 {
12569 PyThreadState* __tstate = wxPyBeginAllowThreads();
12570 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12571
12572 wxPyEndAllowThreads(__tstate);
12573 if (PyErr_Occurred()) SWIG_fail;
12574 }
12575 Py_INCREF(Py_None); resultobj = Py_None;
12576 return resultobj;
12577 fail:
12578 return NULL;
12579 }
12580
12581
12582 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12583 PyObject *resultobj;
12584 wxDC *arg1 = (wxDC *) 0 ;
12585 wxRect *arg2 = 0 ;
12586 wxRect temp2 ;
12587 PyObject * obj0 = 0 ;
12588 PyObject * obj1 = 0 ;
12589 char *kwnames[] = {
12590 (char *) "self",(char *) "rect", NULL
12591 };
12592
12593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12596 {
12597 arg2 = &temp2;
12598 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12599 }
12600 {
12601 PyThreadState* __tstate = wxPyBeginAllowThreads();
12602 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12603
12604 wxPyEndAllowThreads(__tstate);
12605 if (PyErr_Occurred()) SWIG_fail;
12606 }
12607 Py_INCREF(Py_None); resultobj = Py_None;
12608 return resultobj;
12609 fail:
12610 return NULL;
12611 }
12612
12613
12614 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12615 PyObject *resultobj;
12616 wxDC *arg1 = (wxDC *) 0 ;
12617 int arg2 ;
12618 wxPoint *arg3 = (wxPoint *) 0 ;
12619 int arg4 = (int) 0 ;
12620 int arg5 = (int) 0 ;
12621 PyObject * obj0 = 0 ;
12622 PyObject * obj1 = 0 ;
12623 PyObject * obj2 = 0 ;
12624 PyObject * obj3 = 0 ;
12625 char *kwnames[] = {
12626 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12627 };
12628
12629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12632 {
12633 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12634 if (arg3 == NULL) SWIG_fail;
12635 }
12636 if (obj2) {
12637 arg4 = (int) SWIG_AsInt(obj2);
12638 if (PyErr_Occurred()) SWIG_fail;
12639 }
12640 if (obj3) {
12641 arg5 = (int) SWIG_AsInt(obj3);
12642 if (PyErr_Occurred()) SWIG_fail;
12643 }
12644 {
12645 PyThreadState* __tstate = wxPyBeginAllowThreads();
12646 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12647
12648 wxPyEndAllowThreads(__tstate);
12649 if (PyErr_Occurred()) SWIG_fail;
12650 }
12651 Py_INCREF(Py_None); resultobj = Py_None;
12652 {
12653 if (arg3) delete [] arg3;
12654 }
12655 return resultobj;
12656 fail:
12657 {
12658 if (arg3) delete [] arg3;
12659 }
12660 return NULL;
12661 }
12662
12663
12664 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12665 PyObject *resultobj;
12666 wxDC *arg1 = (wxDC *) 0 ;
12667 int arg2 ;
12668 wxPoint *arg3 = (wxPoint *) 0 ;
12669 int arg4 = (int) 0 ;
12670 int arg5 = (int) 0 ;
12671 int arg6 = (int) wxODDEVEN_RULE ;
12672 PyObject * obj0 = 0 ;
12673 PyObject * obj1 = 0 ;
12674 PyObject * obj2 = 0 ;
12675 PyObject * obj3 = 0 ;
12676 PyObject * obj4 = 0 ;
12677 char *kwnames[] = {
12678 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12679 };
12680
12681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12684 {
12685 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12686 if (arg3 == NULL) SWIG_fail;
12687 }
12688 if (obj2) {
12689 arg4 = (int) SWIG_AsInt(obj2);
12690 if (PyErr_Occurred()) SWIG_fail;
12691 }
12692 if (obj3) {
12693 arg5 = (int) SWIG_AsInt(obj3);
12694 if (PyErr_Occurred()) SWIG_fail;
12695 }
12696 if (obj4) {
12697 arg6 = (int) SWIG_AsInt(obj4);
12698 if (PyErr_Occurred()) SWIG_fail;
12699 }
12700 {
12701 PyThreadState* __tstate = wxPyBeginAllowThreads();
12702 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12703
12704 wxPyEndAllowThreads(__tstate);
12705 if (PyErr_Occurred()) SWIG_fail;
12706 }
12707 Py_INCREF(Py_None); resultobj = Py_None;
12708 {
12709 if (arg3) delete [] arg3;
12710 }
12711 return resultobj;
12712 fail:
12713 {
12714 if (arg3) delete [] arg3;
12715 }
12716 return NULL;
12717 }
12718
12719
12720 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12721 PyObject *resultobj;
12722 wxDC *arg1 = (wxDC *) 0 ;
12723 wxString *arg2 = 0 ;
12724 wxRect *arg3 = 0 ;
12725 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12726 int arg5 = (int) -1 ;
12727 bool temp2 = False ;
12728 wxRect temp3 ;
12729 PyObject * obj0 = 0 ;
12730 PyObject * obj1 = 0 ;
12731 PyObject * obj2 = 0 ;
12732 PyObject * obj3 = 0 ;
12733 PyObject * obj4 = 0 ;
12734 char *kwnames[] = {
12735 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12736 };
12737
12738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12741 {
12742 arg2 = wxString_in_helper(obj1);
12743 if (arg2 == NULL) SWIG_fail;
12744 temp2 = True;
12745 }
12746 {
12747 arg3 = &temp3;
12748 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12749 }
12750 if (obj3) {
12751 arg4 = (int) SWIG_AsInt(obj3);
12752 if (PyErr_Occurred()) SWIG_fail;
12753 }
12754 if (obj4) {
12755 arg5 = (int) SWIG_AsInt(obj4);
12756 if (PyErr_Occurred()) SWIG_fail;
12757 }
12758 {
12759 PyThreadState* __tstate = wxPyBeginAllowThreads();
12760 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12761
12762 wxPyEndAllowThreads(__tstate);
12763 if (PyErr_Occurred()) SWIG_fail;
12764 }
12765 Py_INCREF(Py_None); resultobj = Py_None;
12766 {
12767 if (temp2)
12768 delete arg2;
12769 }
12770 return resultobj;
12771 fail:
12772 {
12773 if (temp2)
12774 delete arg2;
12775 }
12776 return NULL;
12777 }
12778
12779
12780 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12781 PyObject *resultobj;
12782 wxDC *arg1 = (wxDC *) 0 ;
12783 wxString *arg2 = 0 ;
12784 wxBitmap *arg3 = 0 ;
12785 wxRect *arg4 = 0 ;
12786 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12787 int arg6 = (int) -1 ;
12788 wxRect result;
12789 bool temp2 = False ;
12790 wxRect temp4 ;
12791 PyObject * obj0 = 0 ;
12792 PyObject * obj1 = 0 ;
12793 PyObject * obj2 = 0 ;
12794 PyObject * obj3 = 0 ;
12795 PyObject * obj4 = 0 ;
12796 PyObject * obj5 = 0 ;
12797 char *kwnames[] = {
12798 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12799 };
12800
12801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12804 {
12805 arg2 = wxString_in_helper(obj1);
12806 if (arg2 == NULL) SWIG_fail;
12807 temp2 = True;
12808 }
12809 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12810 SWIG_POINTER_EXCEPTION | 0)) == -1)
12811 SWIG_fail;
12812 if (arg3 == NULL) {
12813 PyErr_SetString(PyExc_TypeError,"null reference");
12814 SWIG_fail;
12815 }
12816 {
12817 arg4 = &temp4;
12818 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12819 }
12820 if (obj4) {
12821 arg5 = (int) SWIG_AsInt(obj4);
12822 if (PyErr_Occurred()) SWIG_fail;
12823 }
12824 if (obj5) {
12825 arg6 = (int) SWIG_AsInt(obj5);
12826 if (PyErr_Occurred()) SWIG_fail;
12827 }
12828 {
12829 PyThreadState* __tstate = wxPyBeginAllowThreads();
12830 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12831
12832 wxPyEndAllowThreads(__tstate);
12833 if (PyErr_Occurred()) SWIG_fail;
12834 }
12835 {
12836 wxRect * resultptr;
12837 resultptr = new wxRect((wxRect &) result);
12838 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12839 }
12840 {
12841 if (temp2)
12842 delete arg2;
12843 }
12844 return resultobj;
12845 fail:
12846 {
12847 if (temp2)
12848 delete arg2;
12849 }
12850 return NULL;
12851 }
12852
12853
12854 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12855 PyObject *resultobj;
12856 wxDC *arg1 = (wxDC *) 0 ;
12857 int arg2 ;
12858 wxPoint *arg3 = (wxPoint *) 0 ;
12859 PyObject * obj0 = 0 ;
12860 PyObject * obj1 = 0 ;
12861 char *kwnames[] = {
12862 (char *) "self",(char *) "points", NULL
12863 };
12864
12865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12868 {
12869 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12870 if (arg3 == NULL) SWIG_fail;
12871 }
12872 {
12873 PyThreadState* __tstate = wxPyBeginAllowThreads();
12874 (arg1)->DrawSpline(arg2,arg3);
12875
12876 wxPyEndAllowThreads(__tstate);
12877 if (PyErr_Occurred()) SWIG_fail;
12878 }
12879 Py_INCREF(Py_None); resultobj = Py_None;
12880 {
12881 if (arg3) delete [] arg3;
12882 }
12883 return resultobj;
12884 fail:
12885 {
12886 if (arg3) delete [] arg3;
12887 }
12888 return NULL;
12889 }
12890
12891
12892 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12893 PyObject *resultobj;
12894 wxDC *arg1 = (wxDC *) 0 ;
12895 PyObject * obj0 = 0 ;
12896 char *kwnames[] = {
12897 (char *) "self", NULL
12898 };
12899
12900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12903 {
12904 PyThreadState* __tstate = wxPyBeginAllowThreads();
12905 (arg1)->Clear();
12906
12907 wxPyEndAllowThreads(__tstate);
12908 if (PyErr_Occurred()) SWIG_fail;
12909 }
12910 Py_INCREF(Py_None); resultobj = Py_None;
12911 return resultobj;
12912 fail:
12913 return NULL;
12914 }
12915
12916
12917 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12918 PyObject *resultobj;
12919 wxDC *arg1 = (wxDC *) 0 ;
12920 wxString *arg2 = 0 ;
12921 bool result;
12922 bool temp2 = False ;
12923 PyObject * obj0 = 0 ;
12924 PyObject * obj1 = 0 ;
12925 char *kwnames[] = {
12926 (char *) "self",(char *) "message", NULL
12927 };
12928
12929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12932 {
12933 arg2 = wxString_in_helper(obj1);
12934 if (arg2 == NULL) SWIG_fail;
12935 temp2 = True;
12936 }
12937 {
12938 PyThreadState* __tstate = wxPyBeginAllowThreads();
12939 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12940
12941 wxPyEndAllowThreads(__tstate);
12942 if (PyErr_Occurred()) SWIG_fail;
12943 }
12944 {
12945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12946 }
12947 {
12948 if (temp2)
12949 delete arg2;
12950 }
12951 return resultobj;
12952 fail:
12953 {
12954 if (temp2)
12955 delete arg2;
12956 }
12957 return NULL;
12958 }
12959
12960
12961 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12962 PyObject *resultobj;
12963 wxDC *arg1 = (wxDC *) 0 ;
12964 PyObject * obj0 = 0 ;
12965 char *kwnames[] = {
12966 (char *) "self", NULL
12967 };
12968
12969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12972 {
12973 PyThreadState* __tstate = wxPyBeginAllowThreads();
12974 (arg1)->EndDoc();
12975
12976 wxPyEndAllowThreads(__tstate);
12977 if (PyErr_Occurred()) SWIG_fail;
12978 }
12979 Py_INCREF(Py_None); resultobj = Py_None;
12980 return resultobj;
12981 fail:
12982 return NULL;
12983 }
12984
12985
12986 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12987 PyObject *resultobj;
12988 wxDC *arg1 = (wxDC *) 0 ;
12989 PyObject * obj0 = 0 ;
12990 char *kwnames[] = {
12991 (char *) "self", NULL
12992 };
12993
12994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12997 {
12998 PyThreadState* __tstate = wxPyBeginAllowThreads();
12999 (arg1)->StartPage();
13000
13001 wxPyEndAllowThreads(__tstate);
13002 if (PyErr_Occurred()) SWIG_fail;
13003 }
13004 Py_INCREF(Py_None); resultobj = Py_None;
13005 return resultobj;
13006 fail:
13007 return NULL;
13008 }
13009
13010
13011 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13012 PyObject *resultobj;
13013 wxDC *arg1 = (wxDC *) 0 ;
13014 PyObject * obj0 = 0 ;
13015 char *kwnames[] = {
13016 (char *) "self", NULL
13017 };
13018
13019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
13020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13022 {
13023 PyThreadState* __tstate = wxPyBeginAllowThreads();
13024 (arg1)->EndPage();
13025
13026 wxPyEndAllowThreads(__tstate);
13027 if (PyErr_Occurred()) SWIG_fail;
13028 }
13029 Py_INCREF(Py_None); resultobj = Py_None;
13030 return resultobj;
13031 fail:
13032 return NULL;
13033 }
13034
13035
13036 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13037 PyObject *resultobj;
13038 wxDC *arg1 = (wxDC *) 0 ;
13039 wxFont *arg2 = 0 ;
13040 PyObject * obj0 = 0 ;
13041 PyObject * obj1 = 0 ;
13042 char *kwnames[] = {
13043 (char *) "self",(char *) "font", NULL
13044 };
13045
13046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
13047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13049 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
13050 SWIG_POINTER_EXCEPTION | 0)) == -1)
13051 SWIG_fail;
13052 if (arg2 == NULL) {
13053 PyErr_SetString(PyExc_TypeError,"null reference");
13054 SWIG_fail;
13055 }
13056 {
13057 PyThreadState* __tstate = wxPyBeginAllowThreads();
13058 (arg1)->SetFont((wxFont const &)*arg2);
13059
13060 wxPyEndAllowThreads(__tstate);
13061 if (PyErr_Occurred()) SWIG_fail;
13062 }
13063 Py_INCREF(Py_None); resultobj = Py_None;
13064 return resultobj;
13065 fail:
13066 return NULL;
13067 }
13068
13069
13070 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13071 PyObject *resultobj;
13072 wxDC *arg1 = (wxDC *) 0 ;
13073 wxPen *arg2 = 0 ;
13074 PyObject * obj0 = 0 ;
13075 PyObject * obj1 = 0 ;
13076 char *kwnames[] = {
13077 (char *) "self",(char *) "pen", NULL
13078 };
13079
13080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
13081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13083 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
13084 SWIG_POINTER_EXCEPTION | 0)) == -1)
13085 SWIG_fail;
13086 if (arg2 == NULL) {
13087 PyErr_SetString(PyExc_TypeError,"null reference");
13088 SWIG_fail;
13089 }
13090 {
13091 PyThreadState* __tstate = wxPyBeginAllowThreads();
13092 (arg1)->SetPen((wxPen const &)*arg2);
13093
13094 wxPyEndAllowThreads(__tstate);
13095 if (PyErr_Occurred()) SWIG_fail;
13096 }
13097 Py_INCREF(Py_None); resultobj = Py_None;
13098 return resultobj;
13099 fail:
13100 return NULL;
13101 }
13102
13103
13104 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13105 PyObject *resultobj;
13106 wxDC *arg1 = (wxDC *) 0 ;
13107 wxBrush *arg2 = 0 ;
13108 PyObject * obj0 = 0 ;
13109 PyObject * obj1 = 0 ;
13110 char *kwnames[] = {
13111 (char *) "self",(char *) "brush", NULL
13112 };
13113
13114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
13115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13117 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13118 SWIG_POINTER_EXCEPTION | 0)) == -1)
13119 SWIG_fail;
13120 if (arg2 == NULL) {
13121 PyErr_SetString(PyExc_TypeError,"null reference");
13122 SWIG_fail;
13123 }
13124 {
13125 PyThreadState* __tstate = wxPyBeginAllowThreads();
13126 (arg1)->SetBrush((wxBrush const &)*arg2);
13127
13128 wxPyEndAllowThreads(__tstate);
13129 if (PyErr_Occurred()) SWIG_fail;
13130 }
13131 Py_INCREF(Py_None); resultobj = Py_None;
13132 return resultobj;
13133 fail:
13134 return NULL;
13135 }
13136
13137
13138 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13139 PyObject *resultobj;
13140 wxDC *arg1 = (wxDC *) 0 ;
13141 wxBrush *arg2 = 0 ;
13142 PyObject * obj0 = 0 ;
13143 PyObject * obj1 = 0 ;
13144 char *kwnames[] = {
13145 (char *) "self",(char *) "brush", NULL
13146 };
13147
13148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
13149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13151 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13152 SWIG_POINTER_EXCEPTION | 0)) == -1)
13153 SWIG_fail;
13154 if (arg2 == NULL) {
13155 PyErr_SetString(PyExc_TypeError,"null reference");
13156 SWIG_fail;
13157 }
13158 {
13159 PyThreadState* __tstate = wxPyBeginAllowThreads();
13160 (arg1)->SetBackground((wxBrush const &)*arg2);
13161
13162 wxPyEndAllowThreads(__tstate);
13163 if (PyErr_Occurred()) SWIG_fail;
13164 }
13165 Py_INCREF(Py_None); resultobj = Py_None;
13166 return resultobj;
13167 fail:
13168 return NULL;
13169 }
13170
13171
13172 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13173 PyObject *resultobj;
13174 wxDC *arg1 = (wxDC *) 0 ;
13175 int arg2 ;
13176 PyObject * obj0 = 0 ;
13177 PyObject * obj1 = 0 ;
13178 char *kwnames[] = {
13179 (char *) "self",(char *) "mode", NULL
13180 };
13181
13182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
13183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13185 arg2 = (int) SWIG_AsInt(obj1);
13186 if (PyErr_Occurred()) SWIG_fail;
13187 {
13188 PyThreadState* __tstate = wxPyBeginAllowThreads();
13189 (arg1)->SetBackgroundMode(arg2);
13190
13191 wxPyEndAllowThreads(__tstate);
13192 if (PyErr_Occurred()) SWIG_fail;
13193 }
13194 Py_INCREF(Py_None); resultobj = Py_None;
13195 return resultobj;
13196 fail:
13197 return NULL;
13198 }
13199
13200
13201 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
13202 PyObject *resultobj;
13203 wxDC *arg1 = (wxDC *) 0 ;
13204 wxPalette *arg2 = 0 ;
13205 PyObject * obj0 = 0 ;
13206 PyObject * obj1 = 0 ;
13207 char *kwnames[] = {
13208 (char *) "self",(char *) "palette", NULL
13209 };
13210
13211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
13212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13214 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
13215 SWIG_POINTER_EXCEPTION | 0)) == -1)
13216 SWIG_fail;
13217 if (arg2 == NULL) {
13218 PyErr_SetString(PyExc_TypeError,"null reference");
13219 SWIG_fail;
13220 }
13221 {
13222 PyThreadState* __tstate = wxPyBeginAllowThreads();
13223 (arg1)->SetPalette((wxPalette const &)*arg2);
13224
13225 wxPyEndAllowThreads(__tstate);
13226 if (PyErr_Occurred()) SWIG_fail;
13227 }
13228 Py_INCREF(Py_None); resultobj = Py_None;
13229 return resultobj;
13230 fail:
13231 return NULL;
13232 }
13233
13234
13235 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
13236 PyObject *resultobj;
13237 wxDC *arg1 = (wxDC *) 0 ;
13238 PyObject * obj0 = 0 ;
13239 char *kwnames[] = {
13240 (char *) "self", NULL
13241 };
13242
13243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
13244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13246 {
13247 PyThreadState* __tstate = wxPyBeginAllowThreads();
13248 (arg1)->DestroyClippingRegion();
13249
13250 wxPyEndAllowThreads(__tstate);
13251 if (PyErr_Occurred()) SWIG_fail;
13252 }
13253 Py_INCREF(Py_None); resultobj = Py_None;
13254 return resultobj;
13255 fail:
13256 return NULL;
13257 }
13258
13259
13260 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
13261 PyObject *resultobj;
13262 wxDC *arg1 = (wxDC *) 0 ;
13263 int *arg2 = (int *) 0 ;
13264 int *arg3 = (int *) 0 ;
13265 int *arg4 = (int *) 0 ;
13266 int *arg5 = (int *) 0 ;
13267 int temp2 ;
13268 int temp3 ;
13269 int temp4 ;
13270 int temp5 ;
13271 PyObject * obj0 = 0 ;
13272 char *kwnames[] = {
13273 (char *) "self", NULL
13274 };
13275
13276 arg2 = &temp2;
13277 arg3 = &temp3;
13278 arg4 = &temp4;
13279 arg5 = &temp5;
13280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
13281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13283 {
13284 PyThreadState* __tstate = wxPyBeginAllowThreads();
13285 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
13286
13287 wxPyEndAllowThreads(__tstate);
13288 if (PyErr_Occurred()) SWIG_fail;
13289 }
13290 Py_INCREF(Py_None); resultobj = Py_None;
13291 {
13292 PyObject *o = PyInt_FromLong((long) (*arg2));
13293 resultobj = t_output_helper(resultobj,o);
13294 }
13295 {
13296 PyObject *o = PyInt_FromLong((long) (*arg3));
13297 resultobj = t_output_helper(resultobj,o);
13298 }
13299 {
13300 PyObject *o = PyInt_FromLong((long) (*arg4));
13301 resultobj = t_output_helper(resultobj,o);
13302 }
13303 {
13304 PyObject *o = PyInt_FromLong((long) (*arg5));
13305 resultobj = t_output_helper(resultobj,o);
13306 }
13307 return resultobj;
13308 fail:
13309 return NULL;
13310 }
13311
13312
13313 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
13314 PyObject *resultobj;
13315 wxDC *arg1 = (wxDC *) 0 ;
13316 wxRect result;
13317 PyObject * obj0 = 0 ;
13318 char *kwnames[] = {
13319 (char *) "self", NULL
13320 };
13321
13322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
13323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13325 {
13326 PyThreadState* __tstate = wxPyBeginAllowThreads();
13327 result = wxDC_GetClippingRect(arg1);
13328
13329 wxPyEndAllowThreads(__tstate);
13330 if (PyErr_Occurred()) SWIG_fail;
13331 }
13332 {
13333 wxRect * resultptr;
13334 resultptr = new wxRect((wxRect &) result);
13335 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
13336 }
13337 return resultobj;
13338 fail:
13339 return NULL;
13340 }
13341
13342
13343 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
13344 PyObject *resultobj;
13345 wxDC *arg1 = (wxDC *) 0 ;
13346 int result;
13347 PyObject * obj0 = 0 ;
13348 char *kwnames[] = {
13349 (char *) "self", NULL
13350 };
13351
13352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
13353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13355 {
13356 PyThreadState* __tstate = wxPyBeginAllowThreads();
13357 result = (int)((wxDC const *)arg1)->GetCharHeight();
13358
13359 wxPyEndAllowThreads(__tstate);
13360 if (PyErr_Occurred()) SWIG_fail;
13361 }
13362 resultobj = SWIG_FromInt((int)result);
13363 return resultobj;
13364 fail:
13365 return NULL;
13366 }
13367
13368
13369 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
13370 PyObject *resultobj;
13371 wxDC *arg1 = (wxDC *) 0 ;
13372 int result;
13373 PyObject * obj0 = 0 ;
13374 char *kwnames[] = {
13375 (char *) "self", NULL
13376 };
13377
13378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
13379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13381 {
13382 PyThreadState* __tstate = wxPyBeginAllowThreads();
13383 result = (int)((wxDC const *)arg1)->GetCharWidth();
13384
13385 wxPyEndAllowThreads(__tstate);
13386 if (PyErr_Occurred()) SWIG_fail;
13387 }
13388 resultobj = SWIG_FromInt((int)result);
13389 return resultobj;
13390 fail:
13391 return NULL;
13392 }
13393
13394
13395 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13396 PyObject *resultobj;
13397 wxDC *arg1 = (wxDC *) 0 ;
13398 wxString *arg2 = 0 ;
13399 int *arg3 = (int *) 0 ;
13400 int *arg4 = (int *) 0 ;
13401 bool temp2 = False ;
13402 int temp3 ;
13403 int temp4 ;
13404 PyObject * obj0 = 0 ;
13405 PyObject * obj1 = 0 ;
13406 char *kwnames[] = {
13407 (char *) "self",(char *) "string", NULL
13408 };
13409
13410 arg3 = &temp3;
13411 arg4 = &temp4;
13412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
13413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13415 {
13416 arg2 = wxString_in_helper(obj1);
13417 if (arg2 == NULL) SWIG_fail;
13418 temp2 = True;
13419 }
13420 {
13421 PyThreadState* __tstate = wxPyBeginAllowThreads();
13422 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13423
13424 wxPyEndAllowThreads(__tstate);
13425 if (PyErr_Occurred()) SWIG_fail;
13426 }
13427 Py_INCREF(Py_None); resultobj = Py_None;
13428 {
13429 PyObject *o = PyInt_FromLong((long) (*arg3));
13430 resultobj = t_output_helper(resultobj,o);
13431 }
13432 {
13433 PyObject *o = PyInt_FromLong((long) (*arg4));
13434 resultobj = t_output_helper(resultobj,o);
13435 }
13436 {
13437 if (temp2)
13438 delete arg2;
13439 }
13440 return resultobj;
13441 fail:
13442 {
13443 if (temp2)
13444 delete arg2;
13445 }
13446 return NULL;
13447 }
13448
13449
13450 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13451 PyObject *resultobj;
13452 wxDC *arg1 = (wxDC *) 0 ;
13453 wxString *arg2 = 0 ;
13454 int *arg3 = (int *) 0 ;
13455 int *arg4 = (int *) 0 ;
13456 int *arg5 = (int *) 0 ;
13457 int *arg6 = (int *) 0 ;
13458 wxFont *arg7 = (wxFont *) NULL ;
13459 bool temp2 = False ;
13460 int temp3 ;
13461 int temp4 ;
13462 int temp5 ;
13463 int temp6 ;
13464 PyObject * obj0 = 0 ;
13465 PyObject * obj1 = 0 ;
13466 PyObject * obj2 = 0 ;
13467 char *kwnames[] = {
13468 (char *) "self",(char *) "string",(char *) "font", NULL
13469 };
13470
13471 arg3 = &temp3;
13472 arg4 = &temp4;
13473 arg5 = &temp5;
13474 arg6 = &temp6;
13475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13478 {
13479 arg2 = wxString_in_helper(obj1);
13480 if (arg2 == NULL) SWIG_fail;
13481 temp2 = True;
13482 }
13483 if (obj2) {
13484 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
13485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13486 }
13487 {
13488 PyThreadState* __tstate = wxPyBeginAllowThreads();
13489 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13490
13491 wxPyEndAllowThreads(__tstate);
13492 if (PyErr_Occurred()) SWIG_fail;
13493 }
13494 Py_INCREF(Py_None); resultobj = Py_None;
13495 {
13496 PyObject *o = PyInt_FromLong((long) (*arg3));
13497 resultobj = t_output_helper(resultobj,o);
13498 }
13499 {
13500 PyObject *o = PyInt_FromLong((long) (*arg4));
13501 resultobj = t_output_helper(resultobj,o);
13502 }
13503 {
13504 PyObject *o = PyInt_FromLong((long) (*arg5));
13505 resultobj = t_output_helper(resultobj,o);
13506 }
13507 {
13508 PyObject *o = PyInt_FromLong((long) (*arg6));
13509 resultobj = t_output_helper(resultobj,o);
13510 }
13511 {
13512 if (temp2)
13513 delete arg2;
13514 }
13515 return resultobj;
13516 fail:
13517 {
13518 if (temp2)
13519 delete arg2;
13520 }
13521 return NULL;
13522 }
13523
13524
13525 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13526 PyObject *resultobj;
13527 wxDC *arg1 = (wxDC *) 0 ;
13528 wxString *arg2 = 0 ;
13529 int *arg3 = (int *) 0 ;
13530 int *arg4 = (int *) 0 ;
13531 int *arg5 = (int *) 0 ;
13532 wxFont *arg6 = (wxFont *) NULL ;
13533 bool temp2 = False ;
13534 int temp3 ;
13535 int temp4 ;
13536 int temp5 ;
13537 PyObject * obj0 = 0 ;
13538 PyObject * obj1 = 0 ;
13539 PyObject * obj2 = 0 ;
13540 char *kwnames[] = {
13541 (char *) "self",(char *) "text",(char *) "font", NULL
13542 };
13543
13544 arg3 = &temp3;
13545 arg4 = &temp4;
13546 arg5 = &temp5;
13547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13550 {
13551 arg2 = wxString_in_helper(obj1);
13552 if (arg2 == NULL) SWIG_fail;
13553 temp2 = True;
13554 }
13555 if (obj2) {
13556 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13558 }
13559 {
13560 PyThreadState* __tstate = wxPyBeginAllowThreads();
13561 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13562
13563 wxPyEndAllowThreads(__tstate);
13564 if (PyErr_Occurred()) SWIG_fail;
13565 }
13566 Py_INCREF(Py_None); resultobj = Py_None;
13567 {
13568 PyObject *o = PyInt_FromLong((long) (*arg3));
13569 resultobj = t_output_helper(resultobj,o);
13570 }
13571 {
13572 PyObject *o = PyInt_FromLong((long) (*arg4));
13573 resultobj = t_output_helper(resultobj,o);
13574 }
13575 {
13576 PyObject *o = PyInt_FromLong((long) (*arg5));
13577 resultobj = t_output_helper(resultobj,o);
13578 }
13579 {
13580 if (temp2)
13581 delete arg2;
13582 }
13583 return resultobj;
13584 fail:
13585 {
13586 if (temp2)
13587 delete arg2;
13588 }
13589 return NULL;
13590 }
13591
13592
13593 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
13594 PyObject *resultobj;
13595 wxDC *arg1 = (wxDC *) 0 ;
13596 wxString *arg2 = 0 ;
13597 wxArrayInt result;
13598 bool temp2 = False ;
13599 PyObject * obj0 = 0 ;
13600 PyObject * obj1 = 0 ;
13601 char *kwnames[] = {
13602 (char *) "self",(char *) "text", NULL
13603 };
13604
13605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13608 {
13609 arg2 = wxString_in_helper(obj1);
13610 if (arg2 == NULL) SWIG_fail;
13611 temp2 = True;
13612 }
13613 {
13614 PyThreadState* __tstate = wxPyBeginAllowThreads();
13615 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13616
13617 wxPyEndAllowThreads(__tstate);
13618 if (PyErr_Occurred()) SWIG_fail;
13619 }
13620 {
13621 resultobj = PyList_New(0);
13622 size_t idx;
13623 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13624 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13625 PyList_Append(resultobj, val);
13626 Py_DECREF(val);
13627 }
13628 }
13629 {
13630 if (temp2)
13631 delete arg2;
13632 }
13633 return resultobj;
13634 fail:
13635 {
13636 if (temp2)
13637 delete arg2;
13638 }
13639 return NULL;
13640 }
13641
13642
13643 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13644 PyObject *resultobj;
13645 wxDC *arg1 = (wxDC *) 0 ;
13646 wxSize result;
13647 PyObject * obj0 = 0 ;
13648 char *kwnames[] = {
13649 (char *) "self", NULL
13650 };
13651
13652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13655 {
13656 PyThreadState* __tstate = wxPyBeginAllowThreads();
13657 result = (arg1)->GetSize();
13658
13659 wxPyEndAllowThreads(__tstate);
13660 if (PyErr_Occurred()) SWIG_fail;
13661 }
13662 {
13663 wxSize * resultptr;
13664 resultptr = new wxSize((wxSize &) result);
13665 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13666 }
13667 return resultobj;
13668 fail:
13669 return NULL;
13670 }
13671
13672
13673 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13674 PyObject *resultobj;
13675 wxDC *arg1 = (wxDC *) 0 ;
13676 int *arg2 = (int *) 0 ;
13677 int *arg3 = (int *) 0 ;
13678 int temp2 ;
13679 int temp3 ;
13680 PyObject * obj0 = 0 ;
13681 char *kwnames[] = {
13682 (char *) "self", NULL
13683 };
13684
13685 arg2 = &temp2;
13686 arg3 = &temp3;
13687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13690 {
13691 PyThreadState* __tstate = wxPyBeginAllowThreads();
13692 (arg1)->GetSize(arg2,arg3);
13693
13694 wxPyEndAllowThreads(__tstate);
13695 if (PyErr_Occurred()) SWIG_fail;
13696 }
13697 Py_INCREF(Py_None); resultobj = Py_None;
13698 {
13699 PyObject *o = PyInt_FromLong((long) (*arg2));
13700 resultobj = t_output_helper(resultobj,o);
13701 }
13702 {
13703 PyObject *o = PyInt_FromLong((long) (*arg3));
13704 resultobj = t_output_helper(resultobj,o);
13705 }
13706 return resultobj;
13707 fail:
13708 return NULL;
13709 }
13710
13711
13712 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13713 PyObject *resultobj;
13714 wxDC *arg1 = (wxDC *) 0 ;
13715 wxSize result;
13716 PyObject * obj0 = 0 ;
13717 char *kwnames[] = {
13718 (char *) "self", NULL
13719 };
13720
13721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13724 {
13725 PyThreadState* __tstate = wxPyBeginAllowThreads();
13726 result = ((wxDC const *)arg1)->GetSizeMM();
13727
13728 wxPyEndAllowThreads(__tstate);
13729 if (PyErr_Occurred()) SWIG_fail;
13730 }
13731 {
13732 wxSize * resultptr;
13733 resultptr = new wxSize((wxSize &) result);
13734 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13735 }
13736 return resultobj;
13737 fail:
13738 return NULL;
13739 }
13740
13741
13742 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13743 PyObject *resultobj;
13744 wxDC *arg1 = (wxDC *) 0 ;
13745 int *arg2 = (int *) 0 ;
13746 int *arg3 = (int *) 0 ;
13747 int temp2 ;
13748 int temp3 ;
13749 PyObject * obj0 = 0 ;
13750 char *kwnames[] = {
13751 (char *) "self", NULL
13752 };
13753
13754 arg2 = &temp2;
13755 arg3 = &temp3;
13756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13759 {
13760 PyThreadState* __tstate = wxPyBeginAllowThreads();
13761 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13762
13763 wxPyEndAllowThreads(__tstate);
13764 if (PyErr_Occurred()) SWIG_fail;
13765 }
13766 Py_INCREF(Py_None); resultobj = Py_None;
13767 {
13768 PyObject *o = PyInt_FromLong((long) (*arg2));
13769 resultobj = t_output_helper(resultobj,o);
13770 }
13771 {
13772 PyObject *o = PyInt_FromLong((long) (*arg3));
13773 resultobj = t_output_helper(resultobj,o);
13774 }
13775 return resultobj;
13776 fail:
13777 return NULL;
13778 }
13779
13780
13781 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13782 PyObject *resultobj;
13783 wxDC *arg1 = (wxDC *) 0 ;
13784 int arg2 ;
13785 int result;
13786 PyObject * obj0 = 0 ;
13787 PyObject * obj1 = 0 ;
13788 char *kwnames[] = {
13789 (char *) "self",(char *) "x", NULL
13790 };
13791
13792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13795 arg2 = (int) SWIG_AsInt(obj1);
13796 if (PyErr_Occurred()) SWIG_fail;
13797 {
13798 PyThreadState* __tstate = wxPyBeginAllowThreads();
13799 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13800
13801 wxPyEndAllowThreads(__tstate);
13802 if (PyErr_Occurred()) SWIG_fail;
13803 }
13804 resultobj = SWIG_FromInt((int)result);
13805 return resultobj;
13806 fail:
13807 return NULL;
13808 }
13809
13810
13811 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13812 PyObject *resultobj;
13813 wxDC *arg1 = (wxDC *) 0 ;
13814 int arg2 ;
13815 int result;
13816 PyObject * obj0 = 0 ;
13817 PyObject * obj1 = 0 ;
13818 char *kwnames[] = {
13819 (char *) "self",(char *) "y", NULL
13820 };
13821
13822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13825 arg2 = (int) SWIG_AsInt(obj1);
13826 if (PyErr_Occurred()) SWIG_fail;
13827 {
13828 PyThreadState* __tstate = wxPyBeginAllowThreads();
13829 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13830
13831 wxPyEndAllowThreads(__tstate);
13832 if (PyErr_Occurred()) SWIG_fail;
13833 }
13834 resultobj = SWIG_FromInt((int)result);
13835 return resultobj;
13836 fail:
13837 return NULL;
13838 }
13839
13840
13841 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13842 PyObject *resultobj;
13843 wxDC *arg1 = (wxDC *) 0 ;
13844 int arg2 ;
13845 int result;
13846 PyObject * obj0 = 0 ;
13847 PyObject * obj1 = 0 ;
13848 char *kwnames[] = {
13849 (char *) "self",(char *) "x", NULL
13850 };
13851
13852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13855 arg2 = (int) SWIG_AsInt(obj1);
13856 if (PyErr_Occurred()) SWIG_fail;
13857 {
13858 PyThreadState* __tstate = wxPyBeginAllowThreads();
13859 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13860
13861 wxPyEndAllowThreads(__tstate);
13862 if (PyErr_Occurred()) SWIG_fail;
13863 }
13864 resultobj = SWIG_FromInt((int)result);
13865 return resultobj;
13866 fail:
13867 return NULL;
13868 }
13869
13870
13871 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13872 PyObject *resultobj;
13873 wxDC *arg1 = (wxDC *) 0 ;
13874 int arg2 ;
13875 int result;
13876 PyObject * obj0 = 0 ;
13877 PyObject * obj1 = 0 ;
13878 char *kwnames[] = {
13879 (char *) "self",(char *) "y", NULL
13880 };
13881
13882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13885 arg2 = (int) SWIG_AsInt(obj1);
13886 if (PyErr_Occurred()) SWIG_fail;
13887 {
13888 PyThreadState* __tstate = wxPyBeginAllowThreads();
13889 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13890
13891 wxPyEndAllowThreads(__tstate);
13892 if (PyErr_Occurred()) SWIG_fail;
13893 }
13894 resultobj = SWIG_FromInt((int)result);
13895 return resultobj;
13896 fail:
13897 return NULL;
13898 }
13899
13900
13901 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13902 PyObject *resultobj;
13903 wxDC *arg1 = (wxDC *) 0 ;
13904 int arg2 ;
13905 int result;
13906 PyObject * obj0 = 0 ;
13907 PyObject * obj1 = 0 ;
13908 char *kwnames[] = {
13909 (char *) "self",(char *) "x", NULL
13910 };
13911
13912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13915 arg2 = (int) SWIG_AsInt(obj1);
13916 if (PyErr_Occurred()) SWIG_fail;
13917 {
13918 PyThreadState* __tstate = wxPyBeginAllowThreads();
13919 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13920
13921 wxPyEndAllowThreads(__tstate);
13922 if (PyErr_Occurred()) SWIG_fail;
13923 }
13924 resultobj = SWIG_FromInt((int)result);
13925 return resultobj;
13926 fail:
13927 return NULL;
13928 }
13929
13930
13931 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13932 PyObject *resultobj;
13933 wxDC *arg1 = (wxDC *) 0 ;
13934 int arg2 ;
13935 int result;
13936 PyObject * obj0 = 0 ;
13937 PyObject * obj1 = 0 ;
13938 char *kwnames[] = {
13939 (char *) "self",(char *) "y", NULL
13940 };
13941
13942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13945 arg2 = (int) SWIG_AsInt(obj1);
13946 if (PyErr_Occurred()) SWIG_fail;
13947 {
13948 PyThreadState* __tstate = wxPyBeginAllowThreads();
13949 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13950
13951 wxPyEndAllowThreads(__tstate);
13952 if (PyErr_Occurred()) SWIG_fail;
13953 }
13954 resultobj = SWIG_FromInt((int)result);
13955 return resultobj;
13956 fail:
13957 return NULL;
13958 }
13959
13960
13961 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13962 PyObject *resultobj;
13963 wxDC *arg1 = (wxDC *) 0 ;
13964 int arg2 ;
13965 int result;
13966 PyObject * obj0 = 0 ;
13967 PyObject * obj1 = 0 ;
13968 char *kwnames[] = {
13969 (char *) "self",(char *) "x", NULL
13970 };
13971
13972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13975 arg2 = (int) SWIG_AsInt(obj1);
13976 if (PyErr_Occurred()) SWIG_fail;
13977 {
13978 PyThreadState* __tstate = wxPyBeginAllowThreads();
13979 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13980
13981 wxPyEndAllowThreads(__tstate);
13982 if (PyErr_Occurred()) SWIG_fail;
13983 }
13984 resultobj = SWIG_FromInt((int)result);
13985 return resultobj;
13986 fail:
13987 return NULL;
13988 }
13989
13990
13991 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13992 PyObject *resultobj;
13993 wxDC *arg1 = (wxDC *) 0 ;
13994 int arg2 ;
13995 int result;
13996 PyObject * obj0 = 0 ;
13997 PyObject * obj1 = 0 ;
13998 char *kwnames[] = {
13999 (char *) "self",(char *) "y", NULL
14000 };
14001
14002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
14003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14005 arg2 = (int) SWIG_AsInt(obj1);
14006 if (PyErr_Occurred()) SWIG_fail;
14007 {
14008 PyThreadState* __tstate = wxPyBeginAllowThreads();
14009 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
14010
14011 wxPyEndAllowThreads(__tstate);
14012 if (PyErr_Occurred()) SWIG_fail;
14013 }
14014 resultobj = SWIG_FromInt((int)result);
14015 return resultobj;
14016 fail:
14017 return NULL;
14018 }
14019
14020
14021 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
14022 PyObject *resultobj;
14023 wxDC *arg1 = (wxDC *) 0 ;
14024 bool result;
14025 PyObject * obj0 = 0 ;
14026 char *kwnames[] = {
14027 (char *) "self", NULL
14028 };
14029
14030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
14031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14033 {
14034 PyThreadState* __tstate = wxPyBeginAllowThreads();
14035 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
14036
14037 wxPyEndAllowThreads(__tstate);
14038 if (PyErr_Occurred()) SWIG_fail;
14039 }
14040 {
14041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14042 }
14043 return resultobj;
14044 fail:
14045 return NULL;
14046 }
14047
14048
14049 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
14050 PyObject *resultobj;
14051 wxDC *arg1 = (wxDC *) 0 ;
14052 bool result;
14053 PyObject * obj0 = 0 ;
14054 char *kwnames[] = {
14055 (char *) "self", NULL
14056 };
14057
14058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
14059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14061 {
14062 PyThreadState* __tstate = wxPyBeginAllowThreads();
14063 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
14064
14065 wxPyEndAllowThreads(__tstate);
14066 if (PyErr_Occurred()) SWIG_fail;
14067 }
14068 {
14069 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14070 }
14071 return resultobj;
14072 fail:
14073 return NULL;
14074 }
14075
14076
14077 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
14078 PyObject *resultobj;
14079 wxDC *arg1 = (wxDC *) 0 ;
14080 int result;
14081 PyObject * obj0 = 0 ;
14082 char *kwnames[] = {
14083 (char *) "self", NULL
14084 };
14085
14086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
14087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14089 {
14090 PyThreadState* __tstate = wxPyBeginAllowThreads();
14091 result = (int)((wxDC const *)arg1)->GetDepth();
14092
14093 wxPyEndAllowThreads(__tstate);
14094 if (PyErr_Occurred()) SWIG_fail;
14095 }
14096 resultobj = SWIG_FromInt((int)result);
14097 return resultobj;
14098 fail:
14099 return NULL;
14100 }
14101
14102
14103 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
14104 PyObject *resultobj;
14105 wxDC *arg1 = (wxDC *) 0 ;
14106 wxSize result;
14107 PyObject * obj0 = 0 ;
14108 char *kwnames[] = {
14109 (char *) "self", NULL
14110 };
14111
14112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
14113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14115 {
14116 PyThreadState* __tstate = wxPyBeginAllowThreads();
14117 result = ((wxDC const *)arg1)->GetPPI();
14118
14119 wxPyEndAllowThreads(__tstate);
14120 if (PyErr_Occurred()) SWIG_fail;
14121 }
14122 {
14123 wxSize * resultptr;
14124 resultptr = new wxSize((wxSize &) result);
14125 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14126 }
14127 return resultobj;
14128 fail:
14129 return NULL;
14130 }
14131
14132
14133 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
14134 PyObject *resultobj;
14135 wxDC *arg1 = (wxDC *) 0 ;
14136 bool result;
14137 PyObject * obj0 = 0 ;
14138 char *kwnames[] = {
14139 (char *) "self", NULL
14140 };
14141
14142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
14143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14145 {
14146 PyThreadState* __tstate = wxPyBeginAllowThreads();
14147 result = (bool)((wxDC const *)arg1)->Ok();
14148
14149 wxPyEndAllowThreads(__tstate);
14150 if (PyErr_Occurred()) SWIG_fail;
14151 }
14152 {
14153 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14154 }
14155 return resultobj;
14156 fail:
14157 return NULL;
14158 }
14159
14160
14161 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14162 PyObject *resultobj;
14163 wxDC *arg1 = (wxDC *) 0 ;
14164 int result;
14165 PyObject * obj0 = 0 ;
14166 char *kwnames[] = {
14167 (char *) "self", NULL
14168 };
14169
14170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
14171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14173 {
14174 PyThreadState* __tstate = wxPyBeginAllowThreads();
14175 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
14176
14177 wxPyEndAllowThreads(__tstate);
14178 if (PyErr_Occurred()) SWIG_fail;
14179 }
14180 resultobj = SWIG_FromInt((int)result);
14181 return resultobj;
14182 fail:
14183 return NULL;
14184 }
14185
14186
14187 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14188 PyObject *resultobj;
14189 wxDC *arg1 = (wxDC *) 0 ;
14190 wxBrush *result;
14191 PyObject * obj0 = 0 ;
14192 char *kwnames[] = {
14193 (char *) "self", NULL
14194 };
14195
14196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
14197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14199 {
14200 PyThreadState* __tstate = wxPyBeginAllowThreads();
14201 {
14202 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
14203 result = (wxBrush *) &_result_ref;
14204 }
14205
14206 wxPyEndAllowThreads(__tstate);
14207 if (PyErr_Occurred()) SWIG_fail;
14208 }
14209 {
14210 wxBrush* resultptr = new wxBrush(*result);
14211 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14212 }
14213 return resultobj;
14214 fail:
14215 return NULL;
14216 }
14217
14218
14219 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14220 PyObject *resultobj;
14221 wxDC *arg1 = (wxDC *) 0 ;
14222 wxBrush *result;
14223 PyObject * obj0 = 0 ;
14224 char *kwnames[] = {
14225 (char *) "self", NULL
14226 };
14227
14228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
14229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14231 {
14232 PyThreadState* __tstate = wxPyBeginAllowThreads();
14233 {
14234 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
14235 result = (wxBrush *) &_result_ref;
14236 }
14237
14238 wxPyEndAllowThreads(__tstate);
14239 if (PyErr_Occurred()) SWIG_fail;
14240 }
14241 {
14242 wxBrush* resultptr = new wxBrush(*result);
14243 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14244 }
14245 return resultobj;
14246 fail:
14247 return NULL;
14248 }
14249
14250
14251 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14252 PyObject *resultobj;
14253 wxDC *arg1 = (wxDC *) 0 ;
14254 wxFont *result;
14255 PyObject * obj0 = 0 ;
14256 char *kwnames[] = {
14257 (char *) "self", NULL
14258 };
14259
14260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
14261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14263 {
14264 PyThreadState* __tstate = wxPyBeginAllowThreads();
14265 {
14266 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
14267 result = (wxFont *) &_result_ref;
14268 }
14269
14270 wxPyEndAllowThreads(__tstate);
14271 if (PyErr_Occurred()) SWIG_fail;
14272 }
14273 {
14274 wxFont* resultptr = new wxFont(*result);
14275 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
14276 }
14277 return resultobj;
14278 fail:
14279 return NULL;
14280 }
14281
14282
14283 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
14284 PyObject *resultobj;
14285 wxDC *arg1 = (wxDC *) 0 ;
14286 wxPen *result;
14287 PyObject * obj0 = 0 ;
14288 char *kwnames[] = {
14289 (char *) "self", NULL
14290 };
14291
14292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
14293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14295 {
14296 PyThreadState* __tstate = wxPyBeginAllowThreads();
14297 {
14298 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
14299 result = (wxPen *) &_result_ref;
14300 }
14301
14302 wxPyEndAllowThreads(__tstate);
14303 if (PyErr_Occurred()) SWIG_fail;
14304 }
14305 {
14306 wxPen* resultptr = new wxPen(*result);
14307 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
14308 }
14309 return resultobj;
14310 fail:
14311 return NULL;
14312 }
14313
14314
14315 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14316 PyObject *resultobj;
14317 wxDC *arg1 = (wxDC *) 0 ;
14318 wxColour *result;
14319 PyObject * obj0 = 0 ;
14320 char *kwnames[] = {
14321 (char *) "self", NULL
14322 };
14323
14324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
14325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14327 {
14328 PyThreadState* __tstate = wxPyBeginAllowThreads();
14329 {
14330 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
14331 result = (wxColour *) &_result_ref;
14332 }
14333
14334 wxPyEndAllowThreads(__tstate);
14335 if (PyErr_Occurred()) SWIG_fail;
14336 }
14337 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14338 return resultobj;
14339 fail:
14340 return NULL;
14341 }
14342
14343
14344 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14345 PyObject *resultobj;
14346 wxDC *arg1 = (wxDC *) 0 ;
14347 wxColour *result;
14348 PyObject * obj0 = 0 ;
14349 char *kwnames[] = {
14350 (char *) "self", NULL
14351 };
14352
14353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
14354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14356 {
14357 PyThreadState* __tstate = wxPyBeginAllowThreads();
14358 {
14359 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
14360 result = (wxColour *) &_result_ref;
14361 }
14362
14363 wxPyEndAllowThreads(__tstate);
14364 if (PyErr_Occurred()) SWIG_fail;
14365 }
14366 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14367 return resultobj;
14368 fail:
14369 return NULL;
14370 }
14371
14372
14373 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14374 PyObject *resultobj;
14375 wxDC *arg1 = (wxDC *) 0 ;
14376 wxColour *arg2 = 0 ;
14377 wxColour temp2 ;
14378 PyObject * obj0 = 0 ;
14379 PyObject * obj1 = 0 ;
14380 char *kwnames[] = {
14381 (char *) "self",(char *) "colour", NULL
14382 };
14383
14384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
14385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14387 {
14388 arg2 = &temp2;
14389 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14390 }
14391 {
14392 PyThreadState* __tstate = wxPyBeginAllowThreads();
14393 (arg1)->SetTextForeground((wxColour const &)*arg2);
14394
14395 wxPyEndAllowThreads(__tstate);
14396 if (PyErr_Occurred()) SWIG_fail;
14397 }
14398 Py_INCREF(Py_None); resultobj = Py_None;
14399 return resultobj;
14400 fail:
14401 return NULL;
14402 }
14403
14404
14405 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14406 PyObject *resultobj;
14407 wxDC *arg1 = (wxDC *) 0 ;
14408 wxColour *arg2 = 0 ;
14409 wxColour temp2 ;
14410 PyObject * obj0 = 0 ;
14411 PyObject * obj1 = 0 ;
14412 char *kwnames[] = {
14413 (char *) "self",(char *) "colour", NULL
14414 };
14415
14416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
14417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14419 {
14420 arg2 = &temp2;
14421 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14422 }
14423 {
14424 PyThreadState* __tstate = wxPyBeginAllowThreads();
14425 (arg1)->SetTextBackground((wxColour const &)*arg2);
14426
14427 wxPyEndAllowThreads(__tstate);
14428 if (PyErr_Occurred()) SWIG_fail;
14429 }
14430 Py_INCREF(Py_None); resultobj = Py_None;
14431 return resultobj;
14432 fail:
14433 return NULL;
14434 }
14435
14436
14437 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14438 PyObject *resultobj;
14439 wxDC *arg1 = (wxDC *) 0 ;
14440 int result;
14441 PyObject * obj0 = 0 ;
14442 char *kwnames[] = {
14443 (char *) "self", NULL
14444 };
14445
14446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
14447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14449 {
14450 PyThreadState* __tstate = wxPyBeginAllowThreads();
14451 result = (int)((wxDC const *)arg1)->GetMapMode();
14452
14453 wxPyEndAllowThreads(__tstate);
14454 if (PyErr_Occurred()) SWIG_fail;
14455 }
14456 resultobj = SWIG_FromInt((int)result);
14457 return resultobj;
14458 fail:
14459 return NULL;
14460 }
14461
14462
14463 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14464 PyObject *resultobj;
14465 wxDC *arg1 = (wxDC *) 0 ;
14466 int arg2 ;
14467 PyObject * obj0 = 0 ;
14468 PyObject * obj1 = 0 ;
14469 char *kwnames[] = {
14470 (char *) "self",(char *) "mode", NULL
14471 };
14472
14473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
14474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14476 arg2 = (int) SWIG_AsInt(obj1);
14477 if (PyErr_Occurred()) SWIG_fail;
14478 {
14479 PyThreadState* __tstate = wxPyBeginAllowThreads();
14480 (arg1)->SetMapMode(arg2);
14481
14482 wxPyEndAllowThreads(__tstate);
14483 if (PyErr_Occurred()) SWIG_fail;
14484 }
14485 Py_INCREF(Py_None); resultobj = Py_None;
14486 return resultobj;
14487 fail:
14488 return NULL;
14489 }
14490
14491
14492 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14493 PyObject *resultobj;
14494 wxDC *arg1 = (wxDC *) 0 ;
14495 double *arg2 = (double *) 0 ;
14496 double *arg3 = (double *) 0 ;
14497 double temp2 ;
14498 double temp3 ;
14499 PyObject * obj0 = 0 ;
14500 char *kwnames[] = {
14501 (char *) "self", NULL
14502 };
14503
14504 arg2 = &temp2;
14505 arg3 = &temp3;
14506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14509 {
14510 PyThreadState* __tstate = wxPyBeginAllowThreads();
14511 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14512
14513 wxPyEndAllowThreads(__tstate);
14514 if (PyErr_Occurred()) SWIG_fail;
14515 }
14516 Py_INCREF(Py_None); resultobj = Py_None;
14517 {
14518 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14519 resultobj = t_output_helper(resultobj,o);
14520 }
14521 {
14522 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14523 resultobj = t_output_helper(resultobj,o);
14524 }
14525 return resultobj;
14526 fail:
14527 return NULL;
14528 }
14529
14530
14531 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14532 PyObject *resultobj;
14533 wxDC *arg1 = (wxDC *) 0 ;
14534 double arg2 ;
14535 double arg3 ;
14536 PyObject * obj0 = 0 ;
14537 PyObject * obj1 = 0 ;
14538 PyObject * obj2 = 0 ;
14539 char *kwnames[] = {
14540 (char *) "self",(char *) "x",(char *) "y", NULL
14541 };
14542
14543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14546 arg2 = (double) SWIG_AsDouble(obj1);
14547 if (PyErr_Occurred()) SWIG_fail;
14548 arg3 = (double) SWIG_AsDouble(obj2);
14549 if (PyErr_Occurred()) SWIG_fail;
14550 {
14551 PyThreadState* __tstate = wxPyBeginAllowThreads();
14552 (arg1)->SetUserScale(arg2,arg3);
14553
14554 wxPyEndAllowThreads(__tstate);
14555 if (PyErr_Occurred()) SWIG_fail;
14556 }
14557 Py_INCREF(Py_None); resultobj = Py_None;
14558 return resultobj;
14559 fail:
14560 return NULL;
14561 }
14562
14563
14564 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14565 PyObject *resultobj;
14566 wxDC *arg1 = (wxDC *) 0 ;
14567 double *arg2 = (double *) 0 ;
14568 double *arg3 = (double *) 0 ;
14569 double temp2 ;
14570 double temp3 ;
14571 PyObject * obj0 = 0 ;
14572 char *kwnames[] = {
14573 (char *) "self", NULL
14574 };
14575
14576 arg2 = &temp2;
14577 arg3 = &temp3;
14578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14581 {
14582 PyThreadState* __tstate = wxPyBeginAllowThreads();
14583 (arg1)->GetLogicalScale(arg2,arg3);
14584
14585 wxPyEndAllowThreads(__tstate);
14586 if (PyErr_Occurred()) SWIG_fail;
14587 }
14588 Py_INCREF(Py_None); resultobj = Py_None;
14589 {
14590 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14591 resultobj = t_output_helper(resultobj,o);
14592 }
14593 {
14594 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14595 resultobj = t_output_helper(resultobj,o);
14596 }
14597 return resultobj;
14598 fail:
14599 return NULL;
14600 }
14601
14602
14603 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14604 PyObject *resultobj;
14605 wxDC *arg1 = (wxDC *) 0 ;
14606 double arg2 ;
14607 double arg3 ;
14608 PyObject * obj0 = 0 ;
14609 PyObject * obj1 = 0 ;
14610 PyObject * obj2 = 0 ;
14611 char *kwnames[] = {
14612 (char *) "self",(char *) "x",(char *) "y", NULL
14613 };
14614
14615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14618 arg2 = (double) SWIG_AsDouble(obj1);
14619 if (PyErr_Occurred()) SWIG_fail;
14620 arg3 = (double) SWIG_AsDouble(obj2);
14621 if (PyErr_Occurred()) SWIG_fail;
14622 {
14623 PyThreadState* __tstate = wxPyBeginAllowThreads();
14624 (arg1)->SetLogicalScale(arg2,arg3);
14625
14626 wxPyEndAllowThreads(__tstate);
14627 if (PyErr_Occurred()) SWIG_fail;
14628 }
14629 Py_INCREF(Py_None); resultobj = Py_None;
14630 return resultobj;
14631 fail:
14632 return NULL;
14633 }
14634
14635
14636 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14637 PyObject *resultobj;
14638 wxDC *arg1 = (wxDC *) 0 ;
14639 wxPoint result;
14640 PyObject * obj0 = 0 ;
14641 char *kwnames[] = {
14642 (char *) "self", NULL
14643 };
14644
14645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14648 {
14649 PyThreadState* __tstate = wxPyBeginAllowThreads();
14650 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14651
14652 wxPyEndAllowThreads(__tstate);
14653 if (PyErr_Occurred()) SWIG_fail;
14654 }
14655 {
14656 wxPoint * resultptr;
14657 resultptr = new wxPoint((wxPoint &) result);
14658 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14659 }
14660 return resultobj;
14661 fail:
14662 return NULL;
14663 }
14664
14665
14666 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14667 PyObject *resultobj;
14668 wxDC *arg1 = (wxDC *) 0 ;
14669 int *arg2 = (int *) 0 ;
14670 int *arg3 = (int *) 0 ;
14671 int temp2 ;
14672 int temp3 ;
14673 PyObject * obj0 = 0 ;
14674 char *kwnames[] = {
14675 (char *) "self", NULL
14676 };
14677
14678 arg2 = &temp2;
14679 arg3 = &temp3;
14680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14683 {
14684 PyThreadState* __tstate = wxPyBeginAllowThreads();
14685 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14686
14687 wxPyEndAllowThreads(__tstate);
14688 if (PyErr_Occurred()) SWIG_fail;
14689 }
14690 Py_INCREF(Py_None); resultobj = Py_None;
14691 {
14692 PyObject *o = PyInt_FromLong((long) (*arg2));
14693 resultobj = t_output_helper(resultobj,o);
14694 }
14695 {
14696 PyObject *o = PyInt_FromLong((long) (*arg3));
14697 resultobj = t_output_helper(resultobj,o);
14698 }
14699 return resultobj;
14700 fail:
14701 return NULL;
14702 }
14703
14704
14705 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14706 PyObject *resultobj;
14707 wxDC *arg1 = (wxDC *) 0 ;
14708 int arg2 ;
14709 int arg3 ;
14710 PyObject * obj0 = 0 ;
14711 PyObject * obj1 = 0 ;
14712 PyObject * obj2 = 0 ;
14713 char *kwnames[] = {
14714 (char *) "self",(char *) "x",(char *) "y", NULL
14715 };
14716
14717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14720 arg2 = (int) SWIG_AsInt(obj1);
14721 if (PyErr_Occurred()) SWIG_fail;
14722 arg3 = (int) SWIG_AsInt(obj2);
14723 if (PyErr_Occurred()) SWIG_fail;
14724 {
14725 PyThreadState* __tstate = wxPyBeginAllowThreads();
14726 (arg1)->SetLogicalOrigin(arg2,arg3);
14727
14728 wxPyEndAllowThreads(__tstate);
14729 if (PyErr_Occurred()) SWIG_fail;
14730 }
14731 Py_INCREF(Py_None); resultobj = Py_None;
14732 return resultobj;
14733 fail:
14734 return NULL;
14735 }
14736
14737
14738 static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14739 PyObject *resultobj;
14740 wxDC *arg1 = (wxDC *) 0 ;
14741 wxPoint *arg2 = 0 ;
14742 wxPoint temp2 ;
14743 PyObject * obj0 = 0 ;
14744 PyObject * obj1 = 0 ;
14745 char *kwnames[] = {
14746 (char *) "self",(char *) "point", NULL
14747 };
14748
14749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14752 {
14753 arg2 = &temp2;
14754 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14755 }
14756 {
14757 PyThreadState* __tstate = wxPyBeginAllowThreads();
14758 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
14759
14760 wxPyEndAllowThreads(__tstate);
14761 if (PyErr_Occurred()) SWIG_fail;
14762 }
14763 Py_INCREF(Py_None); resultobj = Py_None;
14764 return resultobj;
14765 fail:
14766 return NULL;
14767 }
14768
14769
14770 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14771 PyObject *resultobj;
14772 wxDC *arg1 = (wxDC *) 0 ;
14773 wxPoint result;
14774 PyObject * obj0 = 0 ;
14775 char *kwnames[] = {
14776 (char *) "self", NULL
14777 };
14778
14779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14782 {
14783 PyThreadState* __tstate = wxPyBeginAllowThreads();
14784 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14785
14786 wxPyEndAllowThreads(__tstate);
14787 if (PyErr_Occurred()) SWIG_fail;
14788 }
14789 {
14790 wxPoint * resultptr;
14791 resultptr = new wxPoint((wxPoint &) result);
14792 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14793 }
14794 return resultobj;
14795 fail:
14796 return NULL;
14797 }
14798
14799
14800 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14801 PyObject *resultobj;
14802 wxDC *arg1 = (wxDC *) 0 ;
14803 int *arg2 = (int *) 0 ;
14804 int *arg3 = (int *) 0 ;
14805 int temp2 ;
14806 int temp3 ;
14807 PyObject * obj0 = 0 ;
14808 char *kwnames[] = {
14809 (char *) "self", NULL
14810 };
14811
14812 arg2 = &temp2;
14813 arg3 = &temp3;
14814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14817 {
14818 PyThreadState* __tstate = wxPyBeginAllowThreads();
14819 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14820
14821 wxPyEndAllowThreads(__tstate);
14822 if (PyErr_Occurred()) SWIG_fail;
14823 }
14824 Py_INCREF(Py_None); resultobj = Py_None;
14825 {
14826 PyObject *o = PyInt_FromLong((long) (*arg2));
14827 resultobj = t_output_helper(resultobj,o);
14828 }
14829 {
14830 PyObject *o = PyInt_FromLong((long) (*arg3));
14831 resultobj = t_output_helper(resultobj,o);
14832 }
14833 return resultobj;
14834 fail:
14835 return NULL;
14836 }
14837
14838
14839 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14840 PyObject *resultobj;
14841 wxDC *arg1 = (wxDC *) 0 ;
14842 int arg2 ;
14843 int arg3 ;
14844 PyObject * obj0 = 0 ;
14845 PyObject * obj1 = 0 ;
14846 PyObject * obj2 = 0 ;
14847 char *kwnames[] = {
14848 (char *) "self",(char *) "x",(char *) "y", NULL
14849 };
14850
14851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14854 arg2 = (int) SWIG_AsInt(obj1);
14855 if (PyErr_Occurred()) SWIG_fail;
14856 arg3 = (int) SWIG_AsInt(obj2);
14857 if (PyErr_Occurred()) SWIG_fail;
14858 {
14859 PyThreadState* __tstate = wxPyBeginAllowThreads();
14860 (arg1)->SetDeviceOrigin(arg2,arg3);
14861
14862 wxPyEndAllowThreads(__tstate);
14863 if (PyErr_Occurred()) SWIG_fail;
14864 }
14865 Py_INCREF(Py_None); resultobj = Py_None;
14866 return resultobj;
14867 fail:
14868 return NULL;
14869 }
14870
14871
14872 static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14873 PyObject *resultobj;
14874 wxDC *arg1 = (wxDC *) 0 ;
14875 wxPoint *arg2 = 0 ;
14876 wxPoint temp2 ;
14877 PyObject * obj0 = 0 ;
14878 PyObject * obj1 = 0 ;
14879 char *kwnames[] = {
14880 (char *) "self",(char *) "point", NULL
14881 };
14882
14883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14886 {
14887 arg2 = &temp2;
14888 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14889 }
14890 {
14891 PyThreadState* __tstate = wxPyBeginAllowThreads();
14892 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
14893
14894 wxPyEndAllowThreads(__tstate);
14895 if (PyErr_Occurred()) SWIG_fail;
14896 }
14897 Py_INCREF(Py_None); resultobj = Py_None;
14898 return resultobj;
14899 fail:
14900 return NULL;
14901 }
14902
14903
14904 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14905 PyObject *resultobj;
14906 wxDC *arg1 = (wxDC *) 0 ;
14907 bool arg2 ;
14908 bool arg3 ;
14909 PyObject * obj0 = 0 ;
14910 PyObject * obj1 = 0 ;
14911 PyObject * obj2 = 0 ;
14912 char *kwnames[] = {
14913 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14914 };
14915
14916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14919 arg2 = (bool) SWIG_AsBool(obj1);
14920 if (PyErr_Occurred()) SWIG_fail;
14921 arg3 = (bool) SWIG_AsBool(obj2);
14922 if (PyErr_Occurred()) SWIG_fail;
14923 {
14924 PyThreadState* __tstate = wxPyBeginAllowThreads();
14925 (arg1)->SetAxisOrientation(arg2,arg3);
14926
14927 wxPyEndAllowThreads(__tstate);
14928 if (PyErr_Occurred()) SWIG_fail;
14929 }
14930 Py_INCREF(Py_None); resultobj = Py_None;
14931 return resultobj;
14932 fail:
14933 return NULL;
14934 }
14935
14936
14937 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14938 PyObject *resultobj;
14939 wxDC *arg1 = (wxDC *) 0 ;
14940 int result;
14941 PyObject * obj0 = 0 ;
14942 char *kwnames[] = {
14943 (char *) "self", NULL
14944 };
14945
14946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14949 {
14950 PyThreadState* __tstate = wxPyBeginAllowThreads();
14951 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14952
14953 wxPyEndAllowThreads(__tstate);
14954 if (PyErr_Occurred()) SWIG_fail;
14955 }
14956 resultobj = SWIG_FromInt((int)result);
14957 return resultobj;
14958 fail:
14959 return NULL;
14960 }
14961
14962
14963 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14964 PyObject *resultobj;
14965 wxDC *arg1 = (wxDC *) 0 ;
14966 int arg2 ;
14967 PyObject * obj0 = 0 ;
14968 PyObject * obj1 = 0 ;
14969 char *kwnames[] = {
14970 (char *) "self",(char *) "function", NULL
14971 };
14972
14973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14976 arg2 = (int) SWIG_AsInt(obj1);
14977 if (PyErr_Occurred()) SWIG_fail;
14978 {
14979 PyThreadState* __tstate = wxPyBeginAllowThreads();
14980 (arg1)->SetLogicalFunction(arg2);
14981
14982 wxPyEndAllowThreads(__tstate);
14983 if (PyErr_Occurred()) SWIG_fail;
14984 }
14985 Py_INCREF(Py_None); resultobj = Py_None;
14986 return resultobj;
14987 fail:
14988 return NULL;
14989 }
14990
14991
14992 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14993 PyObject *resultobj;
14994 wxDC *arg1 = (wxDC *) 0 ;
14995 bool arg2 ;
14996 PyObject * obj0 = 0 ;
14997 PyObject * obj1 = 0 ;
14998 char *kwnames[] = {
14999 (char *) "self",(char *) "opt", NULL
15000 };
15001
15002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
15003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15005 arg2 = (bool) SWIG_AsBool(obj1);
15006 if (PyErr_Occurred()) SWIG_fail;
15007 {
15008 PyThreadState* __tstate = wxPyBeginAllowThreads();
15009 (arg1)->SetOptimization(arg2);
15010
15011 wxPyEndAllowThreads(__tstate);
15012 if (PyErr_Occurred()) SWIG_fail;
15013 }
15014 Py_INCREF(Py_None); resultobj = Py_None;
15015 return resultobj;
15016 fail:
15017 return NULL;
15018 }
15019
15020
15021 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
15022 PyObject *resultobj;
15023 wxDC *arg1 = (wxDC *) 0 ;
15024 bool result;
15025 PyObject * obj0 = 0 ;
15026 char *kwnames[] = {
15027 (char *) "self", NULL
15028 };
15029
15030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
15031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15033 {
15034 PyThreadState* __tstate = wxPyBeginAllowThreads();
15035 result = (bool)(arg1)->GetOptimization();
15036
15037 wxPyEndAllowThreads(__tstate);
15038 if (PyErr_Occurred()) SWIG_fail;
15039 }
15040 {
15041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15042 }
15043 return resultobj;
15044 fail:
15045 return NULL;
15046 }
15047
15048
15049 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15050 PyObject *resultobj;
15051 wxDC *arg1 = (wxDC *) 0 ;
15052 int arg2 ;
15053 int arg3 ;
15054 PyObject * obj0 = 0 ;
15055 PyObject * obj1 = 0 ;
15056 PyObject * obj2 = 0 ;
15057 char *kwnames[] = {
15058 (char *) "self",(char *) "x",(char *) "y", NULL
15059 };
15060
15061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
15062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15064 arg2 = (int) SWIG_AsInt(obj1);
15065 if (PyErr_Occurred()) SWIG_fail;
15066 arg3 = (int) SWIG_AsInt(obj2);
15067 if (PyErr_Occurred()) SWIG_fail;
15068 {
15069 PyThreadState* __tstate = wxPyBeginAllowThreads();
15070 (arg1)->CalcBoundingBox(arg2,arg3);
15071
15072 wxPyEndAllowThreads(__tstate);
15073 if (PyErr_Occurred()) SWIG_fail;
15074 }
15075 Py_INCREF(Py_None); resultobj = Py_None;
15076 return resultobj;
15077 fail:
15078 return NULL;
15079 }
15080
15081
15082 static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
15083 PyObject *resultobj;
15084 wxDC *arg1 = (wxDC *) 0 ;
15085 wxPoint *arg2 = 0 ;
15086 wxPoint temp2 ;
15087 PyObject * obj0 = 0 ;
15088 PyObject * obj1 = 0 ;
15089 char *kwnames[] = {
15090 (char *) "self",(char *) "point", NULL
15091 };
15092
15093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
15094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15096 {
15097 arg2 = &temp2;
15098 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15099 }
15100 {
15101 PyThreadState* __tstate = wxPyBeginAllowThreads();
15102 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
15103
15104 wxPyEndAllowThreads(__tstate);
15105 if (PyErr_Occurred()) SWIG_fail;
15106 }
15107 Py_INCREF(Py_None); resultobj = Py_None;
15108 return resultobj;
15109 fail:
15110 return NULL;
15111 }
15112
15113
15114 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15115 PyObject *resultobj;
15116 wxDC *arg1 = (wxDC *) 0 ;
15117 PyObject * obj0 = 0 ;
15118 char *kwnames[] = {
15119 (char *) "self", NULL
15120 };
15121
15122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
15123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15125 {
15126 PyThreadState* __tstate = wxPyBeginAllowThreads();
15127 (arg1)->ResetBoundingBox();
15128
15129 wxPyEndAllowThreads(__tstate);
15130 if (PyErr_Occurred()) SWIG_fail;
15131 }
15132 Py_INCREF(Py_None); resultobj = Py_None;
15133 return resultobj;
15134 fail:
15135 return NULL;
15136 }
15137
15138
15139 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
15140 PyObject *resultobj;
15141 wxDC *arg1 = (wxDC *) 0 ;
15142 int result;
15143 PyObject * obj0 = 0 ;
15144 char *kwnames[] = {
15145 (char *) "self", NULL
15146 };
15147
15148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
15149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15151 {
15152 PyThreadState* __tstate = wxPyBeginAllowThreads();
15153 result = (int)((wxDC const *)arg1)->MinX();
15154
15155 wxPyEndAllowThreads(__tstate);
15156 if (PyErr_Occurred()) SWIG_fail;
15157 }
15158 resultobj = SWIG_FromInt((int)result);
15159 return resultobj;
15160 fail:
15161 return NULL;
15162 }
15163
15164
15165 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
15166 PyObject *resultobj;
15167 wxDC *arg1 = (wxDC *) 0 ;
15168 int result;
15169 PyObject * obj0 = 0 ;
15170 char *kwnames[] = {
15171 (char *) "self", NULL
15172 };
15173
15174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
15175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15177 {
15178 PyThreadState* __tstate = wxPyBeginAllowThreads();
15179 result = (int)((wxDC const *)arg1)->MaxX();
15180
15181 wxPyEndAllowThreads(__tstate);
15182 if (PyErr_Occurred()) SWIG_fail;
15183 }
15184 resultobj = SWIG_FromInt((int)result);
15185 return resultobj;
15186 fail:
15187 return NULL;
15188 }
15189
15190
15191 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
15192 PyObject *resultobj;
15193 wxDC *arg1 = (wxDC *) 0 ;
15194 int result;
15195 PyObject * obj0 = 0 ;
15196 char *kwnames[] = {
15197 (char *) "self", NULL
15198 };
15199
15200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
15201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15203 {
15204 PyThreadState* __tstate = wxPyBeginAllowThreads();
15205 result = (int)((wxDC const *)arg1)->MinY();
15206
15207 wxPyEndAllowThreads(__tstate);
15208 if (PyErr_Occurred()) SWIG_fail;
15209 }
15210 resultobj = SWIG_FromInt((int)result);
15211 return resultobj;
15212 fail:
15213 return NULL;
15214 }
15215
15216
15217 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
15218 PyObject *resultobj;
15219 wxDC *arg1 = (wxDC *) 0 ;
15220 int result;
15221 PyObject * obj0 = 0 ;
15222 char *kwnames[] = {
15223 (char *) "self", NULL
15224 };
15225
15226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
15227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15229 {
15230 PyThreadState* __tstate = wxPyBeginAllowThreads();
15231 result = (int)((wxDC const *)arg1)->MaxY();
15232
15233 wxPyEndAllowThreads(__tstate);
15234 if (PyErr_Occurred()) SWIG_fail;
15235 }
15236 resultobj = SWIG_FromInt((int)result);
15237 return resultobj;
15238 fail:
15239 return NULL;
15240 }
15241
15242
15243 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15244 PyObject *resultobj;
15245 wxDC *arg1 = (wxDC *) 0 ;
15246 int *arg2 = (int *) 0 ;
15247 int *arg3 = (int *) 0 ;
15248 int *arg4 = (int *) 0 ;
15249 int *arg5 = (int *) 0 ;
15250 int temp2 ;
15251 int temp3 ;
15252 int temp4 ;
15253 int temp5 ;
15254 PyObject * obj0 = 0 ;
15255 char *kwnames[] = {
15256 (char *) "self", NULL
15257 };
15258
15259 arg2 = &temp2;
15260 arg3 = &temp3;
15261 arg4 = &temp4;
15262 arg5 = &temp5;
15263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
15264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15266 {
15267 PyThreadState* __tstate = wxPyBeginAllowThreads();
15268 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
15269
15270 wxPyEndAllowThreads(__tstate);
15271 if (PyErr_Occurred()) SWIG_fail;
15272 }
15273 Py_INCREF(Py_None); resultobj = Py_None;
15274 {
15275 PyObject *o = PyInt_FromLong((long) (*arg2));
15276 resultobj = t_output_helper(resultobj,o);
15277 }
15278 {
15279 PyObject *o = PyInt_FromLong((long) (*arg3));
15280 resultobj = t_output_helper(resultobj,o);
15281 }
15282 {
15283 PyObject *o = PyInt_FromLong((long) (*arg4));
15284 resultobj = t_output_helper(resultobj,o);
15285 }
15286 {
15287 PyObject *o = PyInt_FromLong((long) (*arg5));
15288 resultobj = t_output_helper(resultobj,o);
15289 }
15290 return resultobj;
15291 fail:
15292 return NULL;
15293 }
15294
15295
15296 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
15297 PyObject *resultobj;
15298 wxDC *arg1 = (wxDC *) 0 ;
15299 PyObject *arg2 = (PyObject *) 0 ;
15300 PyObject *arg3 = (PyObject *) 0 ;
15301 PyObject *arg4 = (PyObject *) 0 ;
15302 PyObject *result;
15303 PyObject * obj0 = 0 ;
15304 PyObject * obj1 = 0 ;
15305 PyObject * obj2 = 0 ;
15306 PyObject * obj3 = 0 ;
15307 char *kwnames[] = {
15308 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15309 };
15310
15311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15314 arg2 = obj1;
15315 arg3 = obj2;
15316 arg4 = obj3;
15317 {
15318 PyThreadState* __tstate = wxPyBeginAllowThreads();
15319 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
15320
15321 wxPyEndAllowThreads(__tstate);
15322 if (PyErr_Occurred()) SWIG_fail;
15323 }
15324 resultobj = result;
15325 return resultobj;
15326 fail:
15327 return NULL;
15328 }
15329
15330
15331 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
15332 PyObject *resultobj;
15333 wxDC *arg1 = (wxDC *) 0 ;
15334 PyObject *arg2 = (PyObject *) 0 ;
15335 PyObject *arg3 = (PyObject *) 0 ;
15336 PyObject *arg4 = (PyObject *) 0 ;
15337 PyObject *result;
15338 PyObject * obj0 = 0 ;
15339 PyObject * obj1 = 0 ;
15340 PyObject * obj2 = 0 ;
15341 PyObject * obj3 = 0 ;
15342 char *kwnames[] = {
15343 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15344 };
15345
15346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15349 arg2 = obj1;
15350 arg3 = obj2;
15351 arg4 = obj3;
15352 {
15353 PyThreadState* __tstate = wxPyBeginAllowThreads();
15354 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
15355
15356 wxPyEndAllowThreads(__tstate);
15357 if (PyErr_Occurred()) SWIG_fail;
15358 }
15359 resultobj = result;
15360 return resultobj;
15361 fail:
15362 return NULL;
15363 }
15364
15365
15366 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
15367 PyObject *resultobj;
15368 wxDC *arg1 = (wxDC *) 0 ;
15369 PyObject *arg2 = (PyObject *) 0 ;
15370 PyObject *arg3 = (PyObject *) 0 ;
15371 PyObject *arg4 = (PyObject *) 0 ;
15372 PyObject *result;
15373 PyObject * obj0 = 0 ;
15374 PyObject * obj1 = 0 ;
15375 PyObject * obj2 = 0 ;
15376 PyObject * obj3 = 0 ;
15377 char *kwnames[] = {
15378 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15379 };
15380
15381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15384 arg2 = obj1;
15385 arg3 = obj2;
15386 arg4 = obj3;
15387 {
15388 PyThreadState* __tstate = wxPyBeginAllowThreads();
15389 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
15390
15391 wxPyEndAllowThreads(__tstate);
15392 if (PyErr_Occurred()) SWIG_fail;
15393 }
15394 resultobj = result;
15395 return resultobj;
15396 fail:
15397 return NULL;
15398 }
15399
15400
15401 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
15402 PyObject *resultobj;
15403 wxDC *arg1 = (wxDC *) 0 ;
15404 PyObject *arg2 = (PyObject *) 0 ;
15405 PyObject *arg3 = (PyObject *) 0 ;
15406 PyObject *arg4 = (PyObject *) 0 ;
15407 PyObject *result;
15408 PyObject * obj0 = 0 ;
15409 PyObject * obj1 = 0 ;
15410 PyObject * obj2 = 0 ;
15411 PyObject * obj3 = 0 ;
15412 char *kwnames[] = {
15413 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15414 };
15415
15416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15419 arg2 = obj1;
15420 arg3 = obj2;
15421 arg4 = obj3;
15422 {
15423 PyThreadState* __tstate = wxPyBeginAllowThreads();
15424 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
15425
15426 wxPyEndAllowThreads(__tstate);
15427 if (PyErr_Occurred()) SWIG_fail;
15428 }
15429 resultobj = result;
15430 return resultobj;
15431 fail:
15432 return NULL;
15433 }
15434
15435
15436 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
15437 PyObject *resultobj;
15438 wxDC *arg1 = (wxDC *) 0 ;
15439 PyObject *arg2 = (PyObject *) 0 ;
15440 PyObject *arg3 = (PyObject *) 0 ;
15441 PyObject *arg4 = (PyObject *) 0 ;
15442 PyObject *result;
15443 PyObject * obj0 = 0 ;
15444 PyObject * obj1 = 0 ;
15445 PyObject * obj2 = 0 ;
15446 PyObject * obj3 = 0 ;
15447 char *kwnames[] = {
15448 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15449 };
15450
15451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15454 arg2 = obj1;
15455 arg3 = obj2;
15456 arg4 = obj3;
15457 {
15458 PyThreadState* __tstate = wxPyBeginAllowThreads();
15459 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
15460
15461 wxPyEndAllowThreads(__tstate);
15462 if (PyErr_Occurred()) SWIG_fail;
15463 }
15464 resultobj = result;
15465 return resultobj;
15466 fail:
15467 return NULL;
15468 }
15469
15470
15471 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
15472 PyObject *resultobj;
15473 wxDC *arg1 = (wxDC *) 0 ;
15474 PyObject *arg2 = (PyObject *) 0 ;
15475 PyObject *arg3 = (PyObject *) 0 ;
15476 PyObject *arg4 = (PyObject *) 0 ;
15477 PyObject *arg5 = (PyObject *) 0 ;
15478 PyObject *result;
15479 PyObject * obj0 = 0 ;
15480 PyObject * obj1 = 0 ;
15481 PyObject * obj2 = 0 ;
15482 PyObject * obj3 = 0 ;
15483 PyObject * obj4 = 0 ;
15484 char *kwnames[] = {
15485 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
15486 };
15487
15488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15491 arg2 = obj1;
15492 arg3 = obj2;
15493 arg4 = obj3;
15494 arg5 = obj4;
15495 {
15496 PyThreadState* __tstate = wxPyBeginAllowThreads();
15497 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
15498
15499 wxPyEndAllowThreads(__tstate);
15500 if (PyErr_Occurred()) SWIG_fail;
15501 }
15502 resultobj = result;
15503 return resultobj;
15504 fail:
15505 return NULL;
15506 }
15507
15508
15509 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
15510 PyObject *obj;
15511 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15512 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15513 Py_INCREF(obj);
15514 return Py_BuildValue((char *)"");
15515 }
15516 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15517 PyObject *resultobj;
15518 wxMemoryDC *result;
15519 char *kwnames[] = {
15520 NULL
15521 };
15522
15523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15524 {
15525 PyThreadState* __tstate = wxPyBeginAllowThreads();
15526 result = (wxMemoryDC *)new wxMemoryDC();
15527
15528 wxPyEndAllowThreads(__tstate);
15529 if (PyErr_Occurred()) SWIG_fail;
15530 }
15531 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15532 return resultobj;
15533 fail:
15534 return NULL;
15535 }
15536
15537
15538 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15539 PyObject *resultobj;
15540 wxDC *arg1 = (wxDC *) 0 ;
15541 wxMemoryDC *result;
15542 PyObject * obj0 = 0 ;
15543 char *kwnames[] = {
15544 (char *) "oldDC", NULL
15545 };
15546
15547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15550 {
15551 PyThreadState* __tstate = wxPyBeginAllowThreads();
15552 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15553
15554 wxPyEndAllowThreads(__tstate);
15555 if (PyErr_Occurred()) SWIG_fail;
15556 }
15557 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15558 return resultobj;
15559 fail:
15560 return NULL;
15561 }
15562
15563
15564 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
15565 PyObject *resultobj;
15566 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15567 wxBitmap *arg2 = 0 ;
15568 PyObject * obj0 = 0 ;
15569 PyObject * obj1 = 0 ;
15570 char *kwnames[] = {
15571 (char *) "self",(char *) "bitmap", NULL
15572 };
15573
15574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15577 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15578 SWIG_POINTER_EXCEPTION | 0)) == -1)
15579 SWIG_fail;
15580 if (arg2 == NULL) {
15581 PyErr_SetString(PyExc_TypeError,"null reference");
15582 SWIG_fail;
15583 }
15584 {
15585 PyThreadState* __tstate = wxPyBeginAllowThreads();
15586 (arg1)->SelectObject((wxBitmap const &)*arg2);
15587
15588 wxPyEndAllowThreads(__tstate);
15589 if (PyErr_Occurred()) SWIG_fail;
15590 }
15591 Py_INCREF(Py_None); resultobj = Py_None;
15592 return resultobj;
15593 fail:
15594 return NULL;
15595 }
15596
15597
15598 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
15599 PyObject *obj;
15600 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15601 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15602 Py_INCREF(obj);
15603 return Py_BuildValue((char *)"");
15604 }
15605 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
15606 PyObject *resultobj;
15607 wxDC *arg1 = (wxDC *) 0 ;
15608 wxBitmap *arg2 = 0 ;
15609 wxBufferedDC *result;
15610 PyObject * obj0 = 0 ;
15611 PyObject * obj1 = 0 ;
15612
15613 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15616 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15617 SWIG_POINTER_EXCEPTION | 0)) == -1)
15618 SWIG_fail;
15619 if (arg2 == NULL) {
15620 PyErr_SetString(PyExc_TypeError,"null reference");
15621 SWIG_fail;
15622 }
15623 {
15624 PyThreadState* __tstate = wxPyBeginAllowThreads();
15625 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15626
15627 wxPyEndAllowThreads(__tstate);
15628 if (PyErr_Occurred()) SWIG_fail;
15629 }
15630 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15631 return resultobj;
15632 fail:
15633 return NULL;
15634 }
15635
15636
15637 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
15638 PyObject *resultobj;
15639 wxDC *arg1 = (wxDC *) 0 ;
15640 wxSize *arg2 = 0 ;
15641 wxBufferedDC *result;
15642 wxSize temp2 ;
15643 PyObject * obj0 = 0 ;
15644 PyObject * obj1 = 0 ;
15645
15646 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15649 {
15650 arg2 = &temp2;
15651 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15652 }
15653 {
15654 PyThreadState* __tstate = wxPyBeginAllowThreads();
15655 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15656
15657 wxPyEndAllowThreads(__tstate);
15658 if (PyErr_Occurred()) SWIG_fail;
15659 }
15660 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15661 return resultobj;
15662 fail:
15663 return NULL;
15664 }
15665
15666
15667 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15668 int argc;
15669 PyObject *argv[3];
15670 int ii;
15671
15672 argc = PyObject_Length(args);
15673 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15674 argv[ii] = PyTuple_GetItem(args,ii);
15675 }
15676 if (argc == 2) {
15677 int _v;
15678 {
15679 void *ptr;
15680 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15681 _v = 0;
15682 PyErr_Clear();
15683 } else {
15684 _v = 1;
15685 }
15686 }
15687 if (_v) {
15688 {
15689 void *ptr;
15690 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15691 _v = 0;
15692 PyErr_Clear();
15693 } else {
15694 _v = 1;
15695 }
15696 }
15697 if (_v) {
15698 return _wrap_new_BufferedDC__SWIG_0(self,args);
15699 }
15700 }
15701 }
15702 if (argc == 2) {
15703 int _v;
15704 {
15705 void *ptr;
15706 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15707 _v = 0;
15708 PyErr_Clear();
15709 } else {
15710 _v = 1;
15711 }
15712 }
15713 if (_v) {
15714 {
15715 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15716 }
15717 if (_v) {
15718 return _wrap_new_BufferedDC__SWIG_1(self,args);
15719 }
15720 }
15721 }
15722
15723 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15724 return NULL;
15725 }
15726
15727
15728 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
15729 PyObject *resultobj;
15730 wxDC *arg1 = (wxDC *) 0 ;
15731 wxSize *arg2 = 0 ;
15732 wxBufferedDC *result;
15733 wxSize temp2 ;
15734 PyObject * obj0 = 0 ;
15735 PyObject * obj1 = 0 ;
15736
15737 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
15738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15740 {
15741 arg2 = &temp2;
15742 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15743 }
15744 {
15745 PyThreadState* __tstate = wxPyBeginAllowThreads();
15746 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15747
15748 wxPyEndAllowThreads(__tstate);
15749 if (PyErr_Occurred()) SWIG_fail;
15750 }
15751 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15752 return resultobj;
15753 fail:
15754 return NULL;
15755 }
15756
15757
15758 static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15759 PyObject *resultobj;
15760 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15761 PyObject * obj0 = 0 ;
15762 char *kwnames[] = {
15763 (char *) "self", NULL
15764 };
15765
15766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15769 {
15770 PyThreadState* __tstate = wxPyBeginAllowThreads();
15771 delete arg1;
15772
15773 wxPyEndAllowThreads(__tstate);
15774 if (PyErr_Occurred()) SWIG_fail;
15775 }
15776 Py_INCREF(Py_None); resultobj = Py_None;
15777 return resultobj;
15778 fail:
15779 return NULL;
15780 }
15781
15782
15783 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15784 PyObject *resultobj;
15785 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15786 PyObject * obj0 = 0 ;
15787 char *kwnames[] = {
15788 (char *) "self", NULL
15789 };
15790
15791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15794 {
15795 PyThreadState* __tstate = wxPyBeginAllowThreads();
15796 (arg1)->UnMask();
15797
15798 wxPyEndAllowThreads(__tstate);
15799 if (PyErr_Occurred()) SWIG_fail;
15800 }
15801 Py_INCREF(Py_None); resultobj = Py_None;
15802 return resultobj;
15803 fail:
15804 return NULL;
15805 }
15806
15807
15808 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15809 PyObject *obj;
15810 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15811 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15812 Py_INCREF(obj);
15813 return Py_BuildValue((char *)"");
15814 }
15815 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15816 PyObject *resultobj;
15817 wxWindow *arg1 = (wxWindow *) 0 ;
15818 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15819 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15820 wxBufferedPaintDC *result;
15821 PyObject * obj0 = 0 ;
15822 PyObject * obj1 = 0 ;
15823 char *kwnames[] = {
15824 (char *) "window",(char *) "buffer", NULL
15825 };
15826
15827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15830 if (obj1) {
15831 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15832 SWIG_POINTER_EXCEPTION | 0)) == -1)
15833 SWIG_fail;
15834 if (arg2 == NULL) {
15835 PyErr_SetString(PyExc_TypeError,"null reference");
15836 SWIG_fail;
15837 }
15838 }
15839 {
15840 PyThreadState* __tstate = wxPyBeginAllowThreads();
15841 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15842
15843 wxPyEndAllowThreads(__tstate);
15844 if (PyErr_Occurred()) SWIG_fail;
15845 }
15846 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15847 return resultobj;
15848 fail:
15849 return NULL;
15850 }
15851
15852
15853 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15854 PyObject *obj;
15855 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15856 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15857 Py_INCREF(obj);
15858 return Py_BuildValue((char *)"");
15859 }
15860 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15861 PyObject *resultobj;
15862 wxScreenDC *result;
15863 char *kwnames[] = {
15864 NULL
15865 };
15866
15867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15868 {
15869 PyThreadState* __tstate = wxPyBeginAllowThreads();
15870 result = (wxScreenDC *)new wxScreenDC();
15871
15872 wxPyEndAllowThreads(__tstate);
15873 if (PyErr_Occurred()) SWIG_fail;
15874 }
15875 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15876 return resultobj;
15877 fail:
15878 return NULL;
15879 }
15880
15881
15882 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15883 PyObject *resultobj;
15884 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15885 wxWindow *arg2 = (wxWindow *) 0 ;
15886 bool result;
15887 PyObject * obj0 = 0 ;
15888 PyObject * obj1 = 0 ;
15889 char *kwnames[] = {
15890 (char *) "self",(char *) "window", NULL
15891 };
15892
15893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15896 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15898 {
15899 PyThreadState* __tstate = wxPyBeginAllowThreads();
15900 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15901
15902 wxPyEndAllowThreads(__tstate);
15903 if (PyErr_Occurred()) SWIG_fail;
15904 }
15905 {
15906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15907 }
15908 return resultobj;
15909 fail:
15910 return NULL;
15911 }
15912
15913
15914 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15915 PyObject *resultobj;
15916 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15917 wxRect *arg2 = (wxRect *) NULL ;
15918 bool result;
15919 PyObject * obj0 = 0 ;
15920 PyObject * obj1 = 0 ;
15921 char *kwnames[] = {
15922 (char *) "self",(char *) "rect", NULL
15923 };
15924
15925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15928 if (obj1) {
15929 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15931 }
15932 {
15933 PyThreadState* __tstate = wxPyBeginAllowThreads();
15934 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15935
15936 wxPyEndAllowThreads(__tstate);
15937 if (PyErr_Occurred()) SWIG_fail;
15938 }
15939 {
15940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15941 }
15942 return resultobj;
15943 fail:
15944 return NULL;
15945 }
15946
15947
15948 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15949 PyObject *resultobj;
15950 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15951 bool result;
15952 PyObject * obj0 = 0 ;
15953 char *kwnames[] = {
15954 (char *) "self", NULL
15955 };
15956
15957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15960 {
15961 PyThreadState* __tstate = wxPyBeginAllowThreads();
15962 result = (bool)(arg1)->EndDrawingOnTop();
15963
15964 wxPyEndAllowThreads(__tstate);
15965 if (PyErr_Occurred()) SWIG_fail;
15966 }
15967 {
15968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15969 }
15970 return resultobj;
15971 fail:
15972 return NULL;
15973 }
15974
15975
15976 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15977 PyObject *obj;
15978 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15979 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15980 Py_INCREF(obj);
15981 return Py_BuildValue((char *)"");
15982 }
15983 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15984 PyObject *resultobj;
15985 wxWindow *arg1 = (wxWindow *) 0 ;
15986 wxClientDC *result;
15987 PyObject * obj0 = 0 ;
15988 char *kwnames[] = {
15989 (char *) "win", NULL
15990 };
15991
15992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15995 {
15996 PyThreadState* __tstate = wxPyBeginAllowThreads();
15997 result = (wxClientDC *)new wxClientDC(arg1);
15998
15999 wxPyEndAllowThreads(__tstate);
16000 if (PyErr_Occurred()) SWIG_fail;
16001 }
16002 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
16003 return resultobj;
16004 fail:
16005 return NULL;
16006 }
16007
16008
16009 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
16010 PyObject *obj;
16011 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16012 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
16013 Py_INCREF(obj);
16014 return Py_BuildValue((char *)"");
16015 }
16016 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16017 PyObject *resultobj;
16018 wxWindow *arg1 = (wxWindow *) 0 ;
16019 wxPaintDC *result;
16020 PyObject * obj0 = 0 ;
16021 char *kwnames[] = {
16022 (char *) "win", NULL
16023 };
16024
16025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
16026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16028 {
16029 PyThreadState* __tstate = wxPyBeginAllowThreads();
16030 result = (wxPaintDC *)new wxPaintDC(arg1);
16031
16032 wxPyEndAllowThreads(__tstate);
16033 if (PyErr_Occurred()) SWIG_fail;
16034 }
16035 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
16036 return resultobj;
16037 fail:
16038 return NULL;
16039 }
16040
16041
16042 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
16043 PyObject *obj;
16044 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16045 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
16046 Py_INCREF(obj);
16047 return Py_BuildValue((char *)"");
16048 }
16049 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16050 PyObject *resultobj;
16051 wxWindow *arg1 = (wxWindow *) 0 ;
16052 wxWindowDC *result;
16053 PyObject * obj0 = 0 ;
16054 char *kwnames[] = {
16055 (char *) "win", NULL
16056 };
16057
16058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
16059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16061 {
16062 PyThreadState* __tstate = wxPyBeginAllowThreads();
16063 result = (wxWindowDC *)new wxWindowDC(arg1);
16064
16065 wxPyEndAllowThreads(__tstate);
16066 if (PyErr_Occurred()) SWIG_fail;
16067 }
16068 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
16069 return resultobj;
16070 fail:
16071 return NULL;
16072 }
16073
16074
16075 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
16076 PyObject *obj;
16077 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16078 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
16079 Py_INCREF(obj);
16080 return Py_BuildValue((char *)"");
16081 }
16082 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16083 PyObject *resultobj;
16084 wxDC *arg1 = 0 ;
16085 bool arg2 ;
16086 wxMirrorDC *result;
16087 PyObject * obj0 = 0 ;
16088 PyObject * obj1 = 0 ;
16089 char *kwnames[] = {
16090 (char *) "dc",(char *) "mirror", NULL
16091 };
16092
16093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
16094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
16095 SWIG_POINTER_EXCEPTION | 0)) == -1)
16096 SWIG_fail;
16097 if (arg1 == NULL) {
16098 PyErr_SetString(PyExc_TypeError,"null reference");
16099 SWIG_fail;
16100 }
16101 arg2 = (bool) SWIG_AsBool(obj1);
16102 if (PyErr_Occurred()) SWIG_fail;
16103 {
16104 PyThreadState* __tstate = wxPyBeginAllowThreads();
16105 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
16106
16107 wxPyEndAllowThreads(__tstate);
16108 if (PyErr_Occurred()) SWIG_fail;
16109 }
16110 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
16111 return resultobj;
16112 fail:
16113 return NULL;
16114 }
16115
16116
16117 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
16118 PyObject *obj;
16119 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16120 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
16121 Py_INCREF(obj);
16122 return Py_BuildValue((char *)"");
16123 }
16124 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16125 PyObject *resultobj;
16126 wxPrintData *arg1 = 0 ;
16127 wxPostScriptDC *result;
16128 PyObject * obj0 = 0 ;
16129 char *kwnames[] = {
16130 (char *) "printData", NULL
16131 };
16132
16133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
16134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16135 SWIG_POINTER_EXCEPTION | 0)) == -1)
16136 SWIG_fail;
16137 if (arg1 == NULL) {
16138 PyErr_SetString(PyExc_TypeError,"null reference");
16139 SWIG_fail;
16140 }
16141 {
16142 PyThreadState* __tstate = wxPyBeginAllowThreads();
16143 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
16144
16145 wxPyEndAllowThreads(__tstate);
16146 if (PyErr_Occurred()) SWIG_fail;
16147 }
16148 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
16149 return resultobj;
16150 fail:
16151 return NULL;
16152 }
16153
16154
16155 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
16156 PyObject *resultobj;
16157 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16158 wxPrintData *result;
16159 PyObject * obj0 = 0 ;
16160 char *kwnames[] = {
16161 (char *) "self", NULL
16162 };
16163
16164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
16165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16167 {
16168 PyThreadState* __tstate = wxPyBeginAllowThreads();
16169 {
16170 wxPrintData &_result_ref = (arg1)->GetPrintData();
16171 result = (wxPrintData *) &_result_ref;
16172 }
16173
16174 wxPyEndAllowThreads(__tstate);
16175 if (PyErr_Occurred()) SWIG_fail;
16176 }
16177 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
16178 return resultobj;
16179 fail:
16180 return NULL;
16181 }
16182
16183
16184 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
16185 PyObject *resultobj;
16186 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16187 wxPrintData *arg2 = 0 ;
16188 PyObject * obj0 = 0 ;
16189 PyObject * obj1 = 0 ;
16190 char *kwnames[] = {
16191 (char *) "self",(char *) "data", NULL
16192 };
16193
16194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
16195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16197 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
16198 SWIG_POINTER_EXCEPTION | 0)) == -1)
16199 SWIG_fail;
16200 if (arg2 == NULL) {
16201 PyErr_SetString(PyExc_TypeError,"null reference");
16202 SWIG_fail;
16203 }
16204 {
16205 PyThreadState* __tstate = wxPyBeginAllowThreads();
16206 (arg1)->SetPrintData((wxPrintData const &)*arg2);
16207
16208 wxPyEndAllowThreads(__tstate);
16209 if (PyErr_Occurred()) SWIG_fail;
16210 }
16211 Py_INCREF(Py_None); resultobj = Py_None;
16212 return resultobj;
16213 fail:
16214 return NULL;
16215 }
16216
16217
16218 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
16219 PyObject *resultobj;
16220 int arg1 ;
16221 PyObject * obj0 = 0 ;
16222 char *kwnames[] = {
16223 (char *) "ppi", NULL
16224 };
16225
16226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
16227 arg1 = (int) SWIG_AsInt(obj0);
16228 if (PyErr_Occurred()) SWIG_fail;
16229 {
16230 PyThreadState* __tstate = wxPyBeginAllowThreads();
16231 wxPostScriptDC::SetResolution(arg1);
16232
16233 wxPyEndAllowThreads(__tstate);
16234 if (PyErr_Occurred()) SWIG_fail;
16235 }
16236 Py_INCREF(Py_None); resultobj = Py_None;
16237 return resultobj;
16238 fail:
16239 return NULL;
16240 }
16241
16242
16243 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
16244 PyObject *resultobj;
16245 int result;
16246 char *kwnames[] = {
16247 NULL
16248 };
16249
16250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
16251 {
16252 PyThreadState* __tstate = wxPyBeginAllowThreads();
16253 result = (int)wxPostScriptDC::GetResolution();
16254
16255 wxPyEndAllowThreads(__tstate);
16256 if (PyErr_Occurred()) SWIG_fail;
16257 }
16258 resultobj = SWIG_FromInt((int)result);
16259 return resultobj;
16260 fail:
16261 return NULL;
16262 }
16263
16264
16265 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
16266 PyObject *obj;
16267 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16268 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
16269 Py_INCREF(obj);
16270 return Py_BuildValue((char *)"");
16271 }
16272 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
16273 PyObject *resultobj;
16274 wxString const &arg1_defvalue = wxPyEmptyString ;
16275 wxString *arg1 = (wxString *) &arg1_defvalue ;
16276 wxMetaFile *result;
16277 bool temp1 = False ;
16278 PyObject * obj0 = 0 ;
16279 char *kwnames[] = {
16280 (char *) "filename", NULL
16281 };
16282
16283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
16284 if (obj0) {
16285 {
16286 arg1 = wxString_in_helper(obj0);
16287 if (arg1 == NULL) SWIG_fail;
16288 temp1 = True;
16289 }
16290 }
16291 {
16292 PyThreadState* __tstate = wxPyBeginAllowThreads();
16293 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
16294
16295 wxPyEndAllowThreads(__tstate);
16296 if (PyErr_Occurred()) SWIG_fail;
16297 }
16298 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
16299 {
16300 if (temp1)
16301 delete arg1;
16302 }
16303 return resultobj;
16304 fail:
16305 {
16306 if (temp1)
16307 delete arg1;
16308 }
16309 return NULL;
16310 }
16311
16312
16313 static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
16314 PyObject *resultobj;
16315 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16316 PyObject * obj0 = 0 ;
16317 char *kwnames[] = {
16318 (char *) "self", NULL
16319 };
16320
16321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
16322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16324 {
16325 PyThreadState* __tstate = wxPyBeginAllowThreads();
16326 delete arg1;
16327
16328 wxPyEndAllowThreads(__tstate);
16329 if (PyErr_Occurred()) SWIG_fail;
16330 }
16331 Py_INCREF(Py_None); resultobj = Py_None;
16332 return resultobj;
16333 fail:
16334 return NULL;
16335 }
16336
16337
16338 static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
16339 PyObject *resultobj;
16340 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16341 bool result;
16342 PyObject * obj0 = 0 ;
16343 char *kwnames[] = {
16344 (char *) "self", NULL
16345 };
16346
16347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
16348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16350 {
16351 PyThreadState* __tstate = wxPyBeginAllowThreads();
16352 result = (bool)(arg1)->Ok();
16353
16354 wxPyEndAllowThreads(__tstate);
16355 if (PyErr_Occurred()) SWIG_fail;
16356 }
16357 {
16358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16359 }
16360 return resultobj;
16361 fail:
16362 return NULL;
16363 }
16364
16365
16366 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
16367 PyObject *resultobj;
16368 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16369 int arg2 = (int) 0 ;
16370 int arg3 = (int) 0 ;
16371 bool result;
16372 PyObject * obj0 = 0 ;
16373 PyObject * obj1 = 0 ;
16374 PyObject * obj2 = 0 ;
16375 char *kwnames[] = {
16376 (char *) "self",(char *) "width",(char *) "height", NULL
16377 };
16378
16379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
16380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16382 if (obj1) {
16383 arg2 = (int) SWIG_AsInt(obj1);
16384 if (PyErr_Occurred()) SWIG_fail;
16385 }
16386 if (obj2) {
16387 arg3 = (int) SWIG_AsInt(obj2);
16388 if (PyErr_Occurred()) SWIG_fail;
16389 }
16390 {
16391 PyThreadState* __tstate = wxPyBeginAllowThreads();
16392 result = (bool)(arg1)->SetClipboard(arg2,arg3);
16393
16394 wxPyEndAllowThreads(__tstate);
16395 if (PyErr_Occurred()) SWIG_fail;
16396 }
16397 {
16398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16399 }
16400 return resultobj;
16401 fail:
16402 return NULL;
16403 }
16404
16405
16406 static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16407 PyObject *resultobj;
16408 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16409 wxSize result;
16410 PyObject * obj0 = 0 ;
16411 char *kwnames[] = {
16412 (char *) "self", NULL
16413 };
16414
16415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
16416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16418 {
16419 PyThreadState* __tstate = wxPyBeginAllowThreads();
16420 result = (arg1)->GetSize();
16421
16422 wxPyEndAllowThreads(__tstate);
16423 if (PyErr_Occurred()) SWIG_fail;
16424 }
16425 {
16426 wxSize * resultptr;
16427 resultptr = new wxSize((wxSize &) result);
16428 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16429 }
16430 return resultobj;
16431 fail:
16432 return NULL;
16433 }
16434
16435
16436 static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
16437 PyObject *resultobj;
16438 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16439 int result;
16440 PyObject * obj0 = 0 ;
16441 char *kwnames[] = {
16442 (char *) "self", NULL
16443 };
16444
16445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
16446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16448 {
16449 PyThreadState* __tstate = wxPyBeginAllowThreads();
16450 result = (int)(arg1)->GetWidth();
16451
16452 wxPyEndAllowThreads(__tstate);
16453 if (PyErr_Occurred()) SWIG_fail;
16454 }
16455 resultobj = SWIG_FromInt((int)result);
16456 return resultobj;
16457 fail:
16458 return NULL;
16459 }
16460
16461
16462 static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
16463 PyObject *resultobj;
16464 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16465 int result;
16466 PyObject * obj0 = 0 ;
16467 char *kwnames[] = {
16468 (char *) "self", NULL
16469 };
16470
16471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
16472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16474 {
16475 PyThreadState* __tstate = wxPyBeginAllowThreads();
16476 result = (int)(arg1)->GetHeight();
16477
16478 wxPyEndAllowThreads(__tstate);
16479 if (PyErr_Occurred()) SWIG_fail;
16480 }
16481 resultobj = SWIG_FromInt((int)result);
16482 return resultobj;
16483 fail:
16484 return NULL;
16485 }
16486
16487
16488 static PyObject *_wrap_MetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
16489 PyObject *resultobj;
16490 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16491 wxString *result;
16492 PyObject * obj0 = 0 ;
16493 char *kwnames[] = {
16494 (char *) "self", NULL
16495 };
16496
16497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail;
16498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16500 {
16501 PyThreadState* __tstate = wxPyBeginAllowThreads();
16502 {
16503 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
16504 result = (wxString *) &_result_ref;
16505 }
16506
16507 wxPyEndAllowThreads(__tstate);
16508 if (PyErr_Occurred()) SWIG_fail;
16509 }
16510 {
16511 #if wxUSE_UNICODE
16512 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16513 #else
16514 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16515 #endif
16516 }
16517 return resultobj;
16518 fail:
16519 return NULL;
16520 }
16521
16522
16523 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
16524 PyObject *obj;
16525 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16526 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
16527 Py_INCREF(obj);
16528 return Py_BuildValue((char *)"");
16529 }
16530 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16531 PyObject *resultobj;
16532 wxString const &arg1_defvalue = wxPyEmptyString ;
16533 wxString *arg1 = (wxString *) &arg1_defvalue ;
16534 int arg2 = (int) 0 ;
16535 int arg3 = (int) 0 ;
16536 wxString const &arg4_defvalue = wxPyEmptyString ;
16537 wxString *arg4 = (wxString *) &arg4_defvalue ;
16538 wxMetaFileDC *result;
16539 bool temp1 = False ;
16540 bool temp4 = False ;
16541 PyObject * obj0 = 0 ;
16542 PyObject * obj1 = 0 ;
16543 PyObject * obj2 = 0 ;
16544 PyObject * obj3 = 0 ;
16545 char *kwnames[] = {
16546 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
16547 };
16548
16549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16550 if (obj0) {
16551 {
16552 arg1 = wxString_in_helper(obj0);
16553 if (arg1 == NULL) SWIG_fail;
16554 temp1 = True;
16555 }
16556 }
16557 if (obj1) {
16558 arg2 = (int) SWIG_AsInt(obj1);
16559 if (PyErr_Occurred()) SWIG_fail;
16560 }
16561 if (obj2) {
16562 arg3 = (int) SWIG_AsInt(obj2);
16563 if (PyErr_Occurred()) SWIG_fail;
16564 }
16565 if (obj3) {
16566 {
16567 arg4 = wxString_in_helper(obj3);
16568 if (arg4 == NULL) SWIG_fail;
16569 temp4 = True;
16570 }
16571 }
16572 {
16573 PyThreadState* __tstate = wxPyBeginAllowThreads();
16574 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
16575
16576 wxPyEndAllowThreads(__tstate);
16577 if (PyErr_Occurred()) SWIG_fail;
16578 }
16579 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
16580 {
16581 if (temp1)
16582 delete arg1;
16583 }
16584 {
16585 if (temp4)
16586 delete arg4;
16587 }
16588 return resultobj;
16589 fail:
16590 {
16591 if (temp1)
16592 delete arg1;
16593 }
16594 {
16595 if (temp4)
16596 delete arg4;
16597 }
16598 return NULL;
16599 }
16600
16601
16602 static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
16603 PyObject *resultobj;
16604 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
16605 wxMetaFile *result;
16606 PyObject * obj0 = 0 ;
16607 char *kwnames[] = {
16608 (char *) "self", NULL
16609 };
16610
16611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
16612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
16613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16614 {
16615 PyThreadState* __tstate = wxPyBeginAllowThreads();
16616 result = (wxMetaFile *)(arg1)->Close();
16617
16618 wxPyEndAllowThreads(__tstate);
16619 if (PyErr_Occurred()) SWIG_fail;
16620 }
16621 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
16622 return resultobj;
16623 fail:
16624 return NULL;
16625 }
16626
16627
16628 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
16629 PyObject *obj;
16630 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16631 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16632 Py_INCREF(obj);
16633 return Py_BuildValue((char *)"");
16634 }
16635 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16636 PyObject *resultobj;
16637 wxPrintData *arg1 = 0 ;
16638 wxPrinterDC *result;
16639 PyObject * obj0 = 0 ;
16640 char *kwnames[] = {
16641 (char *) "printData", NULL
16642 };
16643
16644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16646 SWIG_POINTER_EXCEPTION | 0)) == -1)
16647 SWIG_fail;
16648 if (arg1 == NULL) {
16649 PyErr_SetString(PyExc_TypeError,"null reference");
16650 SWIG_fail;
16651 }
16652 {
16653 PyThreadState* __tstate = wxPyBeginAllowThreads();
16654 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16655
16656 wxPyEndAllowThreads(__tstate);
16657 if (PyErr_Occurred()) SWIG_fail;
16658 }
16659 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
16660 return resultobj;
16661 fail:
16662 return NULL;
16663 }
16664
16665
16666 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
16667 PyObject *obj;
16668 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16669 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16670 Py_INCREF(obj);
16671 return Py_BuildValue((char *)"");
16672 }
16673 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16674 PyObject *resultobj;
16675 int arg1 ;
16676 int arg2 ;
16677 int arg3 = (int) True ;
16678 int arg4 = (int) 1 ;
16679 wxImageList *result;
16680 PyObject * obj0 = 0 ;
16681 PyObject * obj1 = 0 ;
16682 PyObject * obj2 = 0 ;
16683 PyObject * obj3 = 0 ;
16684 char *kwnames[] = {
16685 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16686 };
16687
16688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16689 arg1 = (int) SWIG_AsInt(obj0);
16690 if (PyErr_Occurred()) SWIG_fail;
16691 arg2 = (int) SWIG_AsInt(obj1);
16692 if (PyErr_Occurred()) SWIG_fail;
16693 if (obj2) {
16694 arg3 = (int) SWIG_AsInt(obj2);
16695 if (PyErr_Occurred()) SWIG_fail;
16696 }
16697 if (obj3) {
16698 arg4 = (int) SWIG_AsInt(obj3);
16699 if (PyErr_Occurred()) SWIG_fail;
16700 }
16701 {
16702 PyThreadState* __tstate = wxPyBeginAllowThreads();
16703 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16704
16705 wxPyEndAllowThreads(__tstate);
16706 if (PyErr_Occurred()) SWIG_fail;
16707 }
16708 {
16709 resultobj = wxPyMake_wxObject(result);
16710 }
16711 return resultobj;
16712 fail:
16713 return NULL;
16714 }
16715
16716
16717 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16718 PyObject *resultobj;
16719 wxImageList *arg1 = (wxImageList *) 0 ;
16720 PyObject * obj0 = 0 ;
16721 char *kwnames[] = {
16722 (char *) "self", NULL
16723 };
16724
16725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16728 {
16729 PyThreadState* __tstate = wxPyBeginAllowThreads();
16730 delete arg1;
16731
16732 wxPyEndAllowThreads(__tstate);
16733 if (PyErr_Occurred()) SWIG_fail;
16734 }
16735 Py_INCREF(Py_None); resultobj = Py_None;
16736 return resultobj;
16737 fail:
16738 return NULL;
16739 }
16740
16741
16742 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16743 PyObject *resultobj;
16744 wxImageList *arg1 = (wxImageList *) 0 ;
16745 wxBitmap *arg2 = 0 ;
16746 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16747 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16748 int result;
16749 PyObject * obj0 = 0 ;
16750 PyObject * obj1 = 0 ;
16751 PyObject * obj2 = 0 ;
16752 char *kwnames[] = {
16753 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16754 };
16755
16756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16759 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16760 SWIG_POINTER_EXCEPTION | 0)) == -1)
16761 SWIG_fail;
16762 if (arg2 == NULL) {
16763 PyErr_SetString(PyExc_TypeError,"null reference");
16764 SWIG_fail;
16765 }
16766 if (obj2) {
16767 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16768 SWIG_POINTER_EXCEPTION | 0)) == -1)
16769 SWIG_fail;
16770 if (arg3 == NULL) {
16771 PyErr_SetString(PyExc_TypeError,"null reference");
16772 SWIG_fail;
16773 }
16774 }
16775 {
16776 PyThreadState* __tstate = wxPyBeginAllowThreads();
16777 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16778
16779 wxPyEndAllowThreads(__tstate);
16780 if (PyErr_Occurred()) SWIG_fail;
16781 }
16782 resultobj = SWIG_FromInt((int)result);
16783 return resultobj;
16784 fail:
16785 return NULL;
16786 }
16787
16788
16789 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16790 PyObject *resultobj;
16791 wxImageList *arg1 = (wxImageList *) 0 ;
16792 wxBitmap *arg2 = 0 ;
16793 wxColour *arg3 = 0 ;
16794 int result;
16795 wxColour temp3 ;
16796 PyObject * obj0 = 0 ;
16797 PyObject * obj1 = 0 ;
16798 PyObject * obj2 = 0 ;
16799 char *kwnames[] = {
16800 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16801 };
16802
16803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16806 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16807 SWIG_POINTER_EXCEPTION | 0)) == -1)
16808 SWIG_fail;
16809 if (arg2 == NULL) {
16810 PyErr_SetString(PyExc_TypeError,"null reference");
16811 SWIG_fail;
16812 }
16813 {
16814 arg3 = &temp3;
16815 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16816 }
16817 {
16818 PyThreadState* __tstate = wxPyBeginAllowThreads();
16819 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16820
16821 wxPyEndAllowThreads(__tstate);
16822 if (PyErr_Occurred()) SWIG_fail;
16823 }
16824 resultobj = SWIG_FromInt((int)result);
16825 return resultobj;
16826 fail:
16827 return NULL;
16828 }
16829
16830
16831 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16832 PyObject *resultobj;
16833 wxImageList *arg1 = (wxImageList *) 0 ;
16834 wxIcon *arg2 = 0 ;
16835 int result;
16836 PyObject * obj0 = 0 ;
16837 PyObject * obj1 = 0 ;
16838 char *kwnames[] = {
16839 (char *) "self",(char *) "icon", NULL
16840 };
16841
16842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16845 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16846 SWIG_POINTER_EXCEPTION | 0)) == -1)
16847 SWIG_fail;
16848 if (arg2 == NULL) {
16849 PyErr_SetString(PyExc_TypeError,"null reference");
16850 SWIG_fail;
16851 }
16852 {
16853 PyThreadState* __tstate = wxPyBeginAllowThreads();
16854 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16855
16856 wxPyEndAllowThreads(__tstate);
16857 if (PyErr_Occurred()) SWIG_fail;
16858 }
16859 resultobj = SWIG_FromInt((int)result);
16860 return resultobj;
16861 fail:
16862 return NULL;
16863 }
16864
16865
16866 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16867 PyObject *resultobj;
16868 wxImageList *arg1 = (wxImageList *) 0 ;
16869 int arg2 ;
16870 wxBitmap *arg3 = 0 ;
16871 wxBitmap const &arg4_defvalue = wxNullBitmap ;
16872 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
16873 bool result;
16874 PyObject * obj0 = 0 ;
16875 PyObject * obj1 = 0 ;
16876 PyObject * obj2 = 0 ;
16877 PyObject * obj3 = 0 ;
16878 char *kwnames[] = {
16879 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
16880 };
16881
16882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16885 arg2 = (int) SWIG_AsInt(obj1);
16886 if (PyErr_Occurred()) SWIG_fail;
16887 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16888 SWIG_POINTER_EXCEPTION | 0)) == -1)
16889 SWIG_fail;
16890 if (arg3 == NULL) {
16891 PyErr_SetString(PyExc_TypeError,"null reference");
16892 SWIG_fail;
16893 }
16894 if (obj3) {
16895 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
16896 SWIG_POINTER_EXCEPTION | 0)) == -1)
16897 SWIG_fail;
16898 if (arg4 == NULL) {
16899 PyErr_SetString(PyExc_TypeError,"null reference");
16900 SWIG_fail;
16901 }
16902 }
16903 {
16904 PyThreadState* __tstate = wxPyBeginAllowThreads();
16905 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
16906
16907 wxPyEndAllowThreads(__tstate);
16908 if (PyErr_Occurred()) SWIG_fail;
16909 }
16910 {
16911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16912 }
16913 return resultobj;
16914 fail:
16915 return NULL;
16916 }
16917
16918
16919 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16920 PyObject *resultobj;
16921 wxImageList *arg1 = (wxImageList *) 0 ;
16922 int arg2 ;
16923 wxDC *arg3 = 0 ;
16924 int arg4 ;
16925 int arg5 ;
16926 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16927 bool arg7 = (bool) (bool)False ;
16928 bool result;
16929 PyObject * obj0 = 0 ;
16930 PyObject * obj1 = 0 ;
16931 PyObject * obj2 = 0 ;
16932 PyObject * obj3 = 0 ;
16933 PyObject * obj4 = 0 ;
16934 PyObject * obj5 = 0 ;
16935 PyObject * obj6 = 0 ;
16936 char *kwnames[] = {
16937 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16938 };
16939
16940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16943 arg2 = (int) SWIG_AsInt(obj1);
16944 if (PyErr_Occurred()) SWIG_fail;
16945 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16946 SWIG_POINTER_EXCEPTION | 0)) == -1)
16947 SWIG_fail;
16948 if (arg3 == NULL) {
16949 PyErr_SetString(PyExc_TypeError,"null reference");
16950 SWIG_fail;
16951 }
16952 arg4 = (int) SWIG_AsInt(obj3);
16953 if (PyErr_Occurred()) SWIG_fail;
16954 arg5 = (int) SWIG_AsInt(obj4);
16955 if (PyErr_Occurred()) SWIG_fail;
16956 if (obj5) {
16957 arg6 = (int) SWIG_AsInt(obj5);
16958 if (PyErr_Occurred()) SWIG_fail;
16959 }
16960 if (obj6) {
16961 arg7 = (bool const) SWIG_AsBool(obj6);
16962 if (PyErr_Occurred()) SWIG_fail;
16963 }
16964 {
16965 PyThreadState* __tstate = wxPyBeginAllowThreads();
16966 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16967
16968 wxPyEndAllowThreads(__tstate);
16969 if (PyErr_Occurred()) SWIG_fail;
16970 }
16971 {
16972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16973 }
16974 return resultobj;
16975 fail:
16976 return NULL;
16977 }
16978
16979
16980 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16981 PyObject *resultobj;
16982 wxImageList *arg1 = (wxImageList *) 0 ;
16983 int result;
16984 PyObject * obj0 = 0 ;
16985 char *kwnames[] = {
16986 (char *) "self", NULL
16987 };
16988
16989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16992 {
16993 PyThreadState* __tstate = wxPyBeginAllowThreads();
16994 result = (int)(arg1)->GetImageCount();
16995
16996 wxPyEndAllowThreads(__tstate);
16997 if (PyErr_Occurred()) SWIG_fail;
16998 }
16999 resultobj = SWIG_FromInt((int)result);
17000 return resultobj;
17001 fail:
17002 return NULL;
17003 }
17004
17005
17006 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
17007 PyObject *resultobj;
17008 wxImageList *arg1 = (wxImageList *) 0 ;
17009 int arg2 ;
17010 bool result;
17011 PyObject * obj0 = 0 ;
17012 PyObject * obj1 = 0 ;
17013 char *kwnames[] = {
17014 (char *) "self",(char *) "index", NULL
17015 };
17016
17017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
17018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17020 arg2 = (int) SWIG_AsInt(obj1);
17021 if (PyErr_Occurred()) SWIG_fail;
17022 {
17023 PyThreadState* __tstate = wxPyBeginAllowThreads();
17024 result = (bool)(arg1)->Remove(arg2);
17025
17026 wxPyEndAllowThreads(__tstate);
17027 if (PyErr_Occurred()) SWIG_fail;
17028 }
17029 {
17030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17031 }
17032 return resultobj;
17033 fail:
17034 return NULL;
17035 }
17036
17037
17038 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
17039 PyObject *resultobj;
17040 wxImageList *arg1 = (wxImageList *) 0 ;
17041 bool result;
17042 PyObject * obj0 = 0 ;
17043 char *kwnames[] = {
17044 (char *) "self", NULL
17045 };
17046
17047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
17048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17050 {
17051 PyThreadState* __tstate = wxPyBeginAllowThreads();
17052 result = (bool)(arg1)->RemoveAll();
17053
17054 wxPyEndAllowThreads(__tstate);
17055 if (PyErr_Occurred()) SWIG_fail;
17056 }
17057 {
17058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17059 }
17060 return resultobj;
17061 fail:
17062 return NULL;
17063 }
17064
17065
17066 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
17067 PyObject *resultobj;
17068 wxImageList *arg1 = (wxImageList *) 0 ;
17069 int arg2 ;
17070 int *arg3 = 0 ;
17071 int *arg4 = 0 ;
17072 int temp3 ;
17073 int temp4 ;
17074 PyObject * obj0 = 0 ;
17075 PyObject * obj1 = 0 ;
17076 char *kwnames[] = {
17077 (char *) "self",(char *) "index", NULL
17078 };
17079
17080 arg3 = &temp3;
17081 arg4 = &temp4;
17082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
17083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17085 arg2 = (int) SWIG_AsInt(obj1);
17086 if (PyErr_Occurred()) SWIG_fail;
17087 {
17088 PyThreadState* __tstate = wxPyBeginAllowThreads();
17089 (arg1)->GetSize(arg2,*arg3,*arg4);
17090
17091 wxPyEndAllowThreads(__tstate);
17092 if (PyErr_Occurred()) SWIG_fail;
17093 }
17094 Py_INCREF(Py_None); resultobj = Py_None;
17095 {
17096 PyObject *o = PyInt_FromLong((long) (*arg3));
17097 resultobj = t_output_helper(resultobj,o);
17098 }
17099 {
17100 PyObject *o = PyInt_FromLong((long) (*arg4));
17101 resultobj = t_output_helper(resultobj,o);
17102 }
17103 return resultobj;
17104 fail:
17105 return NULL;
17106 }
17107
17108
17109 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
17110 PyObject *obj;
17111 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17112 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
17113 Py_INCREF(obj);
17114 return Py_BuildValue((char *)"");
17115 }
17116 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
17117 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
17118 return 1;
17119 }
17120
17121
17122 static PyObject *_wrap_NORMAL_FONT_get() {
17123 PyObject *pyobj;
17124
17125 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
17126 return pyobj;
17127 }
17128
17129
17130 static int _wrap_SMALL_FONT_set(PyObject *_val) {
17131 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
17132 return 1;
17133 }
17134
17135
17136 static PyObject *_wrap_SMALL_FONT_get() {
17137 PyObject *pyobj;
17138
17139 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
17140 return pyobj;
17141 }
17142
17143
17144 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
17145 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
17146 return 1;
17147 }
17148
17149
17150 static PyObject *_wrap_ITALIC_FONT_get() {
17151 PyObject *pyobj;
17152
17153 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
17154 return pyobj;
17155 }
17156
17157
17158 static int _wrap_SWISS_FONT_set(PyObject *_val) {
17159 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
17160 return 1;
17161 }
17162
17163
17164 static PyObject *_wrap_SWISS_FONT_get() {
17165 PyObject *pyobj;
17166
17167 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
17168 return pyobj;
17169 }
17170
17171
17172 static int _wrap_RED_PEN_set(PyObject *_val) {
17173 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
17174 return 1;
17175 }
17176
17177
17178 static PyObject *_wrap_RED_PEN_get() {
17179 PyObject *pyobj;
17180
17181 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
17182 return pyobj;
17183 }
17184
17185
17186 static int _wrap_CYAN_PEN_set(PyObject *_val) {
17187 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
17188 return 1;
17189 }
17190
17191
17192 static PyObject *_wrap_CYAN_PEN_get() {
17193 PyObject *pyobj;
17194
17195 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
17196 return pyobj;
17197 }
17198
17199
17200 static int _wrap_GREEN_PEN_set(PyObject *_val) {
17201 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
17202 return 1;
17203 }
17204
17205
17206 static PyObject *_wrap_GREEN_PEN_get() {
17207 PyObject *pyobj;
17208
17209 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
17210 return pyobj;
17211 }
17212
17213
17214 static int _wrap_BLACK_PEN_set(PyObject *_val) {
17215 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
17216 return 1;
17217 }
17218
17219
17220 static PyObject *_wrap_BLACK_PEN_get() {
17221 PyObject *pyobj;
17222
17223 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
17224 return pyobj;
17225 }
17226
17227
17228 static int _wrap_WHITE_PEN_set(PyObject *_val) {
17229 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
17230 return 1;
17231 }
17232
17233
17234 static PyObject *_wrap_WHITE_PEN_get() {
17235 PyObject *pyobj;
17236
17237 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
17238 return pyobj;
17239 }
17240
17241
17242 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
17243 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
17244 return 1;
17245 }
17246
17247
17248 static PyObject *_wrap_TRANSPARENT_PEN_get() {
17249 PyObject *pyobj;
17250
17251 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
17252 return pyobj;
17253 }
17254
17255
17256 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
17257 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
17258 return 1;
17259 }
17260
17261
17262 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
17263 PyObject *pyobj;
17264
17265 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
17266 return pyobj;
17267 }
17268
17269
17270 static int _wrap_GREY_PEN_set(PyObject *_val) {
17271 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
17272 return 1;
17273 }
17274
17275
17276 static PyObject *_wrap_GREY_PEN_get() {
17277 PyObject *pyobj;
17278
17279 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
17280 return pyobj;
17281 }
17282
17283
17284 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
17285 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
17286 return 1;
17287 }
17288
17289
17290 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
17291 PyObject *pyobj;
17292
17293 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17294 return pyobj;
17295 }
17296
17297
17298 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
17299 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
17300 return 1;
17301 }
17302
17303
17304 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
17305 PyObject *pyobj;
17306
17307 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17308 return pyobj;
17309 }
17310
17311
17312 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
17313 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
17314 return 1;
17315 }
17316
17317
17318 static PyObject *_wrap_BLUE_BRUSH_get() {
17319 PyObject *pyobj;
17320
17321 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17322 return pyobj;
17323 }
17324
17325
17326 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
17327 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
17328 return 1;
17329 }
17330
17331
17332 static PyObject *_wrap_GREEN_BRUSH_get() {
17333 PyObject *pyobj;
17334
17335 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17336 return pyobj;
17337 }
17338
17339
17340 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
17341 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
17342 return 1;
17343 }
17344
17345
17346 static PyObject *_wrap_WHITE_BRUSH_get() {
17347 PyObject *pyobj;
17348
17349 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17350 return pyobj;
17351 }
17352
17353
17354 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
17355 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
17356 return 1;
17357 }
17358
17359
17360 static PyObject *_wrap_BLACK_BRUSH_get() {
17361 PyObject *pyobj;
17362
17363 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
17364 return pyobj;
17365 }
17366
17367
17368 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
17369 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
17370 return 1;
17371 }
17372
17373
17374 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
17375 PyObject *pyobj;
17376
17377 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
17378 return pyobj;
17379 }
17380
17381
17382 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
17383 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
17384 return 1;
17385 }
17386
17387
17388 static PyObject *_wrap_CYAN_BRUSH_get() {
17389 PyObject *pyobj;
17390
17391 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17392 return pyobj;
17393 }
17394
17395
17396 static int _wrap_RED_BRUSH_set(PyObject *_val) {
17397 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
17398 return 1;
17399 }
17400
17401
17402 static PyObject *_wrap_RED_BRUSH_get() {
17403 PyObject *pyobj;
17404
17405 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
17406 return pyobj;
17407 }
17408
17409
17410 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
17411 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
17412 return 1;
17413 }
17414
17415
17416 static PyObject *_wrap_GREY_BRUSH_get() {
17417 PyObject *pyobj;
17418
17419 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17420 return pyobj;
17421 }
17422
17423
17424 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
17425 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
17426 return 1;
17427 }
17428
17429
17430 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
17431 PyObject *pyobj;
17432
17433 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17434 return pyobj;
17435 }
17436
17437
17438 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
17439 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
17440 return 1;
17441 }
17442
17443
17444 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
17445 PyObject *pyobj;
17446
17447 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17448 return pyobj;
17449 }
17450
17451
17452 static int _wrap_BLACK_set(PyObject *_val) {
17453 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
17454 return 1;
17455 }
17456
17457
17458 static PyObject *_wrap_BLACK_get() {
17459 PyObject *pyobj;
17460
17461 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
17462 return pyobj;
17463 }
17464
17465
17466 static int _wrap_WHITE_set(PyObject *_val) {
17467 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
17468 return 1;
17469 }
17470
17471
17472 static PyObject *_wrap_WHITE_get() {
17473 PyObject *pyobj;
17474
17475 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
17476 return pyobj;
17477 }
17478
17479
17480 static int _wrap_RED_set(PyObject *_val) {
17481 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
17482 return 1;
17483 }
17484
17485
17486 static PyObject *_wrap_RED_get() {
17487 PyObject *pyobj;
17488
17489 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
17490 return pyobj;
17491 }
17492
17493
17494 static int _wrap_BLUE_set(PyObject *_val) {
17495 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
17496 return 1;
17497 }
17498
17499
17500 static PyObject *_wrap_BLUE_get() {
17501 PyObject *pyobj;
17502
17503 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
17504 return pyobj;
17505 }
17506
17507
17508 static int _wrap_GREEN_set(PyObject *_val) {
17509 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
17510 return 1;
17511 }
17512
17513
17514 static PyObject *_wrap_GREEN_get() {
17515 PyObject *pyobj;
17516
17517 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
17518 return pyobj;
17519 }
17520
17521
17522 static int _wrap_CYAN_set(PyObject *_val) {
17523 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
17524 return 1;
17525 }
17526
17527
17528 static PyObject *_wrap_CYAN_get() {
17529 PyObject *pyobj;
17530
17531 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
17532 return pyobj;
17533 }
17534
17535
17536 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
17537 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
17538 return 1;
17539 }
17540
17541
17542 static PyObject *_wrap_LIGHT_GREY_get() {
17543 PyObject *pyobj;
17544
17545 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
17546 return pyobj;
17547 }
17548
17549
17550 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
17551 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
17552 return 1;
17553 }
17554
17555
17556 static PyObject *_wrap_STANDARD_CURSOR_get() {
17557 PyObject *pyobj;
17558
17559 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
17560 return pyobj;
17561 }
17562
17563
17564 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
17565 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
17566 return 1;
17567 }
17568
17569
17570 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
17571 PyObject *pyobj;
17572
17573 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17574 return pyobj;
17575 }
17576
17577
17578 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
17579 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
17580 return 1;
17581 }
17582
17583
17584 static PyObject *_wrap_CROSS_CURSOR_get() {
17585 PyObject *pyobj;
17586
17587 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17588 return pyobj;
17589 }
17590
17591
17592 static int _wrap_NullBitmap_set(PyObject *_val) {
17593 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
17594 return 1;
17595 }
17596
17597
17598 static PyObject *_wrap_NullBitmap_get() {
17599 PyObject *pyobj;
17600
17601 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
17602 return pyobj;
17603 }
17604
17605
17606 static int _wrap_NullIcon_set(PyObject *_val) {
17607 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
17608 return 1;
17609 }
17610
17611
17612 static PyObject *_wrap_NullIcon_get() {
17613 PyObject *pyobj;
17614
17615 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
17616 return pyobj;
17617 }
17618
17619
17620 static int _wrap_NullCursor_set(PyObject *_val) {
17621 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
17622 return 1;
17623 }
17624
17625
17626 static PyObject *_wrap_NullCursor_get() {
17627 PyObject *pyobj;
17628
17629 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
17630 return pyobj;
17631 }
17632
17633
17634 static int _wrap_NullPen_set(PyObject *_val) {
17635 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
17636 return 1;
17637 }
17638
17639
17640 static PyObject *_wrap_NullPen_get() {
17641 PyObject *pyobj;
17642
17643 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
17644 return pyobj;
17645 }
17646
17647
17648 static int _wrap_NullBrush_set(PyObject *_val) {
17649 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
17650 return 1;
17651 }
17652
17653
17654 static PyObject *_wrap_NullBrush_get() {
17655 PyObject *pyobj;
17656
17657 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
17658 return pyobj;
17659 }
17660
17661
17662 static int _wrap_NullPalette_set(PyObject *_val) {
17663 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17664 return 1;
17665 }
17666
17667
17668 static PyObject *_wrap_NullPalette_get() {
17669 PyObject *pyobj;
17670
17671 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
17672 return pyobj;
17673 }
17674
17675
17676 static int _wrap_NullFont_set(PyObject *_val) {
17677 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17678 return 1;
17679 }
17680
17681
17682 static PyObject *_wrap_NullFont_get() {
17683 PyObject *pyobj;
17684
17685 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
17686 return pyobj;
17687 }
17688
17689
17690 static int _wrap_NullColour_set(PyObject *_val) {
17691 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17692 return 1;
17693 }
17694
17695
17696 static PyObject *_wrap_NullColour_get() {
17697 PyObject *pyobj;
17698
17699 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17700 return pyobj;
17701 }
17702
17703
17704 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
17705 PyObject *resultobj;
17706 wxPenList *arg1 = (wxPenList *) 0 ;
17707 wxPen *arg2 = (wxPen *) 0 ;
17708 PyObject * obj0 = 0 ;
17709 PyObject * obj1 = 0 ;
17710 char *kwnames[] = {
17711 (char *) "self",(char *) "pen", NULL
17712 };
17713
17714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17717 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17719 {
17720 PyThreadState* __tstate = wxPyBeginAllowThreads();
17721 (arg1)->AddPen(arg2);
17722
17723 wxPyEndAllowThreads(__tstate);
17724 if (PyErr_Occurred()) SWIG_fail;
17725 }
17726 Py_INCREF(Py_None); resultobj = Py_None;
17727 return resultobj;
17728 fail:
17729 return NULL;
17730 }
17731
17732
17733 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17734 PyObject *resultobj;
17735 wxPenList *arg1 = (wxPenList *) 0 ;
17736 wxColour *arg2 = 0 ;
17737 int arg3 ;
17738 int arg4 ;
17739 wxPen *result;
17740 wxColour temp2 ;
17741 PyObject * obj0 = 0 ;
17742 PyObject * obj1 = 0 ;
17743 PyObject * obj2 = 0 ;
17744 PyObject * obj3 = 0 ;
17745 char *kwnames[] = {
17746 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17747 };
17748
17749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17752 {
17753 arg2 = &temp2;
17754 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17755 }
17756 arg3 = (int) SWIG_AsInt(obj2);
17757 if (PyErr_Occurred()) SWIG_fail;
17758 arg4 = (int) SWIG_AsInt(obj3);
17759 if (PyErr_Occurred()) SWIG_fail;
17760 {
17761 PyThreadState* __tstate = wxPyBeginAllowThreads();
17762 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17763
17764 wxPyEndAllowThreads(__tstate);
17765 if (PyErr_Occurred()) SWIG_fail;
17766 }
17767 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17768 return resultobj;
17769 fail:
17770 return NULL;
17771 }
17772
17773
17774 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17775 PyObject *resultobj;
17776 wxPenList *arg1 = (wxPenList *) 0 ;
17777 wxPen *arg2 = (wxPen *) 0 ;
17778 PyObject * obj0 = 0 ;
17779 PyObject * obj1 = 0 ;
17780 char *kwnames[] = {
17781 (char *) "self",(char *) "pen", NULL
17782 };
17783
17784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17787 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17789 {
17790 PyThreadState* __tstate = wxPyBeginAllowThreads();
17791 (arg1)->RemovePen(arg2);
17792
17793 wxPyEndAllowThreads(__tstate);
17794 if (PyErr_Occurred()) SWIG_fail;
17795 }
17796 Py_INCREF(Py_None); resultobj = Py_None;
17797 return resultobj;
17798 fail:
17799 return NULL;
17800 }
17801
17802
17803 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17804 PyObject *resultobj;
17805 wxPenList *arg1 = (wxPenList *) 0 ;
17806 int result;
17807 PyObject * obj0 = 0 ;
17808 char *kwnames[] = {
17809 (char *) "self", NULL
17810 };
17811
17812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17815 {
17816 PyThreadState* __tstate = wxPyBeginAllowThreads();
17817 result = (int)(arg1)->GetCount();
17818
17819 wxPyEndAllowThreads(__tstate);
17820 if (PyErr_Occurred()) SWIG_fail;
17821 }
17822 resultobj = SWIG_FromInt((int)result);
17823 return resultobj;
17824 fail:
17825 return NULL;
17826 }
17827
17828
17829 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17830 PyObject *obj;
17831 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17832 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17833 Py_INCREF(obj);
17834 return Py_BuildValue((char *)"");
17835 }
17836 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17837 PyObject *resultobj;
17838 wxBrushList *arg1 = (wxBrushList *) 0 ;
17839 wxBrush *arg2 = (wxBrush *) 0 ;
17840 PyObject * obj0 = 0 ;
17841 PyObject * obj1 = 0 ;
17842 char *kwnames[] = {
17843 (char *) "self",(char *) "brush", NULL
17844 };
17845
17846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17849 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17851 {
17852 PyThreadState* __tstate = wxPyBeginAllowThreads();
17853 (arg1)->AddBrush(arg2);
17854
17855 wxPyEndAllowThreads(__tstate);
17856 if (PyErr_Occurred()) SWIG_fail;
17857 }
17858 Py_INCREF(Py_None); resultobj = Py_None;
17859 return resultobj;
17860 fail:
17861 return NULL;
17862 }
17863
17864
17865 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17866 PyObject *resultobj;
17867 wxBrushList *arg1 = (wxBrushList *) 0 ;
17868 wxColour *arg2 = 0 ;
17869 int arg3 ;
17870 wxBrush *result;
17871 wxColour temp2 ;
17872 PyObject * obj0 = 0 ;
17873 PyObject * obj1 = 0 ;
17874 PyObject * obj2 = 0 ;
17875 char *kwnames[] = {
17876 (char *) "self",(char *) "colour",(char *) "style", NULL
17877 };
17878
17879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17882 {
17883 arg2 = &temp2;
17884 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17885 }
17886 arg3 = (int) SWIG_AsInt(obj2);
17887 if (PyErr_Occurred()) SWIG_fail;
17888 {
17889 PyThreadState* __tstate = wxPyBeginAllowThreads();
17890 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17891
17892 wxPyEndAllowThreads(__tstate);
17893 if (PyErr_Occurred()) SWIG_fail;
17894 }
17895 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17896 return resultobj;
17897 fail:
17898 return NULL;
17899 }
17900
17901
17902 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17903 PyObject *resultobj;
17904 wxBrushList *arg1 = (wxBrushList *) 0 ;
17905 wxBrush *arg2 = (wxBrush *) 0 ;
17906 PyObject * obj0 = 0 ;
17907 PyObject * obj1 = 0 ;
17908 char *kwnames[] = {
17909 (char *) "self",(char *) "brush", NULL
17910 };
17911
17912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17915 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17917 {
17918 PyThreadState* __tstate = wxPyBeginAllowThreads();
17919 (arg1)->RemoveBrush(arg2);
17920
17921 wxPyEndAllowThreads(__tstate);
17922 if (PyErr_Occurred()) SWIG_fail;
17923 }
17924 Py_INCREF(Py_None); resultobj = Py_None;
17925 return resultobj;
17926 fail:
17927 return NULL;
17928 }
17929
17930
17931 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17932 PyObject *resultobj;
17933 wxBrushList *arg1 = (wxBrushList *) 0 ;
17934 int result;
17935 PyObject * obj0 = 0 ;
17936 char *kwnames[] = {
17937 (char *) "self", NULL
17938 };
17939
17940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17943 {
17944 PyThreadState* __tstate = wxPyBeginAllowThreads();
17945 result = (int)(arg1)->GetCount();
17946
17947 wxPyEndAllowThreads(__tstate);
17948 if (PyErr_Occurred()) SWIG_fail;
17949 }
17950 resultobj = SWIG_FromInt((int)result);
17951 return resultobj;
17952 fail:
17953 return NULL;
17954 }
17955
17956
17957 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17958 PyObject *obj;
17959 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17960 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17961 Py_INCREF(obj);
17962 return Py_BuildValue((char *)"");
17963 }
17964 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17965 PyObject *resultobj;
17966 wxColourDatabase *result;
17967 char *kwnames[] = {
17968 NULL
17969 };
17970
17971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17972 {
17973 PyThreadState* __tstate = wxPyBeginAllowThreads();
17974 result = (wxColourDatabase *)new wxColourDatabase();
17975
17976 wxPyEndAllowThreads(__tstate);
17977 if (PyErr_Occurred()) SWIG_fail;
17978 }
17979 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17980 return resultobj;
17981 fail:
17982 return NULL;
17983 }
17984
17985
17986 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17987 PyObject *resultobj;
17988 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17989 PyObject * obj0 = 0 ;
17990 char *kwnames[] = {
17991 (char *) "self", NULL
17992 };
17993
17994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17997 {
17998 PyThreadState* __tstate = wxPyBeginAllowThreads();
17999 delete arg1;
18000
18001 wxPyEndAllowThreads(__tstate);
18002 if (PyErr_Occurred()) SWIG_fail;
18003 }
18004 Py_INCREF(Py_None); resultobj = Py_None;
18005 return resultobj;
18006 fail:
18007 return NULL;
18008 }
18009
18010
18011 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
18012 PyObject *resultobj;
18013 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18014 wxString *arg2 = 0 ;
18015 wxColour result;
18016 bool temp2 = False ;
18017 PyObject * obj0 = 0 ;
18018 PyObject * obj1 = 0 ;
18019 char *kwnames[] = {
18020 (char *) "self",(char *) "name", NULL
18021 };
18022
18023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
18024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18026 {
18027 arg2 = wxString_in_helper(obj1);
18028 if (arg2 == NULL) SWIG_fail;
18029 temp2 = True;
18030 }
18031 {
18032 PyThreadState* __tstate = wxPyBeginAllowThreads();
18033 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
18034
18035 wxPyEndAllowThreads(__tstate);
18036 if (PyErr_Occurred()) SWIG_fail;
18037 }
18038 {
18039 wxColour * resultptr;
18040 resultptr = new wxColour((wxColour &) result);
18041 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18042 }
18043 {
18044 if (temp2)
18045 delete arg2;
18046 }
18047 return resultobj;
18048 fail:
18049 {
18050 if (temp2)
18051 delete arg2;
18052 }
18053 return NULL;
18054 }
18055
18056
18057 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
18058 PyObject *resultobj;
18059 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18060 wxColour *arg2 = 0 ;
18061 wxString result;
18062 wxColour temp2 ;
18063 PyObject * obj0 = 0 ;
18064 PyObject * obj1 = 0 ;
18065 char *kwnames[] = {
18066 (char *) "self",(char *) "colour", NULL
18067 };
18068
18069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
18070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18072 {
18073 arg2 = &temp2;
18074 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18075 }
18076 {
18077 PyThreadState* __tstate = wxPyBeginAllowThreads();
18078 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
18079
18080 wxPyEndAllowThreads(__tstate);
18081 if (PyErr_Occurred()) SWIG_fail;
18082 }
18083 {
18084 #if wxUSE_UNICODE
18085 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18086 #else
18087 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18088 #endif
18089 }
18090 return resultobj;
18091 fail:
18092 return NULL;
18093 }
18094
18095
18096 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18097 PyObject *resultobj;
18098 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18099 wxString *arg2 = 0 ;
18100 wxColour *arg3 = 0 ;
18101 bool temp2 = False ;
18102 wxColour temp3 ;
18103 PyObject * obj0 = 0 ;
18104 PyObject * obj1 = 0 ;
18105 PyObject * obj2 = 0 ;
18106 char *kwnames[] = {
18107 (char *) "self",(char *) "name",(char *) "colour", NULL
18108 };
18109
18110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
18111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18113 {
18114 arg2 = wxString_in_helper(obj1);
18115 if (arg2 == NULL) SWIG_fail;
18116 temp2 = True;
18117 }
18118 {
18119 arg3 = &temp3;
18120 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18121 }
18122 {
18123 PyThreadState* __tstate = wxPyBeginAllowThreads();
18124 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
18125
18126 wxPyEndAllowThreads(__tstate);
18127 if (PyErr_Occurred()) SWIG_fail;
18128 }
18129 Py_INCREF(Py_None); resultobj = Py_None;
18130 {
18131 if (temp2)
18132 delete arg2;
18133 }
18134 return resultobj;
18135 fail:
18136 {
18137 if (temp2)
18138 delete arg2;
18139 }
18140 return NULL;
18141 }
18142
18143
18144 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
18145 PyObject *resultobj;
18146 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18147 wxString *arg2 = 0 ;
18148 int arg3 ;
18149 int arg4 ;
18150 int arg5 ;
18151 bool temp2 = False ;
18152 PyObject * obj0 = 0 ;
18153 PyObject * obj1 = 0 ;
18154 PyObject * obj2 = 0 ;
18155 PyObject * obj3 = 0 ;
18156 PyObject * obj4 = 0 ;
18157 char *kwnames[] = {
18158 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
18159 };
18160
18161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18164 {
18165 arg2 = wxString_in_helper(obj1);
18166 if (arg2 == NULL) SWIG_fail;
18167 temp2 = True;
18168 }
18169 arg3 = (int) SWIG_AsInt(obj2);
18170 if (PyErr_Occurred()) SWIG_fail;
18171 arg4 = (int) SWIG_AsInt(obj3);
18172 if (PyErr_Occurred()) SWIG_fail;
18173 arg5 = (int) SWIG_AsInt(obj4);
18174 if (PyErr_Occurred()) SWIG_fail;
18175 {
18176 PyThreadState* __tstate = wxPyBeginAllowThreads();
18177 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
18178
18179 wxPyEndAllowThreads(__tstate);
18180 if (PyErr_Occurred()) SWIG_fail;
18181 }
18182 Py_INCREF(Py_None); resultobj = Py_None;
18183 {
18184 if (temp2)
18185 delete arg2;
18186 }
18187 return resultobj;
18188 fail:
18189 {
18190 if (temp2)
18191 delete arg2;
18192 }
18193 return NULL;
18194 }
18195
18196
18197 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
18198 PyObject *obj;
18199 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18200 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
18201 Py_INCREF(obj);
18202 return Py_BuildValue((char *)"");
18203 }
18204 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18205 PyObject *resultobj;
18206 wxFontList *arg1 = (wxFontList *) 0 ;
18207 wxFont *arg2 = (wxFont *) 0 ;
18208 PyObject * obj0 = 0 ;
18209 PyObject * obj1 = 0 ;
18210 char *kwnames[] = {
18211 (char *) "self",(char *) "font", NULL
18212 };
18213
18214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
18215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18217 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18219 {
18220 PyThreadState* __tstate = wxPyBeginAllowThreads();
18221 (arg1)->AddFont(arg2);
18222
18223 wxPyEndAllowThreads(__tstate);
18224 if (PyErr_Occurred()) SWIG_fail;
18225 }
18226 Py_INCREF(Py_None); resultobj = Py_None;
18227 return resultobj;
18228 fail:
18229 return NULL;
18230 }
18231
18232
18233 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18234 PyObject *resultobj;
18235 wxFontList *arg1 = (wxFontList *) 0 ;
18236 int arg2 ;
18237 int arg3 ;
18238 int arg4 ;
18239 int arg5 ;
18240 bool arg6 = (bool) False ;
18241 wxString const &arg7_defvalue = wxPyEmptyString ;
18242 wxString *arg7 = (wxString *) &arg7_defvalue ;
18243 int arg8 = (int) wxFONTENCODING_DEFAULT ;
18244 wxFont *result;
18245 bool temp7 = False ;
18246 PyObject * obj0 = 0 ;
18247 PyObject * obj1 = 0 ;
18248 PyObject * obj2 = 0 ;
18249 PyObject * obj3 = 0 ;
18250 PyObject * obj4 = 0 ;
18251 PyObject * obj5 = 0 ;
18252 PyObject * obj6 = 0 ;
18253 PyObject * obj7 = 0 ;
18254 char *kwnames[] = {
18255 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
18256 };
18257
18258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
18259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18261 arg2 = (int) SWIG_AsInt(obj1);
18262 if (PyErr_Occurred()) SWIG_fail;
18263 arg3 = (int) SWIG_AsInt(obj2);
18264 if (PyErr_Occurred()) SWIG_fail;
18265 arg4 = (int) SWIG_AsInt(obj3);
18266 if (PyErr_Occurred()) SWIG_fail;
18267 arg5 = (int) SWIG_AsInt(obj4);
18268 if (PyErr_Occurred()) SWIG_fail;
18269 if (obj5) {
18270 arg6 = (bool) SWIG_AsBool(obj5);
18271 if (PyErr_Occurred()) SWIG_fail;
18272 }
18273 if (obj6) {
18274 {
18275 arg7 = wxString_in_helper(obj6);
18276 if (arg7 == NULL) SWIG_fail;
18277 temp7 = True;
18278 }
18279 }
18280 if (obj7) {
18281 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
18282 if (PyErr_Occurred()) SWIG_fail;
18283 }
18284 {
18285 PyThreadState* __tstate = wxPyBeginAllowThreads();
18286 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
18287
18288 wxPyEndAllowThreads(__tstate);
18289 if (PyErr_Occurred()) SWIG_fail;
18290 }
18291 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
18292 {
18293 if (temp7)
18294 delete arg7;
18295 }
18296 return resultobj;
18297 fail:
18298 {
18299 if (temp7)
18300 delete arg7;
18301 }
18302 return NULL;
18303 }
18304
18305
18306 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18307 PyObject *resultobj;
18308 wxFontList *arg1 = (wxFontList *) 0 ;
18309 wxFont *arg2 = (wxFont *) 0 ;
18310 PyObject * obj0 = 0 ;
18311 PyObject * obj1 = 0 ;
18312 char *kwnames[] = {
18313 (char *) "self",(char *) "font", NULL
18314 };
18315
18316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
18317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18319 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18321 {
18322 PyThreadState* __tstate = wxPyBeginAllowThreads();
18323 (arg1)->RemoveFont(arg2);
18324
18325 wxPyEndAllowThreads(__tstate);
18326 if (PyErr_Occurred()) SWIG_fail;
18327 }
18328 Py_INCREF(Py_None); resultobj = Py_None;
18329 return resultobj;
18330 fail:
18331 return NULL;
18332 }
18333
18334
18335 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
18336 PyObject *resultobj;
18337 wxFontList *arg1 = (wxFontList *) 0 ;
18338 int result;
18339 PyObject * obj0 = 0 ;
18340 char *kwnames[] = {
18341 (char *) "self", NULL
18342 };
18343
18344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
18345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18347 {
18348 PyThreadState* __tstate = wxPyBeginAllowThreads();
18349 result = (int)(arg1)->GetCount();
18350
18351 wxPyEndAllowThreads(__tstate);
18352 if (PyErr_Occurred()) SWIG_fail;
18353 }
18354 resultobj = SWIG_FromInt((int)result);
18355 return resultobj;
18356 fail:
18357 return NULL;
18358 }
18359
18360
18361 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
18362 PyObject *obj;
18363 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18364 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
18365 Py_INCREF(obj);
18366 return Py_BuildValue((char *)"");
18367 }
18368 static int _wrap_TheFontList_set(PyObject *_val) {
18369 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
18370 return 1;
18371 }
18372
18373
18374 static PyObject *_wrap_TheFontList_get() {
18375 PyObject *pyobj;
18376
18377 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
18378 return pyobj;
18379 }
18380
18381
18382 static int _wrap_ThePenList_set(PyObject *_val) {
18383 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
18384 return 1;
18385 }
18386
18387
18388 static PyObject *_wrap_ThePenList_get() {
18389 PyObject *pyobj;
18390
18391 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
18392 return pyobj;
18393 }
18394
18395
18396 static int _wrap_TheBrushList_set(PyObject *_val) {
18397 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
18398 return 1;
18399 }
18400
18401
18402 static PyObject *_wrap_TheBrushList_get() {
18403 PyObject *pyobj;
18404
18405 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
18406 return pyobj;
18407 }
18408
18409
18410 static int _wrap_TheColourDatabase_set(PyObject *_val) {
18411 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
18412 return 1;
18413 }
18414
18415
18416 static PyObject *_wrap_TheColourDatabase_get() {
18417 PyObject *pyobj;
18418
18419 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
18420 return pyobj;
18421 }
18422
18423
18424 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
18425 PyObject *resultobj;
18426 wxEffects *result;
18427 char *kwnames[] = {
18428 NULL
18429 };
18430
18431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
18432 {
18433 PyThreadState* __tstate = wxPyBeginAllowThreads();
18434 result = (wxEffects *)new wxEffects();
18435
18436 wxPyEndAllowThreads(__tstate);
18437 if (PyErr_Occurred()) SWIG_fail;
18438 }
18439 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
18440 return resultobj;
18441 fail:
18442 return NULL;
18443 }
18444
18445
18446 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18447 PyObject *resultobj;
18448 wxEffects *arg1 = (wxEffects *) 0 ;
18449 wxColour result;
18450 PyObject * obj0 = 0 ;
18451 char *kwnames[] = {
18452 (char *) "self", NULL
18453 };
18454
18455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
18456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18458 {
18459 PyThreadState* __tstate = wxPyBeginAllowThreads();
18460 result = ((wxEffects const *)arg1)->GetHighlightColour();
18461
18462 wxPyEndAllowThreads(__tstate);
18463 if (PyErr_Occurred()) SWIG_fail;
18464 }
18465 {
18466 wxColour * resultptr;
18467 resultptr = new wxColour((wxColour &) result);
18468 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18469 }
18470 return resultobj;
18471 fail:
18472 return NULL;
18473 }
18474
18475
18476 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18477 PyObject *resultobj;
18478 wxEffects *arg1 = (wxEffects *) 0 ;
18479 wxColour result;
18480 PyObject * obj0 = 0 ;
18481 char *kwnames[] = {
18482 (char *) "self", NULL
18483 };
18484
18485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
18486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18488 {
18489 PyThreadState* __tstate = wxPyBeginAllowThreads();
18490 result = ((wxEffects const *)arg1)->GetLightShadow();
18491
18492 wxPyEndAllowThreads(__tstate);
18493 if (PyErr_Occurred()) SWIG_fail;
18494 }
18495 {
18496 wxColour * resultptr;
18497 resultptr = new wxColour((wxColour &) result);
18498 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18499 }
18500 return resultobj;
18501 fail:
18502 return NULL;
18503 }
18504
18505
18506 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18507 PyObject *resultobj;
18508 wxEffects *arg1 = (wxEffects *) 0 ;
18509 wxColour result;
18510 PyObject * obj0 = 0 ;
18511 char *kwnames[] = {
18512 (char *) "self", NULL
18513 };
18514
18515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
18516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18518 {
18519 PyThreadState* __tstate = wxPyBeginAllowThreads();
18520 result = ((wxEffects const *)arg1)->GetFaceColour();
18521
18522 wxPyEndAllowThreads(__tstate);
18523 if (PyErr_Occurred()) SWIG_fail;
18524 }
18525 {
18526 wxColour * resultptr;
18527 resultptr = new wxColour((wxColour &) result);
18528 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18529 }
18530 return resultobj;
18531 fail:
18532 return NULL;
18533 }
18534
18535
18536 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18537 PyObject *resultobj;
18538 wxEffects *arg1 = (wxEffects *) 0 ;
18539 wxColour result;
18540 PyObject * obj0 = 0 ;
18541 char *kwnames[] = {
18542 (char *) "self", NULL
18543 };
18544
18545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
18546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18548 {
18549 PyThreadState* __tstate = wxPyBeginAllowThreads();
18550 result = ((wxEffects const *)arg1)->GetMediumShadow();
18551
18552 wxPyEndAllowThreads(__tstate);
18553 if (PyErr_Occurred()) SWIG_fail;
18554 }
18555 {
18556 wxColour * resultptr;
18557 resultptr = new wxColour((wxColour &) result);
18558 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18559 }
18560 return resultobj;
18561 fail:
18562 return NULL;
18563 }
18564
18565
18566 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18567 PyObject *resultobj;
18568 wxEffects *arg1 = (wxEffects *) 0 ;
18569 wxColour result;
18570 PyObject * obj0 = 0 ;
18571 char *kwnames[] = {
18572 (char *) "self", NULL
18573 };
18574
18575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
18576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18578 {
18579 PyThreadState* __tstate = wxPyBeginAllowThreads();
18580 result = ((wxEffects const *)arg1)->GetDarkShadow();
18581
18582 wxPyEndAllowThreads(__tstate);
18583 if (PyErr_Occurred()) SWIG_fail;
18584 }
18585 {
18586 wxColour * resultptr;
18587 resultptr = new wxColour((wxColour &) result);
18588 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18589 }
18590 return resultobj;
18591 fail:
18592 return NULL;
18593 }
18594
18595
18596 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18597 PyObject *resultobj;
18598 wxEffects *arg1 = (wxEffects *) 0 ;
18599 wxColour *arg2 = 0 ;
18600 wxColour temp2 ;
18601 PyObject * obj0 = 0 ;
18602 PyObject * obj1 = 0 ;
18603 char *kwnames[] = {
18604 (char *) "self",(char *) "c", NULL
18605 };
18606
18607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
18608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18610 {
18611 arg2 = &temp2;
18612 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18613 }
18614 {
18615 PyThreadState* __tstate = wxPyBeginAllowThreads();
18616 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18617
18618 wxPyEndAllowThreads(__tstate);
18619 if (PyErr_Occurred()) SWIG_fail;
18620 }
18621 Py_INCREF(Py_None); resultobj = Py_None;
18622 return resultobj;
18623 fail:
18624 return NULL;
18625 }
18626
18627
18628 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18629 PyObject *resultobj;
18630 wxEffects *arg1 = (wxEffects *) 0 ;
18631 wxColour *arg2 = 0 ;
18632 wxColour temp2 ;
18633 PyObject * obj0 = 0 ;
18634 PyObject * obj1 = 0 ;
18635 char *kwnames[] = {
18636 (char *) "self",(char *) "c", NULL
18637 };
18638
18639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
18640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18642 {
18643 arg2 = &temp2;
18644 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18645 }
18646 {
18647 PyThreadState* __tstate = wxPyBeginAllowThreads();
18648 (arg1)->SetLightShadow((wxColour const &)*arg2);
18649
18650 wxPyEndAllowThreads(__tstate);
18651 if (PyErr_Occurred()) SWIG_fail;
18652 }
18653 Py_INCREF(Py_None); resultobj = Py_None;
18654 return resultobj;
18655 fail:
18656 return NULL;
18657 }
18658
18659
18660 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18661 PyObject *resultobj;
18662 wxEffects *arg1 = (wxEffects *) 0 ;
18663 wxColour *arg2 = 0 ;
18664 wxColour temp2 ;
18665 PyObject * obj0 = 0 ;
18666 PyObject * obj1 = 0 ;
18667 char *kwnames[] = {
18668 (char *) "self",(char *) "c", NULL
18669 };
18670
18671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18674 {
18675 arg2 = &temp2;
18676 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18677 }
18678 {
18679 PyThreadState* __tstate = wxPyBeginAllowThreads();
18680 (arg1)->SetFaceColour((wxColour const &)*arg2);
18681
18682 wxPyEndAllowThreads(__tstate);
18683 if (PyErr_Occurred()) SWIG_fail;
18684 }
18685 Py_INCREF(Py_None); resultobj = Py_None;
18686 return resultobj;
18687 fail:
18688 return NULL;
18689 }
18690
18691
18692 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18693 PyObject *resultobj;
18694 wxEffects *arg1 = (wxEffects *) 0 ;
18695 wxColour *arg2 = 0 ;
18696 wxColour temp2 ;
18697 PyObject * obj0 = 0 ;
18698 PyObject * obj1 = 0 ;
18699 char *kwnames[] = {
18700 (char *) "self",(char *) "c", NULL
18701 };
18702
18703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18706 {
18707 arg2 = &temp2;
18708 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18709 }
18710 {
18711 PyThreadState* __tstate = wxPyBeginAllowThreads();
18712 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18713
18714 wxPyEndAllowThreads(__tstate);
18715 if (PyErr_Occurred()) SWIG_fail;
18716 }
18717 Py_INCREF(Py_None); resultobj = Py_None;
18718 return resultobj;
18719 fail:
18720 return NULL;
18721 }
18722
18723
18724 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18725 PyObject *resultobj;
18726 wxEffects *arg1 = (wxEffects *) 0 ;
18727 wxColour *arg2 = 0 ;
18728 wxColour temp2 ;
18729 PyObject * obj0 = 0 ;
18730 PyObject * obj1 = 0 ;
18731 char *kwnames[] = {
18732 (char *) "self",(char *) "c", NULL
18733 };
18734
18735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18738 {
18739 arg2 = &temp2;
18740 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18741 }
18742 {
18743 PyThreadState* __tstate = wxPyBeginAllowThreads();
18744 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18745
18746 wxPyEndAllowThreads(__tstate);
18747 if (PyErr_Occurred()) SWIG_fail;
18748 }
18749 Py_INCREF(Py_None); resultobj = Py_None;
18750 return resultobj;
18751 fail:
18752 return NULL;
18753 }
18754
18755
18756 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18757 PyObject *resultobj;
18758 wxEffects *arg1 = (wxEffects *) 0 ;
18759 wxColour *arg2 = 0 ;
18760 wxColour *arg3 = 0 ;
18761 wxColour *arg4 = 0 ;
18762 wxColour *arg5 = 0 ;
18763 wxColour *arg6 = 0 ;
18764 wxColour temp2 ;
18765 wxColour temp3 ;
18766 wxColour temp4 ;
18767 wxColour temp5 ;
18768 wxColour temp6 ;
18769 PyObject * obj0 = 0 ;
18770 PyObject * obj1 = 0 ;
18771 PyObject * obj2 = 0 ;
18772 PyObject * obj3 = 0 ;
18773 PyObject * obj4 = 0 ;
18774 PyObject * obj5 = 0 ;
18775 char *kwnames[] = {
18776 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18777 };
18778
18779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18782 {
18783 arg2 = &temp2;
18784 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18785 }
18786 {
18787 arg3 = &temp3;
18788 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18789 }
18790 {
18791 arg4 = &temp4;
18792 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18793 }
18794 {
18795 arg5 = &temp5;
18796 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18797 }
18798 {
18799 arg6 = &temp6;
18800 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18801 }
18802 {
18803 PyThreadState* __tstate = wxPyBeginAllowThreads();
18804 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18805
18806 wxPyEndAllowThreads(__tstate);
18807 if (PyErr_Occurred()) SWIG_fail;
18808 }
18809 Py_INCREF(Py_None); resultobj = Py_None;
18810 return resultobj;
18811 fail:
18812 return NULL;
18813 }
18814
18815
18816 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18817 PyObject *resultobj;
18818 wxEffects *arg1 = (wxEffects *) 0 ;
18819 wxDC *arg2 = 0 ;
18820 wxRect *arg3 = 0 ;
18821 int arg4 = (int) 1 ;
18822 wxRect temp3 ;
18823 PyObject * obj0 = 0 ;
18824 PyObject * obj1 = 0 ;
18825 PyObject * obj2 = 0 ;
18826 PyObject * obj3 = 0 ;
18827 char *kwnames[] = {
18828 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18829 };
18830
18831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18834 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18835 SWIG_POINTER_EXCEPTION | 0)) == -1)
18836 SWIG_fail;
18837 if (arg2 == NULL) {
18838 PyErr_SetString(PyExc_TypeError,"null reference");
18839 SWIG_fail;
18840 }
18841 {
18842 arg3 = &temp3;
18843 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18844 }
18845 if (obj3) {
18846 arg4 = (int) SWIG_AsInt(obj3);
18847 if (PyErr_Occurred()) SWIG_fail;
18848 }
18849 {
18850 PyThreadState* __tstate = wxPyBeginAllowThreads();
18851 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18852
18853 wxPyEndAllowThreads(__tstate);
18854 if (PyErr_Occurred()) SWIG_fail;
18855 }
18856 Py_INCREF(Py_None); resultobj = Py_None;
18857 return resultobj;
18858 fail:
18859 return NULL;
18860 }
18861
18862
18863 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18864 PyObject *resultobj;
18865 wxEffects *arg1 = (wxEffects *) 0 ;
18866 wxRect *arg2 = 0 ;
18867 wxDC *arg3 = 0 ;
18868 wxBitmap *arg4 = 0 ;
18869 bool result;
18870 wxRect temp2 ;
18871 PyObject * obj0 = 0 ;
18872 PyObject * obj1 = 0 ;
18873 PyObject * obj2 = 0 ;
18874 PyObject * obj3 = 0 ;
18875 char *kwnames[] = {
18876 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18877 };
18878
18879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18882 {
18883 arg2 = &temp2;
18884 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18885 }
18886 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18887 SWIG_POINTER_EXCEPTION | 0)) == -1)
18888 SWIG_fail;
18889 if (arg3 == NULL) {
18890 PyErr_SetString(PyExc_TypeError,"null reference");
18891 SWIG_fail;
18892 }
18893 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18894 SWIG_POINTER_EXCEPTION | 0)) == -1)
18895 SWIG_fail;
18896 if (arg4 == NULL) {
18897 PyErr_SetString(PyExc_TypeError,"null reference");
18898 SWIG_fail;
18899 }
18900 {
18901 PyThreadState* __tstate = wxPyBeginAllowThreads();
18902 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18903
18904 wxPyEndAllowThreads(__tstate);
18905 if (PyErr_Occurred()) SWIG_fail;
18906 }
18907 {
18908 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18909 }
18910 return resultobj;
18911 fail:
18912 return NULL;
18913 }
18914
18915
18916 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18917 PyObject *obj;
18918 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18919 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18920 Py_INCREF(obj);
18921 return Py_BuildValue((char *)"");
18922 }
18923 static PyMethodDef SwigMethods[] = {
18924 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18925 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18926 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18927 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18928 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18929 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18930 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
18931 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18932 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
18933 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
18934 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18935 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18936 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18937 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18938 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
18939 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
18940 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
18941 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
18942 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18943 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18944 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
18945 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
18946 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18947 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18948 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18949 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18950 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18951 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18952 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18953 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18954 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18955 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18956 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18957 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18958 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18959 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18960 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18961 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18962 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18963 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18964 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18965 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18966 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18967 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
18968 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS },
18969 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
18970 { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS },
18971 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS },
18972 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
18973 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
18974 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
18975 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18976 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18977 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18978 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18979 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18980 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18981 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18982 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18983 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18984 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18985 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18986 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
18987 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
18988 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18989 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18990 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
18991 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
18992 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
18993 { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
18994 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
18995 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
18996 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
18997 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
18998 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
18999 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS },
19000 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
19001 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
19002 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
19003 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
19004 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
19005 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
19006 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
19007 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
19008 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
19009 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
19010 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
19011 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
19012 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
19013 { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
19014 { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
19015 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
19016 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
19017 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
19018 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
19019 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
19020 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
19021 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
19022 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
19023 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
19024 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
19025 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
19026 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
19027 { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS },
19028 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS },
19029 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
19030 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
19031 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
19032 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
19033 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
19034 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
19035 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
19036 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS },
19037 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
19038 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
19039 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
19040 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
19041 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
19042 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
19043 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
19044 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
19045 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
19046 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
19047 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
19048 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
19049 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
19050 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
19051 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
19052 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
19053 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
19054 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
19055 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
19056 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
19057 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
19058 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
19059 { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS },
19060 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS },
19061 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
19062 { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS },
19063 { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS },
19064 { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS },
19065 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS },
19066 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
19067 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
19068 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS },
19069 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
19070 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
19071 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
19072 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
19073 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
19074 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
19075 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
19076 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
19077 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
19078 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
19079 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
19080 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
19081 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
19082 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
19083 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
19084 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
19085 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
19086 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
19087 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
19088 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
19089 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
19090 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
19091 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
19092 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
19093 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
19094 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
19095 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
19096 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
19097 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
19098 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
19099 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
19100 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
19101 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
19102 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
19103 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
19104 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
19105 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
19106 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
19107 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
19108 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
19109 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
19110 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
19111 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19112 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19113 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
19114 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
19115 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
19116 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
19117 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
19118 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
19119 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
19120 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
19121 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
19122 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
19123 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
19124 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
19125 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
19126 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
19127 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
19128 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
19129 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
19130 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
19131 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
19132 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
19133 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
19134 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
19135 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
19136 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
19137 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
19138 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
19139 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
19140 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
19141 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
19142 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
19143 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
19144 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
19145 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
19146 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
19147 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
19148 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
19149 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
19150 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
19151 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
19152 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
19153 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
19154 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
19155 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS },
19156 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
19157 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
19158 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
19159 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
19160 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
19161 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
19162 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
19163 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
19164 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
19165 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
19166 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
19167 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
19168 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
19169 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
19170 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
19171 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
19172 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
19173 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
19174 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
19175 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
19176 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
19177 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
19178 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
19179 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19180 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
19181 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
19182 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
19183 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
19184 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
19185 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
19186 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
19187 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
19188 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
19189 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
19190 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19191 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
19192 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
19193 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
19194 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
19195 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
19196 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
19197 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
19198 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
19199 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
19200 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
19201 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
19202 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
19203 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
19204 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
19205 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
19206 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
19207 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
19208 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
19209 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
19210 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
19211 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
19212 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
19213 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
19214 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
19215 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
19216 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
19217 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
19218 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
19219 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
19220 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
19221 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
19222 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
19223 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
19224 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
19225 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
19226 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
19227 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
19228 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
19229 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
19230 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
19231 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
19232 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
19233 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
19234 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
19235 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
19236 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
19237 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
19238 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
19239 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
19240 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
19241 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
19242 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
19243 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
19244 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
19245 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
19246 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
19247 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
19248 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
19249 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
19250 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
19251 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
19252 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS },
19253 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
19254 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS },
19255 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
19256 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS },
19257 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
19258 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS },
19259 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
19260 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS },
19261 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
19262 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS },
19263 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
19264 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS },
19265 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
19266 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS },
19267 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
19268 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
19269 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
19270 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
19271 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
19272 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
19273 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
19274 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS },
19275 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
19276 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
19277 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS },
19278 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
19279 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS },
19280 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
19281 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS },
19282 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
19283 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS },
19284 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
19285 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS },
19286 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
19287 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS },
19288 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
19289 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS },
19290 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
19291 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
19292 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
19293 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
19294 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
19295 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
19296 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
19297 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
19298 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
19299 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
19300 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
19301 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
19302 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
19303 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
19304 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
19305 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
19306 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
19307 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
19308 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
19309 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
19310 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
19311 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
19312 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
19313 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
19314 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
19315 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
19316 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
19317 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
19318 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
19319 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
19320 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
19321 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
19322 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
19323 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
19324 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
19325 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
19326 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
19327 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
19328 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
19329 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
19330 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
19331 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
19332 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
19333 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
19334 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
19335 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
19336 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
19337 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
19338 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
19339 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
19340 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
19341 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
19342 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
19343 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
19344 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
19345 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
19346 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
19347 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
19348 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
19349 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
19350 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
19351 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
19352 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS },
19353 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
19354 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
19355 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
19356 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS },
19357 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
19358 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
19359 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
19360 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
19361 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
19362 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
19363 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS },
19364 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
19365 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
19366 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
19367 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
19368 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
19369 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
19370 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
19371 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
19372 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
19373 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
19374 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
19375 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
19376 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
19377 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
19378 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
19379 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
19380 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
19381 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
19382 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
19383 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
19384 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
19385 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
19386 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
19387 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
19388 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
19389 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
19390 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
19391 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
19392 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
19393 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
19394 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
19395 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
19396 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
19397 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
19398 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
19399 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
19400 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
19401 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
19402 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
19403 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
19404 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
19405 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
19406 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
19407 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
19408 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS },
19409 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
19410 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
19411 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
19412 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
19413 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
19414 { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
19415 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
19416 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
19417 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
19418 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
19419 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
19420 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
19421 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
19422 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
19423 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
19424 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
19425 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
19426 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
19427 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
19428 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
19429 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
19430 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
19431 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
19432 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
19433 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
19434 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
19435 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
19436 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
19437 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
19438 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
19439 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
19440 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
19441 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
19442 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
19443 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
19444 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
19445 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
19446 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
19447 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
19448 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
19449 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
19450 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
19451 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
19452 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
19453 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
19454 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
19455 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
19456 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
19457 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
19458 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
19459 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
19460 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
19461 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
19462 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
19463 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
19464 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
19465 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
19466 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
19467 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
19468 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
19469 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
19470 { NULL, NULL }
19471 };
19472
19473
19474 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
19475
19476 static void *_p_wxControlTo_p_wxWindow(void *x) {
19477 return (void *)((wxWindow *) ((wxControl *) x));
19478 }
19479 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
19480 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
19481 }
19482 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
19483 return (void *)((wxWindow *) ((wxMenuBar *) x));
19484 }
19485 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
19486 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
19487 }
19488 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
19489 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
19490 }
19491 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
19492 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
19493 }
19494 static void *_p_wxPenTo_p_wxObject(void *x) {
19495 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
19496 }
19497 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
19498 return (void *)((wxObject *) ((wxRegionIterator *) x));
19499 }
19500 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
19501 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
19502 }
19503 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
19504 return (void *)((wxObject *) ((wxSizerItem *) x));
19505 }
19506 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
19507 return (void *)((wxObject *) ((wxColourDatabase *) x));
19508 }
19509 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
19510 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
19511 }
19512 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
19513 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
19514 }
19515 static void *_p_wxIconTo_p_wxObject(void *x) {
19516 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
19517 }
19518 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
19519 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
19520 }
19521 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
19522 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
19523 }
19524 static void *_p_wxSizerTo_p_wxObject(void *x) {
19525 return (void *)((wxObject *) ((wxSizer *) x));
19526 }
19527 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
19528 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
19529 }
19530 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
19531 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
19532 }
19533 static void *_p_wxPenListTo_p_wxObject(void *x) {
19534 return (void *)((wxObject *) ((wxPenList *) x));
19535 }
19536 static void *_p_wxEventTo_p_wxObject(void *x) {
19537 return (void *)((wxObject *) ((wxEvent *) x));
19538 }
19539 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
19540 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
19541 }
19542 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
19543 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
19544 }
19545 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
19546 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
19547 }
19548 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
19549 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
19550 }
19551 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
19552 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
19553 }
19554 static void *_p_wxDCTo_p_wxObject(void *x) {
19555 return (void *)((wxObject *) ((wxDC *) x));
19556 }
19557 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
19558 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
19559 }
19560 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
19561 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
19562 }
19563 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
19564 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
19565 }
19566 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
19567 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
19568 }
19569 static void *_p_wxControlTo_p_wxObject(void *x) {
19570 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
19571 }
19572 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
19573 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
19574 }
19575 static void *_p_wxClientDCTo_p_wxObject(void *x) {
19576 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
19577 }
19578 static void *_p_wxFSFileTo_p_wxObject(void *x) {
19579 return (void *)((wxObject *) ((wxFSFile *) x));
19580 }
19581 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
19582 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
19583 }
19584 static void *_p_wxRegionTo_p_wxObject(void *x) {
19585 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
19586 }
19587 static void *_p_wxPySizerTo_p_wxObject(void *x) {
19588 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
19589 }
19590 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
19591 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
19592 }
19593 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
19594 return (void *)((wxObject *) ((wxGDIObject *) x));
19595 }
19596 static void *_p_wxEffectsTo_p_wxObject(void *x) {
19597 return (void *)((wxObject *) ((wxEffects *) x));
19598 }
19599 static void *_p_wxPyEventTo_p_wxObject(void *x) {
19600 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
19601 }
19602 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
19603 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
19604 }
19605 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
19606 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
19607 }
19608 static void *_p_wxShowEventTo_p_wxObject(void *x) {
19609 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
19610 }
19611 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
19612 return (void *)((wxObject *) ((wxMenuItem *) x));
19613 }
19614 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
19615 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
19616 }
19617 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
19618 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
19619 }
19620 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
19621 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
19622 }
19623 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
19624 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
19625 }
19626 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
19627 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
19628 }
19629 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
19630 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
19631 }
19632 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
19633 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
19634 }
19635 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
19636 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
19637 }
19638 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
19639 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19640 }
19641 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19642 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19643 }
19644 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19645 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19646 }
19647 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19648 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19649 }
19650 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19651 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19652 }
19653 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19654 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19655 }
19656 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19657 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19658 }
19659 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19660 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19661 }
19662 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19663 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19664 }
19665 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19666 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19667 }
19668 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19669 return (void *)((wxObject *) ((wxImageHandler *) x));
19670 }
19671 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19672 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19673 }
19674 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19675 return (void *)((wxObject *) ((wxEvtHandler *) x));
19676 }
19677 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19678 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19679 }
19680 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19681 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19682 }
19683 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19684 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19685 }
19686 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19687 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19688 }
19689 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19690 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19691 }
19692 static void *_p_wxImageTo_p_wxObject(void *x) {
19693 return (void *)((wxObject *) ((wxImage *) x));
19694 }
19695 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19696 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19697 }
19698 static void *_p_wxPaletteTo_p_wxObject(void *x) {
19699 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19700 }
19701 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19702 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19703 }
19704 static void *_p_wxImageListTo_p_wxObject(void *x) {
19705 return (void *)((wxObject *) ((wxImageList *) x));
19706 }
19707 static void *_p_wxCursorTo_p_wxObject(void *x) {
19708 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19709 }
19710 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19711 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19712 }
19713 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19714 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19715 }
19716 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19717 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19718 }
19719 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19720 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19721 }
19722 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19723 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19724 }
19725 static void *_p_wxWindowTo_p_wxObject(void *x) {
19726 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19727 }
19728 static void *_p_wxMenuTo_p_wxObject(void *x) {
19729 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19730 }
19731 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19732 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19733 }
19734 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19735 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19736 }
19737 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19738 return (void *)((wxObject *) ((wxBrushList *) x));
19739 }
19740 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19741 return (void *)((wxObject *) ((wxFileSystem *) x));
19742 }
19743 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19744 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19745 }
19746 static void *_p_wxMaskTo_p_wxObject(void *x) {
19747 return (void *)((wxObject *) ((wxMask *) x));
19748 }
19749 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19750 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19751 }
19752 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19753 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19754 }
19755 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19756 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19757 }
19758 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19759 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19760 }
19761 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19762 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19763 }
19764 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19765 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19766 }
19767 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19768 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19769 }
19770 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19771 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19772 }
19773 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19774 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19775 }
19776 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19777 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19778 }
19779 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19780 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19781 }
19782 static void *_p_wxFontTo_p_wxObject(void *x) {
19783 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19784 }
19785 static void *_p_wxBrushTo_p_wxObject(void *x) {
19786 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19787 }
19788 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19789 return (void *)((wxObject *) ((wxMetaFile *) x));
19790 }
19791 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19792 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19793 }
19794 static void *_p_wxColourTo_p_wxObject(void *x) {
19795 return (void *)((wxObject *) ((wxColour *) x));
19796 }
19797 static void *_p_wxFontListTo_p_wxObject(void *x) {
19798 return (void *)((wxObject *) ((wxFontList *) x));
19799 }
19800 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19801 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19802 }
19803 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19804 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19805 }
19806 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19807 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19808 }
19809 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19810 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19811 }
19812 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19813 return (void *)((wxDC *) ((wxScreenDC *) x));
19814 }
19815 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19816 return (void *)((wxDC *) ((wxMirrorDC *) x));
19817 }
19818 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19819 return (void *)((wxDC *) ((wxMemoryDC *) x));
19820 }
19821 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19822 return (void *)((wxDC *) ((wxWindowDC *) x));
19823 }
19824 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19825 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19826 }
19827 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19828 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19829 }
19830 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19831 return (void *)((wxDC *) ((wxClientDC *) x));
19832 }
19833 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19834 return (void *)((wxDC *) ((wxPaintDC *) x));
19835 }
19836 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19837 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19838 }
19839 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19840 return (void *)((wxDC *) ((wxPrinterDC *) x));
19841 }
19842 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19843 return (void *)((wxGDIObject *) ((wxIcon *) x));
19844 }
19845 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19846 return (void *)((wxGDIObject *) ((wxPalette *) x));
19847 }
19848 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19849 return (void *)((wxGDIObject *) ((wxPen *) x));
19850 }
19851 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19852 return (void *)((wxGDIObject *) ((wxFont *) x));
19853 }
19854 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19855 return (void *)((wxGDIObject *) ((wxCursor *) x));
19856 }
19857 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19858 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19859 }
19860 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19861 return (void *)((wxGDIObject *) ((wxRegion *) x));
19862 }
19863 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19864 return (void *)((wxGDIObject *) ((wxBrush *) x));
19865 }
19866 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}};
19867 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}};
19868 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}};
19869 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}};
19870 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}};
19871 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}};
19872 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}};
19873 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}};
19874 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}};
19875 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}};
19876 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}};
19877 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}};
19878 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}};
19879 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}};
19880 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}};
19881 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}};
19882 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}};
19883 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}};
19884 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}};
19885 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}};
19886 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}};
19887 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}};
19888 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}};
19889 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}};
19890 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}};
19891 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}};
19892 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}};
19893 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}};
19894 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}};
19895 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}};
19896 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}};
19897 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}};
19898 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}};
19899 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}};
19900 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}};
19901 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}};
19902 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}};
19903 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}};
19904 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}};
19905 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}};
19906 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}};
19907 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}};
19908 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}};
19909 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}};
19910 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}};
19911 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}};
19912 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}};
19913 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}};
19914 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}};
19915 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}};
19916 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}};
19917 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}};
19918 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}};
19919 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}};
19920 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}};
19921
19922 static swig_type_info *swig_types_initial[] = {
19923 _swigt__p_wxPostScriptDC,
19924 _swigt__p_wxBrush,
19925 _swigt__p_wxColour,
19926 _swigt__p_wxDC,
19927 _swigt__p_wxMirrorDC,
19928 _swigt__p_byte,
19929 _swigt__p_wxPyFontEnumerator,
19930 _swigt__p_char,
19931 _swigt__p_wxIconLocation,
19932 _swigt__p_wxImage,
19933 _swigt__p_wxMetaFileDC,
19934 _swigt__p_wxMask,
19935 _swigt__p_wxSize,
19936 _swigt__p_wxFont,
19937 _swigt__p_wxWindow,
19938 _swigt__p_double,
19939 _swigt__p_wxMemoryDC,
19940 _swigt__p_wxFontMapper,
19941 _swigt__p_wxEffects,
19942 _swigt__p_wxNativeEncodingInfo,
19943 _swigt__p_wxPalette,
19944 _swigt__p_wxBitmap,
19945 _swigt__p_wxObject,
19946 _swigt__p_wxRegionIterator,
19947 _swigt__p_wxRect,
19948 _swigt__p_wxString,
19949 _swigt__p_wxPrinterDC,
19950 _swigt__p_wxIconBundle,
19951 _swigt__p_wxPoint,
19952 _swigt__p_wxDash,
19953 _swigt__p_wxScreenDC,
19954 _swigt__p_wxCursor,
19955 _swigt__p_wxClientDC,
19956 _swigt__p_wxBufferedDC,
19957 _swigt__p_wxImageList,
19958 _swigt__p_unsigned_char,
19959 _swigt__p_wxGDIObject,
19960 _swigt__p_wxIcon,
19961 _swigt__p_wxLocale,
19962 _swigt__p_wxRegion,
19963 _swigt__p_wxLanguageInfo,
19964 _swigt__p_wxConfigBase,
19965 _swigt__p_wxWindowDC,
19966 _swigt__p_wxPrintData,
19967 _swigt__p_wxBrushList,
19968 _swigt__p_wxFontList,
19969 _swigt__p_wxPen,
19970 _swigt__p_wxBufferedPaintDC,
19971 _swigt__p_wxPaintDC,
19972 _swigt__p_wxPenList,
19973 _swigt__p_int,
19974 _swigt__p_wxMetaFile,
19975 _swigt__p_wxNativeFontInfo,
19976 _swigt__p_wxEncodingConverter,
19977 _swigt__p_wxColourDatabase,
19978 0
19979 };
19980
19981
19982 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19983
19984 static swig_const_info swig_const_table[] = {
19985 {0}};
19986
19987 #ifdef __cplusplus
19988 }
19989 #endif
19990
19991 #ifdef __cplusplus
19992 extern "C"
19993 #endif
19994 SWIGEXPORT(void) SWIG_init(void) {
19995 static PyObject *SWIG_globals = 0;
19996 static int typeinit = 0;
19997 PyObject *m, *d;
19998 int i;
19999 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
20000 m = Py_InitModule((char *) SWIG_name, SwigMethods);
20001 d = PyModule_GetDict(m);
20002
20003 if (!typeinit) {
20004 for (i = 0; swig_types_initial[i]; i++) {
20005 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
20006 }
20007 typeinit = 1;
20008 }
20009 SWIG_InstallConstants(d,swig_const_table);
20010
20011 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
20012 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
20013 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
20014 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
20015 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
20016 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
20017 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
20018 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
20019 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
20020 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
20021 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
20022 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
20023 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
20024 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
20025 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
20026 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
20027 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
20028 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
20029 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
20030 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
20031 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
20032 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
20033 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
20034 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
20035 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
20036 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
20037 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
20038 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
20039 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
20040 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
20041 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
20042 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
20043 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
20044 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
20045 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
20046 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
20047 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
20048 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
20049 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
20050 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
20051 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
20052 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
20053 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
20054 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
20055 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
20056 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
20057 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
20058 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
20059 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
20060 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U));
20061 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
20062 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
20063 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
20064 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
20065 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
20066 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
20067 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
20068 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
20069 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
20070 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
20071 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
20072 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
20073 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
20074 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
20075 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
20076 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
20077 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
20078 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
20079 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
20080 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
20081 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
20082 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
20083 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
20084 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
20085 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
20086 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
20087 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
20088 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
20089 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
20090 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
20091 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
20092 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
20093 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
20094 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
20095 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
20096 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
20097 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
20098 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
20099 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
20100 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
20101 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
20102 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
20103 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
20104 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
20105 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
20106 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
20107 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
20108 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
20109 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
20110 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
20111 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
20112 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
20113 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
20114 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
20115 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
20116 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
20117 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
20118 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
20119 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
20120 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
20121 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
20122 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
20123 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
20124 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
20125 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
20126 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
20127 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
20128 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
20129 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
20130 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
20131 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
20132 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
20133 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
20134 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
20135 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
20136 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
20137 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
20138
20139 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
20140
20141 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
20142 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
20143 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
20144 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
20145 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
20146 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
20147 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
20148 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
20149 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
20150 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
20151 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
20152 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
20153 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
20154 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
20155 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
20156 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
20157 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
20158 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
20159 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
20160 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
20161 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
20162 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
20163 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
20164 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
20165 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
20166 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
20167 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
20168 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
20169 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
20170 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
20171 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
20172 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
20173 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
20174 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
20175 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
20176 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
20177 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
20178 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
20179 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
20180 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
20181 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
20182 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
20183 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
20184 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
20185 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
20186 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
20187 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
20188 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
20189 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
20190 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
20191 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
20192 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
20193 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
20194 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
20195 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
20196 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
20197 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
20198 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
20199 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
20200 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
20201 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
20202 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
20203 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
20204 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
20205 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
20206 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
20207 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
20208 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
20209 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
20210 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
20211 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
20212 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
20213 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
20214 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
20215 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
20216 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
20217 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
20218 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
20219 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
20220 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
20221 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
20222 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
20223 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
20224 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
20225 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
20226 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
20227 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
20228 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
20229 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
20230 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
20231 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
20232 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
20233 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
20234 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
20235 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
20236 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
20237 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
20238 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
20239 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
20240 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
20241 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
20242 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
20243 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
20244 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
20245 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
20246 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
20247 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
20248 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
20249 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
20250 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
20251 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
20252 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
20253 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
20254 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
20255 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
20256 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
20257 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
20258 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
20259 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
20260 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
20261 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
20262 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
20263 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
20264 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
20265 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
20266 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
20267 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
20268 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
20269 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
20270 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
20271 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
20272 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
20273 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
20274 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
20275 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
20276 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
20277 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
20278 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
20279 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
20280 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
20281 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
20282 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
20283 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
20284 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
20285 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
20286 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
20287 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
20288 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
20289 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
20290 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
20291 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
20292 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
20293 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
20294 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
20295 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
20296 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
20297 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
20298 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
20299 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
20300 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
20301 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
20302 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
20303 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
20304 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
20305 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
20306 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
20307 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
20308 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
20309 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
20310 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
20311 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
20312 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
20313 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
20314 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
20315 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
20316 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
20317 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
20318 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
20319 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
20320 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
20321 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
20322 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
20323 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
20324 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
20325 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
20326 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
20327 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
20328 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
20329 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
20330 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
20331 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
20332 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
20333 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
20334 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
20335 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
20336 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
20337 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
20338 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
20339 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
20340 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
20341 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
20342 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
20343 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
20344 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
20345 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
20346 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
20347 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
20348 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
20349 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
20350 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
20351 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
20352 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
20353 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
20354 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
20355 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
20356 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
20357 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
20358 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
20359 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
20360 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
20361 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
20362 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
20363 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
20364 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
20365 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
20366 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
20367 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
20368 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
20369 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
20370 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
20371 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
20372 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
20373 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
20374 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
20375 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
20376 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
20377 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
20378 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
20379 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
20380 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
20381 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
20382 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
20383 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
20384 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
20385 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
20386 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
20387 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
20388 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
20389 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
20390 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
20391 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
20392 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
20393 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
20394 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
20395 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
20396 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
20397 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
20398 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
20399 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
20400 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
20401 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
20402 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
20403 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
20404 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
20405 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
20406 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
20407 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
20408 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
20409 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
20410 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
20411 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
20412 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
20413 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
20414 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
20415 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
20416 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
20417 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
20418 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
20419 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
20420 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
20421 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
20422 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
20423 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
20424 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
20425 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
20426 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
20427 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
20428 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
20429 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
20430 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
20431 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
20432 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
20433 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
20434 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
20435 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
20436 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
20437 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
20438 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
20439 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
20440 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
20441
20442 // Work around a chicken/egg problem in drawlist.cpp
20443 wxPyDrawList_SetAPIPtr();
20444
20445 }
20446